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
bonty_ssh has joined #ruby
beneggett has joined #ruby
etcetera has joined #ruby
kofno has joined #ruby
PixelCrumbs has joined #ruby
enebo has joined #ruby
mando has quit [Remote host closed the connection]
mando has joined #ruby
gabrielrotbart has joined #ruby
drale2k has quit [Quit: Leaving...]
psyprus has quit [Read error: Connection reset by peer]
nplusp has joined #ruby
mattbl has joined #ruby
drale2k has joined #ruby
yshh has joined #ruby
thetristan has quit [Ping timeout: 252 seconds]
blahwoop has joined #ruby
yshh has quit [Read error: Connection reset by peer]
whowantstolivefo has quit [Ping timeout: 256 seconds]
yshh has joined #ruby
freeayu has quit [Ping timeout: 260 seconds]
mando has quit [Ping timeout: 252 seconds]
angusiguess has joined #ruby
MrZYX is now known as MrZYX|off
bonty_ssh has quit [Remote host closed the connection]
psyprus has joined #ruby
stewart_ has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
blahwoop has quit [Remote host closed the connection]
inroads has joined #ruby
gaahrdne_ has joined #ruby
alex88 has quit [Read error: Operation timed out]
aytch has quit [Remote host closed the connection]
subbyyy_ has quit [Ping timeout: 245 seconds]
cbot_ has joined #ruby
timmow has joined #ruby
BSaboia has joined #ruby
arya has quit [Ping timeout: 248 seconds]
duckstab is now known as Israeli-
csaunders has joined #ruby
nari has joined #ruby
psyprus has quit [Ping timeout: 258 seconds]
bttf has quit [Read error: Connection reset by peer]
bttf has joined #ruby
brennanMKE has joined #ruby
nadirvardar has quit [Quit: Computer has gone to sleep.]
psyprus has joined #ruby
gaahrdne_ has quit [Ping timeout: 252 seconds]
nplusp has quit [Ping timeout: 256 seconds]
wargasm has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
cloke_ has joined #ruby
wargasm has joined #ruby
tylersmith has quit [Quit: tylersmith]
bttf has quit [Ping timeout: 248 seconds]
<csmrfx> straight from the home state of the worst WMD of the 21st century!
cloke has quit [Ping timeout: 245 seconds]
cloke_ is now known as cloke
enebo has quit [Quit: enebo]
chrishough has quit [Quit: chrishough]
chrishough has joined #ruby
chrishough has quit [Client Quit]
zeade has quit [Quit: Leaving.]
gabrielrotbart has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
gabrielrotbart has joined #ruby
yshh has quit [Remote host closed the connection]
huoxito has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
gabrielrotbart has quit [Read error: Connection reset by peer]
gabrielrotbart has joined #ruby
bonty_ssh has joined #ruby
butblack has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
cbot_ has quit [Ping timeout: 240 seconds]
slainer68 has quit [Remote host closed the connection]
beneggett has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
chrisnicola has joined #ruby
ebobby has quit [Quit: Lost terminal]
mattbl has joined #ruby
tewlz has quit [Quit: Lost terminal]
freeayu has joined #ruby
kofno has quit [Remote host closed the connection]
zph has quit [Quit: Computer has gone to sleep.]
kofno has joined #ruby
bean__ has joined #ruby
love_color_text has joined #ruby
ctp has joined #ruby
BSaboia has quit [Read error: Connection reset by peer]
Davey has quit [Quit: Computer has gone to sleep.]
cbot_ has joined #ruby
gabrielrotbart has quit [Read error: Connection reset by peer]
Sacha_ has quit [Read error: Connection reset by peer]
ctp has quit [Ping timeout: 245 seconds]
chrisnicola has quit [Quit: This computer has gone to sleep]
huoxito has quit [Quit: Leaving]
jdunck has quit [Ping timeout: 240 seconds]
Andromed_ has joined #ruby
rcosta has quit [Remote host closed the connection]
Andromeda has quit [Ping timeout: 245 seconds]
nik_-_ has quit [Quit: nik_-_]
dustint_ has joined #ruby
tjbiddle_ has joined #ruby
angusiguess has quit [Ping timeout: 256 seconds]
tealmage has joined #ruby
nEmiSH_ has joined #ruby
<nEmiSH_> Hi can someone tell me how to send output to /dev/null or Bundler::NULL I guess is the correct way?
brunoro has joined #ruby
<nEmiSH_> yes | installapp("#{fspath}/#{pkg}", name, source) >/dev/null
tomsthumb has quit [Quit: Leaving.]
eka has quit [Quit: Computer has gone to sleep.]
tjbiddle has quit [Ping timeout: 245 seconds]
yshh has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
tjbiddle_ has quit [Ping timeout: 245 seconds]
brunoro is now known as wreckimnaked
lele has quit [Ping timeout: 264 seconds]
estjang has quit [Ping timeout: 276 seconds]
seich- has quit [Ping timeout: 264 seconds]
huoxito has joined #ruby
fedza has joined #ruby
shoru has joined #ruby
lele has joined #ruby
chrisnicola has joined #ruby
seich- has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
Voodoofish430 has quit [Quit: Leaving.]
fedza has quit [Client Quit]
pioz has quit [Quit: This computer has gone to sleep]
backjlack has quit [Remote host closed the connection]
megha has joined #ruby
v0n has joined #ruby
yshh_ has joined #ruby
baba has quit [Ping timeout: 248 seconds]
yshh has quit [Read error: Connection reset by peer]
kpshek has joined #ruby
rupee has quit [Quit: Leaving]
staafl has quit [Ping timeout: 256 seconds]
Nisstyre has quit [Ping timeout: 245 seconds]
inroads has quit [Ping timeout: 245 seconds]
randomautomator has quit [Ping timeout: 264 seconds]
Davey has joined #ruby
kofno has quit [Remote host closed the connection]
dmerrick_ has quit [Remote host closed the connection]
marcdel has quit []
timmow has joined #ruby
ofxartem has left #ruby [#ruby]
majikbytes has quit [Ping timeout: 252 seconds]
markalanevans has quit [Ping timeout: 252 seconds]
<havenwood> nEmiSH_: Here is an example of sending #puts to /dev/null: https://gist.github.com/havenwood/5095222
c0rn has quit [Quit: Computer has gone to sleep.]
bonty_ssh has quit [Remote host closed the connection]
twoism has quit [Remote host closed the connection]
chrisnicola has quit [Quit: This computer has gone to sleep]
timmow has quit [Ping timeout: 252 seconds]
Vivekananda has joined #ruby
<Vivekananda> back to ruby land
<Vivekananda> and doing the problems so hello again everyone
snorkdude has quit [Quit: snorkdude]
twoism has joined #ruby
anonymuse has joined #ruby
twoism has quit [Remote host closed the connection]
chrisnicola has joined #ruby
cloke has quit [Quit: cloke]
<Vivekananda> I am using irb . When I define a couple of variables do they remain on the stack in irb if I dont delete them ?
angusiguess has joined #ruby
<Vivekananda> also can I somehow find what variabels are still present ?
tootooroo has quit [Quit: Brain.sys has encountered a problem and needs to close. We are sorry for the inconvenience.]
Nisstyre has joined #ruby
<Vivekananda> anyone here ?
<paper_> Vivekananda: all the humans are dead
dhruvasagar has joined #ruby
robscomputer_ has quit [Remote host closed the connection]
Ontolog has quit [Remote host closed the connection]
kpshek has quit []
mattbl has joined #ruby
Domon has joined #ruby
tommyvyo has joined #ruby
zph has joined #ruby
<havenwood> Vivekananda: When you leave irb, they disappear. Is that what you mean?
<Vivekananda> aha it is paper again
brianpWins has quit [Quit: brianpWins]
<Vivekananda> havenwood: yes but even if I dont leave it and like constantly testing things assigning variables and so on then I lost track of all arrays I have
<havenwood> Vivekananda: If you want to persist Ruby objects between irb sessions, Drb is a nice way.
<havenwood> Vivekananda: Pry gives you really nice options. I'd recommend just switching from irb to Pry.
<Vivekananda> defined in tthere. I could use any one of the already defined ones for future test. so I just wannan know how to get to them
<havenwood> Example of Drb with Pry: https://gist.github.com/havenwood
<havenwood> Pry: http://pryrepl.org/
<Vivekananda> havenwood yep I heard of pry and I will switch surely but a little laters perhaps. NOw I just wanna know if there is a way to list the variables that I have defined in there
<havenwood> Ahh
tylersmith has joined #ruby
<havenwood> In Pry, easy. I don't know in irb.
<Vivekananda> also yesterday someone helped me install rbevn and now I have that
<havenwood> Vivekananda: Pry: ls
<Vivekananda> but how do I use it ?
<havenwood> Vivekananda: gem install pry; pry
<havenwood> Vivekananda: Then type 'help' to see Pry commands.
NiteRain has joined #ruby
etcetera has quit []
<havenwood> Vivekananda: I like chruby, but rbenv works too!
<Vivekananda> havenwood: one thing is that I dislike to keep two things for the same purpose and if I am going to get pry
<Vivekananda> then I will unistall the irb . Will that be okay ?
<havenwood> Vivekananda: irb ships with Ruby
bonty_ssh has joined #ruby
<Vivekananda> oo so no way to unistall then ?
<Vivekananda> also how do I use the rbenv ?
<Vivekananda> I have it installed now wht ?
<Vivekananda> paper_: hello btw
<havenwood> Vivekananda: What do you want to do with rbenv?
<Vivekananda> I just lost you in the middle of scissors and stone
<havenwood> Vivekananda: Do nothing with it unless you want to switch Rubies. :P
i_s has quit [Quit: i_s]
<Vivekananda> havenwood: :) I have no clue what it does . I am a newbie on ruby
kofno has joined #ruby
Inside has joined #ruby
<havenwood> Vivekananda: rbenv is one option for switching between Ruby versions/implementations.
ritek has joined #ruby
<Inside> what's the difference between puts(2,3) and puts (2,3)? :<
<havenwood> Vivekananda: If you are using the Ruby you want, just ignore it.
<Vivekananda> oo ok. I thought it is in enviroment to log into and then perhpas do stuff or open it up incase I install something via it
<havenwood> Inside: Nothing.
<Vivekananda> like say pry
<havenwood> Inside: A space.
<csmrfx> you dont, you rvm?
<Inside> havenwood: hrm, for some reason irb is complaining about it.
shoru has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<Inside> irb(main):018:0> puts (2,3)
<Inside> SyntaxError: (irb):18: syntax error, unexpected ',', expecting ')'
<csmrfx> >> (2,3)
<eval-in> csmrfx => /tmp/execpad-9245907176f4/source-9245907176f4:2: syntax error, unexpected ',', expecting ')' ... (http://eval.in/15707)
<havenwood> Inside: Oh, sorry - it is a Syntax Error.
<havenwood> Inside: My bad.
<Vivekananda> so I am going to try installing pry then
snorkdude has joined #ruby
<Inside> really? hrnhrn
<havenwood> Inside: Not like C where you can flip/flop.
<csmrfx> you dont, you gem it
<Inside> :(
anonymuse has quit [Quit: Leaving...]
<havenwood> Vivekananda: Pry is great for exploring Ruby.
<Vivekananda> oo ok nice
<Vivekananda> I wanted to the essential features in like 10 15 mins and start using it
<Vivekananda> right now am solving some simple problems in ruby and exploring ways of doing them also learnign from mistakes
<havenwood> Vivekananda: That is a great use-case for Pry.
<csmrfx> gem install it in like 1 mins
<havenwood> Vivekananda: Like irb, but nicer.
<Vivekananda> so I type gem install ruby from the cli or first enter the rbevn by typing exec $shell -l ?
<havenwood> Vivekananda: From the command line, type: gem install pry
<havenwood> Vivekananda: Then: pry
<nEmiSH_> I was wondering if someone could help me here: https://gist.github.com/cdenneen/5342248
<nEmiSH_> I'd like to run that command on xml_str
<nEmiSH_> but with "yes | BEFORE > /dev/null" or however I can do that same idea in ruby
Hanmac2 has joined #ruby
<Vivekananda> havenwood: if I can just type from the cli then what do I use the exec $SHELL -l command for ? I had to do that to enter the rbenv or something as suggested in the rbevn readme
<havenwood> Vivekananda: Forget about rbenv. If you type `ruby -v` from the command line, what do you get?
tootooroo has joined #ruby
Hanmac1 has quit [Ping timeout: 260 seconds]
<havenwood> Vivekananda: rbenv is just a tool to set the Ruby you are using (it uses shims to do so, while other options like rvm and chruby do it differently)
marcdel has joined #ruby
<Vivekananda> O lovely I like pry already
<Vivekananda> :)
<Vivekananda> a ls for all the variables
<havenwood> Vivekananda: Yeah, it is really nice.
<Vivekananda> dont have to redefine and forget and create a log for
<Vivekananda> okay so on to the problem
<havenwood> nEmiSH_: Do you really need /dev/null, or you just don't want the command output going to stdout?
tylersmith has quit [Quit: tylersmith]
brennanMKE has quit [Remote host closed the connection]
pilojo has joined #ruby
<nEmiSH_> doesn't need to be /dev/null problem is it needs to go somewhere otherwise it pages
waxjar has quit [Remote host closed the connection]
<nEmiSH_> so IO::Null or Bundler::NULL would work i guess
<pilojo> I find that classes get huge... is there any way to split functions into separate files?
<Vivekananda> havenwood: I am trying to solve something. I am not asking for a solution but trying to get new or better ideas of solving. the problem is of course paper scissors and rock. when I get two values
<Vivekananda> like p and s I have to say if person1 is p and person2 is s then 1 wins
<havenwood> pilojo: Sure, you can just open the class up in another_file.rb, then `require 'another_file'`.
<havenwood> pilojo: **reopen the class
baroquebobcat has joined #ruby
waxjar has joined #ruby
<Vivekananda> I was thninking that if I can somehow say P >R >S>P
<pilojo> havenwood: thanks
LennyLinux has quit [Remote host closed the connection]
<nEmiSH_> havenwood: anyway to not have it go to stdout should be fine I would guess
<Vivekananda> I knwo that I can do it in an inelegant way
<nEmiSH_> havenwood: but I also need yes to be piped before it
soulofpeace has joined #ruby
<Vivekananda> hmm actually let me do it like that then I will ask for an elegant way
mois3x has joined #ruby
<havenwood> pilojo: It can be a bit tricky with $LOAD_PATH. You can either add the current dir to $LOAD_PATH, use #require_relative, or require './another_file'.
<nEmiSH_> havenwood: so the command in the end would be something like "yes | hdiutil mount package.dmg > /dev/null" or the dev/null equivalent
cbot_ has quit [Ping timeout: 240 seconds]
callmeivan has joined #ruby
<havenwood> nEmiSH_: A common way if you are running a system command is to pipe to /dev/null and just not do it in Ruby. But yeah, sending it to IO::Null with Ruby works as well!
jeebster has quit [Quit: Leaving.]
marcdel has quit [Ping timeout: 245 seconds]
<nEmiSH_> havenwood: so would the command need to be done here? yes | entity['mount-point'] IO::Null
huoxito has quit [Quit: Leaving]
nadirvardar has joined #ruby
<havenwood> **IO::NULL
<havenwood> nEmiSH_: Typically: IO::NULL #=> "/dev/null"
<havenwood> nEmiSH_: But you can open "/dev/null" as though it were a file and send stuff to it.
<nEmiSH_> guess that doesn't work? "syntax error, unexpected tCONSTANT, expecting '}'"
<havenwood> Dinner, gotta run!
havenwood has quit [Remote host closed the connection]
Mathieu has joined #ruby
pilojo has left #ruby ["Leaving"]
ttt has joined #ruby
nadirvardar has quit [Client Quit]
marcdel has joined #ruby
tvw has quit [Ping timeout: 248 seconds]
sleetdrop has joined #ruby
Beoran_ has joined #ruby
tomsthumb has joined #ruby
yugui_zzz is now known as yugui
nfk has quit [Quit: yawn]
Beoran has quit [Ping timeout: 245 seconds]
jnoob22 has quit [Remote host closed the connection]
csaunders has quit [Quit: Computer has gone to sleep.]
nik_-_ has joined #ruby
nik_-_ has quit [Client Quit]
mando has joined #ruby
<nEmiSH_> IO::NULL yes | mounts.each do |fspath|
yalue has quit [Read error: Connection reset by peer]
forced_request has quit [Read error: Connection reset by peer]
shock_one has joined #ruby
wargasm1 has joined #ruby
lele has quit [Ping timeout: 256 seconds]
ckrailo has joined #ruby
kofno has quit [Remote host closed the connection]
<kenneth> does include not include class methods?
dmiller has quit [Ping timeout: 246 seconds]
lele has joined #ruby
<paper_> kenneth: it doesnt
<kenneth> damn… is there a way to add that behavior?
dmiller has joined #ruby
<kenneth> for a specific module that is
<paper_> kenneth: kind of
shevy has quit [Read error: Operation timed out]
<kenneth> Module#included right?
Elico has joined #ruby
wargasm has quit [Ping timeout: 245 seconds]
jbueza has left #ruby [#ruby]
geggam has joined #ruby
<kenneth> paper_: is there a reason that you say "kind of?" caveats?
<paper_> kenneth: because it's not actually including class methods :)
<paper_> it's including instance methods defined on a nested module
<kenneth> right, okay
timmow has joined #ruby
quazimodo has quit [Ping timeout: 256 seconds]
Heero` has quit [Read error: Connection reset by peer]
Elico has left #ruby [#ruby]
cobragoat has quit [Remote host closed the connection]
nalaginrut has joined #ruby
anonymuse has joined #ruby
endzyme has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
BaconRose has quit [Ping timeout: 252 seconds]
peta_ has quit [Quit: peta_]
wsterling has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
Ontolog has joined #ruby
mois3x has quit []
mois3x has joined #ruby
bttf has joined #ruby
<bttf> i've got an interesting problem
skroon_ has joined #ruby
shevy has joined #ruby
<bttf> i'm using rbenv, and am trying to install passenger with my nginx set up. since i'm using rbenv, i run all my commands as local user .. but the passenger-nginx installer needs to be root in order to make changes to /opt , but when i run as sudo it has no ruby commands accessible to it
matayam has joined #ruby
banjara has quit [Quit: Leaving.]
therrell has quit [Quit: therrell]
snorkdude has quit [Quit: snorkdude]
kenneth has quit [Quit: kenneth]
skroon has quit [Ping timeout: 245 seconds]
therrell has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
Tectonic has joined #ruby
therrell has quit [Client Quit]
aytch has joined #ruby
mois3x has quit [Ping timeout: 252 seconds]
<bttf> not sure how to approach this problem
alex2 has joined #ruby
psyprus has quit [Ping timeout: 258 seconds]
<fryguy> bttf: init rbenv as root user
nezumi has joined #ruby
psyprus has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
akashj87 has joined #ruby
etcetera has joined #ruby
mercwithamouth has joined #ruby
chrisnicola has quit [Quit: This computer has gone to sleep]
blahwoop has joined #ruby
marienz has quit [Read error: Operation timed out]
etcetera has quit [Client Quit]
<alex2> hey, when did ruby 2.0 come out?
etcetera has joined #ruby
kofno has joined #ruby
akashj87__ has joined #ruby
akashj87 has quit [Disconnected by services]
<blahwoop> feb 24th 2013
nplusp has joined #ruby
etcetera has quit [Client Quit]
<Vivekananda> gimme an idea of this error -- NoMethodError: undefined method `[]' for nil:NilClass
akashj87__ has quit [Read error: Connection reset by peer]
<alex2> has anyone done any interesting performance benchmarks? is there a difference?
akashj87 has joined #ruby
<blahwoop> its expecting a value but you're getting nil
soooga has joined #ruby
matayam has quit [Remote host closed the connection]
<Vivekananda> this is happenning for sorry the game is like this [["john" , "p"] , ["jane" , "s"]]
<Vivekananda> blahwoop: where ?
love_color_text has quit [Remote host closed the connection]
soooga has quit [Max SendQ exceeded]
<blahwoop> in [], you can break it down and call each one
<blahwoop> see which one returns nil
love_color_text has joined #ruby
<blahwoop> not enough code to see whats wrong
PixelCrumbs has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
SeanTAllen has joined #ruby
akashj87 has quit [Ping timeout: 240 seconds]
love_color_text has quit [Ping timeout: 256 seconds]
<Vivekananda> blahwoop: I got it . My array is only index 1 but I called index 2 on it
<blahwoop> cool
baroquebobcat has quit [Quit: baroquebobcat]
<Vivekananda> also when in pry I get a puts result for game
<Vivekananda> => [["Varun", "P"], ["nikhil", "S"]]
<Vivekananda> as ---- nikhil => nil
<Vivekananda> what is the nil here for?
soooga has joined #ruby
dmiller has quit [Quit: WeeChat 0.4.0]
echevemaster has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Read error: Operation timed out]
ctp has joined #ruby
ZachBeta has joined #ruby
<Vivekananda> what is the nil there for ?
<Vivekananda> will it also show in the results if I try this code actually
<Vivekananda> onto part 2 now
<Vivekananda> blahwoop: ?
<blahwoop> nil?
nplusp has quit [Ping timeout: 256 seconds]
snorkdude has joined #ruby
soooga has quit [Ping timeout: 256 seconds]
<Vivekananda> blahwoop: the link I gave above says nikhil => nil. nikhil is the correct value but what is the 'nil' doing there ?
ctp has quit [Ping timeout: 256 seconds]
nplusp has joined #ruby
<Vivekananda> blahwoop: got it . I was doing puts
<Vivekananda> removign it solved the error
AllStruck has quit [Remote host closed the connection]
wreckimnaked has quit [Read error: Connection reset by peer]
geggam has quit [Ping timeout: 252 seconds]
ilyam has quit [Ping timeout: 260 seconds]
bigmac has joined #ruby
AllStruck has joined #ruby
wesside has joined #ruby
echevemaster has joined #ruby
vlad_starkov has joined #ruby
snorkdude has quit [Quit: snorkdude]
marienz_ has joined #ruby
zeade has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
zeade has quit [Client Quit]
baroquebobcat has joined #ruby
BaconRose has joined #ruby
wreckimnaked has joined #ruby
butblack has quit [Quit: butblack]
zph has quit [Quit: Computer has gone to sleep.]
i_s has joined #ruby
ariedler has quit [Remote host closed the connection]
jurassic has joined #ruby
jurassic has quit [Client Quit]
snorkdude has joined #ruby
timmow has joined #ruby
tish has joined #ruby
jdunck has joined #ruby
tjbiddle has joined #ruby
matayam has joined #ruby
aytch has quit [Remote host closed the connection]
david___ has joined #ruby
rawng has quit [Quit: WeeChat 0.4.1-dev]
angusiguess has quit [Ping timeout: 245 seconds]
etcetera has joined #ruby
iphands_ has quit [Ping timeout: 240 seconds]
timmow has quit [Ping timeout: 252 seconds]
kofno has joined #ruby
mando has quit [Remote host closed the connection]
agarie_ has joined #ruby
wsterling has quit [Remote host closed the connection]
jurassic has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
agarie has quit [Ping timeout: 246 seconds]
matayam has quit [Remote host closed the connection]
AllStruck has quit [Remote host closed the connection]
AllStruck has joined #ruby
chandankumar has joined #ruby
tommyvyo has quit [Quit:]
mattbl has quit [Quit: This computer has gone to sleep]
Pochacco has quit [Quit: Pochacco]
AllStruck has quit [Remote host closed the connection]
AllStruck has joined #ruby
AllStruck has quit [Remote host closed the connection]
ZachBeta has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
AllStruck has joined #ruby
callmeivan has quit [Ping timeout: 252 seconds]
Mattix has joined #ruby
IceDragon has quit [Quit: Space~~~]
<Mattix> why does IO.select return a socket as if it's ready read, when the connection is actually closed? http://ruby-doc.org/core-2.0/IO.html#method-c-select
<Mattix> err, to read *
chrisnicola has joined #ruby
nplusp has quit [Ping timeout: 264 seconds]
Israeli- is now known as crassus
callmeivan has joined #ruby
bean__ has quit [Quit: Computer has gone to sleep.]
snorkdude has quit [Quit: snorkdude]
beneggett has quit [Ping timeout: 252 seconds]
echevemaster has quit [Ping timeout: 245 seconds]
beneggett has joined #ruby
blahwoop has quit [Remote host closed the connection]
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
jurassic has quit [Quit: jurassic]
bttf has quit [Remote host closed the connection]
jurassic has joined #ruby
markalanevans has joined #ruby
<Mattix> here is my question with an example: http://pastebin.com/UPt0WFbt
kofno has quit [Remote host closed the connection]
Kruppe has quit [Remote host closed the connection]
Mattix has quit [Ping timeout: 264 seconds]
ckrailo has joined #ruby
maycon has joined #ruby
maycon has quit [Changing host]
maycon has joined #ruby
ukd1 has quit [Remote host closed the connection]
dustint_ has quit [Ping timeout: 240 seconds]
chrisnicola has quit [Quit: This computer has gone to sleep]
lkba has quit [Remote host closed the connection]
snorkdude has joined #ruby
snorkdude has quit [Client Quit]
KazW has joined #ruby
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
KazW_away has quit [Ping timeout: 245 seconds]
cbot_ has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
angusiguess has joined #ruby
timmow has joined #ruby
Apathetic has quit [Quit: *booom*]
chrisnicola has joined #ruby
Domon has quit [Remote host closed the connection]
timmow has quit [Ping timeout: 252 seconds]
philcrissman has joined #ruby
carlyle has joined #ruby
Inside has quit [Ping timeout: 264 seconds]
chrisnicola has quit [Client Quit]
Huntertusk has joined #ruby
angusiguess has quit [Ping timeout: 256 seconds]
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
dougireton has joined #ruby
Burgestrand has quit [Quit: Burgestrand]
<eskp> hey guys has anyone had experience with create a tar file with TarWrite?
cbot_ has quit [Ping timeout: 264 seconds]
<eskp> how would i go about adding/copying a directory to this tar file?
rvchangue has joined #ruby
wallerdev has quit [Quit: wallerdev]
hamakn has joined #ruby
jurassic has quit [Quit: jurassic]
matayam has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
alex2 has quit [Quit: WeeChat 0.4.0]
endzyme has quit [Remote host closed the connection]
divout has joined #ruby
callmeivan has quit [Ping timeout: 252 seconds]
callmeivan has joined #ruby
bluOxigen has joined #ruby
freeayu has quit [Ping timeout: 256 seconds]
cbot_ has joined #ruby
cobragoat has joined #ruby
anonymuse has quit [Quit: Leaving...]
zastern has joined #ruby
<zastern> In this code - https://gist.github.com/5343052 - why is the "value" variable necessary in the "do" section? It seems to me that it isn't really used.
kuzushi has quit [Ping timeout: 256 seconds]
SeySayux has quit [Read error: Operation timed out]
chrisnicola has joined #ruby
<zastern> It makes spaces between the lines since it does nothing for the values, I guess.
Villadelfia has quit [Ping timeout: 245 seconds]
dougireton has quit [Quit: Leaving.]
<bean> if you dont care about the values
<bean> you can do
<zastern> bean: I do care about the values, but it's already printing them
BadQuanta has quit [Quit: Leaving]
Huntertusk has quit [Quit: Leaving]
<zastern> because of the matz[key] bit
<bean> oh, the matz[key], thing is sort of inefficient
<bean> you should just do value instead of that
dougireton has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
<zastern> Sure, fine, I'm just trying to understand the example code and why it is the way it is
kuzushi has joined #ruby
Villadelfia has joined #ruby
freeayu has joined #ruby
dougireton has quit [Read error: Connection reset by peer]
<bean> it's wrong is why it is the way it is.
<zastern> bean: heh thanks
<bean> see the focs for that
<bean> docs*
<bean> thats how you're supposed to use it
justsee has joined #ruby
justsee has joined #ruby
<zastern> bean: sure that makes a lot more sense now, thanks.
cha1tanya has joined #ruby
<bean> np
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
callmeivan has quit [Read error: No route to host]
SeySayux has joined #ruby
callmeivan has joined #ruby
carlyle has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
atno has quit [Ping timeout: 245 seconds]
Domon has joined #ruby
brianpWins has joined #ruby
chxane has quit [Quit: Leaving]
rdev has joined #ruby
cbot_ has quit [Ping timeout: 248 seconds]
sambio has quit []
ctp has joined #ruby
codecop has joined #ruby
rippa has joined #ruby
<Vivekananda> hey everyone . I am trying to solve a problem. I am getting the correct result in the pry but when I try it in the actual online site I get it is incorrect. why would that be the case. Please look -- https://gist.github.com/anonymous/2c6bbc97031c1a9cf519
philcrissman has quit [Remote host closed the connection]
<Vivekananda> hi bean
ctp has quit [Ping timeout: 245 seconds]
Burgestrand has joined #ruby
chrisnicola has quit [Quit: This computer has gone to sleep]
robbyoconnor has joined #ruby
chxane has joined #ruby
<mose> Vivekananda: hi
kuzushi has quit [Ping timeout: 245 seconds]
chandankumar has quit [Ping timeout: 256 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
thebastl has joined #ruby
<mose> isn't your [0] in the test causing the test error ?
robbyoconnor has joined #ruby
cha1tanya has quit [Ping timeout: 256 seconds]
aytch has joined #ruby
freakazoid0223 has quit [Ping timeout: 256 seconds]
chrisnicola has joined #ruby
ehaliewicz has quit [Remote host closed the connection]
<Vivekananda> mose howdy
<Vivekananda> I am not sure what that is doing there :). Am I required to say something like [0] somewhere or delete it ?
<mose> I mean rps_game_winner returns a string visibly not an array
<mose> for teh test to pass the "Armondo" should be ["Armando"]
girija has joined #ruby
<mose> unless you just remove the [0] from the test
agarie has joined #ruby
angusiguess has joined #ruby
ananthakumaran has joined #ruby
<Vivekananda> mose I have to make the code conform to the test
<Vivekananda> how do you know that the test returns and array btw ?
wreckimnaked has quit [Ping timeout: 248 seconds]
agarie_ has quit [Ping timeout: 255 seconds]
angusiguess has quit [Ping timeout: 264 seconds]
tonini has joined #ruby
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
pyrac has joined #ruby
mockra has joined #ruby
chrisnicola has quit [Quit: This computer has gone to sleep]
ph^ has joined #ruby
aganov has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
djwonk has quit []
<Vivekananda> mose: are ou ther e?
baroquebobcat has joined #ruby
Morkel has joined #ruby
braoru has joined #ruby
Ng|Adonixx4798 has joined #ruby
Ng|Adonixx4798 has quit [Changing host]
Ng|Adonixx4798 has joined #ruby
tagrudev has joined #ruby
<mose> sorry I'm working at same time :)
DuncanNZ has joined #ruby
<mose> then if the test is the boss, you should return an array from the method
<mose> game[1] and not game[1][0]
miso1337 has joined #ruby
ph^ has quit [Ping timeout: 245 seconds]
axxT has quit [Ping timeout: 240 seconds]
Dreamer3 has quit [Quit: Leaving...]
chandankumar has joined #ruby
baroquebobcat has quit [Client Quit]
gener1c has quit [Remote host closed the connection]
akashj87 has joined #ruby
etcetera has quit []
DuncanNZ has left #ruby ["Leaving"]
i_s has quit [Quit: i_s]
thebastl_ has joined #ruby
Hanmac has quit [Quit: Leaving.]
axxT has joined #ruby
axxT has quit [Changing host]
axxT has joined #ruby
therrell has joined #ruby
kenneth has joined #ruby
chandankumar has quit [Ping timeout: 260 seconds]
BizarreCake has joined #ruby
mnaser has quit [Ping timeout: 256 seconds]
thebastl has quit [Ping timeout: 252 seconds]
v0n has quit [Ping timeout: 240 seconds]
robscomputer_ has joined #ruby
Ng|Adonixx4798 has quit [Ping timeout: 264 seconds]
<Vivekananda> hmm
<Vivekananda> okay lemmee try
ckrailo has quit [Quit: Computer has gone to sleep.]
Morkel has quit [Quit: Morkel]
puppeh has joined #ruby
carraroj has joined #ruby
dyeske has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
nomenkun has joined #ruby
_whitelogger has joined #ruby
Apocalypse has quit [Ping timeout: 264 seconds]
kiri has quit [Quit: Leaving]
thebastl_ has quit [Ping timeout: 264 seconds]
rickruby has joined #ruby
chandankumar has joined #ruby
chendo_ has quit [Ping timeout: 245 seconds]
pitzips has quit [Ping timeout: 276 seconds]
freeayu__ has joined #ruby
chendo_ has joined #ruby
freeayu has quit [Ping timeout: 264 seconds]
PanPan has joined #ruby
shevy has quit [Ping timeout: 255 seconds]
cha1tanya has joined #ruby
Apocalypse has joined #ruby
mockra has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
kiri has joined #ruby
robscomputer_ has quit [Remote host closed the connection]
soulofpeace has quit [Ping timeout: 240 seconds]
robscomputer_ has joined #ruby
anderse has joined #ruby
Pochacco has joined #ruby
Hanmac has joined #ruby
soulofpeace has joined #ruby
bigmac has quit [Quit: Leaving]
Gues_____ has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
ananthakumaran1 has joined #ruby
vlad_starkov has joined #ruby
skroon_ has quit [Ping timeout: 245 seconds]
_whitelogger has joined #ruby
_whitelogger has joined #ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
mnaser has joined #ruby
mnaser has quit [Remote host closed the connection]
Pochacco has quit [Ping timeout: 245 seconds]
reset has quit [Quit: Leaving...]
pyrac has quit [Quit: pyrac]
baroquebobcat has joined #ruby
chandankumar is now known as chandankumar|afk
vlad_starkov has quit [Ping timeout: 256 seconds]
monkegjinni has joined #ruby
shock_one has quit [Ping timeout: 256 seconds]
shevy has joined #ruby
angusiguess has joined #ruby
thebastl has joined #ruby
seoaqua has joined #ruby
reset has joined #ruby
Gues_____ is now known as shellox_
Vainoharhainen has joined #ruby
shock_one has joined #ruby
rickruby has quit [Remote host closed the connection]
<Rumsteak> if I do /bin/my_script.rb, is it possible to get "/bin/my_script.rb" inside the ruby script ?
pyrac has joined #ruby
anderse has quit [Quit: anderse]
<Hanmac> Rumsteak: did you try $0 and __FILE__ ?
angusiguess has quit [Ping timeout: 255 seconds]
andikr has joined #ruby
<Rumsteak> Thanks Hanmac, $0 did the trick
dr_bob has joined #ruby
<Rumsteak> __FILE__ didn't work because I was in a module with his own file, but with $0 I get the original file, so all is good
pyrac has quit [Client Quit]
<Hanmac> okay i was not sure wich do you want thats why i gave you both
shock_one has quit [Ping timeout: 276 seconds]
Elhu has joined #ruby
ph^ has joined #ruby
ph^ has quit [Read error: Connection reset by peer]
akashj87__ has joined #ruby
aytch has quit [Remote host closed the connection]
oponder has quit [Remote host closed the connection]
Tectonic has quit []
pduin has joined #ruby
akashj87 has quit [Ping timeout: 240 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
ephemerian has joined #ruby
ph^ has joined #ruby
mnaser has joined #ruby
eladmeidar has joined #ruby
wilee-nilee has joined #ruby
wilee-nilee has left #ruby ["Leaving"]
akashj87__ has quit [Quit: Leaving]
tomsthumb has quit [Quit: Leaving.]
Xeago has joined #ruby
<rvchangue> I'm trying to call super() inside a block passed to Fiber.new, in a method overriden using 'define_method
knapper_tech has quit [Ping timeout: 240 seconds]
<rvchangue> But ruby throws a NoMethodError. When I override the method normally with def, it works as expected.
<rvchangue> Here's an example: https://gist.github.com/anonymous/5343483
<rvchangue> Any ideas for how I can get this working with define_method
therrell has quit [Quit: therrell]
ph^ has quit [Remote host closed the connection]
doritostains has quit [Quit: Leaving...]
eladmeidar has quit [Ping timeout: 264 seconds]
ph^ has joined #ruby
x0F has joined #ruby
Morkel has joined #ruby
chandankumar|afk is now known as chandankumar
therrell has joined #ruby
nomenkun has quit [Remote host closed the connection]
stewart_ has quit [Quit: Leaving.]
tomsthumb has joined #ruby
sayan has joined #ruby
lmf40 has quit [Remote host closed the connection]
Hanmac has quit [Quit: Leaving.]
<Vivekananda> hwo do I debug lines in pry ?
Ceslovas157 has joined #ruby
Hanmac has joined #ruby
banjara has joined #ruby
filipe has joined #ruby
Morkel_ has joined #ruby
thinkclay has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
Morkel has quit [Ping timeout: 252 seconds]
Morkel_ is now known as Morkel
tonini has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby
BizarreCake has quit [Ping timeout: 245 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
bw_ has quit [Ping timeout: 264 seconds]
right1 has quit [Ping timeout: 245 seconds]
Ceslovas157 has left #ruby [#ruby]
Nahra has quit [Read error: Operation timed out]
ctp has joined #ruby
rezzack has quit [Quit: Leaving.]
<Vivekananda> anyone ?
mafolz has joined #ruby
atno has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
chendo_ has quit [Ping timeout: 252 seconds]
whowantstolivefo has joined #ruby
tchebb has quit [Ping timeout: 245 seconds]
tchebb has joined #ruby
predator217 has quit [Ping timeout: 246 seconds]
predator117 has joined #ruby
chendo_ has joined #ruby
robbyoconnor has joined #ruby
Davey has joined #ruby
Davey has quit [Client Quit]
<Vivekananda> I am trying to wrie a recursion for a rock paper scissors game
<Vivekananda> nto getting it right
<Vivekananda> could someone tell me what is wrong
keymone_ has joined #ruby
keymone_ has quit [Client Quit]
rdev has quit [Quit: Linkinus - http://linkinus.com]
sleetdrop1 has joined #ruby
sleetdrop1 has quit [Client Quit]
nplusp has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
greenarrow has quit [Quit: IRC is just multiplayer notepad]
dmerrick has joined #ruby
Xeago has quit [Remote host closed the connection]
greenarrow has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mulinux has joined #ruby
angusiguess has joined #ruby
JohnBat26 has joined #ruby
wreckimnaked has joined #ruby
JohnBat26 has quit [Client Quit]
dmerrick has quit [Ping timeout: 252 seconds]
alex88 has joined #ruby
JohnBat26 has joined #ruby
mulinux has quit [Remote host closed the connection]
mulinux has joined #ruby
KazW is now known as KazW_away
pyrac has joined #ruby
emergion has joined #ruby
mneorr has joined #ruby
filipe has quit [Ping timeout: 256 seconds]
angusiguess has quit [Ping timeout: 252 seconds]
postmodern has quit [Quit: Leaving]
mneorr has quit [Remote host closed the connection]
jmeeuwen has joined #ruby
wreckimnaked has quit [Ping timeout: 245 seconds]
tootooroo has quit [Quit: Brain.sys has encountered a problem and needs to close. We are sorry for the inconvenience.]
KazW_away is now known as KazW
Vivekananda has quit [Remote host closed the connection]
decentrality has quit [Ping timeout: 246 seconds]
lmf40 has joined #ruby
nplusp has quit [Read error: Connection reset by peer]
Ontolog has quit [Remote host closed the connection]
apeiros has joined #ruby
dagobah has joined #ruby
ritek has quit [Quit: leaving]
tish has quit [Quit: Leaving.]
emergion has quit [Quit: Computer has gone to sleep.]
skroon has joined #ruby
decentrality has joined #ruby
answer_42 has joined #ruby
akashj87 has joined #ruby
filipe has joined #ruby
yann_ck has joined #ruby
DrCode has joined #ruby
nickbuff has joined #ruby
predator117 has quit [Ping timeout: 276 seconds]
beneggett has quit [Quit: Computer has gone to sleep.]
predator117 has joined #ruby
doritostains has joined #ruby
mulinux has quit [Quit: mulinux]
rezzack has joined #ruby
maxmanders has joined #ruby
backjlack has joined #ruby
marr has joined #ruby
Al__ has joined #ruby
beneggett has joined #ruby
hmarr has joined #ruby
samuel02 has joined #ruby
nickbuff has quit [Quit: Leaving...]
elaptics`away is now known as elaptics
KazW is now known as KazW_away
pyrac has quit [Quit: pyrac]
KazW_away is now known as KazW
rdark has joined #ruby
Zeev has joined #ruby
alup has joined #ruby
MrZYX|off is now known as MrZYX
reset has quit [Read error: Operation timed out]
hamakn_ has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
DaDaDOSPrompt has joined #ruby
freeayu__ has quit [Ping timeout: 256 seconds]
chussenot has joined #ruby
Akuma has quit [Ping timeout: 264 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
Elhu has joined #ruby
predator117 has quit [Ping timeout: 252 seconds]
aytch has joined #ruby
yashshah has joined #ruby
oponder has joined #ruby
predator117 has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
Amnesthesia has joined #ruby
Elhu has quit [Client Quit]
Elhu has joined #ruby
ephemerian has quit [Quit: Leaving.]
mneorr has joined #ruby
enriclluelles has joined #ruby
pi3r has joined #ruby
<jsaak> any eventmachine users? how is it possible that my eventmachine is using ppoll accordong to strace, instead of epoll?
<hoelzro> jsaak: my guess is you don't have a binding to epoll installed?
timmow has joined #ruby
<jsaak> what is that? :)
* hoelzro shrugs
<hoelzro> check the EM source and try to figure out how it determines which event mechanism to use
<jsaak> have_func: checking for epoll_create() in sys/epoll.h... -------------------- yes
lmf40 has quit [Read error: Connection reset by peer]
lmf40 has joined #ruby
<jsaak> i havent found any reference to ppoll at all in the source
daniel_- has joined #ruby
freeayu__ has joined #ruby
<hoelzro> that's in the EM configuration?
<hoelzro> perhaps EM is using libev or something
<jsaak> yes
KazW is now known as KazW_away
KazW_away is now known as KazW
kenneth has quit [Read error: Connection reset by peer]
right1 has joined #ruby
bw_ has joined #ruby
predator117 has quit [Ping timeout: 264 seconds]
generalissimo has quit [Remote host closed the connection]
predator117 has joined #ruby
MrZYX is now known as MrZYX|off
swex_ has joined #ruby
MrZYX|off is now known as MrZYX
swex has quit [Ping timeout: 245 seconds]
brianpWins has quit [Quit: brianpWins]
pyrac has joined #ruby
lmx has quit [Quit: lmx]
adac has joined #ruby
Akuma has joined #ruby
bricker`LA has joined #ruby
answer_42 has quit [Quit: WeeChat 0.4.0]
<bricker`LA> Isn't there something that lets you iterate over an array, grouped by n elements at a time? [1, 2, 3, 4, 5, 6].each(3) { |group| group.each { |n| p n } }
<bricker`LA> or something like that
monkegjinni has quit [Read error: Connection reset by peer]
answer_42 has joined #ruby
monkegjinni has joined #ruby
<MrZYX> bricker`LA: #each_cons
<MrZYX> or #each_slice
<MrZYX> depending on what you want exactly
keymone_ has joined #ruby
tonini has joined #ruby
samuel02 has quit [Remote host closed the connection]
danslo has joined #ruby
<bricker`LA> MrZYX: that's it! Thanks
<MrZYX> I'd recommend you to read through Enumerable so got an idea what's available
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
Weazy has joined #ruby
thinkclay has quit [Quit: Leaving.]
m8 has joined #ruby
KevinSjoberg has joined #ruby
monkegjinni has quit [Remote host closed the connection]
beiter has quit [Ping timeout: 260 seconds]
tonini has quit [Read error: Connection reset by peer]
jdunck has quit [Quit: Computer has gone to sleep.]
lmx has joined #ruby
timonv has joined #ruby
tonini has joined #ruby
angusiguess has joined #ruby
lmx has quit [Client Quit]
sayan has quit [Read error: Connection reset by peer]
lmx has joined #ruby
ni291187 has joined #ruby
slainer68 has joined #ruby
monkegjinni has joined #ruby
lkba has joined #ruby
angusiguess has quit [Ping timeout: 256 seconds]
ni291187 has left #ruby [#ruby]
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
sk87 has joined #ruby
average_drifter has quit [Ping timeout: 260 seconds]
average_drifter has joined #ruby
mikecmpbll has joined #ruby
skattyadz has joined #ruby
nnathan has joined #ruby
nomenkun has joined #ruby
blaxter_ has joined #ruby
himsin has joined #ruby
adambeynon has joined #ruby
apod has joined #ruby
prebrov has joined #ruby
ruckerz has quit [Read error: Connection reset by peer]
rismoney has quit [Ping timeout: 255 seconds]
camilasan has joined #ruby
ruckerz has joined #ruby
niceguyjames has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
jgrevich has quit [Ping timeout: 255 seconds]
jgrevich has joined #ruby
prebrov has left #ruby [#ruby]
[eDu] has joined #ruby
marcdel has quit []
[eDu] has quit [Client Quit]
skattyadz has quit [Quit: skattyadz]
hmarr has quit []
marcdel has joined #ruby
timmow_ has joined #ruby
timmow_ has quit [Read error: Connection reset by peer]
timmow_ has joined #ruby
skattyadz has joined #ruby
troessner has joined #ruby
tonini has quit [Remote host closed the connection]
echevemaster has quit [Quit: Leaving]
freeayu__ has quit [Ping timeout: 245 seconds]
mneorr_ has joined #ruby
nnathan has quit [Quit: Leaving]
mengu has joined #ruby
marcdel has quit []
mneorr has quit [Ping timeout: 260 seconds]
echevemaster has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
doritostains has quit [Quit: Leaving...]
echevemaster has quit [Remote host closed the connection]
carraroj has quit [Remote host closed the connection]
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
doritostains has joined #ruby
JonnieCache has quit [Ping timeout: 240 seconds]
noop has quit [Ping timeout: 264 seconds]
echevemaster has quit [Client Quit]
MrZYX is now known as MrZYX|off
carraroj has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Remote host closed the connection]
echevemaster has joined #ruby
jgrevich has quit [Remote host closed the connection]
staafl has joined #ruby
ExxKA has joined #ruby
hmarr has joined #ruby
samuel02 has joined #ruby
kofno has joined #ruby
jerius has joined #ruby
daniel_- has quit [Ping timeout: 248 seconds]
Lockzi has quit [Ping timeout: 245 seconds]
baphled has joined #ruby
blacktulip has joined #ruby
Shrink has quit [Read error: Connection reset by peer]
noop has joined #ruby
nickbuff has joined #ruby
eka has joined #ruby
kofno has quit [Ping timeout: 245 seconds]
dmoctezuma has joined #ruby
dmoctezuma is now known as ritek
atno has quit [Read error: Connection reset by peer]
therrell has quit [Quit: therrell]
fixl has joined #ruby
megha has quit [Ping timeout: 248 seconds]
security has joined #ruby
apod has quit []
security is now known as megha
lkba has quit [Ping timeout: 276 seconds]
atno has joined #ruby
jeekl has quit [Quit: jeekl]
k610 has joined #ruby
love_color_text has joined #ruby
tootooroo has joined #ruby
daniel_- has joined #ruby
jeekl has joined #ruby
jeekl has quit [Changing host]
jeekl has joined #ruby
Morkel has quit [Quit: Morkel]
<shevy> :D
<shevy> some of ruby things are totally cool
<shevy> that you can omit () when you want to, that you can iterate through things, that every method has one optional block...
sv has joined #ruby
sv has joined #ruby
<hoelzro> last I checked, iterating through things was not specific to Ruby ;)
atno has quit [Remote host closed the connection]
atno has joined #ruby
ffranz has quit [Ping timeout: 245 seconds]
Zeev_ has joined #ruby
freeayu has joined #ruby
discopig has quit [Ping timeout: 248 seconds]
Zeev has quit [Ping timeout: 245 seconds]
Morkel has joined #ruby
tonini has joined #ruby
Morkel has quit [Client Quit]
yugui is now known as yugui_zzz
gyre007 has joined #ruby
angusiguess has joined #ruby
Rym has quit [Ping timeout: 256 seconds]
marienz_ is now known as marirenz
robustus has quit [Ping timeout: 255 seconds]
marirenz is now known as marienz_
marienz_ is now known as marienz
earthquake has quit [Quit: earthquake]
mneorr_ has quit [Remote host closed the connection]
<shevy> I meant .each actually
monkegjinni has quit [Remote host closed the connection]
fivetwentysix has joined #ruby
robustus has joined #ruby
<hoelzro> I was just giving you a hard time =)
Rym has joined #ruby
nomenkun_ has joined #ruby
<shevy> hmm
indyrl has left #ruby [#ruby]
angusiguess has quit [Ping timeout: 246 seconds]
<shevy> next on my todo list is to write a script that finds out all dependencies of a given GNU autoconfigure-based project
<shevy> not sure what I need to do this... only have to parse through configure.in ?
<hoelzro> seems tricky
<shevy> :(
nomenkun has quit [Ping timeout: 240 seconds]
KazW is now known as KazW_away
Morkel has joined #ruby
Zai00 has joined #ruby
wreckimnaked has joined #ruby
<apeiros> hi tonini
nirvana has joined #ruby
ngcazz has joined #ruby
subbyyy_ has joined #ruby
oponder has quit [Remote host closed the connection]
<eskp> hey guys, has anyone seeen "implausibly old time stamp 1970-01-01 10:00:00" from tar file which is made with ruby?
<eskp> can't figure out how to set mtime. i'm using TarWriter
shellox_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Rym has quit [Ping timeout: 276 seconds]
tonini has quit [Ping timeout: 248 seconds]
sonda has joined #ruby
Morkel has quit [Quit: Morkel]
yann_ck has quit [Quit: Textual IRC Client: www.textualapp.com]
wreckimnaked has quit [Ping timeout: 256 seconds]
heftig has quit [Ping timeout: 245 seconds]
yann_ck has joined #ruby
Macaveli has joined #ruby
Rym has joined #ruby
Morkel has joined #ruby
aaronmcadam has joined #ruby
beiter has joined #ruby
qohelet_ has joined #ruby
Macaveli has left #ruby [#ruby]
Andromed_ has quit [Remote host closed the connection]
baphled has quit [Ping timeout: 256 seconds]
emergion has joined #ruby
lkba has joined #ruby
[eDu] has joined #ruby
Rym__ has joined #ruby
nickbuff has quit [Quit: Linkinus - http://linkinus.com]
girija has quit [Ping timeout: 264 seconds]
Macaveli has joined #ruby
Hanmac1 has joined #ruby
mneorr has joined #ruby
p8952 has joined #ruby
Hanmac2 has quit [Ping timeout: 248 seconds]
JonnieCache has joined #ruby
lkba has quit [Quit: Bye]
Rym has quit [Ping timeout: 256 seconds]
Rym__ is now known as Rym
subbyyy_ has quit [Ping timeout: 260 seconds]
lkba has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
p8952 has quit [Client Quit]
tvw has joined #ruby
tevio has joined #ruby
girija has joined #ruby
<tobiasvl> eskp: jfyi, January 1, 1970 is called the "epoch" when talking about UNIX time
<tobiasvl> might make it easier to google
martinklepsch has joined #ruby
monkegjinni has joined #ruby
a_a_g has joined #ruby
Morkel has quit [Quit: Morkel]
<eskp> trying to create .tgz file frim tar file which is in StringIO
emergion has quit [Quit: Computer has gone to sleep.]
<bnagy> eskp: I have had issues eith GzipWriter or whatever it's called as well
arya has joined #ruby
<bnagy> imho just shell out to tar / gzip if that's at all possible
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
<eskp> i was going to do that, bnagy, but thought i'd stick with ruby and yep, having issues as well
Morkel has joined #ruby
Morkel has quit [Client Quit]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #ruby
<bnagy> well, I've made it work on trivial examples, but then also had the reader fail on 'real' .gz where *nix gzip just works
nirvana has quit [Quit: ]
sayan has joined #ruby
Morkel has joined #ruby
arusso has quit [Ping timeout: 245 seconds]
chase-work has joined #ruby
chandankumar has quit [Quit: Leaving]
ephemerian has joined #ruby
baroquebobcat has joined #ruby
subbyyy_ has joined #ruby
Zai00 has quit [Read error: Connection reset by peer]
arya has quit []
slainer68 has quit [Remote host closed the connection]
sayan has quit [Quit: Leaving]
Flexa has joined #ruby
Guedes0 is now known as Guedes
Guedes has quit [Changing host]
Guedes has joined #ruby
<csmrfx> tar vs gz?
subbyyy_ has quit [Ping timeout: 245 seconds]
butblack has joined #ruby
butblack has quit [Client Quit]
clocKwize has joined #ruby
MrZYX|off is now known as MrZYX
mneorr has quit [Remote host closed the connection]
d3vic3 has joined #ruby
Macaveli has quit [Quit: This computer has gone to sleep]
akashj87 has quit [Read error: Connection reset by peer]
cha1tanya has quit [Quit: Leaving]
akashj87 has joined #ruby
sv is now known as discopig
dr_bob has quit [Quit: Leaving.]
dr_bob has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
rezzack has quit [Quit: Leaving.]
dr_bob has quit [Client Quit]
thebastl_ has joined #ruby
Zai00 has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
Domon has quit [Remote host closed the connection]
heftig has joined #ruby
thebastl has quit [Ping timeout: 256 seconds]
Nuck has quit [Ping timeout: 252 seconds]
atyz has joined #ruby
jnoob22 has joined #ruby
nalaginrut_ has joined #ruby
d3vic3 has quit [Quit: leaving]
himsin has quit [Ping timeout: 245 seconds]
himsin has joined #ruby
pac1 has joined #ruby
Flexa has quit [Ping timeout: 245 seconds]
beneggett has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
a_a_g has quit [Quit: Leaving.]
openstandards has joined #ruby
<openstandards> hi all
workmad3 has joined #ruby
nalaginrut has quit [Ping timeout: 264 seconds]
a_a_g has joined #ruby
davetherat has quit [Read error: Connection reset by peer]
davetherat has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
chussenot has quit [Quit: chussenot]
camilasan has quit [Remote host closed the connection]
arusso_znc has joined #ruby
monkegjinni has joined #ruby
razibog has joined #ruby
sayan has joined #ruby
<ngcazz> hi
soulofpeace has quit [Ping timeout: 256 seconds]
KazW_away is now known as KazW
rumi has joined #ruby
rumi has quit [Client Quit]
himsin has quit [Ping timeout: 245 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
openstandards has quit [Ping timeout: 245 seconds]
maxmanders has joined #ruby
atyz has quit [Quit: Leaving...]
rvchangue has quit [Ping timeout: 252 seconds]
mneorr has joined #ruby
meskyanichi has joined #ruby
Mattix has joined #ruby
Nuck has joined #ruby
himsin has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
mneorr_ has joined #ruby
<Mattix> why does IO.select return a socket as if it's ready to .read, when the connection is actually closed? http://ruby-doc.org/core-2.0/IO.html#method-c-select
Macaveli has joined #ruby
<Mattix> here is my question with an example: http://pastebin.com/UPt0WFbt
kyktommy has joined #ruby
ctp_ has joined #ruby
<hoelzro> Mattix: wrt select, I think "readable" means "a call to read would not block"
<hoelzro> that could mean data are available, or the connection has been closed
kyktommy has quit [Client Quit]
rvchangue has joined #ruby
KazW is now known as KazW_away
KazW_away is now known as KazW
baroquebobcat has quit [Quit: baroquebobcat]
idkazuma has joined #ruby
ctp has quit [Ping timeout: 256 seconds]
rickmasta has quit [Quit: Leaving...]
oponder has joined #ruby
tootooroo has quit [Quit: Brain.sys has encountered a problem and needs to close. We are sorry for the inconvenience.]
monkegjinni has quit [Read error: Connection reset by peer]
<Mattix> hoelzro, so how do know if it was closed?
<hoelzro> attempt a read
monkegjinni has joined #ruby
<Mattix> 0 bytes are read
<Mattix> is it enough to know it's close?
workmad3 has quit [Ping timeout: 245 seconds]
himsin has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
fivetwentysix has quit [Ping timeout: 246 seconds]
bdnchr has joined #ruby
welandC has quit [Ping timeout: 256 seconds]
<jsaak> Mattix: even worse: readable means only that it is _probably_ readable
<jsaak> you should set NONBLOCK in all cases
keymone_ has quit [Quit: keymone_]
<jsaak> see: man select
jpfuentes2 has joined #ruby
camilasan has joined #ruby
blaxter_ is now known as blaxter
Macaveli has quit [Quit: Leaving]
pac1 has quit [Quit: I got it one line of code at a time]
himsin has joined #ruby
dylan has joined #ruby
chandankumar has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
dr_bob has joined #ruby
moos3 has joined #ruby
sleetdrop has quit [Ping timeout: 246 seconds]
kofno has joined #ruby
rdark has quit [Ping timeout: 260 seconds]
tk_ has joined #ruby
nkr has joined #ruby
quazimodo has joined #ruby
yshh_ has quit [Remote host closed the connection]
<jsaak> Mattix: i used like this http://pastie.org/7384169
BizarreCake has joined #ruby
Macaveli has joined #ruby
peterhellberg has joined #ruby
<Mattix> I was using recvmsg instead
Macaveli has quit [Client Quit]
<Mattix> since it doesn't ask you for a limit to read
ExxKA has quit [Quit: This computer has gone to sleep]
zomgbie has joined #ruby
<Mattix> ah, there's a .recvmsg_nonblock
<Mattix> I'm going to use it. thanks
csaunders has joined #ruby
atyz has joined #ruby
akemrir has joined #ruby
sv has joined #ruby
sv has joined #ruby
sv has quit [Changing host]
<Hanmac> ping shevy
cantonic_ has joined #ruby
cantonic has quit [Ping timeout: 248 seconds]
cantonic_ is now known as cantonic
thebastl_ has quit [Remote host closed the connection]
Macaveli has joined #ruby
cmarques has joined #ruby
dmerrick has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
discopig has quit [Disconnected by services]
sv is now known as discopig
chussenot has joined #ruby
yann_ck has quit [Quit: Computer has gone to sleep.]
monkegjinni has joined #ruby
oponder has quit [Remote host closed the connection]
Macaveli has quit [Client Quit]
bdnchr has quit [Remote host closed the connection]
Macaveli has joined #ruby
seoaqua has quit [Ping timeout: 245 seconds]
chendo_ has quit [Quit: Leaving...]
dmerrick has quit [Ping timeout: 245 seconds]
atyz has quit [Ping timeout: 260 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
b0oh has joined #ruby
monkegjinni has joined #ruby
ctp has joined #ruby
LennyLinux has joined #ruby
tealmage has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 264 seconds]
ctp_ has quit [Ping timeout: 245 seconds]
brando___ has joined #ruby
doritostains has quit [Quit: Leaving...]
<brando___> nick
echevemaster is now known as echevemaster-afk
cobragoat has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
cobragoat has joined #ruby
brando___ is now known as TheAscender
slainer68 has joined #ruby
skum has joined #ruby
<linduxed> i'm not particularly good with ruby yet, and i've been recommended to start with sinatra as a first web framework
nalaginrut_ is now known as nalaginrut
atyz has joined #ruby
ij has joined #ruby
<linduxed> i'm wondering, if my idea grows into something that's "too big" for sinatra, is it easy to move to rails?
peta_ has joined #ruby
pyrac has quit [Ping timeout: 256 seconds]
Proshot has joined #ruby
Vainoharhainen has quit [Ping timeout: 264 seconds]
cobragoat has quit [Ping timeout: 256 seconds]
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<JonnieCache> yes
<JonnieCache> well, define "too big"
<ij> Is it considered to be a bad practice to temorarily swap out methods for models, as a way to silence certain messages?
<JonnieCache> if youre pressured because the app is paying your and your employees salaries, its obviously not going to be "easy"
vlad_starkov has quit [Ping timeout: 252 seconds]
<JonnieCache> but if its a personal project and you just need to rewrite it from sinatra to rails, its not going to pose you a problem
<JonnieCache> its much more common to go the other way though
<JonnieCache> projects get too big for rails and move to sinatra
vlad_starkov has joined #ruby
<JonnieCache> linduxed: ^
sk87 has quit [Quit: sk87]
vlad_starkov has quit [Read error: Connection reset by peer]
<linduxed> JonnieCache: oh i see
vlad_starkov has joined #ruby
baz_ has quit [Ping timeout: 245 seconds]
<linduxed> JonnieCache: it's just that i don't know what's good for what
razibog has quit [Ping timeout: 245 seconds]
<JonnieCache> best to experiment
<linduxed> JonnieCache: i want to learn the language by creating a backlog site
<linduxed> you know, enter various "have too play this, have to read that, have to watch this" items
<linduxed> maybe pull some data from other sites for added items
<ij> I don't think that's the best problem to learn a language with.
<linduxed> ij: well maybe "learn the language" is badly formulated
<linduxed> i want to use the stuff i've learnt so far and apply it
<ij> Something like that.
idkazuma has quit [Remote host closed the connection]
<JonnieCache> linduxed: i personally would advise you to start with rails then move onto sinatra
monkegjinni has quit [Read error: Connection reset by peer]
<lessless> what is the analogue for this function in ruby http://pastie.org/7384506 ?
<ij> WAT
<JonnieCache> rails is a little bit like training wheels on a bike
johnmlocklear_ has joined #ruby
<JonnieCache> (i realise there are a lot of reasons why thats wrong but for the purpose of this conversation its pretty much true)
<ij> I'd suggest to write console apps and stay away from rails, unless you really need a web page.
<paper_> or like a set of metal railings that guide you along a certain path
<ij> Well okay, that's an argument.
<paper_> :P
<apeiros> lessless: care to show a sample in-/output?
monkegjinni has joined #ruby
<linduxed> ij: well the point is to make a webpage...
<ij> I thought it was learning ruby.
a_a_g has quit [Ping timeout: 276 seconds]
yashshah has quit [Read error: Connection reset by peer]
<linduxed> ij: well, yes
<ij> So which one is it?
<linduxed> hmmm
<ij> Because if it's both, you're doing it wrong.
<ij> IMO
<ij> I could be wrong.
KazW is now known as KazW_away
atyz has quit [Quit: Leaving...]
<linduxed> it's to apply what i've learned about ruby, by creating an interactive webpage of some sort
<linduxed> that was my idea
yashshah has joined #ruby
<lessless> apeiros, echo hexbin('1234567890') -> 4Vx�
<linduxed> and, hopefully, learn some new things in the process
aganov has quit [Quit: aganov]
Mattix has quit [Ping timeout: 264 seconds]
<JonnieCache> the best way to learn any creative skill is to make something *you* want to make, first and foremost
<apeiros> lessless: bad choice, since you didn't show the control characters it emits
aganov has joined #ruby
<apeiros> lessless: but I understand what it does. you want pack/unpack
<linduxed> JonnieCache: well yes, that was my thought! i was just unsure of what tool to use
<apeiros> >> ["1234567890"].pack("H*")
<eval-in> apeiros => "\x124Vx\x90" (http://eval.in/15761)
<JonnieCache> one, then the other
wallerdev has joined #ruby
nEmiSH_ has quit [Quit: nEmiSH_]
<JonnieCache> you should be able to make your backlog tracker in both frameworks inside an afternoon, if you already know how code
chandankumar has quit [Ping timeout: 252 seconds]
Neandre has joined #ruby
<lessless> apeiros, gr8, I really hope that there will be no need to dive into the php :)
niklasb has joined #ruby
Czupa has joined #ruby
akashj87 has quit [Read error: Connection reset by peer]
tevio has quit [Remote host closed the connection]
baz_ has joined #ruby
akashj87 has joined #ruby
rdark has joined #ruby
tevio has joined #ruby
atyz has joined #ruby
drale2k has quit [Quit: Leaving...]
angusiguess has joined #ruby
<paper_> apeiros: haha is this true? the German word for 'birth control pill' is 'antibabypille'
<MrZYX> yep, that's right
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Hanmac> paper_: http://www.cbc.ca/news/canada/british-columbia/story/2013/04/08/ns-birth-control-pill-recalls.html it seems that is normal that they use placebos as 'birth control pill' :P
b0oh has left #ruby [#ruby]
sayan has quit [Read error: Connection reset by peer]
divout has quit [Remote host closed the connection]
tevio has quit [Remote host closed the connection]
nightfalcon has quit [Ping timeout: 260 seconds]
chase-work has quit [Quit: Textual IRC Client: www.textualapp.com]
Kruppe has joined #ruby
invisime has joined #ruby
smt has joined #ruby
smt has left #ruby [#ruby]
asphxia^^ has joined #ruby
marr has quit [Ping timeout: 248 seconds]
Muz_ is now known as Muz
<Bofu2U> Is there a way to map hash keys to methods? aka a['b'] via a.b?
<MrZYX> you probably want an OpenStruct
TheAscender has quit [Remote host closed the connection]
<Hanmac> where is banister? when i I want something from him he is not there ... thats is discusting ...
NiteRain has quit [Ping timeout: 246 seconds]
rdark has quit [Ping timeout: 256 seconds]
KazW_away is now known as KazW
<Bofu2U> MrZYX, thanks :)
ngcazz has quit [Ping timeout: 245 seconds]
akashj87__ has joined #ruby
rdark has joined #ruby
akashj87__ has quit [Client Quit]
akashj87 has quit [Ping timeout: 240 seconds]
<vyrus001> having a problem with the pcap gem, extconf says if have_header("pcap.h") && have_library("pcap", "pcap_open_live")
<vyrus001> but the actuall pcap.h file has #include <pcap/pcap.h>
chendo_ has joined #ruby
<vyrus001> inside pcap/pcap.h is the function pcap_t*pcap_open_live(const char *, int, int, int, char *);
<vyrus001> but when i try to gem install pcap with -- my/pcap/dir
<vyrus001> i get checking for pcap_open_live() in -lpcap... no
<vyrus001> yet, the previous line is checking for pcap.h... yes
yacks has quit [Ping timeout: 252 seconds]
jpcamara has joined #ruby
<vyrus001> any idea why have_library would not be traversing pcap.h to find pcap/pcap.h and the function it's looking for?
sambio has joined #ruby
sambio has joined #ruby
yacks has joined #ruby
elwampa has joined #ruby
axl_ has joined #ruby
elwampa has left #ruby [#ruby]
chandankumar has joined #ruby
chendo_ has quit [Ping timeout: 252 seconds]
mengu has quit [Ping timeout: 245 seconds]
yshh has joined #ruby
chendo_ has joined #ruby
aganov has quit [Quit: aganov]
aganov has joined #ruby
DaDaDOSPrompt has quit [Quit: quittin']
ananthakumaran has joined #ruby
sayan has joined #ruby
realDAB has joined #ruby
ananthakumaran1 has quit [Ping timeout: 252 seconds]
yshh has quit [Ping timeout: 256 seconds]
sk87 has joined #ruby
daniel_- has quit [Read error: Operation timed out]
miso1337 has quit [Quit: afk]
cha1tanya has quit [Ping timeout: 256 seconds]
bonty_ssh has quit [Remote host closed the connection]
F1skr has joined #ruby
rdark has quit [Ping timeout: 248 seconds]
ctp has quit [Quit: Linkinus - http://linkinus.com]
yashshah_ has joined #ruby
yashshah has quit [Ping timeout: 255 seconds]
charliesome_ has joined #ruby
rdark has joined #ruby
divout has joined #ruby
<qohelet_> is there a simpler way to do the print part of this http://eval.in/15782 ?
dhruvasagar has joined #ruby
david___ has quit [Ping timeout: 245 seconds]
sailias has joined #ruby
forced_request has joined #ruby
Rumsteak has quit [Quit: Rumsteak]
danslo has quit [Quit: danslo]
<linduxed> is there a linter project for ruby?
justsee has quit [Ping timeout: 245 seconds]
<matti> linduxed: Ask Google.
<charliesome_> qohelet_: String#*
<linduxed> matti: i have, but the answer seems to almost always be "use ruby -cw"
<linduxed> and that isn't quite the same thing
<qohelet_> charliesome_ nice!
b0oh has joined #ruby
tealmage has joined #ruby
<charliesome_> qohelet_: http://eval.in/15786
sayan has quit [Ping timeout: 252 seconds]
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
nezumi has quit [Ping timeout: 245 seconds]
charliesome_ is now known as charliesome
csaunders has quit [Quit: Computer has gone to sleep.]
<qohelet_> charliesome wonderful, i'm too rookie for that
noop has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
wolcanus has joined #ruby
noop has joined #ruby
tealmage has quit [Ping timeout: 245 seconds]
axl_ has quit [Ping timeout: 257 seconds]
a_a_g has joined #ruby
freerobby has quit [Client Quit]
Macaveli has quit [Read error: Operation timed out]
axl_ has joined #ruby
KazW is now known as KazW_away
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
anonymuse has joined #ruby
love_color_text has quit [Ping timeout: 260 seconds]
breakingthings has joined #ruby
wesside has joined #ruby
danslo has joined #ruby
KazW_away is now known as KazW
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
rezzack has joined #ruby
_nitti has joined #ruby
Arzaga has joined #ruby
EPIK has quit [Ping timeout: 256 seconds]
wmoxam has joined #ruby
pskosinski has joined #ruby
dustint has joined #ruby
bguery has joined #ruby
<bguery> hi
yshh has joined #ruby
PanPan has quit [Quit: ChatZilla 0.9.90 [Firefox 19.0.2/20130307023931]]
peterhellberg has quit [Remote host closed the connection]
b0oh has left #ruby [#ruby]
bonty_ssh has joined #ruby
ariedler has joined #ruby
freeayu has quit [Remote host closed the connection]
Arzaga has quit [Quit: Computer has gone to sleep.]
csaunders has joined #ruby
idkazuma has joined #ruby
sambao21 has joined #ruby
ikst has joined #ruby
robscomputer_ has quit [Ping timeout: 256 seconds]
skattyadz has quit [Quit: skattyadz]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
realDAB has quit [Quit: realDAB]
ikst has quit [Remote host closed the connection]
ikst has joined #ruby
ikst is now known as ikstrm
bonty_ssh has quit [Ping timeout: 276 seconds]
whitedawg has joined #ruby
Astral_ has joined #ruby
Rumsteak has joined #ruby
uris has joined #ruby
adam12 has quit [Ping timeout: 240 seconds]
KazW is now known as KazW_away
jpcamara has quit [Quit: jpcamara]
ttt has quit [Remote host closed the connection]
Astralum has quit [Ping timeout: 240 seconds]
randomautomator has joined #ruby
noahsussman has joined #ruby
noahsussman has quit [Remote host closed the connection]
<bguery> when using capistrano, it is possible to get the current 'stage' using the multistage extension?
noahsussman has joined #ruby
jon_w has joined #ruby
monkegji_ has joined #ruby
[eDu] has quit [Quit: [eDu]]
bean__ has joined #ruby
bean__ has quit [Max SendQ exceeded]
bean__ has joined #ruby
monkegjinni has quit [Ping timeout: 256 seconds]
freerobby has joined #ruby
dustint has quit [Ping timeout: 256 seconds]
jamesfung14 has joined #ruby
adam12 has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
chrishunt has joined #ruby
KazW_away is now known as KazW
girija has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Macaveli has joined #ruby
monkegji_ has quit [Remote host closed the connection]
hmarr has quit [Ping timeout: 252 seconds]
noahsussman has left #ruby [#ruby]
<troessner> bguery, IF i remember correctly capistrano sets up a `stage` variable which you can refer to in your scripts
hmarr has joined #ruby
gaahrdner has joined #ruby
jonathanwallace has joined #ruby
<apeiros> awesome workflows for the win - fix gem on work desktop, push to company git server, pull to work laptop, push to github, pull on private laptop, push to rubygems, bundle update on work desktop
<bguery> troessner, ok, I'm not a ruby developer, so I'm not aware on how I could get it from a custom task, I tried task :something do puts stage; end but it looks like the 'stage' symbol is not found
mercwithamouth has joined #ruby
daniel_- has joined #ruby
KevinSjoberg has quit [Quit: Textual IRC Client: www.textualapp.com]
voodoofish has quit [Ping timeout: 246 seconds]
<troessner> bguery, afraid i can't help you there further, this is like 5 years ago, sorry
yshh has quit [Remote host closed the connection]
nyuszika7h has quit [Remote host closed the connection]
girija has joined #ruby
arya has joined #ruby
nyuszika7h has joined #ruby
endzyme has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
Macaveli has left #ruby ["Leaving"]
endzyme has quit [Read error: Connection reset by peer]
endzyme has joined #ruby
jtharris has joined #ruby
interactionjaxsn has joined #ruby
dustint has joined #ruby
pioz has joined #ruby
LennyLinux has quit [Read error: Connection reset by peer]
LennyLinux has joined #ruby
KazW is now known as KazW_away
camilasan has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 260 seconds]
KazW_away is now known as KazW
jerius_ has joined #ruby
[eDu] has joined #ruby
monkegjinni has joined #ruby
tealmage has joined #ruby
bean__ has quit [Quit: Computer has gone to sleep.]
camilasan has joined #ruby
jerius has quit [Ping timeout: 245 seconds]
jerius_ is now known as jerius
nyuszika7h has quit [Read error: Connection reset by peer]
chrisnicola has joined #ruby
tommyvyo has joined #ruby
nyuszika7h has joined #ruby
<bguery> troessner, too bad, thanks anyway
failshell has joined #ruby
<Hanmac> apeiros: i think i need to drop my plans with instance_method and instance_exec ... i think they are too meta and too difficult to debug ... currently i am back again to my private *_cs_* methods ... :/
voodoofish has joined #ruby
aganov has quit [Quit: aganov]
a_a_g has quit [Quit: Leaving.]
rdark has quit [Ping timeout: 248 seconds]
jgarvey has joined #ruby
codecop has quit [Remote host closed the connection]
jprovazn has quit [Quit: Leaving]
wolcanus has quit [Read error: Connection reset by peer]
ph^ has quit [Ping timeout: 256 seconds]
wolcanus has joined #ruby
rdark has joined #ruby
pioz has quit [Quit: This computer has gone to sleep]
<ij> Is a singleton class always created when creating an object or only when there's a neccessity?
momomomomo has joined #ruby
<paper_> ij: for objects they're created lazily, for classes they're created when the class is defined
sleetdrop has joined #ruby
<ij> cool, thanks
tagrudev has quit [Quit: Me = Awesome]
robscomputer_ has joined #ruby
akemrir has quit [Quit: WeeChat 0.4.0]
t_p has joined #ruby
atyz has quit [Quit: Leaving...]
<paper_> ij: for modules they're created lazily too
aytch has quit [Ping timeout: 245 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
atyz has joined #ruby
monkegjinni has joined #ruby
<Hanmac> for false, true and nil, there is no real singleton_class, but the normal Class acts like one
<ij> Same for numbers?
DrShoggoth has quit [Quit: Leaving]
<ij> Oh, wait, you can't define singleton on those.
<Hanmac> yeah, true, false and nil are a bit different
cbot_ has joined #ruby
chrisnicola has quit [Quit: This computer has gone to sleep]
atyz has quit [Client Quit]
jbueza has joined #ruby
v0n has joined #ruby
aytch has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
[eDu] has quit [Quit: [eDu]]
davetherat has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 245 seconds]
davetherat has joined #ruby
<apeiros> Hanmac: :-/
jpcamara has joined #ruby
keyvan has quit [Remote host closed the connection]
tevio has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<Hanmac> apeiros: what is the smilie about? about that this three are different or about my _cs_ methods?
keej has joined #ruby
atyz has joined #ruby
v0n has quit [Client Quit]
v0n has joined #ruby
ctp has joined #ruby
_maes_ has joined #ruby
yann_ck has joined #ruby
jeffreybaird has joined #ruby
noos has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
aytch has quit [Ping timeout: 240 seconds]
Lockzi has joined #ruby
pitzips has joined #ruby
wesside_ has joined #ruby
hogeo has quit [Remote host closed the connection]
nateberkopec has joined #ruby
yshh has joined #ruby
yshh has quit [Remote host closed the connection]
yshh has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
monkegjinni has quit [Remote host closed the connection]
zwevans has joined #ruby
ParanoidSP has joined #ruby
yshh has quit [Read error: Connection reset by peer]
yshh has joined #ruby
geekbri has joined #ruby
jeffreybaird has left #ruby [#ruby]
LaPetiteFromage has joined #ruby
bean__ has joined #ruby
filipe has quit [Ping timeout: 245 seconds]
nezumi has joined #ruby
b0oh1 has joined #ruby
b0oh1 has quit [Client Quit]
Burgestrand has quit [Quit: Burgestrand]
tevio has quit [Remote host closed the connection]
puppeh has quit [Remote host closed the connection]
monkegjinni has joined #ruby
jlast has joined #ruby
jtharris has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
wsterling has joined #ruby
wsterling has quit [Remote host closed the connection]
DrShoggoth has joined #ruby
wsterling has joined #ruby
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
jekotia has joined #ruby
drale2k has joined #ruby
wesside_ has quit [Quit: Ice cream truck!]
niceguyjames has quit [Quit: Computer has gone to sleep.]
wesside_ has joined #ruby
MarioEIU has joined #ruby
Lockzi has quit [Ping timeout: 245 seconds]
MarioEIU has left #ruby [#ruby]
Burgestrand has joined #ruby
GhettoCode has joined #ruby
wolcanus has quit [Remote host closed the connection]
enebo has joined #ruby
niceguyjames has joined #ruby
wargasm has joined #ruby
RORgasm has joined #ruby
wargasm1 has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby
braoru has quit [Quit: Leaving]
baroquebobcat has joined #ruby
mando has joined #ruby
dylan` has joined #ruby
wolcanus has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
ningu has joined #ruby
tevio has joined #ruby
Lockzi has joined #ruby
<ningu> hey n00b question here... gem list shows a gem but requre <gem> doesn't work, any idea why?
<MrZYX> ruby -v?
<ningu> require, even.
<ningu> 1.8.7
dylan has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
<ningu> OS X stock
<Hanmac> ningu require "rubygems" first
<ericwood> 1.8.7 :(
<ningu> ah ok :)
* ericwood shakes his head
ttt has joined #ruby
<ningu> what would a more sensible stock version be?
<ningu> I can always install a newer one, this is just a one-off thing
<MrZYX> ningu: be aware the the current release is 2.0 and support for 1.8 will end soon
<ericwood> 2.0.0
filipe has joined #ruby
<ericwood> OS X just won't update their stuff because they're mean
dhruvasagar has joined #ruby
<ningu> yeah, looks like I need a newer version anyway since this thing uses require_relative
* MrZYX just hopes for a sec vuln. in 1.8 only after the support ended :P
<ningu> ah well I'll just brew install ruby
<ericwood> I'd recommend installing rvm and doing "rvm install 2.0.0"
<ningu> how come?
* ericwood shrugs
Burgestrand has quit [Quit: Burgestrand]
DefV_ is now known as DefV
elux has joined #ruby
rdark has quit [Ping timeout: 276 seconds]
<ij> Is there a method that prints the default error message from an exception?
ningu has quit [Quit: leaving]
Macaveli has joined #ruby
k610 has quit [Ping timeout: 264 seconds]
<ericwood> the exception object should have a message method
ttt has quit [Ping timeout: 256 seconds]
nobuoka has joined #ruby
k610 has joined #ruby
rdark has joined #ruby
<ij> That's exception's error message, but I meant the whole thing, if it weren't caught — stack trace and all that.
niklasb has joined #ruby
<ericwood> p exception.backtrace
<ij> That's still not it.
yalue has joined #ruby
d2dchat has joined #ruby
tootubular has joined #ruby
<ij> I know I can produce it myself, but I want to abstain myself from that.
<ericwood> what you want doesn't exist
TooTubular_ has joined #ruby
<ij> Clearly, it exists if it's being produced by ruby all the time.
<ericwood> it's a custom thing most likely
<ij> It looks like it simply isn't exported as a mehtod.
<ij> ericwood, oh, come on
Macaveli has left #ruby [#ruby]
jonahR has joined #ruby
<ij> ruby -e '0/0'
dylan` has quit [Read error: Connection reset by peer]
<paper_> ij: what are u asking for sry
chrisnicola has joined #ruby
dylan` has joined #ruby
dmerrick has joined #ruby
ianbishop has joined #ruby
d2dchat has quit [Read error: Connection reset by peer]
<ericwood> puts e.backtrace.join("\n")
<ianbishop> Is there any particular reason why an assignment returns the thing on the right side?
Xeago has joined #ruby
<ericwood> puts e.message, e.backtrace.join("\n")
<paper_> ericwood: why not just: puts e.backtrace
<ericwood> paper_: read what I just posted
<ericwood> it looks practically identical to what irb outputs
rdev has joined #ruby
apeiros has quit [Remote host closed the connection]
<paper_> ericwood: but you dont need the join
atyz has quit [Quit: Linkinus - http://linkinus.com]
<ericwood> paper_: good point
<ericwood> ianbishop: because that's the new value
<ianbishop> yeah, but I mean if I do {}["foo"] = "bar"
<ianbishop> wouldn't => { "foo" => "bar" }
<ianbishop> make more sense
<ianbishop> this is particularly annoying for reduces
<paper_> ericwood: here's how we do it in pry: https://gist.github.com/ed15b97bf6e1a1162a39
<ericwood> paper_: wait you're banister?!
<paper_> maybe
<ericwood> hehe
freakazoid0223 has joined #ruby
BaconRose has quit [Ping timeout: 240 seconds]
sayan has joined #ruby
monkegjinni has quit [Remote host closed the connection]
a_a_g has joined #ruby
<ianbishop> ie [1,2,3].reduce({}) { |a, e| a[e] = e+1 } doesn't do what you might think it does
<Mon_Ouie> ianbishop: It can be used as a shorthand, e.g. while line = try_read_line do stuff_with(line) end
skum has quit [Quit: Leaving...]
<Mon_Ouie> And it's just a rule that makes it behave consistently
huntertusk has joined #ruby
<Dwarf> Can anyone help me with some array stuff?
danneu has joined #ruby
pduin has quit [Remote host closed the connection]
sambio has quit [Read error: Connection reset by peer]
<Dwarf> It's kinda hard to explain
<Mon_Ouie> ianbishop: There's no reason to use reduce there either
<ianbishop> Mon_Ouie it's just an example
chrishough has joined #ruby
cha1tanya has joined #ruby
dylan_ has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
<Mon_Ouie> Sure, but it still is a bad use of reduce is if it's reduce({}) { |obj, hash| stuff_that_doesnt_change_the_accumulator }
daniel_- has quit [Quit: WeeChat 0.4.0]
<Mon_Ouie> (well, it's the other way around for the arguments)
<paper_> ianbishop: Mon_Ouie is the best
<Mon_Ouie> ericwood: We have confirmation that he is banisterfiend ;)
<Hanmac> paper_: you HIDER! did you see the newest AT episode?
<ericwood> sneaky devil
<Hanmac> it has Riker included ;P
<paper_> Hanmac: no not, yet, link?
<paper_> Hanmac: i want to meet CMO
<ianbishop> Mon_Ouie: reduce args are accum, elem - see here: http://ruby-doc.org/core-2.0/Enumerable.html#method-i-reduce
<paper_> Hanmac: is cmo in it?
<ianbishop> Mon_Ouie: And if you have "stuff_that_doesnt_change_the_accumulator" then you certainly should not be using a reduce :)
<Mon_Ouie> I know ;) <Mon_Ouie> (well, it's the other way around for the arguments)
<Hanmac> paper_: CMO is the small one, BMO has middle size, i want to look how big AMO is ;P
<Mon_Ouie> Well, your example is like that
<Hanmac> paper_: yeah cmo appears in the episode
tomsthumb has quit [Quit: Leaving.]
dylan` has quit [Ping timeout: 245 seconds]
whitedawg has quit [Ping timeout: 240 seconds]
<ianbishop> ah, sorry I thought you were saying I had them backward - my irssi is being all weird and showing msgs out of order :)
whitedawg has joined #ruby
juarlex has joined #ruby
<Hanmac> Mon_Ouie: i used more worse stuff with instance_method, define_method instance_exec :P
rdev has quit [Quit: Linkinus - http://linkinus.com]
dylan_ has quit [Read error: Connection reset by peer]
huntertusk has quit [Remote host closed the connection]
dylan_ has joined #ruby
<danneu> ianbishop: ever try weechat? (brew install weechat, etc). it's like irssi with some better defaults
<e-dard> Hi, I'm currently experimenting between writing a CSV writing part of our system in Ruby or some faster language (currently Go).
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
<e-dard> Go is about 8 times faster than 1.9.3 for writing (and quoting) data to a csv file. Ruby is using FasterCSV ASFAIK, which is written in C. Where is the gap coming from?
<ianbishop> exit
tiripamwe has joined #ruby
<e-dard> hand wavy answers welcome :-P
ianbishop has quit [Quit: Lost terminal]
keej has quit [Quit: Textual IRC Client: www.textualapp.com]
<Mon_Ouie> FasterCSV is written in Ruby
<ericwood> ruby is written in C
arya has quit [Ping timeout: 248 seconds]
<ericwood> so ha!
<wmoxam> e-dard: gist the code for both
<e-dard> wmoxam: Sure.
adac has quit [Quit: Leaving]
<Mon_Ouie> Notice FasterCSV is the standard CSV library in Ruby now
jonathanwallace has joined #ruby
rdev has joined #ruby
ianbishop has joined #ruby
sayan has quit [Read error: Connection reset by peer]
tevio has quit [Remote host closed the connection]
<e-dard> Mon_Ouie: yup. That's what I assumed (when I said Ruby is using FasterCSV)
<tubbo> FasterCSV
<tubbo> FasterC
realDAB has joined #ruby
* Hanmac writes this gems in C++
<tubbo> Ruby is a Faster C?
<e-dard> Please note that I'm only talking about the time to *write to file* not the random data generation
codezombie has joined #ruby
mmitchell has joined #ruby
<tubbo> e-dard: well go has asynchronous I/O doesn't it?
realDAB has quit [Client Quit]
<tubbo> so...it would make sense to me that writing files takes longer on Ruby (average) than it would on Go
<tubbo> if that's the case
<tubbo> but i'm not sure of your metrics. are you talking like 1 file or how fast can Ruby write 1000 files at the same time?
girija has quit [Ping timeout: 252 seconds]
arya has joined #ruby
tevio has joined #ruby
<e-dard> tubbo: 1 file
<tubbo> hmm, i'm not sure
<ericwood> forkforkfork
<tubbo> my guess would be that async I/O business but i really can't draw any conclusions without knowing more about the diffs of Ruby and Go's I/O is
Zai00 has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Ping timeout: 276 seconds]
<danneu> dig into the source
hiyakashi has joined #ruby
GhettoCode has quit [Quit: Computer has gone to sleep.]
hiyakashi has quit [Client Quit]
clocKwize has quit [Quit: clocKwize]
drale2k has quit [Quit: Leaving...]
g0bl1n has joined #ruby
drale2k has joined #ruby
<e-dard> tubbo: I don't think Go uses async IO by default (I just asked on #go-lang)
<paper_> Hanmac: wtf cmo appears for 0.5 of a second
acrussell has joined #ruby
<Hanmac> paper_: yeah :( but better than nothing ... did you see the full episode yet?
<paper_> Hanmac: yeah it's pretty awesome, my fave in season 5 so far though is 'the little people'
<paper_> that was pretty messed up :)
Emmanuel_Chanel has quit [Quit: Leaving]
<Hanmac> paper_: and the glitch episode? the combined an snake with a spider ;D
<paper_> the glitch episode i didnt like that much
<paper_> Hanmac: what did you think of the new lemongrab episodes?
<danneu> e-dard: your test doesn't just time the write. you're also iterating across that massive DATA ruby object and marshalling in rubyland
<JonnieCache> go doesnt use async "by default" in the way that node does
noahsussman has joined #ruby
<JonnieCache> but it has these constructs called "channels" which are first class language features for doing that kind of thing neatly
pioz has joined #ruby
<Hanmac> paper_: i dont know ... i wish Goliad and Stormo will apear again ... or Habo, or the Ghost of the Haunted House
<e-dard> danneu: OK, so basically that's where the slow down is? Because Ruby is struggling to keep up when iterating over the data?
greenarrow has quit [Read error: Connection reset by peer]
<JonnieCache> they are like unix pipes taken to their ultimate conclusion
<danneu> e-dard: no, i'm just naively pointing it out.
<Hanmac> paper_: http://vimeo.com/63386636#t=293
<danneu> e-dard: i'd check out the source for what's actually happening in `csv << row` magic.
greenarrow has joined #ruby
dsdeiz has joined #ruby
<JonnieCache> e-dard: avoid making any objects you dont need
tootubular has quit [Quit: tootubular]
TooTubular_ is now known as TooTubular
<JonnieCache> e-dard: the really slow part of ruby is keeping track of the object model
mikepack has joined #ruby
<e-dard> OK, so append would be faster?
<dsdeiz> heya, anyone using rbenv? what's the common way of adding the path to installed gems? say i did 'gem install compass' and the binary is in ~/.rbenv/versions/some-version/bin/compass?
TooTubular is now known as tootubular
<JonnieCache> dsdeiz: you need to run rbenv rehash probably
jerius has quit []
sayan has joined #ruby
<e-dard> dang.. Turns out Go is 8 times faster at writing *and* generating the data (bug in my Go code)
<dsdeiz> ohhh
rippa has joined #ruby
<dsdeiz> awesome, thx!
<Hanmac> paper_: so you named after paper-pete? ;P
soulofpeace has joined #ruby
tomsthumb has joined #ruby
alup has quit [Quit: Leaving]
<tubbo> e-dard: hmm, good to know
<e-dard> JonnieCache: so what quick improvements could I make to the Ruby code? I realise Ruby will always be slower, but unless I can seriously speed it up gonna have to ditch it :(
martinklepsch has quit [Ping timeout: 264 seconds]
<peta_> hi guys
codecop has joined #ruby
NiteRain has joined #ruby
sayan has quit [Ping timeout: 245 seconds]
cha1tanya has quit [Ping timeout: 245 seconds]
<danneu> e-dard: try returning 'nil'. after the DATA.each is finished (before you leave the `time` block)
<nezumi> e-dard, maybe look at JRuby? It has some pretty good optimizations in the JVM
<Hanmac> but beware, jruby is not the solution for everything
<danneu> e-dard: if DATA.each is buffering output for display, then that would also take time.
<peta_> When I have class method xyz, how can I refer from within that class method to the class it is called on? Say that the class method xyz is defined in MySuperclass and I call it on MySubclass it will refer to MySubclass?
BadLarry has quit [Quit: quitting]
<Hanmac> peta_ you can use self
Corey has quit [Read error: Connection reset by peer]
<JonnieCache> e-dard: if youve written one in go that works and is 350% faster i would just use that one and get on with your life
Neomex has joined #ruby
<e-dard> JonnieCache: :-)
evenix has joined #ruby
cha1tanya has joined #ruby
BadLarry has joined #ruby
<peta_> Hanmac: ah right
mando has quit [Remote host closed the connection]
<peta_> thx
sayan has joined #ruby
ARCADIVS has quit [Quit: WeeChat 0.3.8]
mando has joined #ruby
Neomex has quit [Client Quit]
sambio has joined #ruby
sambio has quit [Changing host]
sambio has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
tiripamwe has quit [Ping timeout: 264 seconds]
Al__ has quit [Ping timeout: 240 seconds]
jasona has joined #ruby
nobuoka has quit [Quit: Leaving...]
sambio has quit [Client Quit]
CaTeGoRe has joined #ruby
Morkel has quit [Quit: Morkel]
bluOxigen has joined #ruby
maletor has joined #ruby
Czupa has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
jon_w has quit [Ping timeout: 245 seconds]
brennanMKE has joined #ruby
wolcanus has quit [Remote host closed the connection]
jon_w has joined #ruby
jon_w has quit [Max SendQ exceeded]
ckrailo has joined #ruby
jon_w has joined #ruby
jon_w has quit [Max SendQ exceeded]
jon_w has joined #ruby
jon_w has quit [Max SendQ exceeded]
jon_w has joined #ruby
jon_w has quit [Max SendQ exceeded]
jon_w has joined #ruby
jon_w has quit [Max SendQ exceeded]
CaTeGoRe has left #ruby ["Leaving"]
jon_w has joined #ruby
atmosx has joined #ruby
maletor has quit [Ping timeout: 256 seconds]
volte_ has joined #ruby
tiripamwe has joined #ruby
Zolo has joined #ruby
volte has quit [Ping timeout: 256 seconds]
marcgg has joined #ruby
<ericwood> I keep using "this" instead of "self" because apparently I can't switch between ruby and JS easily >.<
marcgg_ has quit [Ping timeout: 240 seconds]
<danneu> ericwood: now's a great time to start coffeescript then where "@" is shorthand for this!
<danneu> always good to throw your brain some obstacles to keep it sharp
Zolo has quit [Remote host closed the connection]
<danneu> this.color vs @color
Kruppe has quit [Remote host closed the connection]
Zolo has joined #ruby
<danneu> instance variable? nope. dynamic scope
dylan` has joined #ruby
dylan` has left #ruby [#ruby]
mikecmpbll has joined #ruby
jon_w has quit [Ping timeout: 256 seconds]
r0bby has joined #ruby
maletor has joined #ruby
<csmrfx> >> this = self
<eval-in> csmrfx => main (http://eval.in/15803)
<csmrfx> done
Neandre has quit [Remote host closed the connection]
hamakn_ has quit [Remote host closed the connection]
maletor has quit [Max SendQ exceeded]
<danneu> huehue
jgrevich has joined #ruby
dylan_ has quit [Ping timeout: 256 seconds]
robbyoconnor has quit [Ping timeout: 246 seconds]
Rumsteak has quit [Quit: Rumsteak]
Zolo has quit [Ping timeout: 264 seconds]
<noos> \quit
noos has quit [Quit: leaving]
Burgestrand has joined #ruby
danman has joined #ruby
Burgestrand has quit [Client Quit]
ant384 has quit [Quit: Leaving.]
Voodoofish430 has joined #ruby
Burgestrand has joined #ruby
Emmanuel_Chanel has joined #ruby
jamie_ca_ has joined #ruby
tk_ has quit [Quit: ばいばい]
knapper_tech has joined #ruby
markalanevans has quit [Quit: markalanevans]
sambao21 has quit [Quit: Computer has gone to sleep.]
mercwithamouth has quit [Ping timeout: 256 seconds]
maletor has joined #ruby
<ericwood> irc is hard
mmitchell has quit [Read error: Connection reset by peer]
mmitchel_ has joined #ruby
GhettoCode has joined #ruby
sambao21 has joined #ruby
cloke has joined #ruby
BSaboia has joined #ruby
filipe has quit [Remote host closed the connection]
maletor has quit [Read error: Connection reset by peer]
<ericwood> this = self <-- I'm totally doing that now
apeiros has joined #ruby
<ericwood> or, in my JS I can do self = this and I'm all set
tealmage has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
k610 has quit [Ping timeout: 264 seconds]
danneu has quit [Quit: WeeChat 0.3.8]
sambio has joined #ruby
sambio has quit [Changing host]
sambio has joined #ruby
mnaser has quit [Excess Flood]
xardas has joined #ruby
sayan has quit [Read error: Connection reset by peer]
carloslopes has joined #ruby
mnaser has joined #ruby
Zai00 has joined #ruby
danneu has joined #ruby
mfridh has quit [Read error: Operation timed out]
mahoney has joined #ruby
tjbiddle has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
ephemerian has quit [Quit: Leaving.]
mfridh has joined #ruby
bluOxigen has joined #ruby
guns has joined #ruby
ParanoidSP has quit [Ping timeout: 245 seconds]
beiter has quit [Quit: beiter]
thetristan has joined #ruby
dagobah has quit [Remote host closed the connection]
chrishough has quit [Quit: chrishough]
mneorr_ has quit [Remote host closed the connection]
aapzak has quit [Ping timeout: 240 seconds]
mafolz has quit [Ping timeout: 256 seconds]
mneorr has joined #ruby
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
Andromeda has joined #ruby
vlad_starkov has joined #ruby
Burgestrand has quit [Quit: Burgestrand]
mocfive has joined #ruby
aapzak has joined #ruby
zph has joined #ruby
<mocfive> <-noob Could someone link me to some examples on returning self and making chaining classes?
vlad_sta_ has joined #ruby
jpcamara has quit [Quit: jpcamara]
maletor has joined #ruby
sayan has joined #ruby
dhruvasagar has joined #ruby
hiroyuki has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
jtharris has quit [Ping timeout: 256 seconds]
zeade has joined #ruby
sleetdrop has quit [Quit: Textual IRC Client: www.textualapp.com]
kuzushi has joined #ruby
nomenkun_ has quit [Read error: Operation timed out]
keyword has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
wolcanus has joined #ruby
generalissimo has joined #ruby
Al__ has joined #ruby
tevio has quit [Remote host closed the connection]
x0F has quit [Ping timeout: 246 seconds]
veinofstars has joined #ruby
<keyword> hi guys I have a problem with delayed job I want to enqueue one process in the after_save but I always get error http://pastie.org/private/ccnrbcvqvoobosz2xwe0w anyone can helpme?
finnnnnnnnnnn has joined #ruby
skroon has quit [Ping timeout: 256 seconds]
sleetdrop has joined #ruby
<Hanmac> keyword: try at #rubyonrails
guns has quit [Quit: guns]
<ericwood> #railsonruby
keyword has left #ruby [#ruby]
<ericwood> #railsonruby is where people go to rail on ruby ;)
<troessner> mocfive, you're referring to "method chaining" i assume
<mocfive> yeah
rdev has quit [Quit: Linkinus - http://linkinus.com]
ninegrid has quit [Ping timeout: 246 seconds]
jdunck has joined #ruby
<finnnnnnnnnnn> silly question - I want to move all files and folders to their parent folder then delete the original folder - FileUtils.mv 'release/child_folder/*', 'release/'
ariedler has quit [Remote host closed the connection]
sambio has quit []
<finnnnnnnnnnn> I have the incorrect syntax
ninegrid has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
<troessner> mocfive, class C; def first; self; end; def second; self; end; end -> then you can do: c = C.new; c.first.second
<troessner> that's all there is to it
<mocfive> thanks!
<atmosx> who's really good with facebook?
<paper_> atmosx: Mon_Ouie
<atmosx> paper_: I know it's an insult
<atmosx> lol
<atmosx> but is there any way to hide a friendship thing from your timeline to avoid a long-fucking-discussion?
Andromeda has quit [Remote host closed the connection]
<bean__> atmosx: you do know this is #ruby right?
bonty_ssh has joined #ruby
<ericwood> rubyists love facebook
<ericwood> duh
<bean__> lol
<atmosx> bean__: yes, where people know one thing or two about computers. I mean, I think they do.
<atmosx> I hate facebook
<atmosx> I love twitter
<bean__> nick julian-delphiki
<ericwood> twitter is awesome
bean__ is now known as julian-delphiki
<ericwood> irc is hard
<atmosx> my fb timeline is utterly idiotic, while my twitter tl is much less so.
<julian-delphiki> irc is hard
<julian-delphiki> apparently
<Muz> IRC is hard. Let's go shopping.
<atmosx> if idiots could fly irc would be an airport (that's for sure)
etcetera has joined #ruby
<atmosx> freenode is okay though
timonv has quit [Remote host closed the connection]
mootpointer has joined #ruby
* atmosx recalls IRC-ing from 2000
<reactormonk> atmosx, IRC is mostly for lulz
<ericwood> irc is for not wanting to accomplish anything
lkba has quit [Ping timeout: 245 seconds]
<atmosx> okay fuck it, I can't aviod the discussion. I'll just go with it.
<atmosx> I love irc
chrishough has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<atmosx> seriously, I love it. It kept me company so many times and also gave me solutions that I'd never imagine, so it's more than okay. Fb and twitter are okay too as long as you use for what they are: hook-up / news.
<reactormonk> ericwood, and help other people do something ;-)
codezombie has quit [Quit: Linkinus - http://linkinus.com]
mocfive has quit [Remote host closed the connection]
<ericwood> heh
jtharris has joined #ruby
mpereira has quit [Ping timeout: 255 seconds]
bonty_ssh has quit [Ping timeout: 245 seconds]
Quebert has joined #ruby
finnnnnnnnnnn has left #ruby [#ruby]
DrCode has quit [Remote host closed the connection]
DrCode has joined #ruby
soulofpeace has quit [Ping timeout: 252 seconds]
tjbiddle_ has joined #ruby
yashshah_ has quit [Quit: Konversation terminated!]
tjbiddle has quit [Ping timeout: 245 seconds]
tjbiddle has joined #ruby
tylersmith has joined #ruby
slainer68 has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 264 seconds]
wolcanus_ has joined #ruby
yashshah_ has joined #ruby
rdev has joined #ruby
wolcanus has quit [Ping timeout: 256 seconds]
rickmasta has joined #ruby
sambio has joined #ruby
baroquebobcat has joined #ruby
jamesfung14 has quit [Ping timeout: 245 seconds]
Radnor has left #ruby [#ruby]
yashshah- has joined #ruby
r0bby_ has joined #ruby
tevio has joined #ruby
enebo has quit [Quit: enebo]
buibex has joined #ruby
tjbiddle_ has quit [Ping timeout: 245 seconds]
r0bby has quit [Ping timeout: 248 seconds]
enriclluelles has quit [Remote host closed the connection]
JonnieCache has quit [Ping timeout: 245 seconds]
gaahrdner has quit [Remote host closed the connection]
yashshah_ has quit [Ping timeout: 248 seconds]
wolcanus_ has quit [Read error: Connection reset by peer]
chrishough has quit [Quit: chrishough]
ffranz has joined #ruby
chrishough has joined #ruby
jpcamara has joined #ruby
nari has quit [Ping timeout: 264 seconds]
wolcanus has joined #ruby
dsdeiz has quit [Ping timeout: 260 seconds]
chrisnicola has quit [Quit: This computer has gone to sleep]
mityaz has joined #ruby
pioz has quit [Quit: This computer has gone to sleep]
pi3r has quit [Quit: Leaving]
br4ndon has joined #ruby
uris has quit [Ping timeout: 245 seconds]
thetristan has quit [Ping timeout: 256 seconds]
haxrbyte_ has joined #ruby
twoism has joined #ruby
haxrbyte has quit [Ping timeout: 245 seconds]
<shevy> Hanmac well, gaming companies suck anyway
<shevy> atmosx IRC can be great, yeah
<shevy> in the past I used it mostly as a tool for social connections
<shevy> nowadays, I mostly just use it for technical things, getting to knowledge or specific kind of news
<shevy> Muz you still use '.' properly :)
<atmosx> shevy: me too, all the channels I'm in are more or less technical
indyrl has joined #ruby
<atmosx> shevy: there's facebook for socializing now :-P
indyrl has quit [Max SendQ exceeded]
<shevy> dunno. I don't use facebook and never will
<shevy> neither google+
wolcanus has quit [Read error: Connection reset by peer]
ph^ has joined #ruby
<atmosx> shevy: that's not bad
<atmosx> shevy: twitter?
wolcanus has joined #ruby
tjbiddle_ has joined #ruby
<atmosx> I mean, I'll stop using facebook once I've finnish the univ here
Zolo has joined #ruby
<atmosx> I use google+ but not too much
<atmosx> I only like twitter
<atmosx> FB is too much of a distraction
tjbiddle__ has joined #ruby
<atmosx> although it's the best way to get people into parties and organize shit
sk87 has quit [Quit: sk87]
<atmosx> stay in touch with everyone etc.
dhruvasagar has joined #ruby
Davey has joined #ruby
jeebster has joined #ruby
workmad3 has joined #ruby
tjbiddle has quit [Read error: Connection reset by peer]
tjbiddle__ is now known as tjbiddle
sepp2k has joined #ruby
<atmosx> anyway g2g
<atmosx> later
atmosx has quit [Quit: And so the story goes…]
br4ndon_ has joined #ruby
tevio has quit [Remote host closed the connection]
tjbiddle_ has quit [Ping timeout: 240 seconds]
a_a_g has joined #ruby
brianpWins has joined #ruby
estjang has joined #ruby
estjang has quit [Remote host closed the connection]
ffranz has quit [Quit: Leaving]
estjang has joined #ruby
br4ndon has quit [Ping timeout: 256 seconds]
lmf40 has quit [Remote host closed the connection]
haxrbyte_ has quit [Remote host closed the connection]
dirtnasty has joined #ruby
haxrbyte has joined #ruby
BSaboia has quit [Ping timeout: 245 seconds]
bonty_ssh has joined #ruby
thetristan has joined #ruby
enebo has joined #ruby
johnmlocklear_ has quit [Ping timeout: 246 seconds]
brennanMKE has quit [Remote host closed the connection]
dirtnasty has quit [Remote host closed the connection]
uris has joined #ruby
anderse has joined #ruby
nalaginrut has quit [Ping timeout: 245 seconds]
<peta_> How can I specify the object type of a static class attribute with Yardoc?
<peta_> (I am using RubyMine and it reads the yardoc comments for feeding its autocompletion functionality)
tjbiddle has quit [Quit: tjbiddle]
tjbiddle has joined #ruby
tiripamwe has quit [Quit: Leaving]
stkowski has joined #ruby
bonty_ssh has quit [Ping timeout: 245 seconds]
monkegjinni has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
danslo has quit [Quit: danslo]
<bguery> using the capistrano multistage extension, is it possible to override value inside a {stage}.rb ?
<bguery> something like overriding the webroot
elaptics is now known as elaptics`away
arya has quit [Ping timeout: 248 seconds]
yann_ck has quit [Ping timeout: 252 seconds]
security has joined #ruby
rupee has joined #ruby
emmanuelux has joined #ruby
megha has quit [Ping timeout: 252 seconds]
arya has joined #ruby
ffranz has joined #ruby
Al__ has quit [Quit: Al__]
generalissimo has quit [Remote host closed the connection]
mmitchel_ has quit [Ping timeout: 264 seconds]
Andromeda has joined #ruby
csaunders has quit [Quit: Computer has gone to sleep.]
markalanevans has joined #ruby
marcdel has joined #ruby
Zolo has quit [Remote host closed the connection]
dr_bob has quit [Quit: Leaving.]
cobragoat has joined #ruby
mockra has joined #ruby
kofno has quit [Remote host closed the connection]
cmarques has quit [Ping timeout: 276 seconds]
estjang has quit [Remote host closed the connection]
ariedler has joined #ruby
gyre007 has quit [Remote host closed the connection]
csaunders has joined #ruby
bricker`LA has quit [Read error: Connection reset by peer]
monkegjinni has quit [Remote host closed the connection]
thetristan has quit [Quit: thetristan]
security is now known as baba
dp has joined #ruby
JohnBat26 has joined #ruby
<dp> is it possible to have a module with some number of classes, and have them all share a variable that's declared for the module?
kofno has joined #ruby
KarolisD has joined #ruby
Es0teric has joined #ruby
indyrl has joined #ruby
estjang has joined #ruby
indyrl has quit [Max SendQ exceeded]
jeffreylevesque_ has joined #ruby
<paper_> dp: maybe
niklasb has quit [Read error: No route to host]
jeffreylevesque has quit [Read error: Operation timed out]
estjang has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
<Hanmac> paper_: you see CMO and BMO yeah? "According to the wiki, AMO is supposed to be death star sized. " ;P
<paper_> Hanmac: ya hehe
maxmanders has quit [Quit: Computer has gone to sleep.]
andikr has quit [Remote host closed the connection]
camilasan has quit [Remote host closed the connection]
cbot__ has joined #ruby
chussenot has joined #ruby
aaronmcadam has quit [Quit: Leaving...]
mpereira has joined #ruby
Quebert has quit [Read error: Connection reset by peer]
cha1tanya has quit [Ping timeout: 256 seconds]
banjara has quit [Quit: Leaving.]
<marwinism> Is it possible to get a json object with key:value based on *args in some way?
cbot_ has quit [Ping timeout: 252 seconds]
cha1tanya has joined #ruby
rdark has quit [Quit: leaving]
therrell has joined #ruby
buibex has quit [Remote host closed the connection]
realDAB has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
<dp> paper_: I figured it out. thanks though :)
dp has left #ruby [#ruby]
Ontolog has joined #ruby
x0F has joined #ruby
aytch has joined #ruby
Ontolog_ has joined #ruby
johnmlocklear_ has joined #ruby
<julian-delphiki> marwinism: sure
<paper_> marwinism: JSON.dump(args)
<paper_> oh
<paper_> bbl
workmad3 has quit [Ping timeout: 276 seconds]
skroon has joined #ruby
arietis has joined #ruby
Ontolog has quit [Ping timeout: 260 seconds]
brennanMKE has joined #ruby
eldariof has joined #ruby
<julian-delphiki> marwinism: it depends on what is actually in side of the args array though
c0rn has joined #ruby
thetristan has joined #ruby
blaxter has quit [Ping timeout: 260 seconds]
AlHafoudh has joined #ruby
skroon has quit [Ping timeout: 264 seconds]
yashshah__ has joined #ruby
<AlHafoudh> can someone explain this? https://gist.github.com/alhafoudh/a3af2c5d6186b7e913d3
mahmoudimus has joined #ruby
ToApolytoXaos has joined #ruby
yashshah- has quit [Ping timeout: 248 seconds]
mootpointer has quit [Quit: Computer has gone to sleep.]
paper_ has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 240 seconds]
qohelet_ has quit [Read error: Connection timed out]
ctp has quit [Quit: Linkinus - http://linkinus.com]
F1skr has quit [Quit: WeeChat 0.4.0]
dmerrick has quit [Remote host closed the connection]
frem has joined #ruby
mercwithamouth has joined #ruby
araujo has quit [Ping timeout: 255 seconds]
mattbl has joined #ruby
Zai00 has quit [Quit: Zai00]
<julian-delphiki> AlHafoudh: what is the output of "which rails"
io_syl has joined #ruby
<AlHafoudh> julian-delphiki: /Users/alhafoudh/.rbenv/shims/rails
RORgasm has quit [Remote host closed the connection]
<AlHafoudh> well, removing all gems like actionpack, railties, etc helped
<julian-delphiki> and what does "ls -la /Users/alhafoudh/.rbenv/shims/rails"
RORgasm has joined #ruby
<julian-delphiki> show you
rickmasta has quit [Quit: Leaving...]
<AlHafoudh> -rwxr-xr-x 41 alhafoudh staff 413 Feb 13 08:45 /Users/alhafoudh/.rbenv/shims/rails
a_a_g has quit [Quit: Leaving.]
<AlHafoudh> aha! railties includes the rails binary, not the rails gem
<julian-delphiki> ah
<julian-delphiki> that'd do it
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mneorr has quit [Remote host closed the connection]
aaronmcadam has joined #ruby
RORgasm has quit [Ping timeout: 260 seconds]
paper_ has joined #ruby
mrsolo has joined #ruby
workmad3 has joined #ruby
slainer68 has joined #ruby
threesome has quit [Read error: Connection reset by peer]
jasona has quit [Quit: jasona]
<paper_> AlHafoudh: i cant access that gist
Asher has quit [Quit: Leaving.]
<AlHafoudh> paper_: i solved it
threesome has joined #ruby
johnmlocklear_ has quit [Quit: Leaving]
mark_locklear has joined #ruby
gaahrdner has joined #ruby
yannis has joined #ruby
<paper_> AlHafoudh: why bother to delete the gist though? :) might as well keep them hanging around since there's no gist quota afaik
forrest has joined #ruby
<AlHafoudh> paper_: well, you are right :) thats my first gist I deleted
chandankumar has quit [Quit: Leaving]
AlHafoudh has quit [Quit: Textual IRC Client: www.textualapp.com]
chrishough has quit [Quit: chrishough]
billiam has joined #ruby
<marwinism> julian-delphiki and paper_ thanks alot! I'll look into that!
<billiam> I've stumbled on a gem that does something like system("open path/to/generated/file"). Is there a more generic way of doing that that will be more cross-platform friendly?
slainer68 has quit [Ping timeout: 256 seconds]
<billiam> ex: system("start path/to/file") would be the equivalent in windows...
momomomomo has quit [Ping timeout: 248 seconds]
mootpointer has joined #ruby
danneu has quit [Quit: WeeChat 0.3.8]
momomomomo has joined #ruby
mneorr has joined #ruby
BizarreCake has quit [Remote host closed the connection]
thetristan has quit [Quit: thetristan]
dmerrick has joined #ruby
mpereira has quit [Ping timeout: 276 seconds]
whowantstolivef1 has joined #ruby
shock_one has joined #ruby
tjbiddle_ has joined #ruby
<Hanmac> paper_ the last AT episode was totaly "Alphanumeric!" ;P
jasona has joined #ruby
ebollens has joined #ruby
Targen has quit [Ping timeout: 245 seconds]
dmiller has joined #ruby
chandankumar has joined #ruby
<paper_> Hanmac: heavily inspired by 'narnia' :)
KarolisD has quit [Quit: Textual IRC Client: www.textualapp.com]
<Hanmac> paper_ very more inspired by StarTrek ;P
<Hanmac> paper_: StarTrek and AT share some voice actors ;P
tjbiddle has quit [Ping timeout: 252 seconds]
tjbiddle_ is now known as tjbiddle
<paper_> Hanmac: i meant in terms of going through the pillow fort (wardrobe in narnia) to another world, and time moving faster in the other world
workmad3 has quit [Ping timeout: 245 seconds]
thetristan has joined #ruby
<Hanmac> paper_ its also inspired from an StarTrek TNG Episode "The Inner Light." Riker was also Finns voice actor
<apeiros> AT?
<paper_> Hanmac: oh ok, interesting
<Hanmac> apeiros: AdventureTime
dmiller has quit [Ping timeout: 256 seconds]
<apeiros> aha, thx
maycon has quit [Read error: Connection reset by peer]
Karolis has joined #ruby
idkazuma has quit [Remote host closed the connection]
chrishough has joined #ruby
<Hanmac> paper_: for the first moment when Finn was crawling though the pillow corridor it reminds me at coraline
cmarques has joined #ruby
momomomomo has quit [Ping timeout: 252 seconds]
aytch has quit [Remote host closed the connection]
momomomomo has joined #ruby
indyrl has joined #ruby
nomenkun has joined #ruby
carlyle has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
BSaboia has joined #ruby
Neandre has joined #ruby
nomenkun has quit [Remote host closed the connection]
Cultofmetatron has joined #ruby
girija has joined #ruby
workmad3 has joined #ruby
<paper_> apeiros: are you cray cray about AT too
<apeiros> I don't know AT
maxmanders has joined #ruby
chrisnicola has joined #ruby
br4ndon has joined #ruby
<paper_> apeiros: intro for u http://www.youtube.com/watch?v=oX0Mxwx5Q1E
<paper_> (only 30 secs)
<apeiros> ok. thx. watching sc2 atm, though
Davey has quit [Quit: Computer has gone to sleep.]
momomomomo has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby
Czupa has joined #ruby
qohelet_ has joined #ruby
KazW has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
br4ndon_ has quit [Ping timeout: 252 seconds]
sayan has quit [Read error: Connection reset by peer]
KazW has joined #ruby
sambao21 has joined #ruby
<qohelet_> I have a = [1,3,6,9,12,4,2,11] how can I replace all numbers included in the range (1..3) with a string, say "B"?
verysoftoiletppr has joined #ruby
hmarr has quit [Ping timeout: 252 seconds]
sambao21 has quit [Client Quit]
reset has joined #ruby
<reactormonk> qohelet_, map it
huoxito has joined #ruby
<paper_> qohelet_: array.map { |v| (1..3).include?(v) ? "B" : v }
timmow_ has quit [Remote host closed the connection]
<qohelet_> damn, that was easy... sigh... thanks a lot
whitedawg has quit [Quit: Leaving.]
`p has quit [Remote host closed the connection]
hmarr has joined #ruby
kpshek has joined #ruby
clocKwize has joined #ruby
<e-dard> If you know that once you are done, your process will end, and you see massive improvements in disabling the GC for the duration of the process, are there any downsides?
endzyme has quit [Remote host closed the connection]
supergiantrobot_ has quit [Quit: supergiantrobot_]
<paper_> e-dard: consider using 'free' instead: https://github.com/banister/free
supergiantrobot_ has joined #ruby
bonty_ssh has joined #ruby
endzyme has joined #ruby
_nitti has quit [Remote host closed the connection]
<Hanmac> paper_ i like the Billy Song ;P
Whoop has quit [Quit: Gone]
<swarley> billiam, there isn't a very cross platform way to do it built in. You would just check the platform you're on and execute the command that matches the platform
<billiam> swarley, yeah, looks that way. Thanks :)
<paper_> Hanmac: i dont recognize half those songs, i guess i missed a lot of episodes :/
<e-dard> paper_: so you mean, instead of disabling GC, use that to free MASSIVE_DATA_STRUCTURE after I'm done with it?
<paper_> e-dard: yes, but HEHE dont use 'free', it makes jesus cry
<paper_> and it doesn't work anymore anyway
dhruvasagar has joined #ruby
rdev is now known as rdev5|work
nuba has quit [Remote host closed the connection]
_nitti has joined #ruby
bonty_ssh has quit [Ping timeout: 264 seconds]
Neomex has joined #ruby
Neomex has quit [Client Quit]
tjbiddle_ has joined #ruby
troessner has quit [Quit: Leaving]
<e-dard> paper_: sorry, I don't follow?
kirun has joined #ruby
realDAB has quit [Quit: realDAB]
tjbiddle has quit [Ping timeout: 264 seconds]
tjbiddle_ is now known as tjbiddle
<paper_> Hanmac: season 1 has wayyy more episodes than any other season? http://adventuretime.wikia.com/wiki/List_of_episodes#Season_1:_2010
cmarques has quit [Ping timeout: 260 seconds]
chrisnicola has quit [Quit: Leaving]
chrisnicola_ has joined #ruby
rdev5|work is now known as rdev
jpcamara has quit [Quit: jpcamara]
acrussell has left #ruby [#ruby]
tjbiddle_ has joined #ruby
banjara has joined #ruby
tjbiddle__ has joined #ruby
tjbiddle has quit [Read error: Connection reset by peer]
tjbiddle__ is now known as tjbiddle
<Hanmac> paper_: season1 and season2 has the same number of episodes or does i count them wrong?
mityaz has quit [Quit: See ya!]
<paper_> Hanmac: doesnt season 1 have 19 episodes?
nomenkun has joined #ruby
bigkevmcd_ has joined #ruby
jpcamara has joined #ruby
<Hanmac> paper_: i let ruby count that ... all 5 seasons has 26 episodes
slainer68 has joined #ruby
JonnieCache has joined #ruby
kenneth has joined #ruby
zph has quit [Quit: Computer has gone to sleep.]
<paper_> Hanmac: ah ok, how did u make ruby count it?
tjbiddle_ has quit [Ping timeout: 240 seconds]
_nitti has quit [Remote host closed the connection]
<Hanmac> i copies thee name list into an file and count the "•" per line
endzyme has quit [Remote host closed the connection]
Whoop has joined #ruby
endzyme has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
chussenot has quit [Quit: chussenot]
tjbiddle_ has joined #ruby
_nitti has joined #ruby
<paper_> Hanmac: clever boy
Nahra has joined #ruby
sayan has joined #ruby
mahoney has quit [Remote host closed the connection]
baphled has joined #ruby
emmanuelux has joined #ruby
<Hanmac> paper_: you are an intelligent ruby developer, arnt you? do you want to help me to rewrite my game scripts to get them better?
tenmilestereo has joined #ruby
<paper_> Hanmac: hehe, no thx. btw did i ever show u a game i wrote a few year ago called tremolo?
<paper_> Hanmac: in ruby, bad framerate is due to crappy screencapture software only: http://www.youtube.com/watch?v=FngoadE1nEc
binw has joined #ruby
tonini has joined #ruby
<marwinism> damn, I just broke my Vim trying to enable ruby in vim-nox. lol
tonini has quit [Remote host closed the connection]
<vyrus001> anybody wanna help me with what I think is a bug in mkmf?
ehaliewicz has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
deric_skibotn has joined #ruby
clocKwize has quit [Quit: clocKwize]
<deric_skibotn> cldwalker are you here?
<deric_skibotn> (The guy who took over the ruby-debug-base proj => cldwalker/debugger )
tjbiddle has quit [Ping timeout: 256 seconds]
tjbiddle_ is now known as tjbiddle
Asher has joined #ruby
dhruvasagar has quit [Ping timeout: 276 seconds]
lkba has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
dhruvasagar has joined #ruby
<deric_skibotn> never mind
tjbiddle_ has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
chrisnicola_ has quit [Quit: This computer has gone to sleep]
Zolo has joined #ruby
ianbishop has quit [Quit: WeeChat 0.3.7]
realDAB has joined #ruby
whowantstolivef1 has quit [Ping timeout: 252 seconds]
<Hanmac> paper_: its currently game logic only like battler.skills or something nothing gui or other stuff
vlad_sta_ has quit [Remote host closed the connection]
frem has quit [Read error: Operation timed out]
tjbiddle has quit [Ping timeout: 276 seconds]
tjbiddle_ is now known as tjbiddle
<paper_> Hanmac: cool
<paper_> Hanmac: can i see your code on github?
emptyflask has joined #ruby
aytch has joined #ruby
reset has quit [Ping timeout: 264 seconds]
momomomomo has quit [Quit: momomomomo]
<paper_> Hanmac: u have to stop using tabs :))
emptyflask has quit [Remote host closed the connection]
emptyflask has joined #ruby
spanner is now known as leeder-krenon
hmarr has quit []
_nitti has quit [Remote host closed the connection]
<Hanmac> paper_: so do you understand part of the code?
RORgasm has joined #ruby
shock_one has quit [Ping timeout: 276 seconds]
momomomomo has joined #ruby
chrishough has quit [Quit: chrishough]
<paper_> Hanmac: not rly
<paper_> but it looks cool
<Hanmac> :P
<Hanmac> its without evil instance_exec yet ... and you dont want me to add it ;P
ananthakumaran has quit [Quit: Leaving.]
KazW has quit [Ping timeout: 264 seconds]
Andromeda has quit [Remote host closed the connection]
sambao21 has joined #ruby
clocKwize has joined #ruby
nuba has joined #ruby
Zolo has quit [Remote host closed the connection]
thebastl has joined #ruby
ganine has joined #ruby
girija has quit [Ping timeout: 240 seconds]
etcetera has quit []
ganine has left #ruby ["WeeChat 0.3.9.2"]
chrishough has joined #ruby
<peta_> When I define custom modules, where should I write the require statements? inside our outside of it?
freezey has joined #ruby
<peta_> (at first lines in the rb file)
mark_locklear has quit [Quit: Leaving]
rickmasta has joined #ruby
headius has joined #ruby
Czupa has quit [Remote host closed the connection]
<paper_> peta_: inside or outside what?
<peta_> module ModA; …. end
spider-mario has joined #ruby
<peta_> in/outside the module definition
<paper_> no, you dont put the 'require' in there :)
zph has joined #ruby
realDAB has quit [Quit: realDAB]
<peta_> okay. Could there be any reasons I should do this anyway?
etcetera has joined #ruby
<Hanmac> peta_ it does not make a different when you require outside or inside a module ... but you can require inside methods
_nitti has joined #ruby
realDAB has joined #ruby
<peta_> Hanmac: ok sir.
ShellFu is now known as ShellFu_brb
theRoUS has quit [Ping timeout: 256 seconds]
interactionjaxsn has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
dmiller has joined #ruby
bigkevmcd_ has quit [Ping timeout: 256 seconds]
veinofstars has quit [Ping timeout: 256 seconds]
girija has joined #ruby
crodas has joined #ruby
ccooke has quit [Ping timeout: 264 seconds]
KazW has joined #ruby
ccooke has joined #ruby
brennanMKE has joined #ruby
arya has quit [Ping timeout: 252 seconds]
ShellFu_brb is now known as ShellFu
chussenot has joined #ruby
chussenot has quit [Client Quit]
mattbl has quit [Quit: This computer has gone to sleep]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
momomomomo has quit [Quit: momomomomo]
zph has quit [Quit: Computer has gone to sleep.]
timonv has joined #ruby
generalissimo has joined #ruby
chichouw has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
cmarques has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
Skofo has joined #ruby
eldariof has quit []
arya has joined #ruby
Neandre has quit [Ping timeout: 252 seconds]
Nisstyre-laptop has joined #ruby
mneorr has joined #ruby
<callmeivan> i am using the yahoofinance gem and sometimes i get a Timeout::Error is there a way to catch this error?
<callmeivan> @stock = YahooFinance.get_quotes(YahooFinance::RealTimeQuote, 'aapl')
<A124> Why not?
<A124> Rescue
g0bl1n has quit [Read error: Operation timed out]
<MrZYX> begin .... rescue Timeout::Error; end
<callmeivan> thanks
tvw has quit []
carraroj has quit [Quit: Konversation terminated!]
<fignew> I have multiple versions of certain gems (ex: rails (3.2.13, 2.3.18, 2.3.16)) How do I get rid of all of the old versions?
Hanmac has quit [Ping timeout: 245 seconds]
<MrZYX> gem cleanup
<Xeago> gem uninstall/remove rails prompts for versions
<Xeago> never knew the cleanup command
<MrZYX> fignew: on a more general note: gem help, gem help commands
zastern has quit [Remote host closed the connection]
chrisnicola has joined #ruby
hadees has joined #ruby
<MrZYX> Xeago: I neither, just ran git help, saw git help commands, ran that and saw it ;)
zastern has joined #ruby
<fignew> MrZYX: Thanks
<fignew> I just ran gem help examples :/
mando has quit [Remote host closed the connection]
sayan has quit [Quit: Leaving]
dmerrick has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 256 seconds]
kpshek has quit []
yann_ck has joined #ruby
zastern has quit [Ping timeout: 245 seconds]
Zai00 has joined #ruby
Skylab has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
Zai00 has quit [Client Quit]
Neandre has joined #ruby
lewis has joined #ruby
echevemaster-afk has quit [Quit: Leaving]
kpshek has joined #ruby
ericmathison has quit [Ping timeout: 252 seconds]
Hanmac has joined #ruby
timonv has quit [Remote host closed the connection]
rickmasta has quit [Read error: Connection reset by peer]
rickmasta has joined #ruby
mechcozmo has joined #ruby
veinofstars has joined #ruby
Elhu has joined #ruby
<mechcozmo> Hello, while enumerating over entries from a Dir object, how can I test if they are Files or other Directories?
paper_ has quit [Remote host closed the connection]
<lewis> Files.exist?
<apeiros> mechcozmo: ri File
<apeiros> look at directory? and file? methods
<apeiros> (also, technically *everything* is a file, even directories)
keymone has quit [Quit: keymone]
chendo__ has joined #ruby
clocKwize has quit [Quit: clocKwize]
<mechcozmo> Can those methods be called statically?
tubbo has left #ruby [#ruby]
araujo_ has joined #ruby
<mechcozmo> Dir.each { |x| } gives a String
<mechcozmo> So I can't do x.directory?
<apeiros> mechcozmo: ri tells you that (ri is the command line documentation utility)
<apeiros> and yes. File.directory?(string)
araujo_ has quit [Read error: Connection reset by peer]
wolcanus has quit [Remote host closed the connection]
paper_ has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
<mechcozmo> apeiros: I'm new to using ri. Class methods can be called statically?
dhruvasagar has quit [Ping timeout: 256 seconds]
<Hanmac> mechcozmo: apeiros look at that :P http://eval.in/private/963c9949fd392e
<apeiros> mechcozmo: yes.
zph has joined #ruby
ericmathison has joined #ruby
<mechcozmo> Ah, ok. Thanks.
<apeiros> mechcozmo: note though that "statically" doesn't really make sense in ruby. classes are objects. when you call File.directory?, you are effectively calling an instance method.
anderse has quit [Quit: anderse]
dhruvasagar has joined #ruby
<mechcozmo> Right.
anderse has joined #ruby
hydrozen has joined #ruby
<mechcozmo> Is there another option? . and .. are correctly being reported as directories, but the other directories are not
tootooroo has joined #ruby
tenmilestereo has quit [Quit: Leaving]
freezey has quit [Remote host closed the connection]
zph has quit [Client Quit]
mando has joined #ruby
F1skr has joined #ruby
frem has joined #ruby
<apeiros> mechcozmo: unlikely. paste the code please.
<apeiros> (gist.github.com or pastie.org)
Burgestrand has joined #ruby
axl__ has joined #ruby
tangledhelix has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
cha1tanya has quit [Ping timeout: 255 seconds]
<mechcozmo> apeiros: http://pastebin.com/G3ySeFRK
<apeiros> mechcozmo: why pastebin? srsly?
<apeiros> ads, bad, slow.
<mechcozmo> I've used it for years, finger memory I guess?
rizzatti has joined #ruby
axl_ has quit [Ping timeout: 276 seconds]
axl__ is now known as axl_
<apeiros> mechcozmo: and how do you figure that directories are misreported?
nomenkun has quit [Remote host closed the connection]
realDAB has quit [Quit: realDAB]
<mechcozmo> That's the results
sambao21 has joined #ruby
mmitchell has joined #ruby
tangledhelix has quit [Client Quit]
<mechcozmo> Those folders exist on-disk, and I have 755 perms on them
<mechcozmo> (directory tree FTP'd off a web server)
<apeiros> mechcozmo: add an `else` and `puts "#{x} is a #{File.ftype(x)}"`
<mechcozmo> If I create a directory of my own (i.e. it was not copied from a web server), it is also not reported as a directory
<apeiros> show the output of that
<apeiros> I'd guess those "dirs" are symlinks or somesuch
<mechcozmo> apeiros: error `ftype': No such file or directory - ae (Errno::ENOENT)
reset has joined #ruby
<mechcozmo> They are very much real directories, not symlinks or hard links
Elhu has quit [Quit: Computer has gone to sleep.]
zastern has joined #ruby
<Hanmac> i know what is going on ... should i tell it to you guys?
slainer68 has quit [Remote host closed the connection]
cloke_ has joined #ruby
<mechcozmo> I don't have anything better to do at the moment except ask noobie questions, so sure :-)
<Hanmac> apeiros: & mechcozmo its a problem with pwd
cloke has quit [Ping timeout: 245 seconds]
cloke_ is now known as cloke
LaPetiteFromage_ has joined #ruby
<mechcozmo> I remember reading something about that… doesn't Ruby set it's PATH to zilch?
<mechcozmo> Is that the problem?
evenix has quit [Remote host closed the connection]
maxmanders has quit [Quit: Computer has gone to sleep.]
Karolis has quit [Quit: Textual IRC Client: www.textualapp.com]
nightfalcon has joined #ruby
Asher has quit [Quit: Leaving.]
LaPetiteFromage has quit [Ping timeout: 252 seconds]
LaPetiteFromage_ is now known as LaPetiteFromage
guns has joined #ruby
<Hanmac> hm no, it the problem that chdir is not called, so the File.directory? does not know about
rizzatti has quit [Quit: Leaving...]
zph has joined #ruby
Rumsteak has joined #ruby
LaPetiteFromage_ has joined #ruby
julian-delphiki has quit [Quit: Computer has gone to sleep.]
LaPetiteFromage has quit [Ping timeout: 245 seconds]
LaPetiteFromage_ is now known as LaPetiteFromage
mootpointer has quit [Quit: Computer has gone to sleep.]
<mechcozmo> Hanmac: What should I call chdir on? I can't find a chdir method for the File class
<Hanmac> its in the Dir class ... but its a bit anoying that the Dir class cant do it yourself ;/
sonda has quit [Remote host closed the connection]
<apeiros> Hanmac: d'oh. Dir#each lists the names only
maxmanders has joined #ruby
huoxito has quit [Quit: Leaving]
<apeiros> mechcozmo: use Dir.glob instead of Dir.new. easier to handle. includes the complete path.
<mechcozmo> Ok
<apeiros> the problem is that you test 'foo' whether it's a dir/file, but you really want to test ~/Desktop/rubytest/oldweb/foo
Skylab has quit [Quit: Skylab]
<apeiros> and the two are not the same
<apeiros> well spotted Hanmac
zastern has quit [Ping timeout: 256 seconds]
<mechcozmo> And it looks like I don't need to use Dir.new anymore
<mechcozmo> For what that's worth
jtharris has joined #ruby
arusso_znc is now known as arusso_
julian-delphiki has joined #ruby
pkrnj has joined #ruby
freakazoid0223 has quit [Read error: Connection reset by peer]
Elhu has joined #ruby
<mechcozmo> ah-ha, it works
<mechcozmo> now to add recursion
Nisstyre-laptop has quit [Ping timeout: 240 seconds]
rippa has quit [Ping timeout: 240 seconds]
Joel has joined #ruby
blaines has joined #ruby
<Hanmac> use something like **/**/**/** :P
<mechcozmo> :-P
<Joel> I'm running into an issue that I think is related to changes in ruby past 1.8.7. I can no longer use american dates, 'mm/dd/yyyy', can anyone confirm/deny this? know of any work arounds?
<Hanmac> since 1.9 american does not exist anymore ;P
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
chrisnicola has quit [Quit: This computer has gone to sleep]
<Joel> great, but, what work arounds are there?
<Joel> my_date_formats = { :default => '%d/%m/%Y' }; Time::DATE_FORMATS.merge!(my_date_formats); Date::DATE_FORMATS.merge!(my_date_formats) # Doesn't appear to work for me.
lmf40 has joined #ruby
brennanMKE has quit [Remote host closed the connection]
guns has quit [Remote host closed the connection]
monkegjinni has joined #ruby
csaunders has quit [Quit: Computer has gone to sleep.]
chrisnicola has joined #ruby
<Hanmac> Joel use strptime
answer_42 has quit [Ping timeout: 276 seconds]
lmf40 has quit [Remote host closed the connection]
<Joel> Hanmac: I'm trying to get this to work with activerecord in rails.
connor_goodwolf has quit [Ping timeout: 240 seconds]
jpfuentes2 has joined #ruby
chandankumar has quit [Quit: Leaving]
connor_goodwolf has joined #ruby
<Hanmac> Joel than you are in the wrong channel: #rubyonrails
<Joel> forgive me for starting here wondering why functionality was removed.
mpereira has joined #ruby
DrCode has quit [Remote host closed the connection]
thone has quit [Read error: Operation timed out]
DrCode has joined #ruby
Rumsteak has quit [Quit: Rumsteak]
guns has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Nisstyre-laptop has joined #ruby
<Hanmac> ping paper_
<paper_> Hanmac: sup girl
lmf40 has joined #ruby
<Hanmac> paper_ did you look over my code? maybe you allready have ideas to make it better
jpcamara has quit [Quit: jpcamara]
xardas has quit [Read error: Connection reset by peer]
<paper_> Hanmac: too many files :P can you link a specific file?
thone has joined #ruby
bruschill has joined #ruby
<Hanmac> paper_: you can begin in the new_rpg_data folder with the battler ones
slainer68 has joined #ruby
brennanMKE has joined #ruby
bruschill has quit [Client Quit]
FrostyAcres has joined #ruby
buibex has joined #ruby
`p has joined #ruby
<paper_> Hanmac: why dont you use 2 spaces ? :)
Vivekananda has joined #ruby
<Hanmac> paper because its easier for me, and you can teach your browser to show it as 2 spaces
rickmasta has quit [Quit: Leaving...]
lmf40 has quit [Read error: Connection reset by peer]
io_syl has quit [Quit: Computer has gone to sleep.]
lmf40 has joined #ruby
<paper_> Hanmac: why is it easier for u?
razibog has joined #ruby
ToApolytoXaos has quit [Quit: Leaving]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
divout has quit [Quit: Leaving.]
<Hanmac> because curently i use gedit for this files
internetishard has joined #ruby
<paper_> Hanmac: i'm surprised you use such a (relatively) primitive editor :)
<paper_> i expected emacs or at least vim
<internetishard> I've a bunch of stuff that I want to loop until the exit code of each is 0
<internetishard> How would you do this?
kenneth has quit [Quit: kenneth]
<internetishard> Is there a 'while exit code = 0' in ruby do; ?
kenneth has joined #ruby
<ericwood> system() returns the exit code
jkamenik has joined #ruby
slainer68 has quit [Ping timeout: 252 seconds]
jnoob22 has quit [Remote host closed the connection]
<internetishard> ok, so I'd put each of these functions inside system(), and I do while systems(some return value == 0)?
<internetishard> ericwood: is that what you're saying?
pioz has joined #ruby
<ericwood> system('bash crap') will execute the shell code and return the return value
<MrZYX> internetishard: you want to run all again if one is nonzero?
majikbytes has joined #ruby
x0F has quit [Ping timeout: 255 seconds]
<ericwood> begin; val = system('rm -rf /'); end while val == 0
rotham has joined #ruby
TheMoonMaster has quit [Quit: Later!]
<internetishard> MrZYX: yep
<MrZYX> begin; codes = system(..); codes += system(..); ... end while !codes.zero?
Neandre has quit [Read error: Operation timed out]
<internetishard> well let's assume each function is a ruby function, and I want to keep going if there is a exit code != 0
tevio has joined #ruby
nfk has quit [Quit: yawn]
<ericwood> begin; val = your_ruby_thingamajig; end while val == 0
<rotham> how do I make a method a class method instead of an instance method?
<ericwood> rotham: self.method_name
<ericwood> def self.foobar
Neandre has joined #ruby
benweint has joined #ruby
sailias has quit [Ping timeout: 246 seconds]
<internetishard> MrZYX: I don't really get your code, but ericwood's sounds like I'm doing begin; val = function_with_sometimes_working_functions; end while val == 0
rizzatti has joined #ruby
<ericwood> our code is almost identical :P
wmoxam has quit [Ping timeout: 264 seconds]
<ericwood> but mine is totally better because I wrote it :D
mando has quit [Remote host closed the connection]
<MrZYX> except that I got the requirement that it should run while the sum is nonzero :P
al3xnull has joined #ruby
<MrZYX> and that you got multiple functions
<ericwood> pffft
forrest has quit [Quit: Leaving]
geekbri has quit [Remote host closed the connection]
wyattg has quit [Remote host closed the connection]
<MrZYX> so begin; val = meth1; val += meth2; val += meth3; ... end while !val.zero?
<ericwood> ^^^^^ that's the best way
kpshek has quit []
<MrZYX> internetishard: you confused us because we call return value what you called exit code ;)
<ericwood> yep
<MrZYX> processes have exit codes, ruby functions have return values
mechcozmo has quit [Quit: mechcozmo]
adamholt has quit [Quit: ZNC - http://znc.sourceforge.net]
<ericwood> system('ruby -E "code"')
<ericwood> yay
<MrZYX> lol
tevio has quit [Remote host closed the connection]
<ericwood> much better than fork
* MrZYX smells endless recursion
<MrZYX> system("ruby #{__FILE__}")
newUser1234 has joined #ruby
<gf3> HOW EVAL
jasona has left #ruby [#ruby]
Skylab has joined #ruby
LaPetiteFromage_ has joined #ruby
FrostyAcres has quit [Quit: Textual IRC Client: www.textualapp.com]
LaPetiteFromage has quit [Ping timeout: 264 seconds]
LaPetiteFromage_ is now known as LaPetiteFromage
seich- is now known as Seich
rdev has quit [Quit: Linkinus - http://linkinus.com]
evenix has joined #ruby
Asher has joined #ruby
cmarques has quit [Ping timeout: 245 seconds]
memristor has joined #ruby
dmerrick has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<kenneth> def method_missing(method, *args, opts={}, &block)
<kenneth> this is not valid?
<kenneth> i imagine that *args gobbles up the opts hash
<MrZYX> yup
mockra has quit [Ping timeout: 264 seconds]
<MrZYX> opts = args.last
mockra has joined #ruby
<kenneth> so instead i should do something like opts = args.pop if args.last.is_a?(Hash)
thebastl has quit [Remote host closed the connection]
<paper_> kenneth: you can use this: def method_missing(method, *args, opts, &block)
rdev has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
dmiller has quit [Ping timeout: 252 seconds]
<Hanmac> kenneth: you can do: def method_missing(method, *args, **opts, &block)
headius has quit [Quit: headius]
<kenneth> Hanmac: what does **opts do?
endure has joined #ruby
<MrZYX> 2.0 has keyword args
<Hanmac> kenneth **var is always a hash, in the case its the hash for the keyword args
<kenneth> would that work under 1.9? i imagine not
<Hanmac> *args is for arrayrest, **opts is for hashrest
maxmanders has quit [Quit: Computer has gone to sleep.]
invisime has quit [Quit: Leaving.]
sambao21 has quit [Quit: Computer has gone to sleep.]
csaunders has joined #ruby
zph has quit [Quit: Computer has gone to sleep.]
ckrailo_ has joined #ruby
jbueza has left #ruby [#ruby]
k610 has joined #ruby
<rotham> and i would access it with Class.foobar, or Class.self.foobar ?
mootpointer has joined #ruby
momomomomo has joined #ruby
<Hanmac> rotham: first one
rdev has quit [Quit: Linkinus - http://linkinus.com]
maxmanders has joined #ruby
stef_204 has joined #ruby
therrell has quit [Quit: therrell]
yshh has quit [Remote host closed the connection]
rdev has joined #ruby
rdev has quit [Client Quit]
yshh has joined #ruby
majikbytes has quit [Read error: Operation timed out]
ckrailo_ has quit [Ping timeout: 276 seconds]
TheMoonMaster has joined #ruby
rdev has joined #ruby
pettsson has joined #ruby
mercwithamouth has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
mercwithamouth has quit [Client Quit]
girija has quit [Ping timeout: 240 seconds]
pkrnj has joined #ruby
rdev has quit [Client Quit]
dmiller has joined #ruby
<Hanmac> paper_: and? did you found something that can be made better? (except the tabs)
Davey has joined #ruby
Guedes has quit [Disconnected by services]
Guedes0 has joined #ruby
<Hanmac> yes, specaly the scripts/new_rpg_data dir
Nahra has quit [Remote host closed the connection]
baphled has quit [Ping timeout: 255 seconds]
etcetera has quit []
Nisstyre has quit [Ping timeout: 245 seconds]
baphled has joined #ruby
robscomputer_ has quit [Read error: Connection reset by peer]
robscomputer_ has joined #ruby
hakunin_ has joined #ruby
etcetera has joined #ruby
phantasm66 has joined #ruby
tvw has joined #ruby
<internetishard> MrZYX: so those semi colons on your code example... ruby doesn't use those that way, right?
veinofstars_ has joined #ruby
Nahra has joined #ruby
<internetishard> val += math2() would be the function, right?
<paper_> Hanmac: sry can u link again?
mando has joined #ruby
deavidsedice has joined #ruby
<MrZYX> internetishard: yup, it would work with the semicolons but we use them here in IRC instead of newlines ;)
kalleth_ has joined #ruby
<MrZYX> so in your real code you want newlines of course
pcarrier_ has joined #ruby
pcarrier_ has quit [Changing host]
pcarrier_ has joined #ruby
uxp_ has joined #ruby
hiroyuki has quit [Read error: Connection reset by peer]
angusiguess has quit [Ping timeout: 245 seconds]
<ericwood> \n
<MrZYX> and in ruby you rarely need the parenthesis ;)
_nitti has quit [Remote host closed the connection]
<ericwood> (
evenix has quit [Read error: Connection reset by peer]
<ericwood> (
<ericwood> whoops
thibauts_ has joined #ruby
mose_ has joined #ruby
beasty_ has joined #ruby
daed_ has joined #ruby
workmad3 has joined #ruby
<internetishard> MrZYX: so I really have to put val before everything I want to track the return value of, right?
Mohan has joined #ruby
Mohan has quit [Changing host]
Mohan has joined #ruby
adamjleonard has quit [Quit: Linkinus - http://linkinus.com]
<Xeago> Hanmac: why are ytou making the engine?
Johbe_ has joined #ruby
<MrZYX> internetishard: sure, how would you track it if you don't capture it?
<internetishard> There's no way to say "anything that doesn't return a zero will affect the eventual return value of the function and cause it to run again"
brad[] has quit [Read error: Connection reset by peer]
<Hanmac> Xeago its called engine but currenlty i am working on the scripting part
veinofstars has quit [Ping timeout: 255 seconds]
veinofstars_ is now known as veinofstars
samuel02 has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
therrell has joined #ruby
Rym has quit [Quit: Rym]
etcetera has quit []
samuel02 has joined #ruby
havenwood has joined #ruby
s00pcan_ has joined #ruby
samuel02 has quit [Remote host closed the connection]
samuel02_ has joined #ruby
fcoury- has joined #ruby
<internetishard> MrZYX: Ruby tracks them, right? So the return value of the whole function will be non-zero if any function inside is...
drago777 has joined #ruby
<MrZYX> nope
<MrZYX> unless you use the return statement the last expression will be returned
crazysim_ has joined #ruby
sirecote_ has joined #ruby
havenwood has quit [Remote host closed the connection]
<MrZYX> and only the last expression
<paper_> Hanmac: i dont see anything obviously wrong with it, but it's not that idiomatic :P
kirun has quit [Ping timeout: 248 seconds]
Kov|sumika has joined #ruby
tr4656_ has joined #ruby
Spitfire- has joined #ruby
plaisn has joined #ruby
sambao21 has joined #ruby
jso_ has joined #ruby
adamjleonard has joined #ruby
Mohan_ has quit [*.net *.split]
Kovensky has quit [*.net *.split]
zodiak has quit [*.net *.split]
sirecote has quit [*.net *.split]
fcoury has quit [*.net *.split]
drago777- has quit [*.net *.split]
crazysim has quit [*.net *.split]
daed has quit [*.net *.split]
hakunin has quit [*.net *.split]
xybre has quit [*.net *.split]
s00pcan has quit [*.net *.split]
plains has quit [*.net *.split]
emptymag00 has quit [*.net *.split]
Johbe has quit [*.net *.split]
mtlatif has quit [*.net *.split]
karnowski has quit [*.net *.split]
deavid has quit [*.net *.split]
tr4656 has quit [*.net *.split]
rking has quit [*.net *.split]
thibauts has quit [*.net *.split]
beasty has quit [*.net *.split]
uxp has quit [*.net *.split]
jso has quit [*.net *.split]
pcarrier has quit [*.net *.split]
Spitfire has quit [*.net *.split]
kalleth has quit [*.net *.split]
mose has quit [*.net *.split]
Kov|sumika is now known as Kovensky
crazysim_ is now known as crazysim
sirecote_ is now known as sirecote
fcoury- is now known as fcoury
slainer68 has joined #ruby
apeiros has quit [Remote host closed the connection]
brennanMKE has quit [Remote host closed the connection]
qohelet_ has quit [Quit: qohelet_]
pioz has quit [Quit: This computer has gone to sleep]
Spitfire- has quit [Changing host]
Spitfire- has joined #ruby
<paper_> like, you're using {} for multiline blocks, you're using tabs for indent, you're defining more than one class/module per file, you're using explicit 'return's, you're not putting white space between successive method definitions, etc
<paper_> but aside that it's fine Hanmac
Spitfire- is now known as Spitfire
tijmencc has joined #ruby
samuel02_ has quit [Remote host closed the connection]
pioz has joined #ruby
samuel02 has joined #ruby
meskyanichi has quit [Quit: Linkinus - http://linkinus.com]
<Hanmac> i do because mostly its made of an RPG and an Game part (for newbs: an Database and an Runtime part)
Rym has joined #ruby
tijmencc has quit [Client Quit]
techlife has quit [Ping timeout: 252 seconds]
daniel_- has joined #ruby
daniel_- is now known as Guest31579
danslo has joined #ruby
etcetera has joined #ruby
Nisstyre has joined #ruby
freerobby has quit [Quit: Leaving.]
adamholt has joined #ruby
jso_ is now known as jso
mattbl has joined #ruby
anderse has quit [Quit: anderse]
buibex has quit [Remote host closed the connection]
matled- has joined #ruby
phantasm66 has quit [Quit: *sleeeep….]
xybre has joined #ruby
xybre has quit [Changing host]
xybre has joined #ruby
zodiak has joined #ruby
sailias has joined #ruby
emptymag00 has joined #ruby
samuel02 has quit [Ping timeout: 264 seconds]
rking has joined #ruby
carlyle has quit [Remote host closed the connection]
<Hanmac> paper_: do you like my cs_ methods? and do you understand how they works?
<paper_> Hanmac: explain to me
jkamenik has quit [Quit: Leaving.]
codecop has quit [Remote host closed the connection]
Bish_ has joined #ruby
matled has quit [Remote host closed the connection]
randym_ has quit [Ping timeout: 240 seconds]
[Neurotic] has quit [Ping timeout: 240 seconds]
Demux has quit [Ping timeout: 240 seconds]
kaichanvong has quit [Ping timeout: 240 seconds]
Bish has quit [Ping timeout: 240 seconds]
matled- is now known as matled
<e-dard> Anyone know what's up with perftools? It's giving me output like this http://dpaste.com/1052823/ ?
<Hanmac> paper_: for sample you call cs_init, but it does not exist but a_cs_init,b_cs_init,c_cs_init exist, so when you call cs_init it returns [a_cs_init,b_cs_init,c_cs_init]
<e-dard> ^ with my perftool settings, obviously :-P
Demux has joined #ruby
<paper_> Hanmac: clever :)
slainer68 has quit [Ping timeout: 260 seconds]
sleetdrop has quit [Quit: Computer has gone to sleep.]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<Hanmac> paper_: its more flexable than using alias ...
failshell has quit [Remote host closed the connection]
k611 has joined #ruby
<kenneth> hey so if i have a data structure like this: {args: [one, two, three], stuff: :stuff}, what's the easiest way to turn it into this: [{args: one, stuff: :stuff}, {args: two, stuff: :stuff}, {args: three, stuff: :stuff}]
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
GhettoCode has quit [Ping timeout: 276 seconds]
evenix has joined #ruby
<kenneth> i know it should be easy but it's escaping me right now
Guest31579 has quit [Remote host closed the connection]
havenwood has joined #ruby
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
phasma has quit [Ping timeout: 264 seconds]
<csmrfx> is your data structure a ruby hash?
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
memristor has quit [Read error: Connection reset by peer]
<kenneth> yeah
rizzatti has quit [Quit: Linkinus - http://linkinus.com]
<csmrfx> $ ri Hash.[]
<ericwood> I was trying to think up a good joke about strings and "it's escaping me right now"
<ericwood> but I have nothing.
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
<kenneth> lol
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
NimeshNeema has quit [Ping timeout: 264 seconds]
<Hanmac> kenneth: like data[:args].map {|e|data.merge args: e } #?
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
<kenneth> oh, yeah
baroquebobcat has quit [Quit: baroquebobcat]
<kenneth> just like that
<kenneth> :p
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
LaPetiteFromage has left #ruby [#ruby]
<kenneth> omg, vim keeps crashing on me… :'(
baroquebobcat has joined #ruby
<csmrfx> hard to believe
ffranz has quit [Ping timeout: 256 seconds]
<breakingthings> omg no
<breakingthings> vim pls
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
niceguyjames has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
<kenneth> i think it's my YCM-ruby integration plugin
techlife has joined #ruby
<kenneth> i have this plugin that does semantic completion of my ruby code as i type
techlife has quit [Max SendQ exceeded]
<kenneth> it's pretty great
<kenneth> but it's crashed twice on my in 30min now
<kenneth> :(
<kenneth> good think vim swapfiles save everything
nkr has quit [Quit: Linkinus - http://linkinus.com]
techlife has joined #ruby
BadQuanta has joined #ruby
<Hanmac> kenneth: its the EA version? ;P
<kenneth> hmm?
dmerrick has quit [Remote host closed the connection]
pavilionXP has joined #ruby
nightfalcon has quit [Read error: Connection reset by peer]
nightfalcon has joined #ruby
Skylab has quit [Quit: Skylab]
tealmage has joined #ruby
dustint has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
maxmanders has quit [Quit: Computer has gone to sleep.]
Atrophius_ has joined #ruby
<vyrus001> how do i rebuild a gem i have unpacked and modified if there is no gemspec in the root dir?
mikepack has quit [Read error: Connection reset by peer]
Davey has joined #ruby
mikepack_ has joined #ruby
Atrophius has quit [Ping timeout: 245 seconds]
io_syl has joined #ruby
slyv has joined #ruby
<Hanmac> vyrus001: what kind of files does it have?
<vyrus001> there is a Rakefile
twoism has quit [Read error: Connection reset by peer]
twoism has joined #ruby
<vyrus001> Hanmac: and a ext/extconf.rb
alexspeller has quit [Quit: ZNC - http://znc.in]
<vyrus001> other than that, just rb's and README docs
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
jbueza has joined #ruby
<Hanmac> vyrus001: do "rake -T"
alanp has quit [Read error: Connection reset by peer]
anderse has joined #ruby
daniel_-` has joined #ruby
dmerrick has joined #ruby
freakazoid0223 has joined #ruby
alanp has joined #ruby
gaahrdner has quit [Remote host closed the connection]
geggam has joined #ruby
<vyrus001> Hanmac: bunch of stuff, rake gemspec fails
breakingthings has quit []
jamie_ca_ has quit [Quit: Computer has gone to sleep.]
BBonifield has quit [Ping timeout: 264 seconds]
brennanMKE has joined #ruby
<vyrus001> Hanmac: ** Execute version_required dono what kind of error that is
mmitchel_ has joined #ruby
mmitchell has quit [Read error: Connection reset by peer]
daniel_-` has quit [Remote host closed the connection]
anderse has quit [Client Quit]
mmitchel_ has quit [Remote host closed the connection]
vetsin has quit [Ping timeout: 248 seconds]
mikepack_ has quit [Remote host closed the connection]
Spooner has joined #ruby
elliot98 has joined #ruby
elliot98 has quit [Changing host]
elliot98 has joined #ruby
Ontolog_ is now known as Ontolog
internetishard has quit [Quit: Leaving.]
workmad3 has quit [Ping timeout: 245 seconds]
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
yann_ck has quit [Quit: Computer has gone to sleep.]
ericmathison has quit [Ping timeout: 245 seconds]
brennanMKE has quit [Ping timeout: 276 seconds]
etcetera has quit []
enriclluelles has joined #ruby
arya__ has joined #ruby
nfisher has joined #ruby
zastern has joined #ruby
brennanMKE has joined #ruby
BBonifield has joined #ruby
enebo has quit [Quit: enebo]
pothibo has joined #ruby
arya has quit [Ping timeout: 252 seconds]
tvw has quit []
monkegji_ has joined #ruby
nateberkopec has quit [Quit: Leaving...]
alx- has joined #ruby
piotr_ has joined #ruby
vetsin has joined #ruby
geggam has quit [Quit: Leaving]
senayar has quit [Ping timeout: 245 seconds]
zastern has quit [Ping timeout: 276 seconds]
dmiller has quit [Ping timeout: 276 seconds]
endzyme has quit [Ping timeout: 256 seconds]
monkegjinni has quit [Ping timeout: 264 seconds]
bluOxigen has joined #ruby
havenwood has quit [Remote host closed the connection]
csaunders has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
pyx has joined #ruby
dmerrick has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
caveat- has quit [Remote host closed the connection]
k610 has quit [Ping timeout: 264 seconds]
tealmage has quit [Remote host closed the connection]
evenix has quit [Remote host closed the connection]
k611 has quit [Ping timeout: 264 seconds]
alvaro_o has joined #ruby
geggam has joined #ruby
monkegji_ has quit [Remote host closed the connection]
<alvaro_o> Guys, does anyone of you know how to get Twitter's rate limit using the "Twitter" gem ?
nfisher has quit [Quit: Good-bye all!]
jlast has quit [Remote host closed the connection]
julian-delphiki has quit [Quit: Computer has gone to sleep.]
hiroyuki has joined #ruby
EPIK has joined #ruby
caveat- has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
spider-mario has quit [Read error: Connection reset by peer]
idkazuma has joined #ruby
Es0teric has joined #ruby
Neomex has joined #ruby
aytch has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 245 seconds]
matayam has quit [Remote host closed the connection]
supki has quit [Ping timeout: 264 seconds]
Neomex has quit [Client Quit]
Nisstyre-laptop has quit [Quit: Leaving]
axl_ has quit [Quit: axl_]
jbueza has quit [Quit: Leaving.]
supergiantrobot_ has quit [Quit: supergiantrobot_]
mattbl has quit [Quit: This computer has gone to sleep]
<Vivekananda> anyone here
<Vivekananda> I have a question a general one actually
bguery has quit [Read error: Connection reset by peer]
<Vivekananda> what kind of data structure would be best when I am getting in a array of strings and I have to store and compare each string to each other
rockets has joined #ruby
v0n has quit [Read error: Operation timed out]
LaPetiteFromage has joined #ruby
ariedler has quit [Remote host closed the connection]
mikepack has joined #ruby
_nitti has joined #ruby
baphled has quit [Ping timeout: 240 seconds]
error_code has quit [Ping timeout: 260 seconds]
hydrozen has quit [Quit: Computer has gone to sleep.]
etcetera has joined #ruby
error_code has joined #ruby
bttf has joined #ruby
_nitti has quit [Ping timeout: 246 seconds]
alx- has quit [Quit: alx-]
Davey has quit [Quit: Computer has gone to sleep.]
<swarley> Vivekananda, each string is being compared to another string?
apeiros has joined #ruby
jbueza has joined #ruby
Bofu2U has quit [Ping timeout: 240 seconds]
<Vivekananda> swarley: each string is being compared to each other only once
pioz has quit [Quit: This computer has gone to sleep]
Davey has joined #ruby
<Vivekananda> so basically there has to be n C 2 combinations to compares
<swarley> Oh boy, does the data set have replacement?
busybox42 has quit [Quit: leaving]
pilojo has joined #ruby
busybox42 has joined #ruby
<pilojo> How would I go about making an asynchronous timer that waits 2 mins while still performing actions within those two mins?
Vivekananda has quit [Read error: Connection reset by peer]
chrisnicola has quit [Quit: This computer has gone to sleep]
<swarley> if each string is being compared to every other string I would honestly do a combination on the array
snorkdude has joined #ruby
LaPetiteFromage has quit [Quit: LaPetiteFromage]
cbot__ has quit [Read error: Operation timed out]
<snorkdude> Can anyone help me get started writing a ruby wrapper for an oauth protected api?
<swarley> pilojo, t = Thread.new { sleep 120 }; do_something while t.alive?
slainer68 has joined #ruby
alx- has joined #ruby
twoism has quit [Read error: Connection reset by peer]
twoism_ has joined #ruby
newUser1234 has quit [Remote host closed the connection]
<swarley> You would probably want to have something happen after the sleep in the thread
apeiros has quit [Ping timeout: 240 seconds]
<swarley> like killing the process that is running whatever you want to go on for two minutes
generalissimo has quit [Remote host closed the connection]
<pilojo> swarley: Oh, I'm making a game that has a 2 min timer, so i just want it to perform actions but only within 2 mins, then move on to the next bit
breakingthings has joined #ruby
paper_ has quit [Remote host closed the connection]
<alvaro_o> Guys, does anyone of you know how to get Twitter's rate limit using the "Twitter" gem ?
paper_ has joined #ruby
<waxjar> pilojo, you could maybe wrap things in a block on Timeout::timeout
<waxjar> it's part of the stdlib
brennanMKE has quit [Remote host closed the connection]
mattbl has joined #ruby
<swarley> waxjar, ah, good suggestion. I forgot about that. It pretty much does what I suggested but in a better way I'm sure
<pilojo> swarley: yeah, thread manipulation can get messy
momomomomo has quit [Quit: momomomomo]
<pilojo> waxjar: i'll try that
<swarley> It's not too bad when you're only dealing with two
<pilojo> swarley: true, timeout just seems simpler
arya__ has quit [Ping timeout: 256 seconds]
<swarley> Oh yeah, I would use Timeout
<swarley> Just saying, it's not terrible as long as you're careful
Animawish has joined #ruby
<pilojo> waxjar: how would i use timeout in a while loop? while !Timeout::timeout(120)
busybox42 has quit [Quit: leaving]
busybox42 has joined #ruby
<pilojo> or does it need to have its own loop
<waxjar> the timeout raises an exception when the 120 seconds are over and the block is still executing
hiroyuki has quit [Remote host closed the connection]
pettsson has quit [Remote host closed the connection]
robscomputer_ has quit [Remote host closed the connection]
datafirm has joined #ruby
passbe has quit [Quit: WeeChat 0.3.9.2]
mneorr has quit [Remote host closed the connection]
love_color_text has joined #ruby
hadees has quit [Quit: hadees]
havenwood has joined #ruby
pyx has quit [Quit: WeeChat 0.4.0]
pilojo has left #ruby ["Leaving"]
miso1337 has joined #ruby
geggam has quit [Quit: Leaving]
johnmilton has joined #ruby
Bosox20051 has joined #ruby
pioz has joined #ruby
<kenneth> so i'm having a weird problem: i'm getting a SystemStackError when i run this example code:
<kenneth> class Test; include Validations; validations { ::Kernel.p :hi; validates_presence_of :name; ::Kernel.p :fuck }; end
<kenneth> it errors out when the code "validates_presence_of :name" is executed
brennanMKE has joined #ruby
timmow has quit [Remote host closed the connection]
<kenneth> method_missing is never called, as expected, though
MrZYX is now known as MrZYX|off
<rockets> Is there a way to pass a file to irb without it exiting at the end?
daniel_- has joined #ruby
<Spooner> rockets, What do you mean by exiting? It isn't interactive if it exits. You can just require it (with #require or -rfile.rb on the CLI).
daniel_- is now known as Guest17377
zph has joined #ruby
etcetera has quit []
jeffreylevesque_ has quit [Quit: ChatZilla 0.9.90 [Firefox 19.0.2/20130307023931]]
<kenneth> and the code is almost identical… :o
mikepack has quit [Remote host closed the connection]
jeebster1 has joined #ruby
jeebster has quit [Ping timeout: 256 seconds]
<Eiam> I have an instance of a class and want to dump out 6 of its 10 attributes into a hash to spit out as json. is there something more canonical than "loop & return the 6 attributes per instance" ?
<kenneth> oh wait… never mind. i figured it out. jesus. one hour of debugging a typo
<kenneth> typical
<Eiam> the best kind! ha
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
predator217 has joined #ruby
mklappstuhl has joined #ruby
<mklappstuhl> Is there a more beautiful way of doing something like this: conf["session"]["name"] = argv[0] unless conf["session"]["name"]
<paper_> Eiam: what's your code
<kenneth> mklappstuhl: conf['session']['name'] ||= argv[0]
m8 has quit [Quit: Sto andando via]
<bean> Eiam, http://eval.in/15820 that's how i'd do it
havenwood has quit [Remote host closed the connection]
<kenneth> Eiam: [:one, :two, :three].reduce({}) {|a,k| a.merge({k: self.send(k)})
Nisstyre-laptop has joined #ruby
<Eiam> kenneth: ha, yeah i was doing inject & send
gabrielrotbart has joined #ruby
nezumi has quit [Ping timeout: 264 seconds]
<Eiam> which iirc, is the same as reduce
<kenneth> inject is alias for reduce
love_color_text has quit [Read error: Connection reset by peer]
<kenneth> or vice-versa
<Eiam> yeah, i guess i just learned it as inject first
predator117 has quit [Ping timeout: 264 seconds]
huoxito has joined #ruby
<kenneth> i like reduce better because i like functional programming
wmoxam has joined #ruby
jeebster1 has quit [Quit: Leaving.]
<paper_> kenneth: each_with_object is nicer IMO
asphxia^^ has quit [Ping timeout: 260 seconds]
mootpointer has quit [Quit: Computer has gone to sleep.]
r0bby_ is now known as robbyoconnor
ner0x has joined #ruby
jeebster has joined #ruby
<paper_> kenneth: [:one, :two, :three].each.with_object({}) {|v, hash| hash[v] = obj.send(v) }
dustint has joined #ruby
<kenneth> it's a mutability thing
lewis has quit [Remote host closed the connection]
<kenneth> my version avoid mutating any objects
<kenneth> i like to avoid mutating things as much as possible
mootpointer has joined #ruby
<paper_> kenneth: yes but it also generates a bunch of objects that you dont need :P
<kenneth> (i actually wish ruby had immutable collections by default)
<paper_> kenneth: and in this situation mutability isn't a bad thing, you're just building up a hash
<paper_> but whatevs
sepp2k has quit [Read error: Connection reset by peer]
gaahrdne_ has joined #ruby
<kenneth> because 90% of my bugs are odd edge cases where i'm accidentally mutating nested data structures
<kenneth> (and the rest are typos :p)
<Eiam> thanks guys, just glad I'm not off in the weeds
<kenneth> but you're right, yours is perfectly fine and saves a little memory, paper_
guns has quit [Quit: guns]
riffraff169_a has joined #ruby
tootubular has quit [Quit: tootubular]
miso1337 has quit [Quit: afk]
shadoi has joined #ruby
shadoi has left #ruby [#ruby]
gaahrdne_ has quit [Ping timeout: 248 seconds]
emptyflask has quit [Remote host closed the connection]
Guest17377 has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
elux has quit [Quit: Bye!]
forced_request has quit [Ping timeout: 256 seconds]
yours_truly has joined #ruby
Nisstyre-laptop has quit [Read error: Connection reset by peer]
yours_truly has quit [Read error: Connection reset by peer]
hmarr has joined #ruby
Nisstyre-laptop has joined #ruby
ariedler has joined #ruby
heph has joined #ruby
mando has quit [Remote host closed the connection]
danman has quit [Quit: danman]
karnowski has joined #ruby
mtlatif has joined #ruby
jgrevich has quit [Ping timeout: 252 seconds]
mando has joined #ruby
<heph> i'm using rdoc 4.0.1 and trying to output an html table. I have the line in my ruby file: # <table><tr><td>test</td></tr></table>, but it's just printing out in the resulting html document, not formatting a table.
piotr_ has quit [Read error: Operation timed out]
jgrevich has joined #ruby
<heph> <p>&lt;table&gt;&lt;tr&gt;&lt;td&gt;test&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</p>
<mklappstuhl> kenneth: thanks :)
etcetera has joined #ruby
wmoxam has quit [Quit: leaving]
rockets has quit [Ping timeout: 248 seconds]
mikepack has joined #ruby
echevemaster has joined #ruby
carloslopes has quit [Remote host closed the connection]
riffraff169_a has quit [Ping timeout: 246 seconds]
<vyrus001> UGH, the one time i need to build a gem locally to try and apply a fix and rake is broken <_<
<vyrus001> anybody know when rake 10.0.5 is getting pushed? apperantly they fixed what i need fixed in the new version 5 days ago but it isnt on rubygems yet <_<
mneorr has joined #ruby
bttf has quit [Ping timeout: 245 seconds]
mando has quit [Ping timeout: 260 seconds]
pothibo has quit [Quit: pothibo]
lewis has joined #ruby
Inside has joined #ruby
pioz has quit [Quit: This computer has gone to sleep]
Davey has quit [Quit: Computer has gone to sleep.]
arya has joined #ruby
wsterling has quit [Remote host closed the connection]
timmow has joined #ruby
pavilionXP has quit [Remote host closed the connection]
rawng has joined #ruby
wesside_ has quit [Quit: Computer has gone to sleep.]
[Neurotic] has joined #ruby
mneorr has quit [Ping timeout: 246 seconds]
NiteRain has quit [Read error: Operation timed out]
<kenneth> ugh…
<kenneth> is there a good way to take a method from a module, bind it to an object (that's *not* an instance of that module), and execute it, with arguments
<kenneth> i'm running into trouble because bind expects an instance of the class of the unboundmethod
<paper_> kenneth: you can do that in ruby 2.0
randym_ has joined #ruby
<paper_> but not in ruby 1.9.*
kaichanvong has joined #ruby
<kenneth> oh that's a bummer :(
t4c0c4t has quit [Quit: leaving]
<kenneth> how about option #2: take the method, convert it to a proc somehow, and use it with instance_eval
veinofstars has quit [Quit: veinofstars]
<paper_> kenneth: is the method a mutator?
<paper_> or is it purely functional?
<kenneth> purely functional
<paper_> kenneth: do you own the module?
<kenneth> yes
<paper_> well then just make the method a module_function
<paper_> so you can invoke it on the module directly or as an instance method on classes that include it
<paper_> let me show u how, one sec
rubious has joined #ruby
crodas has quit [Ping timeout: 245 seconds]
phasma_ has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
Yakko_ has joined #ruby
cantonic_ has joined #ruby
Skylab has joined #ruby
<paper_> kenneth: then you can just invoke the method on the module :)
<kenneth> hmm… well i don't want to extend the object though
<paper_> kenneth: like i said
<paper_> i was showing two ways to do it
<paper_> you can also just call: MyModule.pig
randomautomator has quit [Ping timeout: 245 seconds]
Andromeda has joined #ruby
<paper_> kenneth: it's the same way that you can go: Math.sin(1) and also object.extend(Math) and then invoke 'sin' inside the object as an instance method
<kenneth> i guess i misspoke earlier when i said it was purely functional. it doesn't mutate, but it does access self
chrishough has quit [Quit: chrishough]
<paper_> ah
billiam has quit [Quit: Leaving]
<paper_> kenneth: you're screwed then :D
<kenneth> lol
<kenneth> fuck
<kenneth> okay
Yakko has quit [Ping timeout: 245 seconds]
postmodern has joined #ruby
<kenneth> i guess i'm gonna have to figure something else out
<paper_> kenneth: cant you just include the module?
Andromed_ has joined #ruby
cantonic has quit [Ping timeout: 264 seconds]
cantonic_ is now known as cantonic
<snorkdude> Anyone know about writing ruby wrappers for OAuth protected APIs?
<kenneth> no, i don't want to modify the object (eg. add methods)
Andromed_ has quit [Read error: Connection reset by peer]
<kenneth> but i can make my life a little less pleasant and write the module functions without using self
new299 has quit [Ping timeout: 240 seconds]
Jelco_ has quit [Ping timeout: 240 seconds]
new299 has joined #ruby
<kenneth> rather taking the self as its first argument every time
Roa has quit [Ping timeout: 240 seconds]
Jelco_ has joined #ruby
<kenneth> can you override "self"? is it a language keyword or a variable?
frem has quit [Ping timeout: 256 seconds]
<paper_> kenneth: no way :D
<paper_> you can't
NimeshNeema has joined #ruby
<kenneth> bummer
Roa has joined #ruby
<kenneth> in obj-c you can :) it's kind of neat
Andromed_ has joined #ruby
Andromeda has quit [Read error: Operation timed out]
<paper_> kenneth: yeah obj-c is pretty cool
<paper_> haven't coded in it for ages though, but i enjoyed it when i did
aaronmcadam has quit [Quit: Leaving...]
Andromeda has joined #ruby
dmerrick has joined #ruby
alexspeller has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
backjlack has quit [Remote host closed the connection]
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
ckrailo has quit [Quit: Computer has gone to sleep.]
enebo has joined #ruby
enebo has quit [Client Quit]
Andromeda has quit [Remote host closed the connection]
Andromed_ has quit [Ping timeout: 248 seconds]
dmerrick has quit [Ping timeout: 248 seconds]
dawkirst has quit [Ping timeout: 256 seconds]
Xeago has quit [Remote host closed the connection]
Kruppe has joined #ruby