apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p286: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
Russell^^ has quit [Quit: Russell^^]
<jrajav> (Two separate but related criticisms)
<JohnTeddy> jrajav: I can move things around to make it more readable?
chococrois has joined #ruby
qwerxy has joined #ruby
<jrajav> Hopefully
<jrajav> But only you can answer that
<jrajav> ;)
dedis has quit [K-Lined]
<JohnTeddy> heh, I don't know how.
<tsou> JohnTeddy: also, you might find %w{a e o u i} convenient
<JohnTeddy> I'll try just moving things around and see if it still works.
<JohnTeddy> tsou: Someone said that before, how do I add %w{a e i o u} ?
ianbrandt has quit [Quit: ianbrandt]
alexshenoy has quit [Quit: alexshenoy]
<tsou> JohnTeddy: you don't "add" it, it's just a handy syntax to create arrays of strings
<tsou> JohnTeddy: so you'd do: vowels = %w{a e o u i}
generalissimo has quit [Remote host closed the connection]
<JohnTeddy> I see.
v0n has quit [Quit: Leaving]
cardoni has quit [Quit: cardoni]
Slivka has joined #ruby
cardoni has joined #ruby
wargasm has joined #ruby
rumba has quit [Quit: Page closed]
<JohnTeddy> https://gist.github.com/4128264 .. I used the %w thing, and I broke it up into a couple more lines.
w400z has quit []
<JohnTeddy> tsou: Why is it a bad idea to use ternaries that way?
xsbeats has quit [Ping timeout: 260 seconds]
<tsou> JohnTeddy: I was not the one who mentioned this. Your 3rd line was too long for me to even read :P
chococrois has quit [Read error: Connection reset by peer]
<JohnTeddy> jrajav: Why is it a bad idea to use ternaries that way?
i_s has quit [Quit: i_s]
ninegrid has joined #ruby
<jrajav> JohnTeddy: Here's a modest start: https://gist.github.com/4128647
<jrajav> JohnTeddy: IMO ternaries should only be used for very short assignment statements where you want to provide a default value
<jrajav> In most cases they serve only to obscure your code
<jrajav> That last 'else' clause is still a beast
chococrois has joined #ruby
<JohnTeddy> hehe
<JohnTeddy> I basically need to find the point where the first vowel is
chococrois has quit [Max SendQ exceeded]
<JohnTeddy> Then move things around depending on where that first vowel is.
chococrois has joined #ruby
<JohnTeddy> It's probably simpler if I can just do: (x.chars.find_index { |x| vowels.include?(x) }) for each word, and set that as 'firstvowel' variable. I'm not sure how to do that though.
jackiechan0 has quit [Quit: Sto andando via]
chococrois has quit [Max SendQ exceeded]
<jrajav> You're not sure how to set variables in Ruby?
F1skr has quit [Quit: WeeChat 0.3.9.2]
maletor has quit [Quit: Computer has gone to sleep.]
<JohnTeddy> Well it seems easier to set it when there are if/else statements like your last paste. When I use ternaries it's a bit confusing for me what goes where.
chococrois has joined #ruby
<JohnTeddy> I think my giant blob of code confuses me. I should probably not make it like that.
<jrajav> Yes, you should not
<jrajav> :)
chococrois has quit [Max SendQ exceeded]
danneu has quit [Ping timeout: 252 seconds]
etcetera has quit [Quit: Computer has gone to sleep.]
<jrajav> You may (or may not) also notice that I changed x[first_vowel..(x.length - 1)] to x[first_vowel..-1]
<jrajav> You can use negative indices in ranges
fyolnish has quit [Remote host closed the connection]
statarb3 has quit [Quit: Leaving]
chococrois has joined #ruby
chococrois has quit [Max SendQ exceeded]
<jrajav> It's a little odd, though, because -1 is analogous to 0
etcetera has joined #ruby
caleb_io has joined #ruby
xsbeats has joined #ruby
caleb_io has quit [Client Quit]
freezway has quit [Ping timeout: 246 seconds]
ninegrid has quit [Read error: Connection reset by peer]
tjbiddle has quit [Ping timeout: 240 seconds]
matrixise has joined #ruby
ninegrid has joined #ruby
joeycarmello has joined #ruby
J-_-L has joined #ruby
nilg has joined #ruby
pavilionXP has quit [Quit: Forget progress by proxy. Land on your own moon.]
yuga has joined #ruby
pavilionXP has joined #ruby
jlast has joined #ruby
ikaros has quit [Quit: Ex-Chat]
philcrissman has quit [Remote host closed the connection]
lupine has quit [Excess Flood]
lenovodroid has joined #ruby
mascool_ has quit [Quit: WeeChat 0.3.9]
joeycarmello has quit [Remote host closed the connection]
philcrissman has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
lupine has joined #ruby
pavilionXP has quit [Ping timeout: 252 seconds]
yuga has quit [Quit: Leaving]
philcrissman has quit [Remote host closed the connection]
tbrock has quit [Quit: Computer has gone to sleep.]
lupine has quit [Max SendQ exceeded]
joeycarmello has joined #ruby
philcrissman has joined #ruby
dakine has joined #ruby
<JohnTeddy> damn, I just did a git pull on https://github.com/alexch/learn_ruby/tree/master/ and now I fail one of the tests.
<JohnTeddy> heh
anachronistic has quit [Quit: anachronistic]
philcrissman has quit [Remote host closed the connection]
staafl has quit [Ping timeout: 244 seconds]
freezway has joined #ruby
philcrissman has joined #ruby
lenovodroid has quit [Read error: Connection reset by peer]
ninegrid has quit [Read error: Connection reset by peer]
philcrissman has quit [Read error: Connection reset by peer]
<JohnTeddy> s = translate("square") s.should == "aresquay" got: "uaresqay"
<JohnTeddy> Another corner case, heheh
philcrissman has joined #ruby
thone has joined #ruby
philcrissman has quit [Remote host closed the connection]
gyre007 has quit [Remote host closed the connection]
d2dchat has quit [Remote host closed the connection]
philcrissman has joined #ruby
lupine has joined #ruby
gyre007 has joined #ruby
Synthead has quit [Quit: p33 ba115]
mybrainis404 has quit [Ping timeout: 246 seconds]
icole has joined #ruby
thone_ has quit [Ping timeout: 276 seconds]
philcrissman has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 252 seconds]
philcrissman has joined #ruby
icole has quit [Ping timeout: 244 seconds]
gridaphobe` has quit [Remote host closed the connection]
clj_newb has quit [Ping timeout: 240 seconds]
philcrissman has quit [Remote host closed the connection]
Markvilla has joined #ruby
kbeddingfield has joined #ruby
clj_newb has joined #ruby
mikeg has quit [Quit: Leaving]
the_jeebster has quit [Quit: Leaving.]
tbrock has joined #ruby
etcetera has quit [Quit: Computer has gone to sleep.]
qwerxy has quit [Quit: offski]
jlwestsr has quit [Ping timeout: 246 seconds]
emmanuelux has quit [Quit: emmanuelux]
kbeddingfield has quit [Ping timeout: 265 seconds]
Markvilla has quit [Ping timeout: 252 seconds]
afgeneralist has joined #ruby
rakl has quit [Quit: sleeping]
Markvilla has joined #ruby
statarb3 has joined #ruby
fyolnish has joined #ruby
jackdanger has quit [Quit: Leaving.]
statarb3 has quit [Client Quit]
Markvilla has quit [Ping timeout: 252 seconds]
bigmcq77 has quit [Quit: Computer has gone to sleep.]
johnmilton has quit [Remote host closed the connection]
Markvilla has joined #ruby
tjbiddle has joined #ruby
tbrock has quit [Quit: Computer has gone to sleep.]
Markvilla has quit [Ping timeout: 265 seconds]
clj_newb has quit [Ping timeout: 252 seconds]
maletor has joined #ruby
Markvilla has joined #ruby
davidcelis has quit [Quit: K-Lined.]
generalissimo has joined #ruby
noyb has joined #ruby
jlast has joined #ruby
generalissimo has quit [Remote host closed the connection]
Markvilla has quit [Ping timeout: 255 seconds]
Markvilla has joined #ruby
jgrevich_ has joined #ruby
fbernier has quit [Quit: ZNC - http://znc.in]
jgrevich has quit [Ping timeout: 248 seconds]
jgrevich_ is now known as jgrevich
Markvilla has quit [Ping timeout: 264 seconds]
Sou|cutter has quit [Ping timeout: 246 seconds]
pcarrier has quit []
maletor has quit [Ping timeout: 252 seconds]
Markvilla has joined #ruby
Bootstrapper has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
Markvilla has quit [Ping timeout: 252 seconds]
Markvilla has joined #ruby
jlast has quit [Ping timeout: 264 seconds]
burgestrand1 has joined #ruby
ephemerian has quit [Quit: Leaving.]
burgestrand has quit [Ping timeout: 245 seconds]
undersc0re97 has quit [Ping timeout: 245 seconds]
Markvilla has quit [Ping timeout: 256 seconds]
burgestrand1 has quit [Client Quit]
ryanlecompte has quit [Remote host closed the connection]
tuannat has joined #ruby
nwertman has joined #ruby
Markvilla has joined #ruby
mikepack has joined #ruby
ij has quit [Read error: Connection reset by peer]
joeycarmello has quit [Remote host closed the connection]
joeycarmello has joined #ruby
freeayu has joined #ruby
Markvilla has quit [Ping timeout: 252 seconds]
axl_ has quit [Quit: axl_]
nwertman has quit [Ping timeout: 260 seconds]
Markvilla has joined #ruby
gyre007 has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
vlad_starkov has joined #ruby
Rym has joined #ruby
Markvilla has quit [Ping timeout: 255 seconds]
Markvilla has joined #ruby
slainer68 has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 264 seconds]
daniel_- has quit [Quit: WeeChat 0.3.9.1]
nwertman has joined #ruby
<MarcWeber> bundle: How do I tell it to install :development or similar selections of the specificed gem files?
tjbiddle has quit [Ping timeout: 240 seconds]
emanu has quit [Quit: emanu]
etcetera has joined #ruby
Markvilla has quit [Ping timeout: 264 seconds]
Markvilla has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
kbeddingfield has joined #ruby
jlast has joined #ruby
Markvilla has quit [Ping timeout: 252 seconds]
joeycarmello has quit [Remote host closed the connection]
<shevy> hmm not sure how many here know bundler, there should be more on #bundler though
jimeh has quit [Quit: Computer has gone to sleep.]
davidcelis has joined #ruby
Markvilla has joined #ruby
kbeddingfield has quit [Ping timeout: 248 seconds]
alexim has quit [Quit: sleep]
samphippen has quit [Quit: Computer has gone to sleep.]
Markvilla has quit [Ping timeout: 255 seconds]
phantasm66 has joined #ruby
ddd has quit [Ping timeout: 245 seconds]
noyb has quit [Ping timeout: 276 seconds]
Markvilla has joined #ruby
lethjak__ has quit [Remote host closed the connection]
Rym has quit [Quit: Rym]
<dyreshark> hello! i have a quick question. \
Markvilla has quit [Client Quit]
nwertman has quit [Ping timeout: 244 seconds]
LouisGB has quit [Ping timeout: 264 seconds]
brianpWins has joined #ruby
seeingidog__ has joined #ruby
nignaztic has joined #ruby
mikepack has quit [Remote host closed the connection]
d34th4ck3r has quit [Quit: Konversation terminated!]
jeffreybaird has joined #ruby
<shevy> OK!
<shevy> will you ever ask it!
<dyreshark> sorry, didn't mean to hit enter, and i had to walk upstairs :p
v0n has joined #ruby
<dyreshark> sec
jlast has quit [Ping timeout: 248 seconds]
g-ram has quit [Quit: Computer has gone to sleep.]
<shevy> lol
ttt has joined #ruby
<dyreshark> so, i'm new to ruby, and i'm trying to take args from ARGV and quote them all correctly, so I can pass them into system(), but %Q doesn't seem to be quoting anything?
BoomCow has quit [Quit: This computer has gone to sleep]
<dyreshark> at the moment, i have ARGV.each do |x|; z = %Q{ #{x} }; print z; end
BoomCow has joined #ruby
<dyreshark> just to verify that things are being quoted, and it doesn't look like they are :(
<dyreshark> do you see what i'm doing wrong?
g-ram has joined #ruby
g-ram has quit [Client Quit]
kirun has quit [Quit: Client exiting]
banisterfiend has joined #ruby
atno is now known as atno|AFK
<tsou> dyreshark: %Q{...} is like "...", it will not add the quote symbols to your string, if this is what you want to achieve. Is that what you want?
Cicloid has quit [Remote host closed the connection]
<dyreshark> so, what i want is given the command ./my-program.rb "foo \" bar" baz, i want to transform ARGV from ['foo " bar', 'baz'] to ['"foo \" bar"', '"baz"']
jojosiao has joined #ruby
tomzx_ has joined #ruby
<tsou> dyreshark: looks like you want to map the inspect method on ARGV?
<tsou> not sure though
<dyreshark> aha! that's what i wanted.
<dyreshark> thank you :)
<tsou> no prob
Hanmac1 has joined #ruby
wpaulson has joined #ruby
seanstickle has quit [Quit: seanstickle]
afgeneralist has quit [Ping timeout: 255 seconds]
tvw has quit [Ping timeout: 244 seconds]
tommyvyo has joined #ruby
brianpWins has quit [Quit: brianpWins]
blazes816 has quit [Quit: blazes816]
Hanmac has quit [Ping timeout: 265 seconds]
<jojosiao> why is Fixnum === Fixnum #returns false ?
joeycarmello has joined #ruby
v0n has quit [Quit: Leaving]
rakl has joined #ruby
vldrz has joined #ruby
arya has quit [Ping timeout: 244 seconds]
rakl has quit [Client Quit]
etcetera has quit [Quit: Computer has gone to sleep.]
tommyvyo_ has joined #ruby
Goles has quit [Read error: Connection reset by peer]
nari has joined #ruby
wpaulson has quit [Read error: Connection reset by peer]
vldrz has quit [Remote host closed the connection]
wpaulson has joined #ruby
wpaulson has quit [Client Quit]
crocket has left #ruby ["Leaving"]
tomzx_ has quit [Ping timeout: 244 seconds]
arya has joined #ruby
ishe has joined #ruby
ishe is now known as ishe_ua
Elico has quit [Ping timeout: 264 seconds]
<ishe_ua>
shiin has quit [Quit: Computer has gone to sleep.]
ddd has joined #ruby
clj_newb has joined #ruby
tommyvyo_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jlast has joined #ruby
ishe_ua has left #ruby ["Killed buffer"]
BoomCow has quit [Quit: Leaving]
becom33 has quit [Read error: Connection timed out]
ninegrid has joined #ruby
becom33 has joined #ruby
wpaulson has joined #ruby
brianpWins has joined #ruby
wpaulson has quit [Client Quit]
jackdanger has joined #ruby
jackdanger has quit [Client Quit]
bricker has quit [Quit: leaving]
vlad_starkov has joined #ruby
clj_newb has quit [Ping timeout: 252 seconds]
Juul has joined #ruby
araujo has quit [Quit: Leaving]
jeffreybaird has quit [Quit: jeffreybaird]
vlad_starkov has quit [Ping timeout: 252 seconds]
itchyouch has joined #ruby
jackdanger has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
ishe has joined #ruby
ishe has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 244 seconds]
kbeddingfield has joined #ruby
nkts has quit []
kbeddingfield has quit [Read error: Operation timed out]
slainer68 has joined #ruby
hackerdude has quit [Remote host closed the connection]
alvaro_o has quit [Quit: Ex-Chat]
itchyouch has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
quest88 has joined #ruby
RudyValencia has joined #ruby
becom33 has quit [Read error: Connection timed out]
bigmcq77 has joined #ruby
<waxjar> what's the best practice for documenting metaprogrammed methods?
thinkdevcode has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
rodasc has joined #ruby
<cirwin> waxjar: I just put a comment above them as though they were real methods
slainer68 has quit [Ping timeout: 250 seconds]
<waxjar> cirwin: does yard normally pick them up?
<cirwin> don't think so
<waxjar> i'm a sucker for TomDoc, but its yard plugin seems to ignore them. idk if that's normal
<cirwin> pry can if you set __FILE__ and __LINE__ right
crodas has quit [Read error: Connection reset by peer]
becom33 has joined #ruby
jeffreybaird has joined #ruby
Goles has joined #ruby
<waxjar> neat :)
hackerdude has joined #ruby
senj has quit []
<waxjar> oh well, i guess i'll just have to make a note of it at the class level then.
rodasc has quit [Quit: Disconnecting from stoned server.]
crodas has joined #ruby
lethjakmans_lap has joined #ruby
pipopopo has quit [Ping timeout: 260 seconds]
Ruler_Of_Heaven_ has joined #ruby
jlast has joined #ruby
afgeneralist has joined #ruby
rakunHo has joined #ruby
judd7 has quit [Quit: judd7]
J-_-L has quit [Quit: Leaving.]
leifmadsen has joined #ruby
becom33 has quit [Read error: Connection timed out]
becom33 has joined #ruby
tommyvyo has joined #ruby
xpen has joined #ruby
gbchaosmaster has quit [Quit: Lost terminal]
jbermudes has quit [Read error: Operation timed out]
arya has quit [Ping timeout: 244 seconds]
npx has quit [Quit: ircII EPIC5-1.1.4 -- Are we there yet?]
jlast has quit [Ping timeout: 252 seconds]
generalissimo has joined #ruby
<ryanf> yard does have funky support for metaprogrammed method docs
<ryanf> it's described on the yard wiki somewhere i think?
<ryanf> just saw it yesterday
<ryanf> it didn't seem to have support for one magic line generating more than one method though
<ryanf> which seems like a pretty common case to me
jphpsf has quit [Ping timeout: 240 seconds]
arya has joined #ruby
hackerdude has quit [Remote host closed the connection]
<BrianJ> how do you load a file from relative directory in a ruby file? For instance in I want to load a file ./lib/*.rb
jds has joined #ruby
jbermudes has joined #ruby
jbermudes has quit [Changing host]
jbermudes has joined #ruby
digitalcakestudi has joined #ruby
joeycarmello has quit [Remote host closed the connection]
generalissimo has quit [Remote host closed the connection]
bruceape has joined #ruby
icole has joined #ruby
becom33 has quit [Read error: Connection timed out]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
becom33 has joined #ruby
<ryanf> in ruby 1.9, you can use require_relative 'lib/whatever.rb'
<ryanf> uh, minus the .rb
bigmac_ has quit [Quit: Leaving]
<ryanf> you can also use the beautiful idiom require File.expand_path('../lib/whatever', __FILE__)
bruceape has quit [Remote host closed the connection]
DaZ has joined #ruby
<MarcWeber> If I want to make sure that some dev tools such as https://github.com/ivalkeen/guard-ctags-bundler are always in my rvm environment, how to install such a git repo?
<MarcWeber> Can I tell bundler to add such dependencies without mentioning them in the .Gemfile.lock ?
adeponte has quit [Remote host closed the connection]
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
ryanlecompte has joined #ruby
dhruvasagar has joined #ruby
ebobby has quit [Quit: Lost terminal]
jlast has joined #ruby
bradhe has joined #ruby
jlast has quit [Read error: Connection reset by peer]
<leifmadsen> Evening all. I'm mostly in the process of learning ruby, but have an issue with a gem I'm trying to use. The problem is usage at this line: https://github.com/calavera/minitest-chef-handler/blob/master/lib/minitest-chef-handler/resources.rb#L41 and the issue documented here: https://github.com/calavera/minitest-chef-handler/issues/34#issuecomment-10480725
jlast has joined #ruby
<leifmadsen> I'm trying to figure out how to follow acrmp's idea to move the include out, but am not having any luck. Any pointers appreciated.
jlast has quit [Read error: Connection reset by peer]
jlast has joined #ruby
nomoral has joined #ruby
bradhe has quit [Remote host closed the connection]
nomoral has quit [Remote host closed the connection]
Nisstyre has quit [Ping timeout: 240 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Nisstyre has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
CamonZ_afk has joined #ruby
<MarcWeber> How to find documentation for it_should_behave_like? I somehow failed.
tommyvyo has quit [Quit: Computer has gone to sleep.]
rachelE has quit [Ping timeout: 276 seconds]
kil0byte has joined #ruby
cardoni has quit [Quit: Linkinus - http://linkinus.com]
noyb has joined #ruby
afgeneralist has quit [Ping timeout: 240 seconds]
Bootstrapper has joined #ruby
brianpWins has quit [Ping timeout: 265 seconds]
brianpWins has joined #ruby
Guest85801 has joined #ruby
Bootstrapper has quit [Remote host closed the connection]
Guest85801 has quit [Remote host closed the connection]
digitalcakestudi has quit [Quit: Leaving.]
areil has joined #ruby
jenrzzz has joined #ruby
BadProphet has quit [Remote host closed the connection]
garbonzo has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
becom33 has quit [Read error: Operation timed out]
niklasb has quit [Ping timeout: 260 seconds]
becom33 has joined #ruby
h4mz1d has joined #ruby
paparazzi has joined #ruby
pencilcheck has quit [Remote host closed the connection]
bigmcq77 has quit [Quit: Textual IRC Client: www.textualapp.com]
ryanf has quit [Quit: leaving]
ryanf_ has joined #ruby
rohit_ has joined #ruby
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
segmond has joined #ruby
h4mz1d has quit [Ping timeout: 250 seconds]
CamonZ_afk has left #ruby ["Linkinus - http://linkinus.com"]
chendo_ is now known as chendo
segmond has left #ruby [#ruby]
danneu has joined #ruby
davidokner has left #ruby [#ruby]
brianpWins has quit [Quit: brianpWins]
ryanlecompte has joined #ruby
jlast has quit [Ping timeout: 244 seconds]
Juul has quit [Ping timeout: 244 seconds]
ionte has quit [Read error: Operation timed out]
ionte has joined #ruby
chimkan___ has joined #ruby
garbonzo has quit [Read error: Connection reset by peer]
nemonic has joined #ruby
seeingidog__ has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 255 seconds]
rramsden has joined #ruby
becom33 has quit [Read error: Connection timed out]
chimkan_ has quit [Ping timeout: 264 seconds]
chimkan___ has quit [Ping timeout: 245 seconds]
tommyvyo has joined #ruby
becom33 has joined #ruby
iamjarvo has joined #ruby
phantasm66 has quit [Quit: *sleeeeep*]
fasta_ has quit [Ping timeout: 260 seconds]
ananthakumaran has joined #ruby
ryanf_ has quit [Quit: broken pipes |||]
icole has quit [Remote host closed the connection]
rramsden has left #ruby [#ruby]
bigmac has joined #ruby
Juul has joined #ruby
acrocity_ has joined #ruby
tomoyuki28jp has joined #ruby
joeycarmello has joined #ruby
lethjakmans_lap has quit [Remote host closed the connection]
<tomoyuki28jp> How can I get date of first Sunday on Nov 2012?
radic has joined #ruby
judd7 has joined #ruby
paparazzi has left #ruby ["Leaving"]
acrocity has quit [Ping timeout: 264 seconds]
acrocity_ is now known as acrocity
aleiphoenix has quit [Quit: leaving]
LucidDreamZzZ has quit [Remote host closed the connection]
fasta has joined #ruby
LucidDreamZzZ has joined #ruby
joeycarmello has quit [Ping timeout: 248 seconds]
<cirwin> tomoyuki28jp: try the chronic gem
radic_ has quit [Ping timeout: 240 seconds]
<tomoyuki28jp> cirwin: will take a look at, thanks
<tomoyuki28jp> I'm currently using ice_cube with rails, and wondering if they provide the feature
jackdanger has quit [Quit: Leaving.]
rramsden has joined #ruby
<tomoyuki28jp> Not the best efficient way, but this way is simple. http://stackoverflow.com/questions/10429156/how-do-i-get-all-sundays-between-two-dates-in-ruby
Dreamer3 has joined #ruby
ryanf has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
phantasm66 has joined #ruby
jlast has joined #ruby
jmccune has quit [Ping timeout: 255 seconds]
jmccune has joined #ruby
jmccune has quit [Changing host]
jmccune has joined #ruby
icole has joined #ruby
mksm has quit [Ping timeout: 252 seconds]
mksm has joined #ruby
kil0byte has quit [Remote host closed the connection]
bradhe has joined #ruby
phantasm66 has quit [Quit: *sleeeeep*]
becom33 has quit [Ping timeout: 264 seconds]
chimkan has joined #ruby
tomoyuki28jp has quit [Read error: Connection reset by peer]
miyaken has joined #ruby
kbeddingfield has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
kbeddingfield has quit [Remote host closed the connection]
becom33 has joined #ruby
mahmoudimus has joined #ruby
jlast has quit [Ping timeout: 264 seconds]
straind has joined #ruby
ananthakumaran has joined #ruby
rramsden has quit [Ping timeout: 244 seconds]
rohit_ has quit [Ping timeout: 260 seconds]
tommyvyo_ has joined #ruby
rohit_ has joined #ruby
segmond has joined #ruby
piotr has joined #ruby
arya has quit [Ping timeout: 244 seconds]
swarley has quit [Ping timeout: 260 seconds]
miyaken has quit [Remote host closed the connection]
gbchaosmaster has joined #ruby
arya has joined #ruby
icole has quit [Remote host closed the connection]
icole has joined #ruby
RudyValencia has quit [Quit: Hacked By Chinese!]
tommyvyo has quit [Quit: Computer has gone to sleep.]
tommyvyo_ is now known as tommyvyo
bigmcq77 has joined #ruby
becom33 has quit [Read error: Connection timed out]
arya has quit [Ping timeout: 244 seconds]
CamonZ has quit [Quit: Leaving...]
<epitron> err, wrong channel ^_^
becom33 has joined #ruby
Grieg has quit [Quit: laterz! :D]
jlast has joined #ruby
rramsden has joined #ruby
arya has joined #ruby
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
headius has quit [Quit: headius]
margle has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 252 seconds]
wallerdev has quit [Quit: wallerdev]
rramsden has quit [Quit: leaving]
wallerdev has joined #ruby
kbeddingfield has joined #ruby
love_color_text has quit [Remote host closed the connection]
Eiam has joined #ruby
rramsden has joined #ruby
Guest92676 has joined #ruby
tommyvyo has joined #ruby
seydar has joined #ruby
<seydar> hello
<seydar> anyone NOT idling?
C0deMaver1ck has quit [Ping timeout: 246 seconds]
brianpWins has joined #ruby
<seydar> how do i compare IO objects
<seydar> issue:
<seydar> r, w = IO.pipe; r.reopen STDIN; r == STDIN # => false
<seydar> when i would like it to be true
<seydar> the best part: r.inspect and STDIN.inspect show the same output
tonini has joined #ruby
<gbchaosmaster> seydar: Kneejerk solution, r.inspect == STDIN.inspect?
icole has quit [Remote host closed the connection]
<seydar> i'm embarrassed i didn't think of that
<seydar> i'll implement that for now
segv_ has joined #ruby
<seydar> but i'd really like a better solution that didn't rely on that
<seydar> thank you
<gbchaosmaster> No problem
<Eiam> I have a python 'script' that I'd like to interact with from ruby instead of rewriting it in ruby
freezway has left #ruby ["Leaving"]
jlast has quit [Ping timeout: 248 seconds]
<Eiam> is rubypython my best bet? i'd also like to avoid parsing stdout output
Goles has quit [Remote host closed the connection]
<seydar> Eiam: sockets
<Eiam> sockets? fairly generic google term there
<seydar> gbchaosmaster: r.stat == STDIN.stat
<Eiam> something more specific i can go on?
<gbchaosmaster> That'll do it.
<seydar> Eiam: IO sockets. network sockets
<seydar> oooh, also unix sockets
CaptainJet has quit []
<seydar> connect to a socket with both programs
<seydar> and then just read/write data
<Eiam> okay I'm thinking about now i wish i was a bit less stupid
<seydar> it's very low-tech
Guest92676 has quit [Read error: Connection reset by peer]
<Eiam> cause i have no idea what you are talking about
<Eiam> so i should rewrite this python script to support connecting to a socket on a machine, then also have ruby connect to the same socket
<seydar> bingo
<Eiam> and presumbly have them both understand how to talk to the socket
<Eiam> gosh that sounds like more work than just rewriting the python script in ruby =)
<Eiam> cause then i have to lear how to do sockets in ruby AND python! ;p
<seydar> Eiam: if it's your first time, then probably
C0deMaver1ck has joined #ruby
<Eiam> clearly
<seydar> but if you are willing to learn them, they're a neat trick to have in your pocket
<Eiam> there is no end to the list of things i want to learn
<Eiam> there is however a limit on my time to learn them
C0deMaver1ck is now known as Guest18479
<Eiam> okay so after sockets
gregorg has quit [Read error: Connection reset by peer]
gregorg_taf has joined #ruby
noyb has quit [Ping timeout: 255 seconds]
jds has quit [Remote host closed the connection]
cintrikz has joined #ruby
QKO has quit [Read error: Operation timed out]
rramsden has quit [Quit: leaving]
Goles has joined #ruby
kil0byte has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
rakunHo_ has joined #ruby
rakunHo has quit [Ping timeout: 244 seconds]
becom33 has quit [Ping timeout: 248 seconds]
JohnBat26 has joined #ruby
QKO has joined #ruby
becom33 has joined #ruby
Charlie_ has quit [Quit: leaving]
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
seydar has quit [Quit: leaving]
bradhe has joined #ruby
cantonic_ has joined #ruby
linoj has quit [Quit: linoj]
bradhe has quit [Remote host closed the connection]
tommyvyo has quit [Ping timeout: 252 seconds]
Goles has quit [Remote host closed the connection]
cantonic has quit [Ping timeout: 244 seconds]
cantonic_ is now known as cantonic
tommyvyo has joined #ruby
arya has quit [Ping timeout: 244 seconds]
daniel_hinojosa has quit [Quit: Leaving.]
arya has joined #ruby
bradhe has joined #ruby
jlast has joined #ruby
diegoviola has joined #ruby
chimkan has quit [Quit: chimkan]
wf2f has quit [Ping timeout: 248 seconds]
jlast has quit [Read error: Connection reset by peer]
margle has quit [Quit: Computer has gone to sleep.]
jlast has joined #ruby
zommi has joined #ruby
ij has joined #ruby
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
pcarrier has joined #ruby
segmond has left #ruby ["Leaving"]
margle has joined #ruby
jds has joined #ruby
etcetera has joined #ruby
topek has joined #ruby
nilg has quit [Remote host closed the connection]
tomsthumb has quit [Quit: Leaving.]
gbchaosmaster is now known as PatientBear
PatientBear is now known as gbchaosmaster
tomsthumb has joined #ruby
tomsthumb has quit [Client Quit]
Tabrenus has joined #ruby
jds has quit [Read error: Operation timed out]
pcarrier has quit [Ping timeout: 250 seconds]
fantazo has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
kil0byte_ has joined #ruby
tagrudev has joined #ruby
arya has quit [Ping timeout: 244 seconds]
arya has joined #ruby
kil0byte has quit [Ping timeout: 240 seconds]
notwen_ is now known as notwen
jlast has quit [Ping timeout: 256 seconds]
BrianJ has quit [Quit: BrianJ]
LucidDreamZzZ has quit [Ping timeout: 276 seconds]
LucidDreamZzZ has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
araujo has joined #ruby
Hanmac1 is now known as Hanmac
rippa has joined #ruby
LucidDreamZzZ has quit [Ping timeout: 276 seconds]
LucidDreamZzZ has joined #ruby
tommyvyo has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
arya has quit [Ping timeout: 244 seconds]
icole has joined #ruby
mikepack has joined #ruby
charliesome has joined #ruby
lukeholder has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
arya has joined #ruby
pcarrier has joined #ruby
morf has joined #ruby
icole has quit [Ping timeout: 265 seconds]
etcetera has quit [Quit: Computer has gone to sleep.]
Tabrenus has quit [Quit: Tabrenus]
Monie[ip] has joined #ruby
joeycarmello has joined #ruby
mercwithamouth has joined #ruby
ikaros has joined #ruby
pcarrier has quit [Ping timeout: 240 seconds]
RandyInLA has joined #ruby
pyx has joined #ruby
[0x1a] has quit [Quit: Connection closed for inactivity]
pyx has left #ruby [#ruby]
h4mz1d has joined #ruby
lolmaus has joined #ruby
Monie[ip] has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
tommyvyo has quit [Quit: Computer has gone to sleep.]
arya has quit [Ping timeout: 244 seconds]
Goles has joined #ruby
tomsthumb has joined #ruby
nomenkun has joined #ruby
arya has joined #ruby
cibs has joined #ruby
jackiechan0 has joined #ruby
Coretracker has joined #ruby
jackiechan0 has quit [Remote host closed the connection]
Goles has quit [Ping timeout: 256 seconds]
maesbn has joined #ruby
h4mz1d has quit [Ping timeout: 264 seconds]
apeiros_ has joined #ruby
monkegji_ has joined #ruby
dhruvasagar has joined #ruby
ZubKonst has joined #ruby
aganov has joined #ruby
ZubKonst_ has quit [Ping timeout: 264 seconds]
arya has quit [Ping timeout: 244 seconds]
jds has joined #ruby
hotovson has joined #ruby
nomenkun has quit [Remote host closed the connection]
arya has joined #ruby
jds has quit [Ping timeout: 250 seconds]
Juul has quit [Read error: Connection reset by peer]
banisterfiend has quit [Remote host closed the connection]
pcarrier has joined #ruby
pcarrier has quit [Max SendQ exceeded]
arya_ has joined #ruby
pcarrier has joined #ruby
gregorg_taf has quit [Changing host]
gregorg_taf has joined #ruby
gregorg_taf is now known as gregorg
eldariof has joined #ruby
arya has quit [Ping timeout: 244 seconds]
JC_SoCal has left #ruby [#ruby]
rippa has quit [Ping timeout: 260 seconds]
krz has joined #ruby
wookiehangover has quit [Read error: Connection reset by peer]
jlast has joined #ruby
arya_ has quit [Ping timeout: 244 seconds]
pcarrier has quit [Ping timeout: 245 seconds]
matrixise has quit [Ping timeout: 255 seconds]
joeycarmello has quit [Remote host closed the connection]
xbayrockx has joined #ruby
rohit_ has quit [Quit: Leaving]
joeycarmello has joined #ruby
timonv has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 244 seconds]
wookiehangover has joined #ruby
wf2f has quit [Ping timeout: 255 seconds]
Juul has joined #ruby
joeycarmello has quit [Remote host closed the connection]
otters has quit [Ping timeout: 252 seconds]
kuzushi has quit [Ping timeout: 240 seconds]
havenn has joined #ruby
zzyybb has quit [Ping timeout: 245 seconds]
Juul has quit [Read error: Connection reset by peer]
FailDrain has joined #ruby
<FailDrain> Hello I was hoping someone could help me interpretate this http://en.wikipedia.org/wiki/Midpoint_circle_algorithm into c++ code with me :/?
locriani has quit [Read error: Operation timed out]
srji has quit [Quit: Lost terminal]
locriani has joined #ruby
otters has joined #ruby
filipe has joined #ruby
booginga has joined #ruby
__class__ has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
nomenkun has joined #ruby
<Beoran__> FailDrain, go ask in #c++ , maybe ? :)
charlie has joined #ruby
charlie is now known as Guest56365
teedex has joined #ruby
k610 has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
Guest56365 has quit [Client Quit]
sandersc1 has joined #ruby
qwerxy has joined #ruby
Morkel has joined #ruby
nomenkun has quit [Remote host closed the connection]
becom33 has quit [Ping timeout: 240 seconds]
becom33 has joined #ruby
ephemerian has joined #ruby
hoelzro|away is now known as hoelzro
__class__ has joined #ruby
workmad3 has quit [Read error: Operation timed out]
heftig has quit [Quit: leaving]
Juul has joined #ruby
pcarrier has joined #ruby
jgrevich has quit [Remote host closed the connection]
nazty has quit [Read error: Connection reset by peer]
ikaros has quit [Quit: Ex-Chat]
Liothen has quit [Read error: Connection reset by peer]
nazty has joined #ruby
[1]SoonerBourne has joined #ruby
Liothen has joined #ruby
Liothen has quit [Changing host]
Liothen has joined #ruby
sandersc1 has quit [Quit: leaving]
krnlsndrs has joined #ruby
dertyp has joined #ruby
hsbt is now known as hsbt_away
SoonerBourne has quit [Ping timeout: 264 seconds]
[1]SoonerBourne is now known as SoonerBourne
otters has quit [Ping timeout: 244 seconds]
hamed_r has joined #ruby
jasond has quit [Ping timeout: 264 seconds]
cezar has quit [Quit: Leaving]
pcarrier has quit [Ping timeout: 246 seconds]
zommi has left #ruby [#ruby]
atno|AFK is now known as atno
<witchdoc> hi all
nari has quit [Ping timeout: 245 seconds]
chendo has quit [Ping timeout: 248 seconds]
Juul has quit [Read error: Connection reset by peer]
<Coretracker> @witchdoc hi
<atno> morning #ruby
<Coretracker> morning atno
chendo_ has joined #ruby
zigomir has joined #ruby
ryanlecompte has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
ryanlecompte has joined #ruby
jjang has quit [Remote host closed the connection]
chendo_ has quit [Ping timeout: 250 seconds]
chendo_ has joined #ruby
berserkr has joined #ruby
bradhe has quit [Remote host closed the connection]
Juul has joined #ruby
robotmay has joined #ruby
bradhe has joined #ruby
robotmay has quit [Remote host closed the connection]
bluOxigen has joined #ruby
jimeh has joined #ruby
mengu has joined #ruby
danneu has quit [Ping timeout: 252 seconds]
cantonic has quit [Quit: cantonic]
Juul has quit [Ping timeout: 250 seconds]
qwerxy has quit [Quit: offski]
mikepack has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
pcarrier has joined #ruby
Elhu has joined #ruby
thestereobus has joined #ruby
[Neurotic] has quit [Ping timeout: 276 seconds]
<thestereobus> is it possible define an array-like method that takes a tLSHFT? like how one can def foo= but def foo<<
<apeiros_> thestereobus: no
[Neurotic] has joined #ruby
<apeiros_> foo<< is two methods, .foo.<<()
kn330 has joined #ruby
<cirwin> thestereobus: you could def foo; Object.new.tap{ |x| x.singleton_class.define_method(:<<) { <<<DO STUFF>>> } }; end
tuannat has quit [Read error: Connection reset by peer]
<thestereobus> interesting
<thestereobus> thanks
rdark has joined #ruby
tuannat has joined #ruby
<apeiros_> I'd do it with a proper class instead - less overhead
<apeiros_> (and probably easier to understand)
<cirwin> fo'sore
<cirwin> *shore
pcarrier has quit [Ping timeout: 244 seconds]
<apeiros_> footsore?
<cirwin> na, that'd be f'o'sore
<cirwin> or fo"sore
Iszak has joined #ruby
Iszak has quit [Max SendQ exceeded]
chussenot has joined #ruby
Iszak has joined #ruby
joeycarmello has joined #ruby
brandon has joined #ruby
swex has joined #ruby
matrixise has joined #ruby
swex_ has quit [Read error: Operation timed out]
sporkball has joined #ruby
sepp2k has joined #ruby
joeycarmello has quit [Ping timeout: 250 seconds]
jds has joined #ruby
lukeholder has quit [Quit: Computer has gone to sleep.]
LouisGB has joined #ruby
sporkball has quit [Quit: Computer has gone to sleep.]
danneu has joined #ruby
guy____ has joined #ruby
elkclone has quit [Quit: It's never too late to unplug and run.]
elkclone has joined #ruby
slainer68 has joined #ruby
jmkeyes has joined #ruby
nomenkun has joined #ruby
arya has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
<jmkeyes> Is there a way to evaluate the contents of a Module definition in the context of an instance of another class?
<apeiros_> jmkeyes: no, but you can add the methods of a Module to an object or a class
kil0byte has joined #ruby
nomenkun_ has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
tomsthumb1 has joined #ruby
tomsthumb has quit [Read error: Connection reset by peer]
elkclone_ has joined #ruby
Cork- has quit [Changing host]
Cork- has joined #ruby
Cork- is now known as Cork
heftig has joined #ruby
timonv has joined #ruby
kil0byte_ has quit [Ping timeout: 260 seconds]
Virunga has joined #ruby
kn330 has quit [Ping timeout: 244 seconds]
tomsthumb1 has quit [Read error: Connection reset by peer]
tomsthumb has joined #ruby
danneu has quit [Ping timeout: 252 seconds]
elkclone has quit [Ping timeout: 246 seconds]
bradhe has quit [Remote host closed the connection]
slainer68 has joined #ruby
adambeynon has joined #ruby
slainer6_ has joined #ruby
BoomCow has joined #ruby
psino_ is now known as psino
clocKwize has joined #ruby
mikecmpbll has joined #ruby
<hemanth> apeiros_, the array class does not implement << ?
slainer__ has joined #ruby
pcarrier has joined #ruby
<apeiros_> hemanth: ? of course it does, why?
slainer68 has quit [Ping timeout: 244 seconds]
<hemanth> apeiros_, def foo; Object.new.tap{ |x| x.singleton_class.define_method(:<<) { <<<DO STUFF>>> } }; end something like that?
mikecmpbll has quit [Client Quit]
iamjarvo has quit [Quit: Computer has gone to sleep.]
<apeiros_> I don't follow…
keymone has quit [Quit: keymone]
mikecmpbll has joined #ruby
hsbt_away is now known as hsbt
<morf> wtf
<hemanth> apeiros_, np
<hemanth> morf, WYSIWTF
<apeiros_> what?
teedex has quit [Remote host closed the connection]
slainer6_ has quit [Ping timeout: 240 seconds]
teedex has joined #ruby
slainer68 has joined #ruby
teedex has quit [Read error: Connection reset by peer]
teedex has joined #ruby
xpen_ has joined #ruby
fyolnish has quit [Remote host closed the connection]
tk__ has joined #ruby
clj_newb has joined #ruby
slainer__ has quit [Ping timeout: 244 seconds]
<hemanth> was curious about <apeiros_> foo<< is two methods, .foo.<<()
elkclone_ has quit [Quit: It's never too late to unplug and run.]
elkclone__ has joined #ruby
Ruler_Of_Heaven_ is now known as pipopopo
robbyoconnor has joined #ruby
xpen has quit [Ping timeout: 264 seconds]
thestereobus has quit [Quit: thestereobus]
cdt_ has joined #ruby
pcarrier has quit [Ping timeout: 255 seconds]
BoomCow has quit [Ping timeout: 244 seconds]
<apeiros_> hemanth: he meant it as a method name. so it'd be obj.foo << value
teedex has quit [Remote host closed the connection]
<apeiros_> and in that context, it's always two methods, obj.foo.<<(value)
<apeiros_> i.e., naming a method 'foo<<' is possible (via define_method), but not invokable without send.
teedex has joined #ruby
elkclone_ has joined #ruby
elkclone__ has quit [Read error: Connection reset by peer]
<hemanth> apeiros_, ah ha, hmm..I thought he wanted to use << like array does
kil0byte_ has joined #ruby
jimeh has quit [Quit: Bye.]
pcarrier has joined #ruby
shtirlic has joined #ruby
shtirlic has quit [Client Quit]
shtirlic has joined #ruby
atno is now known as atno|smoke
kil0byte has quit [Ping timeout: 256 seconds]
jimeh has joined #ruby
tuan_nat has joined #ruby
teedex has quit [Ping timeout: 264 seconds]
kn330 has joined #ruby
tuannat has quit [Ping timeout: 255 seconds]
hsbt is now known as hsbt_away
kil0byte has joined #ruby
workmad3 has joined #ruby
arya has quit [Ping timeout: 244 seconds]
timmow has joined #ruby
_guy has joined #ruby
kil0byte_ has quit [Ping timeout: 265 seconds]
d34th4ck3r has joined #ruby
<Beoran__> apeiros_, it would be pretty bad to define a method named foo<< though, unless you want to use some kind of trick
sk87 has joined #ruby
guy____ has quit [Ping timeout: 256 seconds]
blacktulip has joined #ruby
zaki has quit [Read error: Operation timed out]
<apeiros_> Beoran__: I don't think it'd be bad. but pointless if you want to invoke it without send.
<apeiros_> use cases for it are rather rare. one use case for such methods is shown by e.g. Nokogiri
hamed_r has quit [Quit: Leaving]
qwerxy has joined #ruby
robustus has joined #ruby
ryanf has quit [Quit: broken pipes |||]
rohit has joined #ruby
beiter has joined #ruby
Averna has joined #ruby
<Beoran__> ah yes, for methods that look like <tags>
jmkelly has joined #ruby
elkclone__ has joined #ruby
elkclone_ has quit [Read error: Connection reset by peer]
jds has quit [Remote host closed the connection]
d34th4ck3r has quit [Ping timeout: 250 seconds]
rakunHo_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
[Neurotic] has quit [Read error: Connection reset by peer]
tjbiddle has joined #ruby
kn330 has quit [Read error: Connection reset by peer]
cascalheira has joined #ruby
[Neurotic] has joined #ruby
hoelzro is now known as hoelzro|away
hoelzro|away is now known as hoelzro
zaki has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
jmkelly has left #ruby [#ruby]
arya has joined #ruby
jojosiao has left #ruby [#ruby]
pcarrier has quit []
tjbiddle has quit [Quit: tjbiddle]
arya has quit [Client Quit]
u89 has joined #ruby
tjbiddle has joined #ruby
volta has joined #ruby
tjbiddle has quit [Client Quit]
ij has quit [Read error: Connection reset by peer]
atno|smoke is now known as atno
ij has joined #ruby
kn330 has joined #ruby
fyolnish has joined #ruby
love_color_text has joined #ruby
_guy has quit [Remote host closed the connection]
love_color_text has quit [Remote host closed the connection]
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
_guy has joined #ruby
jackiechan0 has joined #ruby
JohnTeddy has quit [Changing host]
JohnTeddy has joined #ruby
d34th4ck3r has joined #ruby
ttt has quit [Remote host closed the connection]
lotus2015 has joined #ruby
_guy has quit [Remote host closed the connection]
bradhe has joined #ruby
jds has joined #ruby
xpen_ has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 252 seconds]
mkillebrew has quit [Ping timeout: 260 seconds]
d34th4ck3r has quit [Quit: Konversation terminated!]
kn330_ has joined #ruby
kn330_ has quit [Remote host closed the connection]
mkillebrew has joined #ruby
cousine has joined #ruby
elkclone_ has joined #ruby
kn330 has quit [Ping timeout: 248 seconds]
rohit has quit [Ping timeout: 255 seconds]
elkclone__ has quit [Read error: Connection reset by peer]
banister_ has joined #ruby
<xbayrockx> how do you ship stolen goods to an address for pickup? of course you don't want it to be your own...
jds has quit [Ping timeout: 252 seconds]
<Xeago> xbayrockx: use an unexpected overly attached girlfriend
<Xeago> worse case scenario, you get unattached
<Xeago> unexpecting*
dekroning has joined #ruby
nemonic has quit [Ping timeout: 260 seconds]
nignaztic has quit [Ping timeout: 260 seconds]
monkegji_ has quit [Remote host closed the connection]
lotus2015 has quit [Quit: lotus2015]
xbayrockx has quit [Ping timeout: 248 seconds]
tuan_nat has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Zolrath has quit []
<JonnieCache> oh he left.
<JonnieCache> he sounded interesting
<Xeago> uhu yea :)
tonini has quit [Remote host closed the connection]
Gurpartap has joined #ruby
<Gurpartap> Can someone help me identify the cause of a particular ArgumentError?
wallerdev has quit [Quit: wallerdev]
Bosma has quit [Ping timeout: 252 seconds]
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
thestereobus has joined #ruby
hoelzro is now known as hoelzro|away
arturaz has joined #ruby
vlad_starkov has joined #ruby
ishe has joined #ruby
elkclone_ has quit [Ping timeout: 246 seconds]
reinaldob has joined #ruby
daniel_- has quit [Ping timeout: 244 seconds]
lkba has joined #ruby
rohit-sharma has joined #ruby
gbchaosmaster has quit [Remote host closed the connection]
k610 has quit [Ping timeout: 255 seconds]
k610 has joined #ruby
<rohit-sharma> hey guys
<rohit-sharma> I have created a rack proxy sever
<rohit-sharma> Everything works fine
<rohit-sharma> but while uploading files
<rohit-sharma> the connection betwwen the browser and the rack app gets terminated
<rohit-sharma> also tried using rack-timeout
aaronmcadam has joined #ruby
<rohit-sharma> but no help
<rohit-sharma> can you guys help me with this
<rohit-sharma> ?
rohit_ has joined #ruby
<aaronmcadam> Hi guys
<aaronmcadam> does anyone know of a good way to find out what CFLAGS to compile Ruby with?
pcarrier has joined #ruby
<JonnieCache> rohit_: what server are you using to run the rack app?
vlad_starkov has quit [Remote host closed the connection]
Slivka has quit [Read error: Connection reset by peer]
<JonnieCache> some of them cope better with long-lasting connections than others
wf2f has quit [Changing host]
wf2f has joined #ruby
<rohit-sharma> nothing yet
<rohit_> JonnieCache, Wrong rohit :)
<rohit-sharma> on my machine i just run a basic rack app
<rohit-sharma> using rackup command
<JonnieCache> oh sorry
<Xeago> rohit-sharma: then how can you get a terminated connection?
thestereobus__ has joined #ruby
Slivka has joined #ruby
<JonnieCache> ah right so its running in webrick. webrick is a toy server and will fall over if you so much as look at it funny
thestereobus has quit [Ping timeout: 244 seconds]
thestereobus__ is now known as thestereobus
<rohit-sharma> oh!! that... its running on thin
<JonnieCache> oh right
<rohit_> Might I suggest making a !gist of the server log output? :)
SuperrMann has joined #ruby
<rohit_> !gist = https://gist.github.com/
larissa has joined #ruby
<rohit-sharma> Here is the link to rack logs
pcarrier has quit [Ping timeout: 245 seconds]
hotovson has quit [Remote host closed the connection]
ishe has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 260 seconds]
pcarrier has joined #ruby
atno is now known as atno|AFK
Banistergalaxy has joined #ruby
cirwin has quit [Ping timeout: 256 seconds]
hotovson has joined #ruby
reinaldo_ has joined #ruby
reinaldo_ has quit [Remote host closed the connection]
Asher2 has joined #ruby
<rohit_> Can you also post the code?
Asher has quit [Ping timeout: 240 seconds]
reinaldob has quit [Ping timeout: 250 seconds]
samphippen has joined #ruby
<rohit-sharma> here is the link to the code
<rohit-sharma> another notable thing is..
<rohit-sharma> small file < 100 KB gets uploaded successfully
grzywacz has joined #ruby
nemonic has joined #ruby
beiter has quit [Ping timeout: 276 seconds]
nignaztic has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Xeago> rohit-sharma: probably timeouts, or maximum data reached
<rohit-sharma> Xeago, I tried using rack-timeout library..but no change
apeiros_ has quit [Read error: Connection timed out]
hoelzro|away is now known as hoelzro
apeiros_ has joined #ruby
larissa has quit [Read error: Connection reset by peer]
larissa has joined #ruby
Rydefalk has joined #ruby
clj_newb has quit [Ping timeout: 240 seconds]
AndChat- has joined #ruby
<withnale> if I want to create a capistrano role inside a module method, how would I do it...? outside of the module I can just call 'role' directly in my method and it's retained when I come back. I guess it would be the same problem if I were using rake.
bier_ has quit [Ping timeout: 252 seconds]
_guy has joined #ruby
bier has quit [Ping timeout: 260 seconds]
Banistergalaxy has quit [Ping timeout: 244 seconds]
jds has joined #ruby
lotus2015 has joined #ruby
blacktulip has quit [Remote host closed the connection]
banister_ has quit [Remote host closed the connection]
blacktulip has joined #ruby
jackiechan0 has quit [Ping timeout: 246 seconds]
jds has quit [Ping timeout: 245 seconds]
nemonic has quit [Ping timeout: 264 seconds]
nignaztic has quit [Ping timeout: 260 seconds]
nemonic has joined #ruby
monkegji_ has joined #ruby
_guy has quit [Ping timeout: 256 seconds]
nignaztic has joined #ruby
staafl has joined #ruby
bier has joined #ruby
bier_ has joined #ruby
Asher2 has quit [Quit: Leaving.]
Asher has joined #ruby
mikecmpbll has joined #ruby
swex has quit [Remote host closed the connection]
swex has joined #ruby
Virunga has quit [Remote host closed the connection]
nemonic has quit [Ping timeout: 248 seconds]
_guy has joined #ruby
nignaztic has quit [Ping timeout: 264 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
cascalheir has joined #ruby
yshh has quit [Remote host closed the connection]
cascalheira has quit [Read error: Connection reset by peer]
pavilionXP has joined #ruby
beiter has joined #ruby
Guest39162 has joined #ruby
schaerli has joined #ruby
schaerli has quit [Remote host closed the connection]
G has quit [Ping timeout: 246 seconds]
schaerli has joined #ruby
sk87 has quit [Quit: sk87]
atno|AFK is now known as atno
lele has quit [Ping timeout: 246 seconds]
Guest39162 is now known as rutkovsky
lele has joined #ruby
G has joined #ruby
kil0byte_ has joined #ruby
elsifaka has joined #ruby
Sahilc has joined #ruby
Sahilc has left #ruby [#ruby]
kil0byte has quit [Ping timeout: 276 seconds]
shtirlic has quit [Remote host closed the connection]
replore_ has joined #ruby
chussenot has quit [Quit: chussenot]
ij has quit [Read error: Connection reset by peer]
ij has joined #ruby
vlad_starkov has joined #ruby
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
nemonic has joined #ruby
nignaztic has joined #ruby
vlad_starkov has quit [Ping timeout: 276 seconds]
yshh has joined #ruby
rohit_ has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Ping timeout: 260 seconds]
punkrawkR has joined #ruby
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
Goles has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
krz has quit [Quit: krz]
perun_ has quit [Ping timeout: 240 seconds]
Axsuul has quit [Ping timeout: 252 seconds]
nemonic has quit [Quit: WeeChat 0.3.7]
nignaztic has quit [Quit: Lost terminal]
cody-- has joined #ruby
dakine has quit [Quit: Leaving]
chussenot has joined #ruby
ninegrid has quit [Ping timeout: 252 seconds]
kil0byte has joined #ruby
u89 has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 260 seconds]
Sahilc has joined #ruby
cantonic has joined #ruby
kil0byte_ has quit [Ping timeout: 245 seconds]
atno is now known as atno|C
_guy has quit [Remote host closed the connection]
rohit-sharma has quit [Quit: Leaving]
_guy has joined #ruby
samphippen has joined #ruby
Virunga has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
gyre007 has joined #ruby
perun_ has joined #ruby
Sahilc has left #ruby [#ruby]
grzywacz has quit [Ping timeout: 252 seconds]
u89 has joined #ruby
nemonic has joined #ruby
nemesit has joined #ruby
nemonic is now known as nignaztic
Uranio has joined #ruby
mklappstuhl has joined #ruby
chussenot has quit [Quit: chussenot]
ryanlecompte has quit [Read error: Connection reset by peer]
ryanlecompte has joined #ruby
cantonic has quit [Quit: cantonic]
lkba has joined #ruby
chussenot has joined #ruby
thestereobus has quit [Quit: thestereobus]
Elhu has joined #ruby
schaerli has quit [Remote host closed the connection]
banisterfiend has joined #ruby
sk87 has joined #ruby
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
dertyp has quit [Quit: Leaving...]
gyre007 has quit [Remote host closed the connection]
beiter has quit [Ping timeout: 256 seconds]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
phantasm66 has joined #ruby
nignaztic has quit [Ping timeout: 252 seconds]
nignaztic has joined #ruby
filipe has quit [Remote host closed the connection]
yakko has joined #ruby
yakko has quit [Remote host closed the connection]
jackiechan0 has joined #ruby
ZubKonst has quit [Read error: Connection reset by peer]
ephemerian has quit [Ping timeout: 255 seconds]
gyre007 has joined #ruby
thestereobus has joined #ruby
mikecmpbll has quit [Quit: Computer has gone to sleep.]
ZubKonst has joined #ruby
beiter has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
nomenkun_ has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
nari has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
thestereobus has quit [Ping timeout: 255 seconds]
thestereobus has joined #ruby
jackiechan0 has quit [Quit: Sto andando via]
mklappstuhl has quit [Ping timeout: 244 seconds]
kil0byte_ has joined #ruby
ij has quit [Read error: Connection reset by peer]
kil0byte has quit [Ping timeout: 252 seconds]
cody-- has quit [Quit: goodbye]
ij has joined #ruby
fbernier has joined #ruby
rvchangue has joined #ruby
jackiechan0 has joined #ruby
nignaztic has quit [Ping timeout: 252 seconds]
ffranz has joined #ruby
jackiechan0 has quit [Read error: Connection reset by peer]
Elico has joined #ruby
nignaztic has joined #ruby
u89 has quit [Remote host closed the connection]
u89 has joined #ruby
verto|off is now known as verto
evelyette has joined #ruby
<evelyette> hi
[0x1a] has joined #ruby
[0x1a] has quit [Changing host]
[0x1a] has joined #ruby
[0x1a] has joined #ruby
_guy has quit [Remote host closed the connection]
_guy has joined #ruby
mklappstuhl has joined #ruby
Gurpartap has quit [Ping timeout: 245 seconds]
schaerli has joined #ruby
banisterfiend has quit [Ping timeout: 265 seconds]
AndChat- has quit [Ping timeout: 244 seconds]
Banistergalaxy has joined #ruby
kirun has joined #ruby
johnmilton has joined #ruby
rohit has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
_guy has quit [Remote host closed the connection]
_guy has joined #ruby
nomenkun has joined #ruby
Rydefalk has quit [Remote host closed the connection]
<shevy> dumdedum
tbrock has joined #ruby
SeySayux has quit [Read error: Operation timed out]
digitalcakestudi has joined #ruby
nemonic has joined #ruby
<shevy> apeiros_, are you on rubygems.org ?
lukeholder has joined #ruby
<apeiros_> yes
Villadelfia has quit [Ping timeout: 248 seconds]
u89 has quit [Remote host closed the connection]
<shevy> ah found you
iamjarvo has joined #ruby
<shevy> searching for "butler", it'll always be tagged to you :D
samphippen has quit [Quit: Computer has gone to sleep.]
Villadelfia has joined #ruby
nignaztic has quit [Ping timeout: 255 seconds]
robbyoconnor has quit [Ping timeout: 240 seconds]
SeySayux has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
ananthakumaran has quit [Quit: Leaving.]
tbrock has quit [Quit: Computer has gone to sleep.]
nomenkun_ has joined #ruby
ebouchut has joined #ruby
Elhu has joined #ruby
heftig has quit [Ping timeout: 240 seconds]
nomenkun has quit [Ping timeout: 244 seconds]
beiter has left #ruby [#ruby]
<apeiros_> :)
mikecmpbll has joined #ruby
robbyoconnor has joined #ruby
schaerli has quit [Remote host closed the connection]
heftig has joined #ruby
nomenkun_ has quit [Read error: Connection reset by peer]
[Neurotic] has quit [Ping timeout: 276 seconds]
nomenkun has joined #ruby
lolmaus has quit []
u89 has joined #ruby
u89 has quit [Remote host closed the connection]
tbrock has joined #ruby
nomenkun has quit [Remote host closed the connection]
iamjarvo has quit [Quit: Computer has gone to sleep.]
nomenkun has joined #ruby
Rydefalk has joined #ruby
runixo has joined #ruby
<runixo> heyas. is it possible to make minitest continue after the first failure?
samphippen has joined #ruby
zommi has joined #ruby
joofsh has joined #ruby
heftig has quit [Remote host closed the connection]
schaerli has joined #ruby
<evelyette> I have quite large text file, which contains the following: !link!,which means the character '!" followed by the URL like https://page.com/test.png, followed by another '!'
<evelyette> what I would like to do is to search for all occurences of those structures in string
nemonic has quit [Ping timeout: 264 seconds]
<evelyette> recognize the URL (which always points to a PNG (possibly behing authentication), download the picture and insert the base64 of the picture on that place
<evelyette> I'm fairly new to ruby, so any guidelines are welcome
aef has quit [Ping timeout: 256 seconds]
sailias has joined #ruby
nemonic has joined #ruby
nemonic is now known as nignaztic
verto is now known as verto|off
grzywacz has quit [Ping timeout: 252 seconds]
<evelyette> hi, I'm only getting one string if I use this: http://stackoverflow.com/questions/4703309/search-and-replace-with-ruby-regex
<evelyette> the: new_str = my_str.sub %r{<h5>([^<]+)</h5>} do |full_match| ... end
<evelyette> but I want to get all the strings matching RI
<evelyette> any ideas how ?
rohit has quit [Quit: Leaving]
schaerli has quit [Remote host closed the connection]
<apeiros_> evelyette: don't use regex to parse html. use a html parser. like nokogiri f.ex.
ephemerian has joined #ruby
dertyp has joined #ruby
Asher has quit [Quit: Leaving.]
<evelyette> apeiros_: it's not HTML
<evelyette> it's custom encoding
<apeiros_> which just happens to look like html…
<evelyette> and I figured to use gsub instead of sub
<apeiros_> well, sub is not gsub
<apeiros_> ah, good.
<evelyette> yup :)
ortuna has joined #ruby
<workmad3> evelyette: as long as the custom encoding doesn't allow nesting inside elements then :)
<evelyette> there is no nesting :)
<evelyette> it would be possible with nesting too, but overly complicated :)
<workmad3> regex doesn't deal properly with nesting
ffranz has quit [Quit: Leaving]
techhelp has joined #ruby
<evelyette> workmad3: btw: what would be the best way to read the PNG from the internet into RAM ?
Neomex has joined #ruby
jphpsf has joined #ruby
grzywacz has joined #ruby
punkrawkR has quit [Ping timeout: 240 seconds]
chussenot_ has joined #ruby
techhelp has quit [Client Quit]
techhelp has joined #ruby
ortuna has quit [Remote host closed the connection]
techhelp has quit [Remote host closed the connection]
techhelp has joined #ruby
tjbiddle has joined #ruby
nignaztic has quit [Quit: WeeChat 0.3.7]
chussenot_ has quit [Remote host closed the connection]
chussenot has quit [Ping timeout: 244 seconds]
Neomex has quit [Quit: Neomex]
chussenot has joined #ruby
freeayu has quit [Ping timeout: 252 seconds]
ffranz has joined #ruby
becom33 has quit [Ping timeout: 276 seconds]
becom33 has joined #ruby
ninegrid has joined #ruby
freeayu has joined #ruby
schaerli has joined #ruby
freeayu has quit [Remote host closed the connection]
noxoc has joined #ruby
linoj has joined #ruby
ananthakumaran has joined #ruby
piotr_ has joined #ruby
piotr has quit [Ping timeout: 244 seconds]
_guy has quit [Ping timeout: 244 seconds]
chussenot has quit [Quit: chussenot]
hotovson has quit [Remote host closed the connection]
jds has joined #ruby
arya has joined #ruby
schaerli has quit [Remote host closed the connection]
thestereobus has quit [Quit: thestereobus]
hotovson has joined #ruby
heftig has joined #ruby
durre has joined #ruby
<durre> hi! I dont know ruby, but I want to try and write some selenium tests for a webpage with ruby. what frameworks should I look at?
mohanmcgeek has joined #ruby
jds has quit [Ping timeout: 245 seconds]
tjbiddle has quit [Quit: tjbiddle]
dertyp has quit [Quit: Leaving...]
statarb3 has quit [Read error: Connection reset by peer]
rippa has joined #ruby
<Coretracker> hi durre ! have a look at http://www.sinatrarb.com/intro-de.html or http://locomotivecms.com/ hope it helps
njkt has joined #ruby
BrianJ has joined #ruby
<Coretracker> Oh sorry here the english doc version of sinatra http://www.sinatrarb.com/intro.html
<durre> coretracker: hmm, how does that help me write selenium tests? :) looks like a webframework?
<mohanmcgeek> durre: That's what they told you.. :S
<mohanmcgeek> durre: It's a tool.. that simplifies your life.
mercwithamouth has quit [Ping timeout: 260 seconds]
shtirlic has joined #ruby
<durre> sorry, dont understand what you mean. "Sinatra is a DSL for quickly creating web applications in Ruby with minimal effort"… I already have a webapplication. I want to write some tests for it
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
morf has quit [Quit: eof]
<shevy> durre I think they all suck... whatever I tried, rspec... minitest... unittest... they all stink
<mohanmcgeek> durre: When I came here, the conversation was already midway.. So I have no clue what's the original topic. What I know is, Sinatra is not a framework.
fantazo has joined #ruby
<mklappstuhl> I'm writing a parser... I'm not sure if I should write it in a way that instantiates a parser object for each file or if one parser object should be able to handle multiple files
<mklappstuhl> would love to hear your input on that
<shevy> beer
<Coretracker> @durre sorry my fault. i've read the question to fast
<shevy> mklappstuhl, I think your parser object should be able to handle both one file and several files
u89 has joined #ruby
<shevy> array_with_all_your_files.each do |file| process(file) end
<mklappstuhl> shevy, for general usage this is true of course.
jackiechan0 has joined #ruby
<mklappstuhl> shevy, however it feels like it would be much cleaner if I could use ivars for certain data instead of building everything by connecting functions
__zfn__ has joined #ruby
chrisja has joined #ruby
<shevy> yeah, I always wonder about that myself
tbrock has quit [Quit: Computer has gone to sleep.]
<shevy> when to use complexity and when to avoid it
_guy has joined #ruby
<mklappstuhl> shevy, and the processing of multiple files would not be hard to implement as file.each do {|file| Parser.new(file) ... }
njkt has left #ruby [#ruby]
<mklappstuhl> shevy, exactly.
<shevy> I think it all depends on the fate of that data you gather that way
<shevy> but right now it seems as if you only need one parser object anyway or?
<shevy> which could handle 100 files
<shevy> or 10000000 files
<shevy> or 1 file :P
<mklappstuhl> shevy, in this concrete case I only want to print certain stuff
larissa has quit [Quit: Leaving]
<mklappstuhl> shevy, at the moment one parser object can handle multiple files
mohanmcgeek has left #ruby [#ruby]
<shevy> \o/
replore_ has quit [Remote host closed the connection]
<mklappstuhl> shevy, I think however that the code would be much nicer when restricting one parser object to one file
<mklappstuhl> The advantage i'm seeing is mostly the use of ivars which allow me to save certain stuff in the object itself.
shtirli__ has joined #ruby
<mklappstuhl> working with zipped files this seems very useful to store some basic information for reuse
joofsh has quit [Remote host closed the connection]
tbrock has joined #ruby
thinkdevcode has quit [Remote host closed the connection]
<mklappstuhl> as working with zip files is mostly restricted within a block like {|zip_file| do_whatever(zip_file) }
<evelyette> hi
<evelyette> I'm trying to use this code: http://dpaste.com/834819/ but the 'body' variable is not working ... I get the actual address of the object in memory, but not the actual string
<evelyette> any ideas ?
shtirlic has quit [Ping timeout: 255 seconds]
<evelyette> The output is: #<Net::HTTPOK:0xa0e2cd4>
<evelyette> which is not OK, should be base64 encoded picture
dertyp has joined #ruby
<mklappstuhl> shevy, any more opinions? :)
replore_ has joined #ruby
|RicharD| has joined #ruby
<|RicharD|> hi
runixo has quit [Ping timeout: 246 seconds]
<|RicharD|> how i can take the first number of a int ? (example 1000, i want 1)
<|RicharD|> i must convert into string ?
<hoelzro> |RicharD|: that's the easiest way
leifmadsen has quit [Quit: REBOOTZ!]
Nykolla has joined #ruby
Nykolla has quit [Remote host closed the connection]
<shevy> mklappstuhl hmm not really, things often seem to become more and more complex
jphpsf has quit [Ping timeout: 244 seconds]
runixo has joined #ruby
<shevy> I wrote so many .rb files to handle compiling things from source... some days ago I just wrote one class 50 lines configure/make/make install wrapper and it's so much easier... only missing a few things... now I wonder if I should make it more complex too when adding more features!
cakehero has joined #ruby
shtirli__ has quit [Remote host closed the connection]
shtirlic has joined #ruby
otters has joined #ruby
shtirlic has quit [Remote host closed the connection]
shtirli__ has joined #ruby
robbyoconnor has quit [Ping timeout: 252 seconds]
Goles has quit [Remote host closed the connection]
xpen has joined #ruby
medik has quit [Quit: medik has no reason]
nari has quit [Ping timeout: 260 seconds]
elsifaka has quit [Quit: Veloma e!]
tagrudev has quit [Quit: Me = Awesome]
v0n has joined #ruby
u89 has quit [Remote host closed the connection]
banisterfiend has joined #ruby
_guy has quit [Remote host closed the connection]
darksk1ez has quit [Remote host closed the connection]
_guy has joined #ruby
Banistergalaxy has quit [Read error: Connection reset by peer]
tbrock has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
babinho has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 244 seconds]
ExxKA has joined #ruby
Vainoharhainen has joined #ruby
heftig has quit [Quit: leaving]
<ExxKA> Hey Guys. When i run an example script from Activemerchant, i get an error: "undefined method `first' for "24324245":String (NoMethodError)" i believe it's because active support is not loaded, but in the active merchant.rb module file I see that it does get loaded. How can I investigate this further?
babinho has joined #ruby
mercwithamouth has joined #ruby
elux has joined #ruby
<ExxKA> I am not using Rails.. I am running it straight from the ruby interpreter
jds has joined #ruby
_JamieD_ has joined #ruby
<BrianJ> can you put a case statement inside a case statement?
<apeiros_> BrianJ: of course
<apeiros_> BrianJ: also - irb/pry for "can I" questions. just try yourself ;-)
Banistergalaxy has joined #ruby
Guest92676 has joined #ruby
jds has quit [Ping timeout: 248 seconds]
linoj has quit [Quit: linoj]
aaronmcadam has quit [Quit: aaronmcadam]
aaronmcadam has joined #ruby
daniel_- has joined #ruby
v0n has joined #ruby
arya has quit [Ping timeout: 244 seconds]
dekroning has quit [Read error: Connection reset by peer]
chussenot has joined #ruby
arya has joined #ruby
apeiros_ has quit [Remote host closed the connection]
Coretracker has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
topek has quit [Quit: Leaving.]
xAndy is now known as xandy
headius has joined #ruby
cascalheir has quit [Quit: Linkinus - http://linkinus.com]
Cicloid has joined #ruby
xpen has quit [Remote host closed the connection]
chussenot has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mityaz has joined #ruby
chussenot has joined #ruby
judd7 has quit [Quit: judd7]
LucidDreamZzZ has quit [Ping timeout: 276 seconds]
Elico has quit [Remote host closed the connection]
danneu has joined #ruby
chussenot_ has joined #ruby
h8R has joined #ruby
gqlewis has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
chussenot has quit [Ping timeout: 244 seconds]
chussenot_ is now known as chussenot
eldariof has quit [Read error: Operation timed out]
LucidDreamZzZ has joined #ruby
ltsstar has joined #ruby
tommyvyo has joined #ruby
jackiechan0 has quit [Quit: Sto andando via]
kidoz has joined #ruby
tommyvyo has quit [Client Quit]
reinaldob has joined #ruby
ltsstar has quit [Client Quit]
voodoofish has quit [Read error: Operation timed out]
maesbn has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
kuzushi has joined #ruby
clj_newb has joined #ruby
atno|C is now known as atno
elaptics`away is now known as elaptics
hsbt_away is now known as hsbt
margle has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Ping timeout: 256 seconds]
cantonic has joined #ruby
u89 has joined #ruby
chussenot has quit [Remote host closed the connection]
chussenot has joined #ruby
__zfn__ has quit [Quit: KVIrc 4.1.1 Equilibrium http://www.kvirc.net/]
voodoofish has joined #ruby
d34th4ck3r has joined #ruby
apeiros_ has joined #ruby
bradhe has joined #ruby
timonv has quit [Remote host closed the connection]
hoelzro is now known as hoelzro|away
gqlewis has quit [Quit: gqlewis]
jrabbit has joined #ruby
gqlewis has joined #ruby
<jrabbit> whats the friendliest html parser?
<jrabbit> is nokogiri good?
timonv has joined #ruby
gqlewis has quit [Client Quit]
timonv has quit [Remote host closed the connection]
grzywacz has quit [Quit: :wq]
d34th4ck3r has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 252 seconds]
Virunga has quit [Remote host closed the connection]
<apeiros_> jrabbit: yes, nokogiri is good
noxoc has left #ruby [#ruby]
<apeiros_> and probably the best choice for html & xml parsing
<jrabbit> apeiros_: ok, I'm not getting anything returned from it in irb
yeban has quit [Read error: Connection reset by peer]
<jrabbit> I've loaded something like its intro mentions is there a way to check that its not broken?
<apeiros_> jrabbit: I hope that's not your complete problem description…
yeban has joined #ruby
v0n has quit [Ping timeout: 244 seconds]
<jrabbit> nvm I think I found the problem
jackiechan0 has joined #ruby
<jrabbit> I goofed the number of parens
answer_42 has joined #ruby
staafl has quit [Read error: Connection reset by peer]
yeban is now known as yeban_
<apeiros_> jrabbit: let me guess… you work in irb with simple prompt?
<apeiros_> (that's when your prompt is only ">>")
jrajav has joined #ruby
<apeiros_> if so: don't. simple-prompt is useless.
durre has quit [Quit: durre]
<jrabbit> ying to dive in a bit more (I come from python)
<jrabbit> *trying
<jrabbit> is pry pretty good?
<apeiros_> pry is pretty good, yes
headius has quit [Quit: headius]
dertyp has quit [Quit: Leaving...]
<apeiros_> in pry's default prompt, you'll see that your code is incomplete. the prompt changes from ">" to "*"
<jrabbit> cool
wallerdev has joined #ruby
_guy has quit [Remote host closed the connection]
_guy has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
matrixise has quit [Ping timeout: 252 seconds]
shevy has quit [Ping timeout: 260 seconds]
lotus2015 has left #ruby [#ruby]
jekotia has joined #ruby
k610 has quit [Ping timeout: 248 seconds]
arietis has joined #ruby
booginga has left #ruby ["Leaving"]
k610 has joined #ruby
jeffreybaird has joined #ruby
greasegum has joined #ruby
kil0byte has joined #ruby
atno has quit [Ping timeout: 256 seconds]
schaerli has joined #ruby
cantonic has quit [Quit: cantonic]
heftig has joined #ruby
kil0byte_ has quit [Ping timeout: 255 seconds]
k610 has quit [Ping timeout: 252 seconds]
postmodern has quit [Quit: Leaving]
arietis has quit [Quit: Computer has gone to sleep.]
shevy has joined #ruby
greasegum has quit [Ping timeout: 264 seconds]
rodasc has joined #ruby
TheMoonMaster has quit [Ping timeout: 245 seconds]
crodas has quit [Ping timeout: 240 seconds]
mksm has quit [Ping timeout: 260 seconds]
arietis has joined #ruby
mksm has joined #ruby
schaerli has quit [Remote host closed the connection]
TheMoonMaster has joined #ruby
thinkdevcode has joined #ruby
shtirli__ has quit [Remote host closed the connection]
hoelzro|away is now known as hoelzro
J-_-L has joined #ruby
<jrabbit> apeiros_: off hand do you know how to access attributes of a tag in nokogiri?
beiter has joined #ruby
digitalcakestudi has quit [Quit: Leaving.]
<apeiros_> tag['attr'] iirc
<jrabbit> thanks
<apeiros_> but nokogiri has documentation
<jrabbit> its a bit confusing for that angle
<apeiros_> and with pry, all you have to do is e.g. `ls tag`
<apeiros_> o0
<clocKwize> I need to use pry
<clocKwize> it seems good
<clocKwize> I'm just too lazy
<clocKwize> to save myself time
mklappstuhl has quit [Ping timeout: 244 seconds]
cascalheira has joined #ruby
joeycarmello has joined #ruby
joeycarmello has quit [Remote host closed the connection]
joeycarmello has joined #ruby
Grieg has quit [Ping timeout: 250 seconds]
hoelzro is now known as hoelzro|away
ryanlecompte has quit [Read error: Connection reset by peer]
<jrabbit> apeiros_: when I'm a bit further in I mgiht submit a patch to ruby-readability :)
ryanlecompte has joined #ruby
<apeiros_> what?
chimkan has joined #ruby
<jrabbit> Using it in a project but I'm going to have to do better author parsing then they are
brianpWins has joined #ruby
jphpsf has joined #ruby
Guest92806 has quit [Read error: Operation timed out]
<banisterfiend> clocKwize: it takes 0 time to set up pry, you just install it, and type 'pry' instead of irb
<banisterfiend> clocKwize: you dont even have to learn anything, it supports most irb functionality out of the box
nemesit has quit [Ping timeout: 264 seconds]
<jrajav> Is there a recipe for pry in homebrew?
joeycarmello has quit [Ping timeout: 245 seconds]
<clocKwize> banisterfiend, I know, but that sounds like a lot of effort >.<
<clocKwize> I promise I'll do it one day
<banisterfiend> jrajav: why does it need one out of itnerest? waht's wrong with 'gem install pry' ?
<jrajav> Meh :P
gmci has joined #ruby
gmci is now known as Guest30953
jphpsf has quit [Ping timeout: 244 seconds]
lukeholder has quit [Quit: Computer has gone to sleep.]
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
<jrabbit> apeiros_: I shouldn't be tryign to use a list comprehension right?
<apeiros_> I don't know what you should and shouldn't. but ruby doesn't have list comprehension syntax like python.
statarb3 has quit [Quit: Leaving]
<jrabbit> ah well that settles it :P
<lupine> fortunately, it doesn't need it ^^
<lupine> the python syntax is nasty
<jrabbit> maybe I'll write the section and ask if it could be better
kidoz has quit [Quit: Ухожу я от вас]
<jrabbit> lupine: going through an .. iterable (?) via an each and appending to a list feels like its kludgey
<apeiros_> jrabbit: Array#map
<lupine> there's always collect
<banisterfiend> jrajav: give an example of what u want to do, and we'll tell u how to do it in ruby
<lupine> and you can always write collect_and_compact
nomenkun has quit [Remote host closed the connection]
<jrajav> banisterfiend: .. huh?
<banisterfiend> jrabbit: sorry*
<banisterfiend> jrajav: completion fail :)
<lupine> (you could call it comprehend - a la my_results = [1,2,'a'].comprehend {|i| i if (0..9).include?(i) }
<jrabbit> map works
arya has quit []
<apeiros_> jrabbit: in pry, to get the docs, you can type: ? Array#map
* lupine finds .map {}.compact to be a bit clunky, but it's a minor niggle
<jrabbit> The command '?' is unavailable because it requires the following gems to be installed: ruby18_source_location
<apeiros_> (# to designate an instance method)
<jrabbit> :(
<lupine> there's select, of course
<apeiros_> jrabbit: eeeew, you use ruby 1.8?
<apeiros_> get a decent ruby version
<apeiros_> you wouldn't use python 1 either, would you?
<jrabbit> ok ok :P
<apeiros_> 1.9.3 is the current version. minors also matter in ruby.
* lupine notes he has several production environments using ruby 1.8 right now, with no obvious plans to upgrade
<banisterfiend> jrabbit: and u have to install the pry-doc gem once u upgrade the ruby version
<jrabbit> I'm just using the apple default
<clocKwize> 1.9.4 is current
<lupine> it's not a big deal
clj_newb has quit [Ping timeout: 252 seconds]
<lupine> (although it will be when security support vanishes)
mpereira has quit [Ping timeout: 240 seconds]
jslowe has joined #ruby
<jrabbit> what exactly is array compact?
<jrabbit> I get what map is from functional work I've done
<lupine> it pulls all the nil objects out of the array
<lupine> so [1,nil,2] => [1,2]
<jrabbit> ah
cantonic has joined #ruby
<lupine> the comprehension I gave above would be better done as select, but for a comprehension like [1,2,'a'].map {|i| i*2 if (0..9).include?(i) }.compact it's needed
<lupine> (since the output from the map otherwise woudl be [2,4,nil])
<jrabbit> went with doc.html.css('h6.byline').css('a').map{|n| n.content}.compact
mpereira has joined #ruby
<jrabbit> which nicely gives me a list of authors on a given NYT article
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
atmosx has joined #ruby
<lupine> ah well, home time
<jrabbit> i'll be back in a bit thanks folks
judd7 has joined #ruby
tomsthumb has quit [Quit: Leaving.]
applesarefruits has joined #ruby
daniel_-_ has joined #ruby
becom33 has quit [Ping timeout: 255 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
daniel_- has quit [Read error: Operation timed out]
Elhu has joined #ruby
barkha has joined #ruby
Elhu has quit [Client Quit]
mklappstuhl has joined #ruby
monkegji_ has left #ruby ["Leaving..."]
<apeiros_> clocKwize: 1.9.4? and you get that from where?
_guy has quit [Ping timeout: 245 seconds]
<apeiros_> Ruby 1.9.3-p327: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
punkrawkR has joined #ruby
apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p327: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
<apeiros_> whoops, forgot /topic :)
hackerdude has joined #ruby
CamonZ has joined #ruby
J-_-L has quit [Quit: Leaving.]
J-_-L1 has joined #ruby
ltsstar has joined #ruby
* atmosx is listening to Sting - Englishman In New York, from the album The Best Of 25 Years CD1 [4:26 mins] [320 kbps MPEG audio file] [10,84 MB] [played 45 times]
<atmosx> lol
<atmosx> 45 times!
workmad3 has quit [Ping timeout: 255 seconds]
J-_-L1 has quit [Client Quit]
mercwithamouth has quit [Quit: Lost terminal]
mercwithamouth has joined #ruby
sepp2k1 has joined #ruby
pavilionXP has quit [Ping timeout: 240 seconds]
becom33 has joined #ruby
tommyvyo has joined #ruby
sepp2k has quit [Ping timeout: 244 seconds]
timmow has quit [Quit: has left the building]
carloslopes has joined #ruby
rdark has quit [Quit: leaving]
thinkdevcode has quit [Remote host closed the connection]
eldariof has joined #ruby
Vainoharhainen has quit [Quit: Leaving...]
_dnyy has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
dnyy has quit [Read error: Connection reset by peer]
slainer68 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
tjbiddle has joined #ruby
answer_42 has quit [Ping timeout: 276 seconds]
tjbiddle has quit [Client Quit]
RantriX has joined #ruby
answer_42 has joined #ruby
tommyvyo has joined #ruby
bradhe has joined #ruby
reinaldob has quit [Remote host closed the connection]
arya has joined #ruby
arturaz has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 244 seconds]
CamonZ has quit [Quit: Leaving...]
tk__ has quit [Quit: ばいばい]
micsha has joined #ruby
pavilionXP has joined #ruby
jgrevich has joined #ruby
<micsha> what do you guys like for ruby documentation? I'm on ruby-doc.org but it's kind of hard to understand as a beginner. Any recommendatoins?
_guy has joined #ruby
zigomir has quit [Ping timeout: 264 seconds]
<micsha> *recomendations
dinkytoy has joined #ruby
<RantriX> +r
bradhe has quit [Ping timeout: 250 seconds]
<atmosx> micsha: I almost never use it. Only If I'm looking for something very specific that can't be found elseplace.
<RantriX> i think it's pretty helpful once you understand how to read it haha
<atmosx> it's a language that you have to be used to, and also be prominent with programming (C and Ruby) in order to keep up.
<micsha> atmosx where do you go when you do need it?
<atmosx> google
<atmosx> mailing lists
<atmosx> here
<micsha> Thanks. there was another place, I'll have to hunt it down again.
replore_ has quit [Remote host closed the connection]
<micsha> RantiX: yeah, that's kind of my problem, I don't understand how to read it quite yet.
daniel_-_ has quit [Ping timeout: 244 seconds]
Mon_Ouie has joined #ruby
F1skr has joined #ruby
jackiechan0 is now known as jackiechan
nemesit has joined #ruby
cdt_ has quit [Ping timeout: 245 seconds]
jackiechan is now known as jackbrown
chimkan has quit [Quit: chimkan]
<RantriX> @micsha: i didn't either at the beginning but you'll get used to it haha. i often use it to see what sort of methods a class has
mityaz has quit [Read error: Connection reset by peer]
Goles has joined #ruby
<micsha> yeah, I'm trying to find a reference that explains it a little more noob friendly way. Not sure I'll ever find that, but hey, I can dream.
ExxKA has quit [Quit: This computer has gone to sleep]
<banisterfiend> apeiros_: u should get one of these stickers, it drives the girls wild https://www.evernote.com/shard/s130/sh/8ebc5094-9a3b-4521-9f37-729cdd40c960/4216a2688d573f7fdb79bbfc0680de1d
<apeiros_> lol
<apeiros_> no stickers on my laptop :-p
jackbrown is now known as jackbrownhf
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
atmosx has quit [Quit: And so the story goes…]
chimkan_ has joined #ruby
volte has joined #ruby
joeycarmello has joined #ruby
joeycarmello has quit [Remote host closed the connection]
joeycarmello has joined #ruby
<apeiros_> banisterfiend: you using gosu?
jeffreybaird has quit [Quit: jeffreybaird]
heftig has quit [Quit: leaving]
bluenemo has quit [Remote host closed the connection]
freakazoid0223 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
teedex has joined #ruby
xsbeats__ has joined #ruby
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
xsbeats has quit [Ping timeout: 265 seconds]
Shamgar has quit [Ping timeout: 248 seconds]
_guy has quit [Remote host closed the connection]
_guy has joined #ruby
Goles has quit [Remote host closed the connection]
Virunga has joined #ruby
joeycarmello has quit [Remote host closed the connection]
techhelp2 has joined #ruby
freakazoid0223 has quit [Quit: Leaving]
margle has joined #ruby
barkha has quit [K-Lined]
ryanf has joined #ruby
arturaz has joined #ruby
techhelp has quit [Ping timeout: 260 seconds]
aaronmcadam has quit [Quit: aaronmcadam]
<|RicharD|> Hi
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
<|RicharD|> how i can take the part of a string from - 3 letters from right ?
ryanlecompte has quit [Remote host closed the connection]
<|RicharD|> for example for 4096 i want 4 and for 20480 i want 20
<apeiros_> |RicharD|: you should read docs…
<apeiros_> String#[]
<apeiros_> str[0..-4]
v0n has joined #ruby
<|RicharD|> thx a lot
CaptainJet has joined #ruby
havenn has quit [Remote host closed the connection]
u89 has quit [Remote host closed the connection]
havenn has joined #ruby
jphpsf has joined #ruby
grzywacz has quit [Ping timeout: 245 seconds]
imami|afk is now known as banseljaj
ltsstar has quit [Ping timeout: 276 seconds]
Goles has joined #ruby
jeffreybaird has joined #ruby
SuperrMann has quit [Quit: Computer has gone to sleep.]
Goles has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 244 seconds]
joeycarmello has joined #ruby
ryanf has quit [Quit: broken pipes |||]
cantonic has quit [Remote host closed the connection]
cantonic has joined #ruby
_guy has quit [Ping timeout: 256 seconds]
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
berserkr has quit [Ping timeout: 244 seconds]
volta has quit [Remote host closed the connection]
Shamgar has joined #ruby
Uranio has quit [Quit: WeeChat 0.3.8]
ishe has joined #ruby
cantonic has quit [Quit: cantonic]
grzywacz has joined #ruby
Russell^^ has joined #ruby
ishe has left #ruby [#ruby]
daniel_-_ has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
nemesit has quit [Ping timeout: 264 seconds]
u89 has joined #ruby
zommi has left #ruby [#ruby]
chussenot has quit [Quit: chussenot]
Bosma has joined #ruby
<kapowaz> anyone here familiar with warden? specifically integrating it with Sinatra?
tommyvyo_ has joined #ruby
bradhe has joined #ruby
BrianJ has quit [Quit: BrianJ]
mklappstuhl has quit [Ping timeout: 244 seconds]
areil has quit [Remote host closed the connection]
leonardorb has joined #ruby
berserkr has joined #ruby
diegoviola has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
havenn has joined #ruby
dakine has joined #ruby
Slivka has joined #ruby
pcarrier has quit []
bradhe has joined #ruby
tchebb is now known as rms
rms is now known as Guest64478
Guest64478 is now known as tchebb
pcarrier has joined #ruby
pcarrier has quit [Client Quit]
* kapowaz headdesks
<kapowaz> every channel is dead. thanksgiving, eh
<kapowaz> you'd think some of you would want to get away from your families :)
manizzle has joined #ruby
<leonardorb> lol
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
qwerxy has quit [Quit: offski]
jmkeyes has left #ruby [#ruby]
pskosinski has joined #ruby
<pskosinski> You can find its website at <a href="http://rubygems.org%20RubyGems.org%20|%20your%20community%20gem%20host">rubygems.org</a>.
<pskosinski> Broken link, title inserted into href
shtirlic_ has quit [Read error: Connection reset by peer]
<banisterfiend> apeiros_: no, i wrote texplay though, which is the image manip plugin for it
shtirlic has joined #ruby
<apeiros_> banisterfiend: I know, that's why I thought you did
<banisterfiend> apeiros_: ah, i used it a while ago, not recently though
jrajav has joined #ruby
<banisterfiend> apeiros_: i wrote a few cute games in it though,you've probably seen one since i spammed teh chan with it aw hile ago
xorigin has joined #ruby
xorigin has left #ruby [#ruby]
a215 has quit [Read error: Operation timed out]
phelps has quit [Quit: Linkinus - http://linkinus.com]
shtirlic_ has joined #ruby
shtirlic has quit [Ping timeout: 265 seconds]
margle has quit [Quit: Computer has gone to sleep.]
a215 has joined #ruby
jackbrownhf has quit [Quit: Sto andando via]
tommyvyo has quit [Quit: Computer has gone to sleep.]
tommyvyo_ is now known as tommyvyo
margle has joined #ruby
margle has quit [Client Quit]
monkegjinni has quit [Ping timeout: 240 seconds]
Targen has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
Targen has quit [Read error: Connection reset by peer]
bradhe has quit [Remote host closed the connection]
clj_newb has joined #ruby
matrixise has joined #ruby
havenn has quit [Ping timeout: 244 seconds]
nomenkun has joined #ruby
RandyInLA has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
segv_ has quit [Quit: segv_]
banisterfiend has quit [Remote host closed the connection]
cousine has quit [Remote host closed the connection]
daniel_-_ has quit [Ping timeout: 240 seconds]
ChampS666 has joined #ruby
dakine has quit [Quit: Leaving]
techhelp2 has quit [Quit: This computer has gone to sleep]
JPeterson has joined #ruby
<JPeterson> how do i run http://intertwingly.net/code/svgtidy/svgtidy.rb? i tried prepending "#!/usr/bin/env ruby" to no visible effect.
<apeiros_> what was "no visible effect"?
<apeiros_> I mean precisely. since "no visible effect" says nothing at all.
phelps has joined #ruby
joeycarmello has quit [Remote host closed the connection]
<Banistergalaxy> Apeiros hey how do I get the list of indices that a string would split on (using split()) given a regex?
KevinSjoberg has joined #ruby
BrianJ has joined #ruby
<apeiros_> good question… probably with scan & one of the $ vars…
aaronmcadam has joined #ruby
mklappstuhl has joined #ruby
<apeiros_> oh wow, post_match/pre_match fail with scan…
ryanlecompte has joined #ruby
<apeiros_> hm, no good idea
<apeiros_> stringscanner in that case :-/ (ugly, I know)
<JPeterson> apeiros_: idling, no output to stdout, same output as the command "ruby"
<JPeterson> or same effect i should say
mikepack has joined #ruby
<apeiros_> JPeterson: you did pass it something on stdin, right?
<JPeterson> no
hackerdude has quit [Remote host closed the connection]
<JPeterson> maybe it reads from stdin
<JPeterson> "cat Dice-2.svg|svgtidy.rb" might be the usage
noyb has joined #ruby
morfin has joined #ruby
<morfin> hello
morfin has left #ruby [#ruby]
jackiechan0 has joined #ruby
banisterfiend has joined #ruby
xandy is now known as xAndy
<banisterfiend> hey apeiros_ can you paste the Q. that Banistergalaxy asked?
<apeiros_> 20:47 Banistergalaxy: Apeiros hey how do I get the list of indices that a string would split on (using split()) given a regex?
jackiechan0 is now known as jackbrownhf
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
ryanlecompte has quit [Ping timeout: 244 seconds]
diegoviola has quit [Read error: Operation timed out]
<banisterfiend> apeiros_: thanks
cantonic has joined #ruby
<banisterfiend> apeiros_: can u figure it out pls
<banisterfiend> apeiros_: i trust u
<banisterfiend> :D
<apeiros_> banisterfiend: I thought enum_for + scan + pre_match would do
<apeiros_> but pre_match with scan is dysfunctional :-(
noyb has quit [Ping timeout: 252 seconds]
hackerdude has joined #ruby
mahmoudimus has joined #ruby
pcarrier has joined #ruby
burgestrand has joined #ruby
clj_newb has quit [Ping timeout: 244 seconds]
FailDrain has quit [Ping timeout: 244 seconds]
hackerdude has quit [Remote host closed the connection]
adeponte has joined #ruby
etcetera has joined #ruby
jphpsf has quit [Ping timeout: 244 seconds]
pcarrier has quit [Ping timeout: 240 seconds]
cantonic has quit [Read error: Connection timed out]
fantazo has quit [Remote host closed the connection]
heftig has joined #ruby
noyb has joined #ruby
pcarrier has joined #ruby
pcarrier has quit [Max SendQ exceeded]
pcarrier has joined #ruby
ryannielson has joined #ruby
a215 has quit [Ping timeout: 250 seconds]
shtirlic has joined #ruby
rweng has joined #ruby
eldariof has quit []
otters has quit [Ping timeout: 252 seconds]
pcarrier has quit []
greenarrow has quit [Quit: IRC is just multiplayer notepad]
joeycarmello has joined #ruby
pyr0commie has joined #ruby
<rweng> hey. How do you folks move classes around? I found it incredibly hard to move move a class to a different module due to the lack of IDE/TextEditor suport
greenarrow has joined #ruby
havenn has joined #ruby
banisterfiend has quit [Remote host closed the connection]
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
<shevy> rweng copy paste via your editor!
otters has joined #ruby
MasterIdler has joined #ruby
<apeiros_> rweng: if you need an editor, rubymine - it has refactoring support
<apeiros_> but how I do it? global search & replace.
monkegjinni has joined #ruby
phelps has quit [Read error: Connection reset by peer]
danneu has quit [Ping timeout: 252 seconds]
niklasb has joined #ruby
bradhe has quit [Remote host closed the connection]
arya has quit [Ping timeout: 244 seconds]
ananthakumaran has quit [Quit: Leaving.]
rippa has quit [Ping timeout: 248 seconds]
_dnyy has quit [Remote host closed the connection]
noyb has quit [Ping timeout: 265 seconds]
jrajav has joined #ruby
ffranz has quit [Quit: Leaving]
arya has joined #ruby
staafl has joined #ruby
<rweng> apeiros_: Even RubyMine doesn't support moving classes and replacing the namespaces accordingly. I am shocked that I notice just now how painful renaming namespaces and everything that comes with it is with Ruby. I am not saying that is a Ruby problem. Though, uninitialised constant errors in cases of Namespace::MyClass don't make it easy and editors are really not that good for Ruby
BoomCow has joined #ruby
Elhu has joined #ruby
<ddd> err? wait, how does RubyMine not allow you to refactor classes? All you have to do is select refactor and it will rename classes throughout as well. *I* use it along with ™, and vim. I found ™ and Vim have issues where RM does not
<ddd> wow, MBP really? you're going to change T M to ™ on me? sheesh
<apeiros_> rweng: um, yes? rubymine supports renaming classes
<apeiros_> (and that's all a namespace move really is…)
Grieg has quit [Quit: laterz! :D]
aaronmcadam has quit [Quit: aaronmcadam]
<rweng> apeiros_: true, partially. In N1::N2::N3, it works to rename any namespace, but it does not work to rename N3 to N3::Forms
<ddd> my only real issue with RM is the need to constantly update templates for stuff. but thats by sheer fact that things change so fast. Like they don't support the rspec-rails+capybara2 feature-spec stuff yet. so i had to write my onw.
<rweng> e.g
mengu_ has joined #ruby
<ddd> but thats fine. if i have to i have to
freakazoid0223 has joined #ruby
<ddd> s/onw/owns/g
sepp2k1 has quit [Ping timeout: 264 seconds]
danneu has joined #ruby
<apeiros_> rweng: I'm pretty sure that's possible too
<ddd> oh that and the fact that if you click off far to the right for whatever reason it leaves the cursor there rather than moving it to the end of whatever line you clicked on. hehe thats more than a bit annoying but. hey we can't hav eit all
<apeiros_> rweng: anyway, if you can't refactor by hand, you lose anyway… but that's just my opinion.
<apeiros_> "Oh my god, no refactor, so bad for ruby, *cry cry cry*", sorry, but wtf?!
techhelp has joined #ruby
<ddd> apeiros_: my only poin of agreement with the refactor argument is just that its easy to miss something by hand, and it IS an issue an editor should handle no problem that supports projects
<ddd> however, i also see and can concede your pont
<apeiros_> dunno, I've had my share of renamings, and it never bothered me to do it by hand.
<apeiros_> but… if you're referencing one thing in a thousand places, you maybe have a coupling issue…
<apeiros_> i.e., use of utilities to combat the consequences of bad design?
arya has quit [Ping timeout: 244 seconds]
clj_newb has joined #ruby
<ddd> hehe'
otters has quit [Ping timeout: 252 seconds]
adambeynon has quit [Quit: Computer has gone to sleep.]
daniel_-_ has joined #ruby
sepp2k has joined #ruby
arya has joined #ruby
otters has joined #ruby
mikepack has quit [Remote host closed the connection]
clocKwize_ has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
hugo has joined #ruby
kil0byte_ has joined #ruby
ryannielson has quit [Quit: ryannielson]
runixo has left #ruby [#ruby]
kil0byte has quit [Ping timeout: 244 seconds]
tommyvyo has quit [Quit: Computer has gone to sleep.]
jackbrownhf has quit [Quit: Sto andando via]
jackiechan0 has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
carloslopes has quit [Remote host closed the connection]
beilabs has quit [Remote host closed the connection]
BrianJ has quit [Quit: BrianJ]
Elhu has quit [Quit: Computer has gone to sleep.]
ZubKonst_ has joined #ruby
teedex has quit [Remote host closed the connection]
teedex has joined #ruby
ZubKonst has quit [Ping timeout: 244 seconds]
ebobby has joined #ruby
grzywacz has quit [Ping timeout: 244 seconds]
teedex has quit [Ping timeout: 256 seconds]
etcetera has quit [Quit: Computer has gone to sleep.]
[Neurotic] has joined #ruby
lolcathost has joined #ruby
teedex has joined #ruby
banisterfiend has joined #ruby
__class__ has quit [Ping timeout: 264 seconds]
passbe has quit [Quit: WeeChat 0.3.9.1]
gyre007 has quit [Remote host closed the connection]
BoomCow has quit [Quit: This computer has gone to sleep]
sailias has quit [Read error: Connection reset by peer]
BrianJ has joined #ruby
LucidDreamZzZ has quit [Remote host closed the connection]
Morkel has joined #ruby
phelps has joined #ruby
RantriX has quit [Remote host closed the connection]
chimkan_ has quit [Remote host closed the connection]
chimkan has joined #ruby
tobago has joined #ruby
Blaster has joined #ruby
judd7 has quit [Ping timeout: 276 seconds]
miphe has joined #ruby
d34th4ck3r has joined #ruby
jackiechan0 has quit [Quit: Sto andando via]
arya has quit [Ping timeout: 244 seconds]
bradhe has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
shtirlic has quit [Remote host closed the connection]
Synthead has joined #ruby
shtirlic has joined #ruby
chimkan__ has joined #ruby
Mchl has quit [Ping timeout: 252 seconds]
Mchl has joined #ruby
tjbiddle has joined #ruby
Morkel has quit [Quit: Morkel]
BrianJ has quit [Quit: BrianJ]
arya has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
tjbiddle has quit [Client Quit]
joeycarmello has quit [Remote host closed the connection]
Proshot has joined #ruby
<Blaster> Hey all, I am trying to follow an example from a book I am reading but I am getting an error. My code is here https://gist.github.com/4133042
joeycarmello has joined #ruby
chimkan has quit [Ping timeout: 252 seconds]
chimkan__ is now known as chimkan
<Blaster> Error is: bicycle.rb:7:in `initialize': undefined local variable or method `rim' for #<Gear:0x000000154bef28 @chainring=52, @cog=11> (NameError)
jimeh has quit [Quit: Computer has gone to sleep.]
shtirlic has quit [Ping timeout: 244 seconds]
statarb3 has quit [Ping timeout: 246 seconds]
arturaz has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
joeycarmello has quit [Ping timeout: 248 seconds]
monkegjinni has joined #ruby
seanwash has joined #ruby
banisterfiend has quit [Remote host closed the connection]
<seanwash> Happy Thanksgiving everyone
Mchl has quit [Ping timeout: 244 seconds]
<pskosinski> Unhappy Thanksgiving.
Mchl has joined #ruby
Elhu has joined #ruby
<shevy> Blaster "rim" is not known
<shevy> you must find out why
<shevy> @wheel = Wheel.new(rim, tire) <-- you use it here, but it is not known there
workmad3 has joined #ruby
Iszak has joined #ruby
<apeiros_> Blaster: I think you're supposed to pass the wheel in, via the wheel-argument
<apeiros_> and not create it there
jimeh has joined #ruby
<shevy> I'd change this to "Wheel.new" without arguments and set default arguments in class Wheel
monkegjinni has quit [Ping timeout: 240 seconds]
<shevy> yeah that makes sense
<apeiros_> I think line 7 is supposed to read: @wheel = wheel
<shevy> def initialize(chainring, cog, wheel=nil) to def initialize(chainring, cog, wheel = Wheel.new)
<shevy> and inside class Wheel, change:
carl- has joined #ruby
carl- has quit [Client Quit]
* apeiros_ doesn't see a point in a default value for wheel
cirwin has joined #ruby
mercwithamouth has joined #ruby
<shevy> def initialize(rim, tire) to something like ... def initialize(rim = 5, tire = 1) or something like that
<shevy> def diameter is also buggy, it uses a local variable called rim, which is not known. you could change rim to @rim there
<apeiros_> shevy: you're mistaken
<apeiros_> those are methods, not lvars
<shevy> true
<apeiros_> diameter is correct. even though I'd use ivars.
<Blaster> thanks
<Blaster> changing @wheel = Wheel.new(rim,tire) to @wheel = wheel
<Blaster> fixed it
answer_42 has quit [Ping timeout: 276 seconds]
<Blaster> apeiros_: why would you use ivars?
<apeiros_> a) clarity, b) methods are slower
elux has quit [Quit: Bye!]
applesarefruits has quit [Ping timeout: 255 seconds]
<shevy> wheeeee... I think I managed to switch from apache to lighttpd finally, now I feel unstoppable
<shevy> I could almost give rails another try now...
* shevy resists though.
Elhu has quit [Quit: Computer has gone to sleep.]
noyb has joined #ruby
hugo has left #ruby ["Leaving"]
arya_ has joined #ruby
Guest92676 has quit [Quit: Guest92676]
phantasm66 has quit [Quit: *sleeeeep*]
blacktulip has quit [Remote host closed the connection]
jimeh has quit [Ping timeout: 260 seconds]
arya has quit [Ping timeout: 244 seconds]
jimeh has joined #ruby
afgeneralist has joined #ruby
seanyo has joined #ruby
arya_ has quit [Ping timeout: 244 seconds]
CamonZ has joined #ruby
clj_newb has quit [Ping timeout: 260 seconds]
generalissimo has joined #ruby
yshh has quit [Remote host closed the connection]
Virunga has quit [Remote host closed the connection]
arya has joined #ruby
grzywacz has joined #ruby
Nykolla has joined #ruby
kil0byte has joined #ruby
techhelp has quit [Quit: This computer has gone to sleep]
arya has quit [Ping timeout: 244 seconds]
techhelp has joined #ruby
grzywacz has quit [Read error: Connection reset by peer]
kil0byte_ has quit [Ping timeout: 260 seconds]
arya has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
Elhu has joined #ruby
dinkytoy has quit []
passbe has joined #ruby
passbe has joined #ruby
passbe has quit [Changing host]
teedex has quit [Remote host closed the connection]
lolcathost has quit [Ping timeout: 260 seconds]
teedex has joined #ruby
_JamieD_ has quit [Quit: _JamieD_]
tobago has quit [Remote host closed the connection]
seanyo has quit [Read error: Connection reset by peer]
afgeneralist has quit [Ping timeout: 246 seconds]
seanyo has joined #ruby
yshh has joined #ruby
u89 has quit [Remote host closed the connection]
teedex has quit [Ping timeout: 264 seconds]
etcetera has joined #ruby
emergion has joined #ruby
Iszak has quit []
rutkovsky has quit [Quit: Leaving]
apeiros_ has quit [Remote host closed the connection]
sporkball has joined #ruby
chendo_ is now known as chendo
staafl has quit [Ping timeout: 244 seconds]
seanwash has quit [Quit: Computer has gone to sleep.]
emergion has quit [Quit: Computer has gone to sleep.]
Elico has joined #ruby
danneu has quit [Ping timeout: 252 seconds]
kirun has quit [Quit: Client exiting]
Tabrenus has joined #ruby
banseljaj is now known as imami|afk
etcetera has quit [Ping timeout: 260 seconds]
tenmilestereo has joined #ruby
etcetera has joined #ruby
tenmilestereo has quit [Client Quit]
lolcathost has joined #ruby
tenmilestereo has joined #ruby
nomenkun has quit [Ping timeout: 250 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
u89 has joined #ruby
Averna has quit [Quit: Leaving.]
berserkr has quit [Quit: Leaving.]
danneu has joined #ruby
fantazo has joined #ruby
berserkr has joined #ruby
xsbeats__ is now known as xsbeats
clocKwize_ has quit [Quit: clocKwize_]
slainer68 has joined #ruby
Proshot has quit [Read error: Connection reset by peer]
arya has quit [Ping timeout: 244 seconds]
alanp_ has joined #ruby
arya has joined #ruby
robustus has quit [Quit: ZNC - http://znc.in]
staafl has joined #ruby
Tabrenus has quit [Quit: Tabrenus]
alanp has quit [Ping timeout: 240 seconds]
icole has joined #ruby
etcetera has quit [Quit: Computer has gone to sleep.]
icole has quit [Remote host closed the connection]
hackerdude has joined #ruby
emmanuelux has joined #ruby
jarred_ has joined #ruby
Elico has quit [Read error: Connection reset by peer]
icole has joined #ruby
jslowe has quit [Ping timeout: 246 seconds]
techhelp has quit [Quit: This computer has gone to sleep]
generalissimo has quit [Remote host closed the connection]
Elico has joined #ruby
Elico has quit [Read error: Connection reset by peer]
clj_newb has joined #ruby
beiter has quit [Quit: beiter]
v0n has quit [Ping timeout: 244 seconds]
Elico has joined #ruby
Elico has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 246 seconds]
jrajav has quit [Quit: I tend to be neutral about apples]
jarred_ has quit [Ping timeout: 244 seconds]
icole has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 244 seconds]
KevinSjoberg has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Elico has joined #ruby
Elico has quit [Read error: Connection reset by peer]
sporkball has quit [Quit: Computer has gone to sleep.]
robbyoconnor has joined #ruby
tenmilestereo has quit [Quit: Leaving]
Elico has joined #ruby
Russell^^ has quit [Quit: Russell^^]
freeayu has joined #ruby
Elico has quit [Read error: Connection reset by peer]
ChampS666 has quit []
<micsha> if I used the Array method pack and I have 10 numbers in the array, do I have to have a 10 of the options in the pack method for each byte in the string?
arya_ has joined #ruby
arya has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby
<cirwin> micsha: just suffix the option by 10: (0..10).to_a.pack("n10")
Elico has joined #ruby
adeponte has quit [Remote host closed the connection]
d34th4ck3r has quit [Quit: Konversation terminated!]
Elico has quit [Read error: Connection reset by peer]
hackerdude has quit [Remote host closed the connection]
hotovson has quit [Remote host closed the connection]
hackerdude has joined #ruby
kil0byte has quit [Ping timeout: 250 seconds]
Elico has joined #ruby
hotovson has joined #ruby
miphe has quit [Quit: Leaving]
moted has quit [Remote host closed the connection]
icole has joined #ruby
punkrawkR has quit [Read error: Connection reset by peer]
wargasm has quit [Read error: Connection reset by peer]
Elico has quit [Remote host closed the connection]
sepp2k has quit [Read error: Connection reset by peer]
icole has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
hotovson has quit [Ping timeout: 244 seconds]
prakriti has quit [Quit: Leaving]
fantazo has quit [Read error: Operation timed out]
pcarrier has joined #ruby
swex has quit [Read error: Operation timed out]
pcarrier has quit [Max SendQ exceeded]
pcarrier has joined #ruby
Synthead has quit [Quit: p33 ba115]
berserkr has quit [Quit: Leaving.]
swex has joined #ruby