fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
ttt has joined #ruby
nari has quit [Ping timeout: 264 seconds]
bricker_ has quit [Quit: leaving]
lggr has quit [Ping timeout: 264 seconds]
bricker has joined #ruby
jasonkuhrt has joined #ruby
justinmcp has joined #ruby
cjz has quit [Quit: Leaving.]
ttt has quit [Ping timeout: 260 seconds]
rbwsam has quit [Quit: Leaving.]
jso has joined #ruby
jasonkuhrt has quit [Ping timeout: 246 seconds]
yshh has joined #ruby
lggr has joined #ruby
artOfWar has quit [Remote host closed the connection]
sdwrage has quit [Quit: geekli.st/programmer]
rubious has quit [Quit: Leaving...]
niklasb has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 260 seconds]
grainne has quit [Quit: =^..^=]
haxrbyte_ has quit [Remote host closed the connection]
<RubyPanther> GoHuyGo: http://pastie.org/4756731
jso has quit []
<RubyPanther> Ruby loves C :)
<GoHuyGo> hahahahaha
<GoHuyGo> :(
<GoHuyGo> I'm stuck on it still
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-dev)]
<GoHuyGo> unexpected end error
freeayu has quit [Ping timeout: 246 seconds]
graft has quit [Ping timeout: 244 seconds]
<RubyPanther> I should have used INT2FIX because it would never be a bignum and 2NUM is slower
ianbrandt has quit [Quit: ianbrandt]
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
eignerchris has quit [Remote host closed the connection]
lggr has joined #ruby
austinbv has joined #ruby
freeayu has joined #ruby
moshee has quit [Ping timeout: 268 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
elico has quit [Read error: Connection reset by peer]
elico has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
kiyoura has joined #ruby
tyfighter has quit [Quit: tyfighter]
locriani has quit [Remote host closed the connection]
<Spooner> GoHuyGo : Already on C extensions, eh? ;)
lggr has joined #ruby
rubious has joined #ruby
rubious has quit [Client Quit]
austinbv has quit [Ping timeout: 244 seconds]
locriani has joined #ruby
loves_color_text has quit [Remote host closed the connection]
<GoHuyGo> Spooner: Just butchering ruby :)
PragCypher has quit [Read error: Connection reset by peer]
PragCypher has joined #ruby
<Spooner> GoHuyGo : I was bored, so implemented Fib with a bag of Ruby magic. Sadly, not terribly useful for a noobie :$
NiteRain has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
linoj has joined #ruby
loves_color_text has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
chessguy has joined #ruby
Guedes has quit [Remote host closed the connection]
austinbv has joined #ruby
yshh has quit [Remote host closed the connection]
linoj has quit [Ping timeout: 268 seconds]
<GoHuyGo> Spooner: do you mind explaining the solution to me
<GoHuyGo> why am I returning a[n-1] instead of a[n]
delinquentme has joined #ruby
<delinquentme> include Cloner
lggr has joined #ruby
<delinquentme> anyone know what cloner is?
bricker has quit [Ping timeout: 244 seconds]
flip_digits has quit [Quit: Computer has gone to sleep.]
zommi has joined #ruby
<banisterfiend`> delinquentme you're in a better position to figure that out than anyone else here
<Spooner> GoHuyGo : because in a length n array, n-1 is the last element. I'd use a.last, since that is a lot clearer.
<Spooner> GoHuyGo : Just like C, Ruby arrays start at index 0 and go to length - 1
<GoHuyGo> because the count starts at 0?
<GoHuyGo> gotcha
<GoHuyGo> I'm getting confused with n and i
<GoHuyGo> so when you do n.times do |i|
<GoHuyGo> when n starts at 0, i = 0?
<Spooner> Yeah, much better to use a name beter than "n" - i is an iterator, which is fine.
<Spooner> n.times runs from 0 to n-1
<GoHuyGo> I'll call it element
<GoHuyGo> okay
<GoHuyGo> and for each iteration
<Spooner> Though that code isn't very nice for you ;)
<GoHuyGo> the variable i will be assigned to n?
<GoHuyGo> why's that
demian`_ has quit [Quit: demian`_]
<Spooner> Well, it creates the full array, when you just want 1 element, for example.
arya_ has quit [Ping timeout: 244 seconds]
banisterfiend` has quit [Ping timeout: 260 seconds]
blendedbychris has joined #ruby
<GoHuyGo> mhmm
<blendedbychris> is erb supposed to support "case" somehow?
<blendedbychris> i tried <% case var %> <% when "foo %> … <% end %>
<Spooner> And we would very rarely use a[i] = x in that case, since a << x is append (we know i is one more than the current length of the array).
blazes816 has quit [Quit: blazes816]
lggr has quit [Ping timeout: 240 seconds]
arya_ has joined #ruby
<GoHuyGo> kk
<GoHuyGo> i'll play aruond with append
<Spooner> Well, in the case of an array, << is just an alias of #push
gfontenot has quit []
<GoHuyGo> so in my n.times do ... end
<GoHuyGo> I can simply just append to the array
<GoHuyGo> since it's not fixed length
blendedbychris has quit [Quit: Leaving.]
<peteyg_> Hey guys, coming from Python here and I'm used to having help(<object>) giving me a list of calls that the object responds to. Is there something similap in Ruby?
<peteyg_> similar*
arya_ has quit [Client Quit]
flip_digits has joined #ruby
yshh has joined #ruby
<Spooner> peteyg_ : object.public_methods
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
manouch has quit [Quit: manouch]
<Spooner> GoHuyGo : Yes, because [1, 2] << 3 is the same as [1, 2][2] = 3
lggr has joined #ruby
<Spooner> peteyg_ : I recommend trying out the pry gem as a replacement for irb. Really helps when doign stuff like that (in pry, you'd do "cd object; ls" - it treats data structures like Linux filesystem)
<GoHuyGo> got it
<GoHuyGo> Spooner: I was just playing with append and realized that you have to set the first element prior to calling << for it to work
<Spooner> GoHuyGo : You can create an empty array with a = [], then you can push onto it.
<Spooner> GoHuyGo : And the pry recommendation goes for you too. Might be helpful!
ffranz has quit [Ping timeout: 264 seconds]
ttt has joined #ruby
peteyg_ has quit [Ping timeout: 252 seconds]
horofox has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
jasonkuhrt has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
justinmcp has quit [Remote host closed the connection]
acrocity_ has joined #ruby
justinmcp has joined #ruby
banisterfiend` has joined #ruby
AlbireoX has joined #ruby
ttt has quit [Ping timeout: 240 seconds]
dmiller has joined #ruby
cburyta has quit [Remote host closed the connection]
iori has joined #ruby
Chryson has joined #ruby
lggr has joined #ruby
jasonkuhrt has quit [Ping timeout: 244 seconds]
chrishunt has quit [Ping timeout: 268 seconds]
nohonor has joined #ruby
jasonkuhrt has joined #ruby
savage- has quit [Ping timeout: 246 seconds]
Jamone has joined #ruby
Jamone has quit [Changing host]
Jamone has joined #ruby
iamjarvo has joined #ruby
aantix has quit [Ping timeout: 244 seconds]
Monie has quit [Ping timeout: 244 seconds]
xaq has quit [Remote host closed the connection]
acrocity_ has quit [Quit: leaving...]
sepp2k has joined #ruby
Hanmac1 has joined #ruby
lushious has quit [Ping timeout: 252 seconds]
acrocity_ has joined #ruby
quest88_ has joined #ruby
<delinquentme> banisterfiend`, yeah I wish I had an idea though
lggr has quit [Ping timeout: 244 seconds]
joofsh has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
<banisterfiend`> delinquentme why dont you just figure it out? just find a method on that module, and grab its source_location
<banisterfiend`> delinquentme or use pry and go: show-source Cloner
lewis1711 has joined #ruby
<banisterfiend`> it'll tell u where the module is defined and display its source code
stephenjudkins has joined #ruby
lewis1711 has left #ruby [#ruby]
walbert has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
justsee has quit [Quit: Leaving...]
lggr has joined #ruby
emmanuelux has quit [Remote host closed the connection]
uris has joined #ruby
eignerchris has joined #ruby
<delinquentme> banisterfiend`, pry and go?! this sounds new...
Agis__ has quit [Quit: Agis__]
<delinquentme> Also the issue is that when I try to load it .. it fails :D
<delinquentme> so its not exactly there
<banisterfiend`> delinquentme, errr, byh 'go' i meant 'do this'
eignerchris has quit [Remote host closed the connection]
<delinquentme> $ pry show-source Cloner
lushious has joined #ruby
<banisterfiend`> delinquentme im sorry, but you're a moron. For a start 'show-source' is a command INSIDE pry, secondly Cloner (whatever it is) is NOT part of stdlib/core, it's clearly some kind of gem so you'd have to require that gem first
fyolnish_ has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
<delinquentme> Waiit a minute here
notVert has quit [Ping timeout: 252 seconds]
<delinquentme> if pry is a codebase with which i execute commands ( show-source) is it not going to be something that I'd run from command line? just as like i put up there?
<delinquentme> I appreciate the help but that claim seems way off base
rakl has joined #ruby
<banisterfiend`> delinquentme you have to start pry first, it's a REPL. once it's started then you issue commands like show-source
jenrzzz has joined #ruby
banisterfiend` is now known as banisterfiend
GoHuyGo has quit [Quit: Leaving]
mikepack has quit [Remote host closed the connection]
nacengineer has joined #ruby
rlb3 has joined #ruby
lggr has joined #ruby
josh^ has joined #ruby
sdwrage has joined #ruby
AlbireoX has quit [Read error: Connection reset by peer]
AlbireoX has joined #ruby
xbayrockx has quit [Ping timeout: 240 seconds]
austinbv has quit [Read error: Connection reset by peer]
LouisGB has quit [Ping timeout: 252 seconds]
ncr100 has quit [Ping timeout: 252 seconds]
RubyPanther has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 240 seconds]
alvaro_o has quit [Quit: Ex-Chat]
Criztian_ has quit [Remote host closed the connection]
rlb3 has quit [Quit: rlb3]
adeponte has quit [Remote host closed the connection]
machty has quit [Ping timeout: 256 seconds]
xbayrockx has joined #ruby
zmbmartin has quit [Quit: Leaving.]
RubyPanther has joined #ruby
nateberkopec has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
zommi has quit [Ping timeout: 265 seconds]
Spooner has quit [Ping timeout: 240 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
dagnachewa has joined #ruby
_karstensrage is now known as karstensrage
davidcelis has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
jrist is now known as jrist-afk
maletor has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
nari has joined #ruby
phantasm66 has joined #ruby
lggr has joined #ruby
chrishunt has joined #ruby
Goles has joined #ruby
acrocity_ is now known as acrocity
pu22l3r has joined #ruby
swarley has quit [Ping timeout: 260 seconds]
voodoofish430 has quit [Quit: Leaving.]
ttt has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Ruler_Of_Heaven_ has quit [Ping timeout: 255 seconds]
pskosinski has quit [Remote host closed the connection]
mrsolo has quit [Quit: Leaving]
pipopopo has joined #ruby
linoj has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
ryanf has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 260 seconds]
swarley has joined #ruby
banisterfiend has quit [Ping timeout: 240 seconds]
linoj has quit [Client Quit]
Bosox20051 has joined #ruby
LouisGB has joined #ruby
nateberkopec has joined #ruby
iori has quit [Remote host closed the connection]
Ruler_Of_Heaven_ has joined #ruby
pipopopo has quit [Ping timeout: 248 seconds]
lggr has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
w400z has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
kiyoura has quit [Quit: Leaving]
w400z has quit [Client Quit]
w400z has joined #ruby
lledet has joined #ruby
w400z has quit [Client Quit]
davidcelis has quit [Ping timeout: 244 seconds]
tarwich1 has joined #ruby
lggr has joined #ruby
davidcelis has joined #ruby
ken_barber has quit [Remote host closed the connection]
maletor has joined #ruby
luist has quit [Remote host closed the connection]
freeayu has quit [Ping timeout: 248 seconds]
JustinCampbell has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
freeayu has joined #ruby
dagnachewa has quit [Quit: Leaving]
JustinCampbell has joined #ruby
JustinCampbell has quit [Remote host closed the connection]
JustinCampbell has joined #ruby
dmiller has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 264 seconds]
ryanRT has joined #ruby
JustinCampbell has quit [Remote host closed the connection]
awarner has joined #ruby
ken_barber has joined #ruby
lggr has joined #ruby
cj3kim has quit [Quit: Leaving]
mwilson` has quit [Excess Flood]
mwilson` has joined #ruby
Jay_Levitt has quit [Ping timeout: 244 seconds]
lggr has quit [Ping timeout: 240 seconds]
joelsbeard has quit [Ping timeout: 248 seconds]
havenn has joined #ruby
luckyruby has joined #ruby
\13k has joined #ruby
RubyPanther has quit [*.net *.split]
davidcelis has quit [*.net *.split]
swarley has quit [*.net *.split]
Hanmac1 has quit [*.net *.split]
cbuxton has quit [*.net *.split]
tntc has quit [*.net *.split]
friskd has quit [*.net *.split]
burgestrand has quit [*.net *.split]
asobrasil has quit [*.net *.split]
crodas has quit [*.net *.split]
Guest32003 has quit [*.net *.split]
thnee has quit [*.net *.split]
RJ3000_ has quit [*.net *.split]
bigkevmcd has quit [*.net *.split]
voodoofish has quit [*.net *.split]
dimka has quit [*.net *.split]
zaargy has quit [*.net *.split]
octarine has quit [*.net *.split]
aef_ has quit [*.net *.split]
mahlon has quit [*.net *.split]
willb has quit [*.net *.split]
Eiam has quit [*.net *.split]
ged has quit [*.net *.split]
idoru has quit [*.net *.split]
octarine has joined #ruby
burgestrand has joined #ruby
Hanmac has joined #ruby
RJ3000_ has joined #ruby
mrdodo has joined #ruby
lggr has joined #ruby
xaq has joined #ruby
adeponte has joined #ruby
monkegji_ has quit [Remote host closed the connection]
fyolnish_ has quit [Remote host closed the connection]
ged has joined #ruby
idoru has joined #ruby
RubyPanther has joined #ruby
davidcelis has joined #ruby
swarley has joined #ruby
Guest32003 has joined #ruby
willb has joined #ruby
asobrasil has joined #ruby
thnee has joined #ruby
tntc has joined #ruby
cbuxton has joined #ruby
aef_ has joined #ruby
zaargy has joined #ruby
crodas has joined #ruby
friskd has joined #ruby
mahlon has joined #ruby
voodoofish has joined #ruby
dimka has joined #ruby
bigkevmcd has joined #ruby
[Neurotic] has quit [Excess Flood]
josh^ has quit [Excess Flood]
octarine has quit [Changing host]
octarine has joined #ruby
Nisstyre has quit [Ping timeout: 244 seconds]
lggr has quit [Ping timeout: 245 seconds]
ged is now known as Guest58219
[Neurotic] has joined #ruby
Goles has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
josh^ has joined #ruby
lledet has quit [Quit: lledet]
awarner has quit [Remote host closed the connection]
radic has quit [Ping timeout: 244 seconds]
havenn has quit [Ping timeout: 244 seconds]
ken_barber has quit [Remote host closed the connection]
lggr has joined #ruby
horofox_ has joined #ruby
havenn has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
pricees has joined #ruby
pricees_ has joined #ruby
pingfloyd has joined #ruby
horofox has quit [Ping timeout: 245 seconds]
horofox_ is now known as horofox
stephenjudkins has quit [Quit: stephenjudkins]
lggr has quit [Ping timeout: 264 seconds]
garagenflo_ has joined #ruby
gabrielrotbart has quit [Ping timeout: 245 seconds]
<garagenflo_> hello everybody have anybody an idea of installing bettermeans (its an collaboration software based on redmine)
<garagenflo_> of course its based on ruby but i have no idea if iam in the right channel for this question
philcrissman has joined #ruby
radic has joined #ruby
ZachBeta has joined #ruby
enherit has joined #ruby
havenn_ has joined #ruby
lggr has joined #ruby
havenn has quit [Ping timeout: 244 seconds]
nga4 has joined #ruby
pu22l3r has joined #ruby
xpen has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
tarwich1 has quit [Quit: Leaving.]
lggr has joined #ruby
<pricees> quit
pricees has quit [Quit: leaving]
savage- has joined #ruby
havenn_ has quit [Read error: Connection reset by peer]
havenn has joined #ruby
adeponte has quit [Remote host closed the connection]
reset has joined #ruby
Nisstyre-laptop has joined #ruby
luckyruby has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 260 seconds]
Vinzgore has quit [Ping timeout: 268 seconds]
Vinzgore has joined #ruby
xpen has quit [Remote host closed the connection]
<tommyvyo> garagenflo_ did you try #rubyonrails ?
horofox has quit [Quit: horofox]
xpen has joined #ruby
savage- has quit [Remote host closed the connection]
<garagenflo_> sry no i didnt
xpen_ has joined #ruby
havenn has quit [Remote host closed the connection]
<garagenflo_> thank you for the help
garagenflo_ has quit [Quit: Page closed]
luckyruby has joined #ruby
luckyruby has quit [Read error: Connection reset by peer]
luckyruby has joined #ruby
lggr has joined #ruby
xpen has quit [Ping timeout: 244 seconds]
neurotech has joined #ruby
dmiller has joined #ruby
jgrevich has quit [Ping timeout: 260 seconds]
LouisGB has quit [Ping timeout: 246 seconds]
phantasm66 has quit [Quit: *sleeeeep*]
cakehero has joined #ruby
joofsh has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 240 seconds]
apok has quit [Ping timeout: 244 seconds]
butblack has joined #ruby
jgrevich has joined #ruby
cakehero has quit [Client Quit]
joephlius has joined #ruby
jerrad has quit [Quit: Linkinus - http://linkinus.com]
Banistergalaxy has joined #ruby
havenn has joined #ruby
neurotech has quit [Read error: Connection reset by peer]
joephelius has quit [Ping timeout: 268 seconds]
lggr has joined #ruby
gabrielrotbart has joined #ruby
justsee has quit [Quit: Leaving...]
bryanray has joined #ruby
ananthakumaran has joined #ruby
maletor has joined #ruby
reset has quit [Ping timeout: 244 seconds]
sepp2k has quit [Read error: Connection reset by peer]
swarley has quit [Quit: Leaving]
sepp2k has joined #ruby
banisterfiend has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
sdwrage_ has joined #ruby
stuartrexking has quit [Quit: Leaving...]
sdwrage has quit [Read error: Connection reset by peer]
sdwrage_ is now known as sdwrage
stuartrexking has joined #ruby
Banistergalaxy has quit [Ping timeout: 245 seconds]
ZachBeta has quit [Quit: Computer has gone to sleep.]
macmartine has joined #ruby
havenn has quit [Remote host closed the connection]
lggr has joined #ruby
spopescu has joined #ruby
spopescu has left #ruby [#ruby]
lggr has quit [Ping timeout: 245 seconds]
SCommette has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
xyzodiac has joined #ruby
ewag has quit [Ping timeout: 240 seconds]
flip_digits has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
minijupe has joined #ruby
lggr has joined #ruby
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
fyolnish_ has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
stuartrexking has quit [Quit: Leaving...]
Guest64548 has joined #ruby
GoHuyGo has joined #ruby
justinmcp has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
maletor has quit [Ping timeout: 264 seconds]
mrdodo has quit [Remote host closed the connection]
macmartine has quit [Read error: Connection reset by peer]
tommyvyo has quit [Remote host closed the connection]
macmartine has joined #ruby
cburyta has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
mrdodo has joined #ruby
banisterfiend has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
neurotech has joined #ruby
mrdodo has quit [Ping timeout: 248 seconds]
lggr has joined #ruby
xpen_ has quit [Remote host closed the connection]
iori has joined #ruby
Banistergalaxy has joined #ruby
Targen has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 246 seconds]
jasonkuhrt has quit [Quit: Leaving...]
butblack has left #ruby [#ruby]
xaq has quit [Remote host closed the connection]
Guest64548 has quit [Read error: Connection reset by peer]
pu22l3r_ has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
xyzodiac has joined #ruby
xpen has joined #ruby
lggr has joined #ruby
neurotech has quit [Remote host closed the connection]
xyzodiac has quit [Client Quit]
pu22l3r has quit [Ping timeout: 260 seconds]
gnarmis has joined #ruby
NiteRain has quit [Ping timeout: 246 seconds]
macmartine has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 244 seconds]
stuartrexking has joined #ruby
jhunter has quit [Ping timeout: 252 seconds]
lchin has joined #ruby
lggr has joined #ruby
jhunter has joined #ruby
davidcelis has quit [Ping timeout: 240 seconds]
davidcelis has joined #ruby
stuartrexking has quit [Client Quit]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
nat2610 has quit [Ping timeout: 246 seconds]
lchin has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 260 seconds]
statarb3 has quit [Quit: Leaving]
shiki has joined #ruby
uris has quit [Quit: leaving]
SCommette has quit [Quit: SCommette]
philcrissman has quit [Remote host closed the connection]
amacgregor_osx has quit [Ping timeout: 240 seconds]
AlbireoX has quit [Remote host closed the connection]
ando has joined #ruby
minijupe has quit [Quit: minijupe]
adeponte has joined #ruby
iamjarvo has quit [Quit: WeeChat 0.3.9-dev]
lggr has joined #ruby
mrdodo has joined #ruby
prishabh has joined #ruby
<prishabh> can ruby code be executes in sass, less ?
amacgregor_osx has joined #ruby
riley526 has joined #ruby
ando has quit [Ping timeout: 240 seconds]
Nisstyre has joined #ruby
theRoUS has quit [Ping timeout: 255 seconds]
JJMalina has joined #ruby
chessguy has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 248 seconds]
sjkaliski has joined #ruby
bier has quit [Ping timeout: 264 seconds]
ledao has joined #ruby
Targen has joined #ruby
nateberkopec has quit [Ping timeout: 272 seconds]
xaq has joined #ruby
SCommette has joined #ruby
jimeh has quit [Ping timeout: 264 seconds]
JJMalina has quit [Ping timeout: 272 seconds]
xaq has quit [Remote host closed the connection]
ledao has quit [Client Quit]
tvw has joined #ruby
lggr has joined #ruby
bananagram has quit [Ping timeout: 246 seconds]
ztirf has joined #ruby
joelsbeard has joined #ruby
amacgregor_osx has quit [Read error: Connection reset by peer]
Guest26981 has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
a_a_g has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
philips_ has quit [Excess Flood]
emanu has joined #ruby
sspiff has quit [Ping timeout: 252 seconds]
philips_ has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
xpen has quit [Remote host closed the connection]
xpen has joined #ruby
cburyta has quit [Remote host closed the connection]
amacgregor_osx has joined #ruby
SCommette has quit [Quit: SCommette]
xpen has quit [Remote host closed the connection]
quest88_ has quit [Quit: quest88_]
xpen has joined #ruby
tvw has quit [Remote host closed the connection]
tvw has joined #ruby
<rking> prishabh: No, but you can name a file .sass.erb and it'll get processed right in a Rails 3 project (I think it's Sprockets doing that)
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
lggr has joined #ruby
AndChat- has joined #ruby
delinquentme has quit [Quit: Leaving]
flip_digits has joined #ruby
ztirf has quit [Quit: Nettalk6 - www.ntalk.de]
topriddy has joined #ruby
Banistergalaxy has quit [Ping timeout: 268 seconds]
stuartrexking has joined #ruby
tvw has quit [Remote host closed the connection]
Guest26981 has quit [Quit: Linkinus - http://linkinus.com]
adeponte has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 252 seconds]
h4mz1d has joined #ruby
<fir_ed> Can blocks replace do and end universally?
<fir_ed> {} = do..end?
<Mon_Ouie> No, they have different precedence.
xaq has joined #ruby
jasonkuhrt has joined #ruby
<Mon_Ouie> Also, the body of while, until, and for loops *can* be preceded by a do, but not enclosed by { … }
mucker has joined #ruby
lggr has joined #ruby
idletom has quit [Ping timeout: 256 seconds]
ph^ has quit [Remote host closed the connection]
pricees_ has quit [Ping timeout: 244 seconds]
ph^ has joined #ruby
idletom has joined #ruby
wallerdev has quit [Quit: wallerdev]
jasonkuhrt has quit [Ping timeout: 244 seconds]
Chryson has quit [Quit: Leaving]
cantonic has joined #ruby
justinmcp has joined #ruby
adeponte has joined #ruby
tagrudev has joined #ruby
xaq has quit [Remote host closed the connection]
dmnd has quit [Quit: dmnd]
lggr has quit [Ping timeout: 248 seconds]
iori has quit [Ping timeout: 240 seconds]
_iori_ has joined #ruby
amacgregor_osx has quit [Ping timeout: 246 seconds]
xnm has joined #ruby
stuartrexking has quit [Quit: Leaving...]
lggr has joined #ruby
flip_digits has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
gnarmis has left #ruby [#ruby]
ananthakumaran has joined #ruby
jgrevich_ has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
jgrevich has quit [Ping timeout: 264 seconds]
jgrevich_ is now known as jgrevich
amacgregor_osx has joined #ruby
<fir_ed> Mon_Ouie, ty
cburyta has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
stuartrexking has joined #ruby
wallerdev has joined #ruby
lggr has joined #ruby
CodeFriar has joined #ruby
slicslak has joined #ruby
robustus has joined #ruby
emanu has quit [Quit: emanu]
realfunny has joined #ruby
cburyta has quit [Ping timeout: 244 seconds]
acrocity_ has joined #ruby
xpen has quit [Remote host closed the connection]
rippa has joined #ruby
xaq has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
amacgregor_osx has quit [Ping timeout: 264 seconds]
acrocity has quit [Ping timeout: 264 seconds]
acrocity_ is now known as acrocity
maletor has quit [Quit: Computer has gone to sleep.]
Morkel has joined #ruby
riley526 has quit [Remote host closed the connection]
sdwrage has quit [Quit: geekli.st/programmer]
JustinCampbell has joined #ruby
Mister5 has joined #ruby
ph^ has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
amacgregor_osx has joined #ruby
topriddy has quit [Quit: topriddy]
Bosma has quit [Ping timeout: 248 seconds]
JustinCampbell has quit [Ping timeout: 244 seconds]
Mister5 has quit [Quit: Leaving]
Mister5 has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
manouch has joined #ruby
Mister5 has quit [Read error: Connection reset by peer]
lggr has joined #ruby
Mister5 has joined #ruby
djdb has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
joelsbeard has quit [Ping timeout: 240 seconds]
h4mz1d has quit [Ping timeout: 260 seconds]
arturaz has joined #ruby
yasushi has joined #ruby
yasushi has quit [Remote host closed the connection]
maesbn has joined #ruby
ph^ has joined #ruby
perun has quit [Killed (wolfe.freenode.net (Nickname regained by services))]
stephenjudkins has joined #ruby
lggr has joined #ruby
Guest66119 has joined #ruby
senny has joined #ruby
mrdodo has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
jprovazn_away is now known as jprovazn
TheMoonMaster has quit [Ping timeout: 248 seconds]
GoHuyGo has quit [Quit: Leaving]
Banistergalaxy has joined #ruby
AndChat- has quit [Ping timeout: 244 seconds]
lggr has quit [Ping timeout: 260 seconds]
ttt has quit [Remote host closed the connection]
acrocity_ has joined #ruby
ryanf has joined #ruby
TheMoonMaster has joined #ruby
ttt has joined #ruby
ttt has quit [Remote host closed the connection]
acrocity has quit [Ping timeout: 246 seconds]
acrocity_ is now known as acrocity
* jokar hello all is ruby-lang.org official web site ?
<jokar> i think it was ruby.org !!!!!!!!
mahmoudimus has joined #ruby
lggr has joined #ruby
justinmcp has quit [Remote host closed the connection]
maletor has joined #ruby
banisterfiend has joined #ruby
slicslak has quit [Ping timeout: 240 seconds]
Mister5_ has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
ttt has joined #ruby
Banistergalaxy has quit [Ping timeout: 248 seconds]
Mister5_ has quit [Max SendQ exceeded]
Mister5_ has joined #ruby
Mister5 has quit [Ping timeout: 260 seconds]
idletom has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
adeponte has quit [Remote host closed the connection]
monkegjinni has joined #ruby
beneggett has joined #ruby
jimeh has joined #ruby
Mister5_ has quit [Quit: Leaving]
lggr has quit [Ping timeout: 252 seconds]
crack_head has quit [Ping timeout: 276 seconds]
elsifaka has joined #ruby
lchin has joined #ruby
rippa has quit [Ping timeout: 268 seconds]
monkegjinni has quit [Remote host closed the connection]
lchin has quit [Ping timeout: 244 seconds]
jgrevich_ has joined #ruby
lggr has joined #ruby
<arturaz> no, it's ruby-lang.org
<arturaz> also - are you 12?
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
PragCypher has quit [Read error: Connection reset by peer]
<jokar> arturaz: 12?
<arturaz> twelve years old?
<jokar> arturaz: is domain changed ?
<jokar> no i'm not
jgrevich has quit [Ping timeout: 260 seconds]
jgrevich_ is now known as jgrevich
<arturaz> then stop acting like it
<jokar> why?
<arturaz> because you look like a retard and people will just ignore you. Friendly advice, that's all.
loves_co_ has joined #ruby
dr_bob has joined #ruby
loves_color_text has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 264 seconds]
a_a_g has quit [Quit: Leaving.]
jgrevich has quit [Quit: jgrevich]
a_a_g has joined #ruby
lggr has joined #ruby
amacgregor_osx has quit [Ping timeout: 264 seconds]
PragCypher has joined #ruby
aganov has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
amacgregor_osx has joined #ruby
budha has joined #ruby
haxrbyte has joined #ruby
mrmist is now known as groupcat
cibs has joined #ruby
lggr has joined #ruby
thomas is now known as woman
chimay has joined #ruby
<juha_> one ! is enough
pitty has joined #ruby
lolmaus has joined #ruby
haxrbyte has quit [Remote host closed the connection]
lemon has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
a_a_g has quit [Read error: Connection reset by peer]
mrdodo has joined #ruby
a_a_g has joined #ruby
\13k has quit [Quit: gg]
<lemon> hi,
lemon has left #ruby [#ruby]
<banisterfiend> `
joelsbea1d has joined #ruby
pingfloyd has quit [Quit: pingfloyd]
cezar has joined #ruby
cezar has quit [Client Quit]
<shevy> jokar you need to learn what people write to you
skogis has joined #ruby
<shevy> jokar when I say no PRIVMSG, why do you keep on writing me in PRIVMSG - go ask here on #ruby
<jokar> i'm sorry
hoelzro|away is now known as hoelzro
mrdodo has quit [Ping timeout: 248 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
joelsbea1d has quit [Ping timeout: 244 seconds]
Elhu has joined #ruby
lggr has joined #ruby
dhruvasagar has joined #ruby
greg has joined #ruby
jasonkuhrt has joined #ruby
stuartrexking has quit [Quit: Leaving...]
dhruvasagar has quit [Ping timeout: 246 seconds]
Liothen_ has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 244 seconds]
Eldariof18-ru has joined #ruby
dhruvasagar has joined #ruby
jasonkuhrt has quit [Ping timeout: 244 seconds]
pitty has quit [Ping timeout: 244 seconds]
Criztian has joined #ruby
pitty has joined #ruby
banisterfiend has quit [Ping timeout: 245 seconds]
banisterfiend has joined #ruby
statarb3 has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
avalarion has joined #ruby
lggr has joined #ruby
mohits has quit [Ping timeout: 244 seconds]
gabrielrotbart has quit [Remote host closed the connection]
khakimov has quit [Quit: Computer has gone to sleep.]
maahes has quit [Ping timeout: 240 seconds]
amacgregor_osx has quit [Ping timeout: 264 seconds]
lggr has quit [Ping timeout: 246 seconds]
flype has joined #ruby
JustinCampbell has joined #ruby
dhruvasagar has quit [Ping timeout: 244 seconds]
ryanf has quit [Quit: leaving]
timonv has joined #ruby
gyre007 has quit [Ping timeout: 246 seconds]
zz_chrismcg is now known as chrismcg
dhruvasagar has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
cantonic has quit [Quit: cantonic]
amacgregor_osx has joined #ruby
lggr has joined #ruby
fantazo has quit [Remote host closed the connection]
JustinCampbell has quit [Ping timeout: 260 seconds]
maahes has joined #ruby
Bosox20051 has quit [Remote host closed the connection]
prishabh has quit [Ping timeout: 244 seconds]
lolmaus has quit []
Nathandim has joined #ruby
lolmaus has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
amacgregor_osx has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
seoaqua has joined #ruby
LouisGB has joined #ruby
alup has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
amacgregor_osx has joined #ruby
haxrbyte has joined #ruby
haxrbyte_ has joined #ruby
areil has joined #ruby
cantonic has joined #ruby
haxrbyte has quit [Ping timeout: 244 seconds]
a_a_g has quit [Quit: Leaving]
lggr has quit [Ping timeout: 260 seconds]
a_a_g has joined #ruby
prishabh has joined #ruby
arietis has joined #ruby
dakine has joined #ruby
s1n4 has joined #ruby
lggr has joined #ruby
Criztian has quit [Remote host closed the connection]
greg has quit [Quit: Leaving...]
Banistergalaxy has joined #ruby
mrdodo has joined #ruby
parzo has joined #ruby
seoaqua has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Ping timeout: 246 seconds]
pitty has quit [Ping timeout: 252 seconds]
lggr has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
alup has joined #ruby
prishabh has quit [Ping timeout: 264 seconds]
mohits has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
lggr has joined #ruby
Mon_Ouie has quit [Ping timeout: 244 seconds]
stephenjudkins has quit [Quit: stephenjudkins]
notVert has joined #ruby
justinmcp has joined #ruby
ABK has joined #ruby
bluOxigen has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
banisterfiend has joined #ruby
Averna has quit [Quit: Leaving.]
crack_head has joined #ruby
tvw has joined #ruby
lggr has joined #ruby
Iszak has joined #ruby
Iszak has quit [Changing host]
Iszak has joined #ruby
Guest64548 has joined #ruby
baphled has joined #ruby
Criztian has joined #ruby
moshee has quit [Ping timeout: 240 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
jjang has joined #ruby
jjang has quit [Remote host closed the connection]
gyre007 has joined #ruby
sspiff has joined #ruby
sspiff has joined #ruby
sspiff has quit [Changing host]
elaptics`away is now known as elaptics
beneggett has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 244 seconds]
und3f has joined #ruby
greg has joined #ruby
fixl has joined #ruby
seoaqua has joined #ruby
chussenot has joined #ruby
chussenot has quit [Remote host closed the connection]
lggr has joined #ruby
chussenot has joined #ruby
fyolnish_ has quit [Remote host closed the connection]
ken_barber has joined #ruby
greg has quit [Ping timeout: 260 seconds]
sepp2k has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 260 seconds]
lkba has quit [Ping timeout: 268 seconds]
lggr has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
cascalheira has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
lggr has quit [Ping timeout: 246 seconds]
omry has quit [Ping timeout: 244 seconds]
omry has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
lggr has joined #ruby
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
arietis has joined #ruby
mucker has quit [Ping timeout: 248 seconds]
greg has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
vectorshelve has joined #ruby
Shrink has quit [Ping timeout: 268 seconds]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
ABK has quit [Read error: Connection reset by peer]
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
jasonkuhrt has joined #ruby
ABK has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
demian`_ has joined #ruby
jasonkuhrt has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
JustinCampbell has joined #ruby
kng has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
greg has quit [Ping timeout: 248 seconds]
pskosinski has joined #ruby
jdripper has joined #ruby
topriddy has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
nari has quit [Ping timeout: 268 seconds]
adambeynon has joined #ruby
JustinCampbell has quit [Ping timeout: 244 seconds]
Virunga has joined #ruby
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
cascalheira has joined #ruby
lggr has joined #ruby
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Shrink has joined #ruby
xpen has joined #ruby
meskyanichi has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
shiki has quit [Remote host closed the connection]
topriddy has quit [Quit: topriddy]
thunderstrike has joined #ruby
s1n4 has quit [Quit: Lost terminal]
eikko has joined #ruby
m3pow has joined #ruby
thunderstrike has quit [Remote host closed the connection]
lggr has joined #ruby
berserkr has quit [Quit: Leaving.]
matthewrobbins has joined #ruby
uris has joined #ruby
rakl has quit [Quit: sleeping]
<Xeago> how do I install activerecord-sqlite3-adapter gem?
<Xeago> ERROR: could not find gem activerecord-sqlite3-adapter locally or in a repository
greg has joined #ruby
matthewrobbins has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 256 seconds]
heftig has quit [Ping timeout: 260 seconds]
<Hanmac> have you tryed it in #rubyonrails?
matthewrobbins has joined #ruby
matthewrobbins has left #ruby [#ruby]
heftig has joined #ruby
<Xeago> not using rails
<Xeago> need it to run tests with my river for elasticsearch
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
omry has quit [Ping timeout: 252 seconds]
Foxandxss has joined #ruby
justsee has joined #ruby
eikko has quit [Ping timeout: 256 seconds]
ph^ has quit [Remote host closed the connection]
iocor has joined #ruby
<shevy> jokar the best way to learn ruby is to start writing scripts
parzo has quit [Quit: Leaving.]
<Xeago> not using java/jruby Hanmac ;)
<jokar> shevy: i prepare a book that you recommended
lggr has joined #ruby
<jokar> i will beginning it
<jokar> Thank you
<shevy> jokar no, why are you so focused on a book man :(
<jokar> because book is complete
<Xeago> no
<jokar> i fount tryruby.org too
<Xeago> book is dated
<shevy> ruby is huge, the book is not covering 100%
<jokar> found*
<jokar> you right
<shevy> but you dont need 100%
<jokar> but a book can be a good manual
<shevy> I use only 60% of what ruby offers
justsee has quit [Quit: Linkinus - http://linkinus.com]
<jokar> i understand
<Xeago> manuals are not a way to learn
<Xeago> manuals are for reference
<jokar> it is very wide
<shevy> the best way is to have your brain start to "think" in ruby jokar
<jokar> i saw tryruby.org
<jokar> sure
<jokar> it is good but add account not worked :(
<jokar> link not found
<shevy> well tryruby is like irb
<jokar> yes
<shevy> you can use it to quickly test ruby code you write
<jokar> it is a good point for learning
greg has quit [Ping timeout: 260 seconds]
<shevy> array = []; array << 'hello '; array << 'world'
<Hanmac> Xeago try http://rubygems.org/gems/sqlite3 and this :adapter => "sqlite3",
<jokar> shevy : ruby can be used for write anything ?
<Xeago> Hanmac: ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ":memory:" ) is what I currently use,
<shevy> jokar yes. except when you need speed, then you would have to use C
<jokar> for example,a user can use ruby for write a GUI app
Virunga has quit [Remote host closed the connection]
<Xeago> define gui
<shevy> yes
<Xeago> and spits out an error to install it, which then fails
<shevy> but remember, GUIs are a lot of extra work
<jokar> ruby is not quit?
<shevy> quit? who quits :)
<jokar> oh sorry
demian`_ has quit [Quit: demian`_]
lkba has joined #ruby
<jokar> you told me C is fast but ruby?
<shevy> remember, with GUI toolkits, they are usually written in C or C++
<shevy> so languages like python or ruby need bindings for these toolkits
<jokar> like a modules
<Hanmac> jokar: you could use ruby for an Window-GUI, and for an 3D-Game or for Website
<Xeago> shevy: I doubt he has not a clue what you are talking about
parzo has joined #ruby
ph^ has joined #ruby
<shevy> GTK is in C, Qt in C++ ... dunno what microsoft uses... C#? And OS X ... uses Objective C I think
seoaqua has quit [Quit: 离开]
<shevy> Xeago hehehe
freeayu__ has joined #ruby
<shevy> Xeago we are gonna train him
<jokar> thanks
<Xeago> he should just read the web
<shevy> for some reason he hates browsers
<Xeago> and come back a week later
<shevy> he prefers paper books
freeayu has quit [Ping timeout: 260 seconds]
<Xeago> then print the page
<shevy> hahaha
<shevy> PRINT THE WWW
chrismcg is now known as zz_chrismcg
<jokar> no book is better
<shevy> yeah
<jokar> i read document on the web
love_color_text has joined #ruby
<Xeago> books make me sleepy
TomJ has quit [Quit: TomJ]
<jokar> ruby-lang.org
<shevy> true too
<jokar> i found many ruby documnet
<jokar> document*
<shevy> when I can't sleep, I start reading... and soon enough I am tired enough to sleep
<jokar> shevy : :)
lggr has quit [Ping timeout: 248 seconds]
<jokar> shevy : is ruby web site changed?
<jokar> i think the first domain was ruby.org or rubylang.org
<jokar> it is not important but i want know
<shevy> jokar there is only one official site
<jokar> ok
<shevy> it is the site where you get the source of ruby
<shevy> ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.bz2
<shevy> so logically it must be ruby-lang.org
<jokar> i downloaded it
<shevy> hmm
<shevy> I always compile from source, but most people don't
<jokar> shevy : can you show me a good GUI env....for work with ruby
<shevy> well
<shevy> if you really need GUI stuff
<shevy> perhaps use javascript :)
<jokar> javascript?
<Xeago> jokar: start without a windowed gui
<shevy> for ruby alone, ruby-gnome bindings are ok
<Xeago> jokar: try using a text-based gui
<jokar> i can use kate for write script
<shevy> but if you are a beginner, it is not good to jump right into GUI stuff with ruby
<shevy> write console-only stuff first for a while
<Xeago> jokar: start with programs that calculate primes, and things like that
timmow has joined #ruby
<Xeago> did you do a hello world yet?
<shevy> he'll manage that today :P
<Xeago> tbh, I doubt
<shevy> hahaha
<jokar> shevy : can i export ruby code to exe file?
<jokar> python can
<Xeago> oh shit, he's on windows too
<shevy> :(
<jokar> no
<shevy> he is dooomed
<jokar> I'm a linux user
TomJ has joined #ruby
TomJ has joined #ruby
TomJ has quit [Changing host]
<Xeago> then why an exe file
<jokar> but some customer need exe file
<Xeago> customer?
<shevy> jokar you can kind of put together things into an .exe but it will never be the same as other .exe
<jokar> i want write app
<shevy> learn C, compile an .exe, sell it, profit
kaichanvong has joined #ruby
<shevy> or C++
<jokar> :)
<jokar> but ruby is interested
lggr has joined #ruby
<jokar> i like it
<jokar> Code must be free
<Xeago> jokar: write your hello world program, then come back
<jokar> puts "hello word"
<Xeago> put it in a file
<jokar> :)
<Xeago> make it executable
<jokar> hello.rb
<jokar> ruby hello.rb
<Xeago> no, you are calling the ruby interpreter on the file
<Xeago> ./hello.rb
<jokar> #/bin/ruby
<Xeago> still wrong
<Hanmac> chmod +x hello.rb
<Xeago> !#/bin/env ruby
<Hanmac> !#/usr/bin/env ruby
<jokar> yeah
<Xeago> I got it in bin Hanmac :)
<Xeago> needed it in single user mode a while ago
<jokar> shevy : ruby-gnome is good
<jokar> thanks
<jokar> shevy ,Xeago : i must leave out and i will talk to you and answer my questions another time
<jokar> thanks for all your help
liktoj has joined #ruby
<m3pow> bloody ubuntu 12.04.1 has some idiotic bugs in unity, and i get weird tooltips from launcher icons
zz_chrismcg is now known as chrismcg
TomJ has quit [Quit: TomJ]
<shevy> m3pow hehe
<m3pow> shevy, hello matey !
<m3pow> seems like i will have to wait for updates
lggr has quit [Ping timeout: 240 seconds]
Jck_true has quit [Read error: Connection reset by peer]
<vectorshelve> shevy: hi :) Long time
jokar has left #ruby ["PART #linux-cluster :QUIT :Leaving."]
<vectorshelve> Hanmac: hi
<shevy> vectorshelve hi. are you still using ruby
<vectorshelve> shevy: Yes.. I think so :)
bier has joined #ruby
theRoUS_ has joined #ruby
<vectorshelve> shevy: always wondered why ruby and to a great extent rails hasnt had any tools that can auto generate test suites and scripts.. java and c++ has that
<shevy> I write these for myself!
lggr has joined #ruby
<shevy> in my ruby shell, I do "mbl foo.rb" and it generates a skeleton for .rb files
woman is now known as thomas
<Xeago> tbh, writing a test in ruby is easier then in java/c++/c#
<shevy> thomas ... was your nick before ... woman ???
<thomas> yup
<shevy> hehe
<m3pow> you're a male now ...?
<m3pow> cool
<shevy> anything goes on IRC
PragCypher has quit [Read error: Connection reset by peer]
PragCypher has joined #ruby
osccar has joined #ruby
<thomas> lol
Virunga has joined #ruby
Shrink has quit [Ping timeout: 264 seconds]
<shevy> Xeago ... what should a good shell offer the user?
<banisterfiend> shevy purity of heart
lchin has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
Virunga has quit [Remote host closed the connection]
lchin has quit [Ping timeout: 264 seconds]
shiki has joined #ruby
jmeeuwen has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
Jck_true has joined #ruby
frogprince_mac has joined #ruby
xpen has quit [Remote host closed the connection]
bartj3 has joined #ruby
Shrink has joined #ruby
freeayu__ has quit [Quit: This computer has gone to sleep]
chussenot has quit [Quit: chussenot]
xea has quit [Read error: Operation timed out]
jmeeuwen has joined #ruby
banisterfiend` has joined #ruby
danielpunt has joined #ruby
manouch has quit [Quit: manouch]
lggr has quit [Ping timeout: 260 seconds]
Shrink has quit [Ping timeout: 246 seconds]
acrocity has quit [Ping timeout: 244 seconds]
andremaha has joined #ruby
matthewrobbins has joined #ruby
acrocity has joined #ruby
xea has joined #ruby
banisterfiend` has quit [Remote host closed the connection]
lggr has joined #ruby
mroh_ has joined #ruby
bigkevmcd has quit [Ping timeout: 240 seconds]
mucker has joined #ruby
mroh has quit [Ping timeout: 252 seconds]
RJ3000_ has quit [Remote host closed the connection]
andremaha_ has joined #ruby
monkegjinni has joined #ruby
andremaha_ has quit [Client Quit]
greg has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
andremaha has quit [Ping timeout: 264 seconds]
RJ3000_ has joined #ruby
Beoran__ has joined #ruby
Shrink has joined #ruby
freeayu has joined #ruby
lggr has joined #ruby
Beoran_ has quit [Ping timeout: 240 seconds]
RJ3000_ has quit [Remote host closed the connection]
fixl has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
lggr has quit [Ping timeout: 246 seconds]
xyzodiac has joined #ruby
JustinCampbell has joined #ruby
danielpunt has quit [Remote host closed the connection]
greg has quit [Ping timeout: 264 seconds]
lggr has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
wpaulson has joined #ruby
horofox has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
jasonkuhrt has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
JustinCampbell has quit [Ping timeout: 244 seconds]
yshh has quit [Remote host closed the connection]
xyzodiac has quit [Quit: Computer has gone to sleep.]
wpaulson_ has joined #ruby
dpk has joined #ruby
gregorg has joined #ruby
gregorg has quit [Changing host]
gregorg has joined #ruby
lchin has joined #ruby
jasonkuhrt has quit [Ping timeout: 248 seconds]
wpaulson has quit [Ping timeout: 256 seconds]
wpaulson_ is now known as wpaulson
yshh has joined #ruby
und3f has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
love_color_text has quit [Remote host closed the connection]
areil_ has joined #ruby
_iori_ has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
areil has quit [Ping timeout: 244 seconds]
chussenot has joined #ruby
<kapowaz> anyone here a pow user? I've created a new app and it doesn't resolve; existing ones do.
<kapowaz> no new ones seem to resolve…
<kapowaz> restarted pow, no help
<Hanmac> kapowaz what is "pow"?
josh^ has quit [Remote host closed the connection]
<kapowaz> if you don't know what pow is, it's unlikely you'll be able to help, I'd have thought :)
<Xeago> pow is a 0 configuration rack server
<Xeago> kapowaz: see if you're symlinks are still correct, notably the one that links to ~/.pow
<kapowaz> Xeago: surely that would cause all sites to fail, rather than just a few ?
<Xeago> or just try installing pow again
<kapowaz> tried that too
<kapowaz> no help
<Xeago> kapowaz: depending on where the symlink points to, no
<kapowaz> I'm guessing it's a resolver issue
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
<kapowaz> ~/.pow => ~/Library/Application Support/Pow/Hosts
<kapowaz> I may just reboot and see if that helps.
chrismcg is now known as zz_chrismcg
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Xeago> what ports does pow have open?
<kapowaz> how can I check ?
<hoelzro> kapowaz: netstat
workmad3 has joined #ruby
<kapowaz> presumably I need some arguments to that…
<Xeago> use activity monitor then
<Xeago> inspect
<kapowaz> *:20559
<kapowaz> *:20560
<Xeago> anyone else having fun looking through ioccc2012 submissions
<kapowaz> I'm guessing those are the ports
Elhu has quit [Quit: Computer has gone to sleep.]
<Xeago> tried restarting?
<kapowaz> nope. I think I'll do that now.
15SACSVLC has joined #ruby
lggr has joined #ruby
<Xeago> Hanmac: you know of ioccc right?
arturaz has quit [Remote host closed the connection]
<kapowaz> Xeago: still not working after a reboot.
<Hanmac> what is this?
<kapowaz> bah
und3f has joined #ruby
Mon_Ouie has joined #ruby
<Xeago> ioccc? internation obfuscated c code contest
<Xeago> they got cool stuff
<Xeago> like games in <40lines of c code
rlb3 has joined #ruby
chimay has quit [Ping timeout: 244 seconds]
lggr has quit [Ping timeout: 260 seconds]
<Xeago> ascii art from various types of files, when run over the source code for the program generates programs up to 4 levels deep
<hoelzro> Xeago: I liked the entry with the ray traced sphere where the code was circular
osccar has left #ruby [#ruby]
<Xeago> eastman?
<hoelzro> and increasing the size of the circle in the source would increase the size of the sphere in the program =)
<Xeago> _-_- ?
ananthakumaran has quit [Quit: Leaving.]
trevortwining has joined #ruby
<Xeago> is the site down now?
cburyta has joined #ruby
demian`_ has joined #ruby
kng has left #ruby [#ruby]
demian`__ has joined #ruby
15SACSVLC has quit [Quit: Linkinus - http://linkinus.com]
nwest has joined #ruby
ken_barber has quit [Remote host closed the connection]
lggr has joined #ruby
vitoravelino is now known as vitoravelino`afk
rlb3 has quit [Quit: rlb3]
mark_locklear has joined #ruby
demian`_ has quit [Ping timeout: 246 seconds]
demian`__ has quit [Client Quit]
<kapowaz> and just like that with no obvious reason, just as I'm about to add a ticket to 37signals’ github tracker, it starts working again.
<kapowaz> loaded up a vhost in chrome and suddenly it resolved. I assume it's Safari; go back and it's working there too
<kapowaz> fricking weird.
<Xeago> btw
<Xeago> safari6?
philcrissman has joined #ruby
wuzzzzaah has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
geekbri has joined #ruby
flype has joined #ruby
yshh has joined #ruby
sailias has joined #ruby
trevortwining has quit [Remote host closed the connection]
lchin has quit [Remote host closed the connection]
trevortwining has joined #ruby
wuzzzzaah has quit [Ping timeout: 256 seconds]
wuzzzzaah has joined #ruby
zommi has joined #ruby
lggr has joined #ruby
verto is now known as verto|off
arkiver has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
bananagram has joined #ruby
elico has quit [Quit: elico]
lkba has quit [Ping timeout: 268 seconds]
wuzzzzaah has quit [Ping timeout: 245 seconds]
philcrissman has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 244 seconds]
<Hanmac> Xeago about sourcecode ... my latest binding code (*.cpp + *.hpp) size is only 0.9% of the binding (*.so) size :D
wataken44 has quit [Remote host closed the connection]
omry has joined #ruby
nanderoo has joined #ruby
wataken44 has joined #ruby
<Xeago> when using activerecord inside an irb session I cannot get the sqlite3 adapter nor the mysql adapter to work
<Xeago> it directs me to gem install activerecord-[mysql|sqlite3]-adapter
<Xeago> which results in ERROR: could not find gem activerecord-sqlite3-adapter locally or in a repository
<Xeago> crap, that was supposed to be in another channel
bananagram has quit [Ping timeout: 246 seconds]
AndChat| has joined #ruby
ABK has quit [Read error: Connection reset by peer]
heisenmink has joined #ruby
AndChat- has joined #ruby
ABK has joined #ruby
RJ3000_ has joined #ruby
nohonor has quit [Quit: Leaving]
xyzodiac has joined #ruby
lggr has joined #ruby
bartj3 has quit []
vectorshelve has quit [Quit: Page closed]
Banistergalaxy has quit [Ping timeout: 248 seconds]
AndChat| has quit [Ping timeout: 252 seconds]
Guedes has quit [Remote host closed the connection]
heisenmink is now known as awestroke
zommi has quit [Ping timeout: 265 seconds]
bartj3 has joined #ruby
mohits has quit [Ping timeout: 252 seconds]
JustinCampbell has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
cakehero has joined #ruby
niklasb has joined #ruby
[Neurotic] has quit [Remote host closed the connection]
mikehoy has joined #ruby
deadghost has quit [Ping timeout: 246 seconds]
monkegjinni has quit [Remote host closed the connection]
lggr has joined #ruby
pu22l3r has joined #ruby
sailias has quit [Quit: Leaving.]
zommi has joined #ruby
schwap has quit [Ping timeout: 245 seconds]
alek_b has quit [Remote host closed the connection]
areil_ has quit []
areil has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
monkegjinni has joined #ruby
jasonkuhrt has joined #ruby
Neomex has joined #ruby
adambeynon has joined #ruby
sjkaliski has quit [Ping timeout: 252 seconds]
BdeUtra has joined #ruby
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
shiki has quit [Remote host closed the connection]
jasonkuhrt has quit [Ping timeout: 246 seconds]
Elhu has joined #ruby
lggr has joined #ruby
RJ3000_ has quit [Remote host closed the connection]
lledet has joined #ruby
Mon_Ouie has quit [Read error: No route to host]
pu22l3r has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
pu22l3r has joined #ruby
zommi has quit [Ping timeout: 265 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
mark_locklear has quit [Quit: Leaving]
lggr has quit [Ping timeout: 244 seconds]
bartj3 has quit []
ananthakumaran1 has joined #ruby
JustinCampbell has quit [Remote host closed the connection]
JustinCa_ has joined #ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
mikepack has joined #ruby
thone has joined #ruby
sepp2k has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
awestroke has quit [Remote host closed the connection]
linoj has joined #ruby
lkba has joined #ruby
krawchyk has joined #ruby
thone_ has quit [Ping timeout: 268 seconds]
Vainoharhainen has joined #ruby
lggr has joined #ruby
bartj3 has joined #ruby
elico has joined #ruby
tommyvyo has joined #ruby
zommi has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
jbw has quit [Ping timeout: 252 seconds]
Appineer has joined #ruby
uris has quit [Quit: leaving]
lggr has quit [Ping timeout: 248 seconds]
Nisstyre-laptop has quit [Ping timeout: 256 seconds]
Axsuul has quit [Ping timeout: 268 seconds]
love_color_text has joined #ruby
bobbbo has joined #ruby
zommi has quit [Ping timeout: 265 seconds]
mikepack has quit [Remote host closed the connection]
lchin has joined #ruby
jbw has joined #ruby
<bobbbo> Whats the best way to have a pointer to an int? So if i do p = oneOfManyPossible, then p = 10, I update oneOFMAnyPossible?
lggr has joined #ruby
<hoelzro> bobbbo: Ruby doesn't have pointers; what exactly are you trying to accomplish?
<bobbbo> trying to avoid redoing the logic that decides which var I'm updating
<bobbbo> so if (some condition) { p = thisInitialValue} else if { p = thisOtherOne } …. etc
<bobbbo> but I want updates in p to be reflected in the initial variable
<hoelzro> I see
<bobbbo> only way I know to do it in ruby is to shove them in an array and store the index, but that seems really, really, lame
<canton7> numbers are utterly immutable, I believe
Nathandim has quit [Quit: Leaving]
<bobbbo> I could of course re-do the logic, but trying to avoid that with wizardry
<hoelzro> indeed they are
lockweel has joined #ruby
lchin_ has joined #ruby
Guedes_out is now known as Guedes
lchin has quit [Ping timeout: 268 seconds]
Spooner has joined #ruby
halfie has joined #ruby
<bobbbo> cursed ruby, how nasty is doing if (condition) { index = index_to_oneOfManyPosible } .. and from then on just doing array[ index ] ?
metrix has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
<Hanmac> bobbo what are you trying todo? maybe each or each_with_index is better?
spopescu has joined #ruby
spopescu has left #ruby [#ruby]
<metrix> I am looking through the pathname object to find a way to recursively retrieve children, grand children, great grandchildren etc... of a directory, but I'm don't see a method to do this.. any suggestions?
ananthakumaran1 has quit [Ping timeout: 264 seconds]
PragCypher has quit [Ping timeout: 246 seconds]
bartj3 has quit []
<bobbbo> this sort of thing is what I'm trying to do :)
tatum_O_o has joined #ruby
jrist-afk is now known as jrist
<bobbbo> what I would do is store a reference to which variable it was, and the variable through that reference? Thus avoiding redoing the if logic
balboah has joined #ruby
<bobbbo> But i'm slowly deciding storing thisVar etc in an array is better any way, and will allow me to more easily get the behaviour I need
lateau has joined #ruby
<metrix> canton7: Thank you
trevortwining has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
ananthakumaran has joined #ruby
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
<Spooner> metrix or Dir.glob("bleh/**/*.frog").each might be simpler, depending on why you are recursing.
tatum_O_o has quit [Remote host closed the connection]
<Hanmac> Spooner Dir.glob has its own each
<Spooner> Hanmac: Ack, I always forget that - thanks!
xpen has joined #ruby
Appineer has quit [Remote host closed the connection]
<metrix> I am writing a quick script to change my working directory to a directory within my source code.. as an example: go lib would go to the first lib directory found
<Spooner> bobbbo : You probably want a case statement. p = case condition; when CONSTANT1 then thisVar; when CONSTANT2 then thisOtherVar; end
gfontenot has joined #ruby
a_a_g has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 256 seconds]
<Spooner> bobbbo : Not sure what you mean by the pseudocode inside the loop.
lledet has quit [Quit: lledet]
uris has joined #ruby
<bobbbo> just reading about the whole object returning nature of the case :)
<bobbbo> but body of loop can simply be
lledet has joined #ruby
<bobbbo> array.each do | t |
lledet has quit [Client Quit]
<bobbbo> p -= random(1,100)
<bobbbo> end
<bobbbo> for simplification purposes only, of course.
<bobbbo> but I want to update the variable that p originated from too
freeayu has quit [Remote host closed the connection]
<Spooner> What variable did p originate from?
<bobbbo> declared in the logic done by the if/case
vitoravelino`afk is now known as vitoravelino
<bobbbo> to allow me to semi-generically handle the host of different variables it could be
<bobbbo> btw thanks for the tip about the case, that's quite nice. Didn't know it could do that
arya_ has joined #ruby
<Spooner> Might even be easier to use a Hash if you have a lot of conditions and they are just mappings of constants to constants.
EvanR has joined #ruby
EvanR has quit [Changing host]
EvanR has joined #ruby
carloslopes has joined #ruby
mrdodo has quit [Ping timeout: 244 seconds]
* bobbbo nods
EvanR has left #ruby [#ruby]
binaryplease has joined #ruby
<bobbbo> if I was doing essentially, p = index_of_var in the if. then use hash[p] where I have p now..
lggr has joined #ruby
moshee has quit [Ping timeout: 246 seconds]
<Spooner> Not entirely sure of your use-case, but I think that if p can represent multiple real variables, you just put this into a method and return the value of p at the end. So you'd call it with this to alter the value: my_var = my_meth my_var
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
* bobbbo bangs his head on the desk
* bobbbo snuggles Spooner
<bobbbo> this is more like it !
zmbmartin has joined #ruby
AlbireoX has joined #ruby
<Spooner> No, I mean you would create a constant hash: MAPPING = { CONSTANT1 => thisVar, CONSTANT2 => thisOtherVar } and then, in the method: p = MAPPING[condition]
<bobbbo> not quite applicable to my current problem but that sort of thing is great :)
zmbmartin has left #ruby [#ruby]
<Spooner> Although it is useful to simplify your example in order to ask for help, it can make it a bit harder to make suggestions if it is entirely abstract.
<bobbbo> haha yea agreed :)
rakuN has joined #ruby
<Neomex> I've got something like this: scale(factor_x, factor_y, around_x, around_y, &rendering_code)
<Neomex> how exactly should i write rendering code
<Neomex> in {} brackets?
<Spooner> You would call scale(1, 1, 0, 0) { } yes
<Spooner> Neomex : Gosu?
<Neomex> yep
<lupine_85> well, rendering_code = lambda { ... } ; scale(..., &rendering_code)
<lupine_85> (also Proc.new { } or proc { } _
Nisstyre has quit [Ping timeout: 248 seconds]
<Spooner> There is a #gosu, by the way.
<Neomex> didnt knew, thanks
ltsstar has joined #ruby
<bobbbo> Spooner: hash is the answer.
<bobbbo> thank you :)
ewag has joined #ruby
<Spooner> lupine_85: Yeah, always suggest the least straightforward option first ;)
<bobbbo> (can you tell I don't get much time to play with Ruby, and spend most of my time playing with more archaic beasts?)
lggr has quit [Ping timeout: 246 seconds]
jrajav has joined #ruby
Virunga has joined #ruby
lchin_ has quit [Remote host closed the connection]
pskosinski has quit [Ping timeout: 276 seconds]
Virunga has quit [Remote host closed the connection]
ttt has quit [Remote host closed the connection]
binaryplease has quit [Quit: WeeChat 0.3.8]
lggr has joined #ruby
zommi has joined #ruby
TomJ has quit [Read error: Connection reset by peer]
ttt has joined #ruby
ttt has quit [Remote host closed the connection]
bbttxu has joined #ruby
skuul has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
awarner has joined #ruby
nilg has joined #ruby
Gonzih has quit [Quit: WeeChat 0.3.5]
nateberkopec has joined #ruby
Gonzih has joined #ruby
bartj3 has joined #ruby
phantasm66 has joined #ruby
Gonzih has quit [Client Quit]
zommi has quit [Ping timeout: 265 seconds]
PragCypher has joined #ruby
phantasm66 has quit [Client Quit]
Nisstyre has joined #ruby
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
love_color_text has quit [Remote host closed the connection]
stopbit has joined #ruby
axl_ has joined #ruby
amacgregor_osx has quit [Remote host closed the connection]
whitenoise has joined #ruby
lggr has joined #ruby
Gonzih has joined #ruby
ffranz has joined #ruby
ffranz has quit [Client Quit]
ffranz has joined #ruby
pricees has joined #ruby
elsifaka has quit [Read error: No route to host]
<m3pow> if i have an *.rb file with methods. how can i require that file into IRB so i can use those methods
flype has quit [Ping timeout: 252 seconds]
elsifaka has joined #ruby
lledet has joined #ruby
<hoelzro> m3pow: require?
<hoelzro> just require 'methods'
ph^ has quit [Ping timeout: 268 seconds]
<hoelzro> extension is not needed
<m3pow> ok
<m3pow> same thing
lggr has quit [Ping timeout: 268 seconds]
<fbernier> require_relative 'methods'
ken_barber has joined #ruby
<m3pow> cannot infer basepath
Gonzih has quit [Quit: WeeChat 0.3.5]
Gonzih has joined #ruby
<m3pow> does it have something to do with the path that' i'm in atm
<hoelzro> m3pow: try this before require:
<hoelzro> $:.push '.'
jrajav has quit []
<fbernier> run irb with irb -I
pricees_ has joined #ruby
<fbernier> irb -I .
<fbernier> with the dot
lggr has joined #ruby
joshman_ has joined #ruby
<m3pow> fbernier . that did the trick...
<m3pow> the result was "true" so i guess everything is OK
<fbernier> indeed it means it is
<m3pow> yep it works
<m3pow> thank you for the help, everybody
<m3pow> but what's the difference between a normal irb command and this one ?
ABK has quit [Read error: Connection reset by peer]
<hoelzro> m3pow: -I . does what I suggested, I believe
<hoelzro> it inserts the working directory into the load path
ABK has joined #ruby
<fbernier> m3pow: you might like to understand what it actually does to make it work
jasonkuhrt has joined #ruby
elux has joined #ruby
<fbernier> just what heolzro said :)
<fbernier> hoelzro*
<m3pow> understood
k610 has joined #ruby
<m3pow> so if i had ruby installed in the same dir as the folder with the methods that -i wouldn't have been necessary?
<k610> what does @var ||= "val" does ?
<bobbbo> initialise it to "val" if its not already got a value?
<k610> bobbbo: <3
<bobbbo> I think thats what it does at least :P
workmad3 has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 252 seconds]
<bobbbo> k610: :)
ken_barber has quit [Remote host closed the connection]
philcrissman has joined #ruby
metrix has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120905151427]]
<Spooner> You are right, bobbbo, but ||= also works if the value is undefined (which isn't mentioned in that blog :D). x = 12 if x.nil? will fail if x is undefined, but x ||= 12 will set x to 12 if it is nil or if it is undefined.
Nathandim has joined #ruby
* bobbbo nods
<bobbbo> super handy shorthand
<m3pow> hoelzro, how can i find the load path ?
<bobbbo> how does a value become undefined Spooner ?
<m3pow> that ruby uses
ttt has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<hoelzro> m3pow: puts $:
<hoelzro> $: contains the load path as an Array
lolmaus has quit []
dmiller has quit [Ping timeout: 244 seconds]
failshell has joined #ruby
<m3pow> thank you !
lggr has joined #ruby
<failshell> hello. can anyone tell me why this is not a valid URI: http://localhost:5984/titan/_design/hosts/_view/users?key=["root"]
enherit has quit [Read error: Connection reset by peer]
gmci has joined #ruby
<hoelzro> failshell: key=["root"], I'd key
<hoelzro> hello CouchDB =)
<hoelzro> s/key/say/
<failshell> yes couch hehe
<canton7> the indication is that that section is unspecified?
thunderstrike has joined #ruby
<failshell> bad URI(is not URI?):
<canton7> (as in, in the params bit, anything goes). so it's whatever restrictions your server's putting in place. and i'd quess the same as hoelzro
<Spooner> bobbbo : Well, I'm actually wrong in this. "z = 12 if z.nil?" _does_ work like "z ||= 12", but if you did just "y.nil?", it would complain that y is undefined.
zz_chrismcg is now known as chrismcg
fyolnish has joined #ruby
Banistergalaxy has joined #ruby
slimjimflim has joined #ruby
<hoelzro> so it's z = 12 unless defined(z) && !z.nil?
<hoelzro> right?
AndChat| has joined #ruby
<Xeago> why not z||=12 ?
monkegjinni has joined #ruby
SCommette has joined #ruby
<slimjimflim> anybody know where ruby logs live on centos?
<hoelzro> Xeago: I'm asking if z ||= 12 is equivalent to what I wrote =)
lupine_85 has quit [Changing host]
lupine_85 has joined #ruby
<hoelzro> slimjimflim: what Ruby program are you running?
lggr has quit [Ping timeout: 248 seconds]
<hoelzro> Ruby doesn't log things on its own
<slimjimflim> teamview...rails
jastix has joined #ruby
<slimjimflim> er redmine
<hoelzro> depends on your configuration, I suppose
<Spooner> hoelzro : No, it is z = 12 if !defined?(z) or z.nil? (oh, that is the inverse, isn't it...oops).
sailias has joined #ruby
<slimjimflim> so should i be looking for teamview logs or rails logs?
<failshell> do you use Passenger?
tagrudev has quit [Remote host closed the connection]
<Spooner> However, z = 12 if z.nil? works fine, even if z is undefined, and I do not understand why!
<slimjimflim> it's running the ruby webserver
<slimjimflim> started it with: ruby script/server -e production
pskosinski has joined #ruby
<Xeago> hoelzro: z||=12 equals if (!z) z=12
<hoelzro> Spooner: well, z = 12 if false brings z into existence in the current scope
<hoelzro> that's probably why
<hoelzro> Xeago: thanks
<Xeago> does an if scope it's contents?
AndChat- has quit [Ping timeout: 252 seconds]
<hoelzro> no
<Xeago> so z is accessible outside
<Xeago> ?
<hoelzro> Ruby's scope works along methods and blocks
<hoelzro> mhmm
<bobbbo> orly?
<hoelzro> yes
<hoelzro> rly =)
<bobbbo> :D
<Xeago> hoelzro: z=12 if (!z)
br4ndon has joined #ruby
ttt has quit [Ping timeout: 260 seconds]
Banistergalaxy has quit [Ping timeout: 268 seconds]
<Xeago> tho, the return value of (z=12 if(!z)) is different then z||=12 if z is already set
arkiver has quit [Quit: Leaving]
<Xeago> as z||=abc will always return a value
mmitchell has joined #ruby
ramblex has joined #ruby
lggr has joined #ruby
matthewrobbins has quit [Ping timeout: 244 seconds]
derpops has joined #ruby
und3f has quit [Quit: Leaving.]
Nathandim has quit [Remote host closed the connection]
<Spooner> 12 unless xx (error: undefined) unless yy; yy = 12; end; (error: undefined) zz = 12 unless zz (is fine). Some sort of oddness going on there! I believe it works like that, but I don't understand why the last version works.
<failshell> ah ah! URI.encore()
<failshell> s/encore/encode
* hoelzro wisehs URI.encore were real
<hoelzro> ugh
<hoelzro> *wishes
lggr has quit [Ping timeout: 252 seconds]
pricees has quit [Ping timeout: 245 seconds]
TomJ has quit [Quit: TomJ]
quest88_ has joined #ruby
internet_user has joined #ruby
pricees_ has quit [Ping timeout: 268 seconds]
TomJ has joined #ruby
TomJ has joined #ruby
TomJ has quit [Changing host]
lockweel has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120905151427]]
bluOxigen has quit [Ping timeout: 245 seconds]
k610 has quit [Ping timeout: 260 seconds]
jasonkuhrt has quit [Quit: Leaving...]
Mon_Ouie has joined #ruby
Agis__ has joined #ruby
GoGoGarrett has joined #ruby
chussenot_ has joined #ruby
Agis__ is now known as okeeee
lggr has joined #ruby
fredjean has joined #ruby
stuartrexking has joined #ruby
pricees has joined #ruby
pricees_ has joined #ruby
chussenot has quit [Ping timeout: 264 seconds]
chussenot_ is now known as chussenot
<bobbbo> is there a "best" way to find all rows from a database where a given column matches a wildcard string?
<Xeago> yuck
<hoelzro> bobbbo: a specific column?
<hoelzro> or any column?
<bobbbo> specific
<bobbbo> WHERE name LIKE Bo%
<hoelzro> selct * from table where column like 'pattern'
<Xeago> that's yucky
<bobbbo> so now to try use any fancy ruby.begins
<hoelzro> umm...
lggr has quit [Ping timeout: 252 seconds]
<hoelzro> sth = dbh.prepare 'select * from table where column like ?'; sth.execute pattern
<bobbbo> Is it just a yucky thing to do Xeago?
<Xeago> if you're doing wildcard search, it's most likely user input
<Xeago> right?
<Xeago> like a search for title's
<Xeago> or usernames
alek_b has joined #ruby
<bobbbo> something like that yea
Morkel has quit [Quit: Morkel]
<bobbbo> I'm just curious atm
<Xeago> you'll hammer your database server down
<bobbbo> mostly asking if its better to delegate directly to SQL, or try use some ruby wizardry
<Xeago> look at solr, sphinx, elasticsearch
<Xeago> don't use a db
_JamieD_ has joined #ruby
<hoelzro> Xeago: not if your tables are small/well indexed...
CodeFriar has quit [Quit: Linkinus - http://linkinus.com]
apok has joined #ruby
mohits has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
<hoelzro> bobbbo: I think it's a matter of taste
Chryson has joined #ruby
<hoelzro> some people like ORMs and such
<hoelzro> others prefer raw SQL
lggr has joined #ruby
* bobbbo nods
ABK has quit [Read error: Connection reset by peer]
lateau has quit [Remote host closed the connection]
<bobbbo> sounds about right
ABK has joined #ruby
ABK has quit [Read error: Connection reset by peer]
trevortwining has joined #ruby
zommi has joined #ruby
whitenoise has quit [Quit: Leaving]
<bobbbo> I always feel like I know what I want to do in SQL but should shape it to the ruby way
<bobbbo> which in truth is how I feel about most of my ruby stuff, as I'm so used to more old school methodologies
<Xeago> hoelzro: try doing this over a table which size spans ssd's :)
cody- has joined #ruby
asteve has joined #ruby
<Xeago> neways, off for today
<bobbbo> :) bb thx for the help
Xeago_ has joined #ruby
davidcelis has quit [Quit: K-Lined.]
cody- has quit [Client Quit]
lggr has quit [Ping timeout: 260 seconds]
Xeago_ has quit [Remote host closed the connection]
arkiver has joined #ruby
failshell has quit [Quit: Lost terminal]
johnlcox has joined #ruby
xyzodiac has joined #ruby
zommi has quit [Ping timeout: 265 seconds]
monkegjinni has quit [Remote host closed the connection]
Nathandim has joined #ruby
workmad3 has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
bartj3 has quit []
senny has quit [Remote host closed the connection]
jprovazn has quit [Quit: Leaving]
stuartrexking has quit [Quit: Leaving...]
quest88_ has quit [Quit: quest88_]
himsin has joined #ruby
Neil_ has joined #ruby
dekroning has joined #ruby
senny has joined #ruby
futini__ has joined #ruby
<dekroning> I'm getting a "uninitialized Constant" error, when passing a class as argument. Now I would like to see how this object instantiates the class, so I was wondering if there was a way to really see the arguments being passed into a method? because my stack trace isn't showing this
<dekroning> do I need to use ruby-debug to be able to get down at that level?
<workmad3> dekroning: is it possible that the class (that I assume you're referencing by name?) hasn't been initialized at the point you're calling the method?
savage- has joined #ruby
deryl has quit [Quit: Leaving.]
cody-- has joined #ruby
rippa has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
davidcelis has joined #ruby
deryl has joined #ruby
banisterfiend` has joined #ruby
mrdodo has joined #ruby
<dekroning> workmad3: yeah it might be indeed, it's happing in cucumber though, so it should "afaik" require all files under features/ folder
moshee has quit [Ping timeout: 248 seconds]
lggr has joined #ruby
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
lupine_85 has quit [Ping timeout: 260 seconds]
gregorg_taf has joined #ruby
davidcelis has quit [Client Quit]
gregorg has quit [Read error: Connection reset by peer]
<dekroning> btw in my gem search I see 3 version: ruby-debug, ruby-debug19 and ruby-debug193 since i'm using ruby version 1.9.3 do I need to use ruby-debug193 ?
maesbn has quit [Remote host closed the connection]
maesbn has joined #ruby
Banistergalaxy has joined #ruby
xaq has quit [Remote host closed the connection]
hsbt is now known as hsbt_away
Chryson has quit [Ping timeout: 245 seconds]
joephlius has quit [Quit: WeeChat 0.3.8]
ph^ has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
apok has quit [Read error: Connection reset by peer]
xyzodiac has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 256 seconds]
apok has joined #ruby
AndChat| has quit [Ping timeout: 268 seconds]
Synthead has joined #ruby
Banistergalaxy has quit [Ping timeout: 252 seconds]
maesbn has quit [Ping timeout: 252 seconds]
skuul has quit [Quit: So long and thanks for all the fish]
skogis has quit [Remote host closed the connection]
mohits has quit [Read error: Connection reset by peer]
mohits_ has joined #ruby
bier has quit [Quit: Ex-Chat]
chrisbolton has joined #ruby
blendedbychris has joined #ruby
blendedbychris has quit [Changing host]
blendedbychris has joined #ruby
lggr has joined #ruby
justinmcp has quit [Remote host closed the connection]
<fir_ed> What was the command to find the parent class of a class?
PragCypher has quit [Read error: Connection reset by peer]
justinmcp has joined #ruby
<zipkid> super?
<hoelzro> class.superclass?
PragCypher has joined #ruby
arkiver has quit [Ping timeout: 245 seconds]
beneggett has joined #ruby
<dekroning> is it also possible perhaps to use pry? to see which arguments are passed into a method?
<Spooner> zipkid : #super calls the method of the same name in the parent class.
savage- has quit [Remote host closed the connection]
gregorg_taf has quit [Changing host]
gregorg_taf has joined #ruby
gregorg_taf is now known as gregorg
gregorg has quit [Read error: Connection reset by peer]
gregorg has joined #ruby
gregorg has quit [Changing host]
gregorg has joined #ruby
arkiver has joined #ruby
ph^ has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 264 seconds]
lupine_85 has joined #ruby
cody-- has quit [Quit: node-irc says goodbye]
cody-- has joined #ruby
ph^ has joined #ruby
ttt has joined #ruby
<bobbbo> is their a better way to do debug printing than : puts "blah" if debug
ph^ has quit [Remote host closed the connection]
lggr has joined #ruby
hoelzro is now known as hoelzro|away
ph^ has joined #ruby
ph^ has quit [Read error: Connection reset by peer]
<bobbbo> like make a function dputs that does the check in there etc?
<Spooner> bobbbo : You can use logger/log4r to have better control over logging. You might also find pry useful for breaking into your program at a point so you can inspect it (binding.pry)
<Spooner> With log4r, you'd use: info "bleh" or debug "bleh" and set the logging level globaly.
ph^ has joined #ruby
xyzodiac has joined #ruby
ph^ has quit [Remote host closed the connection]
<bobbbo> hmm nice :)
cody-- has quit [Client Quit]
ph^ has joined #ruby
cody- has joined #ruby
ph^ has quit [Remote host closed the connection]
<Spooner> Or, to directly answer your question: def debug(value); p "DEBUG: #{value.inspect}" if $debug; end; $debug = true
PapaSierra has joined #ruby
ttt has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 245 seconds]
<Spooner> Oops def debug(value); puts "DEBUG: #{value.inspect}" if $debug; end; $debug = true
chrishunt has quit [Ping timeout: 264 seconds]
stuartrexking has joined #ruby
xyzodiac has quit [Client Quit]
ph^ has joined #ruby
hsbt_away is now known as hsbt
ph^ has quit [Remote host closed the connection]
<Spooner> When I want a quick debug output, I generally just use: p value (so I can search for " p " to remove them; since all lines are run in Ruby, it is bad form to leave debug messages in Ruby code, unlike, say, if you use the C preprocessor to selectively add them to compilation).
xyzodiac has joined #ruby
xaq has joined #ruby
answer_42 has joined #ruby
xyzodiac has quit [Remote host closed the connection]
ph^ has joined #ruby
JohnBat26 has quit [Ping timeout: 246 seconds]
ph^ has quit [Remote host closed the connection]
ken_barber has joined #ruby
ken_barber has quit [Remote host closed the connection]
ken_barber has joined #ruby
aganov has quit [Quit: aganov]
diegoviola has joined #ruby
WhereIsMySpoon has quit [Changing host]
WhereIsMySpoon has joined #ruby
lggr has joined #ruby
stuartrexking has quit [Client Quit]
carloslopes has quit [Quit: Leaving.]
cj3kim has quit [Quit: This computer has gone to sleep]
apok has quit [Ping timeout: 246 seconds]
tds has joined #ruby
<tds> join mcgill
beneggett has quit [Quit: Computer has gone to sleep.]
chussenot has quit [Quit: chussenot]
statarb3 has quit [Quit: Leaving]
jasonkuhrt has joined #ruby
cody- has left #ruby [#ruby]
lggr has quit [Ping timeout: 246 seconds]
flype has joined #ruby
chussenot has joined #ruby
ctp has joined #ruby
johnlcox has quit [Ping timeout: 256 seconds]
cody-- has joined #ruby
bluenemo has quit [Read error: Connection reset by peer]
rakuN has quit [Ping timeout: 246 seconds]
cody-- has quit [Client Quit]
br4ndon has quit [Ping timeout: 244 seconds]
cody-- has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<bobbbo> sorry for slight delay, but thanks Spooner :)
jasonkuhrt has quit [Ping timeout: 264 seconds]
beneggett has joined #ruby
Bosma has joined #ruby
<bobbbo> that's essentially what I was going to do. As you say I normally relay on macro hacks and pre processor :p
nat2610 has joined #ruby
lggr has joined #ruby
jjbohn has joined #ruby
cody-- has quit [Remote host closed the connection]
sKeiths has joined #ruby
mrdodo_ has joined #ruby
fredjean has quit [Ping timeout: 252 seconds]
<Spooner> bobbbo : It is more usual to use TDD/BDD to avoid the need for this sort of tracing (though I still use it plenty :D).
<bobbbo> Ye on my todo list is to move to a more TDD ruby dev cylce
<bobbbo> but I only really get chance to use ruby when I'm hacking around at home :p
<bobbbo> mostly Fortran/C++ at work
<Hanmac> Spooner & bobbbo: there is a $DEBUG variable which is true when ruby is called with -d
<bobbbo> (woo Fortran)
<bobbbo> hmm
<chrisbolton> Off the top of your head does anyone know the method to remove duplicates in an array?
wallerdev has joined #ruby
<canton7> uniq ?
<bobbbo> .uniw
<Hanmac> chrisbolton: uniq and uniq!
mrdodo has quit [Ping timeout: 260 seconds]
<bobbbo> ye
<chrisbolton> Awesome. Thanks everyone.
<bobbbo> chrisbolton: you don't happen to be from Bristol do you..?
_JamieD_ has quit [Quit: _JamieD_]
<chrisbolton> bobbbo: Nope. Southern California.
<bobbbo> phew ^_^
<bobbbo> I'm sure it's much nicer there too
lggr has quit [Ping timeout: 245 seconds]
<chrisbolton> Today is going to be a gorgeous day.
dr_bob has quit []
<bobbbo> thanks for pointing -d out Hanmac
Synthead has quit [Ping timeout: 244 seconds]
peteyg_ has joined #ruby
billycravens has quit [Quit: Leaving...]
fredjean has joined #ruby
dekroning has quit [Ping timeout: 256 seconds]
mahmoudimus has joined #ruby
* lupine_85 learns how to do hot code patches in ruby
<lupine_85> Do Not Recommend
savage- has joined #ruby
arkiver has quit [Ping timeout: 246 seconds]
xpen has quit [Remote host closed the connection]
balboah has quit [Quit: balboah]
jso has joined #ruby
lggr has joined #ruby
jso has quit [Client Quit]
rjmt_ has quit [Read error: Connection reset by peer]
rjmt_ has joined #ruby
stuartrexking has joined #ruby
<bobbbo> is that ever that much fun? :D
rakuN has joined #ruby
<bobbbo> right, I'm off for now, thanks for the help all :)
philcrissman has quit [Remote host closed the connection]
<banisterfiend> bobbbo no problem, glad to be of assisstance
apok has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
ctp_ has joined #ruby
cody-- has joined #ruby
ctp- has joined #ruby
TomJ has quit [Ping timeout: 252 seconds]
ctp- has quit [Client Quit]
Iszak has quit [Quit: User has gone to sleep.]
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
apok has quit [Remote host closed the connection]
cburyta has quit [Remote host closed the connection]
apok has joined #ruby
meskyanichi has quit [Quit: Linkinus - http://linkinus.com]
nwest has quit [Quit: Computer has gone to sleep.]
stopbit_ has joined #ruby
stopbit has quit [Read error: Connection reset by peer]
hadees has quit [Quit: hadees]
zommi has joined #ruby
garndt has joined #ruby
lggr has joined #ruby
ctp has quit [Ping timeout: 244 seconds]
ph^ has joined #ruby
ctp_ has quit [Ping timeout: 260 seconds]
skogis has joined #ruby
SCommette_ has joined #ruby
hbpoison has joined #ruby
h4mz1d has joined #ruby
jso has joined #ruby
mrdodo_ has quit [Remote host closed the connection]
tatum_O_o has joined #ruby
cascalheir has joined #ruby
gqlewis has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
SCommette has quit [Ping timeout: 256 seconds]
SCommette_ is now known as SCommette
joeycarmello has joined #ruby
gqlewis has quit [Remote host closed the connection]
maletor has joined #ruby
cascalheira has quit [Ping timeout: 244 seconds]
davidcelis has joined #ruby
Iszak has joined #ruby
deadghost has joined #ruby
banisterfiend` has quit [Remote host closed the connection]
lggr has joined #ruby
arya_ has quit []
cylence has joined #ruby
ewag has quit [Ping timeout: 248 seconds]
arya_ has joined #ruby
Iszak has quit [Client Quit]
notVert has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 256 seconds]
zommi has quit [Ping timeout: 265 seconds]
demian`_ has joined #ruby
demian`_ has quit [Client Quit]
hadees has joined #ruby
futini__ has quit [Ping timeout: 244 seconds]
bobbbo has quit [Quit: bobbbo]
Synthead has joined #ruby
chrishunt has joined #ruby
<cylence> Does anyone know what the channel for Rocky Mountain Ruby is?
mrdodo has joined #ruby
blazes816 has joined #ruby
bier has joined #ruby
Foxandxss has joined #ruby
ttt has joined #ruby
Eldariof18-ru has quit [Ping timeout: 248 seconds]
cylence has quit [Quit: Linkinus - http://linkinus.com]
cylence has joined #ruby
lggr has joined #ruby
jimeh has quit [Ping timeout: 244 seconds]
moted has joined #ruby
haxrbyte_ has quit [Ping timeout: 260 seconds]
xnm has quit [Ping timeout: 244 seconds]
mrdodo has quit [Remote host closed the connection]
ttt has quit [Ping timeout: 240 seconds]
philcrissman has joined #ruby
chrismcg is now known as zz_chrismcg
shevy2 has joined #ruby
voodoofish430 has joined #ruby
cj3kim has joined #ruby
frogstarr78 has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
rakuN has quit [Ping timeout: 246 seconds]
sepp2k1 has joined #ruby
shevy has quit [Read error: Operation timed out]
Nathandim has quit [Quit: Leaving]
sepp2k has quit [Ping timeout: 246 seconds]
nga4 has quit [Ping timeout: 246 seconds]
adeponte has joined #ruby
cylence has quit [Quit: Leaving...]
chimay has joined #ruby
khakimov has joined #ruby
lggr has joined #ruby
blazes816 has quit [Quit: blazes816]
jasonkuhrt has joined #ruby
Speed has quit [Remote host closed the connection]
blazes816 has joined #ruby
gilesw has quit [Quit: gilesw]
Criztian has quit [Remote host closed the connection]
notVert has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
Chryson has joined #ruby
trevortwining has quit [Remote host closed the connection]
jasonkuhrt has quit [Ping timeout: 264 seconds]
trevortwining has joined #ruby
DrShoggoth has joined #ruby
mrdodo has joined #ruby
IrishGringo has joined #ruby
ncr100 has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
tvw has quit [Remote host closed the connection]
mucker has quit [Quit: leaving]
TomJ has quit [Quit: TomJ]
stephenjudkins has joined #ruby
artOfWar_ has joined #ruby
cylence has joined #ruby
artOfWa__ has joined #ruby
Eiam has joined #ruby
eignerchris has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
adeponte has quit [Remote host closed the connection]
stephenjudkins has quit [Client Quit]
artOfWar_ has quit [Ping timeout: 244 seconds]
adeponte has joined #ruby
RegEchse has joined #ruby
chussenot has quit [Quit: chussenot]
imami|afk is now known as banseljaj
xaq has quit [Remote host closed the connection]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
h4mz1d has quit [Ping timeout: 246 seconds]
ken_barber has quit [Ping timeout: 268 seconds]
ken_barber1 has joined #ruby
cylence has left #ruby ["Linkinus - http://linkinus.com"]
cj3kim has quit [Quit: This computer has gone to sleep]
luckyruby has quit [Remote host closed the connection]
senny has quit [Remote host closed the connection]
twoism has joined #ruby
mklappstuhl has joined #ruby
cj3kim has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has quit [Client Quit]
slicslak has joined #ruby
futini__ has joined #ruby
lggr has joined #ruby
a_a_g has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
ken_barber1 is now known as ken_barber
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
RegEchse has quit [Remote host closed the connection]
Vainoharhainen has quit [Quit: Leaving...]
Chryson has quit [Ping timeout: 256 seconds]
Banistergalaxy has joined #ruby
fredjean has quit [Read error: Connection reset by peer]
RegEchse has joined #ruby
tewecske has joined #ruby
tewecske has quit [Max SendQ exceeded]
GoGoGarrett has quit [Remote host closed the connection]
chussenot has joined #ruby
wallerdev has quit [Quit: wallerdev]
apok_ has joined #ruby
flype has quit [Ping timeout: 252 seconds]
lggr has quit [Ping timeout: 248 seconds]
gogiel has quit [Ping timeout: 260 seconds]
xaq has joined #ruby
linguini has joined #ruby
mrdodo has quit [Ping timeout: 246 seconds]
mrdodo_ has joined #ruby
apok has quit [Ping timeout: 245 seconds]
apok_ is now known as apok
<linguini> require "time"; # why is this necessary if time is part of the "ruby core"?
mikepack_ has joined #ruby
<davidcelis> it isn't
baphled has quit [Ping timeout: 268 seconds]
<linguini> puts Time.now.iso8601 # only works if I do require "time" ?
stuartrexking has quit [Quit: Leaving...]
fredjean has joined #ruby
ij has quit [Read error: Connection reset by peer]
slicslak has quit [Ping timeout: 256 seconds]
<davidcelis> => false
lggr has joined #ruby
<davidcelis> huh, you're right
<davidcelis> iso8601 must not be part of core, then
cj3kim has quit [Quit: This computer has gone to sleep]
Bosox20051 has joined #ruby
<linguini> So, "Time" is core, but some of its methods are not?
flype has joined #ruby
<davidcelis> which it isn't
<davidcelis> there's a stdlib Time that reopens Time and adds methods
ij has joined #ruby
stephenjudkins has joined #ruby
slicslak has joined #ruby
pskosinski has quit [Quit: Some alternative (not-controlled-by-fu*up-people) Red Eclipse servers: http://altred.tk/list]
<linguini> Are there other ways to get more methods in Time?
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
<linguini> I notice Time.now.w3cdtf # does not exist even with 'require "time"', though ri mentions it
stephenjudkins has quit [Read error: Connection reset by peer]
slicslak has quit [Client Quit]
guns has joined #ruby
alvaro_o has joined #ruby
<invisime> linguini: have you looked at strftime?
stephenjudkins has joined #ruby
<linguini> invisime: Yes, thanks. I'm mostly trying to understand how Ruby's "core" works.
<invisime> ah. look at source code then. it'll be helpful. :-)
<linguini> I happened to notice iso8601 was absent, though mentioned by 'ri'.
mklappstuhl has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 248 seconds]
<invisime> linguini: are you sure you're looking at the same version of code/documentation?
peteyg_ has quit [Ping timeout: 246 seconds]
c0rn_ has joined #ruby
internet_user has quit [Remote host closed the connection]
MasterIdler has joined #ruby
adamkittelson has joined #ruby
<linguini> invisime: No; I'm not positive. I am on gentoo and using what came with 'emerge'. But my comment on iso8601 above is definitely using the same version of ruby.
monkegjinni has joined #ruby
internet_user has joined #ruby
mrdodo_ has quit [Read error: Connection reset by peer]
c0rn_ has quit [Client Quit]
<invisime> linguini: you might try checking the versions manually.
blendedbychris has quit [Ping timeout: 246 seconds]
mrdodo has joined #ruby
Rydefalk has quit [Read error: Connection reset by peer]
<linguini> ri --version # ri 3.12
<Hanmac> w3cdtf is defined in rss
<linguini> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
nga4 has joined #ruby
cburyta has joined #ruby
<linguini> I have no idea how to relate the two.
Rydefalk has joined #ruby
<linguini> invisime: How can I find the source code for the core class "Time"?
cj3kim has quit [Quit: This computer has gone to sleep]
cburyta_ has joined #ruby
<Hanmac> apidock.com/ruby/Time/w3cdtf/class
c0rn_ has joined #ruby
lggr has joined #ruby
hbpoison has quit [Ping timeout: 252 seconds]
<invisime> linguini: if you installed from source on your machine, you've got a copy somewhere on your file system. (does emerge put the source in some consistent location?) otherwise, there are various version available for viewing online.
fredjean has quit [Ping timeout: 245 seconds]
<davidcelis> linguini: Do you know C?
c0rn_ has quit [Client Quit]
<linguini> davidcelis: yes.
<davidcelis> linguini: https://github.com/ruby/ruby
<linguini> davidcelis: Thanks.
escobera has joined #ruby
cburyta has quit [Ping timeout: 252 seconds]
peteyg_ has joined #ruby
escobera has left #ruby [#ruby]
yshh has quit [Remote host closed the connection]
mrdodo has quit [Remote host closed the connection]
bricker has joined #ruby
<linguini> ruby -e 'require "rss"; puts Time.now.w3cdtf' # works
gogiel has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
<GeekOnCoffee> hint: that's doing it wrong
tommyvyo has joined #ruby
mrsolo has joined #ruby
<linguini> Hmm. What's the right way?
<GeekOnCoffee> not including an rss library if you're not doing rss ;)
<linguini> Hmm. So apparently, what I'm really investigating is 'ri'.
deadghost has quit [Ping timeout: 268 seconds]
deadghost has joined #ruby
<linguini> And it seems that ri, on my system, tells me of methods that do only exist given certain "require", though it makes no mention of this.
tyfighter has joined #ruby
carloslopes has joined #ruby
<linguini> Perhaps the Time class is particularly prone to this (?).
ttt has joined #ruby
<linguini> Maybe I should extend Time myself. def hhmm ; strftime("%H:%M") ; end
jrist is now known as jrist-mtg
lggr has joined #ruby
eldariof has joined #ruby
samflores has joined #ruby
<invisime> linguini: yeah, something like that might be most correct.
joeycarmello has quit [Remote host closed the connection]
gmci has quit [Quit: Computer has gone to sleep.]
moted has quit [Remote host closed the connection]
Smoth has joined #ruby
mrdodo has joined #ruby
schwap has joined #ruby
billycravens has joined #ruby
cj3kim has joined #ruby
havenn has joined #ruby
cody-- has quit [Remote host closed the connection]
ttt has quit [Ping timeout: 260 seconds]
znow has joined #ruby
<znow> hey, how can I generate a range that goes from 450 to 1100 and jumps by 50? so 450, 500, 550 etc
mmitchell has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 245 seconds]
<Mon_Ouie> Use Range#step
moted has joined #ruby
<davidcelis> Mon_Ouie: i hate it when you're in here, you answer right as i'm typing mine in
<Smoth> Hello #ruby ! I'm in the needing of doing some http requests, so i've figured out to use the URI object like http://sprunge.us/RJZd but modifying the uri object dosen't work, so maybe someone knows the correct idiom
phinfonet has joined #ruby
tatum_O_o has quit [Remote host closed the connection]
timmow has quit [Quit: is having a nap]
ananthakumaran has quit [Quit: Leaving.]
adeponte has quit [Remote host closed the connection]
RJ3000_ has joined #ruby
rbwsam has joined #ruby
IrishGringo has quit [Remote host closed the connection]
adeponte has joined #ruby
pskosinski has joined #ruby
<Hanmac> znow & Mon_Ouie & davidcelis: Numeric has step too: 450.step(1100,50) {|e| p e}
<znow> Hanmac: <3
<znow> Hanmac: thanks
mroh_ is now known as mroh
<havenn> znow: Or you could stubbornly refuse to #step: (9..22).map { |n| n * 50 }
rbwsam has quit [Quit: Leaving.]
rbwsam has joined #ruby
<znow> havenn: thanks
lggr has joined #ruby
c0rn_ has joined #ruby
arya__ has joined #ruby
riley526 has joined #ruby
arya_ has quit [Ping timeout: 246 seconds]
phinfonet has quit [Quit: Linkinus - http://linkinus.com]
carloslopes has quit [Quit: Leaving.]
topriddy has joined #ruby
carloslopes has joined #ruby
rubious has joined #ruby
mohits has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits_ has quit [Ping timeout: 248 seconds]
jdripper has quit [Quit: Leaving.]
Nisstyre has quit [Ping timeout: 264 seconds]
chimay has quit [Ping timeout: 246 seconds]
blendedbychris has joined #ruby
blendedbychris has joined #ruby
blendedbychris has quit [Changing host]
wallerdev has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
awarner has quit [Ping timeout: 240 seconds]
jastix has quit [Quit: Leaving]
stephenjudkins has quit [Quit: stephenjudkins]
vitoravelino is now known as vitoravelino`afk
awarner has joined #ruby
ramblex has quit [Remote host closed the connection]
jrajav has joined #ruby
lggr has joined #ruby
fantazo has joined #ruby
mrdodo has quit [Remote host closed the connection]
panpainter has joined #ruby
znow has quit [Quit: Page closed]
internet_user has quit [Remote host closed the connection]
GoGoGarrett has joined #ruby
samflores is now known as samflores|away
lggr has quit [Ping timeout: 240 seconds]
stephenjudkins has joined #ruby
topriddy has left #ruby [#ruby]
nwest has joined #ruby
GoHuyGo has joined #ruby
internet_user has joined #ruby
lggr has joined #ruby
keppy has joined #ruby
Nisstyre has joined #ruby
xaq has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
macmartine has joined #ruby
krawchyk_ has joined #ruby
mikeg has joined #ruby
DrShoggoth has quit [Quit: Leaving]
idletom has joined #ruby
savage-_ has joined #ruby
headius has joined #ruby
Spooner has quit [Ping timeout: 244 seconds]
krawchyk has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 260 seconds]
bluenemo has quit [Remote host closed the connection]
mrdodo has joined #ruby
wallerdev has quit [Quit: wallerdev]
dekroning has joined #ruby
samflores|away is now known as samflores
blendedbychris1 has joined #ruby
blendedbychris has quit [Ping timeout: 252 seconds]
trevortwining_ has joined #ruby
jjbohn has quit [Quit: Leaving...]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
savage- has quit [Ping timeout: 248 seconds]
mrdodo has quit [Remote host closed the connection]
bondar has joined #ruby
cody-- has joined #ruby
apok has quit [Remote host closed the connection]
gmci has joined #ruby
trevortwining has quit [Ping timeout: 245 seconds]
trevortwining_ is now known as trevortwining
apok has joined #ruby
blendedbychris has joined #ruby
blendedbychris has quit [Changing host]
blendedbychris has joined #ruby
jjbohn has joined #ruby
PragCypher has quit [Read error: Connection reset by peer]
lggr has joined #ruby
xanaru has joined #ruby
PragCypher has joined #ruby
mikepack has joined #ruby
blendedbychris1 has quit [Ping timeout: 245 seconds]
Nathandim has joined #ruby
mikepack_ has quit [Ping timeout: 245 seconds]
baphled has joined #ruby
workmad3 has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
liktoj has quit [Remote host closed the connection]
trevortwining has quit [Quit: trevortwining]
baphled has quit [Ping timeout: 264 seconds]
chrisja has joined #ruby
mikepack has quit [Remote host closed the connection]
trevortwining has joined #ruby
mikepack has joined #ruby
baphled has joined #ruby
adeponte has quit [Remote host closed the connection]
schickung has joined #ruby
arya__ has quit [Ping timeout: 256 seconds]
adeponte has joined #ruby
RJ3000_ has quit []
xanaru has quit [Remote host closed the connection]
vitoravelino`afk is now known as vitoravelino
lggr has joined #ruby
c0rn_ has quit [Quit: Lates.]
mikepack has quit [Ping timeout: 244 seconds]
techhelp has joined #ruby
joelsbeard has joined #ruby
ukd1 has joined #ruby
ckrailo has joined #ruby
mohits has quit [Read error: Connection reset by peer]
jerrad has joined #ruby
arya_ has joined #ruby
c0rn_ has joined #ruby
brjannc has joined #ruby
brjannc has quit [Remote host closed the connection]
sn0wb1rd has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
lggr has quit [Ping timeout: 246 seconds]
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
havenn has joined #ruby
dmnd has joined #ruby
dmnd has quit [Changing host]
dmnd has joined #ruby
stkowski has joined #ruby
ttt has joined #ruby
jerrad_ has joined #ruby
<GoHuyGo> I'm working on a daily problem where you calculate when the best time to sleep is based on an input time of when you want to wake up
lggr has joined #ruby
<GoHuyGo> shoudl I create an array
<GoHuyGo> and find all the 90m intervals
<GoHuyGo> going backwards
jgrevich has joined #ruby
cj3kim has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
Advocation has joined #ruby
jerrad has quit [Ping timeout: 256 seconds]
ttt has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 264 seconds]
jgarvey has joined #ruby
jerrad_ has quit [Remote host closed the connection]
d3vic3 has joined #ruby
jerrad has joined #ruby
dekronin1 has joined #ruby
parzo has quit [Ping timeout: 260 seconds]
arya_ has joined #ruby
Virunga has joined #ruby
adeponte has quit [Remote host closed the connection]
arya_ has quit [Client Quit]
horofox has quit [Quit: horofox]
dekroning has quit [Ping timeout: 246 seconds]
Bosox20051 has quit [Quit: Leaving]
lggr has joined #ruby
cody-- has left #ruby [#ruby]
Spooner has joined #ruby
xaq has joined #ruby
thunderstrike has quit [Read error: Connection reset by peer]
brahman has joined #ruby
Dreamer3 has joined #ruby
thunderstrike has joined #ruby
<brahman> HI, I have writen a class contained within a module. This class needs access to a third party module. I am able o require the 3rd party module however when trying to use the constructor from this module the code errors with undefine constant.
<Spooner> brahman : Modules don't have constructors.
<brahman> what is the best practice for using 3rd party modules within your own classes
greg- has joined #ruby
<blazes816> GoHuyGo: how many intervals?
<brahman> Spooner: thanks, I understand the diff between modules and classes.
<Mon_Ouie> Also don't confuse files, modules and classes
<brahman> typo
lggr has quit [Ping timeout: 260 seconds]
<brahman> s/3rd party ,module/3rd party class/
<Spooner> Oh, sorry, you mean #initialize in the module masking the one in the class. Carry on :$
xorigin has joined #ruby
<brahman> let me see if I can write up an example...
rubious has quit [Quit: Leaving...]
verto|off is now known as verto
elaptics is now known as elaptics`away
dekroning has joined #ruby
<brahman> hopefully this explains it better than my 1st attempt: http://pastebin.com/uNtaXKPn
Targen has quit [Ping timeout: 268 seconds]
ianbrandt has joined #ruby
lggr has joined #ruby
<Spooner> You don't require in a scope. It is global.
ukd1 has quit [Quit: leaving]
<brahman> Spooner: Ah.
<Spooner> In the class you: include ThirdParty::Module
<brahman> Thanks
<brahman> Let me try this.
<brahman> I have been using ruby for 2 days now. it's really neat
Axsuul has joined #ruby
dmnd has quit [Quit: dmnd]
<Spooner> And in case it isn't just an error in the pastie, classes should be called Something, not something.
aantix has joined #ruby
dekronin1 has quit [Ping timeout: 246 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
krawchyk has joined #ruby
<Spooner> By 3rd-party module, do you mean a gem?
<brahman> Spooner: error in pastie...
doomMonkey has quit [Ping timeout: 264 seconds]
<brahman> Spooner: yes.
<Spooner> I guessed so, but not sure.
<brahman> in this case aws-sdk
<brahman> brb
dekronin1 has joined #ruby
dekronin1 has quit [Client Quit]
Goles has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
Synthead has quit [Read error: Connection reset by peer]
mark_locklear has joined #ruby
okeeee has quit [Quit: okeeee]
wallerdev has joined #ruby
<Spooner> Yeah, you just require 'aws-sdk' somewhere, usually at the top of the file (out of any scopes). Not sure why you are getting that error though, but I'd look at the line that error comes from, of course.
dekronin1 has joined #ruby
<brahman> back
krawchyk_ has quit [Ping timeout: 260 seconds]
dekronin1 has quit [Client Quit]
<GoHuyGo> blazes816: 90m intervals
<brahman> Going to take a closer look
theRoUS has quit [Remote host closed the connection]
<GoHuyGo> Here's my thinking
<GoHuyGo> if someone enters 6:15 AM
<GoHuyGo> I would parse the information
<GoHuyGo> if PM then add 12
cascalheir has quit [Quit: Linkinus - http://linkinus.com]
<GoHuyGo> and then subtract 90m interval and save into an array
m3pow has quit [Remote host closed the connection]
<Spooner> How you use the gem rather depends on the gem (beyond just requiring it). Look at the documentation for it.
dekroning has quit [Ping timeout: 256 seconds]
rubious has joined #ruby
m3pow has joined #ruby
horofox has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
<brahman> Thanks Spooner, still not working but will dig deeper.
c0rn_ has quit [Quit: Computer has gone to sleep.]
flype has quit [Quit: Computer has gone to sleep.]
<havenn> GoHuyGo: What is important about 90 min intervals?
bluenemo has quit [Remote host closed the connection]
<Spooner> It is about the time it takes to cook a small giraffe in a hot oven.
<havenn> Spooner: Oh, I hate the sound of dying giraffes - so I'd do my clock like this: https://gist.github.com/3757702
lggr has joined #ruby
a_a_g has quit [Quit: Leaving.]
JonValt has joined #ruby
areil has quit [Remote host closed the connection]
<JonValt> (I'm a total n00b so be gentle with me) - I want to use something like Dir.chdir(ENV['APPDATA']) and include a subdirectory of that. Like the equivilent of %appdata%\Application. My obvious stupid kludges like Dir.chdir(ENV['APPDATA'],"/Application") don't work. Help?
tatum_O_o has joined #ruby
havenn has quit [Remote host closed the connection]
blendedbychris has quit [Quit: Leaving.]
<blazes816> Dir.chdir(File.join(ENV['APPDATA'], 'Application'))
<blazes816> JonValt^
<GoHuyGo> havenn: nothing really, it's just part of the problem
maletor has joined #ruby
<GoHuyGo> The human body goes through 90 minute sleep cycles during the night, and you feel more refreshed if you wake up at the end of a sleep cycle than if you wake up during a sleep cycle. The challenge is to make a program that takes a wake-up time and outputs the possible times to fall asleep so that you will wake up at the end of a sleep cycle.
<Spooner> havenn & GoHuyGo I'd use: @bedtime.strftime "Bedtime at %I:%M %p"
<JonValt> blazes816: thanks!
lggr has quit [Ping timeout: 264 seconds]
greg- has quit [Quit: Linkinus - http://linkinus.com]
greg has joined #ruby
<GoHuyGo> Spooner: how do I parse that info during gets
<Spooner> GoHuyGo : Pity it isn't possible to exactly guess when you will actually fall asleep them.
<GoHuyGo> right now I have time = gets.chomp
<Spooner> GoHuyGo : That code is for outputting.
savage-_ has quit [Remote host closed the connection]
<GoHuyGo> Right now, my input would be something like 6:15 AM
jso has quit []
<GoHuyGo> Is there a way to convert this to time during input or do I have to parse it myself
savage- has joined #ruby
<GoHuyGo> I'm thinking about just breaking it down to three parts :6, 15, AM
<GoHuyGo> and if PM, add 12
<GoHuyGo> (basically convert to military time)
<GoHuyGo> do all my 90m subtractions
<Spooner> GoHuyGo : If you want to input it, a regexp probably makes sense: gets =~ "(\d+):(\d+) (A|P)M"; hour, minute, pm = $1.to_i, $2.to_i, $3 == "P"
idletom has quit [Ping timeout: 260 seconds]
<Spooner> Oops: gets =~ /(\d+):(\d+) (A|P)M/; hour, minute, pm = $1.to_i, $2.to_i, $3 == "P"
diegoviola has quit [Ping timeout: 256 seconds]
samflores is now known as samflores|away
deryl has quit [Quit: Leaving.]
slimjimflim has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120905151427]]
lggr has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
adeponte has joined #ruby
elico has quit [Remote host closed the connection]
ltsstar has quit [Remote host closed the connection]
cburyta has joined #ruby
elico has joined #ruby
<Spooner> Ah: time = DateTime.strptime(gets, '%I:%M %p').to_time
bondar has quit []
schickung has quit [Quit: schickung]
lggr has quit [Ping timeout: 244 seconds]
rbwsam has quit [Quit: Leaving.]
<Spooner> Though then you need to catch ArgumentError in case the user puts in a bad date. Mmm.
<Hanmac> if he want to use regexp he could try this: "6:15 AM".match(/(\d+):(\d+) (A|P)M/).captures
fredjean has joined #ruby
cburyta_ has quit [Ping timeout: 260 seconds]
<RubyPanther> Usually I say roll-your-own, but date/time parsing? I recommend not building that wheel from scratch.
<RubyPanther> Surely there is a round one already in the box
<Spooner> Yeah, I just posted the one in DateTime, RubyPanther
<GoHuyGo> Yeah, I'm trying to figure out how to use Datetime or Time directly
stkowski has quit [Quit: stkowski]
znow has joined #ruby
<Hanmac> this is cool too: /(?<hour>\d+):(?<minute>\d+) (?<pm>A|P)M/ =~ gets; p hour,minute,pm
deryl has joined #ruby
<znow> hey @stocks.map(&:date).strftime("%d/%m/%y") gives me an error about .strftime, so how can I pass out each date with the strftime?
<Spooner> znow : What's the error?
<znow> Spooner: ActionView::Template::Error (undefined method `strftime' for #<Array:0xbaebb44>)
<Spooner> Oh, right. Duh - you want:
Russell^^ has joined #ruby
cburyta has quit [Ping timeout: 245 seconds]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
<znow> Spooner: :p yeah I understand the error :p so I need the &:date to be with .strftime
jrist-mtg is now known as jrist
cburyta has joined #ruby
rbwsam has joined #ruby
<Spooner> @stocks.map {|d| s.date.strftime("%d/%m/%y") }
adeponte has quit [Remote host closed the connection]
<znow> Spooner: |d|?? or isnt it |s| ? ;)
<Spooner> YEs, sorry, typo.
lggr has joined #ruby
axl_ has quit [Quit: axl_]
cburyta has quit [Read error: Connection reset by peer]
emmanuelux has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
<znow> Spooner: thanks mate
stkowski has joined #ruby
cody-- has joined #ruby
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
allyraza has joined #ruby
troii has joined #ruby
zodiak has quit [Ping timeout: 272 seconds]
ttt has joined #ruby
tro11 has joined #ruby
<tro11> hi all
xorigin has quit [Quit: leaving]
lggr has quit [Ping timeout: 256 seconds]
<tro11> anyone here?
<horofox> where does my shared examples should go in rspec? (which file)
cakehero has quit [Quit: Computer has gone to sleep.]
CoverSlide has left #ruby [#ruby]
<troii> tro11 hi
<tro11> hi troii
* Hanmac is now known as no-one, and says to tro11: "no-noe is there"
<Spooner> Hi tro11 - just ask your question. There are 100s of people in here, who don't all need to say hello to everyone ;)
cakehero has joined #ruby
<allyraza> I have seen in lot of libs what exactly does it mean why do devs use underscore @_instance
<tro11> whats the closest to ajax for ruby?
<tro11> parse a restful rspec file into a class that can read xml in the matching format
Jay_Levitt has joined #ruby
<Mon_Ouie> allyraza: That may perhaps be used in a mixin that needs states, to avoid name conflicts (though mixins that have states aren't that great an idea in the first place)
adeponte has joined #ruby
ttt has quit [Ping timeout: 240 seconds]
<Mon_Ouie> In other contexts, it's pointless
samflores|away is now known as samflores
<allyraza> Mon_Ouie: I have seen it being used in classes
<tro11> whats the simplest way to map a formated xml file to a ruby class so it can be parsed, modified, and recreated etc?
<Hanmac> there are 230860 hello user comibnations: 680.times.to_a.combination(2).count
<troii> ruby guys, i think tro11 needs some help
<Hanmac> tro11 nokogiri is cool for xml parsing
chessguy has joined #ruby
<tro11> thanks Hanmac
cody-- has quit [Quit: node-irc says goodbye]
<troii> is that japanese?
<tro11> looks that way
lggr has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
banisterfiend has quit [Ping timeout: 246 seconds]
<brahman> Spooner: When I initalize the ec2 object, "ec2 = AWS::EC2.new" my program assumes that AWS::EC2.new is a submodule of my A module, ie A::AWS::EC2.new. How can I specify the top of the name space? ie no A:: before the AWS::EC2
<Hanmac> only the name
Synthead has joined #ruby
<tro11> does my name look strange here?
<brahman> Not sure if that makes any sense.
Emmanuel_Chanel has joined #ruby
<Spooner> brahman : The error isn't too clear. It looks for the constant, AWS::ECS in several places, both in the global scope and in the A module where the code is being run.
rubious has quit [Quit: Leaving...]
<Hanmac> tro11 i have seen more worse names than yours
<tro11> really?
<tro11> have any examples Hanmac?
cakehero has quit [Quit: Computer has gone to sleep.]
mrdodo has joined #ruby
<brahman> Mmm. Going to refactor from scratch in a more simple way. I think I got carried away... ;-)
fredjean has quit [Ping timeout: 246 seconds]
<Hanmac> "banisterfiend" is a nick you can be scared of
<Spooner> brahman : That class should be available if you have required the gem.
lggr has quit [Ping timeout: 264 seconds]
<tro11> I should use that name
doomMonkey has joined #ruby
<tro11> worst I saw was "stabnburn"
yalue has quit [Quit: Leaving]
<Spooner> Worst was whoever that gimp was who set up an echo bot in here the other day.
cburyta has joined #ruby
<tro11> robots are a category that goes beyond having a bad name
<RubyPanther> GoHuyGo: datetime = DateTime.parse gets
<brahman> Spooner: Ok, If I remove the modules it works as a class.
<brahman> I think I might be getting warmer...
<GoHuyGo> RubyPanther: I was able to enter the date as a DateTime using...
<GoHuyGo> time = DateTime.strptime(gets, '%I:%M %p').to_time
kirun has joined #ruby
<Spooner> RubyPanther's answer would allow the user more options on how to enter the time. That one I gave depends on an exact format.
delinquentme has joined #ruby
<delinquentme> this if !params[:site].nil? ... this is a Not nil?
<Muz> Yes.
<RubyPanther> There are also potential TZ issues if not specified in the input
<Spooner> i.e DateTime.parse "17:40" and DateTime.parse "5:40 PM" would work with #parse.
nwest has quit [Quit: Computer has gone to sleep.]
SCommette has quit [Quit: SCommette]
xclite has quit [Remote host closed the connection]
sepp2k1 has quit [Remote host closed the connection]
<troii> tro11 your name is not bad
<tro11> is this better than mynameisdeleted?
mikepack has joined #ruby
<troii> i dont think so
baphled has quit [Ping timeout: 245 seconds]
rubious has joined #ruby
greg has quit [Quit: Leaving...]
wmoxam_ has joined #ruby
cburyta has quit [Read error: Connection reset by peer]
lggr has joined #ruby
cburyta has joined #ruby
tr4656 has quit [Read error: Operation timed out]
<Spooner> delinquentme : There is a difference between if !params[:site].nil? and if params[:site] - the answer is different if the value is false.
linoj has quit [Ping timeout: 246 seconds]
cakehero has joined #ruby
cburyta has quit [Read error: Connection reset by peer]
cburyta has joined #ruby
mrdodo has quit [Read error: Connection reset by peer]
cj3kim has quit [Quit: This computer has gone to sleep]
cburyta has quit [Read error: Connection reset by peer]
Vinzgore has quit [Ping timeout: 245 seconds]
cburyta has joined #ruby
mrdodo has joined #ruby
<delinquentme> Spooner, so the first would eval as true and the second would eval as false
xaq has quit [Remote host closed the connection]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
* delinquentme dances ! ... hesitantly
chessguy has quit [Remote host closed the connection]
<delinquentme> yeah bc false != nil
mikepack has quit [Ping timeout: 240 seconds]
troii has left #ruby [#ruby]
<Spooner> Yep.
nanderoo has left #ruby [#ruby]
dmnd has joined #ruby
dmnd has quit [Changing host]
dmnd has joined #ruby
hoelzro|away is now known as hoelzro
lggr has quit [Ping timeout: 246 seconds]
schickung has joined #ruby
<brahman> Spooner: ok, so I had a clash in namespace AFAIK. my full namespace path was: CompanyName::AWS. So am assuming there was issues when I was requiring AWS::EC2 within CompanyName::AWS.
davidcelis has quit [Quit: K-Lined.]
davidcelis has joined #ruby
<brahman> Moved the namepsace to CompanyName::Cloud and it works as expected...
<brahman> Meh.
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
<brahman> Spooner: thanks for your help this evening.
robustus has quit [Quit: ZNC - http://znc.in]
cburyta has quit [Read error: Connection reset by peer]
cburyta has joined #ruby
mrdodo has quit [Remote host closed the connection]
etehtsea has joined #ruby
greg has joined #ruby
cburyta has quit [Read error: Connection reset by peer]
billycraven has joined #ruby
etehtsea is now known as Guest68455
cburyta has joined #ruby
Guest68455 is now known as etehtsea
AlbireoX`Laptop has joined #ruby
Guedes is now known as Guedes_out
PapaSierra has quit [Quit: PapaSierra]
AlbireoX has quit [Read error: Connection reset by peer]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Advocation has quit [Quit: Advocation]
zodiak has joined #ruby
specialGuest has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
cburyta has quit [Read error: Connection reset by peer]
cburyta_ has joined #ruby
billycravens has quit [Read error: Connection reset by peer]
ij has quit [Read error: Connection reset by peer]
lggr has joined #ruby
ij has joined #ruby
cburyta_ has quit [Read error: Connection reset by peer]
Emmanuel_Chanel has quit [Ping timeout: 248 seconds]
cburyta has joined #ruby
cburyta has quit [Read error: Connection reset by peer]
cburyta has joined #ruby
billycraven has quit [Ping timeout: 244 seconds]
schickung has quit [Quit: schickung]
schickung has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
xaq has joined #ruby
bradhe has joined #ruby
Criztian has joined #ruby
Neomex has quit [Quit: Neomex]
<GoHuyGo> do you guys know how to subtract minutes from datetime?
bluenemo has quit [Quit: Verlassend]
lggr has joined #ruby
baphled has joined #ruby
apeiros_ has joined #ruby
Bish_ is now known as Bish
flype has joined #ruby
samflores is now known as samflores|away
lggr has quit [Ping timeout: 245 seconds]
samflores|away is now known as samflores
robustus has joined #ruby
samflores has quit [Quit: Leaving...]
<RubyPanther> GoHuyGo: if you convert it to a Time then you can just subtract seconds
<Spooner> brahman : Ah, that would do it. You can, however, use ::AWS::EC2 to force it to use the AWS in the global namespace.
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
workmad3 has joined #ruby
<blazes816> GoHuyGo: DateTime.new(Time.now).to_time - (num_minutes * 60)
<GoHuyGo> RubyPanther: just figured it out :)
<GoHuyGo> blaze816 & RubyPanther: ty
<blazes816> np
c0rn_ has joined #ruby
guns has quit [Quit: guns]
mohits has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 244 seconds]
elux has quit [Quit: Bye!]
burgestrand has quit [Ping timeout: 244 seconds]
sagax has joined #ruby
lggr has joined #ruby
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
juarlex has quit [Remote host closed the connection]
schickung has quit [Quit: schickung]
tatum_O_o has quit [Remote host closed the connection]
Solnse has joined #ruby
wpaulson has joined #ruby
<wunz> i'm getting a type error when running this script on the latest ruby:
<wunz> .rvm/gems/ruby-1.9.3-p194/gems/crypt-1.1.4/crypt/blowfish.rb:47:in `|': can't convert String into Integer (TypeError)
<wunz> why is that?
lggr has quit [Ping timeout: 245 seconds]
<Hanmac> @key[keypos] returns a string on newer ruby
ttt has joined #ruby
joeycarmello has joined #ruby
jrajav has quit []
sailias has quit [Quit: Leaving.]
rippa has quit [Ping timeout: 264 seconds]
alphabitcity has joined #ruby
<alphabitcity> if i include a module from a class, how can i access the class name from the module?
juarlex has joined #ruby
elux has joined #ruby
ttt has quit [Ping timeout: 240 seconds]
jjbohn has quit [Remote host closed the connection]
jjbohn has joined #ruby
vitoravelino is now known as vitoravelino`afk
keppy_ has joined #ruby
<hoelzro> alphabitcity: why do you need to?
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
<davidcelis> alphabitcity: you probably want to check out the `self.included(klass)` callback
<wunz> ahhh
<alphabitcity> hoelzro: i have a method whose behavior depends on which class includes it
<wunz> Hanmac: whats best method of fixing that
lggr has joined #ruby
<hoelzro> alphabitcity: then what davidcelis said =)
<Hanmac> wunz: this works on both ruby versions: @key[keypos].ord
<wunz> let me test
<wunz> .help ord
keppy has quit [Ping timeout: 248 seconds]
c0rn_ has quit [Quit: Computer has gone to sleep.]
keppy_ has quit [Client Quit]
<alphabitcity> davidcelis: kind of weird that it's a callback?
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<blazes816> why?
<davidcelis> alphabitcity: no?
jso has joined #ruby
jbohn has joined #ruby
<alphabitcity> davidcelis: well to access the including class's name, i'd have to set it to a variable in the callback?
<davidcelis> yes?
<blazes816> alphabitcity: module Foo; def self.included(klass); puts klass.class.name; end; end; class Bar; include Foo; end
Elico1 has joined #ruby
krawchyk has quit [Remote host closed the connection]
<hoelzro> alphabitcity: or use define_method and friends
jbohn has quit [Remote host closed the connection]
<hoelzro> and close over the class name
jbohn has joined #ruby
mark_locklear has quit [Remote host closed the connection]
jjbohn has quit [Ping timeout: 246 seconds]
<blazes816> lexical scopez bro
<alphabitcity> hm interesting
maletor has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 240 seconds]
rakuN has joined #ruby
znow has quit [Ping timeout: 245 seconds]
idletom has joined #ruby
<Solnse> if anybody else here is interested, Berkeley is offering an online course (12 hours a week) for SaaS using RoR beginning Monday https://www.edx.org/courses/BerkeleyX/CS169.1x/2012_Fall/about I could use a study buddy :)
lggr has joined #ruby
diegoviola has joined #ruby
chussenot has quit [Quit: chussenot]
<davidcelis> Solnse: nice try, armando fox and/or david patterson
Elico1 has quit [Quit: Elico1]
elaptics`away is now known as elaptics
adamkittelson has quit [Ping timeout: 246 seconds]
Nathandim has quit [Quit: Leaving]
haxrbyte has joined #ruby
<davidcelis> "In general, we'll be using Rails 3.1 and Ruby 1.9.2"
<davidcelis> lmao
parzo has joined #ruby
maletor has joined #ruby
<Solnse> why is that funny?
<Solnse> it's better than usine 2.x RoR and 1.8 ruby
<Muz> It's better than a kick in the teeth too, so what? :p
pettsson_ has joined #ruby
<Solnse> help me understand... am I wasting my time?
<davidcelis> using 1.9.2 with rails == have fun with load times
<Muz> Not entirely.
<davidcelis> Solnse: nah, just dont listen to them and use 1.9.3 instead
cuppsy has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
<Solnse> i have 1.9.3 installed on my system... I don't think there's much difference syntactically
tatum_O_o has joined #ruby
<davidcelis> there isn't
philips_ has quit [Excess Flood]
<Solnse> you don't think those instructors are good? I saw some of the videos they did for the course when it was coursera, it looked good.
jgwong has joined #ruby
<GoHuyGo> thanks for the help guys
<GoHuyGo> got that little program to work :)
<GoHuyGo> Let me know if you guys would do anything differently
<davidcelis> Solnse: i know nothing of the professors
philips_ has joined #ruby
<apeiros_> GoHuyGo: you generate an array of 10 items of which you know you'll only use the last 5? o0
<GoHuyGo> I guess I can do
<GoHuyGo> +6
<GoHuyGo> :)
<GoHuyGo> 5.times do
<GoHuyGo> and then i+6
<apeiros_> or just (6..10).map
geekbri has quit [Remote host closed the connection]
wpaulson has joined #ruby
stuartrexking has joined #ruby
c0rn_ has joined #ruby
<apeiros_> or you could just not generate the array at all an yield directly from that method
<GoHuyGo> 5.times.(6..10).map do |i| ?
<apeiros_> def sleep_time(time) (6..10).map { |i| yield(i*90*60) } end
<apeiros_> urgs, not map, each…
<apeiros_> def sleep_time(time) (6..10).each { |i| yield(i*90*60) } end
<apeiros_> meh…
<apeiros_> forgot the time part :)
<GoHuyGo> waht does yield do
<apeiros_> def sleep_time(time) (6..10).each { |i| yield(time - (i*90*60)) } end
<apeiros_> it invokes the block
<apeiros_> then: sleep_time(time) do |time| puts time.strftime('%I:%M %p') end
<GoHuyGo> ahhh
jgwong has left #ruby [#ruby]
Guest64548 has quit [Quit: Guest64548]
c0rn_ has quit [Client Quit]
sneakyness_wk has joined #ruby
asteve has quit []
lggr has joined #ruby
jjbohn has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
awarner has quit [Remote host closed the connection]
trevortwining has quit [Quit: trevortwining]
<GoHuyGo> apeiros:
<GoHuyGo> def sleep_time time
<GoHuyGo> (6..10).each { |i|
<GoHuyGo> yield(time - i * 90 * 60)
<GoHuyGo> end
<GoHuyGo> }
Emmanuel_Chanel has joined #ruby
jbohn has quit [Ping timeout: 240 seconds]
rbwsam1 has joined #ruby
mrdodo has joined #ruby
shevy2 is now known as shevy
rbwsam has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 245 seconds]
carloslopes has quit [Quit: Leaving.]
snearch has joined #ruby
ffranz has quit [Quit: Leaving]
<apeiros_> like that, yes
mrdodo has quit [Remote host closed the connection]
<GoHuyGo> it's broken
<GoHuyGo> I'm trying to fix it
<GoHuyGo> getting no block given (yield) error
Neil_ has quit [Read error: Connection reset by peer]
jrist is now known as jrist-dogwalk
Neil_ has joined #ruby
<canton7> and you're passing a block?
lggr has joined #ruby
<apeiros_> GoHuyGo: the `then` part is essential
<apeiros_> 23:00 apeiros_: then: sleep_time(time) do |time| puts time.strftime('%I:%M %p') end
Criztian has quit [Ping timeout: 245 seconds]
<GoHuyGo> let me copy my code over
answer_42 has quit [Quit: WeeChat 0.3.8]
<apeiros_> hehe, no, the `then: ` was not meant to be part of the code ;-)
lggr has quit [Ping timeout: 264 seconds]
<GoHuyGo> :)
rubious has quit [Quit: Leaving...]
<GoHuyGo> even after I remove then
<GoHuyGo> I still get the error
<GoHuyGo> sleep_cycle.rb:5:in `block in sleep_time': no block given (yield) (LocalJumpError)
mmitchell has joined #ruby
snearch has quit [Quit: Verlassend]
internet_user has quit [Remote host closed the connection]
beneggett has quit [Quit: Computer has gone to sleep.]
stopbit_ has quit [Quit: Leaving]
tatum_O_o has quit [Remote host closed the connection]
jbohn has joined #ruby
<Hanmac> GoHuyGo the problem is your line 10
stopbit_ has joined #ruby
<apeiros_> Hanmac: um, no
<apeiros_> GoHuyGo: drop line 14
<apeiros_> no longer needed
stopbit_ is now known as stopbit
<GoHuyGo> aperios: ty :)
<GoHuyGo> stupid me
<GoHuyGo> kept trying to fix yield
<Hanmac> oh sorry it was 14 ... i need to goto hibernate
<apeiros_> GoHuyGo: hint, you can use tab completion for nicks in irc
<apeiros_> Hanmac: happens
<GoHuyGo> apeiros_: ty for protip :)
<GoHuyGo> and for the help on this
<GoHuyGo> learned quite a bit
<apeiros_> yw
Goles has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<GoHuyGo> now I have to build an app for my interview :(
<GoHuyGo> more work
shiki has joined #ruby
lggr has joined #ruby
jjbohn has quit [Ping timeout: 268 seconds]
d3vic3 has quit [Quit: leaving]
<GoHuyGo> I'll be bugging you guys again tmr on a new problem
cuppsy has quit [Quit: Leaving]
apeiros_ has quit [Remote host closed the connection]
pricees has quit [Quit: leaving]
horofox has quit [Quit: horofox]
Forevernade has joined #ruby
sailias has joined #ruby
Forevernade has quit [Remote host closed the connection]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 264 seconds]
lledet_ has joined #ruby
Solnse has quit [Ping timeout: 248 seconds]
banseljaj is now known as imami|afk
baphled has quit [Ping timeout: 245 seconds]
karakedi has joined #ruby
<Spooner> GoHuyGo : Will we be getting employed if you pass the interview or will it be you? :D
Solnse has joined #ruby
<GoHuyGo> Well, this app is a rails app
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
swarley has joined #ruby
<GoHuyGo> so hopefully, me :)
<CodeVision> how do i pass a single argument with spaces as command (argument) to Process.spawn?
<delinquentme> isnt there some double ## + string that highlights differently in ruby? I thought it was something like ##FIX THIS
AndChat| has joined #ruby
<delinquentme> ... yes I know this is per IDE / text editor
AndChat- has joined #ruby
<hoelzro> CodeVision: specify your command as an array rather than a string
lledet has quit [Ping timeout: 246 seconds]
lledet_ is now known as lledet
timonv has quit [Remote host closed the connection]
Elico1 has joined #ruby
dmiller has joined #ruby
pricees_ has quit [Ping timeout: 268 seconds]
<Elico1> anyone knows of a good regexp validator?
<davidcelis> Elico1: rubular.com
<CodeVision> hoelzro: yeah that's what i figured, but doesn't seem to work, guess im doing something wrong, ill experiment some more :)
dmiller has quit [Remote host closed the connection]
nga4 has quit []
ttt_ has joined #ruby
Banistergalaxy has quit [Ping timeout: 245 seconds]
karakedi has quit [Ping timeout: 240 seconds]
shiki has quit [Remote host closed the connection]
AndChat| has quit [Ping timeout: 268 seconds]
xyzodiac has joined #ruby
lggr has joined #ruby
hoelzro is now known as hoelzro|away
BigFatFatty has joined #ruby
gfontenot has quit []
Samanagh has joined #ruby
GoHuyGo has quit [Quit: Leaving]
lledet has quit [Read error: Connection reset by peer]
lledet has joined #ruby
Criztian has joined #ruby
Smoth has quit [Remote host closed the connection]
ttt_ has quit [Ping timeout: 260 seconds]
futini__ has quit [Quit: Lost terminal]
Chryson has joined #ruby
gnarmis has joined #ruby
gnarmis has left #ruby [#ruby]
wpaulson has joined #ruby
maletor has quit [Ping timeout: 252 seconds]
wpaulson has quit [Client Quit]
dakine has quit [Remote host closed the connection]
rakuN has quit [Quit: rakuN]
lggr has quit [Ping timeout: 264 seconds]
havenn has joined #ruby
maletor has joined #ruby
jroes has joined #ruby
sailias has quit [Quit: Leaving.]
<jroes> anyone have any hotel recommendations for rubyconf this year? looks like the grand hyatt is sold out on the last night, and there are no evening flights home for me
lggr has joined #ruby
ken_barber has quit [Remote host closed the connection]
stephenjudkins has joined #ruby
<alphabitcity> i included a module in a class — trying to figure out how to access the including class' name outside of an instance method .. in the instance methods defined in the module, i am able to do self.class.name. any ideas?
jimeh has joined #ruby
ken_barber has joined #ruby
parzo has quit [Quit: Leaving.]
yaymukund has joined #ruby
pettsson_ has quit [Remote host closed the connection]
<yaymukund> is there a better way to do this: https://gist.github.com/203163265a3072c3404e
<yaymukund> I'm in rails, if that helps
derpops has quit []
cj3kim has quit [Quit: This computer has gone to sleep]
<davidcelis> #rubyonrails
<davidcelis> anyway, just use find
Samanagh has quit [Remote host closed the connection]
<yaymukund> did you see the code? it's mostly not rails specific, so I felt it was more appropriate here
jroes has left #ruby [#ruby]
ken_barber has quit [Remote host closed the connection]
<davidcelis> array.find { |x| == el } || array.first
<yaymukund> oo ok, that's way better
maletor has quit [Ping timeout: 252 seconds]
joshman_ has quit [Ping timeout: 260 seconds]
ken_barber has joined #ruby
<yaymukund> well, a bit more verbose but it's ok
<yaymukund> ty
swarley has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 268 seconds]
bbttxu has quit [Quit: bbttxu]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
ken_barber has quit [Read error: Connection reset by peer]
cburyta has quit [Remote host closed the connection]
ken_barber has joined #ruby
maletor has joined #ruby
ken_barber has quit [Remote host closed the connection]
greg has quit [Quit: Leaving...]
ken_barber has joined #ruby
jerrad has quit [Quit: Leaving...]
jrist-dogwalk is now known as jrist
lggr has joined #ruby
c0rn_ has joined #ruby
wmoxam_ has quit [Quit: leaving]
flype has quit [Quit: Computer has gone to sleep.]
bananagram has joined #ruby
trevortwining has joined #ruby
ryanf has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
hbpoison has joined #ruby
3JTAAAXL2 has joined #ruby
alphabitcity has quit [Quit: Leaving.]
skogis has quit [Ping timeout: 246 seconds]
MasterIdler_ has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
xaq has quit [Remote host closed the connection]
baphled has joined #ruby
hbpoison has quit [Ping timeout: 245 seconds]
MasterIdler has quit [Ping timeout: 248 seconds]
horofox has joined #ruby
xclite has joined #ruby
MasterIdler_ has quit [Ping timeout: 248 seconds]
jgwong has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
jamjam has joined #ruby
horofox has quit [Client Quit]
swarley has joined #ruby
lledet has quit [Read error: Connection reset by peer]
gregorg has quit [Read error: Connection reset by peer]
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
gregorg has joined #ruby
gregorg has quit [Changing host]
gregorg has joined #ruby
lledet has joined #ruby
TTilus has quit [Read error: Operation timed out]
elux has quit [Quit: Bye!]
wpaulson has joined #ruby
c0rn_ has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
horofox has joined #ruby
trevortwining has quit [Quit: trevortwining]
havenn has quit [Remote host closed the connection]
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-rc2)]
jenrzzz has joined #ruby
timrom_ has quit [Ping timeout: 240 seconds]
horofox has quit [Client Quit]
kirun has quit [Quit: Client exiting]
TTilus has joined #ruby
[Neurotic] has joined #ruby
pu22l3r_ has joined #ruby
horofox has joined #ruby
horofox has quit [Client Quit]
vitoravelino`afk is now known as vitoravelino
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
pu22l3r has quit [Ping timeout: 244 seconds]
Speed has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 252 seconds]
adeponte has quit [Remote host closed the connection]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
machty has joined #ruby
wpaulson has joined #ruby
adeponte has joined #ruby
lggr has joined #ruby
bapa has quit [Ping timeout: 240 seconds]
emmanuelux has quit [Remote host closed the connection]
timonv has joined #ruby
emmanuelux has joined #ruby
timrom has joined #ruby
apok_ has joined #ruby
justinmcp has quit [Remote host closed the connection]
hbpoison has joined #ruby
joelsbeard has quit [Ping timeout: 240 seconds]
justinmcp has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
apok has quit [Ping timeout: 252 seconds]
apok_ is now known as apok
horofox has joined #ruby
beneggett has joined #ruby
ibash has joined #ruby
riley526 has quit [Remote host closed the connection]
yoklov has joined #ruby
gregorg_taf has joined #ruby
Nathandim has joined #ruby
moted has quit [Ping timeout: 246 seconds]
hbpoison has quit [Ping timeout: 240 seconds]
tommyvyo has quit [Quit: Computer has gone to sleep.]
stopbit has quit [Quit: Leaving]
gregorg has quit [Read error: Connection reset by peer]
yoklov has quit [Client Quit]
timonv has quit [Remote host closed the connection]
etehtsea has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
lggr has joined #ruby
theRoUS_ has quit [Ping timeout: 264 seconds]
yoklov has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
rubious has joined #ruby
Virunga has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
ttt_ has joined #ruby
gregorg_taf has quit [Read error: Connection reset by peer]
gregorg_taf has joined #ruby
<bricker> Why does Ruby raise a warning when you re-assign a constant, but now when you try to reassign something that is *actually* immutable?
<rking> bricker: What is actually immutable?
Mon_Ouie has quit [Ping timeout: 246 seconds]
havenn has joined #ruby
horofox has quit [Quit: horofox]
<bricker> rking: something that just won't do anything when you try to assign it
<rking> bricker: e.g.?
<bricker> e.g. the headers hash in Rails
horofox has joined #ruby
sent-hil has joined #ruby
<Muz> Sounds more like a problem with Rails, than one with Ruby.
lggr has quit [Ping timeout: 268 seconds]
3JTAAAXL2 has quit [Quit: Leaving...]
ttt_ has quit [Ping timeout: 260 seconds]
<Muz> An actual immutable object would be a Fixnum, and it does complain when you try to reassign them. e.g `1 = 2`
<bricker> Muz: Oh, so perhaps Rails is rescuing the error and simply ignoring it?
<TTilus> bricker: what on earth are you trying to do?
<workmad3> bricker: code example please
<workmad3> bricker: because you're just confusing the issue I think
<Muz> Or Rails is simply treating it as any other ordinary object and not having error handling in place.
<Muz> The error in this case is the user.
<rking> bricker: You're setting response.headers['x'] = 'y' and it's doing nothing?
<workmad3> Muz: that's a case of trying to use a right-value as a left-value ;)
<bricker> jeez you guys
<bricker> It was just a question
Averna has joined #ruby
Averna has quit [Max SendQ exceeded]
<workmad3> bricker: yeah, and we're not sure what the hell you're actually asking
<rking> bricker: One that still hasn't been explained.
<TTilus> bricker: without code sample we are just guesssing here
Averna has joined #ruby
<Muz> Ultimately, it sounds like it's either a problem with Rails, or your Rails related code. At least, going by the example given. #RubyOnRails may be a better place to air this specific example.
<bricker> TTilus: there is no code sample
<workmad3> bricker: can you give us a code example of what you mean though?
<deryl> in my gem I'm using ARGV (via ARGV.shift). In my specs and features doing a 'p ARGV.inspect' shows the filename of the spec or feature file being currently run. I need to fake (or otherwise replace) the data in ARGV. Is this even possible? Is there a gem I could use for faking ARGV just for use in tests?
<TTilus> bricker: no code?!
<bricker> workmad3: No, I think I am just saying the wrong thing
<rking> There's a saying from Strunk & White, "If you don't know how to say a word, say it loud!" That's kind of what you did. =) (So it's a good thing, as long as you learn from it)
<workmad3> bricker: such as a code example of what you mean by 'assigning the headers hash'
<bricker> lol
<bricker> fucking forget it
rakunHo has joined #ruby
<rking> deryl: Why not just assign over it?
<bricker> I've never seen a group of people so eager to help in this channel
<Muz> deryl: ARGV = [whatever, you, want]
<rking> deryl: Or use a 3rd thing, like @argv = ARGV then override it for the tests.
adeponte has quit [Remote host closed the connection]
<workmad3> deryl: better yet... remove the explicit dependency on ARGV
<deryl> that won't crapcan the test currently being run? (Didn't try it because i didn't want to trash my tests and wasn't sure of the consequences)
<rking> Yeah. Right. TheGem::CLI.run ARGV in bin/thegem
<workmad3> ^^ that sort of thing
dmiller has joined #ruby
adeponte has joined #ruby
<workmad3> bricker: we were just curious what exactly you meant by 'actually immutable'
<deryl> ok, will look into CLI.
lggr has joined #ruby
<workmad3> bricker: incidentally, the closest, I believe, you can get to 'immutable' in ruby is to freeze an object... and if you try to modify a frozen object then ruby *will* complain
<bricker> workmad3: I was confused and said the wrong thing. I was trying to assign `headers` in a controller - and it wasn't doing anything so I thought "it must be immutable", but it turns out that `headers` is the request headers (now I know)
<workmad3> bricker: heh :)
havenn has quit [Ping timeout: 245 seconds]
<deryl> workmad3: the explicit comes from trollop. not sure how i would override that usage pattern, but I'll definitely look into it. Even to my newbieness, that seems 'brittle'
<workmad3> deryl: wrap it in a method that takes an argument, call the argument 'argv' and then pass in ARGV in your bin-script
<workmad3> deryl: and then in a test, pass in a different array ;)
derpops has joined #ruby
<deryl> ahhh. hehe that so never entered my mind :) glad I ask questions!
timrom has quit [Ping timeout: 246 seconds]
<workmad3> deryl: and then adjust any reference to ARGV to point to argv :)
xyzodiac has quit [Quit: Computer has gone to sleep.]
Solnse has quit [Ping timeout: 256 seconds]
Nathandim has quit [Remote host closed the connection]
<deryl> got it. added to the project TODO. Thanks for the advise.
<deryl> err advice
dmiller has quit [Ping timeout: 268 seconds]
lggr has quit [Ping timeout: 244 seconds]
<workmad3> also, the trollop parse method (from my quick google) is defined with 'def parse cmdline=ARGV', you could follow a similar idea
<deryl> yeah i;ll have to revisit the trollop code. there's my after dinner mint it seems hehe
Synthead has quit [Quit: p33 ba115]
<workmad3> same with options... def options args=ARGV, *a, &b
stkowski has quit [Quit: stkowski]
timrom has joined #ruby
hbpoison has joined #ruby
cburyta has joined #ruby
bier has quit [Ping timeout: 245 seconds]
joelsbeard has joined #ruby
<deryl> wait, you can use the splat *before* a block? doesn't splat soak *everything* up not caught by any prior var?
lggr has joined #ruby
<deryl> or am i confusing myself there?
<workmad3> block arg is special
<deryl> ah
invisime has quit [Quit: Leaving.]
<deryl> so many little things hehe
<workmad3> :)
<deryl> ok, off to do some reading. thank you all for the suggestions. &
sagax has quit [Quit: Ухожу я от вас]
<workmad3> still looking at your code... if you altered your parse_cmds method to be something like 'def self.parse_cmds(args=ARGV)'
<workmad3> and then adjusted line 69 to use args instead of ARGV, and passed in 'args' as the first param to all your Trollop::options calls
hadees has quit [Quit: hadees]
lledet has quit [Quit: lledet]
<deryl> nice!
<workmad3> I'd also suggest that you make it a non-static method btw
Nisstyre-laptop has joined #ruby
<workmad3> and instantiate an OptionsParser that storts @cmd and @cmd_opts
<deryl> don't know what you mean by that
budha has quit []
<deryl> the non-static
<workmad3> at the moment you're storing @cmd and @cmd_opts as class-instance variables
hbpoison has quit [Ping timeout: 245 seconds]
<deryl> right
<workmad3> you should either make them local variables, or treat OptionsParser as a more normal class, IMO
beneggett has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 256 seconds]
<deryl> i tried the local, and confused the hell out of myself on how to keep passing them around (like to the Dtf::Command class methods)
<deryl> and what do you mean by 'more normal class'?
alphabitcity has joined #ruby
<deryl> i might have to revisit TWGR methinks.
<workmad3> so rather than OptionsParser.parse_cmd, you'd do parser = OptionsParser.new; parser.parse_cmd(ARGV)
alphabitcity has quit [Client Quit]
<deryl> ohhhh
<workmad3> and then you'd pass the parser around, and objects would query it for the cmd and options
<deryl> i was thinking that doing that was a redundancy that was against 'good style'
<deryl> so i nixed that early on
<deryl> thats why i've been trying to stick with *just* calling the classes directly and limit instances except for the case of the models themselves
<deryl> was i wrong in that line of thinking?
<workmad3> it's just that right now you'd have an issue in the (I admit unlikely) event of multiple threads being inside the parse_cmd method at the same time
<deryl> or am i just crossing a 'it makes more sense this way' line?
joeycarmello has quit [Remote host closed the connection]
<deryl> hrmm.
<workmad3> it's a bit of a mix in all honesty, I'm not sure if I'd go the instance route or the non-ivar route with this atm
bananagram has quit [Ping timeout: 252 seconds]
<workmad3> but I wouldn't store data in class ivars like that
<deryl> going to copy this part of the conversation to the TODO file to redigest later. some of its a bit confusing on a fast think
jenrzzz has quit [Ping timeout: 256 seconds]
frogprince_mac has quit [Quit: Leaving...]
<workmad3> at least, not without giving it careful thought :)
<deryl> hehe
<shevy> man
timrom has quit [Ping timeout: 246 seconds]
<workmad3> (for reference, I'm talking about deryl's code here: https://github.com/dtf-gems/dtf/blob/master/lib/dtf.rb )
<shevy> I have one ruby project which has become so complex that it takes me literally several minutes to find where a specific bug could be...
<deryl> is this just a 'newbie' mistake i'm making? or is this a common area of confusion for others?
<workmad3> deryl: it's just a case of you're thinking quite procedurally
bananagram has joined #ruby
<rking> shevy: That builds character.
<deryl> yeah i tend to be very A, B, C … and go here then here then here..
<workmad3> deryl: which is fine... but you're then mixing that procedural thinking up with OO concepts like ivars
<rking> shevy: Is its source open?
cburyta has quit [Remote host closed the connection]
<workmad3> deryl: and then you end up with code that is acting almost OO-like, but not quite :)
frogprince has quit [Ping timeout: 268 seconds]
jimeh has quit [Ping timeout: 240 seconds]
<deryl> one of the requisites for the college courses is an OO course so hopefully that class will widen my thought-style a bit too
lggr has joined #ruby
<workmad3> any idea what language they're using?
<deryl> there are limits i'm finding in how accurately i can apply what I self-teach. think this is one of them
<deryl> that one iirc is C++
GoHuyGo has joined #ruby
<workmad3> :/
<deryl> i might be wrong. its definitely either C++ or java
<rking> deryl: I'd watch out. Some of the principles taught only add mental requirements that don't exist.
<workmad3> neither is actually a good language for teaching OO
cj3kim has quit [Quit: This computer has gone to sleep]
<workmad3> Java really teaches 'class-oriented' programming
bier has joined #ruby
<blazes816> my school used perl to teach OOP o_0
<rking> I wouldn't worry about being good OO as much as being simple: simple to understand, simple as in DRY. If OO stuff helps that, great.
<deryl> hehe. well my personal goal is to take what i learn in the classes, apply them to dtf, and bounce where i get confused off you guys.
chrisbolton has quit [Quit: chrisbolton]
<blazes816> lol @ class-oriented programming
<rking> blazes816: Hehehaha
<rking> blazes816: I mean, Perl has some positives, but its kludgey objects are not one of them.
<blazes816> now they only teach 'pseudo oop' i.e. no actually programming
<rking> blazes816: Permission to burn school down: granted.
<blazes816> rking: I love perl, but i would definitely not consider it naturally oop
<RubyPanther> I'd rather use Perl than Java, if done correctly, but like Saint Wall said, "If you want to do everything using OOP then Ruby is a better language than Perl."
<blazes816> haha, that's why I dropped out
<workmad3> rking: I agree when actually applying... however when teaching, I prefer a more exaggerated approach that emphasises the aspects you're trying to foster in a particular paradigm
sent-hil has quit [Remote host closed the connection]
timrom has joined #ruby
<deryl> lurking for the moment. want to soak in as you discuss. at the stage where i'm confused on things but not sure why or exactly where.
<rking> workmad3: What OO ideas do you believe are like that?
neurotech has joined #ruby
<deryl> (conceptually as well as code)
jenrzzz has joined #ruby
<shevy> rking sure. thing is, part of the code is like ... 3 or 4 years old by now. I am mostly just maintaining things... when it is fun... somehow there are conflicting ways to solve something... somehow I need to find a better way to fix bugs and add new things, without having to spend minutes trying to find the file in question where the bug could be.
lggr has quit [Ping timeout: 246 seconds]
seanstickle has joined #ruby
derpops has quit [Ping timeout: 248 seconds]
<workmad3> rking: for starters, just the concept of an 'object'
cardoni has joined #ruby
<workmad3> personally, for an OO course, I'd probably go with smalltalk, ruby or maybe scala nowadays
monkegjinni has quit [Remote host closed the connection]
<rking> Scala? Interesting.
<blazes816> erlang
<workmad3> languages where you have more of a concept of an 'object' divorced from a class
<rking> Ah
<rking> JavaScript?
<workmad3> possibly
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
derpops has joined #ruby
linoj has joined #ruby
<rking> workmad3: If you can elaborate on the class-oriented programming vs. "object divorced from a class", I'd like to confirm I have any clue what you mean by the latter being superior to teach.
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
monkegjinni has joined #ruby
<workmad3> rking: well, with a language like java you have to create a hierarchy of classes in order to do anything meaningful
havenn has joined #ruby
<workmad3> rking: which moves the focus onto creating an elaborate, 'correct' class (or type) hierarchy rather than focusing on getting the objects themselves doing what you want
ssspiff has joined #ruby
ssspiff has quit [Changing host]
ssspiff has joined #ruby
hadees has joined #ruby
<workmad3> rking: it is, after all, *object* oriented programming... classes are a useful categorisation, but you should be able to do without them
mmitchell has quit [Remote host closed the connection]
<rking> Isn't that an issue of static typing vs Duck Typing?
apok has quit [Remote host closed the connection]
sspiff has quit [Ping timeout: 244 seconds]
apok has joined #ruby
<workmad3> not really
<workmad3> scala lets you deal with objects while still being statically typed
parzo has joined #ruby
<rking> I need a better opposite of "Duck Typing"
<workmad3> dynamic typing is the classic example
<rking> It's like "implicit interfacing" or something
linoj has quit [Client Quit]
parzo has quit [Client Quit]
lggr has joined #ruby
<workmad3> besides, C++ lets you do duck-typing in templates ;)
derpops has quit [Ping timeout: 245 seconds]
horofox has quit [Quit: horofox]
nari has joined #ruby
swarley_ has joined #ruby
havenn has quit [Ping timeout: 246 seconds]
cardoni has quit [Ping timeout: 264 seconds]
specialGuest has quit [Quit: WeeChat 0.3.8]
<shevy> argh
baphled has quit [Ping timeout: 246 seconds]
<rking> workmad3: That's true, but working with them sucked bad (so many limitations, terribly mangled symbols in backtraces, etc.) I think C++11 fixes some of the terribleness.
uris has quit [Ping timeout: 268 seconds]
wereHamster has quit [Read error: Operation timed out]
<rking> Especially as a teaching tool, I wouldn't want to have to explain templates vs. plain old Duck Typing.
wereHamster has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
lggr has quit [Ping timeout: 244 seconds]
straind has quit [Read error: Connection reset by peer]
jamjam has quit [Ping timeout: 256 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
derpops has joined #ruby
linoj has joined #ruby
shiki has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
gabrielrotbart has joined #ruby
<workmad3> rking: no, I wouldn't consider C++ a teaching tool, especially not for OO
xyzodiac has joined #ruby
lggr has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
techhelp has quit [Quit: This computer has gone to sleep]
xyzodiac has quit [Client Quit]
rbwsam1 has quit [Quit: Leaving.]
jbohn has quit [Quit: Leaving...]
stephenjudkins has quit [Quit: stephenjudkins]
Banistergalaxy has joined #ruby
iocor has joined #ruby
philcrissman has quit [Remote host closed the connection]
haxrbyte has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 264 seconds]
AndChat- has quit [Ping timeout: 268 seconds]
cardoni has joined #ruby
haxrbyte has joined #ruby
neurotech has quit [Read error: Connection reset by peer]
ttt_ has joined #ruby
haxrbyte has quit [Remote host closed the connection]
yaroslav has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
elaptics is now known as elaptics`away
jenrzzz has quit [Ping timeout: 244 seconds]
davidpk has joined #ruby
derpops has quit []
invisime has joined #ruby
davidpk is now known as Guest34345
lggr has joined #ruby
friskd has quit [Ping timeout: 240 seconds]
ttt_ has quit [Ping timeout: 260 seconds]
Russell^^ has quit [Quit: Russell^^]
linoj has quit [Quit: linoj]
mrsolo has quit [Quit: Leaving]
xyzodiac has joined #ruby
cardoni has quit [Quit: Leaving...]
lggr has quit [Ping timeout: 260 seconds]
panpainter has quit [Quit: panpainter]
ssspiff has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
yaroslav has quit [Quit: yaroslav]
xaq has joined #ruby
swarley has quit [Read error: Connection reset by peer]
Guest34345 has quit [Quit: Ceci n'est pas une broken pipe.]
lggr has joined #ruby
swarley has joined #ruby
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
LouisGB has quit [Ping timeout: 244 seconds]
diegoviola has quit [Ping timeout: 245 seconds]
elico has quit [Remote host closed the connection]
BigFatFatty has left #ruby [#ruby]
fyolnish has quit [Remote host closed the connection]
seanstickle has quit [Quit: seanstickle]
lggr has quit [Ping timeout: 244 seconds]
timrom_ has joined #ruby
timrom has quit [Ping timeout: 246 seconds]
freeayu has joined #ruby
twoism has quit [Remote host closed the connection]
ianbrandt has quit [Quit: ianbrandt]
stephenjudkins has joined #ruby
joshman_ has joined #ruby
shuriken has joined #ruby
jso has quit []
lggr has joined #ruby
BdeUtra has quit [Quit: BdeUtra]
nari has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 245 seconds]