apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p286: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
justinmc_ has quit [Remote host closed the connection]
<csmrfx> Hm, howcome res = 1.197177; res == Float && res >= 0 && res <= 2 # is false?
<shevy> perhaps Float is too generic and 1.19 is a very specific Float? res.is_a? Float is true
<shevy> and via == you probably check for its value anyway
<csmrfx> aaaa, should be res.class == Float
<shevy> "Returns true only if obj has the same value as flt. Contrast this with Float#eql?, which requires obj to be a Float."
justinmcp has quit [Ping timeout: 260 seconds]
manizzle has quit [Ping timeout: 240 seconds]
<banisterfiend> csmrfx: or Float === res
danshultz has quit [Remote host closed the connection]
<banisterfiend> csmrfx: or res.is_a?(Float)
nga4 has quit [Ping timeout: 252 seconds]
cableray has quit [Quit: cableray]
TheFuzzball has quit [Read error: Connection reset by peer]
justcoke has joined #ruby
cableray has joined #ruby
tbrock has quit [Quit: Computer has gone to sleep.]
amacgregor_osx has joined #ruby
amacgregor_osx has quit [Read error: Connection reset by peer]
Mchl has quit [Read error: Operation timed out]
amacgregor_osx has joined #ruby
Mchl has joined #ruby
krazyj has quit [Quit: Quitting...]
TheFuzzball has joined #ruby
krazyj has joined #ruby
und3f has quit [Quit: Leaving.]
postmodern has joined #ruby
headius has quit [Quit: headius]
tvw has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 252 seconds]
apok has quit [Quit: apok]
pkondzior_ has quit [Remote host closed the connection]
NimeshNeema has quit [Remote host closed the connection]
yeban has quit [Remote host closed the connection]
Spaceghost|cloud has quit [Remote host closed the connection]
jhowarth has quit [Remote host closed the connection]
kapowaz has quit [Remote host closed the connection]
dkannan has quit [Remote host closed the connection]
ctevie has quit [Remote host closed the connection]
lucaspiller has quit [Remote host closed the connection]
MoMo has quit [Write error: Broken pipe]
anildigital_work has quit [Write error: Connection reset by peer]
aetcore has quit [Remote host closed the connection]
aetcore has joined #ruby
<csmrfx> If module Planet extends its nested module Tests, why cant method in Tests see a constant in Planet?
maletor has quit [Ping timeout: 260 seconds]
h4mz1d has quit [Ping timeout: 252 seconds]
darkwing_duck has joined #ruby
beneggett has joined #ruby
justinmcp has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
<csmrfx> oh, it was in a module nested in that module
<csmrfx> nm 8)
<csmrfx> nm 8)
Cultofmetatron has quit [Remote host closed the connection]
<csmrfx> oops
samphippen has quit [Quit: Computer has gone to sleep.]
manizzle has joined #ruby
krazyj has quit [Quit: Quitting...]
chimkan has quit [Quit: chimkan]
piotr_ has quit [Ping timeout: 240 seconds]
krazyj has joined #ruby
maletor has joined #ruby
maesbn has quit [Remote host closed the connection]
fantazo has quit [Ping timeout: 260 seconds]
hbpoison has joined #ruby
Virunga has quit [Remote host closed the connection]
butblack has quit [Quit: butblack]
<csmrfx> -2.0 / (24*60) => -0.00138888
<csmrfx> -2 / (24*60) => -1
<csmrfx> wtf
TheFuzzball has quit [Ping timeout: 244 seconds]
nateberkopec has joined #ruby
<csmrfx> the latter should be 0
<csmrfx> Who's fooling who
alanp has joined #ruby
<darkwing_duck> lol... it's rounding literally down, not absolute-value kinda down?
butblack has joined #ruby
joeycarmello has quit [Remote host closed the connection]
jeffreybaird has quit [Quit: jeffreybaird]
TheFuzzball has joined #ruby
<heftig> csmrfx: ruby integer division rounds towards negative infinity, that's documented
danshultz has joined #ruby
<csmrfx> correct results if the divisor is positive
``10`` has quit [Ping timeout: 245 seconds]
pjb3 has joined #ruby
jamjam has quit [Ping timeout: 276 seconds]
<csmrfx> uh, dividend is positive
TheFuzzball has quit [Read error: Operation timed out]
* csmrfx got the tests to pass 8)
<csmrfx> gn!
manizzle has quit [Ping timeout: 240 seconds]
manizzle has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.9]
tvw has joined #ruby
TheFuzzball has joined #ruby
esya has quit [Quit: esya]
F1skr has joined #ruby
dakine has quit [Ping timeout: 264 seconds]
<darkwing_duck> ... does something similar to this exist: `@errors =[] ; raise NoMethodError rescue {|e| @errors << e}` where @errors wouldn't be empty after execution?
rasbonics has quit [Quit: rasbonics]
sepp2k has quit [Remote host closed the connection]
<heftig> @errors =[] ; begin raise NoMethodError; rescue => e; @errors << e; end
<heftig> works fine
aetcore_ has joined #ruby
danshultz has quit [Ping timeout: 255 seconds]
mhag has joined #ruby
aetcore_ has quit [Client Quit]
mercwithamouth has joined #ruby
aetcore has quit [Ping timeout: 244 seconds]
Jaxel has quit [Quit: Leaving]
GoGoGarrett has joined #ruby
<darkwing_duck> heftig: yeah =\ but nothing inline-ish?
mhag has quit [Client Quit]
aetcore has joined #ruby
banisterfiend has quit [Ping timeout: 244 seconds]
mklappstuhl has quit [Ping timeout: 244 seconds]
chrisja has quit [Quit: leaving]
justinmcp has quit [Remote host closed the connection]
_alejandro has joined #ruby
justinmcp has joined #ruby
kbeddingfield has joined #ruby
Vert has quit [Read error: Connection reset by peer]
anildigital_work has joined #ruby
RantriX has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.9]
dkannan has joined #ruby
RantriX has quit [Client Quit]
kapowaz has joined #ruby
RantriX has joined #ruby
justinmcp has quit [Ping timeout: 268 seconds]
ephemerian has quit [Quit: Leaving.]
RantriX has quit [Remote host closed the connection]
F1skr has joined #ruby
ffranz has quit [Quit: Leaving]
cousine has quit [Remote host closed the connection]
tds has quit [Quit: tds]
dakine has joined #ruby
_alejandro has quit [Remote host closed the connection]
u89 has quit [Remote host closed the connection]
mrsolo has quit [Quit: Leaving]
RantriX has joined #ruby
butblack has quit [Quit: butblack]
yshh has joined #ruby
pac1 has quit [Quit: I got it one line of code at a time]
pac1 has joined #ruby
aantix has joined #ruby
pkondzior_ has joined #ruby
DrShoggoth has joined #ruby
skcin7 has quit []
v0n has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
horofox has quit [Quit: horofox]
kil0byte has joined #ruby
justinmcp has joined #ruby
jonan_ has joined #ruby
butblack has joined #ruby
skcin7 has joined #ruby
guns has quit [Ping timeout: 260 seconds]
aldodelgado has joined #ruby
redbull has joined #ruby
slainer68 has quit [Remote host closed the connection]
butblack has quit [Client Quit]
joeycarmello has joined #ruby
butblack has joined #ruby
jonan has quit [Ping timeout: 256 seconds]
jonan_ is now known as jonan
hackerdude has quit [Remote host closed the connection]
`brendan has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
jcz is now known as gay
d2dchat has joined #ruby
danshultz has joined #ruby
v0n has quit [Quit: Leaving]
gay is now known as Guest51342
sheerun has quit [Quit: sheerun]
Guest51342 is now known as kandinski
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
rjsamson has quit [Ping timeout: 252 seconds]
aldodelgado has quit [Quit: aldodelgado]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
cobragoat has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
justinmc_ has joined #ruby
<waxjar> anyone use tomdoc here?
yshh has joined #ruby
justcoke has quit [Read error: Connection reset by peer]
``10`` has joined #ruby
apok has joined #ruby
<``10``> got the build working finally
justinmcp has quit [Ping timeout: 260 seconds]
tyfighter has quit [Quit: tyfighter]
<``10``> not sure why it wasn't working with rvm still, but a total wipe of the user home and fresh tarballs finally compiled
<``10``> cherrs folks
jonan has quit [Ping timeout: 244 seconds]
rjsamson has joined #ruby
danshultz has quit [Ping timeout: 252 seconds]
centipedefarmer has joined #ruby
nga4 has joined #ruby
mpereira has quit [Read error: Connection reset by peer]
g-ram has joined #ruby
ericwood has quit [Ping timeout: 240 seconds]
yshh_ has joined #ruby
elentras has quit [Ping timeout: 240 seconds]
yshh has quit [Read error: Connection reset by peer]
MoMo has joined #ruby
aantix has quit [Ping timeout: 260 seconds]
kenichi is now known as kenichi-away
lucaspiller has joined #ruby
davidcelis has quit [Quit: K-Lined.]
aetcore_ has joined #ruby
freeayu has joined #ruby
carlyle has joined #ruby
aetcore has quit [Ping timeout: 244 seconds]
horofox has joined #ruby
justcoke has joined #ruby
horofox has quit [Client Quit]
rich__ has joined #ruby
NimeshNeema has joined #ruby
rakm_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
arubin_ has joined #ruby
GoGoGarrett has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
GoGoGarrett has quit [Remote host closed the connection]
beneggett has quit [Quit: Computer has gone to sleep.]
guns has joined #ruby
dmiller has quit [Remote host closed the connection]
slainer68 has joined #ruby
dreamz__ has joined #ruby
apok has quit [Remote host closed the connection]
apok has joined #ruby
beneggett has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
justcoke has quit [Ping timeout: 252 seconds]
justinmc_ has quit [Remote host closed the connection]
orangejuice has joined #ruby
justinmcp has joined #ruby
JohnRedcorn has joined #ruby
enroxorz-work has quit [Read error: Connection reset by peer]
stephenjudkins has quit [Quit: stephenjudkins]
ctevie has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
orangejuice has quit [Client Quit]
artOfWar has quit [Remote host closed the connection]
justinmcp has quit [Ping timeout: 256 seconds]
blazes816 has quit [Quit: blazes816]
slainer68 has quit [Ping timeout: 245 seconds]
justinmcp has joined #ruby
jcaudle has joined #ruby
J-_-L has joined #ruby
jcaudle has quit [Client Quit]
beneggett has quit [Quit: Computer has gone to sleep.]
skaczor has quit [Ping timeout: 276 seconds]
ryanlecompte has quit [Remote host closed the connection]
<darkwing_duck> man... SimpleCov says i've missed two lines in my application, but I'm positive it's wrong. Frustrating.
bigmcq77 has quit [Quit: Computer has gone to sleep.]
ewokchewy has joined #ruby
cousine has joined #ruby
dmiller has joined #ruby
thinkdevcode has quit [Remote host closed the connection]
werdnativ has quit [Ping timeout: 255 seconds]
Spaceghost|cloud has joined #ruby
danshultz has joined #ruby
Chryson has joined #ruby
cakehero has joined #ruby
dmiller_ has joined #ruby
Cultofmetatron has joined #ruby
dmiller has quit [Ping timeout: 244 seconds]
jcaudle has joined #ruby
dpatel has quit [Quit: dpatel]
tvw has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
jhowarth has joined #ruby
rakl has quit [Quit: sleeping]
baroquebobcat has joined #ruby
nari has joined #ruby
stkowski has quit [Quit: stkowski]
jcaudle has quit [Client Quit]
jarred has quit [Quit: jarred]
Slivka has quit [Read error: Connection reset by peer]
lenovodroid has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
Cultofmetatron has quit [Remote host closed the connection]
ericwood has joined #ruby
Cultofmetatron has joined #ruby
ttt has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
jgarvey has quit [Ping timeout: 268 seconds]
jrajav has quit []
kyktommy has joined #ruby
AlbireoX has joined #ruby
justinmcp has quit [Remote host closed the connection]
bigmcq77 has joined #ruby
justinmcp has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
<bricker> are <% return if true %> and <% return %> exactly the same thing?
<bricker> er, ignore those ERB tags... :P
etank has quit [Quit: WeeChat 0.3.9]
wallerdev has quit [Quit: wallerdev]
dmiller_ has quit [Remote host closed the connection]
justinmc_ has joined #ruby
etank has joined #ruby
manizzle has quit [Ping timeout: 276 seconds]
daniel_- has quit [Ping timeout: 252 seconds]
GoGoGarrett has joined #ruby
justinmcp has quit [Ping timeout: 255 seconds]
_bart has joined #ruby
chimkan has joined #ruby
<darkwing_duck> bricker: def returns_true;return true;end;;;def returns_nada;return;end;;;puts returns_true;puts returns_nada
<darkwing_duck> bricker: nil != true
robbyoconnor has joined #ruby
<darkwing_duck> bricker: I misread your question... yeah, they're the same.
joeycarmello has quit [Remote host closed the connection]
arubin_ is now known as razrubin
``10`` has quit [Ping timeout: 245 seconds]
<bricker> darkwing_duck: thanks
rakl has joined #ruby
justinmc_ has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 252 seconds]
rakl has quit [Client Quit]
``10`` has joined #ruby
justinmcp has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<``10``> darkwing_duck: that's not quite right; ruby has some similar semantics to, e.g., perl in this regard
<``10``> return if true -> if true, return
net_mask has quit [Quit: net_mask]
manizzle has joined #ruby
mercwithamouth has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<``10``> in some other languages, if...then...[else...] is an expression that evaluates to the result of then... or else... depending on boolean truth of the conditional clause
monkegjinni has joined #ruby
<``10``> but in ruby its semantics are more like c; if... is just a control operator
jgarvey has joined #ruby
JustinCampbell has quit [Remote host closed the connection]
justinmcp has quit [Ping timeout: 244 seconds]
jipiboily has joined #ruby
razrubin is now known as arubin-
jipiboily has quit [Read error: Connection reset by peer]
Araxia has quit [Ping timeout: 265 seconds]
icole has quit [Remote host closed the connection]
pac1 has quit [Quit: I got it one line of code at a time]
voodoofish430 has quit [Quit: Leaving.]
jipiboily1 has joined #ruby
jipiboily1 has left #ruby [#ruby]
yeban has joined #ruby
justinmcp has joined #ruby
Monie has quit [Quit: Quit]
niklasb has quit [Ping timeout: 245 seconds]
hbpoison has quit [Ping timeout: 268 seconds]
BSaboia__ has quit [Quit: Fui embora]
BSaboia has joined #ruby
medik has quit [Quit: Leaving]
wallerdev has joined #ruby
rich__ has quit [Ping timeout: 248 seconds]
manizzle has quit [Ping timeout: 260 seconds]
dmiller has joined #ruby
Trioke has quit [Ping timeout: 244 seconds]
ewokchewy has quit [Quit: Leaving]
``10`` has quit [Ping timeout: 245 seconds]
mneorr has joined #ruby
joeycarmello has joined #ruby
ejholmes has quit [Quit: ejholmes]
BoomCow has quit [Quit: Leaving]
bradhe has quit [Remote host closed the connection]
dmiller has quit [Ping timeout: 265 seconds]
<shevy> eeks
<shevy> HE USED ERB TAGS!
<shevy> I told you guys they are evil
<shevy> <% 42 %>
Chryson has quit [Quit: Leaving]
GoGoGarrett has quit [Remote host closed the connection]
chrxn has quit [Remote host closed the connection]
arubin- has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
pjb3 has quit [Quit: pjb3]
chrxn has joined #ruby
Cultofmetatron has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
savage- has joined #ruby
GoGoGarrett has joined #ruby
jeffreybaird has joined #ruby
h4mz1d has joined #ruby
justinmc_ has joined #ruby
chrxn has quit [Ping timeout: 240 seconds]
kyktommy_ has joined #ruby
strangeworks has joined #ruby
strangeworks has quit [Max SendQ exceeded]
strangeworks has joined #ruby
strangeworks has quit [Max SendQ exceeded]
strangeworks has joined #ruby
justinmcp has quit [Ping timeout: 264 seconds]
strangeworks has quit [Max SendQ exceeded]
kyktommy has quit [Ping timeout: 248 seconds]
strangeworks has joined #ruby
strangeworks has quit [Max SendQ exceeded]
nateberkopec has joined #ruby
strangeworks has joined #ruby
Tref has joined #ruby
nateberkopec has quit [Client Quit]
beneggett has joined #ruby
Ruler_Of_Heaven_ has joined #ruby
pipopopo has quit [Ping timeout: 276 seconds]
austinbv has joined #ruby
macabre has quit [Remote host closed the connection]
J-_-L has quit [Quit: Leaving.]
mneorr has quit [Remote host closed the connection]
GoGoGarrett has quit [Remote host closed the connection]
mneorr has joined #ruby
pjb3 has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
Hanmac has joined #ruby
Ry_ has joined #ruby
shammancer has joined #ruby
BSaboia has quit [Quit: Fui embora]
`brendan has quit [Ping timeout: 246 seconds]
davidokn1r has quit [Quit: leaving]
manizzle has joined #ruby
bradhe has joined #ruby
chimkan has quit [Quit: chimkan]
bigmac has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
chimkan has joined #ruby
h4mz1d has quit [Ping timeout: 244 seconds]
hackerdude has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
adeponte has quit [Remote host closed the connection]
Liothen has joined #ruby
Progster has joined #ruby
Liothen has quit [Changing host]
Liothen has joined #ruby
radic has joined #ruby
apok has quit [Ping timeout: 260 seconds]
chimkan has quit [Quit: chimkan]
stephenjudkins has joined #ruby
GeekOnCoffee has quit [Ping timeout: 252 seconds]
justinmc_ has quit [Remote host closed the connection]
Juul has joined #ruby
jlwestsr has quit [Ping timeout: 246 seconds]
radic_ has quit [Ping timeout: 265 seconds]
wallerdev has quit [Quit: wallerdev]
zastern has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
beneggett has quit [Quit: Computer has gone to sleep.]
chendo_ has quit [Ping timeout: 252 seconds]
tehlulz has quit [Quit: tehlulz]
tds has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
tds has quit [Client Quit]
GeekOnCoffee has joined #ruby
rakl has joined #ruby
GeekOnCoffee has quit [Read error: Connection reset by peer]
kumarat9pm has joined #ruby
Araxia has joined #ruby
GeekOnCoffee has joined #ruby
tds has joined #ruby
rakl has quit [Client Quit]
artOfWar has joined #ruby
beneggett has joined #ruby
bradhe has quit [Remote host closed the connection]
artOfWar has quit [Remote host closed the connection]
artOfWar has joined #ruby
kumarat9pm has left #ruby [#ruby]
danshultz has quit [Remote host closed the connection]
austinbv has quit [Ping timeout: 252 seconds]
chendo_ has joined #ruby
zastern has quit [Remote host closed the connection]
cousine has quit [Remote host closed the connection]
wizard` has quit [Quit: Asta la vista]
jamescarr has joined #ruby
ananthakumaran has joined #ruby
<jamescarr> is there a way to assign properties when creating a new object in one line?
erichmenge has quit [Quit: Be back later]
Bosma has joined #ruby
shiin has quit [Quit: Computer has gone to sleep.]
* waxjar is listening to Immaculation (feat. Azizi Gibson and Jeremiah Jae) by Captain Murphy (1:35/3:08)
<waxjar> fuck sorry, my client is a giant bitch.
mercwithamouth has quit [Ping timeout: 255 seconds]
ircmouser has joined #ruby
hbpoison has joined #ruby
net_mask has joined #ruby
sn0wb1rd has joined #ruby
jrist is now known as jrist-afk
bricker has quit [Ping timeout: 260 seconds]
kyktommy_ has quit [Quit: kyktommy_]
nignaztic has quit [Read error: Connection reset by peer]
hbpoison has quit [Ping timeout: 246 seconds]
pu22l3r has joined #ruby
xpen has joined #ruby
chendo_ has quit [Ping timeout: 252 seconds]
skcin7 has quit [Ping timeout: 244 seconds]
adeponte has joined #ruby
pu22l3r has quit [Remote host closed the connection]
Juul has quit [Quit: Leaving]
pu22l3r has joined #ruby
chendo_ has joined #ruby
cyong has joined #ruby
<darkwing_duck> ls
skcin7 has joined #ruby
<darkwing_duck> lol
darkwing_duck has left #ruby [#ruby]
kbeddingfield has joined #ruby
etank has quit [Quit: WeeChat 0.3.9]
kbeddingfield has quit [Remote host closed the connection]
beneggett has quit [Remote host closed the connection]
bradhe has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.9]
shammancer has quit [Remote host closed the connection]
Ry__ has joined #ruby
Ry_ has quit [Read error: Connection reset by peer]
shammancer has joined #ruby
tds has quit [Quit: tds]
mohits has quit [Ping timeout: 240 seconds]
chendo_ has quit [Ping timeout: 244 seconds]
chendo_ has joined #ruby
adeponte has quit [Remote host closed the connection]
rjsamson has quit [Remote host closed the connection]
rjsamson has joined #ruby
scx has quit [Ping timeout: 256 seconds]
jeffreybaird has quit [Quit: jeffreybaird]
tds has joined #ruby
siyusong has joined #ruby
scx has joined #ruby
rjsamson has quit [Ping timeout: 252 seconds]
horofox has joined #ruby
tds has quit [Client Quit]
yshh_ has quit [Ping timeout: 244 seconds]
bigmac has quit [Remote host closed the connection]
CaptainJet has quit [Ping timeout: 248 seconds]
CaptainJet has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jeffreybaird has joined #ruby
Progster has quit [Read error: Operation timed out]
baroquebobcat has joined #ruby
CaptainJet has quit [Client Quit]
ircmouser has quit [Read error: Connection reset by peer]
gmci has joined #ruby
chendo_ has quit [Ping timeout: 252 seconds]
flip_digits has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
baroquebobcat has quit [Client Quit]
jeffreybaird has quit [Client Quit]
chendo_ has joined #ruby
Chryson has joined #ruby
Dreamer3 has joined #ruby
tds has joined #ruby
koivula has left #ruby [#ruby]
reset_ has joined #ruby
pjb3 has quit [Quit: pjb3]
roadt_ has joined #ruby
adeponte has joined #ruby
BoomCow has joined #ruby
reset has quit [Ping timeout: 255 seconds]
reset_ has quit [Ping timeout: 260 seconds]
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
rburton- has joined #ruby
baroquebobcat has joined #ruby
justinmcp has joined #ruby
austinbv has joined #ruby
thinkdevcode has joined #ruby
austinbv has quit [Client Quit]
austinbv has joined #ruby
tds has quit [Quit: tds]
<voodoofish> anyone familiar with activerecord...I'm trying to use it outside of ror
<GeekOnCoffee> voodoofish: out of curiosity, why?
aetcore_ has quit [Read error: Connection reset by peer]
<GeekOnCoffee> (I'm very familiar, but only from within rails)
<voodoofish> GeekOnCoffee, I'm using it with sinatra
aetcore has joined #ruby
<voodoofish> I'm working on a rest api and wanted to use it...but not sure how to access the data in individual columns like id, or name
<voodoofish> as examples...
icole has joined #ruby
Daman has joined #ruby
mneorr has quit [Ping timeout: 260 seconds]
Tref has quit [Quit: Tref]
hbpoison has joined #ruby
cyong has quit [Quit: Leaving.]
mercwithamouth has joined #ruby
<GeekOnCoffee> voodoofish: so have you got a working AR model?
<GeekOnCoffee> if so, you should be able to call .id on it
<GeekOnCoffee> or .name
BoomCow has quit [Quit: Leaving]
<austinbv> voodoofish: I use it out of rails all the time
<austinbv> whats the issue
<voodoofish> GeekOnCoffee, I tried something, but it didn't seem to work
net_mask has quit [Quit: net_mask]
<austinbv> so you have a class that inherates from AR base and you have set up the base config?
<austinbv> this is probably the easiest way voodoofish https://github.com/janko-m/sinatra-activerecord
<voodoofish> do yes, I have something that inherits from activerecord::base and I tried setting up something like attr_accessible :channel, :id in the class
<voodoofish> but yeah...didn't work so well
<voodoofish> no method found...
siyusong has quit [Quit: Computer has gone to sleep.]
hbpoison has quit [Ping timeout: 264 seconds]
ZubKonst has quit [Read error: Connection reset by peer]
ZubKonst has joined #ruby
Tearan has joined #ruby
slainer68 has joined #ruby
<austinbv> to establish the connection
crocket has left #ruby ["Leaving"]
<voodoofish> I have a connection, I can see the data when I just look at the object, just not sure how to access the data outside of the object...
tehlulz has joined #ruby
yshh has joined #ruby
<austinbv> If the connection is set up and the class inherits from AR::Base you should get all the methods by default
<voodoofish> I thought so too....
<voodoofish> but...well, I'm obviously missing something...
<austinbv> I have never had the issue, mind throwing up the code and schema in a gist?
slainer68 has quit [Ping timeout: 244 seconds]
dmiller has joined #ruby
bigmcq77 has quit [Quit: Computer has gone to sleep.]
d3vic3 has quit [Ping timeout: 276 seconds]
Chryson has quit [Quit: Leaving]
d3vic3 has joined #ruby
<voodoofish> I've been mainly playing in irb
kiyoura has quit [Quit: Leaving]
mercwithamouth has quit [Ping timeout: 265 seconds]
macmartine has joined #ruby
quest88 has joined #ruby
<reactormonk> voodoofish, the hipster irb is pry
<voodoofish> so I've heard
<voodoofish> I'm not hipster enough
Ry__ has quit [Ping timeout: 244 seconds]
carlyle has quit [Remote host closed the connection]
<voodoofish> gees...that sinatra-activerecord example has a bit much for me to understand....
stephenjudkins has joined #ruby
<voodoofish> 9/10 of it I'm just going wtf are they doing that.
AlbireoX has quit [Remote host closed the connection]
Cultofmetatron has quit [Remote host closed the connection]
xkx has quit [Read error: Connection reset by peer]
xkx has joined #ruby
jenrzzz has joined #ruby
jalcine has quit [Ping timeout: 240 seconds]
eregon has quit [Quit: No Ping reply in 180 seconds.]
eregon_ has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
net_mask has joined #ruby
kyktommy has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
baroquebobcat has quit [Quit: baroquebobcat]
Ry_ has joined #ruby
phelps has joined #ruby
phelps has left #ruby ["Linkinus - http://linkinus.com"]
cyong has joined #ruby
austinbv has quit [Ping timeout: 244 seconds]
carlyle has joined #ruby
jalcine has joined #ruby
a_a_g has joined #ruby
carlyle has quit [Remote host closed the connection]
artnez has joined #ruby
Monie[ip] has joined #ruby
mneorr has joined #ruby
net_mask has quit [Quit: net_mask]
centipedefarmer has quit [Remote host closed the connection]
austinbv has joined #ruby
tds has joined #ruby
baroquebobcat has joined #ruby
Guest10501 has joined #ruby
burgestrand has quit [Quit: Leaving.]
horofox has quit [Quit: horofox]
SirRamonGabriel has joined #ruby
areil has joined #ruby
Monie[ip] has quit [Client Quit]
cableray has quit [Quit: See you 'round like a donut.]
sagax has joined #ruby
Ry_ has quit [Ping timeout: 264 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
jenrzzz has quit [Ping timeout: 264 seconds]
cakehero has joined #ruby
greasegum has quit [Read error: Operation timed out]
hbpoison has joined #ruby
burgestrand has joined #ruby
eph3meral has joined #ruby
burgestrand has quit [Client Quit]
burgestrand has joined #ruby
guns has quit [Quit: guns]
burgestrand has quit [Read error: Operation timed out]
AlbireoX has joined #ruby
s0ber_ has joined #ruby
jaygen has joined #ruby
hbpoison has quit [Ping timeout: 255 seconds]
davidcelis has joined #ruby
s0ber has quit [Ping timeout: 256 seconds]
s0ber_ is now known as s0ber
tds has quit [Quit: tds]
margle has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
Shrink has quit [Ping timeout: 245 seconds]
BoomCow has joined #ruby
stephenjudkins has joined #ruby
ananthakumaran has joined #ruby
xpen has quit [Ping timeout: 244 seconds]
slainer68 has joined #ruby
dmiller has quit [Remote host closed the connection]
Araxia has quit [Quit: Araxia]
statarb3 has quit [Quit: Leaving]
xsbeats_ has joined #ruby
xsbeats has quit [Ping timeout: 256 seconds]
bigmcq77 has joined #ruby
slainer68 has quit [Ping timeout: 244 seconds]
amacgregor_osx has quit [Read error: Operation timed out]
Shrink has joined #ruby
Bosox20051 has joined #ruby
crazymykl has quit [Quit: Konversation terminated!]
cakehero has quit [Quit: Computer has gone to sleep.]
joofsh has quit [Remote host closed the connection]
SirRamonGabriel has quit [Ping timeout: 260 seconds]
scx has quit [Read error: Connection reset by peer]
freeayu__ has joined #ruby
Araxia has joined #ruby
strangeworks has quit [Quit: Leaving]
enderx86 has quit [Remote host closed the connection]
freeayu has quit [Ping timeout: 260 seconds]
amacgregor_osx has joined #ruby
xpen has joined #ruby
butblack has quit [Quit: butblack]
chimkan has joined #ruby
chimkan has quit [Client Quit]
djdb has joined #ruby
joeycarmello has quit [Remote host closed the connection]
iamjarvo has quit [Quit: Computer has gone to sleep.]
Grieg has quit [Quit: laterz! :D]
jamescarr has quit [Ping timeout: 252 seconds]
hbpoison has joined #ruby
dmiller has joined #ruby
macmartine has quit [Ping timeout: 265 seconds]
yxhuvud has joined #ruby
dmiller has quit [Read error: Connection reset by peer]
d2dchat has quit [Remote host closed the connection]
SirRamon_ has joined #ruby
rich__ has joined #ruby
dmiller has joined #ruby
xsbeats_ is now known as xsbeats
butblack has joined #ruby
RantriX has quit [Remote host closed the connection]
g-ram has quit [Quit: Computer has gone to sleep.]
ryanlecompte has joined #ruby
elsifaka has joined #ruby
justinmcp has quit [Ping timeout: 245 seconds]
mahmoudimus has joined #ruby
Mon_Ouie has joined #ruby
justinmcp has joined #ruby
lolmaus has joined #ruby
crodas has joined #ruby
Guest10501 has quit [Quit: Guest10501]
burgestrand has joined #ruby
lolmaus has quit [Client Quit]
lolmaus has joined #ruby
theRoUS has quit [Ping timeout: 252 seconds]
ryanf has joined #ruby
tehlulz has quit [Ping timeout: 244 seconds]
austinbv has quit [Quit: WeeChat 0.3.8]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
rakl has joined #ruby
butblack has quit [Quit: butblack]
Jonah11_ has quit [Ping timeout: 248 seconds]
rippa has joined #ruby
xpen has quit [Ping timeout: 256 seconds]
justinmcp has quit [Remote host closed the connection]
stephenjudkins has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
kkh has quit [Read error: Connection reset by peer]
emergion has joined #ruby
artem has joined #ruby
fyolnish has joined #ruby
artnez has quit [Ping timeout: 246 seconds]
mvangala has quit [Read error: Connection reset by peer]
_bart has quit [Read error: Connection reset by peer]
r0bby has joined #ruby
mvangala has joined #ruby
_bart has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
Guest48447 has quit [Quit: Leaving]
xpen has joined #ruby
jbpros has quit [Ping timeout: 245 seconds]
JonnieCache has quit [Ping timeout: 260 seconds]
KindTwo has quit [Ping timeout: 260 seconds]
slainer68 has joined #ruby
jbpros has joined #ruby
Ry_ has joined #ruby
gnnr has joined #ruby
tchebb has quit [Read error: Connection reset by peer]
tchebb has joined #ruby
slainer68 has quit [Ping timeout: 248 seconds]
joeycarmello has joined #ruby
zommi has joined #ruby
answer_42 has joined #ruby
tchebb has quit [Ping timeout: 244 seconds]
fantazo has joined #ruby
AlbireoX has quit [Remote host closed the connection]
werdnativ has joined #ruby
Xeago has joined #ruby
d2dchat has joined #ruby
vectorshelve has joined #ruby
KindOne has joined #ruby
<vectorshelve> how to improve on this working yet crappy class#create -> https://gist.github.com/4023073 ... thanks
cyong has quit [Quit: Leaving.]
joeycarmello has quit [Ping timeout: 256 seconds]
fantazo has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
<Paradox> grand ma
Ry_ has quit [Read error: Connection reset by peer]
Ry__ has joined #ruby
cyong has joined #ruby
hackerdude has quit [Remote host closed the connection]
crackfu has joined #ruby
Tania has joined #ruby
skcin7 has quit []
samuel02 has joined #ruby
pu22l3r has quit [Ping timeout: 265 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
cyong has quit [Client Quit]
cyong has joined #ruby
cyong has quit [Client Quit]
BryanWB_ has joined #ruby
KindOne has quit [Changing host]
KindOne has joined #ruby
KindOne is now known as KindTwo
<BryanWB_> is there an easy library to output colored output to the terminal?
pyx has joined #ruby
<reactormonk> BryanWB_, sure, look for 'ansi-color'
<BryanWB_> reactormonk: awesome, tks
Mon_Ouie has quit [Ping timeout: 244 seconds]
theRoUS has quit [Ping timeout: 245 seconds]
nyrb has quit [Remote host closed the connection]
nyrb has joined #ruby
nyrb has quit [Remote host closed the connection]
nyrb has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
theRoUS has joined #ruby
dhruvasagar has joined #ruby
tintin has joined #ruby
<tintin> Is def initialize the ruby constructor method?
<waxjar> yes
<tintin> Is there any destructor method for ruby?
<tintin> Is there any built-in new method for ruby? like def new() .. end ?
Ry__ has quit [Ping timeout: 244 seconds]
BoomCow has quit [Quit: This computer has gone to sleep]
emergion has joined #ruby
icooba has joined #ruby
krz has joined #ruby
vectorshelve has left #ruby [#ruby]
<waxjar> it's a class method on Object
<waxjar> *BasicObject
punkrawkR has quit [Read error: Connection reset by peer]
aganov has joined #ruby
monkegji_ has joined #ruby
<tintin> But why don't i see the new method in class?
<tintin> cust1=Customer.new("1", "John", "Wisdom Apartments, Ludhiya")
<tintin> Where is new method inside class?
<waxjar> there's a difference between class methods and instance methods. class methods you call on a class (Customer.method) and instance methods you call on the instance a class (x = Y.new; x.method)
<waxjar> the class method new (automatically available, because every object is a child of BasicObject) calls the instance method initialise (also automatically)
<tintin> Customer.new("1", "John", "Wisdom Apartments, Ludhiya")
<tintin> Where is that .new method?
<tintin> Which method does this .new method call?
<waxjar> [08:19:02] <waxjar> the class method new (automatically available, because every object is a child of BasicObject) calls the instance method initialise (also automatically)
<tintin> Where is BasicObject.new method?
<tintin> Which function/method is called after Customer.new?
<waxjar> it's not very important if you're just starting out, #initialize gets called when you make a new instance of a class
ryanlecompte has quit [Remote host closed the connection]
SirRamon_ has quit [Remote host closed the connection]
maesbn has joined #ruby
artem has quit [Remote host closed the connection]
<waxjar> i don't know
artnez has joined #ruby
tintin has quit [Quit: leaving]
<waxjar> :s
caleb_io has joined #ruby
k610 has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
answer_42 has quit [Ping timeout: 276 seconds]
swex has joined #ruby
gmci has joined #ruby
senny has joined #ruby
rakl has quit [Quit: gone]
rodayo_ has joined #ruby
<rodayo_> How do you replace a space in a string with "\ " (a slash followed by a space) ?
k610 has quit [Ping timeout: 256 seconds]
timonv has joined #ruby
k610 has joined #ruby
arturaz has joined #ruby
wchun has quit [Ping timeout: 268 seconds]
ananthakumaran1 has joined #ruby
rippa has quit [Ping timeout: 248 seconds]
k610 has quit [Ping timeout: 264 seconds]
ananthakumaran has quit [Ping timeout: 248 seconds]
brianpWins has joined #ruby
k610 has joined #ruby
k610 has quit [Ping timeout: 260 seconds]
jozefk has joined #ruby
kil0byte has quit [Remote host closed the connection]
slainer68 has joined #ruby
zigomir has joined #ruby
d2dchat has quit [Remote host closed the connection]
wallerdev has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
rich__ has quit [Ping timeout: 276 seconds]
wallerdev has quit [Client Quit]
gmci has joined #ruby
Ry_ has joined #ruby
vlad_starkov has joined #ruby
yshh has quit [Read error: Connection reset by peer]
slainer68 has quit [Ping timeout: 260 seconds]
yshh has joined #ruby
Morkel has joined #ruby
sn0wb1rd_ has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
Morkel has quit [Client Quit]
sn0wb1rd has quit [Ping timeout: 252 seconds]
sn0wb1rd_ is now known as sn0wb1rd
wchun has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Morkel has joined #ruby
gmci has joined #ruby
gmci has quit [Client Quit]
gmci has joined #ruby
anderse has joined #ruby
Ry_ has quit [Ping timeout: 240 seconds]
gmci has quit [Client Quit]
emergion has quit [Quit: Computer has gone to sleep.]
gmci has joined #ruby
eldariof has joined #ruby
<burgestrand> rodayo_: "hello world cool".gsub(" ", '\\ ')
qwerxy has joined #ruby
workmad3 has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
fms has joined #ruby
jgrevich has quit [Quit: jgrevich]
filipe_ has joined #ruby
gmci has joined #ruby
timmillwood has joined #ruby
anderse has quit [Quit: anderse]
xorigin has joined #ruby
rodayo_ has quit [Quit: Page closed]
xpen has quit [Remote host closed the connection]
artnez has quit [Quit: artnez]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
xpen has joined #ruby
xpen has quit [Remote host closed the connection]
artnez has joined #ruby
xpen has joined #ruby
xpen has quit [Remote host closed the connection]
xpen has joined #ruby
dekroning has joined #ruby
k610 has joined #ruby
vlad_sta_ has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
vectorshelve has joined #ruby
<vectorshelve> is there a way I can improve this session_controller#create https://gist.github.com/4023403 the code works but I am afraid I have too many repetative redirects and common lines of code.
artnez has quit [Client Quit]
gmci has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
xpen has quit [Ping timeout: 244 seconds]
gmci has quit [Client Quit]
workmad3 has quit [Ping timeout: 260 seconds]
hotovson has joined #ruby
icole has quit [Read error: Connection reset by peer]
gmci has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
fms has quit [Quit: Lost terminal]
hoelzro|away is now known as hoelzro
awestroke has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
mneorr has quit [Remote host closed the connection]
yshh has quit [Ping timeout: 246 seconds]
mneorr has joined #ruby
hamed_r has joined #ruby
kil0byte has joined #ruby
piotr_ has joined #ruby
yshh has joined #ruby
bradhe has quit [Remote host closed the connection]
zigomir_ has joined #ruby
xpen has joined #ruby
casheew has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
bradhe has quit [Remote host closed the connection]
Xeago has joined #ruby
zigomir has quit [Ping timeout: 276 seconds]
casheew has joined #ruby
casheew has quit [Read error: Connection reset by peer]
savage- has quit [Quit: savage-]
nemesit has joined #ruby
JonnieCache has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
gmci has joined #ruby
Experium has quit [Quit: Ex-Chat]
arietis has joined #ruby
Elhu has joined #ruby
ZubKonst has quit [Ping timeout: 240 seconds]
AndChat| has quit [Ping timeout: 260 seconds]
casheew has joined #ruby
qwerxy has quit [Quit: offski]
kyktommy has quit [Quit: kyktommy]
gmci has quit [Quit: Computer has gone to sleep.]
edwardj has joined #ruby
elico has joined #ruby
gmci has joined #ruby
gmci has quit [Client Quit]
maxer has joined #ruby
ZubKonst has joined #ruby
gmci has joined #ruby
gmci has quit [Client Quit]
gmci has joined #ruby
jimeh has joined #ruby
elico has quit [Client Quit]
gmci has quit [Client Quit]
gmci has joined #ruby
anderse has joined #ruby
d3vic3 has quit [Quit: leaving]
ryanf has quit [Ping timeout: 248 seconds]
ij has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
Erfankam has joined #ruby
vlad_sta_ has quit [Ping timeout: 260 seconds]
Araxia has quit [Quit: Araxia]
casheew has quit [Read error: Connection reset by peer]
elaptics`away is now known as elaptics
casheew has joined #ruby
artOfWar has quit [Ping timeout: 256 seconds]
kil0byte has quit [Ping timeout: 255 seconds]
adeponte has quit [Remote host closed the connection]
Iszak has joined #ruby
Iszak has quit [Changing host]
Iszak has joined #ruby
casheew has quit [Read error: Connection reset by peer]
kil0byte has joined #ruby
casheew has joined #ruby
casheew has quit [Read error: Connection reset by peer]
dogweather has joined #ruby
colinbm has joined #ruby
bradhe has joined #ruby
mmitchel_ has joined #ruby
mklappstuhl has joined #ruby
daniel_- has joined #ruby
moted has quit [Ping timeout: 260 seconds]
casheew has joined #ruby
piotr_ has quit [Ping timeout: 240 seconds]
mmitchell has quit [Ping timeout: 256 seconds]
xpen has quit [Remote host closed the connection]
gmci has quit [Quit: Computer has gone to sleep.]
xpen has joined #ruby
elentras has joined #ruby
pyx has quit [Quit: Leaving]
casheew has quit [Read error: Connection reset by peer]
Ry_ has joined #ruby
gmci has joined #ruby
gmci has quit [Client Quit]
koshii has quit [Ping timeout: 248 seconds]
slainer68 has joined #ruby
koshii has joined #ruby
BadLarry has quit [Ping timeout: 256 seconds]
casheew has joined #ruby
gmci has joined #ruby
gmci has quit [Client Quit]
rburton- has quit [Quit: Linkinus - http://linkinus.com]
gmci has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
casheew has quit [Read error: Connection reset by peer]
und3f has joined #ruby
emergion has joined #ruby
BadLarry has joined #ruby
casheew has joined #ruby
richardjapenga has joined #ruby
mklappstuhl has quit [Ping timeout: 240 seconds]
moted has joined #ruby
hbpoison has joined #ruby
dakine has quit [Quit: Leaving]
casheew has quit [Read error: Connection reset by peer]
gmci has quit [Quit: Computer has gone to sleep.]
skum has joined #ruby
awestroke has quit [Remote host closed the connection]
hbpoison has quit [Read error: Connection reset by peer]
thinkdevcode has quit [Remote host closed the connection]
gmci has joined #ruby
cezar has joined #ruby
casheew has joined #ruby
mahmoudimus has joined #ruby
cezar has quit [Client Quit]
cezar-b has joined #ruby
awestroke has joined #ruby
manizzle has quit [Ping timeout: 276 seconds]
cezar_ has joined #ruby
cezar-b has quit [Client Quit]
stephenjudkins has quit [Quit: stephenjudkins]
cezar_ has left #ruby [#ruby]
Virunga has joined #ruby
hbpoison has joined #ruby
caleb_io has quit [Quit: caleb_io]
D4T has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
r0bby has quit [Quit: Konversation terminated!]
reinaldob has joined #ruby
roadt_ has quit [Ping timeout: 244 seconds]
GeekOnCoffee has quit [Ping timeout: 244 seconds]
casheew has quit [Read error: Connection reset by peer]
fyolnish has quit [Remote host closed the connection]
casheew has joined #ruby
ephemerian has joined #ruby
GeekOnCoffee has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
tvw has joined #ruby
anderse has quit [Quit: anderse]
morf has joined #ruby
esya has joined #ruby
gmci has joined #ruby
Banistergalaxy has joined #ruby
Jonah11_ has joined #ruby
nari has quit [Ping timeout: 260 seconds]
gmci has quit [Client Quit]
bradhe has quit [Ping timeout: 256 seconds]
casheew has quit [Read error: Connection reset by peer]
clocKwize has joined #ruby
gmci has joined #ruby
casheew has joined #ruby
jds__ is now known as jds
elico has joined #ruby
manizzle has joined #ruby
F1skr has joined #ruby
casheew has quit [Read error: Connection reset by peer]
AndChat| has joined #ruby
rafter has joined #ruby
Banistergalaxy has quit [Ping timeout: 244 seconds]
chussenot has joined #ruby
Banistergalaxy has joined #ruby
dzhulk has joined #ruby
casheew has joined #ruby
marius has quit []
AndChat| has quit [Ping timeout: 244 seconds]
cdt has joined #ruby
workmad3 has joined #ruby
hbpoison has quit [Ping timeout: 252 seconds]
kil0byte_ has joined #ruby
rafter has quit [Remote host closed the connection]
gmci has quit [Quit: Computer has gone to sleep.]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
gmci has joined #ruby
eataix has joined #ruby
adambeynon has joined #ruby
kil0byte has quit [Ping timeout: 255 seconds]
manizzle has quit [Remote host closed the connection]
aetcore has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 244 seconds]
Banistergalaxy has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
casheew has quit [Read error: Connection reset by peer]
qwerxy has joined #ruby
arkiver has joined #ruby
casheew has joined #ruby
<ij> Can I delegate methods like activerecord does it(or similarily) with plain ruby? I basically want automagic for def foo; attribute.foo;
<ij> end
ash__ has joined #ruby
vlad_starkov has joined #ruby
Slivka has joined #ruby
ash__ has left #ruby [#ruby]
emergion has quit [Ping timeout: 244 seconds]
emergion has joined #ruby
casheew has quit [Read error: Connection reset by peer]
ryanf has joined #ruby
samphippen has joined #ruby
lele has quit [Quit: Coyote finally caught me]
casheew has joined #ruby
<timmillwood> Anyone tried ruby 2.0 yet?
casheew has quit [Read error: Connection reset by peer]
yshh has quit [Read error: No route to host]
aetcore has joined #ruby
yshh has joined #ruby
BryanWB_ has left #ruby [#ruby]
lkba has quit [Ping timeout: 248 seconds]
ryanf has quit [Ping timeout: 255 seconds]
bradhe has joined #ruby
timmow has joined #ruby
casheew has joined #ruby
_bart has quit [Quit: _bart]
GeekOnCoffee has quit [Ping timeout: 272 seconds]
lele has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
GeekOnCoffee has joined #ruby
emergion has quit [Read error: Operation timed out]
anderse has joined #ruby
casheew has quit [Read error: Connection reset by peer]
gmci has joined #ruby
kil0byte has joined #ruby
casheew has joined #ruby
edwardj has quit [Remote host closed the connection]
kil0byte_ has quit [Ping timeout: 260 seconds]
casheew has quit [Read error: Connection reset by peer]
aetcore has quit [Ping timeout: 240 seconds]
senny has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
rdark has joined #ruby
casheew has joined #ruby
dzhulk has quit [Ping timeout: 265 seconds]
scx has joined #ruby
emergion has joined #ruby
casheew has quit [Read error: Connection reset by peer]
dzhulk has joined #ruby
emergion has quit [Client Quit]
casheew has joined #ruby
daniel_- has quit [Quit: WeeChat 0.3.9]
lele has quit [Remote host closed the connection]
lele has joined #ruby
filipe_ has quit [Ping timeout: 248 seconds]
Banistergalaxy has quit [Ping timeout: 252 seconds]
d3vic3 has joined #ruby
bradhe has quit [Ping timeout: 244 seconds]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<a_a_g> what is -%> in erb? I saw it in a code I was reading
<elentras> looks like closing tag of rails 2.x
<Muz> It's a pre-Rails 3-ism.
<Muz> It ensured against excessive spaces after the rendered content, instead only displaying a single space.
<Muz> <%- would suppress whitespace before the rendered code block.
gmci has quit [Quit: Computer has gone to sleep.]
tvw has quit [Remote host closed the connection]
filipe has joined #ruby
zaki[] has quit [Read error: Operation timed out]
gmci has joined #ruby
xpen has quit [Remote host closed the connection]
jjang has quit [Remote host closed the connection]
zz_chrismcg is now known as chrismcg
crackfu has quit [Remote host closed the connection]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
chussenot has quit [Quit: chussenot]
chendo_ has quit [Ping timeout: 252 seconds]
Banistergalaxy has joined #ruby
shiin has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
alanp has quit [Remote host closed the connection]
chendo_ has joined #ruby
alanp has joined #ruby
mengu has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
chussenot has joined #ruby
gmci has joined #ruby
lkba has joined #ruby
gmci has quit [Client Quit]
<shevy> rails scares me
swex has quit [Read error: Operation timed out]
<ij> shevy, With what? Why is it scaring you?
casheew has quit [Read error: Connection reset by peer]
gmci has joined #ruby
casheew has joined #ruby
Xeago has quit [Remote host closed the connection]
<shevy> it's almost bigger than ruby itself :(
casheew has quit [Read error: Connection reset by peer]
zaki[] has joined #ruby
swex has joined #ruby
<shevy> it's that little thing in your body that starts to grow slowly and slowly you know? until it becomes so big that it TAKES OVER completely
<eph3meral> besides, there's #rubyonrails if you actually have a rails question
tehlulz has joined #ruby
Xeago has joined #ruby
emergion has joined #ruby
Averna has joined #ruby
<shevy> that's even scarier
casheew has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
schaary has joined #ruby
gmci has joined #ruby
gmci has quit [Client Quit]
darthdeus has joined #ruby
kil0byte_ has joined #ruby
gmci has joined #ruby
kapowaz has quit [Remote host closed the connection]
samphippen has joined #ruby
kapowaz has joined #ruby
bradhe has joined #ruby
<workmad3> shevy: are you saying that all us drones in the #rubyonrails collective are scary? :( that's upset us :(
<shevy> yeah
<shevy> you talk about scary things
<shevy> webapps
<workmad3> heh
<shevy> keeping them alive
<shevy> and you ALL are going into rails
<shevy> see apeiros!
<workmad3> I know, I've seen apeiros there a few times recently :)
kil0byte has quit [Ping timeout: 264 seconds]
gmci has quit [Client Quit]
hbpoison has joined #ruby
<shevy> well, I mean his job involves rails too. it's like you need to know rails these days
eataix has quit [Quit: ZNC - http://znc.in]
lucaspiller has quit [Remote host closed the connection]
<scx> how to replace '\' with '\\' using gsub?
gmci has joined #ruby
darthdeus has quit [Read error: Connection reset by peer]
Dwarf has quit [Ping timeout: 246 seconds]
lucaspiller_ has joined #ruby
margle has joined #ruby
<shevy> scx I usually try it until it works, in IRB
darthdeus has joined #ruby
gmci has quit [Client Quit]
<shevy> x = 'abc\def'.gsub(/\\/,'\\\\\\') # => "abc\\\\def" puts x # "abc\\def"
<shevy> could be some more or some less, I dont know :)))
Dwarf has joined #ruby
gmci has joined #ruby
<workmad3> .gsub(/(\\)/, '\1\\')
<scx> shevy: yes, two slash works for me, thanks
zooz has joined #ruby
<zooz> hi guys
<zooz> how do I scan directories recursively with rdoc?
dekroning has quit [Ping timeout: 252 seconds]
anderse has quit [Quit: anderse]
casheew has quit [Read error: Connection reset by peer]
darthdeus has quit [Read error: Connection reset by peer]
casheew has joined #ruby
ABK has joined #ruby
Edward__ has quit [Ping timeout: 244 seconds]
fir_ed has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 256 seconds]
GranMal has joined #ruby
Banistergalaxy has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
Banistergalaxy has joined #ruby
Xeago has quit [Remote host closed the connection]
Banistergalaxy has quit [Read error: Connection reset by peer]
berserkr has joined #ruby
Banistergalaxy has joined #ruby
Zai00 has joined #ruby
esya has quit [Quit: esya]
dekroning has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
roadt_ has joined #ruby
mneorr has quit [Ping timeout: 265 seconds]
zommi has quit [Ping timeout: 244 seconds]
<shevy> dunno... in pure ruby you could use Dir['**/**' ]
casheew has quit [Read error: Connection reset by peer]
hoelzro is now known as hoelzro|away
casheew has joined #ruby
casheew has quit [Read error: Connection reset by peer]
cousine has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
hamed_r has quit [Ping timeout: 244 seconds]
k610 has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Remote host closed the connection]
casheew has joined #ruby
cousine has quit [Remote host closed the connection]
k610 has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
shiin has quit [Ping timeout: 244 seconds]
casheew has quit [Read error: Connection reset by peer]
kil0byte_ has quit [Ping timeout: 246 seconds]
gmci has joined #ruby
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
shiin has joined #ruby
kil0byte has joined #ruby
mikecmpbll has joined #ruby
bier has quit [Ping timeout: 265 seconds]
<scx> i want to read file; i tried open(filename).each do |line| #SOMETHING# end but ruby say, that file does have method 'each'
casheew has joined #ruby
esya has joined #ruby
<scx> it works with old ruby, but not 1.9.2
u89 has joined #ruby
zommi has joined #ruby
justsee has quit [Quit: Leaving...]
blacktulip has joined #ruby
leoncamel has joined #ruby
heisenmink has joined #ruby
esya has quit [Quit: esya]
gmci has quit [Quit: Computer has gone to sleep.]
<scx> ok, while (l = f.gets) works for me
gmci has joined #ruby
fir_ed has joined #ruby
Edward__ has joined #ruby
emergion has quit [Remote host closed the connection]
iori has joined #ruby
awestroke has quit [Ping timeout: 252 seconds]
emergion has joined #ruby
AndChat| has joined #ruby
bairui has quit [Ping timeout: 248 seconds]
bier has joined #ruby
Banistergalaxy has quit [Ping timeout: 252 seconds]
skaczor has joined #ruby
iori has quit [Ping timeout: 240 seconds]
gener1c has joined #ruby
gener1c has quit [Changing host]
gener1c has joined #ruby
<gener1c> is there a way to do grep -v in ruby?
rtt has joined #ruby
GranMal has quit [Quit: GranMal]
rtt has quit [Client Quit]
baphled has joined #ruby
hbpoison has joined #ruby
aetcore has joined #ruby
iori has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
erichmenge has joined #ruby
kil0byte_ has joined #ruby
<elentras> --trace ?
alup has quit [Remote host closed the connection]
gmci has joined #ruby
Banistergalaxy has joined #ruby
<gener1c> huh?
heisenmink has quit [Remote host closed the connection]
<elentras> oops, i'm talking about ruby script.
zooz has left #ruby ["Leaving"]
esya has joined #ruby
larissa has joined #ruby
bairui has joined #ruby
chussenot has quit [Quit: chussenot]
arkiver has quit [Quit: Leaving]
bradhe has joined #ruby
dogweather has quit [Read error: No route to host]
AndChat| has quit [Ping timeout: 256 seconds]
kil0byte has quit [Ping timeout: 252 seconds]
dogweather has joined #ruby
dogweather has quit [Client Quit]
<gener1c> what i basically want to do is run over a string with gsub and have a blacklist of certain things i dont want to change
slainer68 has quit [Remote host closed the connection]
<gener1c> i made a regex that matches what i dont want to change already
samuel02 has quit [Remote host closed the connection]
aetcore_ has joined #ruby
kil0byte has joined #ruby
<gener1c> the issue is that the matches i do want to change are substrings of what i dont want to change
[Neurotic] has quit [Remote host closed the connection]
<gener1c> if that makes any sense
gmci has quit [Quit: Computer has gone to sleep.]
awestroke has joined #ruby
esya has quit [Quit: esya]
GranMal has joined #ruby
kil0byte_ has quit [Ping timeout: 248 seconds]
gmci has joined #ruby
aetcore has quit [Ping timeout: 244 seconds]
u89 has quit [Remote host closed the connection]
aetcore_ has quit [Client Quit]
aetcore has joined #ruby
kil0byte_ has joined #ruby
<gener1c> here is what im doing
<gener1c> >> "a234 23".scan(/(?<![abc])\d+/)
<gener1c> => ["34", "23"]
<gener1c> i just wanted to catch 23
anderse has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
<gener1c> what regex will make sure all of 234 stays out?
leoncamel has quit [Remote host closed the connection]
kil0byte has quit [Ping timeout: 252 seconds]
rafter has joined #ruby
erichmenge has quit [Quit: Be back later]
sagax has quit [Ping timeout: 260 seconds]
erichmenge has joined #ruby
tehlulz has quit [Quit: tehlulz]
AlbireoX has joined #ruby
AndChat| has joined #ruby
carloslopes has joined #ruby
<elentras> (?<![abc])(\d+$)
tvw has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<elentras> but i'm getting 2 time the result look strange, I make a mistake
<vectorshelve> I created a migration for creating a new model.. it worked.. but when I try checking in the console.. it says uninitialized constant
Zai00 has quit [Quit: Zai00]
Banistergalaxy has quit [Ping timeout: 256 seconds]
<gener1c> "a234 23".scan(/(?<![abc])\d+$/)
gmci has quit [Quit: Computer has gone to sleep.]
<elentras> yes you're right
<gener1c> no its wrong
<gener1c> swap them around
<gener1c> "23 a234".scan(/(?<![abc])\d+$/)
<gener1c> :)
tehlulz has joined #ruby
fir_ed has quit [Ping timeout: 264 seconds]
Edward__ has quit [Ping timeout: 264 seconds]
tehlulz has quit [Client Quit]
dougiebuckets has joined #ruby
gmci has joined #ruby
<elentras> yes that's better
<workmad3> gener1c: /\b?<![abc])\d+\b/
AlbireoX has quit [Ping timeout: 245 seconds]
krz has quit [Quit: krz]
kjellski has joined #ruby
<gener1c> what is that \b i read alot about it but i still cant figure it out
horofox has joined #ruby
<workmad3> gener1c: it'll basically match the non-character between a whitespace character and a non-whitespace character
fermion has joined #ruby
<workmad3> gener1c: so if you surround your regex with \b \b then you'll match whole words (as in whitespace delimited stuff) without matching the whitespace
<gener1c> there is such a thing?!
<workmad3> gener1c: it basically anchors your string, similarly to ^ and $ :)
cousine has joined #ruby
<gener1c> so what would be a non-character?
JustinCampbell has joined #ruby
<elentras> non-printable ?
<workmad3> gener1c: well, think about ^, what does that match?
<gener1c> the beginning of a line
<elentras> begin with
<workmad3> gener1c: which isn't a character
<gener1c> so there is a non character that marks the beginning and ending of a word
senny has joined #ruby
<workmad3> it's the bit 'between' an end of line character '\n' and the next character
<workmad3> it's not actually a character
<workmad3> it's not represented in the byte-stream in any appreciable way, but you can still match on it
<gener1c> so \b is the nonechar between . and \s
awestroke has quit [Remote host closed the connection]
<workmad3> essentially :)
<gener1c> nice!
<workmad3> although not '.', because that matches whitespace too
<gener1c> ah then
<gener1c> \w
<workmad3> but it matches between the characters rather than on a character
danshultz has joined #ruby
<workmad3> so you don't capture the whitespace in your match
bitZero__ has quit [Read error: Connection reset by peer]
Zai00 has joined #ruby
kjellski has quit [Quit: This computer has gone to sleep]
iamjarvo has joined #ruby
<waxjar> cheers workmad3, i didn't know that.
<workmad3> and also don't need to work out wth to do when you surround your regex with whitespace and then should have two matches in a row (but don't because the single ' ' can only be matched once)
bradhe has quit [Ping timeout: 255 seconds]
<gener1c> workmad3: it doesnt work for <>
emergion has quit [Quit: Computer has gone to sleep.]
<workmad3> this worked with your example string for me (my first attempt had unbalanced () because I was stupid :) ) /\b(?<![abc])\d+\b/
awestroke has joined #ruby
<gener1c> " <> 3 ".scan(/\b\<>\b/)
<gener1c> :/
hamed_r has joined #ruby
mmitchel_ has quit [Remote host closed the connection]
<gener1c> why is that?
Zai00 has quit [Client Quit]
<workmad3> gener1c: the docs say '\b' matches a word boundary... so I'm guessing it's more specific than just whitespace/nonwhitespace
<gener1c> oh my
somazero has joined #ruby
sepp2k has joined #ruby
tehlulz has joined #ruby
rippa has joined #ruby
srji has joined #ruby
<workmad3> gener1c: have a play ;) http://rubular.com/
gmci has quit [Quit: Computer has gone to sleep.]
<gener1c> yeah im there
anderse has quit [Remote host closed the connection]
PraiseChaos has joined #ruby
<workmad3> \b is described in the quick ref
pavilionXP has joined #ruby
<gener1c> i see it, but your explenation was alot more eye opening :)
<gener1c> thank you
gmci has joined #ruby
<workmad3> np :) there's only so much a quick reference can get across, and the concept of 'matching between characters' is really beyond it :)
gmci has quit [Client Quit]
erichmenge has quit [Quit: Be back later]
Slivka has quit [Read error: Connection reset by peer]
Slivka has joined #ruby
answer_42 has joined #ruby
gmci has joined #ruby
gmci has quit [Client Quit]
jeffreybaird has joined #ruby
gmci has joined #ruby
eph3meral has quit [Quit: eph3meral]
hoelzro|away is now known as hoelzro
jenrzzz has joined #ruby
colinbm has quit [Quit: colinbm]
casheew has quit [Read error: Connection reset by peer]
samphippen has joined #ruby
wereHamster has quit [Ping timeout: 256 seconds]
gregorg has joined #ruby
gregorg has quit [Changing host]
gregorg has joined #ruby
k610 has quit [Ping timeout: 244 seconds]
casheew has joined #ruby
chussenot has joined #ruby
casheew has quit [Read error: Connection reset by peer]
k610 has joined #ruby
zigomir_ is now known as zigomir
aetcore has quit [Ping timeout: 240 seconds]
tehlulz has quit [Quit: tehlulz]
gmci has quit [Quit: Computer has gone to sleep.]
colinbm has joined #ruby
erichmenge has joined #ruby
casheew has joined #ruby
gmci has joined #ruby
GranMal has quit [Quit: GranMal]
erichmenge has quit [Client Quit]
edwardj has joined #ruby
casheew has quit [Read error: Connection reset by peer]
jlwestsr has joined #ruby
somazero has quit [Quit: Leaving]
bobu has joined #ruby
casheew has joined #ruby
<dougiebuckets> anyone by chance have thoughts regarding this routing error I am getting in the context of an audio jPlayer pointing to an mp3? http://stackoverflow.com/questions/13246405/jplayer-javascript-in-rails-layout-is-causing-routing-error
margle has quit [Quit: Computer has gone to sleep.]
casheew has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
GranMal has joined #ruby
margle has joined #ruby
jozefk has quit [Ping timeout: 255 seconds]
bradhe has joined #ruby
sailias has joined #ruby
<Hanmac> dougiebuckets this is not the rails channel ...
casheew has joined #ruby
<dougiebuckets> lolo, oops. haven't slept in some while
dougiebuckets has left #ruby [#ruby]
dougiebuckets has joined #ruby
dougiebuckets has left #ruby [#ruby]
casheew has quit [Read error: Connection reset by peer]
tatsuya_o has joined #ruby
MrSamuel has joined #ruby
schaary has quit [Quit: Leaving.]
<charliesome> is anyone able to tell me what the rb_vm_cref() function does?
gmci has quit [Quit: Computer has gone to sleep.]
gmci has joined #ruby
ABK has quit [Read error: Connection reset by peer]
Banistergalaxy has joined #ruby
sailias has quit [Quit: Leaving.]
samphippen has quit [Quit: Computer has gone to sleep.]
ffranz has joined #ruby
tchebb has joined #ruby
AndChat| has quit [Ping timeout: 252 seconds]
gmci has quit [Client Quit]
casheew has joined #ruby
vectorshelve has quit [Quit: Page closed]
Banistergalaxy has quit [Read error: Connection reset by peer]
gmci has joined #ruby
casheew has quit [Read error: Connection reset by peer]
paolooo has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
slainer68 has joined #ruby
bobu has quit [Read error: Connection reset by peer]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
kil0byte has joined #ruby
x0F_ is now known as x0F
Uranio has joined #ruby
pavilionXP has quit [Quit: Forget progress by proxy. Land on your own moon.]
wereHamster has joined #ruby
ttt has quit [Remote host closed the connection]
casheew has joined #ruby
wereHamster has quit [Changing host]
wereHamster has joined #ruby
pjb3 has joined #ruby
slainer68 has quit [Ping timeout: 244 seconds]
kil0byte_ has quit [Ping timeout: 256 seconds]
slainer68 has joined #ruby
x0F_ has joined #ruby
x0F has quit [Disconnected by services]
maxer has quit [Quit: maxer]
x0F_ is now known as x0F
casheew has quit [Read error: Connection reset by peer]
gmci has quit [Quit: Computer has gone to sleep.]
casheew has joined #ruby
ltsstar has joined #ruby
etank has joined #ruby
gmci has joined #ruby
kil0byte_ has joined #ruby
gmci has quit [Client Quit]
gmci has joined #ruby
iPhoneMRZ has joined #ruby
kil0byte has quit [Ping timeout: 260 seconds]
margle has quit [Quit: Computer has gone to sleep.]
sailias has joined #ruby
sagax has joined #ruby
yalue has joined #ruby
yxhuvud has quit [Ping timeout: 276 seconds]
margle has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
`brendan has joined #ruby
mark_locklear has joined #ruby
paolooo has quit [Quit: Page closed]
sailias has quit [Quit: Leaving.]
hbpoison has quit [Ping timeout: 252 seconds]
casheew has quit [Read error: Connection reset by peer]
iPhoneMRZ has quit [Remote host closed the connection]
casheew has joined #ruby
iPhoneMRZ has joined #ruby
casheew has quit [Read error: Connection reset by peer]
thecreators has joined #ruby
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
Averna has quit [Quit: Leaving.]
gmci has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: Computer has gone to sleep.]
gmci has joined #ruby
rafter has quit [Remote host closed the connection]
k610 has quit [Quit: Instantbird 1.2 -- http://www.instantbird.com]
nuvan has joined #ruby
casheew has joined #ruby
<nuvan> hey experts...anyone knows well Object "send" method?
<nuvan> I'm trying to use it, sending a method that returns an CustomException
Banistergalaxy has joined #ruby
<hoelzro> nuvan: do you have som example code?
<hoelzro> and do you mean that it throws a CustomException? or does it actually return it?
<nuvan> I'm sorry...it throws a CustomException
adac has joined #ruby
esya has joined #ruby
<adac> Coould someone plese linke me to a good example for to start a deamon via init.d script?
<nuvan> the problem is that I've also overridden method_missing
rafter has joined #ruby
<nuvan> and if I surround the send call with begin rescue
<nuvan> the exception CustomException generates a call to method_missing
<nuvan> also
iPhoneMRZ has quit [Remote host closed the connection]
gmci has quit [Quit: Computer has gone to sleep.]
BSaboia has joined #ruby
<hoelzro> nuvan: hang on...could you paste this code somewhere, please?
<hoelzro> it will be much easier to reason about it if we can see it
<nuvan> sure..can I paste it to u'r private?
<nuvan> or right here?
gmci has joined #ruby
alek_b has quit [Remote host closed the connection]
BSaboia__ has joined #ruby
<hoelzro> in a pastebin, please
Tania has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
taip has joined #ruby
<taip> ciao
mmitchell has joined #ruby
taip has left #ruby [#ruby]
BSaboia has quit [Ping timeout: 255 seconds]
mikecmpbll has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
alup has joined #ruby
horofox has quit [Quit: horofox]
mmitchell has quit [Ping timeout: 244 seconds]
Erfankam has quit [Quit: Leaving.]
Banistergalaxy has quit [Ping timeout: 244 seconds]
gmci has quit [Quit: Computer has gone to sleep.]
maesbn has quit [Read error: Connection reset by peer]
sertaconay has joined #ruby
tommyvyo_ has joined #ruby
bradhe has joined #ruby
kjellski has joined #ruby
gmci has joined #ruby
casheew has quit [Read error: Connection reset by peer]
gmci has quit [Client Quit]
gmci has joined #ruby
Axsuul has quit [Ping timeout: 248 seconds]
chrismcg is now known as zz_chrismcg
brunosaboia__ has joined #ruby
<nuvan> @hoelzro
UdontKnow is now known as root
kil0byte has joined #ruby
danshultz has quit [Remote host closed the connection]
<nuvan> btw I'm testing with 1.9.2p290
<hoelzro> nuvan: I think you're missing a comma on line 11
<hoelzro> raise CustomException, 'here'
casheew has joined #ruby
invisime has joined #ruby
Banistergalaxy has joined #ruby
<hoelzro> also, if you want to catch CustomExceptions, you should probably tell your rescue handler that
<hoelzro> rescue => e won't cut it
kil0byte_ has quit [Ping timeout: 260 seconds]
BSaboia__ has quit [Ping timeout: 244 seconds]
paolooo has joined #ruby
<hoelzro> unless you make CustomException subclass StandardError
paolooo has quit [Client Quit]
a_a_g has quit [Quit: Leaving.]
horofox has joined #ruby
tk__ has joined #ruby
maesbn has joined #ruby
<burgestrand> Which you should.
casheew has quit [Read error: Connection reset by peer]
gmci has quit [Quit: Computer has gone to sleep.]
<nuvan> @hoelzro awesome! Thanks for the tips.
casheew has joined #ruby
<nuvan> I missed the ","...should have my yellow duck here
hbpoison has joined #ruby
<hoelzro> =)
gmci has joined #ruby
<nuvan> but I was ignoring the Exception hierarchy
samuel02 has joined #ruby
<nuvan> why should I inherit from StandartError?
<hoelzro> you don't *have* to
<hoelzro> but that's what "bare" rescues catch by default
<Hanmac> "rescue => e" without seting an exception class only resuces the children of StandardError
casheew has quit [Read error: Connection reset by peer]
neku has joined #ruby
<nuvan> ah! TIL moment
<adac> How to tell a ruby daemon to run in background?
<nuvan> thanks guys...going to refactor now :)
<Hanmac> adac depends on the daemon ... as far as i know ruby itself does not having any daemon
<adac> Hanmac, I use the "daemons" gem
filipe has quit [Ping timeout: 260 seconds]
<adac> Hanmac, I though ontop in the options might be to set to false
fantazo has joined #ruby
<adac> but that didnÄt work
postmodern has quit [Quit: Leaving]
casheew has joined #ruby
gmci has quit [Client Quit]
casheew has quit [Read error: Connection reset by peer]
robustus has quit [Ping timeout: 255 seconds]
gmci has joined #ruby
centipedefarmer has joined #ruby
vlad_starkov has joined #ruby
robustus has joined #ruby
<Hanmac> hm okay imo the demon-gem is shitty ... it uses "/dev/null" where it sould use File::NULL
aquaranto has joined #ruby
maesbn_ has joined #ruby
bbttxu has joined #ruby
<adac> Hanmac, do you know a better one maybe?
<Hanmac> no
casheew has joined #ruby
statarb3 has quit [Quit: Leaving]
<gener1c> in nokogiri is there a way to edit only the text of a parent without touching its children?
rippa has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
maesbn has quit [Ping timeout: 252 seconds]
jcaudle has joined #ruby
theRoUS has quit [Ping timeout: 240 seconds]
bradhe has quit [Ping timeout: 252 seconds]
AndChat| has joined #ruby
niklasb has joined #ruby
nanderoo has joined #ruby
<adac> Hanmac, fyi:
<adac> ruby myserver_control.rb run <---- starts in foreground
<adac> ruby myserver_control.rb start <---- starts in background
lkba has quit [Ping timeout: 268 seconds]
Banistergalaxy has quit [Ping timeout: 244 seconds]
csaunders has joined #ruby
awestroke has quit [Remote host closed the connection]
rippa has joined #ruby
jerius has joined #ruby
awestroke has joined #ruby
awestroke has quit [Remote host closed the connection]
ttt has joined #ruby
GranMal has quit [Quit: GranMal]
filipe has joined #ruby
kil0byte_ has joined #ruby
csaunders has quit [Client Quit]
hbpoison has quit [Ping timeout: 240 seconds]
AndChat| has quit [Ping timeout: 276 seconds]
k610 has joined #ruby
casheew has quit [Read error: Connection reset by peer]
awestroke has joined #ruby
hbpoison has joined #ruby
aetcore has joined #ruby
casheew has joined #ruby
kil0byte has quit [Ping timeout: 265 seconds]
carlyle has joined #ruby
Holek has joined #ruby
<Holek> moin
<Holek> does anybody know how can I remove a newline from Logger output?
ttt has quit [Ping timeout: 240 seconds]
lolmaus has quit []
forced_request has quit [Remote host closed the connection]
<waxjar> call strip on the string you want to log :)
hbpoison has quit [Read error: Connection reset by peer]
ananthakumaran1 has quit [Quit: Leaving.]
darthdeus has joined #ruby
Serial_Killer_C has joined #ruby
macabre has joined #ruby
joofsh has joined #ruby
aetcore has quit [Remote host closed the connection]
awestroke has quit [Ping timeout: 265 seconds]
cakehero has joined #ruby
hbpoison has joined #ruby
Villadelfia has quit [Remote host closed the connection]
SeySayux has quit [Remote host closed the connection]
hamed_r has quit [Remote host closed the connection]
srji has quit [Quit: leaving]
dmiller has quit [Ping timeout: 240 seconds]
Slivka has quit [Remote host closed the connection]
dmiller has joined #ruby
csaunders has joined #ruby
kpshek has joined #ruby
filipe has quit [Read error: Operation timed out]
samphippen has joined #ruby
Dreamer3 has joined #ruby
richardjapenga has quit [Read error: Connection reset by peer]
daniel_- has quit [Ping timeout: 244 seconds]
rippa has quit [Ping timeout: 248 seconds]
chussenot has quit [Quit: chussenot]
tpe11etier has joined #ruby
pjb3 has quit [Ping timeout: 244 seconds]
mikepack has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
forced_request has joined #ruby
mikepack has quit [Remote host closed the connection]
Holek has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
horofox has quit [Quit: horofox]
u89 has joined #ruby
Erfankam has joined #ruby
bwlang has joined #ruby
casheew has quit [Read error: Connection reset by peer]
mpereira has joined #ruby
erichmenge has joined #ruby
casheew has joined #ruby
brunosaboia__ has quit [Read error: Connection reset by peer]
casheew has quit [Read error: Connection reset by peer]
sailias has joined #ruby
mmitchell has joined #ruby
niklasb has quit [Read error: Operation timed out]
danshultz has joined #ruby
ilyam has joined #ruby
hsbt is now known as hsbt_away
Ry_ has quit [Ping timeout: 244 seconds]
hsbt_away is now known as hsbt
pu22l3r has joined #ruby
lxsameer has joined #ruby
pu22l3r has quit [Remote host closed the connection]
casheew has joined #ruby
filipe has joined #ruby
pu22l3r has joined #ruby
<lxsameer> what documenting system is more popular in ruby world ?
<heftig> isn't rdoc pretty much standard if you want to release a gem?
casheew has quit [Read error: Connection reset by peer]
margle has quit [Quit: Computer has gone to sleep.]
JustinCampbell has quit [Remote host closed the connection]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
maxer has joined #ruby
neku has quit [Quit: Linkinus - http://linkinus.com]
edwardj has quit [Remote host closed the connection]
margle has joined #ruby
hsbt is now known as hsbt_away
geekbri has joined #ruby
bbttxu has quit [Quit: bbttxu]
<burgestrand> The standard is not to document at all :(
casheew has joined #ruby
* Hanmac feels that burgestrand means me ...
<Mon_Ouie> RDoc and YARD are the two most common
lxsameer has quit [Ping timeout: 252 seconds]
<burgestrand> lxsameer: YARD, rdoc, tomdoc are the three major ones I, two first being most common.
_bart has joined #ruby
hsbt_away is now known as hsbt
Cultofmetatron has joined #ruby
hsbt is now known as hsbt_away
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
hsbt_away is now known as hsbt
MrSamuel has quit [Quit: MrSamuel]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
dzhulk has quit [Quit: Leaving.]
Araxia has joined #ruby
zodiak has quit [Read error: No route to host]
<lxsameer> what do you suggest for async network programming ?
jonathanwallace has joined #ruby
zodiak has joined #ruby
Ry_ has joined #ruby
werdnativ has quit [Quit: werdnativ]
hsbt is now known as hsbt_away
<burgestrand> lxsameer: whiskey.
hsbt_away is now known as hsbt
<burgestrand> … actually whiskey taste like piss, maybe rum?
hsbt is now known as hsbt_away
<lxsameer> burgestrand, which one at last?
* erichmenge doesn't know what kind of whiskey burgestrand has been drinking...
hsbt_away is now known as hsbt
hackerdude has joined #ruby
<burgestrand> lxsameer: eventmachine is something written for async IO in general, but it has a few major issues: bad documentation, callback hell, and makes a lot of gems using IO unusable… I’m sure I’ve missed something.
_bart has quit [Quit: _bart]
samphippen has quit [Quit: Computer has gone to sleep.]
richardjapenga has joined #ruby
csaunders has quit [Quit: Computer has gone to sleep.]
MrSamuel has joined #ruby
<burgestrand> lxsameer: you could still check it out, and while you’re at it have a look at celluloid IO as well.
mercwithamouth has joined #ruby
csaunders has joined #ruby
baroquebobcat has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
casheew has quit [Read error: Connection reset by peer]
<lxsameer> burgestrand, i got mix up, what's your suggestion ?
BadProphet has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
linoj has joined #ruby
<burgestrand> lxsameer: eventmachine, celluloid IO, or avoid it.
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
<Mon_Ouie> Depending on what you're going to do, just IO.select might be all you need
hsbt is now known as hsbt_away
hiroyuki has quit [Read error: No route to host]
hsbt_away is now known as hsbt
<lxsameer> Mon_Ouie, i just want to call a callback function when a data racieved on e connection
chussenot has joined #ruby
casheew has joined #ruby
starship has joined #ruby
starship is now known as kkh
hiroyuki has joined #ruby
samphippen has joined #ruby
Slivka has joined #ruby
ffckd has joined #ruby
ffckd has left #ruby [#ruby]
casheew has quit [Read error: Connection reset by peer]
CamonZ has joined #ruby
v0n has joined #ruby
lxsameer has quit [Quit: Leaving]
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
cHarNe2 has left #ruby [#ruby]
lxsameer has joined #ruby
casheew has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
chussenot_ has joined #ruby
joeycarmello has joined #ruby
philcrissman has joined #ruby
mmitchel_ has joined #ruby
_bart has joined #ruby
mmitchell has quit [Read error: Operation timed out]
bbttxu has joined #ruby
chussenot has quit [Ping timeout: 244 seconds]
chussenot_ is now known as chussenot
JustinCampbell has joined #ruby
hsbt has quit [Ping timeout: 260 seconds]
danshultz has quit [Ping timeout: 252 seconds]
danshultz has joined #ruby
SeySayux has joined #ruby
butblack has joined #ruby
Villadelfia has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
Villadelfia has quit [Remote host closed the connection]
SeySayux has quit [Remote host closed the connection]
fantazo has quit [Remote host closed the connection]
SeySayux has joined #ruby
thinkdevcode has joined #ruby
crackfu has joined #ruby
SeySayux has quit [Remote host closed the connection]
horofox has joined #ruby
BrianJ has joined #ruby
SeySayux has joined #ruby
GoGoGarrett has joined #ruby
jlwestsr has quit [Quit: Ex-Chat]
Villadelfia has joined #ruby
rippa has joined #ruby
windowsrefund has left #ruby ["WeeChat 0.3.8"]
casheew has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
ltsstar has quit [Quit: ltsstar]
ltsstar has joined #ruby
casheew has joined #ruby
casheew has quit [Read error: Connection reset by peer]
osvico has quit []
mpereira has quit [Ping timeout: 255 seconds]
stopbit has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
casheew has joined #ruby
notVert has joined #ruby
mpereira has joined #ruby
forced_request has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Zai00 has joined #ruby
kil0byte has joined #ruby
erichmenge has quit [Quit: Be back later]
thecreators has quit [Quit: thecreators]
Agis__ has joined #ruby
kil0byte_ has quit [Ping timeout: 255 seconds]
bwlang has left #ruby [#ruby]
lxsameer has quit [Ping timeout: 265 seconds]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
und3f has quit [Quit: Leaving.]
enderx86 has joined #ruby
GranMal has joined #ruby
mpereira has quit [Ping timeout: 255 seconds]
_alejandro has joined #ruby
cousine has quit [Remote host closed the connection]
enderx86 has quit [Remote host closed the connection]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
hsbt is now known as hsbt_away
thinkdevcode has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
ananthakumaran has joined #ruby
billiam has joined #ruby
erichmenge has joined #ruby
casheew has quit [Read error: Connection reset by peer]
banister_ has joined #ruby
casheew has joined #ruby
Araxia has quit [Quit: Araxia]
BrianJ has quit [Ping timeout: 252 seconds]
casheew has quit [Read error: Connection reset by peer]
hsbt_away is now known as hsbt
erichmenge has quit [Client Quit]
yshh has quit [Remote host closed the connection]
forced_request has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
elsifaka has quit [Quit: Veloma e!]
Guest10501 has joined #ruby
erichmenge has joined #ruby
eldariof has quit []
mklappstuhl has joined #ruby
erichmenge has quit [Client Quit]
casheew has joined #ruby
kjellski has quit [Quit: Leaving]
fyolnish has joined #ruby
BrianJ has joined #ruby
larissa has quit [Quit: Leaving]
lxsameer has joined #ruby
Ry_ has quit [Ping timeout: 248 seconds]
bradhe has quit [Ping timeout: 252 seconds]
beiter has joined #ruby
GranMal has quit [Quit: GranMal]
swex has quit [Remote host closed the connection]
nateberkopec has joined #ruby
banister_ is now known as banisterfiend
GranMal has joined #ruby
lxsameer has quit [Ping timeout: 255 seconds]
daniel_- has joined #ruby
carlyle has quit [Remote host closed the connection]
burgestrand has quit [Quit: Leaving.]
iamjarvo has quit [Quit: Computer has gone to sleep.]
swex has joined #ruby
tbrock_ has joined #ruby
danshultz has quit [Remote host closed the connection]
Ry_ has joined #ruby
olrrai has joined #ruby
olrrai has quit [Client Quit]
greasegum has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
Xeago has joined #ruby
carlyle has joined #ruby
tbrock_ has quit [Client Quit]
iamjarvo has joined #ruby
ryanlecompte has joined #ruby
iamjarvo has quit [Client Quit]
jerius has joined #ruby
J-_-L has joined #ruby
nitti has joined #ruby
<Xeago> well that was a fun experience, never ever set root's account to your own home folder, it wipes it
ryanlecompte has quit [Remote host closed the connection]
Rhynn has quit [Read error: Connection reset by peer]
casheew has quit [Read error: Connection reset by peer]
bier_ has joined #ruby
casheew has joined #ruby
casheew has quit [Read error: Connection reset by peer]
art_ has joined #ruby
art_ has left #ruby [#ruby]
danshult_ has joined #ruby
lkba has joined #ruby
joshman_ has joined #ruby
sertaconay has quit [Read error: Connection reset by peer]
kalleth has quit [Read error: Connection reset by peer]
jerius has quit [Quit: Computer has gone to sleep.]
casheew has joined #ruby
baroquebobcat has joined #ruby
Agis__ is now known as keiri
philcrissman has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
<heftig> Xeago: what?
dmerrick has joined #ruby
daniel_- has quit [Ping timeout: 244 seconds]
Framedragger has joined #ruby
bradhe has joined #ruby
hbpoison has quit [Remote host closed the connection]
<Framedragger> hello.. has anyone worked with david celis' Recommendable (https://github.com/davidcelis/recommendable) by chance?
hbpoison has joined #ruby
hackerdude has quit [Remote host closed the connection]
dnstbr has joined #ruby
<davidcelis> Framedragger: hi
aganov has quit [Remote host closed the connection]
enderx86 has joined #ruby
<Framedragger> whoa, hello :)
chussenot has quit [Remote host closed the connection]
tk__ has quit [Quit: ばいばい]
chussenot has joined #ruby
osvico has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
mahmoudimus has joined #ruby
<Framedragger> davidcelis: thing is, i've vitually zero exposure to ruby, i simply want to use the library for recommending; the actual backend is in python.
<Framedragger> do you think it'd be difficult to make it work without using an ORM
<davidcelis> well
<Framedragger> i'm trying to tinker with things myself, but since you're here, it doesn't hurt to ask i suppose
Erfankam has quit [Remote host closed the connection]
<davidcelis> the ORM is only really required if you use the helper methods that return actual records
Erfankam has joined #ruby
<davidcelis> if you use the helper methods that return IDs (similar_rater_ids, recommended_*_ids, etc.) the ORM isn't touched
d2dchat has joined #ruby
hackerdude has joined #ruby
Erfankam has quit [Read error: Connection reset by peer]
<Framedragger> aha, yes. but it fails to initialize if i just try it on sinatra + delayed_job.
<Framedragger> aha, that'd work for me
<davidcelis> all that recommendable really needs to function is operating on a class that responds to `id` and, if you want it to deal with actual records, an ORM that maps to a database
<Framedragger> i'm just too shy to try to change things in the lib yet
alex__c2022 has joined #ruby
<davidcelis> what failed on sinatra + delayed job?
nga4 has quit [Ping timeout: 246 seconds]
keiri has quit [Quit: keiri]
<Framedragger> i suppose i needn't even specify 'recommends :some_items' , then (if i change the lib so that it doesn't check)? because that's where it fails at initialization.
<Framedragger> one moment
joshman_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<Framedragger> it basically says that the 'recommends' method is undefined, which makes sense, because the init happens via one of the orm initializers i suppose
<Framedragger> however
<davidcelis> huh
<Framedragger> if i do
<davidcelis> ah, yeah
<Framedragger> class User
<Framedragger> extend Recommendable::Rater
<Framedragger> attr_accessor :id
<Framedragger> extend Recommendable::Ratable
<Framedragger> end
<Framedragger> same thing
Monie has joined #ruby
<Framedragger> (tried 'extend' and 'include', but i guess it's not that simple and i shouldn't expect to get away that easily)
<davidcelis> right
maesbn_ has quit [Remote host closed the connection]
anachronistic has joined #ruby
<davidcelis> extend Recommendable::Rater::ClassMethods
headius has joined #ruby
jrajav has joined #ruby
<davidcelis> maybe i should include a manual way to do all of this in the README for people who want to try not using an ORM, and mention the caveats and that it's unsupported
<Framedragger> davidcelis: wow, that..worked. i feel stupid now. :)
<davidcelis> you'll also have to include the Ratable modules in the classes you're trying to recommend, mind you
hoelzro is now known as hoelzro|away
monkegji_ has quit [Remote host closed the connection]
bairui has quit [Ping timeout: 248 seconds]
<Framedragger> hm, i suppose there shouldn't be snags henceforth. i'll just pull info direct from redis when i want stuff, and will use a simple sinatra web method to update the system with new likes.
SCommette has joined #ruby
<Framedragger> aha, yes, makes sense!
J-_-L has quit [Ping timeout: 240 seconds]
drknus has joined #ruby
<davidcelis> Framedragger: doing something like defining `recommendable' on Object but obviously that pollutes everything; requiring the ORM is one way to avoid doing that
<davidcelis> but there's always a way to do what you want manually via these mixins
<Framedragger> if i end up with not-totally-ugly-code, i could share it, but since i've got virtually zero knowledge of ruby, it prob won't be that useful..
<Framedragger> yea.
<davidcelis> i'll try writing a section to include on the README
<Framedragger> well, thanks for the extrafast help David. :)
<davidcelis> sure thing! hope you don't run into any other snags but, if you do, feel free to shoot me a message on github
arturaz has quit [Remote host closed the connection]
<davidcelis> gotta head into the office now, good luck
davidcelis has quit [Quit: K-Lined.]
freeayu__ has quit [Remote host closed the connection]
<Framedragger> okay, i just might! :] will try not to bug you too much and learn on the way.. thanks again
bradhe has quit [Ping timeout: 252 seconds]
rjsamson has joined #ruby
deo has joined #ruby
tasaras has joined #ruby
deo has quit [Read error: Connection reset by peer]
morf has quit [Quit: eof]
deo has joined #ruby
deo has quit [Read error: Connection reset by peer]
Slivka has quit [Read error: Connection reset by peer]
richardjapenga has quit [Remote host closed the connection]
geggam has joined #ruby
samuel02 has quit [Remote host closed the connection]
dpatel has joined #ruby
d3vic3 has quit [Ping timeout: 248 seconds]
Slivka has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
theRoUS has quit [Remote host closed the connection]
k610 has quit [Ping timeout: 240 seconds]
iori has quit [Remote host closed the connection]
d3vic3 has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
nanderoo has quit [Ping timeout: 240 seconds]
eqbaleki has joined #ruby
joshman_ has joined #ruby
<gener1c> how stupid would it be to make a recursive solution with nokogiri?
pu22l3r_ has joined #ruby
<shevy> it's XML
<shevy> so it will be painful no matter what
<eqbaleki> Hi Folks, is there any chance to find a tool to generate init.d scripts for my ruby processes ?
dmiller has quit [Remote host closed the connection]
tasaras has quit [Quit: Leaving]
<eqbaleki> I have some ruby processes already and my production server use init.d for startup processes , now do I need to do that manually or is there any tools to manage that
centipedefarmer has joined #ruby
sagax has quit [Quit: Ухожу я от вас]
<JustinCampbell> eqbaleki: foreman can export to a lot of services but i dont think init.d
adambeynon has joined #ruby
<eqbaleki> exactly i'm already using foreman, but i need to export it with init.d
pu22l3r has quit [Ping timeout: 260 seconds]
BrianJ has quit [Quit: BrianJ]
<eqbaleki> foreman can export to inittabs and upstarts
rasbonics has joined #ruby
<JustinCampbell> well write one and submit a pull request ;)
<eqbaleki> but I have my server in production mode and it is not a good idea to risk it by changing the default and start using upstart , is there any other tool to help achieving that
minijupe has joined #ruby
jerius has joined #ruby
dakine has joined #ruby
<eqbaleki> mm that could be a good ide , but as u can c , i'm not an expert myself to do such a thing :(
nanderoo has joined #ruby
bradhe has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
pu22l3r_ has quit [Remote host closed the connection]
Slivka has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
thecreators has joined #ruby
bradhe has quit [Remote host closed the connection]
Mkman has joined #ruby
jblack has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
Mkman has quit [Remote host closed the connection]
shiin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Mkman has joined #ruby
margle has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
baphled has quit [Ping timeout: 256 seconds]
tatsuya_o has quit [Remote host closed the connection]
jerius has quit [Quit: Computer has gone to sleep.]
tatsuya_o has joined #ruby
omg765 has joined #ruby
omg765 has quit [Client Quit]
axl_ has joined #ruby
arturaz has joined #ruby
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
jgrevich has joined #ruby
joeycarmello has quit [Remote host closed the connection]
Erfankam has joined #ruby
jerius has joined #ruby
bradhe has joined #ruby
khakimov has joined #ruby
ryanlecompte has joined #ruby
samphippen has joined #ruby
Trioke has joined #ruby
Xeago has quit [Ping timeout: 276 seconds]
AlbireoX has joined #ruby
Mkman has quit [Ping timeout: 260 seconds]
Mkman has joined #ruby
adac has quit [Ping timeout: 268 seconds]
banisterfiend has quit [Ping timeout: 244 seconds]
eqbaleki has quit [Quit: Page closed]
colinbm has quit [Quit: colinbm]
whitedawg has joined #ruby
filipe has quit [Quit: Leaving]
nga4 has joined #ruby
vlad_starkov has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
r0f0 has joined #ruby
mahmoudimus has joined #ruby
mahmoudimus has quit [Client Quit]
brycebudd has joined #ruby
davidcelis has joined #ruby
kenichi-away is now known as kenichi
osvico has quit [Ping timeout: 260 seconds]
clj_newb has joined #ruby
hbpoison has quit [Ping timeout: 244 seconds]
x82_nicole has joined #ruby
dmiller has joined #ruby
havenn has joined #ruby
jlogsdon has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
shiin has joined #ruby
quest88 has quit [Quit: quest88]
fms has joined #ruby
fff has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
u89 has quit [Remote host closed the connection]
dnyy has quit [Read error: Connection reset by peer]
_dnyy has joined #ruby
gmci has joined #ruby
whitedawg has quit [Quit: Leaving.]
jblack has quit [Read error: Operation timed out]
siyusong has joined #ruby
lkba has quit [Read error: Connection reset by peer]
AndChat| has joined #ruby
neiko has joined #ruby
AlbireoX has quit [Remote host closed the connection]
jonathanwallace has quit [Remote host closed the connection]
<fff> hi
vlad_starkov has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
SCommette has quit [Quit: SCommette]
fff has left #ruby [#ruby]
g0bl1n has joined #ruby
g0bl1n has quit [Changing host]
g0bl1n has joined #ruby
xorigin has quit [Quit: leaving]
jblack has joined #ruby
joeycarmello has joined #ruby
jerius has joined #ruby
_dnyy is now known as dnyy
MrSamuel has quit [Quit: MrSamuel]
average_drifter has quit [Ping timeout: 264 seconds]
jonathanwallace has quit [Ping timeout: 240 seconds]
Iszak has quit [Quit: User has gone to sleep.]
sn0wb1rd has quit [Quit: sn0wb1rd]
Aiur has joined #ruby
brycebudd has quit [Ping timeout: 252 seconds]
Araxia has joined #ruby
blazes816 has joined #ruby
BrianJ has joined #ruby
nateberkopec has joined #ruby
<centipedefarmer> hello, I am having a problem getting the google-api-client gem to load up in my non-Bundler-using Rails 2.3 app. It seems no matter what I do, when i try to run a rake task or script/console or script/server, it bombs out saying that the gem is missing, when it is, emphatically, installed
BoomCow has joined #ruby
fyolnish has quit [Remote host closed the connection]
<centipedefarmer> in environment.rb i have config.gem 'google-api-client', :version => '~> 0.4.3', :lib => 'google/api_client'
locriani has joined #ruby
<centipedefarmer> if i start up IRB and enter "require 'google/api_client'" it works and I can use it
ilyam has quit [Quit: ilyam]
<centipedefarmer> anyone have any ideas, maybe run into this before?
fyolnish has joined #ruby
ilyam has joined #ruby
mneorr has joined #ruby
JJMalina has joined #ruby
senny has quit [Remote host closed the connection]
mikestratton has joined #ruby
virtuose has quit [Quit: Leaving]
adeponte has joined #ruby
mikestratton has quit [Quit: Page closed]
nateberkopec has quit [Read error: Connection reset by peer]
hbpoison has joined #ruby
Morkel has joined #ruby
nitti has quit [Ping timeout: 248 seconds]
JJMalina has quit [Client Quit]
nateberkopec has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
zigomir has quit [Ping timeout: 265 seconds]
gmci has quit [Quit: Computer has gone to sleep.]
madhatter has quit [Ping timeout: 276 seconds]
nitti has joined #ruby
<centipedefarmer> i've also tried it without the :lib option, nothing change
madhatter has joined #ruby
Naeblis has joined #ruby
sn0wb1rd has joined #ruby
Naeblis has left #ruby ["Leaving"]
erichmenge has joined #ruby
SCommette has joined #ruby
yxhuvud has joined #ruby
nga4 has quit []
u89 has joined #ruby
nga4 has joined #ruby
punkrawkR has joined #ruby
jonathanwallace has joined #ruby
maletor has joined #ruby
yxhuvud has quit [Client Quit]
thinkdevcode has joined #ruby
jerius has joined #ruby
Erfankam has quit [Ping timeout: 255 seconds]
JonnieCache has quit [Ping timeout: 255 seconds]
_alejandro has quit [Read error: Connection reset by peer]
_alejandro has joined #ruby
jrajav has quit []
yxhuvud has joined #ruby
mneorr has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 268 seconds]
ewag has quit [Ping timeout: 268 seconds]
mneorr has joined #ruby
<elico> centipedefarmer: did you restarted the server?
srji has joined #ruby
<centipedefarmer> um
<centipedefarmer> assuming that the problem prevents the server from starting in the first place
<centipedefarmer> i'm just going to say yes
<srji> hey guys, i'm confused, a ruby developer says me, method names like "def get_user_config" are not ruby like.
<srji> is this correct?
thinkdevcode has quit [Remote host closed the connection]
<Gate> srji: that's a loaded question, but I would more expect to see "def user_config" or "attr_accessor user_config"
mneorr has quit [Remote host closed the connection]
<Gate> srji: you won't be burned at the stake for using names like "get_user_config" though (by most of us ;) )
<srji> i think method names should beginn with a verb
jerius has quit [Quit: Computer has gone to sleep.]
<Gate> srji: not usually in ruby
<srji> so i know it from java
<srji> ok
mneorr has joined #ruby
sepp2k1 has joined #ruby
<Gate> srji: a getter/setter pair look like "user_config" and "user_config="
samphippen has quit [Quit: Computer has gone to sleep.]
adeponte has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 244 seconds]
ephemerian has left #ruby [#ruby]
<srji> what does the "=" in the method name means?
skum has quit [Quit: Leaving...]
<epochwolf> srji: it's part of the method's name.
<epochwolf> So object.field = "something" is doing object.send(:field=, "something")
<Gate> srji: you can define methods like "def user_config=(other_config)" and it is a setter that can be used like this: "foo.user_config = my_config"
<Gate> srji: so you can use = instead of "set_user_config" like you would in java, it makes things shorter and easier to read (IMO)
<srji> ok
mrsolo has joined #ruby
maesbn has joined #ruby
cdt has quit [Ping timeout: 244 seconds]
siyusong has quit [Quit: Computer has gone to sleep.]
apok has joined #ruby
clj_newb has quit [Ping timeout: 248 seconds]
yshh has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
Hanmac has quit [Read error: Connection reset by peer]
whitedawg has joined #ruby
qwerxy has quit [Quit: offski]
bbttxu has quit [Quit: bbttxu]
rjsamson has quit [Remote host closed the connection]
Hanmac has joined #ruby
chussenot has quit [Quit: chussenot]
osvico has joined #ruby
rjsamson has joined #ruby
amacgregor_osx has quit [Remote host closed the connection]
carlyle has quit [Remote host closed the connection]
stephenjudkins has joined #ruby
rafter has quit [Remote host closed the connection]
timmillwood has quit [Ping timeout: 244 seconds]
<mr-rich> Can I declare method aliases before the actual method?
mneorr has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
artOfWar has joined #ruby
mercwithamouth has quit [Quit: leaving]
<Gate> mr-rich: no
philcrissman has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
keyvan has quit [Remote host closed the connection]
<mr-rich> Gate: k ... thanks. Things will just have to be a little out of order ... :(
rakl has joined #ruby
<Gate> yeah, I know the feeling
Serial_Killer_C has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
rjsamson has quit [Ping timeout: 252 seconds]
<csmrfx> maybe ruby needs hoisting?
<csmrfx> 8)
Tombar has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
ilyam has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
ilyam has joined #ruby
Elhu has joined #ruby
slainer68 has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
Xeago has joined #ruby
tatsuya_o has quit [Ping timeout: 246 seconds]
alvaro_o has joined #ruby
krant has joined #ruby
daniel_- has joined #ruby
jerius has joined #ruby
Slivka has joined #ruby
g-ram has joined #ruby
g0bl1n has quit [Quit: Ex-Chat]
<csmrfx> mr-rich: maybe you can declare a dummy method
bbttxu has joined #ruby
<mr-rich> csmrfx: aliases are fine ... keeping it simple.
<csmrfx> I mean.
<csmrfx> Declare a dummy method.
<csmrfx> Declare alias.
wookiehangover has quit [Ping timeout: 252 seconds]
<csmrfx> and once you are ready, shadow the dummy with the actual method (of the same name)
ffranz has quit [Quit: Leaving]
dogweather has joined #ruby
chussenot has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
Slivka has joined #ruby
ffranz has joined #ruby
samphippen has joined #ruby
kil0byte has quit [Remote host closed the connection]
wookiehangover has joined #ruby
vlad_starkov has joined #ruby
maxmmurphy has quit [Quit: maxmmurphy]
tommyvyo_ has joined #ruby
moshee has quit [Ping timeout: 260 seconds]
mityaz has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
Tuxist has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
bbttxu has quit [Quit: bbttxu]
adeponte has joined #ruby
bismuth has joined #ruby
mneorr has joined #ruby
adeponte has quit [Remote host closed the connection]
dzhulk has joined #ruby
keyvan has quit [Remote host closed the connection]
Tombar has quit [Remote host closed the connection]
Tombar has joined #ruby
bismuth has quit [Client Quit]
andrew12_ has joined #ruby
<andrew12_> if someone installs a gem that is an application that creates log files, where is the best place to store the log file?
jerius has quit [Quit: Computer has gone to sleep.]
<kaleido> andrew12_: the directory where you store all of your other logs?
<andrew12_> kaleido: you mean like /var/log? what if the user isn't root and doesn't have access to that?
jrist-afk is now known as jrist
<kaleido> then the choice becomes, "somewhere in the directory sturcture the user has access to"
<andrew12_> heh.. i was wondering if there is any specific reccomended location
<kaleido> i wouldnt think so
<kaleido> if youre limited to writing to /home/username
<kaleido> it comes down to preference at that point
<Mon_Ouie> csmrfx: The dummy method trick won't work
Erfankam has joined #ruby
<Mon_Ouie> alias foo bar isn't def foo(*args, &b); bar(*args, &b); end — it takes the same implementation as foo
Rizzle has joined #ruby
snuglepuss has joined #ruby
adeponte has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
<Mon_Ouie> If you change foo later, bar won't be affected by the change
<csmrfx> alas
<Gate> right, that's why you alias super methods before overriding them
gener1c has quit [Ping timeout: 248 seconds]
Slivka has joined #ruby
<Gate> so you have access to the original
<Mon_Ouie> Just like when you do a = 1; b = a; a = something_else
snuglepuss has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
dankest has joined #ruby
gener1c has joined #ruby
<Mon_Ouie> Gate: When do you do that? The super keyword should cover most of it
ViperMaul|_ has quit [Ping timeout: 246 seconds]
slash_nick has joined #ruby
<Mon_Ouie> And binding SomeClass.instance_method(…) can be used in some meta-programming contexts
hadees has joined #ruby
philcrissman has quit [Remote host closed the connection]
chussenot has quit [Ping timeout: 240 seconds]
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
timmow has quit [Quit: is having a nap]
thecreators has quit [Remote host closed the connection]
bier_ has quit [Ping timeout: 260 seconds]
hbpoison has joined #ruby
nitti has quit [Remote host closed the connection]
esya has quit [Quit: esya]
jerius has joined #ruby
arietis has joined #ruby
<Gate> Mon_Ouie: I've needed to be more aggresive about controlling when super gets called in the past and what arguments, etc
<Gate> it was a control thing
Meepsheep has joined #ruby
alexim has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
bricker has joined #ruby
ryanf has joined #ruby
gmci has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
awestroke has joined #ruby
atlantaman has joined #ruby
tsousa has joined #ruby
brianpWins has joined #ruby
<tsousa> while definig a class what is the use of attr ?
Meepsheep has left #ruby [#ruby]
<Mon_Ouie> None, you can completely replace it with the clearer attr_reader, attr_writer and attr_accessor
voodoofish430 has joined #ruby
hbpoison has quit [Ping timeout: 276 seconds]
d2dchat has quit [Remote host closed the connection]
<tsousa> Mon_Ouie, but why is that usefull?
<tsousa> what does it do?
jonathan_ has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
<Mon_Ouie> It does the same attr_(reader|writer|accessor), depending on how you call it
philcrissman has joined #ruby
<tsousa> what orm you guys recommend?
<tsousa> i am making my first ruby program and it will be a library app.
alanp has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 246 seconds]
<heftig> if you don't want activerecord, datamapper i guess
<Sou|cutter> Sequel seems pretty cool (have been waiting for an excuse to use it for something)
bbttxu has joined #ruby
dogweather has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
bbttxu_ has joined #ruby
Slivka has quit [Remote host closed the connection]
<Sou|cutter> http://sequel.rubyforge.org/ <-- fwiw
alanp has joined #ruby
d2dchat has joined #ruby
d3vic3 has quit [Ping timeout: 248 seconds]
bier_ has joined #ruby
bbttxu has quit [Ping timeout: 246 seconds]
bbttxu_ is now known as bbttxu
roadt_ has quit [Ping timeout: 244 seconds]
<davidcelis> +1 to DataMapper if you're not usin' rails
headius has quit [Quit: headius]
d3vic3 has joined #ruby
emmanuelux has joined #ruby
Zai00 has quit [Quit: Zai00]
maesbn has quit [Remote host closed the connection]
digifiv5e has joined #ruby
u89 has quit [Remote host closed the connection]
rakl has quit [Quit: gone]
digifiv5e has quit [Client Quit]
jonathan_ has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
mklappstuhl has quit [Ping timeout: 255 seconds]
Gadgetoid has quit [Read error: Connection reset by peer]
digifiv5e has joined #ruby
Gadgetoid has joined #ruby
dakine has quit [Quit: Leaving]
tbrock_ has joined #ruby
Gadgetoid has quit [Read error: Connection reset by peer]
skcin7 has joined #ruby
u89 has joined #ruby
Gadgetoid has joined #ruby
Erfankam has quit [Ping timeout: 265 seconds]
darthdeus has quit [Quit: Linkinus - http://linkinus.com]
bbttxu_ has joined #ruby
reinaldob has quit [Remote host closed the connection]
darthdeus has joined #ruby
maxmmurphy has joined #ruby
geggam has quit [Remote host closed the connection]
root is now known as UdontKnow
d2dchat has quit [Remote host closed the connection]
tsousa has quit [Quit: Saindo]
nuvan has quit [Ping timeout: 245 seconds]
jarred_ has joined #ruby
carlyle has joined #ruby
tatsuya_o has joined #ruby
bbttxu has quit [Ping timeout: 265 seconds]
bbttxu_ is now known as bbttxu
qwerxy has joined #ruby
Tombar has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
horofox has quit [Quit: horofox]
havenn has joined #ruby
d2dchat has joined #ruby
g0t_ has joined #ruby
panpainter has joined #ruby
Gadgetoid has quit [Read error: Connection reset by peer]
drknus has quit [Quit: Leaving]
Gadgetoid has joined #ruby
dmerrick has quit [Quit: dmerrick]
havenn has quit [Ping timeout: 256 seconds]
billiam has quit [Quit: Leaving]
centipedefarmer has quit [Remote host closed the connection]
melder has quit [Quit: Ex-Chat]
schaerli has joined #ruby
thone has joined #ruby
Erfankam has joined #ruby
enderx86 has quit [Remote host closed the connection]
r0f0 has quit [Remote host closed the connection]
Morkel_ has joined #ruby
nicoulaj has joined #ruby
Xeago has quit [Remote host closed the connection]
dmerrick has joined #ruby
arya has joined #ruby
drknus has joined #ruby
darthdeus has quit [Quit: Linkinus - http://linkinus.com]
mjb2k has joined #ruby
darthdeus has joined #ruby
kil0byte has joined #ruby
Morkel has quit [Ping timeout: 245 seconds]
Morkel_ is now known as Morkel
darthdeus has quit [Client Quit]
thone_ has quit [Ping timeout: 260 seconds]
<cakehero> is there a smart way for me to identify a memory leak in a production application?
d2dchat_ has joined #ruby
<cakehero> a page request causes the memory usage to go up pretty high
<cakehero> I suppose I have some flexibility since it's basically completely down now
icole has joined #ruby
qwerxy has quit [Quit: offski]
samphippen has joined #ruby
rakl has joined #ruby
dakine has joined #ruby
darthdeus has joined #ruby
keyvan has quit [Remote host closed the connection]
whitedawg1 has joined #ruby
BrianJ has quit [Quit: BrianJ]
g0t_ has left #ruby [#ruby]
whitedawg1 has quit [Client Quit]
gozes has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
<davidcelis> one single page request?
keyvan has joined #ruby
<davidcelis> consistently?
keyvan has quit [Changing host]
keyvan has joined #ruby
maesbn has joined #ruby
d2dchat has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
drknus has quit [Quit: Leaving]
whitedawg has quit [Ping timeout: 246 seconds]
<csmrfx> How can I get "**" to be a comment or string delimiter in ruby source?
<davidcelis> # ** now a comment
iamjarvo has joined #ruby
<cakehero> davidcelis I think i got it
<cakehero> thanks though
<csmrfx> string delimiter, or comment delimiter
<davidcelis> csmrfx: https://github.com/ruby/ruby
<davidcelis> Fork it and alter the interpreter i guess?
<csmrfx> cool
<csmrfx> is ** ok?
uris has joined #ruby
<ij> csmrfx, Can you show some examples? Did you find that in your code?
<csmrfx> I just wanna use **
<csmrfx> ## would be more logical perhaps
J-_-L has joined #ruby
<csmrfx> ** is some math operator I think
nicoulaj has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
<davidcelis> why do you need ** to be a delimiter?
<davidcelis> why can't you use the existing ones?
<csmrfx> I want clean multiline comments.
<csmrfx> I have the thunk, that there is a way to make up string delimiters
tvw has quit [Remote host closed the connection]
kzrl has quit [Ping timeout: 260 seconds]
qwerxy has joined #ruby
<davidcelis> just add more hashes to the first and last line, basically
ltsstar has quit [Quit: ltsstar]
slainer68 has joined #ruby
Tombar has joined #ruby
thinkdevcode has joined #ruby
<csmrfx> lol
centipedefarmer has joined #ruby
nicoulaj has joined #ruby
chimkan has joined #ruby
clj_newb has joined #ruby
<csmrfx> 'Currently I use comments like these, but they cannot have the apostrophe in them.'
<davidcelis> that isn't a comment, that's a string
<csmrfx> It's a literal string, with a comment.
burgestrand has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
mtrpcic has joined #ruby
hemanth has joined #ruby
jblack has quit [Ping timeout: 252 seconds]
mtrpcic has quit [Client Quit]
<csmrfx> Works fine, but today I feel ** would look cooler
havenn has joined #ruby
shevy has quit [Ping timeout: 245 seconds]
jamesacarr has quit [Ping timeout: 245 seconds]
mtrpcic has joined #ruby
kzrl has joined #ruby
jblack has joined #ruby
<davidcelis> i don't understand
krant has quit [Ping timeout: 245 seconds]
digifiv5e has quit [Quit: ZNC - http://znc.in]
<davidcelis> why you would make a string when you want a comment
pu22l3r has joined #ruby
<davidcelis> are you new to programming
<csmrfx> Neither does ri, it says /usr/lib/ruby/1.9.1/rdoc/ri/driver.rb:723: warning: redundant nested repeat operator: /^**[^:]*$/
<Banistergalaxy> Davidcelis hes a gaymo
ltsstar has joined #ruby
<davidcelis> ** is a mathematical operator dude, it's for exponents
<csmrfx> yes, my age in programmer years is under 20
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<davidcelis> 2 ** 3 == 8
* csmrfx is nowhere near as gaymo as Mr. Banner
billiam has joined #ruby
mtrpcic has left #ruby [#ruby]
digifiv5e has joined #ruby
<csmrfx> wait... actually..
mercwithamouth has joined #ruby
areil has quit [Remote host closed the connection]
<csmrfx> my age in programmer years is over 20
<csmrfx> shit
hbpoison has joined #ruby
digifiv5e has quit [Client Quit]
<davidcelis> ...
<csmrfx> gods!
<csmrfx> it is over 27
vlad_starkov has quit [Remote host closed the connection]
<csmrfx> I better stop wasting time on comment formatting and irc
<havenn> csmrfx: What is one human year in programmer years?
digifiv5e has joined #ruby
JohnRedcorn has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<csmrfx> havenn: 1 year
atlantaman has quit [Ping timeout: 252 seconds]
rippa has quit [Ping timeout: 260 seconds]
<csmrfx> from the year you started, that is
reset has joined #ruby
<csmrfx> unless you were computer scientist, most people couldn't before 1982 or so
havenn has quit [Read error: Connection reset by peer]
hbpoison has quit [Ping timeout: 256 seconds]
havenn_ has joined #ruby
<blazes816> ah, the year electricity was invented and the real world began
greasegum has quit [Ping timeout: 260 seconds]
ckrailo has joined #ruby
<csmrfx> no, man, Commodore 64, Apple II, Sinclair Spectrum, IBM PC, and such
reset has quit [Client Quit]
AlbireoX has joined #ruby
hotovson has quit [Remote host closed the connection]
rakl has quit [Quit: sleeping]
mtrpcic has joined #ruby
fantazo has joined #ruby
<mtrpcic> Just testing something
mtrpcic has left #ruby [#ruby]
SCommette has quit [Quit: SCommette]
havenn_ has quit [Ping timeout: 252 seconds]
SCommette has joined #ruby
havenn has joined #ruby
sheerun has joined #ruby
digifiv5e has quit [Quit: ZNC - http://znc.in]
neiko has quit [Ping timeout: 260 seconds]
<ij> Why doesn't ruby have #<=> on booleans?
gogiel has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
havenn_ has joined #ruby
digifiv5e has joined #ruby
g-ram has joined #ruby
kirun has joined #ruby
digifiv5e has quit [Client Quit]
enderx86 has joined #ruby
<csmrfx> perhaps you need to implement your own definitions of how to compare booleans
daniel_- has quit [Ping timeout: 246 seconds]
TheFuzzball has quit [Read error: Operation timed out]
Erfankam has quit [Ping timeout: 260 seconds]
havenn has quit [Ping timeout: 246 seconds]
csaunders has quit [Quit: Computer has gone to sleep.]
ABK has joined #ruby
zarubin has joined #ruby
<Hanmac> ij because "false < true" does not make sense in ruby
Araxia has quit [Remote host closed the connection]
digifiv5e has joined #ruby
digifiv5e has quit [Client Quit]
Araxia has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
<ij> Hanmac, I still think it should be there.
bbttxu has quit [Quit: bbttxu]
carlyle has quit [Remote host closed the connection]
fast_ has quit [Ping timeout: 260 seconds]
fast_ has joined #ruby
<Hanmac> ij let me guess ... you are coming from java or php or an other language where true is only an synlink to "1" ?
<ij> No.
nospam99 has joined #ruby
<ij> That's a retarded assumption, I just want to sort booleans.
csaunders has joined #ruby
<csmrfx> well put it there
<csmrfx> should be trivial
<ij> One does not simply change builtin classes.
<ij> should not*
<csmrfx> just dont get into arguments whether true > false or false > true
<csmrfx> lol
<Hanmac> [true,false,true].sort_by {|x| x ? 1 : -1 } #=> [false, true, true]
<Banistergalaxy> Syrup
<Banistergalaxy> Syrup
<Banistergalaxy> Syrup
<Banistergalaxy> Strip
<Banistergalaxy> Strip
<Banistergalaxy> Syrup
<ij> Hanmac, I have to write code to sort booleans? PFFT
<Banistergalaxy> Strip syrup strip syrup strip
Framedragger has quit [Quit: Leaving.]
Framedragger has joined #ruby
<Banistergalaxy> Ij syrup syrup strip
digifiv5e has joined #ruby
<ij> Banistergalaxy, tap(&:your_mom)
Bosox20051 has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
<Banistergalaxy> Lols
<Hanmac> ij let me guess, and the next time you are saying what 0 or [] should be evaluated as false in if right?
<Banistergalaxy> Awesome
Uranio has quit [Read error: Connection reset by peer]
<Banistergalaxy> Hanmac don't mess with him hes awesome
neiko has joined #ruby
haxrbyte has quit [Ping timeout: 252 seconds]
<ij> Hanmac, How did your mind get from sorting booleans to weak typing?
ABK has quit [Read error: Connection reset by peer]
maletor has quit [Quit: Computer has gone to sleep.]
ABK has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
bungle141 has joined #ruby
Framedragger has quit [Ping timeout: 245 seconds]
haxrbyte has joined #ruby
<bungle141> hello
werdnativ has joined #ruby
<bungle141> is anyone able to help me with sending UDP packet from virtualbox?
<Banistergalaxy> Bungle141 what are you wearing
manizzle has joined #ruby
ottbot has quit [Ping timeout: 252 seconds]
<bungle141> nothing
<Banistergalaxy> Girls think it's cute when they fart
timonv has quit [Remote host closed the connection]
ephemerian has joined #ruby
<Banistergalaxy> What do you say about that hanmac
rakl has joined #ruby
reset has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
amacgregor_osx has joined #ruby
JonnieCache has joined #ruby
havenn_ is now known as havenn
<Hanmac> Banistergalaxy why do you think i should know about that?
manizzle has quit [Remote host closed the connection]
bungle141 has quit [Quit: irc2go]
skaczor has quit [Remote host closed the connection]
rjsamson has joined #ruby
dmerrick has quit [Ping timeout: 276 seconds]
sertaconay has joined #ruby
jlwestsr has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
davidcelis has quit [Quit: K-Lined.]
Erfankam has joined #ruby
mengu has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
AlbireoX`Laptop has joined #ruby
bradhe has quit [Remote host closed the connection]
maletor has joined #ruby
centipedefarmer has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
JonnieCache has quit [Ping timeout: 248 seconds]
TheFuzzball has joined #ruby
AlbireoX has quit [Read error: Operation timed out]
manizzle has joined #ruby
nospam99 has quit [Quit: Page closed]
margle has quit [Quit: Computer has gone to sleep.]
jerius has joined #ruby
daniel_- has joined #ruby
GranMal has quit [Quit: GranMal]
neiko has quit [Ping timeout: 264 seconds]
Russell^^ has joined #ruby
ABK has quit [Read error: Connection reset by peer]
yoklov has joined #ruby
yoklov has quit [Client Quit]
TheFuzzball has quit [Ping timeout: 246 seconds]
keyvan has quit [Remote host closed the connection]
d2dchat_ has quit [Remote host closed the connection]
Tombar has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 255 seconds]
mneorr has quit [Remote host closed the connection]
nitti has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
samphippen has joined #ruby
<Paradox> mmm…refinements
combataircrat has joined #ruby
niklasb has joined #ruby
zommi has quit [Read error: Connection reset by peer]
qwerxy has quit [Quit: offski]
timonv has joined #ruby
statarb3 has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
maxer has quit [Quit: maxer]
thinkdevcode has quit [Remote host closed the connection]
mneorr has joined #ruby
samuel02 has joined #ruby
ChampS666 has joined #ruby
hbpoison has joined #ruby
bradhe has joined #ruby
juarlex has joined #ruby
<dimka> How could I convert { "a" => 1, "b" => 2 } to { :a => 1, :b => 2 } ?
schaerli has quit [Remote host closed the connection]
keyvan has quit [Remote host closed the connection]
arya_ has joined #ruby
juarlex_ has quit [Ping timeout: 245 seconds]
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
macabre has quit [Read error: Connection reset by peer]
combataircrat is now known as combataircraft
aldodelgado has joined #ruby
keyvan has quit [Remote host closed the connection]
macabre has joined #ruby
Tania has joined #ruby
ABK has joined #ruby
Morkel has quit [Quit: Morkel]
<Hanmac> dimka: { "a" => 1, "b" => 2 }.each_with_object({}){|(k,v),h|h[k.to_sym]=v} #=> {:a=>1, :b=>2}
pu22l3r has quit [Ping timeout: 240 seconds]
erichmenge has quit [Ping timeout: 255 seconds]
<jeffreybaird> Here is how rails does it: myhash.keys.each do |key|
<jeffreybaird> myhash[(key.to_sym rescue key) || key] = myhash.delete(key)
<jeffreybaird> end
arya has quit [Ping timeout: 244 seconds]
hbpoison has quit [Ping timeout: 252 seconds]
arya_ is now known as arya
dominikh has quit [Ping timeout: 245 seconds]
jerius_ has joined #ruby
Xeago has joined #ruby
seich- is now known as Seich
thone has quit [Ping timeout: 276 seconds]
ezra has quit [Ping timeout: 276 seconds]
thone has joined #ruby
Erfankam has quit [Ping timeout: 240 seconds]
ezra has joined #ruby
ezra has quit [Changing host]
ezra has joined #ruby
theoros has quit [Ping timeout: 276 seconds]
theoros has joined #ruby
<dimka> NoMethodError: undefined method `each_with_object' for #<Hash:0x7f5719cc1b00>
mercwithamouth has quit [Ping timeout: 246 seconds]
keyvan has joined #ruby
ABK has quit [Read error: Connection reset by peer]
keyvan has quit [Changing host]
keyvan has joined #ruby
whitedawg has joined #ruby
levabalkin has quit [Ping timeout: 255 seconds]
<Hanmac> dimka you need an newer ruby
kpshek has quit []
pothibo has joined #ruby
jipiboily has joined #ruby
bbttxu has joined #ruby
crazymykl has joined #ruby
jerius has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jerius_ is now known as jerius
jerius has quit [Quit: Textual IRC Client: www.textualapp.com]
jipiboily has left #ruby [#ruby]
qwerxy has joined #ruby
arturaz has quit [Remote host closed the connection]
aldodelgado has quit [Quit: aldodelgado]
kil0byte has quit [Ping timeout: 248 seconds]
Axsuul has joined #ruby
nitti has quit [Remote host closed the connection]
c0rn has joined #ruby
Erfankam has joined #ruby
Slivka has joined #ruby
whitedawg has quit [Quit: Leaving.]
davidcelis has joined #ruby
billiam has quit [Read error: Connection reset by peer]
<dimka> Hanmac: how it could be done in old ruby?
<dimka> 1.8.7
nitti has joined #ruby
maxer has joined #ruby
<Hanmac> dimka your ruby would not get any support next year, get an newer one
jblack has quit [Read error: Operation timed out]
x82_nicole has quit [Quit: Computer has gone to sleep.]
daniel_-_ has joined #ruby
haxrbyte has quit [Ping timeout: 246 seconds]
<Cool_Fire> Hanmac: How are they going to drop support for 1.8.7? Are they going to update enterprise ruby to a newer version?
<havenn> 1.8.7 is dead. No security fixes after June 2013.
hackerdude has quit [Remote host closed the connection]
dakine has quit [Quit: Leaving]
rich__ has joined #ruby
<havenn> Cool_Fire: Updating to 1.9.3 patched with 2.0.0 GC is ready to replace EE.
Erfankam has quit [Ping timeout: 255 seconds]
hackerdude has joined #ruby
mneorr has quit [Remote host closed the connection]
<Cool_Fire> I think a lot is going to break
<Cool_Fire> migrating 1.8.7 > 1.9.3 definitely requires rewriting in most if not all cases
daniel_- has quit [Ping timeout: 246 seconds]
burgestrand1 has joined #ruby
colinbm has joined #ruby
<burgestrand1> I’ve migrated three apps so far; neither of them was particularly painful. The encoding part can be tricky, but luckly neither of the applications were encoding conversion heavy or relied on broken behaviour to begin with.
stephenjudkins has quit [Quit: stephenjudkins]
<burgestrand1> The most annoying were simple small changes of methods being taken away, most notably I remember String#each being used in quite a few places.
<Cool_Fire> Yeah, but no big project is ever easy to migrate
<havenn> Cool_Fire: 1.8.7 is really, really dead. Yeah, if you don't have encoding issues it should be fairly painless to swap out deprecated methods to 1.9+.
tpe11etier has quit [Ping timeout: 246 seconds]
Banistergalaxy has quit [Read error: Connection reset by peer]
burgestrand has quit [Ping timeout: 248 seconds]
burgestrand1 is now known as burgestrand
<havenn> Cool_Fire: Try switching to 1.9.3 or 2.0.0-preview1 and see how many tests fail?
Banistergalaxy has joined #ruby
mneorr has joined #ruby
<Cool_Fire> I don't personally have a project I'm worried about or anything
<Cool_Fire> I'm just thinking of things like.. twitter for example
haxrbyte has joined #ruby
ABK has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
answer_42 has quit [Quit: WeeChat 0.3.9]
qwerxy has quit [Quit: offski]
Uranio has joined #ruby
emergion has joined #ruby
aquaranto has quit [Remote host closed the connection]
nadirvardar has joined #ruby
<havenn> Cool_Fire: Heard that New Relic finished migrating a huge app to 1.9. Took them forever but they are pleased with the resulting improved performance.
Tuxist has quit [Read error: Connection reset by peer]
ngoldman has joined #ruby
colinbm has quit [Quit: colinbm]
nanderoo has quit [Quit: Leaving.]
<Cool_Fire> I'm sure it'll be fine once it's done, but it's a hell of a thing
nitti_ has joined #ruby
nitti has quit [Ping timeout: 260 seconds]
c0rn has joined #ruby
<havenn> Cool_Fire: 1.8 had its decade (August 2003 release). Long live 2.0!
<havenn> Ruby 3000...
bbttxu has quit [Quit: bbttxu]
[Neurotic] has joined #ruby
enderx86 has quit [Remote host closed the connection]
qwerxy has joined #ruby
<Cool_Fire> Weight gain 3000 too
bbttxu has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
reset has quit [Quit: Leaving...]
alexim has quit [Ping timeout: 255 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
centipedefarmer has joined #ruby
enderx86 has joined #ruby
rouss has joined #ruby
rouss is now known as Guest55750
rakl has quit [Quit: sleeping]
nazty has joined #ruby
haxrbyte has quit [Remote host closed the connection]
Guest10501 has quit [Quit: Guest10501]
erichmenge has joined #ruby
ABK has quit [Read error: Connection reset by peer]
nitti_ has quit [Remote host closed the connection]
ABK has joined #ruby
otters has quit [Quit: WeeChat 0.3.9]
robustus has quit [Quit: ZNC - http://znc.in]
caleb_io has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
stkowski has joined #ruby
ipoval has joined #ruby
ipoval has left #ruby [#ruby]
nitti has joined #ruby
chimkan has quit [Quit: chimkan]
freakazoid0223 has quit [Read error: Connection reset by peer]
qwerxy has quit [Quit: offski]
erichmenge has quit [Read error: Connection reset by peer]
erichmeng has joined #ruby
ltsstar has quit [Quit: ltsstar]
bigmac has joined #ruby
jenrzzz has joined #ruby
daniel_-_ has quit [Quit: WeeChat 0.3.9]
GoGoGarrett has quit [Remote host closed the connection]
tbrock_ has quit [Quit: Computer has gone to sleep.]
tvw has joined #ruby
davidcelis has quit [Quit: K-Lined.]
Appineer has joined #ruby
tbrock_ has joined #ruby
Appineer has left #ruby [#ruby]
yxhuvud has quit [Ping timeout: 255 seconds]
rakl has joined #ruby
erichmeng has quit [Client Quit]
Chryson has joined #ruby
arya_ has joined #ruby
carlyle has joined #ruby
arya has quit [Ping timeout: 244 seconds]
emergion has joined #ruby
Guest55750 has quit [Quit: Computer has gone to sleep.]
TheFuzzball has joined #ruby
Erfankam has joined #ruby
Erfankam has quit [Client Quit]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
mityaz has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
dankest has quit [Ping timeout: 252 seconds]
theRoUS has quit [Quit: Leaving]
otters has joined #ruby
qwerxy has joined #ruby
qwerxy has quit [Client Quit]
timonv has quit [Remote host closed the connection]
dankest has joined #ruby
chimkan has joined #ruby
jerius has joined #ruby
hbpoison has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
jerius has quit [Client Quit]
TheFuzzball has quit [Ping timeout: 276 seconds]
theRoUS has quit [Client Quit]
lenovodroid has joined #ruby
Dreamer3 has joined #ruby
wallerdev has joined #ruby
neiko has joined #ruby
ij has quit [Read error: Connection reset by peer]
hbpoison has quit [Ping timeout: 255 seconds]
fermion has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
TheFuzzball has joined #ruby
ij has joined #ruby
losh has joined #ruby
aetcore has joined #ruby
mjb2k has quit [Quit: Leaving]
shevy has joined #ruby
BrianJ has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
davidcelis has joined #ruby
jcaudle has quit [Quit: jcaudle]
nyuszika7h has quit [Quit: Upgrading WeeChat]
daniel_- has joined #ruby
xylo has joined #ruby
Edward__ has joined #ruby
fir_ed has joined #ruby
medik has joined #ruby
xylo has left #ruby [#ruby]
nyuszika7h has joined #ruby
caleb_io has quit [Quit: caleb_io]
hadees has quit [Quit: hadees]
apeiros_ has joined #ruby
chimkan has quit [Quit: chimkan]
ViperMaul|_ has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
neiko has quit [Ping timeout: 260 seconds]
mmitchel_ has quit [Remote host closed the connection]
minijupe has quit [Quit: minijupe]
manizzle has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
Mon_Ouie has quit [Ping timeout: 240 seconds]
Rizzle has quit [Ping timeout: 246 seconds]
neiko has joined #ruby
tommyvyo_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
apeiros_ has quit [Remote host closed the connection]
Russell^^ has quit [Quit: Russell^^]
bbttxu has quit [Quit: bbttxu]
jenrzzz has joined #ruby
tyfighter has joined #ruby
stephenjudkins has joined #ruby
darthdeus has quit [Quit: Leaving...]
apeiros_ has joined #ruby
slash_nick has left #ruby [#ruby]
SCommette has quit [Quit: SCommette]
SuperrMann has joined #ruby
Floydzy has joined #ruby
yalue has quit [Read error: Connection reset by peer]
bigmcq77 has quit [Quit: Computer has gone to sleep.]
<arietis> hey, any suggestions how to improve this code? https://gist.github.com/f2d170aa97fe3559fb1f
aetcore_ has joined #ruby
arya_ has quit [Ping timeout: 244 seconds]
aetcore__ has joined #ruby
qwerxy has joined #ruby
aetcore has quit [Ping timeout: 245 seconds]
gabrielrotbart has joined #ruby
mark_locklear has quit [Remote host closed the connection]
<davidcelis> yes
<davidcelis> use two-space indentation, that's the ruby way
tbrock_ has quit [Quit: Computer has gone to sleep.]
ij has quit [Read error: Connection reset by peer]
neiko has quit [Quit: leaving]
ij has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
enderx86 has quit [Remote host closed the connection]
tehlulz has joined #ruby
Mkman has quit [Quit: Lost terminal]
gabrielrotbart has joined #ruby
bairui has joined #ruby
aetcore_ has quit [Ping timeout: 246 seconds]
qwerxy has quit [Client Quit]
lenodroid has joined #ruby
joofsh has quit [Ping timeout: 264 seconds]
arya has joined #ruby
rdark has quit [Quit: leaving]
awestroke has quit [Remote host closed the connection]
elaptics`away is now known as elaptics
srji has quit [Quit: leaving]
bapa has quit [Read error: Connection reset by peer]
bbttxu has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
<arietis> davidcelis: does it matters?
keyvan has quit [Remote host closed the connection]
<arietis> what's wrong with 4 spaces?
lenovodroid has quit [Read error: Connection reset by peer]
<davidcelis> to other developers that read your code, yes
bigmcq77 has joined #ruby
<davidcelis> its the standard
<arietis> except "we're special so we will use 2 spaces instead"
headius has joined #ruby
<davidcelis> you never write code stylistically based on the community standards? for no languages at all?
BadProphet has quit [Remote host closed the connection]
TheFuzzball has quit [Read error: Connection reset by peer]
<arietis> i'm using 4 spaces indentation in all of my projects
osvico has joined #ruby
<davidcelis> do you program in other languages?
<arietis> yes
jlogsdon has quit [Remote host closed the connection]
<davidcelis> and do you write/style your code based on community standards for those languages?
samuel02 has quit [Remote host closed the connection]
<Hanmac> arietis about your code: File.write(@new_file_path,str) and @content = File.read(@old_file_path)
<arietis> i think so
<havenn> arietis: When in Rome...
<davidcelis> arietis: so why not for ruby too, then?
<arietis> davidcelis: i just don't get why only 2
<davidcelis> arietis: i am not trying to be a dick, mind you, i'm just trying to inform you of a ruby standard
<davidcelis> because 2 spaces are all the community feels are necessary
tehlulz has quit [Quit: tehlulz]
<Hanmac> arietis: in your current code you open file pointers and dont close it, and read about the block form of some ruby methods
<davidcelis> 2 spaces makes for sufficient whitespace to denote blocks of code
bapa has joined #ruby
* Cool_Fire uses a 4-space wide tab
<Cool_Fire> regardless of the language I'm writing in really
joeycarmello has quit [Remote host closed the connection]
losh has left #ruby ["Leaving"]
lenodroid has quit [Ping timeout: 252 seconds]
reset has joined #ruby
dmiller has quit [Remote host closed the connection]
* Hanmac uses 2-space wide tab
<arietis> no, tab is wrong
<arietis> :)
danshult_ has quit [Remote host closed the connection]
<arietis> spaces are the way to go
<TTilus> good! lets focus solely on indentation! everybody!
losh has joined #ruby
losh has left #ruby ["Leaving"]
<Hanmac> arietis in your code is more wrong than my using of tabs :P
joeycarmello has joined #ruby
<TTilus> hard vs. soft tabs! go go go!
<davidcelis> tabs are evil
<davidcelis> TTilus: i like to keep it real yo
geekbri has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
TheFuzzball has joined #ruby
<havenn> Ruby is soft tabs, 2 spaces. No debate to be had!
<davidcelis> ^
<havenn> If you use tabs, you are evil. 3 spaces, 4 spaces, 8 spaces... EVIL.
<davidcelis> i always lol @ javascript with 8 space indentation
<davidcelis> i see it more often than i'd like
<Hanmac> havenn ruby is not python where you forced to use an specific indent type
pu22l3r has joined #ruby
blacktulip has quit [Remote host closed the connection]
h4mz1d has joined #ruby
<havenn> Hanmac: You aren't forced, but tabs are worse and spaces are better. Use tabs, poor compatibility and looks terribad on githubs.
<TTilus> arietis: use blocks with file io, do ... end instead of curlies with multiline blocks, return and str assignment are unnecdessaty in #convert
sertaconay has quit [Read error: Connection reset by peer]
manizzle has joined #ruby
<Hanmac> i use tabs because they have the currect meaning ... "one tab per indent" ... spaces are not so controlable ... and i have an little style sheet that changes the tabsize in my browser
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
Seich is now known as seich
timonv has joined #ruby
<Hanmac> TTilus he could als use the class methods File.read & File.write
losh has joined #ruby
<TTilus> Hanmac: correct
<shevy> I use 2 spaces always
jaygen has quit [Remote host closed the connection]
<havenn> Hanmac: Tabs are EVIL: http://www.emacswiki.org/emacs/TabsAreEvil
<shevy> tabs are worse than four space however
<TTilus> arietis: have you looked at github ruby code convention, it is pretty thorough description of idiomatic ruby
jaygen has joined #ruby
<losh> hi, I have a string which use #{var_x} interpolation. I want to pass this string to a function and have the string display the local variable var_x, is this possible does scoping make this impossible?
<arietis> TTilus: yes
<havenn> Matz hates tabs so I hate tabs.
<arietis> i just wonder how do i set up indentation for each language separately
metrix has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121010144125]]
* TTilus can not believe we are having this indentation discussion
<davidcelis> losh: you'd have to pass that variable too
<Hanmac> havenn if emacs it to dump for tabs than its not my problem
<losh> davidcelis: the variable I want interpolated is inside the function I'm passing the string to
joeycarmello has quit [Remote host closed the connection]
jerius has joined #ruby
jerius has quit [Client Quit]
<TTilus> arietis: depends on your editor, all the good ones have customizable language aware modes
<havenn> Hanmac: But our benevolent dictator for life uses spaces!!
greasegum has joined #ruby
linoj has quit [Ping timeout: 248 seconds]
RobZ1 has joined #ruby
<davidcelis> losh: the string interpolation happens when that line of code is reached
<Hanmac> havenn yeah but he is not Jobs, otherwise we would forced to use Spaces
<davidcelis> losh: it's now a new string that is the result of the interpolation. im not exactly sure what you're asking
<TTilus> Hanmac: use proper mode and learn to conf you editor
qwerxy has joined #ruby
<Hanmac> TTilus my editor is configured ... to use tabs insteat of spaces
<losh> davidcelis: No that answers my question. I want to interpolation to occur when the function used the string internally.
BoomCow has quit [Quit: Leaving]
<RobZ1> hi, I'm having openssl/ruby issues. was wondering best way to start diagnosing. https://gist.github.com/e20813db17290dc2757f
qwerxy has quit [Client Quit]
<havenn> Hanmac: Explicit is better than implicit. Tabs are ambiguous. Spaces are clean.
<TTilus> Hanmac: >.<
<Hanmac> not for my "one tab per indent" politic
<davidcelis> different views handle tabs differently
<davidcelis> spaces are always spaces
<davidcelis> tabs suck
<arietis> gonna rework code according to your suggestions, thanks
<havenn> Hanmac: I'm a total sucker for saving one key-char, but set tab to soft-tab and win?
<arietis> but i need to add one feature
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
<TTilus> arietis: consider testing
<arietis> TTilus: testing?
<arietis> i have tests
<Hanmac> havenn soft-tabs are shitty if you need to refactore hundreds of lines of code
<TTilus> arietis: good
<davidcelis> how
jimeh has joined #ruby
<davidcelis> if you configure your editor right, it's the same as dealing with hard tabs
d2dchat has joined #ruby
<arietis> TTilus: i have file which contains non-latin chars
<havenn> Hanmac: If they are consistent, I don't consider one harder than the other. I guess I'd rather have consistent tabs than trailing whitespace and borked soft-tabs, but...
<arietis> so when i run converter i get it properly
<TTilus> Hanmac: C-c h C-x TAB (no theyre not :)
<arietis> but i also get useless '' in some lines
mneorr has quit [Remote host closed the connection]
<arietis> basically i wanna track if line contains non-latin char after '=' sign
<arietis> is it possible?
<Hanmac> TTilus whart do you want to sayto me with that?
tehlulz has joined #ruby
statarb3 has quit [Quit: Leaving]
<TTilus> Hanmac: thats the way i fix indentation, reindent buffer
greasegum has quit [Quit: Leaving]
TheFuzzball has quit [Read error: Operation timed out]
JonnieCache has joined #ruby
darkwing_duck has joined #ruby
<Hanmac> TTilus did you maybe thought that your line is 100% not helpful, because you may not know that editor i use, nor did you say what editor you use?
thisirs has joined #ruby
jblack has joined #ruby
nemesit has quit [Quit: Leaving...]
<havenn> Hanmac: What editor has trouble with two-space indentation? Why you no use One True Editor? :P
hbpoison has joined #ruby
apok_ has joined #ruby
<havenn> Hanmac: I guess it is easy enough to convert. >.> I mostly care because Github sets tab to 4 which looks bizarre to me.
dominikh has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
danshultz has joined #ruby
maesbn has quit [Remote host closed the connection]
<Hanmac> havenn emacs is not an editor, its an os, and vim does not have the features i need
<Hanmac> and it can be changed how the browser shows the tabs in the browser
losh has left #ruby ["Leaving"]
<shevy> yeah
<shevy> in the eternal fight emacs vs. vim there are only two losers
<shevy> but tabs still suck
TheFuzzball has joined #ruby
<shevy> I'd like a pure editor in ruby, but the only one I know requires one to have java :(
<havenn> shevy: yeah, that is a deal-killer for me
nignaztic has joined #ruby
<Hanmac> i would go to an ruby editor when it has all features i have with eclipse
danshultz has quit [Remote host closed the connection]
SCommette has joined #ruby
apok has quit [Ping timeout: 246 seconds]
apok_ is now known as apok
hbpoison has quit [Ping timeout: 245 seconds]
alexwh has quit [Ping timeout: 252 seconds]
thisirs has quit [Remote host closed the connection]
TheFuzzball has quit [Ping timeout: 252 seconds]
marr has joined #ruby
olrrai has joined #ruby
mneorr has joined #ruby
<havenn> Hanmac: I didn't say whether emac or vim was the One True Editor. :P For vim wouldn't something like this work: set tabstop=2 shiftwidth=2 expandtab
<havenn> emacs*
nicoulaj has quit [Remote host closed the connection]
Tomasso has joined #ruby
<shevy> eclipse is a bit too big for me
qwerxy has joined #ruby
<shevy> I mean, IDEs like it...
<shevy> it would be an improve if smaller editors would allow pure-ruby plugins
sailias has joined #ruby
<Hanmac> i normaly use gedit, but if you want to investigate >100 Files an IDE is more usefull
qwerxy has quit [Client Quit]
<havenn> Hanmac: I like gedit, but am not proficient in it. I ended up switching from Ubuntu to OS X. Yeah, I guess in part it depends on your tooling.
joeycarmello has joined #ruby
combataircraft has quit [Quit: leaving]
<Hanmac> ah an osx user ... that explain your agro "change others into what i am because i am better"-mode
h4mz1d has quit [Ping timeout: 268 seconds]
tehlulz has quit [Quit: tehlulz]
thinkdevcode has joined #ruby
jrist is now known as jrist-aafk
macabre has quit [Read error: Connection reset by peer]
qwerxy has joined #ruby
Tomasso has quit [Ping timeout: 252 seconds]
macabre has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
tatsuya_o has quit [Remote host closed the connection]
alexwh has joined #ruby
<havenn> Hanmac: I'm not aggro. Nor does my OS dictate my demeanor. We simply disagree.
iPhoneMRZ has joined #ruby
iPhoneMRZ has quit [Client Quit]
Tomasso has joined #ruby
kiyoura has joined #ruby
kirun has quit [Quit: Client exiting]
strangeworks has joined #ruby
iPhoneMRZ has joined #ruby
<havenn> Hanmac: I happily agree to disagree. I prefer spaces, you prefer tabs. Not like I'm going to avoid code because of that minutia.
alexim has joined #ruby
v0n has quit [Ping timeout: 244 seconds]
omg765 has joined #ruby
Tomasso has left #ruby [#ruby]
axl_ has quit [Quit: axl_]
alanp_ has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
alanp_ has joined #ruby
<havenn> P.S. - You should change, my way is better. :troll:
csaunders has quit [Quit: Computer has gone to sleep.]
jgarvey has quit [Quit: Leaving]
joshman_ has quit [Ping timeout: 260 seconds]
tbrock_ has joined #ruby
alanp has quit [Ping timeout: 255 seconds]
pu22l3r_ has joined #ruby
otters has quit [Ping timeout: 252 seconds]
clj_newb has quit [Ping timeout: 268 seconds]
pu22l3r has quit [Ping timeout: 240 seconds]
iPhoneMRZ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
nitti has quit [Remote host closed the connection]
alex__c2022 has quit [Quit: alex__c2022]
<davidcelis> lol this shit is still going on
statix_ has quit []
thinkdevcode has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
Tombar has joined #ruby
gabrielrotbart has joined #ruby
Tania has quit [Quit: :p]
<arietis> :S
carlyle has quit [Remote host closed the connection]
aetcore has joined #ruby
aetcore__ has quit [Read error: Connection reset by peer]
<davidcelis> mv #ruby #tabsorspaces
caleb_io has joined #ruby
samphippen has joined #ruby
beiter has quit [Quit: beiter]
butblack has left #ruby [#ruby]
<shevy> spaces are better than tabs!
<shevy> we agree by majority, only the minority disagrees
otters has joined #ruby
Cultofmetatron has joined #ruby
dzhulk has quit [Quit: Leaving.]
stephenjudkins has quit [Quit: stephenjudkins]
* darkwing_duck applauds spaces...except the extra kind
* darkwing_duck doesn't cringe at tabs, except the non-two-spacey kind
JonnieCache has quit [Ping timeout: 252 seconds]
sh1nji has joined #ruby
darkwing_duck has quit [Quit: \t\t\t]
TheFuzzball has joined #ruby
rjsamson has quit [Remote host closed the connection]
rjsamson has joined #ruby
Grieg has quit [Quit: laterz! :D]
fir_ed has quit [Ping timeout: 264 seconds]
fir_ed has joined #ruby
Banistergalaxy has quit [Read error: Connection reset by peer]
swex has quit [Read error: Operation timed out]
caleb_io has quit [Quit: caleb_io]
rjsamson has quit [Ping timeout: 240 seconds]
rjsamson has joined #ruby
erichmenge has joined #ruby
erichmenge has quit [Client Quit]
stopbit has quit [Quit: Leaving]
jenrzzz has joined #ruby
siyusong has joined #ruby
<shevy> extra kind?
philcrissman has quit [Remote host closed the connection]
horofox has joined #ruby
Tombar has quit [Ping timeout: 260 seconds]
Banistergalaxy has joined #ruby
omg765 has quit [Ping timeout: 255 seconds]
jjang has joined #ruby
J-_-L has quit [Ping timeout: 245 seconds]
<kiyoura> 2-width space tabs or gtfo
jenrzzz has quit [Ping timeout: 260 seconds]
stephenjudkins has joined #ruby
jblack has quit [Ping timeout: 256 seconds]
omg765 has joined #ruby
qwerxy has quit [Quit: offski]
ChampS666 has quit []
invisime has quit [Quit: Leaving.]
TheFuzzball has quit [Ping timeout: 248 seconds]
qwerxy has joined #ruby
hbpoison has joined #ruby
bier_ has quit [Remote host closed the connection]
TheFuzzball has joined #ruby
v0n has joined #ruby
undersc0re97 has quit [Remote host closed the connection]
SuperrMann has quit [Quit: Computer has gone to sleep.]
bier_ has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
macabre has quit [Remote host closed the connection]
theRoUS has quit [Ping timeout: 240 seconds]
reset has quit [Read error: Connection reset by peer]
hbpoison has quit [Ping timeout: 260 seconds]
undersc0re97 has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
tatsuya_o has joined #ruby
fms has quit [Quit: Lost terminal]
combataircrat has joined #ruby
disappearedng has joined #ruby
<disappearedng> I am building a dating site where the user can send an email to an anonymized email address, i.e. hidden-girl123@mysite.com only once and subsequent emails to hidden-girl123@mysite.com will require the user to pay. Any mail servers or FTA to recommend for something quick and easy?
combataircrat has quit [Client Quit]
aetcore has quit []
combataircrat has joined #ruby
combataircrat is now known as combataircraft
mmitchell has joined #ruby
sandstorm has joined #ruby
qwerxy has quit [Quit: offski]
fyolnish has quit [Remote host closed the connection]
berserkr has quit [Quit: Leaving.]
_alejandro has quit [Remote host closed the connection]
jonathanwallace has quit [Remote host closed the connection]
dnstbr has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sdk has joined #ruby
arya has quit [Ping timeout: 244 seconds]
elentras has quit [Ping timeout: 240 seconds]
Chryson has quit [Quit: Leaving]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
cirwin has joined #ruby