apeiros changed the topic of #ruby to: Ruby 2.1.0-p0; 2.0.0-p353; 1.9.3-p484: http://ruby-lang.org|| Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<WJW> shevy, Yes. Active Record (a package) interprets the before_save and does just that.
shanlar has quit [Ping timeout: 260 seconds]
<shevy> hmm
<WJW> It's an ORM.
madb055 has quit [Read error: Connection reset by peer]
<WJW> Object-to-
reset has joined #ruby
<WJW> Object-to-Relational Mapping.
<terrellt> Well, sure, but to support that they have some code wrapped around def save; to insert arbitrary expressions.
<WJW> Absolutely.
drago777 has quit [Ping timeout: 240 seconds]
<terrellt> Arbitrary calls, rather.
bentonrr has quit [Ping timeout: 272 seconds]
derebos has quit [Ping timeout: 240 seconds]
Kar- has joined #ruby
fedesilva has joined #ruby
derebos has joined #ruby
drago777 has joined #ruby
platzhirsch has left #ruby [#ruby]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
lkba has joined #ruby
medecau has joined #ruby
dziga has joined #ruby
spyderman4g63 has quit []
Landshark753 has joined #ruby
Landshark753 has quit [Max SendQ exceeded]
axl_ has joined #ruby
Landshark753 has joined #ruby
jmo has quit [Ping timeout: 246 seconds]
Tamal has quit [Quit: Textual IRC Client: www.textualapp.com]
centipedefarmer has quit [Remote host closed the connection]
<nobitanobi> shevy, whats up. long time not seeing u
<nobitanobi> :)
Asher has joined #ruby
axl_ has quit [Client Quit]
nateberkopec has quit [Quit: Leaving...]
simplyaubs has joined #ruby
havenwood has joined #ruby
kaldreno_ has quit [Remote host closed the connection]
jameshyde1 has joined #ruby
ambushsabre has quit [Quit: rip]
malcolmva has joined #ruby
<shevy> hey nobitanobi
<shevy> yeah
<shevy> last time I saw you in 2013
drago777 has quit [Ping timeout: 240 seconds]
zxd has joined #ruby
<shevy> nobitanobi I am rewriting some 6 years old project right now
joshwines_ has quit [Ping timeout: 240 seconds]
<nobitanobi> oh boy
maroloccio has joined #ruby
<nobitanobi> nice
nannes has quit [Ping timeout: 246 seconds]
itamaryu has quit [Ping timeout: 240 seconds]
mtraptor4_ has quit [Ping timeout: 246 seconds]
<nobitanobi> I've been javascripting with Phantomjs
Jakee` has quit [Ping timeout: 246 seconds]
Landshark753 has quit [Ping timeout: 240 seconds]
jpinnix_ has quit [Read error: Connection reset by peer]
BRMatt has quit [Read error: Connection reset by peer]
Guest85414______ has quit [Read error: Connection reset by peer]
dziga has quit [Read error: Connection reset by peer]
culturelabs has quit [Read error: Connection reset by peer]
JoeTheGuest has quit [Read error: Connection reset by peer]
garndt has quit [Read error: Connection reset by peer]
guilleiguaran has quit [Read error: Connection reset by peer]
karnowski_ has quit [Read error: Connection reset by peer]
denysonique_ has quit [Read error: Connection reset by peer]
Jetchisel has joined #ruby
danshultz has joined #ruby
drago777 has joined #ruby
shedd has joined #ruby
Landshark753 has joined #ruby
Kar- has quit [Ping timeout: 240 seconds]
itamaryu has joined #ruby
jpinnix_ has joined #ruby
Yarou has joined #ruby
JoeTheGuest has joined #ruby
Jakee` has joined #ruby
frem has joined #ruby
karnowski_ has joined #ruby
jameshyde1 has quit [Ping timeout: 246 seconds]
garndt has joined #ruby
Guest85414______ has joined #ruby
dziga has joined #ruby
mtraptor4_ has joined #ruby
centipedefarmer has joined #ruby
joshwines_ has joined #ruby
culturelabs has joined #ruby
BRMatt has joined #ruby
guilleiguaran has joined #ruby
zxd has quit [Ping timeout: 246 seconds]
max96at has quit [Quit: Textual IRC Client: www.textualapp.com]
cameronbarton has joined #ruby
klaut has quit [Remote host closed the connection]
shedd has quit [Ping timeout: 246 seconds]
danshultz has quit [Ping timeout: 246 seconds]
sharms has quit [Ping timeout: 240 seconds]
burlyscudd has quit [Quit: Leaving.]
Landshark753 has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
denysonique_ has joined #ruby
malcolmva has quit [Ping timeout: 240 seconds]
lukec has quit [Quit: lukec]
<shevy> poor you
<cgcardona_> hello I am using https://github.com/attr-encrypted/encryptor to encrypt some refresh and auth tokens before storing them in postgres. However on the decrypt end I'm getting a OpenSSL::Cipher::CipherError (wrong final block length): error.
marr has quit [Ping timeout: 252 seconds]
sharms has joined #ruby
<cgcardona_> when I run OpenSSL::Cipher::Cipher.new('aes-256-cbc').random_iv I get something like "}\x10\x82{\r\x0FK\x0F`\xF15\ayU\x12u"
<cgcardona_> what would be the correct format to store that in active record?
<apeiros> cgcardona_: probably binary
hl has quit [Ping timeout: 246 seconds]
phipes has quit [Remote host closed the connection]
<cgcardona_> i am storing it as binary but it's not correctly decrypting
<cgcardona_> i have checked the .length of the salt, initialization vector and secret both going in and coming out of the db and they are the same.
ambushsabre has joined #ruby
<cgcardona_> you can see here: https://gist.github.com/cgcardona/8229844
Yarou has quit [Ping timeout: 240 seconds]
<cgcardona_> I'm wondering if "}\x10\x82{\r\x0FK\x0F`\xF15\ayU\x12u" should look like �0{$�I������| after saving it?
brunops has joined #ruby
<cgcardona_> it seems like the format is getting converted which I think might be the problem but I'm unsure.
Landshark753 has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
Landshark753 has quit [Max SendQ exceeded]
medecau has quit [Quit: medecau]
<apeiros> cgcardona_: that's because you're outputting it as utf-8
Yarou has joined #ruby
<apeiros> while it isn't utf-8
cj3kim has joined #ruby
<cgcardona_> what would be the correct way to out put it?
<apeiros> you can output it using .inspect
ehc has quit [Ping timeout: 264 seconds]
<apeiros> well, how would you like your unprintable characters to be printed?
Landshark753 has joined #ruby
b00stfr3ak has quit [Ping timeout: 272 seconds]
<cgcardona_> i would like them back in this format "}\x10\x82{\r\x0FK\x0F`\xF15\ayU\x12u" should look like �0{$�I������| after saving it?
<cgcardona_> [4:22pm]
<cgcardona_> oops
<cgcardona_> sorry
<cgcardona_> this format; "}\x10\x82{\r\x0FK\x0F`\xF15\ayU\x12u"
ehc has joined #ruby
Landshark753 has quit [Max SendQ exceeded]
<apeiros> that's what string.inspect gives you
<cgcardona_> that is what I am using as the format of the IV to encrypt
<cgcardona_> ok cool - i'll try that. thanks for the advice.
Landshark753 has joined #ruby
<cgcardona_> even if I'm saving it as :binary?
bedouin has joined #ruby
<cgcardona_> will it still have the .inspect method?
<apeiros> eh?
okinomo has joined #ruby
<apeiros> every object has .inspect. and String#inspect gives you a printable representation with non-printables escaped.
jamesaanderson has joined #ruby
coffeina has quit [Quit: Wychodzi]
magoo has joined #ruby
mehlah has joined #ruby
nannes has joined #ruby
Megtastique has quit []
okinomo has quit [Ping timeout: 264 seconds]
millerti has quit [Quit: millerti]
Landshark753 has quit [Ping timeout: 240 seconds]
drago777 has quit [Ping timeout: 240 seconds]
rankine has quit [Ping timeout: 260 seconds]
malcolmva has joined #ruby
millerti has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
drago777 has joined #ruby
cj3kim has quit [Remote host closed the connection]
Landshark753 has joined #ruby
mikemac has joined #ruby
yo61 has quit [Ping timeout: 240 seconds]
RKornmeyer has quit [Ping timeout: 245 seconds]
Tranquility_ has quit [Ping timeout: 246 seconds]
antonishen has quit [Ping timeout: 240 seconds]
mtraptor4_ has quit [Ping timeout: 245 seconds]
dioms_ has quit [Ping timeout: 246 seconds]
ziyadb has quit [Read error: Operation timed out]
gregoriokusowski has quit [Ping timeout: 240 seconds]
niftylettuce has quit [Ping timeout: 240 seconds]
delinquentme has quit [Ping timeout: 240 seconds]
denysonique_ has quit [Ping timeout: 245 seconds]
yo61 has joined #ruby
antonishen has joined #ruby
flame_ has joined #ruby
bedouin has quit [Ping timeout: 240 seconds]
Avahey has quit [Ping timeout: 264 seconds]
Kricir has quit [Remote host closed the connection]
gregoriokusowski has joined #ruby
Tranquility_ has joined #ruby
dioms_ has joined #ruby
zeade has quit [Quit: Leaving.]
monkegjinni has joined #ruby
mtraptor4_ has joined #ruby
garndt has quit [Ping timeout: 240 seconds]
Avahey has joined #ruby
cj3kim has joined #ruby
iamjarvo_ has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
RKornmeyer has joined #ruby
garndt has joined #ruby
eka has joined #ruby
denysonique_ has joined #ruby
ephemerian has quit [Quit: Leaving.]
ambushsabre has quit [Quit: rip]
nateberkopec has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
lmickh has quit [Ping timeout: 240 seconds]
shedd has joined #ruby
ambushsabre has joined #ruby
bedouin has joined #ruby
mlpinit has quit [Remote host closed the connection]
Landshark753 has quit [Ping timeout: 240 seconds]
drago777 has joined #ruby
niftylettuce has joined #ruby
kewubenduben has quit [Ping timeout: 264 seconds]
dnyy has joined #ruby
four04 has joined #ruby
shedd has quit [Ping timeout: 246 seconds]
burlyscudd has joined #ruby
ambushsabre has quit [Ping timeout: 240 seconds]
snath has quit [Ping timeout: 260 seconds]
millerti has quit [Quit: millerti]
vpretzel has joined #ruby
doodlehaus has joined #ruby
burlyscudd1 has joined #ruby
Kricir has joined #ruby
burlyscudd has quit [Read error: Connection reset by peer]
drago777 has quit [Ping timeout: 240 seconds]
Ryno has joined #ruby
cameronbarton has quit [Quit: cameronbarton]
croaky has quit [Ping timeout: 246 seconds]
cameronbarton has joined #ruby
shadoi1 has quit [Quit: Leaving.]
ambushsabre has joined #ruby
predator117 has quit [Ping timeout: 240 seconds]
cameronbarton has quit [Client Quit]
predator117 has joined #ruby
drago777 has joined #ruby
okinomo has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
ScottNYC has joined #ruby
burlyscudd1 has quit [Ping timeout: 264 seconds]
sepp2k has quit [Read error: Connection reset by peer]
Guest14883 is now known as ageis
hololeap has quit [Ping timeout: 240 seconds]
tedstriker has joined #ruby
robustus has quit [Ping timeout: 252 seconds]
Ryno has quit [Remote host closed the connection]
jmo has joined #ruby
kevind has quit [Quit: kevind]
mansi has joined #ruby
robustus has joined #ruby
shadoi has joined #ruby
ScottNYC has quit [Quit: Linkinus - http://linkinus.com]
kewubenduben has joined #ruby
<shevy> hey guys...
<shevy> let's say you have a project that has both commandline and a GUI component
<shevy> the GUI component is optional though
<shevy> it has some additional dependencies
<shevy> now when I write a .gemspec, should I list these dependencies? they are only optional though... most users may possibly not want these
wildroman2 has joined #ruby
descala has quit [Read error: Connection reset by peer]
FifthWork has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
drago777 has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
hololeap has joined #ruby
jameshyde1 has joined #ruby
descala has joined #ruby
lyanchih has joined #ruby
monkegjinni has quit [Remote host closed the connection]
drago777 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
fuhgeddaboudit has joined #ruby
mikemac has quit [Remote host closed the connection]
shadoi has quit [Quit: Leaving.]
<WJW> shevy, divide the project into two projects?
ehc has quit [Quit: ehc]
fuhgeddaboudit has quit [Max SendQ exceeded]
fuhgeddaboudit has joined #ruby
shedd has joined #ruby
jameshyde1 has quit [Ping timeout: 264 seconds]
<havenwood> yeah, that was my initial impulse, cut a second gem
<shevy> hmm
<shevy> that might be possible
four04 has quit [Quit: Page closed]
eka has quit [Quit: Computer has gone to sleep.]
mikemac has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
<havenwood> or maybe just make it a dependency anyways? does the extra stuff require building ext when otherwise you'd not have to or anything?
shadoi has joined #ruby
peregrin_ has joined #ruby
<havenwood> shevy: hard to say without context but two gems that share a third gem as a common lib? :P
simplyaubs has quit [Ping timeout: 240 seconds]
<shevy> havenwood the extra stuff does not require building extension
<shevy> but it kinda feels dirty to have to burden people who download things with GUI components should they not need it
<shevy> I guess making an extra gem is cleaner, but I dont wanna split up the projects :(
shedd has quit [Ping timeout: 246 seconds]
joaoh82 has quit [Remote host closed the connection]
<shevy> because for my own use case I do like my GUI code!
derebos has quit [Ping timeout: 246 seconds]
dogweather has joined #ruby
peregrin_ has quit [Ping timeout: 240 seconds]
mjburgess has joined #ruby
eka has joined #ruby
<WJW> shevy, make the GUI project depend on the basic project.
<WJW> shevy, then a person who wants both will only have to gem install the GUI one; the other will get pulled along.
butblack has joined #ruby
shedd has joined #ruby
peregrin_ has joined #ruby
Guest61035 has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
mneorr_ has joined #ruby
Mars has joined #ruby
Mars is now known as Guest39315
mikemac has quit [Remote host closed the connection]
<shevy> hmm
<shevy> perhaps I could do...
<shevy> require 'foo'
<shevy> require 'foo/gui'
<shevy> hmmmmmmm
guardianx has joined #ruby
eka has quit [Ping timeout: 240 seconds]
<havenwood> and mention the caveat that you must manually install deps?
mneorr has quit [Ping timeout: 245 seconds]
shadoi has quit [Quit: Leaving.]
snath has joined #ruby
<shevy> hmmmmmmmmmmm
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<shevy> I need to think about this after some sleep soon
<WJW> Doesn't rubygems manage dependencies?
<shevy> I can't think well at all right now
<havenwood> WJW: not optional dependencies
<WJW> So he should make it mandatory.
<havenwood> WJW: not a current feature anyways
<havenwood> there's an Issue ticket open for adding it
Guest39315 has quit [Ping timeout: 246 seconds]
<emocakes> shevy
mneorr_ has quit [Ping timeout: 245 seconds]
<emocakes> make an optional gem
tropicalmug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
* emocakes hath spoken
<havenwood> yeah, 'foo/gui' gem, done
<havenwood> foo-gui
doodlehaus has quit [Remote host closed the connection]
<shevy> hehe
<shevy> ok emocakes has decided
eka has joined #ruby
tropicalmug has joined #ruby
<havenwood> whew, glad we have that resolved
hl has joined #ruby
benzrf has joined #ruby
<shevy> that's how emocakes handles things
<benzrf> hello #eubt
<shevy> goes in for the kill
<benzrf> as i recently mistyped
IceDragon has quit [Ping timeout: 240 seconds]
<shevy> yeah you have a funky keyboard benzrf
shadoi has joined #ruby
IceDragon has joined #ruby
<shevy> hello #ihateyouall!
sharms has quit [Ping timeout: 240 seconds]
<shevy> damn... should have been #ruby
Megtastique has joined #ruby
<benzrf> hello shevy
<benzrf> has your inevitable succumbing to haskell set in yet
<shevy> benzrf, I am porting ancient ruby code to 2014
tropicalmug has quit [Client Quit]
<benzrf> ick
<shevy> the legacy keeps me to ruby
<benzrf> throw it out, rewrite it in haskell
<havenwood> WJW: oh, i missed your comment above - yeah i agree
<shevy> benzrf that reminds me, how do you make GUI code in haskell?
<benzrf> B(\
<benzrf> using a gui library i expect
flubba has quit [Remote host closed the connection]
<shevy> http://hackage.haskell.org/package/gtk Upload dateSun Dec 1 06:59:41 UTC 2013
<shevy> cool
<shevy> seems to be maintained
flubba has joined #ruby
<benzrf> anyway delimited continuations are amazing as shit
okinomo has quit [Ping timeout: 264 seconds]
Virtualize has joined #ruby
<benzrf> shevy: fun fact: haskell is infinitely more testable than ruby because in haskell everything is already guaranteed not to have side effects or depend on implicit program state
<benzrf> B)
sharms has joined #ruby
krz has joined #ruby
<shevy> yeah
<shevy> now if haskell would be a simple language
<shevy> all would be great
<benzrf> it is v simple
<benzrf> it is much simpler than ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
machuga|away is now known as machugs
<benzrf> shevy: btw your manner of speaking reminds me of the guy in this video -> http://www.youtube.com/watch?v=sGXTF6bs1IU
<benzrf> a littl
<benzrf> e
freerobby has quit [Quit: Leaving.]
<shevy> benzrf man that guy has no strength in his voice
freerobby has joined #ruby
flubba has quit [Ping timeout: 240 seconds]
<shevy> benzrf haskell is complicated
okinomo has joined #ruby
millerti has joined #ruby
<WJW> The languages have different kinds of complexity.
centipedefarmer has joined #ruby
Kricir has quit [Remote host closed the connection]
shadoi has quit [Quit: Leaving.]
cow_ has joined #ruby
kewubenduben has quit [Ping timeout: 264 seconds]
machugs is now known as machuga
miah has quit [Read error: Operation timed out]
poutine has quit [Ping timeout: 246 seconds]
Meistarin has quit [Ping timeout: 240 seconds]
epochwolf has quit [Ping timeout: 260 seconds]
bmn has quit [Ping timeout: 252 seconds]
emocakes has quit [Quit: Leaving...]
ahuman has quit [Quit: No Ping reply in 180 seconds.]
ahuman has joined #ruby
faulkner has quit [Ping timeout: 246 seconds]
yellow5 has quit [Ping timeout: 246 seconds]
Ryno has joined #ruby
artgoeshere has quit [Ping timeout: 240 seconds]
Ryno has left #ruby [#ruby]
michael_mbp has quit [Quit: ZNC - http://znc.sourceforge.net]
Tarential has quit [Ping timeout: 245 seconds]
hostess has quit [Ping timeout: 252 seconds]
russt has quit [Quit: russt]
anekos_ has quit [Ping timeout: 245 seconds]
rcs has quit [Ping timeout: 272 seconds]
ReinH has quit [Ping timeout: 260 seconds]
DrForr has quit [Ping timeout: 245 seconds]
shadoi has joined #ruby
cub1c has quit [Ping timeout: 252 seconds]
Hamled|Erp has quit [Ping timeout: 260 seconds]
yellow5 has joined #ruby
SirCmpwn has quit [Ping timeout: 272 seconds]
Voodoofish430 has quit [Quit: Leaving.]
jamesaanderson has quit [Quit: Textual IRC Client: www.textualapp.com]
ageis has quit [Remote host closed the connection]
<WJW> Ruby's complexity comes from _shared access_ to _mutable state_.
joaoh82 has joined #ruby
dagen has joined #ruby
dagen has left #ruby [#ruby]
ageis has joined #ruby
burlyscudd has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 240 seconds]
zz_jrhorn424 is now known as jrhorn424
joaoh82 has quit [Read error: Connection reset by peer]
joaoh82 has joined #ruby
bricker is now known as bricker`away
SirCmpwn has joined #ruby
hostess has joined #ruby
derf- has quit [Ping timeout: 240 seconds]
poutine has joined #ruby
rcs has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
faulkner has joined #ruby
burlyscudd has quit [Ping timeout: 264 seconds]
derf- has joined #ruby
Mars has joined #ruby
joaoh82 has quit [Ping timeout: 240 seconds]
Mars is now known as Guest24690
michael_mbp has joined #ruby
bmn has joined #ruby
tacos1de has joined #ruby
drago777 has joined #ruby
shadoi has quit [Quit: Leaving.]
Hamled has joined #ruby
anekos_ has joined #ruby
Tarential has joined #ruby
brennanMKE has joined #ruby
bentonrr_ has quit [Remote host closed the connection]
artgoeshere has joined #ruby
benzrf has quit [Quit: zzz]
rjhunter has joined #ruby
reset has quit [Quit: Leaving...]
epochwolf has joined #ruby
meatherly has joined #ruby
reset has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
DrForr has joined #ruby
Guest24690 has quit [Remote host closed the connection]
freerobby has joined #ruby
tedstriker has quit [Quit: Anti-Fraping status set.]
Meistarin has joined #ruby
dagnachew has joined #ruby
falood has joined #ruby
aspires has quit []
miah has joined #ruby
shadoi has joined #ruby
ReinH has joined #ruby
stryek has quit [Quit: Leaving]
axl_ has joined #ruby
reset has quit [Ping timeout: 246 seconds]
cub1c_ has joined #ruby
larissa has quit [Quit: Leaving]
Barrin6 has joined #ruby
phipes has joined #ruby
timonv has joined #ruby
kewubenduben has joined #ruby
Barrin6 has quit [Max SendQ exceeded]
Barrin6 has joined #ruby
Meistarin has left #ruby ["Closing Window"]
hololeap|2 has joined #ruby
okinomo has quit [Ping timeout: 240 seconds]
hololeap has quit [Remote host closed the connection]
mzdravkov has left #ruby [#ruby]
MattStratton has quit [Ping timeout: 264 seconds]
faulkner has quit [Ping timeout: 246 seconds]
jameshyde1 has joined #ruby
jameshyde1 has quit [Max SendQ exceeded]
ericthewino has quit [Ping timeout: 252 seconds]
michael_mbp has quit [Quit: ZNC - http://znc.sourceforge.net]
timonv has quit [Ping timeout: 264 seconds]
michael_mbp has joined #ruby
jmo has quit [Ping timeout: 240 seconds]
rcs has quit [Ping timeout: 246 seconds]
faulkner has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
mehlah has quit [Quit: Leaving...]
shadoi has quit [Quit: Leaving.]
millerti has quit [Ping timeout: 240 seconds]
octarine has joined #ruby
rcs has joined #ruby
shadoi has joined #ruby
whatasunnyday has joined #ruby
emocakes has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
whatasunnyday has left #ruby [#ruby]
LinearInterpol has quit [Read error: Connection timed out]
Hanmac1 has joined #ruby
LinearInterpol has joined #ruby
drago777 has joined #ruby
troyready has quit [Ping timeout: 245 seconds]
kewubenduben has quit [Ping timeout: 240 seconds]
machty has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
dogweather has quit [Remote host closed the connection]
CpuID has quit [Quit: This computer has gone to sleep]
swills has joined #ruby
Hanmac has joined #ruby
LinearInterpol has quit [Read error: Connection reset by peer]
shadoi has quit [Quit: Leaving.]
Hanmac1 has quit [Ping timeout: 240 seconds]
ace_striker has quit [Quit: Page closed]
includex has quit [Quit: Textual IRC Client: www.textualapp.com]
maroloccio has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
tt1187 has quit [Ping timeout: 246 seconds]
shadoi has joined #ruby
dscrd has joined #ruby
LinearInterpol has joined #ruby
dseitz has joined #ruby
Guest39668 has quit [Quit: leaving]
burlyscudd has joined #ruby
dagnachew has quit [Ping timeout: 246 seconds]
lewix has joined #ruby
dseitz_ has joined #ruby
mikemac has joined #ruby
dseitz has quit [Disconnected by services]
dseitz_ is now known as dseitz
danshultz has joined #ruby
mattk has joined #ruby
god_clearance has joined #ruby
peregrin_ has quit []
robert___ has joined #ruby
zarul has quit [Ping timeout: 260 seconds]
robert___ is now known as robert_
drago777 has quit [Ping timeout: 240 seconds]
ph88 has quit [Quit: Page closed]
sharms has quit [Ping timeout: 240 seconds]
subbyyy has quit [Read error: Operation timed out]
jonr22 has joined #ruby
artgoeshere has quit [Ping timeout: 240 seconds]
artgoeshere has joined #ruby
drago777 has joined #ruby
shadoi has quit [Quit: Leaving.]
magoo has quit [Ping timeout: 240 seconds]
phipes has quit [Remote host closed the connection]
kure has joined #ruby
tectonic has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
phipes has joined #ruby
freerobby has quit [Quit: Leaving.]
kure_ has quit [Ping timeout: 265 seconds]
shadoi has joined #ruby
sharms has joined #ruby
varfoo has joined #ruby
brunops has quit [Ping timeout: 264 seconds]
grieg has left #ruby [#ruby]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
Hanmac1 has joined #ruby
mikemac has quit [Remote host closed the connection]
tomsthumb has joined #ruby
vlad_starkov has joined #ruby
shedd has quit [Remote host closed the connection]
joaoh82 has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
ffio has quit [Quit: WeeChat 0.4.1]
kitak has quit [Ping timeout: 245 seconds]
emocakes has quit [Quit: Leaving...]
zeade has joined #ruby
byprdct has joined #ruby
burlyscudd has quit [Quit: Leaving.]
joaoh82 has quit [Ping timeout: 264 seconds]
shadoi has quit [Quit: Leaving.]
cbetta is now known as cbetta_afk
emocakes has joined #ruby
freerobby has joined #ruby
aspires has joined #ruby
yacks has joined #ruby
shadoi has joined #ruby
asteve has joined #ruby
asteve has quit [Max SendQ exceeded]
asteve has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
LinearInterpol has quit [Ping timeout: 240 seconds]
okinomo has joined #ruby
god_clearance has quit [Quit: Leaving]
drago777 has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
mansi has quit [Remote host closed the connection]
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
mansi has joined #ruby
flame_ has quit [Quit: Computer has gone to sleep.]
brunops has joined #ruby
jameshyde1 has joined #ruby
jameshyde1 has quit [Max SendQ exceeded]
markfletcher has joined #ruby
kitak has joined #ruby
maletor has joined #ruby
shadoi has quit [Quit: Leaving.]
clamstar has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Quit: Leaving.]
mansi has quit [Ping timeout: 246 seconds]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
shadoi has joined #ruby
CpuID has joined #ruby
CpuID has quit [Changing host]
CpuID has joined #ruby
psyl0n has joined #ruby
grieg_ has joined #ruby
jameshyde1 has joined #ruby
Hanmac has joined #ruby
Hanmac1 has quit [Ping timeout: 246 seconds]
cj3kim has quit [Remote host closed the connection]
jonr22 has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
nfk has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
tigris_ has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Remote host closed the connection]
dmoe has joined #ruby
jonr22 has joined #ruby
<tigris_> TIL you can run the #call method on an instance by simply using .() instead of .call().... wow
drago777 has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
lethjakman has quit [Ping timeout: 272 seconds]
<pontiki> man, are we going to have another evening of Evangelical Haskell?
jonr22 has quit [Client Quit]
drago777 has joined #ruby
cj3kim has quit [Remote host closed the connection]
<bricker`LA> >> p = proc { puts "Hello" }; p.()
<eval-in> bricker`LA => Hello ... (https://eval.in/85133)
<bricker`LA> :O
grieg_ has quit [Quit: grieg_]
shedd has joined #ruby
<bricker`LA> >> p = proc { puts "Hello" }; p();
<eval-in> bricker`LA => nil (https://eval.in/85134)
mattk has quit [Max SendQ exceeded]
freerobby has joined #ruby
danshultz has quit [Remote host closed the connection]
<bricker`LA> *frysquint*
mattk has joined #ruby
guardianx has quit [Ping timeout: 240 seconds]
<havenwood> tigris_: or `[]` instead of `.call` or `.()`
<bricker`LA> this is impossible to google for
freebs has quit [Quit: Leaving.]
<tigris_> havenwood: [] doesn't invoke #call, it invokes #[], it just so happens proc defined #[]
<tigris_> >> String.('asdf')
maletor has quit [Quit: Computer has gone to sleep.]
shadoi has quit [Quit: Leaving.]
<bricker`LA> *dives for cover*
chrisan has quit [Ping timeout: 272 seconds]
Mars has joined #ruby
guardianx has joined #ruby
<tigris_> e.g.... class Foo; def self.call(arg); puts "zomg: #{arg}"; end; end; Foo.('wow')
Mars is now known as Guest4700
shedd has quit [Ping timeout: 246 seconds]
markfletcher has quit [Quit: Leaving]
<havenwood> tigris_: oh right, i misunderstood what you were getting at at first
Guest4700 has quit [Remote host closed the connection]
shadoi has joined #ruby
<popl> s/Foo/Sham/g
mlpinit has joined #ruby
xiphias has quit [Remote host closed the connection]
<tigris_> haha!
xiphias has joined #ruby
xiphias has quit [Changing host]
xiphias has joined #ruby
endash has quit [Quit: endash]
kate_r has joined #ruby
okinomo has quit [Ping timeout: 264 seconds]
bentonrr has joined #ruby
DrShoggoth has quit [Ping timeout: 246 seconds]
xiphias has quit [Ping timeout: 240 seconds]
LadyRainicorn has joined #ruby
mansi has joined #ruby
aryaching has joined #ruby
shadoi has quit [Quit: Leaving.]
lyanchih has quit [Quit: lyanchih]
iamjarvo_ has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
sharms has quit [Ping timeout: 240 seconds]
iamjarvo_ has joined #ruby
ffio has joined #ruby
IceDragon has quit [Ping timeout: 246 seconds]
xiphias has joined #ruby
tectonic has quit [Ping timeout: 240 seconds]
sharms has joined #ruby
lyanchih has joined #ruby
amclain has joined #ruby
shadoi has joined #ruby
lfox has joined #ruby
havenwood has joined #ruby
iamjarvo_ has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
DrShoggoth has joined #ruby
jmo has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
LadyRainicorn has quit [Read error: Connection reset by peer]
lfox has quit [Ping timeout: 240 seconds]
burlyscudd has quit [Quit: Leaving.]
dscrd has quit [Remote host closed the connection]
DrShoggoth has quit [Max SendQ exceeded]
dscrd has joined #ruby
aspires has quit []
drago777 has quit [Ping timeout: 240 seconds]
jmo has quit [Ping timeout: 240 seconds]
drago777 has joined #ruby
sharms has joined #ruby
w4pm has quit [Ping timeout: 272 seconds]
timonv has joined #ruby
enclaved has joined #ruby
enclaved has left #ruby ["WeeChat 0.4.2"]
axl_ has quit [Read error: No buffer space available]
rien has quit [Ping timeout: 260 seconds]
magoo has joined #ruby
rien has joined #ruby
dscrd has quit [Ping timeout: 246 seconds]
shadoi has quit [Quit: Leaving.]
rjhunter has quit [Remote host closed the connection]
lyanchih has quit [Quit: lyanchih]
axl_ has joined #ruby
Hanmac1 has joined #ruby
aef has joined #ruby
zeade has quit [Quit: Leaving.]
DrShoggoth has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
Hanmac has quit [Ping timeout: 240 seconds]
sharms has quit [Ping timeout: 240 seconds]
tectonic has joined #ruby
gquental has quit [Ping timeout: 272 seconds]
shadoi has joined #ruby
mary5030 has joined #ruby
braincra- has quit [Quit: bye bye]
poguez_ has joined #ruby
sharms has joined #ruby
poguez_ has quit [Client Quit]
cow_ has quit [Remote host closed the connection]
poguez_ has joined #ruby
ericthewino has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
alexherbo2 has joined #ruby
braincrash has joined #ruby
aspires has joined #ruby
jmimi has quit [Quit: Leaving.]
brunops has quit [Changing host]
brunops has joined #ruby
emocakes has quit [Quit: Leaving...]
shedd has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
mattk has quit [Read error: Operation timed out]
mansi has quit [Ping timeout: 264 seconds]
shadoi has quit [Quit: Leaving.]
shedd has quit [Ping timeout: 264 seconds]
Hanmac has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
gquental has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
shadoi has joined #ruby
aspires has quit []
tectonic has quit [Ping timeout: 240 seconds]
mlpinit has quit [Quit: Leaving...]
fedesilva has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 246 seconds]
rjhunter has joined #ruby
benlieb has joined #ruby
LadyRainicorn has joined #ruby
mr_red has quit [Ping timeout: 246 seconds]
maletor has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
dingwall has joined #ruby
LexicalScope has joined #ruby
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
tectonic has joined #ruby
LinearInterpol has joined #ruby
mr_red has joined #ruby
shedd has joined #ruby
burlyscudd has joined #ruby
shedd has quit [Read error: Connection reset by peer]
maletor has joined #ruby
shedd has joined #ruby
smathieu has joined #ruby
ewnd9 has joined #ruby
benlieb has quit [Client Quit]
digital-ghost has quit [Remote host closed the connection]
mr_red has quit [Client Quit]
nanoyak has joined #ruby
burlyscudd1 has joined #ruby
okinomo has joined #ruby
psyl0n has quit [Remote host closed the connection]
aryaching has joined #ruby
burlyscudd has quit [Ping timeout: 264 seconds]
cj3kim has quit [Ping timeout: 246 seconds]
centipedefarmer has quit [Remote host closed the connection]
shadoi has quit [Quit: Leaving.]
maletor has quit [Quit: Computer has gone to sleep.]
psyprus has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
maletor has joined #ruby
rien has quit [Ping timeout: 246 seconds]
CaptainJet has quit []
Landshark753 has joined #ruby
psyprus has joined #ruby
Landshark753 has quit [Max SendQ exceeded]
smathieu has quit [Remote host closed the connection]
Landshark753 has joined #ruby
sayd has joined #ruby
<sayd> when i git push using mavericks and boxen i see /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- bundler/setup (LoadError)
drago777 has quit [Ping timeout: 240 seconds]
anekos_ has quit [Ping timeout: 240 seconds]
burlyscudd1 has quit [Ping timeout: 240 seconds]
rien has joined #ruby
aspires has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
sharms has quit [Ping timeout: 240 seconds]
anekos_ has joined #ruby
lukec has joined #ruby
okinomo has quit [Ping timeout: 240 seconds]
<rjhunter> sayd: fancy seeing you here :-) I'll just cross-post my replies to give context for anyone else who might be listening
drago777 has joined #ruby
<rjhunter> sayd: That means the "bundler" gem is not installed in a place the system Ruby can find it.
okinomo has joined #ruby
<rjhunter> sayd: From memory, Boxen uses rbenv for ruby management, so you probably want to use one of the rbenv rubies instead
cj3kim has joined #ruby
psyprus has quit [Ping timeout: 240 seconds]
<rjhunter> sayd: Git itself doesn't use ruby or bundler at all -- but it's quite possible there's a hook script or wrapper script or similar written in ruby
<rjhunter> it sounds like a Boxen thing, anyway
<rjhunter> if you set the environment variable `RUBYOPT=-d` you might see some files being required to give you a clue
Landshark753 has quit [Ping timeout: 240 seconds]
sharms has joined #ruby
mr_red has joined #ruby
gja has joined #ruby
psyprus has joined #ruby
rien has quit [Ping timeout: 240 seconds]
danshultz has joined #ruby
flubba has joined #ruby
LinearInterpol has quit [Read error: Connection reset by peer]
LinearInterpol has joined #ruby
rien has joined #ruby
xjiujiu has joined #ruby
okinomo has quit [Ping timeout: 240 seconds]
okinomo has joined #ruby
Landshark753 has joined #ruby
<sayd> good idea rjhunter
gja has quit [Client Quit]
danshultz has quit [Ping timeout: 240 seconds]
Mars has joined #ruby
lethjakman has joined #ruby
Mars is now known as Guest95481
rien has quit [Ping timeout: 246 seconds]
mjburgess has quit [Ping timeout: 245 seconds]
m00nlight has quit [Ping timeout: 272 seconds]
<rjhunter> sayd: hm, less useful than i was hoping
<rjhunter> sayd: OK, let's try another crazy trick. It'll really only work if you've got no other Ruby processes running at the moment.
<rjhunter> sayd: sudo dtruss -f -n ruby
<rjhunter> and leave that running while you try to push again
cow_ has joined #ruby
nannes has quit [Quit: Leaving.]
cj3kim has quit [Ping timeout: 246 seconds]
rien has joined #ruby
nannes has joined #ruby
cameronbarton has joined #ruby
jameshyde1 has quit [Quit: Leaving.]
cow_ has quit [Read error: Connection reset by peer]
cow_ has joined #ruby
ewnd9 has quit [Ping timeout: 246 seconds]
jameshyde1 has joined #ruby
Guest95481 has quit [Ping timeout: 240 seconds]
Landshark753 has quit [Ping timeout: 240 seconds]
<sayd> hrmm i cant open new terminal tab now
LadyRainicorn has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
rien has quit [Ping timeout: 240 seconds]
<sayd> sorry i can- just took awhile. and there is lots of output from that druss trace
<sayd> mind if i pm the gist in case of sensitive data
Landshark753 has joined #ruby
rien has joined #ruby
<rjhunter> that means there are other ruby processes running
cow_ has quit [Ping timeout: 246 seconds]
<sayd> ahh my sass compiler maybe
kitak has quit [Remote host closed the connection]
<rjhunter> sure, it's quite possible there will be (lightly) sensitive data in there
<rjhunter> filenames for sure
<rjhunter> that'd do it
mneorr has joined #ruby
LadyRainicorn has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
vpretzel has quit [Remote host closed the connection]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
drago777 has quit [Ping timeout: 240 seconds]
<sayd> i dunno-
gja has quit [Client Quit]
sharms has quit [Ping timeout: 240 seconds]
<sayd> i dont have sass running :/ how would i output the dtruss trace into a file?
vlad_starkov has quit [Read error: Connection reset by peer]
LexicalScope has quit [Ping timeout: 240 seconds]
LadyRainicorn has joined #ruby
drago777 has joined #ruby
kitak has joined #ruby
ffio has quit [Quit: WeeChat 0.4.2]
gregoriokusowski has quit [Quit: gregoriokusowski]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
jbzt has joined #ruby
kitak has quit [Read error: Connection reset by peer]
sharms has joined #ruby
kitak has joined #ruby
<jbzt> Anyone know if there is a way to tell Bundler to use a :path value for dev/test, but a regular gem in production? I didn't see anything in the docs about that set up
nisstyre has quit [Ping timeout: 264 seconds]
<rjhunter> sayd: dtruss ... > file.txt
sepp2k has joined #ruby
LinearInterpol has quit [Ping timeout: 264 seconds]
<rjhunter> jbzt: Try declaring the gem twice, once in each group
tonni has quit [Remote host closed the connection]
dogweather has joined #ruby
<jbzt> rjhunter: I tried that, it doesn't work. 'You cannot specify the same gem twice coming from different sources.'
cameronbarton has quit [Quit: cameronbarton]
ffio has joined #ruby
<jbzt> I think I need to use --local from http://bundler.io/v1.5/bundle_config.html
<jbzt> I thought there might be a more programmatic way
tigris_ has left #ruby ["Leaving..."]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
okinomo has quit [Ping timeout: 264 seconds]
cow_ has joined #ruby
<rjhunter> jbzt: Hm. In that case, you'll have to put up with different `Gemfile.lock`s, which may or may not be a problem for you
<rjhunter> Gemfiles are just ruby code
<rjhunter> so you can use whatever constructs you like including `if` and the like
Eiam has quit [Ping timeout: 260 seconds]
<sayd> is there a reason this script wouldnt show bold colors https://gist.github.com/3373b1d88b07657ec25b
<rjhunter> but the resulting Gemfile.lock will bake in those assumptions
lyanchih has joined #ruby
kalamazoo has quit []
<sayd> rjhunter: its not capturing to the file for some reason
<rjhunter> sayd: can other programs display bold colors work on that same terminal?
cow_ has quit [Remote host closed the connection]
rm__ has joined #ruby
<sayd> is there a simple test I could try?
<rjhunter> sayd: ah, that's right, dtruss outputs to stderr rather than stdout. you'll need to use `2>` instead of just `>`
LadyRainicorn has quit [Read error: Connection reset by peer]
<sayd> thanks for the help btw
vlad_starkov has joined #ruby
ayaz has quit [Remote host closed the connection]
ayaz has joined #ruby
rjhunter has quit [Ping timeout: 240 seconds]
ayaz is now known as Guest62374
rjhunter has joined #ruby
browndawg has joined #ruby
Kricir has joined #ruby
m00nlight has joined #ruby
<rjhunter> sayd: I see that the `hub` command is being run (/opt/boxen/homebrew/bin/hub)
<rjhunter> which is a ruby script
aryaching_ has joined #ruby
Xiti` has joined #ruby
amclain_ has joined #ruby
yellow5 has quit [Ping timeout: 240 seconds]
amclain has quit [Read error: Connection reset by peer]
magbeat_ has quit [Ping timeout: 245 seconds]
shredding has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<rjhunter> sayd: in particular, the boxen-git-credential script seems to be the one looking for bundler
<sayd> hmm yeah
Landshark753 has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
phus1on has quit [Ping timeout: 245 seconds]
bentonrr has quit [Remote host closed the connection]
drago777 has quit [Ping timeout: 240 seconds]
aryaching has quit [Ping timeout: 264 seconds]
bentonrr has joined #ruby
magbeat has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
dogweather has quit [Ping timeout: 240 seconds]
Xiti has quit [Ping timeout: 240 seconds]
<rjhunter> Are you running git from Xcode?
lukec has quit [Quit: lukec]
vlad_starkov has quit [Read error: Connection reset by peer]
Guest70869 has quit [Remote host closed the connection]
xsdg has quit [Ping timeout: 245 seconds]
tacos1de has quit [Ping timeout: 240 seconds]
sts has joined #ruby
phus1on has joined #ruby
Landshark753 has joined #ruby
drago777 has joined #ruby
jbzt has quit [Quit: jbzt]
dogweather has joined #ruby
parus has quit [Ping timeout: 272 seconds]
yellow5 has joined #ruby
parus has joined #ruby
sts is now known as Guest26922
Landshark753 has quit [Max SendQ exceeded]
germanstudent has quit [Ping timeout: 245 seconds]
psyprus has quit [Ping timeout: 240 seconds]
Landshark753 has joined #ruby
mikemac has joined #ruby
bentonrr has quit [Ping timeout: 246 seconds]
psyprus has joined #ruby
<sayd> no its the boxen git
gja has joined #ruby
z has quit [Ping timeout: 246 seconds]
gja has quit [Remote host closed the connection]
germanstudent has joined #ruby
<sayd> its probably a botched boxen install
<sayd> rbenv list shows no versions
drago777 has quit [Ping timeout: 240 seconds]
Guest26922 has quit [Ping timeout: 240 seconds]
<rjhunter> I think you can run `boxen` on its own from your home directory to run it again
phipes has quit [Remote host closed the connection]
xiphias has quit [Ping timeout: 240 seconds]
tacos1de has joined #ruby
<rjhunter> hopefully, given its puppet-based backing, that should do whatever it needs to get things in order
z has joined #ruby
sts_ has joined #ruby
<sayd> nm, it does.. weird it didnt a minute ago
xsdg has joined #ruby
<rjhunter> or in the mean time you could comment out the credential.helper line in your ~/.gitconfig
sts_ is now known as Guest4780
xiphias has joined #ruby
dpswireless has joined #ruby
drago777 has joined #ruby
Virtualize has quit [Ping timeout: 264 seconds]
<sayd> running boxen gives troubling results : https://gist.github.com/marr/8233330
sharms has quit [Ping timeout: 240 seconds]
<rjhunter> oh, that'll just be the leftover RUBYOPT=-d
mary5030 has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
<sayd> Psych Sych Hack arethose expected :)
cj3kim has joined #ruby
<rjhunter> without debug mode you wouldn't see those. you can unset RUBYOPT to go back to blissful ignorance :-)
phipes has joined #ruby
<rjhunter> yeah, Rubygems has code to deal with the Psych YAML parser's Syck module
xsdg has quit [Ping timeout: 240 seconds]
browndawg has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
<rjhunter> reminds me of the time I was debugging a Rails error and noticed that stack trace mentioned "dirty strippers"
sharms has joined #ruby
<sayd> when I gem list --local bundler appears to be installed
kitak has quit [Remote host closed the connection]
xsdg has joined #ruby
aagdbl has joined #ruby
<rjhunter> where does `gem which bundler/setup` say it's located?
xiphias has quit [Ping timeout: 240 seconds]
zaychenok has quit [Ping timeout: 272 seconds]
zaychenok has joined #ruby
DrShoggoth has quit [Remote host closed the connection]
tkuchiki has joined #ruby
xiphias has joined #ruby
dpswireless has quit [Remote host closed the connection]
browndawg has joined #ruby
agjacome has quit [Quit: leaving]
shredding has quit [Read error: Connection reset by peer]
lyanchih has quit [Quit: lyanchih]
vpretzel has joined #ruby
kitak has joined #ruby
xsdg has quit [Ping timeout: 240 seconds]
<sayd> /opt/boxen/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/setup.rb
xsdg has joined #ruby
jameshyde1 has quit [Quit: Leaving.]
agjacome has joined #ruby
spondbob has joined #ruby
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
sethen has quit [Quit: Leaving...]
cow_ has joined #ruby
<rjhunter> the trace you sent before was using the system ruby (looking for gems in "/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0/gems/")
xiphias has quit [Ping timeout: 240 seconds]
<rjhunter> so I'm guessing the place that's running git isn't also running rbenv?
<rjhunter> (it might be a shell startup thing, so consider opening a new terminal to see the behaviour there)
Virtualize has joined #ruby
dpswireless has joined #ruby
rien has quit [Ping timeout: 240 seconds]
xsdg has quit [Ping timeout: 246 seconds]
rien has joined #ruby
xiphias has joined #ruby
spondbob has quit [Client Quit]
yacks has quit [Quit: Leaving]
<kure> Any ncurses lovers here?
Megtastique has quit []
<rjhunter> kure: define "lover" :-)
jmo has joined #ruby
<kure> rjhunter, people that like ncurses' software and enjoy textual interfaces
gja has joined #ruby
xsdg has joined #ruby
<kure> I think Ruby + Ncurses is the perfect combination for textual-interface awesomeness
ambushsabre has quit [Quit: rip]
niklasb has quit [Ping timeout: 245 seconds]
axl_ has quit [Quit: axl_]
vlad_starkov has joined #ruby
lyanchih has joined #ruby
<rjhunter> kure: I haven't written against Ncurses (with Ruby or anything beyond `tput` really) but there are many text-based apps I have enjoyed (and some I still do)
xsdg has quit [Remote host closed the connection]
robbyoconnor has quit [Read error: Operation timed out]
xsdg has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
browndawg has quit [Quit: Leaving.]
joaoh82 has joined #ruby
adam12 is now known as adam
jmo has quit [Ping timeout: 246 seconds]
<kure> They're awesome! Usually fast, straight-to-the-point and kinda cute... In a textual way
dukz has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
xiphias has joined #ruby
robbyoconnor has joined #ruby
<kure> Anyway, I just want to chat, share apps and such
Landshark753 has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
vpretzel has quit [Ping timeout: 246 seconds]
<sayd> kure: you may be the right person to ask then - do you know why colors would be interpreted as bold
<sayd> notice in macvim http://cl.ly/image/2p441e0j2P0x the colors seem more accurate than in terminal vim http://cl.ly/image/0s3t1h3r1Q2O
spondbob has joined #ruby
<kure> sayd, you mean the bold attribute that highlight colors?
<sayd> yea
BrixSat_ has quit [Read error: Connection reset by peer]
BrixSat has joined #ruby
<kure> It has to do with full color support, right? Since terminals are limited (old were up to 16 colors, most modern go up to 256) they must have a way to separate color schemes
drago777 has quit [Ping timeout: 240 seconds]
Landshark753 has joined #ruby
joaoh82 has quit [Ping timeout: 264 seconds]
brunops has quit [Quit: leaving]
spondbob has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<kure> Low-level ncurses calls only support a C enum with 8 elements - red blue green yellow magenta orange black and white
aetaric has quit [Quit: Got ZNC?]
<kure> Bold makes possible to extend these into 16 colors, not necessarily lighter versions of those colors. It kinda became a standard
mikemac has quit [Remote host closed the connection]
xiphias has quit [Ping timeout: 240 seconds]
<sayd> yeah im using iterm2 which i know supports many
<rjhunter> your terminal can probably choose what to do with "bold" text -- actually bold the characters, color it brightly, or both
<rjhunter> iterm2 certainly can
<kure> Indeed
<sayd> and using a script http://cl.ly/image/1Y0H3z2E1808
xpirator has joined #ruby
<kure> I'm following the development of Final Term - so much hype (http://finalterm.org/)
drago777 has joined #ruby
rehat has joined #ruby
xsdg has quit [Ping timeout: 264 seconds]
Al___ has joined #ruby
<kure> Oh, interesting script
spondbob has joined #ruby
xiphias has joined #ruby
banister has joined #ruby
<rehat> if I have a @varible in my class, should I be able to access it from any method?
krz has quit [Ping timeout: 246 seconds]
<rjhunter> i haven't heard of finalterm. but it sounds like it's headed in the direction i've been thinking about for a while :-)
xsdg has joined #ruby
mneorr has quit [Remote host closed the connection]
Landshark753 has quit [Ping timeout: 240 seconds]
<kure> rehat, if that method is called after you create @variable, then yeah
mneorr has joined #ruby
sharms has joined #ruby
<rjhunter> rehat: if you create @variable in one method, you can access it from another, yes.
dukz_ has joined #ruby
<rjhunter> rehat: but if you create @variable in a class method or in the class body, it will mean something different
<rehat> yeah I have it in the class body
kitak has quit [Remote host closed the connection]
<rehat> it doesn't like line 11
<rehat> and most likely 12
Landshark753 has joined #ruby
dukz__ has joined #ruby
<rehat> oh should I make some kind of constructor and assign those values?
mansi has joined #ruby
<rehat> shit I think thats what it is haha
<rjhunter> rehat: what you probably want is either an `initialize` method or CONSTANT_VALUES
Oku7 has joined #ruby
agjacome has quit [Quit: leaving]
xiphias has quit [Ping timeout: 240 seconds]
WJW has quit [Quit: Page closed]
dukz has quit [Ping timeout: 246 seconds]
shedd has quit [Remote host closed the connection]
<rjhunter> also, you probably want to move those `require` lines outside of the class
xsdg has quit [Remote host closed the connection]
mneorr has quit [Ping timeout: 264 seconds]
xsdg has joined #ruby
<rjhunter> it won't usually make a big difference, but it's normal and won't surprise you later
xiphias has joined #ruby
xjiujiu has quit [Read error: Connection reset by peer]
brandonblack has quit [Ping timeout: 252 seconds]
kitak has joined #ruby
dukz_ has quit [Ping timeout: 264 seconds]
vpretzel has joined #ruby
rm__ has quit [Ping timeout: 240 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
dukz__ has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
<nannes> Guys
<Oku7> hey
<nannes> What is this ? http://paste.org.ru/?uhspbs
dukz has joined #ruby
hololeap|2 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Landshark753 has quit [Ping timeout: 240 seconds]
cgcardona_ has quit [Quit: cgcardona_]
mansi has quit [Ping timeout: 246 seconds]
browndawg has joined #ruby
kitak has quit [Remote host closed the connection]
Oku7 has quit [Quit: Leaving.]
brandonblack has joined #ruby
zxd has joined #ruby
Oku71 has joined #ruby
xsdg has quit [Ping timeout: 264 seconds]
dukz_ has joined #ruby
Virtualize has quit [Quit: Leaving...]
<rjhunter> nannes: encoding issue
nateberkopec has quit [Quit: Leaving...]
sayan has joined #ruby
vpretzel has quit [Ping timeout: 246 seconds]
OdNairy has joined #ruby
Wolland has quit [Remote host closed the connection]
<rjhunter> nannes: specifically, something in the rails database configuration (which is usually config/database.yml)
Landshark753 has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
<nannes> oh
dukz__ has joined #ruby
zxd has quit [Ping timeout: 246 seconds]
<nannes> oh yea :)))
dukz has quit [Ping timeout: 240 seconds]
<nannes> there was an invalid character, that I put there someway without even realizing it
<nannes> Thanks :D
xiphias has joined #ruby
yellow5 has quit [Ping timeout: 240 seconds]
<nannes> How did you find out it was database.yml?
<nannes> What's your secret ? hehehe
dpswireless has quit [Read error: Connection reset by peer]
noop has joined #ruby
yellow5 has joined #ruby
agjacome has joined #ruby
dukz_ has quit [Read error: Connection reset by peer]
dpswireless has joined #ruby
<rjhunter> i read the error message
<nannes> rjhunter: another error
Landshark753 has quit [Client Quit]
<nannes> rake aborted! database configuration does not specify adapter
sayan_ has joined #ruby
<nannes> But that's not true, I did specify it
kitak has joined #ruby
<rjhunter> in particular, the top of the stack trace was in "database_configuration"
sayan_ has quit [Read error: Connection reset by peer]
guardianx has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
<rjhunter> nannes: you may not have specified it in the way that rails understands
emocakes has joined #ruby
<nannes> adapter: postgresql
<nannes> how else? :'(
gja has quit [Quit: This computer has gone to sleep]
<rjhunter> rails has "environments" like production, then the settings go under there
drago777 has quit [Ping timeout: 240 seconds]
z has quit [Ping timeout: 246 seconds]
xiphias has quit [Ping timeout: 240 seconds]
brandonblack has quit [Ping timeout: 240 seconds]
<rjhunter> i recommend copying from a sample, like this one: https://github.com/SachaG/Kandan/blob/master/config/database.yml
xiphias has joined #ruby
dpswireless has quit [Ping timeout: 246 seconds]
drago777 has joined #ruby
<nannes> actually, I did copy that sample
<nannes> just changed the type to postgresql
<rjhunter> did you leave in the environments?
falood has quit [Ping timeout: 240 seconds]
<rjhunter> development, test, production?
<nannes> just production :/
<nannes> DOes that affect it?
<Oku71> Any reccomendations on ideal audio transcoding gems?
<rjhunter> you'll need to run your app in production mode then
<rjhunter> rails defaults to development
brandonblack has joined #ruby
yaans has joined #ruby
falood has joined #ruby
z has joined #ruby
camilasan has quit [Ping timeout: 240 seconds]
dukz__ has quit [Read error: Connection reset by peer]
dukz has joined #ruby
gja has joined #ruby
fuhgeddaboudit has joined #ruby
xsdg has joined #ruby
walexus has joined #ruby
sayan is now known as Guest45868
yaans has quit [Client Quit]
tacos1de has quit [Ping timeout: 240 seconds]
xiphias has quit [Ping timeout: 240 seconds]
ehc has joined #ruby
yaans has joined #ruby
tacos1de has joined #ruby
xiphias has joined #ruby
lethjakman has quit [Ping timeout: 246 seconds]
magoo has quit [Ping timeout: 240 seconds]
tagrudev has joined #ruby
r_s has quit [Ping timeout: 272 seconds]
yaans has quit [Excess Flood]
Fire-Dragon-DoL has quit [Quit: Leaving.]
yaans has joined #ruby
h0rrorvacui has quit [Quit: Leaving]
yaans has quit [Remote host closed the connection]
joaosa has quit [Ping timeout: 272 seconds]
sayan_ has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
sayan_ has quit [Changing host]
sayan_ has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
emocakes has quit [Quit: Leaving...]
brianpWins has joined #ruby
xiphias has joined #ruby
shedd has joined #ruby
Al___ has quit [Ping timeout: 240 seconds]
wting has joined #ruby
wting has left #ruby [#ruby]
ehc has quit [Quit: ehc]
gja has joined #ruby
kitak has quit [Remote host closed the connection]
narcan has joined #ruby
agjacome has quit [Quit: leaving]
yellow5 has quit [Ping timeout: 240 seconds]
shedd has quit [Ping timeout: 240 seconds]
yellow5 has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
<Oku71> Any reccomendations on ideal audio transcoding gems?
<nannes> rjhunter: What is a faye client? I solved the previous issue, now I'm getting this error
<nannes> CHECKING TO BEGIN BROADCAST
<nannes> OOPS! FAYE_CLIENT is not defined
<nannes> many times
agjacome has joined #ruby
<rjhunter> nannes: I've never heard of it, but it sounds like something app-specific
LadyRainicorn has joined #ruby
xiphias has joined #ruby
kitak has joined #ruby
<nannes> I had a look at faye.rb
<nannes>         # NOTE FAYE_CLIENT is set in the config.ru file due to the faye bug
Al___ has joined #ruby
Hanmac1 has joined #ruby
cj3kim has quit [Remote host closed the connection]
croaky has joined #ruby
<rjhunter> I don't know what Faye is but the comment says that FAYE_CLIENT is set in`config.ru`. That file is used by most Web servers, but might not be if you've started the application directly.
agent_white has joined #ruby
LadyRainicorn has quit [Ping timeout: 240 seconds]
agjacome has quit [Client Quit]
Hanmac has quit [Ping timeout: 240 seconds]
Guest62374 is now known as ayaz
ayaz has quit [Changing host]
ayaz has joined #ruby
amclain_ has quit [Quit: Leaving]
LostMonk_ has quit [Ping timeout: 260 seconds]
hololeap has joined #ruby
kitak has quit [Remote host closed the connection]
rm__ has joined #ruby
mikemac has joined #ruby
vlad_starkov has joined #ruby
agent_white has quit [Ping timeout: 240 seconds]
sheap has joined #ruby
LadyRainicorn has joined #ruby
joaoh82 has joined #ruby
agent_white has joined #ruby
mcgyvr has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nannes> rjhunter: this is it (from config.ru)
<nannes> FAYE_CLIENT = faye_server.get_client
h_kon has joined #ruby
rm__ has quit [Ping timeout: 264 seconds]
Guest45868 has quit [Ping timeout: 240 seconds]
butblack has quit [Quit: butblack]
sayan_ has quit [Ping timeout: 246 seconds]
<nannes> okay I'm messing up everything
xiphias has quit [Ping timeout: 240 seconds]
<nannes> maybe it's better to avoid using the 'master' branch
<nannes> I should try the latest stable nuh?
rien has quit [Ping timeout: 240 seconds]
brennanMKE has quit [Remote host closed the connection]
TorpedoSkyline has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
rien has joined #ruby
brennanMKE has joined #ruby
xiphias has joined #ruby
joaoh82 has quit [Ping timeout: 246 seconds]
ewnd9 has joined #ruby
Mars has joined #ruby
joaosa has joined #ruby
Mars is now known as Guest89022
agent_white has quit [Ping timeout: 240 seconds]
<rjhunter> nannes: I suspect you're running into problems because the app isn't well road-tested for people who aren't already Rails developers
agent_white has joined #ruby
<nannes> :)
<nannes> I'm eating from the master branch
<rjhunter> nannes: how did you start your server?
<nannes> Anyway, it is working now
<rjhunter> hooray
<nannes> :D
sharms has quit [Ping timeout: 240 seconds]
tylersmith has quit [Remote host closed the connection]
browndawg has quit [Ping timeout: 240 seconds]
brennanMKE has quit [Ping timeout: 240 seconds]
lewix has quit [Ping timeout: 240 seconds]
rien has quit [Remote host closed the connection]
<rjhunter> i imagine that developers (and future users in your shoes) would appreciate hearing about your experience
<nannes> But this isn't stable, the latest stable is 1.1
<nannes> rjhunter: You say?
rien has joined #ruby
browndawg has joined #ruby
charliesome has joined #ruby
<rjhunter> nannes: i mean, if you think what would have made your experience easier, that information might be useful for the next non-developer who tries to run this app
kewubenduben has joined #ruby
<rjhunter> nannes: perhaps some extra tips in the documentation
<nannes> Ok, got it
xiphias has quit [Ping timeout: 240 seconds]
<nannes> Actually I'm running Debian Wheeze. after all the problems I had I decided it was the best choice.
<nannes> So basically, after this switch, the procedure that I've followed isn't that much different from what's described in the Github installation guide
sharms has joined #ruby
xiphias has joined #ruby
agent_white has quit [Ping timeout: 240 seconds]
xiphias has quit [Changing host]
xiphias has joined #ruby
agent_white has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
lethjakman has joined #ruby
tectonic has quit []
rien has quit [Ping timeout: 240 seconds]
drago777 has joined #ruby
rien has joined #ruby
Guest89022 has quit [Remote host closed the connection]
rehat has quit [Read error: Connection reset by peer]
ip` has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
Barrin6 has quit [Ping timeout: 240 seconds]
okinomo has joined #ruby
ip` is now known as ip``
xiphias has joined #ruby
pranny has joined #ruby
dukz_ has joined #ruby
Guest45868 has joined #ruby
agjacome has joined #ruby
freerobby has quit [Quit: Leaving.]
L8D has quit [Ping timeout: 272 seconds]
Guest45868 has quit [Read error: Connection reset by peer]
LadyRainicorn has quit [Read error: Connection reset by peer]
dukz has quit [Ping timeout: 240 seconds]
LadyRainicorn has joined #ruby
rien has quit [Ping timeout: 240 seconds]
dpswireless has joined #ruby
rien has joined #ruby
tectonic has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
xiphias has joined #ruby
aspires has quit []
soobus has joined #ruby
rm__ has joined #ruby
okinomo has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
dpswireless has quit [Ping timeout: 240 seconds]
LadyRainicorn has quit [Quit: Bye]
xiphias has quit [Ping timeout: 240 seconds]
krz has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
xiphias has joined #ruby
vpretzel has joined #ruby
monkegjinni has joined #ruby
okinomo has joined #ruby
dh64 has joined #ruby
agjacome has quit [Quit: leaving]
rm__ has quit [Ping timeout: 240 seconds]
<nannes> rjhunter:
<nannes> ummmmm
<nannes> I don't know how to add users XDX
dagobah has joined #ruby
FDj has quit [Read error: Connection reset by peer]
<nannes> There's nothing in the UI about user creation/invitation
FDj has joined #ruby
Al___ has quit [Quit: Al___]
vpretzel has quit [Ping timeout: 246 seconds]
lyanchih has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
pwh has quit []
CpuID has quit [Ping timeout: 240 seconds]
lyanchih has joined #ruby
<rjhunter> that *really* sounds like something specific to this app you're running
wjimenez5271 has joined #ruby
shredding has joined #ruby
croaky has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 246 seconds]
user258467_ has joined #ruby
user258467_ has quit [Read error: Connection reset by peer]
jameshyde has joined #ruby
tyl has joined #ruby
axl_ has quit [Quit: axl_]
<rjhunter> nannes: if you can't find anyone who knows the app to tell you, you can try digging through the code (search for words like "user")
shedd has joined #ruby
CpuID has joined #ruby
CpuID has joined #ruby
CpuID has quit [Changing host]
samsonasu has quit [Quit: samsonasu]
Kricir has joined #ruby
okinomo has quit [Ping timeout: 246 seconds]
shedd has quit [Ping timeout: 246 seconds]
<shredding> I want to start a command line app and am unsure about which database lib to use.
rien has quit [Ping timeout: 240 seconds]
<shredding> ATM I'm browsing sequel and datamapper websites.
rien has joined #ruby
<shredding> Anyone with a good recommendation?
<nannes> rjhunter: Ye, it's the same thing that came to my mind too :D
<nannes> I found ./spec/factories/user_factory.rb: last_name 'Admin'
<nannes> Now I see how user_factory.rb works :D
<nannes> I do make some development, I'm not totally zero about programming :P :P+
guardianx has joined #ruby
<nannes> Maybe my english is ! ;PP
psyprus has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
psyprus has joined #ruby
dpswireless has joined #ruby
ephemerian has joined #ruby
<rjhunter> shredding: I like Sequel. ActiveRecord is super-popular, so you'll attract more contributors (if that matters to you)
brandonblack has quit [Ping timeout: 240 seconds]
<shredding> rjhunter: Sequel is mapping to hashes, not objects?
Vivekananda has quit [Quit: Ex-Chat]
<rjhunter> shredding: Sequel can be used in a few different ways. Normally they're hashes (or hash-like structures)
<shredding> okay.
freerobby has quit [Ping timeout: 246 seconds]
okinomo has joined #ruby
<rjhunter> shredding: It also supports ActiveRecord-style Model objects if you like that kind of thing
ip`` has quit [Ping timeout: 264 seconds]
<shredding> i like that kind of thing :)
brandonblack has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
jmo has joined #ruby
<rjhunter> shredding: If you control the schema, and it maps very closely to your object models, then ActiveRecord may be a good choice.
tyl has quit [Quit: Textual IRC Client: www.textualapp.com]
<shredding> I already have experience with active record, i'm a bit afraid that it's to bloated when not used in rails
<rjhunter> Sequel's Model ORM might be a good fit for you then. Try reading through http://sequel.jeremyevans.net/rdoc/files/doc/active_record_rdoc.html and see if it appeals.
<shredding> thanks!
<rjhunter> (Sequel's documentation is very good but doesn't always show up in Web searches.)
joaoh82 has joined #ruby
<shredding> That looks good.
jmo has quit [Ping timeout: 246 seconds]
drago777 has quit [Ping timeout: 240 seconds]
ehaliewicz has quit [Remote host closed the connection]
freerobby has joined #ruby
aagdbl0 has joined #ruby
mosez has quit [Quit: Switching back to real life]
brennanMKE has joined #ruby
timonv has joined #ruby
spondbob has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
aagdbl has quit [Ping timeout: 264 seconds]
jameshyde has quit [Quit: Leaving.]
lethjakman has quit [Ping timeout: 246 seconds]
drago777 has joined #ruby
joaoh82 has quit [Ping timeout: 246 seconds]
Kricir has quit [Remote host closed the connection]
jprovazn has joined #ruby
KK4MGV has quit [Ping timeout: 272 seconds]
ddv has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
KK4MGV has joined #ruby
jameshyde has joined #ruby
kitak has joined #ruby
wildroman2 has joined #ruby
rh1n0 has joined #ruby
pranny has quit [Ping timeout: 240 seconds]
kitak has quit [Ping timeout: 245 seconds]
lyanchih has quit [Quit: lyanchih]
Kricir has joined #ruby
pranny has joined #ruby
shedd has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
soobus has quit [Read error: Operation timed out]
andikr has joined #ruby
phipes has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 264 seconds]
mosez has joined #ruby
drago777 has joined #ruby
Kneferilis has quit [Read error: Connection reset by peer]
agent_white has quit [Quit: leaving]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
tylersmith has joined #ruby
shime has joined #ruby
shedd has quit [Ping timeout: 241 seconds]
claymore has joined #ruby
Yarou has quit [Quit: This computer has gone to sleep]
Beoran__ has joined #ruby
<weeb1e> Anyone know how efficient hash.size is? Is it cached or is it worth caching the size in a separate variable?
walexus has quit [Read error: Connection reset by peer]
batchitcray has joined #ruby
walexus has joined #ruby
okinomo has quit [Ping timeout: 264 seconds]
<Hanmac1> weeb1e Hash#size should be stored inside the RHash structure, Hash#count is not
timonv has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 240 seconds]
shime has quit [Ping timeout: 240 seconds]
gigetoo has quit [Remote host closed the connection]
<weeb1e> Hanmac1: Great, then it's a good thing I switched to using #size instead of #count for both arrays and hashes over a year ago :)
Beoran_ has quit [Ping timeout: 252 seconds]
<weeb1e> Thanks
mosez has quit [Ping timeout: 240 seconds]
CpuID has quit [Quit: This computer has gone to sleep]
shime has joined #ruby
mosez has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
<Hanmac1> weeb1e: another info: 1.9/2.0 ruby has Enumerator#size, that means like [1,2,3,4].cycle(3).size #=> 12
Hanmac1 is now known as Hanmac
<weeb1e> Hanmac1: I am now wondering though, why the difference? In what case would you need to count the hash pairs instead of using the cached size
<popl> Hanmac: Hey, that's neat.
<weeb1e> Interesting
<Hanmac> weeb1e: #size "knows" the correct size, #count "count" each element
Al___ has joined #ruby
<weeb1e> Hanmac: I realize that, but my question is why would you ever need to count the elements
<Hanmac> weeb1e: as you can see there, this would not work with #count :> [1,2,3,4].cycle.size #=> Infinity
drago777 has joined #ruby
guardianx has quit [Ping timeout: 264 seconds]
<weeb1e> It seems like #count being less efficient, and the different not very well known is counter-productive
<Hanmac> weeb1e: #count allows a block: [1,2,3,4,5].count(&:odd?) #=> 3
<weeb1e> Ah, that does make sense, thanks
<weeb1e> Then again
<weeb1e> Why doesn't #count call #size if called without a block
<weeb1e> :P
foooobear has joined #ruby
foooobear has left #ruby [#ruby]
<weeb1e> Seems like a sensible optimization, given that #count() will never not be equal to #size
aganov has joined #ruby
timonv has joined #ruby
<weeb1e> But oh well, I'm just nit-picking
* weeb1e gets back to building his dynamic fiber pool
gigetoo has joined #ruby
Al___ has quit [Client Quit]
<weeb1e> I'm experiencing high GC CPU time which I think is due to too many fibers being GC'd so hopefully using a fiber pool for absolutely everything will help
Deele has joined #ruby
wildroman2 has quit [Remote host closed the connection]
rm_ has joined #ruby
ephemerian has quit [Quit: Leaving.]
emocakes has joined #ruby
Oku71 has quit [Ping timeout: 240 seconds]
ephemerian has joined #ruby
threesome has joined #ruby
rm_ has quit [Ping timeout: 246 seconds]
nvrch has joined #ruby
rickruby has quit [Remote host closed the connection]
cuppscakes has joined #ruby
cuppscakes has left #ruby [#ruby]
okinomo has joined #ruby
alex88 has joined #ruby
batchitcray has quit [Ping timeout: 264 seconds]
havenwood has quit [Remote host closed the connection]
<bgy> Hi
Xeago has joined #ruby
cuppscakes has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
drago777 has joined #ruby
rickruby has joined #ruby
dukz_ has quit [Remote host closed the connection]
mityaz has joined #ruby
mneorr has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
lsmola_ has joined #ruby
fire has joined #ruby
wildroman2 has joined #ruby
fire is now known as ffio_
psyprus has quit [Ping timeout: 240 seconds]
abra has joined #ruby
charliesome has joined #ruby
psyprus has joined #ruby
ffio has quit [Quit: WeeChat 0.4.2]
jameshyde has quit [Quit: Leaving.]
mneorr has quit [Ping timeout: 246 seconds]
m00nlight_ has joined #ruby
simoz9 has joined #ruby
dukz has joined #ruby
arturaz has joined #ruby
meatherly has quit [Remote host closed the connection]
klaut has joined #ruby
meatherly has joined #ruby
LostMonk_ has joined #ruby
m00nlight has quit [Ping timeout: 240 seconds]
drago777 has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
rjhunter has quit [Remote host closed the connection]
fuhgeddaboudit has quit [Ping timeout: 240 seconds]
cuppscakes has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
fuhgeddaboudit has joined #ruby
rjhunter has joined #ruby
bigkevmcd has joined #ruby
fijimunkii has quit [Ping timeout: 252 seconds]
drago777 has joined #ruby
Kneferilis has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
meatherly has quit [Ping timeout: 264 seconds]
olivier_bK has joined #ruby
pranny has quit [Quit: Leaving.]
atmosx has joined #ruby
LostMonk_ has quit [Ping timeout: 240 seconds]
joaoh82 has joined #ruby
jhaals has joined #ruby
freerobby has joined #ruby
okinomo has quit [Ping timeout: 246 seconds]
Kricir has quit [Remote host closed the connection]
drago777 has quit [Ping timeout: 240 seconds]
arturaz has quit [Ping timeout: 240 seconds]
shevy has quit [Ping timeout: 272 seconds]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
error404_ is now known as error404
tedstriker has joined #ruby
okinomo has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
kure_ has joined #ruby
drago777 has joined #ruby
joaoh82 has quit [Ping timeout: 246 seconds]
freerobby has quit [Ping timeout: 240 seconds]
vpretzel has joined #ruby
kure has quit [Ping timeout: 264 seconds]
frxx has joined #ruby
gasbakid has joined #ruby
cuppscakes has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
frx has quit [Ping timeout: 252 seconds]
vpretzel has quit [Ping timeout: 246 seconds]
monkegjinni has quit [Remote host closed the connection]
mansi has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
dagobah has quit [Ping timeout: 240 seconds]
brennanMKE has joined #ruby
arturaz has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
frxx has quit [Ping timeout: 240 seconds]
drago777 has joined #ruby
razibog has joined #ruby
roolo has joined #ruby
shedd has joined #ruby
frx has joined #ruby
dagobah has joined #ruby
shevy has joined #ruby
tagrudev has quit [Ping timeout: 240 seconds]
ahawkins has joined #ruby
mansi has quit [Ping timeout: 246 seconds]
DouweM has quit [Ping timeout: 260 seconds]
tagrudev has joined #ruby
brennanMKE has quit [Ping timeout: 246 seconds]
cuppscakes has quit [Remote host closed the connection]
shedd has quit [Ping timeout: 240 seconds]
cuppscakes has joined #ruby
gasbakid_ has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
hakunin has joined #ruby
drago777 has joined #ruby
cuppscakes has quit [Remote host closed the connection]
troessner has joined #ruby
gasbakid has quit [Ping timeout: 264 seconds]
<kwertie_> What are the rules for conditionals?
<kwertie_> Does the value of if <...this part...> have to be True / False ?
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<tobiasvl> kwertie_: well, it has to be truthy
<tobiasvl> in ruby everything has truthiness
<tobiasvl> that is, everything evaluates to "true" except for nil (and false itself of course)
xiphias has joined #ruby
<kwertie_> tobiasvl: I just googled that actually (I didn't think of the word "truthiness" until just before you said) - how I didn't know this I don't know
<kwertie_> I guess I just slightly overspecified my conditions before
<kwertie_> Yup. thanks :)
<tobiasvl> :)
<rjhunter> kwertie_: it's very common to use `if foo` to mean `unless foo.nil?`
davorb_ has joined #ruby
<rjhunter> (and sometimes that causes a subtle bug when foo is actually FalseClass)
<kwertie_> The 0 being true thing may take some getting used to
<tobiasvl> kwertie_: yeah, that's a common gotcha. also the empty string is true.
<Hanmac> tobiasvl: there is also an interesting point that "if foo" vs "unless !foo" are not 100% equal ;P
marr has joined #ruby
pranny has joined #ruby
dogweather has left #ruby [#ruby]
sheap has quit [Quit: Lost terminal]
<kwertie_> Hanmac: uhhh - really?!
rm__ has joined #ruby
<tobiasvl> kwertie_: another common idiom is `a ||= "foo"`, which is equivalent to `a || a = "foo"` and is used to set a to "foo" if it's not set (a is truthy or we set a to "foo")
<Hanmac> the "!" is a method ... methods can be overwritten
malcolmva has quit [Ping timeout: 264 seconds]
xiphias has quit [Ping timeout: 240 seconds]
<kwertie_> Hanmac: haha, yeah, I see.
<kwertie_> You can really take the ground right from out under yourself in Ruby, eh? :)
<tobiasvl> with great power comes great responsibility ;)
<kwertie_> tobiasvl: thanks - talking of idioms actually, I wanted to check a convention of something else;
<kwertie_> do you guys tend to abstain from 'and' / 'or' in favour of &&, || ?
<kwertie_> (Or vice vers)
<tobiasvl> they're used for different things
<kwertie_> Are the Englishy ones more control flow?
joaoh82 has joined #ruby
arturaz has quit [Remote host closed the connection]
<tobiasvl> yes
<tobiasvl> and &&/|| is used for boolean evaluation
<tobiasvl> (because of precedence)
<rjhunter> kwertie_: Not *quite* as much as SmallTalk (where True and False are mutable and you can swap them)
<kwertie_> rjhunter: haha, that's amazing
rm__ has quit [Ping timeout: 264 seconds]
drago777 has quit [Ping timeout: 240 seconds]
[Neurotic] has joined #ruby
<kwertie_> tobiasvl: that article brought an amazing amount of clarity to me
<kwertie_> Thanks
<kwertie_> Actually just before I do drift back to sleep -
sharms has quit [Ping timeout: 240 seconds]
wjimenez5271 has quit [Remote host closed the connection]
<kwertie_> I understand this question must be based upon some form of ignorance - but would there not be any benefit, ever, of an `interface' construct being made available for classes?
wjimenez5271 has joined #ruby
drago777 has joined #ruby
<tobiasvl> well, do you know about modules?
<kwertie_> Yup (they exist!)
<tobiasvl> not sure what languages you've used
<tobiasvl> modules aren't exactly the same as interfaces from java, for instance
<tobiasvl> but mixins are cool
<kwertie_> Perl, PHP, Java (and others)
<kwertie_> Actually I've used loads so any comparison would probably be useful
<kwertie_> Yeah - I really like the ability to mixin in Ruby so easily
sharms has joined #ruby
<kwertie_> tobiasvl: why do mixins relate to not needing an 'interface' language construct, though?
<tobiasvl> eh, maybe they don't. i don't know java that well :)
<rjhunter> kwertie_: compliance with a protocol ("I promise this object quacks like a duck") can be useful in moving errors earlier. If you want to do such things, it's possible. Testing shared behaviours (eg with rspec) is often a more useful way of achieving that goal.
<tobiasvl> you mean you want to enforce classes to adhere to an API?
tt1187 has joined #ruby
<tobiasvl> what rjhunter said. http://en.wikipedia.org/wiki/Duck_typing
<kwertie_> rjhunter worded it better than either of us two can, I think. heh
malcolmva has joined #ruby
<kwertie_> It might sound ridiculous being in this channel and saying this - but I don't feel completely satisfied with the idea of "duck typing"
varfoo has quit [Quit: WeeChat 0.4.0]
<kwertie_> rjhunter: I'd guess that RSpec shared behaviours are pretty much the standard way of attaining that protocol compliance
xiphias has joined #ruby
<kwertie_> Given that with a language as dynamic as Ruby you're pretty much forfeiting 95% of what might otherwise be possible as pre-runtime checks
<rjhunter> kwertie_: rspec shared behaviours are a popular way of doing it, but lots of code simply relies on humans getting it right
jameshyde has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
m00nlight_ has quit [Ping timeout: 240 seconds]
<kwertie_> Learning Scala recently made me love static typing again - it's funny coming back to Ruby now. heh
blackdivine has joined #ruby
<blackdivine> hello can anyone help me?
<rjhunter> Rust seems to be popular with people who like lots of Ruby but want more static typing
<rjhunter> blackdivine: probably, what's going wrong?
<blackdivine> Any idea how to make an object from #<ActionDispatch::Http::UploadedFile:0x007faa20887260 @tempfile=#<Tempfile:/tmp/RackMultipart20140103-4614-9rgnkd>, @original_filename="twins_by_thrumyeye-d6y2ify.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"files[]\"; filename=\"twins_by_thrumyeye-d6y2ify.jpg\"\r\nContent-Type: image/jpeg\r\n">
<blackdivine> in irb probably
<blackdivine> or if you can just tell me that how can i access orignal_filename from above object
<rjhunter> blackdivine: probably just .original_filename
xiphias has quit [Ping timeout: 240 seconds]
<Hanmac> shevy: http://xkcd.com/1312/
rickruby has quit [Remote host closed the connection]
<blackdivine> so the @ symbol means methods?
drago777 has joined #ruby
<Hanmac> blackdivine: @ are instance variables stored in this object
eval-in has quit [Remote host closed the connection]
<blackdivine> ok that was what confusing me :)
eval-in has joined #ruby
jameshyde has quit [Ping timeout: 240 seconds]
txdv has quit [Read error: Operation timed out]
<rjhunter> blackdivine: you can see what methods are available on an object using .methods
LadyRainicorn has joined #ruby
<Hanmac> if you are lucky you can access them with methods like the name (when using attr_accessor) ... but that is not guaranted ... sometimes the developer does not want that the variables are accessed directly
simoz9 has quit [Ping timeout: 240 seconds]
okinomo has quit [Ping timeout: 240 seconds]
<rjhunter> in the case of ActionDispatch::Http::UploadedFile, original_filename a method thanks to attr_accessor
mneorr has joined #ruby
simoz9 has joined #ruby
vpretzel has joined #ruby
<rjhunter> you can also look at the documentation for that class
jmo has joined #ruby
<blackdivine> yes i can but i really wanted to know what @ means :) everything's so clear now :)
<blackdivine> thank you
okinomo has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
LadyRainicorn has quit [Ping timeout: 240 seconds]
mneorr has quit [Ping timeout: 246 seconds]
drago777 has quit [Ping timeout: 240 seconds]
vpretzel has quit [Ping timeout: 246 seconds]
sharms has joined #ruby
freerobby has joined #ruby
guardianx has joined #ruby
aryaching_ has quit [Ping timeout: 264 seconds]
okinomo has quit [Ping timeout: 240 seconds]
freerobby has quit [Read error: Connection reset by peer]
freerobby1 has joined #ruby
gregoriokusowski has joined #ruby
phansch has joined #ruby
teoric has joined #ruby
okinomo has joined #ruby
drago777 has joined #ruby
workmad3 has joined #ruby
zipper has joined #ruby
rdark has joined #ruby
zipper is now known as Guest23651
Guest23651 has quit [Client Quit]
sharms has quit [Ping timeout: 240 seconds]
wjimenez5271 has quit [Ping timeout: 240 seconds]
freerobby1 has quit [Ping timeout: 240 seconds]
plotter has quit [Ping timeout: 245 seconds]
adambeynon has joined #ruby
okinomo has quit [Ping timeout: 240 seconds]
zipper_ has joined #ruby
sharms has joined #ruby
okinomo has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
mansi has joined #ruby
plotter has joined #ruby
brennanMKE has joined #ruby
mehlah has joined #ruby
shedd has joined #ruby
guardianx has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
brennanMKE has quit [Ping timeout: 240 seconds]
xiphias has joined #ruby
xiphias has joined #ruby
xiphias has quit [Changing host]
hololeap has quit [Ping timeout: 240 seconds]
falood has quit [Remote host closed the connection]
hololeap has joined #ruby
shedd has quit [Ping timeout: 246 seconds]
drago777 has quit [Ping timeout: 240 seconds]
Kar- has joined #ruby
cow_ has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
drago777 has joined #ruby
glen has joined #ruby
teoric has quit [Quit: WeeChat 0.4.1]
<glen> if i do array.each do |n| .... how do i skip processing entry, like "next" in some languages?
kitak has joined #ruby
<hoelzro> glen: next should work
<glen> instead of doing if !CONDITION SOME_LOGIC end; i would like to do if CONDITION ... end; SOME_LOGIC
xiphias has quit [Remote host closed the connection]
<hoelzro> >> (0..10).each { |n| next if n % 2 == 0; puts n }
<eval-in> hoelzro => 1 ... (https://eval.in/85204)
<glen> thanks
<hoelzro> np
<Hanmac> or if you want to do it lazy-like:
<Hanmac> >> (0..10).each.lazy.select(&:odd?).each { |n| puts n }
<eval-in> Hanmac => 1 ... (https://eval.in/85205)
xpirator has quit [Quit: Leaving...]
aagdbl0 has quit [Read error: Connection reset by peer]
aagdbl has joined #ruby
<glen> Hanmac: that goes out of readability for me :)
walexus is now known as w_alexus
<Hanmac> hm maybe but with that you can split the CONDITION from the SOME_LOGIC in different blocks
xiphias has joined #ruby
eliasp_ has joined #ruby
LadyRainicorn has joined #ruby
eliasp has quit [Ping timeout: 246 seconds]
Al__ has joined #ruby
<glen> i.e with .select ?
rm__ has joined #ruby
txdv has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
xiphias has quit [Ping timeout: 240 seconds]
hamed_r has joined #ruby
tkuchiki has joined #ruby
lyanchih has joined #ruby
plotter has quit [Ping timeout: 245 seconds]
cuppscakes has joined #ruby
cuppscakes has quit [Client Quit]
drago777 has quit [Ping timeout: 240 seconds]
rm__ has quit [Ping timeout: 246 seconds]
<Hanmac> glen: yes because combined with lazy you can select them without making new arrays
mehlah has quit [Quit: Leaving...]
jnoob22_ has joined #ruby
cuppscakes has joined #ruby
<glen> so, my knife exec code is currently like this: http://sprunge.us/jMfU
sjohn3 has joined #ruby
<glen> seems that .all is "Array" and does not have .lazy
<Hanmac> glen: next unless node['wikidata'] && node['wikidata']['host'] && !node['wikidata']['host'].empty?
hololeap has quit [Ping timeout: 240 seconds]
<Hanmac> glen: use to_enum(:all?).lazy
vpretzel has joined #ruby
jnoob22 has quit [Ping timeout: 252 seconds]
drago777 has joined #ruby
<glen> actually one line "next" is readable too now
lukeholder has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
vpretzel has quit [Ping timeout: 240 seconds]
max96at has joined #ruby
hololeap has joined #ruby
shedd has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
sharms has joined #ruby
h_kon has quit [Remote host closed the connection]
zipper_ has quit [Ping timeout: 246 seconds]
cbetta_afk is now known as cbetta
lyanchih has quit [Ping timeout: 240 seconds]
xiphias has joined #ruby
blackdivine has quit [Quit: Leaving]
shedd has quit [Ping timeout: 264 seconds]
jameshyde has joined #ruby
jameshyde has quit [Max SendQ exceeded]
dr_bob has joined #ruby
okinomo has quit [Ping timeout: 246 seconds]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
monkegjinni has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 246 seconds]
monkegjinni has joined #ruby
cuppscakes has quit [Quit: ZNC - http://znc.in]
andikr has quit [Ping timeout: 240 seconds]
alexherbo2 has quit [Quit: WeeChat 0.4.2]
alexherbo2 has joined #ruby
andikr has joined #ruby
cuppscakes has joined #ruby
LostMonk_ has joined #ruby
h_kon has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
mengu has quit [Ping timeout: 264 seconds]
xiphias has joined #ruby
dr_bob has left #ruby [#ruby]
freerobby has joined #ruby
okinomo has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
rh1n0 has quit [Quit: Textual IRC Client: www.textualapp.com]
varfoo has joined #ruby
pwestlund_away has joined #ruby
drago777 has joined #ruby
mehlah has joined #ruby
pwestlund_away is now known as pwestlund
xiphias has quit [Ping timeout: 240 seconds]
phipes has joined #ruby
ItSANg___ has joined #ruby
ItSANgo has quit [Ping timeout: 245 seconds]
eka has joined #ruby
zeeraw has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
dukz has quit [Remote host closed the connection]
sharms has quit [Ping timeout: 240 seconds]
freerobby has quit [Ping timeout: 246 seconds]
xiphias has joined #ruby
aetaric has joined #ruby
gasbakid_ has quit [Read error: Connection reset by peer]
sharms has joined #ruby
vpretzel has joined #ruby
coderhs has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
kitak has joined #ruby
aetaric has quit [Ping timeout: 240 seconds]
niKeITA has joined #ruby
tobago has joined #ruby
mansi has joined #ruby
<tobago> why this sum "a" and "b" is not equal? https://gist.github.com/trinibago/8236294
brennanMKE has joined #ruby
<tobago> does ruby sums float numbers differently depending on the brackets?
Kneferilis has quit [Ping timeout: 264 seconds]
<hoelzro> no
vpretzel has quit [Ping timeout: 246 seconds]
<hoelzro> that's just floating point numbers for you
okinomo has quit [Ping timeout: 240 seconds]
varfoo has quit [Quit: WeeChat 0.4.0]
L8D has joined #ruby
<tobiasvl> use BigDecimal instead
m8 has joined #ruby
<niKeITA> in ruby 2.1 firste expression result is 0.6000000000000001
<niKeITA> the second one is 0.6
aetaric has joined #ruby
mansi has quit [Ping timeout: 246 seconds]
<apeiros> developers and floats and encodings…
sharms has quit [Ping timeout: 240 seconds]
<hoelzro> ntm dates and timezones!
brennanMKE has quit [Ping timeout: 240 seconds]
<apeiros> well, any sane programming language will use native floats and any sane hardware uses IEEE754 floats
<apeiros> so… it'll almost universally be the same behavior
sharms has joined #ruby
<apeiros> well, except weakly typed languages like php, where a float can suddenly be a string - which leads to funny new errors
<tobiasvl> tobago: bottom line: you should use BigDecimal instead of Float. note that it's slower though.
drago777 has quit [Ping timeout: 240 seconds]
<apeiros> hoelzro: true
L8D has quit [Ping timeout: 264 seconds]
m8 has quit [Max SendQ exceeded]
m8 has joined #ruby
vlad_starkov has joined #ruby
drago777 has joined #ruby
simoz9 has quit [Ping timeout: 264 seconds]
tyl has joined #ruby
<banister> sr
<banister> sry
<banister> ignore
* apeiros smacks banister with a large tube
<tobiasvl> wtf
<tobiasvl> O_O
skaflem has joined #ruby
Xeago has quit [Remote host closed the connection]
<tobago> o.k. ruby 1.9.3-p484: NameError: uninitialized constant BigDecimal
<tobiasvl> tobago: require "bigdecimal"
psyl0n has joined #ruby
atmosx has joined #ruby
<tobago> tobiasvl, ah thank you!
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
kung has quit [Read error: Connection reset by peer]
kung has joined #ruby
rm__ has joined #ruby
kitak has quit [Remote host closed the connection]
razibog has quit [Ping timeout: 240 seconds]
danshultz has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rm__ has quit [Ping timeout: 264 seconds]
aryaching has joined #ruby
<Hanmac> by big decimal is bigger than your big decimal ;P
cow_ has joined #ruby
spider-mario has joined #ruby
danshultz has quit [Remote host closed the connection]
narcan has joined #ruby
chrisan has joined #ruby
aryaching has quit []
m00nlight_ has joined #ruby
lkba has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
jameshyde has joined #ruby
andikr has quit [Remote host closed the connection]
drago777 has joined #ruby
Zexal has joined #ruby
zipper has joined #ruby
cascalheira has joined #ruby
cibs has quit [Quit: leaving]
jameshyde has quit [Ping timeout: 246 seconds]
tonni has joined #ruby
Zexal is now known as XxLocutusxX
drago777 has quit [Ping timeout: 240 seconds]
vpretzel has joined #ruby
Xeago has joined #ruby
okinomo has joined #ruby
vpretzel has quit [Read error: Connection reset by peer]
vpretzel_ has joined #ruby
drago777 has joined #ruby
momomomomo has joined #ruby
fedesilva has joined #ruby
Kar- has quit [Ping timeout: 240 seconds]
zipper has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
monkegjinni has quit [Remote host closed the connection]
abra has quit [Quit: Textual IRC Client: www.textualapp.com]
sharms has quit [Ping timeout: 240 seconds]
vpretzel_ has quit [Ping timeout: 264 seconds]
drago777 has quit [Ping timeout: 240 seconds]
joaoh82 has quit [Remote host closed the connection]
fntzr has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
sharms has joined #ruby
lukeholder has quit [Ping timeout: 246 seconds]
emocakes has quit [Read error: Connection reset by peer]
drago777 has joined #ruby
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
joaoh82_ has joined #ruby
vpretzel has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
browndawg has quit [Quit: Leaving.]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
kitak has joined #ruby
monkegjinni has joined #ruby
vpretzel has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
popl has joined #ruby
popl is now known as Guest94097
brennanMKE has joined #ruby
joaoh82_ has quit [Remote host closed the connection]
kaldrenon has joined #ruby
shedd has joined #ruby
xiphias_ has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
drago777 has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
zxd has joined #ruby
kaldrenon has quit [Ping timeout: 240 seconds]
brennanMKE has quit [Ping timeout: 240 seconds]
Guest94097 has quit [Ping timeout: 240 seconds]
shedd has quit [Ping timeout: 240 seconds]
wildroman2 has quit [Remote host closed the connection]
popl_ has joined #ruby
popl_ has joined #ruby
popl_ has quit [Changing host]
drago777 has joined #ruby
cow_ has quit [Ping timeout: 240 seconds]
ewnd9 has quit [Remote host closed the connection]
zxd has quit [Ping timeout: 264 seconds]
ewnd9_ has joined #ruby
xiphias_ has quit [Ping timeout: 240 seconds]
isieo has joined #ruby
ewnd9_ has quit [Max SendQ exceeded]
xiphias has joined #ruby
okinomo has quit [Quit: Lost terminal]
Gooder has joined #ruby
xiphias has quit [Changing host]
xiphias has joined #ruby
razibog has joined #ruby
glen has left #ruby [#ruby]
pranny has quit [Quit: Leaving.]
<shevy> Hanmac that xkcd quote is epic, I will show benzfr when he is online
EngierkO has joined #ruby
zipper has joined #ruby
m00nlight_ is now known as m00nlight
justinxreese has quit [Ping timeout: 246 seconds]
cow_ has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
rm__ has joined #ruby
xiphias has joined #ruby
butblack has joined #ruby
Speed has joined #ruby
monkegjinni has quit [Remote host closed the connection]
rm__ has quit [Ping timeout: 246 seconds]
denysonique_ has left #ruby [#ruby]
lyanchih has joined #ruby
sepp2k1 has joined #ruby
Xiti` has quit [Ping timeout: 264 seconds]
pranny has joined #ruby
pranny has quit [Client Quit]
XxLocutusxX has quit []
monkegjinni has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
sepp2k has quit [Ping timeout: 264 seconds]
xiphias has joined #ruby
pama has joined #ruby
cbetta is now known as cbetta_afk
grieg_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
Xiti` has joined #ruby
flubba has quit [Remote host closed the connection]
xiphias has quit [Ping timeout: 240 seconds]
xiphias has joined #ruby
joaoh82 has joined #ruby
xiphias has quit [Changing host]
xiphias has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
wildroman2 has joined #ruby
drago777 has joined #ruby
danshultz has joined #ruby
joaoh82 has quit [Ping timeout: 246 seconds]
browndawg has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
vpretzel has joined #ruby
olivier_bK has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
olivier_bK has joined #ruby
arietis has joined #ruby
timonv has joined #ruby
Virtualize has joined #ruby
vpretzel has quit [Ping timeout: 240 seconds]
xiphias has quit [Ping timeout: 240 seconds]
drago777 has quit [Ping timeout: 240 seconds]
mzdravkov has joined #ruby
xiphias has joined #ruby
drago777 has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
jxf has joined #ruby
psyprus has quit [Ping timeout: 240 seconds]
edwardly has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
kate_r has joined #ruby
zipper has quit [Ping timeout: 240 seconds]
psyprus has joined #ruby
niKeITA is now known as niKeITA_away
mark| has joined #ruby
tyl has quit [Remote host closed the connection]
niKeITA_away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
drago777 has quit [Ping timeout: 240 seconds]
xiphias has quit [Ping timeout: 240 seconds]
drago777 has joined #ruby
joaoh82 has joined #ruby
xiphias has joined #ruby
doodlehaus has joined #ruby
mereghost has quit [Quit: Updates!]
freerobby has quit [Ping timeout: 246 seconds]
mereghost has joined #ruby
larissa has joined #ruby
<jxf> A method accepts a block and may or may not have one passed. If it does have one, you want to run it. Is it idiomatic to write "block.call if block_given?" or "yield if block_given?"?
<jxf> (Or something else?)
psyprus has quit [Ping timeout: 240 seconds]
grieg_ has quit [Quit: grieg_]
Gooder has quit [Remote host closed the connection]
<apeiros> yield if block_given?
<mereghost> jxf: yield if block_given?
shime has quit [Read error: Operation timed out]
<apeiros> if you don't pass the block on, or store it, you should not explicitly name the &block param. it's more expensive.
razibog has quit [Remote host closed the connection]
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
psyprus has joined #ruby
<mereghost> apeiros: which was a surprise to me a few years back.
xiphias has quit [Ping timeout: 240 seconds]
eliasp_ is now known as eliasp
<jxf> apeiros: I sort of liked writing "block" explicitly because then it's self-documenting in the method signature. But I see what you're saying.
xiphias has joined #ruby
kiri has joined #ruby
kiri has quit [Read error: Connection reset by peer]
shime has joined #ruby
dingwall has quit [Remote host closed the connection]
<jxf> Is it fair to say that Ruby doesn't really have closures, since that requires that closures be able to be passed around indistinguishably from other values, but you can only pass zero blocks or one block? Or is that a mischaracterization?
guardianx has joined #ruby
<apeiros> jxf: a block is just one way to create a closure in ruby
<apeiros> also "I can only pass one" is not equivalent to "there is no way"
<apeiros> so yes, mischaracterization either way.
danshultz has quit [Remote host closed the connection]
mansi_ has joined #ruby
kiri has joined #ruby
danshultz has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
niKeITA has joined #ruby
psyprus has quit [Ping timeout: 240 seconds]
<shevy> jxf can you give an accurate description of what constitutes a closure exactly for you?
niKeITA has quit [Client Quit]
brennanMKE has joined #ruby
razibog has joined #ruby
<canton7> my_example_func(proc{ first closure }, proc{ second closure }, lambda{ third closure })
<jxf> Sorry, I should have said "doesn't have true closures in the form of blocks", not that it doesn't have closures full-stop.
xiphias has joined #ruby
<shevy> apeiros once wanted to be able to pass multiple blocks to the same method by the way :-)
<apeiros> s/once//
psyprus has joined #ruby
<shevy> hehe
<apeiros> jxf: still wrong.
shedd has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
<shevy> I still don't know how he defines a closure
jkamenik has joined #ruby
danshultz has joined #ruby
<jxf> shevy: For me a closure is a block of code that can be executed by a reference to it, can be passed around indistinguishably as a value, and can refer to values in the context in which it was created.
mansi_ has quit [Ping timeout: 264 seconds]
<shevy> well you have to store this block of code somewhere of course. other than that that's what you can do in ruby. foo('arg1') { @my_proc_object_here }
<jxf> apeiros: Can you elaborate?
<shevy> or through foo(&bla)
kep has joined #ruby
<apeiros> jxf: the "indistinguishably" is a rather arbitrary addition of yours, for one
brennanMKE has quit [Ping timeout: 246 seconds]
<apeiros> jxf: ruby is able to pass blocks around for another
kewubenduben has quit [Read error: Connection reset by peer]
<shevy> yield.call(5) if block_given?
kewubenduben has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
<apeiros> jxf: also as I said before - "only one" is not equivalent to "doesn't have it at all"
<jxf> apeiros: All definitions are arbitrary. Some are wrong. :)
popl_ is now known as popl
shedd has quit [Ping timeout: 246 seconds]
<apeiros> jxf: dude, no
<apeiros> jxf: when you go around and make your own definitions, then you're wrong.
<jxf> apeiros: I didn't say it "doesn't have it at all".
xiphias has joined #ruby
<apeiros> jxf: of course you can go around and redefine a table as a squishy liquid. but then nobody will be able to meaningfully talk with you.
<jxf> Not sure if you read the rest of what I said or not?
drago777 has quit [Ping timeout: 240 seconds]
doodlehaus has quit [Remote host closed the connection]
<apeiros> jxf: anyway, also as said already: blocks are not the only way to create a closure in ruby. see canton7's comment.
<shevy> I can extend canton7!
<shevy> foo(proc{ first closure }, proc{ second closure }, lambda{ third closure }) { @proc_object }
dscrd has joined #ruby
jwest has quit [Quit: WeeChat 0.4.1]
apeiros has quit [Read error: Connection reset by peer]
<jxf> apeiros: I'm aware they're not the only way to create something that looks like a closure. I'm asking if blocks *are* closures. It doesn't seem like they are, since method signatures don't permit you to have more than one at a time.
psyprus has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
<shevy> a block is mostly just a fancy way for extra arguments really
apeiros has joined #ruby
psyprus has joined #ruby
<apeiros> … on some days I hate my ISP
<shevy> the definition you use is odd though
<shevy> if ruby would allow more than one block to a method, they would suddenly become closures for you?
drago777 has joined #ruby
<apeiros> "Ruby doesn't really have closures … you can only pass zero blocks or one block"
<popl> Where is that from?
<jxf> shevy: Blocks would have to look like other values. "&foo" is clearly a block, and you can only have one of them. Special treatment.
klcant102 has joined #ruby
<jxf> apeiros: Did you read the next statement?
<Xeago> jxf: you don't understand the & syntax I think
<shevy> jxf where do you see that &foo is a block?
vpretzel has joined #ruby
<shevy> I use blocks to methods all the time, I rarely use or need &foo syntax
<Xeago> proc { } creates for what by your definition is a closure
<apeiros> jxf: your next statement doesn't make your characterization of closures or ruby having/not having them any more correct
<Xeago> and you can pass it around exactly how you describe
<Xeago> &syntax is used for different reasons
psyl0n has quit [Remote host closed the connection]
vpretzel has quit [Read error: Connection reset by peer]
<apeiros> jxf: anyway: YES, it's a mischaracterization. period.
<apeiros> blocks are closures. that you can only pass one doesn't make them not-closures.
vpretzel has joined #ruby
<Xeago> that blocks are closures doesn't mean that blocks are the only closures..
vpretzel has left #ruby [#ruby]
<Xeago> anyways, @work :)
<jxf> Xeago: Right, proc is 100% a closure. `def foo(bar)` could be given any argument to `bar`, including a proc. But not `def foo(&bar)`.
psyl0n has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
<canton7> jxf, you can call foo(&proc{ stuff }) ?
dscrd has quit [Ping timeout: 246 seconds]
rh1n0 has joined #ruby
<Xeago> jxf: you still misunderstand &bar and how methods accept blocks
<apeiros> true, anyways, holidays :-p
<Xeago> bah, bastard :)
xiphias has joined #ruby
<jxf> Xeago: Very likely :)
rh1n0 has quit [Max SendQ exceeded]
<Xeago> been working for a wopping 7 hours already, and haven't even opened my editor or e-mail
<Xeago> wtf have I done :3
<apeiros> Xeago: well, they end today. and I'll only have some 50 days left after that 0:-)
<Xeago> jeez
<Xeago> do you have holiday on monday?
<Xeago> don\t have holiday today, but on monday
<apeiros> THAT is a good question
<Xeago> really awkward
<Xeago> it's like 3kingsday in holland
<shevy> we have holiday
<Xeago> or XmastreeBURNINHELLday
<shevy> Heilige Drei Könige 06.01.2014
psyprus has quit [Ping timeout: 240 seconds]
zarul has joined #ruby
psyprus has joined #ruby
<shevy> Xeago how can you work 7 hours without email!
<shevy> or editor!!!
<shevy> unless you must carry big and heavy bags
<Xeago> ?
<Xeago> don't know
syamajala has joined #ruby
<Xeago> played some foos
rm__ has joined #ruby
<Xeago> had lunch
drago777 has quit [Ping timeout: 240 seconds]
<shevy> heeh
<Xeago> found breakfast at the office
<shevy> lol
<popl> Did you have to kill it?
<Xeago> or well, attempted to but failed
butblack has quit [Quit: butblack]
<Xeago> kill what popl?
<popl> Breakfast.
<popl> at the office
<Xeago> I didn't kill it
<shevy> he just found it
<Xeago> I let it live..
LadyRainicorn has quit [Read error: Connection reset by peer]
xiphias has quit [Ping timeout: 240 seconds]
<shevy> it's like the office where food can be found
<Xeago> I failed to find it
<popl> Grateful co-workers, then.
<shevy> perhaps they poisoned it popl
<popl> Hopefully you let them off with a flesh wound at least.
<olivier_bK> what is the difference between $ and @ in ruby ?
HashNuke_ has joined #ruby
* Xeago is confused
<Xeago> olivier_bK: $ references global variables
<Xeago> @ references instance variables
<olivier_bK> okai thnaks
<shevy> olivier_bK $ you can use everywhere
apeiros has quit [Ping timeout: 240 seconds]
xiphias has joined #ruby
<shevy> >> module Foo; $bar = 'I want this to be available only in Foo!'; end; $bar
<eval-in> shevy => "I want this to be available only in Foo!" (https://eval.in/85413)
RaCx has joined #ruby
<shevy> :(
Landshark753 has joined #ruby
Landshark753 has quit [Max SendQ exceeded]
burlyscudd has joined #ruby
<Hanmac> alias also allows to rename global variables, but not instance variables ,P
<shevy> I shall rightfully call them goto variables henceforthwith.
drago777 has joined #ruby
<shevy> hmm you can use aliases to global variables?
monkegjinni has quit []
Landshark753 has joined #ruby
Landshark753 has quit [Client Quit]
sharms has quit [Ping timeout: 240 seconds]
mereghost is now known as mereghost_afk
<shevy> >> alias $bar $foo; $foo = 'wtf'; $bar
<eval-in> shevy => "wtf" (https://eval.in/85416)
rm__ has quit [Ping timeout: 264 seconds]
ffranz has joined #ruby
gasbakid has joined #ruby
<shevy> that's ruby for you
<shevy> every day you learn something new
mary5030 has quit [Remote host closed the connection]
psyprus has quit [Ping timeout: 240 seconds]
jwest has joined #ruby
mary5030 has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
psyprus has joined #ruby
<ayaz> FriedBob: /w 1
<ayaz> Sorry
sharms has joined #ruby
xiphias has joined #ruby
LadyRainicorn has joined #ruby
mrfoto has joined #ruby
rjhunter has quit [Quit: Leaving...]
wildroman2 has quit []
psyprus has quit [Ping timeout: 240 seconds]
guinslym has quit [Ping timeout: 240 seconds]
psyprus has joined #ruby
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
colonolGron has joined #ruby
zeeraw has joined #ruby
xiphias has joined #ruby
xiphias has joined #ruby
xiphias has quit [Changing host]
stryek has joined #ruby
clamstar has joined #ruby
breakingthings has joined #ruby
ip`` has joined #ruby
<shevy> array.each {|entry| define_method('c'+entry.to_s) { close(entry) } }
fedesilva has quit [Remote host closed the connection]
<shevy> ruby can be really succinct
<LadyRainicorn> That looks scary.
<popl> shevy: why would you do that?
ekarlso has quit [Ping timeout: 246 seconds]
<LadyRainicorn> I am fairly sure using close(entry) alone would be better.
stryek has quit [Remote host closed the connection]
<popl> 'close' is terse enough
samsonasu has joined #ruby
Kar- has joined #ruby
psyprus has quit [Ping timeout: 240 seconds]
psyprus has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
drago777 has quit [Ping timeout: 240 seconds]
xiphias has joined #ruby
xiphias has quit [Changing host]
xiphias has joined #ruby
samsonasu has quit [Client Quit]
workmad3 has joined #ruby
<popl> shevy: are you the type of developer that restricts themselves to two-or-three-letter identifiers? :P
fedesilva has joined #ruby
<popl> shevy: If so I would like your mailing address, please.
ekarlso has joined #ruby
<shevy> popl so that I have methods available that start with 'c'
tobago has quit [Remote host closed the connection]
ip`` has quit [Ping timeout: 246 seconds]
<Xeago> is a trailing comma allowed in json?
<Xeago> e.g. ["foo",]
<waxjar> i believe not
<LadyRainicorn> >> JSON.parse('["foo"]')
<eval-in> LadyRainicorn => uninitialized constant JSON (NameError) ... (https://eval.in/85419)
banister has quit [Ping timeout: 246 seconds]
<LadyRainicorn> >> require 'json'; JSON.parse('["foo",]')
<eval-in> LadyRainicorn => (https://eval.in/85422)
<LadyRainicorn> Aw, I should be able to require stdlib stuff
<Hanmac> hm ya evalin is a bit overprotective ...
<Hanmac> charliesome: can you fix that ?
<charliesome> i wonder why ruby is trying to do that
jbzt has joined #ruby
jbzt has quit [Client Quit]
<shevy> guys can someone of you explain this to me:
<shevy> Class.new(RuntimeError)
<shevy> why is this created via Class.new?
<Xeago> it creates a new class which is a logical subclass of RuntimeError
<Xeago> so you can do things in a block for it
<shevy> hmm
<Xeago> and it only exists in your local scope
h_kon has quit [Remote host closed the connection]
<Xeago> has no CapitalNameThingy to reference it
<waxjar> also, class x < X; end is ugly :p
cgcardona_ has joined #ruby
<shevy> waxjar is that not a syntax error?
cgcardona_ has quit [Client Quit]
<waxjar> yeah, i think so.
ahri has joined #ruby
freerobby has joined #ruby
dblessing has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
dagnachew has joined #ruby
dagnachew has quit [Max SendQ exceeded]
<ahri> hi, i'm using backticks to execute a system command and would like to parse the output lines as they come -- i'm doing `cmd here`.each_line { |line| <stuff> } -- but my block is executed after the command has fully executed; can i stream the output through?
dagnachew has joined #ruby
spyderman4g63 has joined #ruby
<shevy> I think it is possible ahri ... but I forgot how
<shevy> I know that the acoc colourizer does that
<ahri> more context; the command is long-running and i'd like to provide some feedback as it runs
<LadyRainicorn> ahri: Not with backticks. Use popen2
psyl0n has quit [Remote host closed the connection]
<shevy> awww ... http://www.caliban.org/files/ruby/?C=M;O=D acoc last update in 2005 :(
freebs has joined #ruby
flame_ has joined #ruby
klaut has quit [Remote host closed the connection]
<LadyRainicorn> Oh just popen
<LadyRainicorn> There are other versions too...
alexherbo2 has joined #ruby
<shevy> did you guys know that, it seems as if you can add travis links to your gem README?
<shevy> I am just looking at an example here.. it's a bit ugly though
psyl0n has joined #ruby
psyl0n has quit [Changing host]
psyl0n has joined #ruby
JPascal has joined #ruby
<ahri> ah, popen2 sounds like the right answer; i think i'll go for popen3 so i can have stderr too
<shevy> [![Build Status](https://secure.travis-ci.org/mbj/ etc...
freerobby has quit [Ping timeout: 272 seconds]
xguinness] has quit [Ping timeout: 252 seconds]
<momomomomo> a bit old, but ahri and LadyRainicorn Beware that the two are not equivalent http://tech.natemurray.com/2007/03/ruby-shell-commands.html
<ahri> hmm or 2e
<Hanmac> shevy and before you ask, i dont think my binding is stable enough to add travis ... and it needs external C++ libs, i dont think travis can provide that
<shevy> the ponicorns are in the house again
<LadyRainicorn> Yeah I know there are so many popens
<shevy> Hanmac I only saw it on another project, but thought that this is cool
<LadyRainicorn> I have to look it up every time ;-;
<shevy> I did not know you could use that with rubygems projects
L8D has joined #ruby
<shevy> and also dependencies, like this:
* LadyRainicorn flies around the house.
<shevy> lol LadyRainicorn
rootshift has joined #ruby
nateberkopec has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dscrd has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
tommyvyo has joined #ruby
Sourceless_ has left #ruby [#ruby]
<LadyRainicorn> IO.popen is actually nicer than I thought.
<LadyRainicorn> Apparently you can get a rw object and capture stderr.
zeeraw has joined #ruby
cgcardona_ has joined #ruby
millerti has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
Kar- has quit [Ping timeout: 272 seconds]
LadyRainicorn has joined #ruby
mansi_ has joined #ruby
brennanMKE has joined #ruby
<ahri> it seems like popen blocks until the command has finished executing, too
shedd has joined #ruby
includex has joined #ruby
<LadyRainicorn> Huh really?
<LadyRainicorn> That is odd.
renklaf has quit [Remote host closed the connection]
gwb3 has quit [Quit: leaving]
spinx^ has quit [Quit: leaving]
<ahri> if you look at the 2nd "gcc" example of http://www.ruby-doc.org/stdlib-1.9.3/libdoc/open3/rdoc/Open3.html#method-c-popen2e you'll see they're iterating over the whole output
gwb3 has joined #ruby
<ahri> (which i noticed after implementing and noting that behaviour)
mansi_ has quit [Ping timeout: 272 seconds]
canton7 has left #ruby ["Leaving"]
canton7 has joined #ruby
<canton7> IO.popen != Open3.popen ?
<ahri> ah
gwb3 has quit [Client Quit]
<ahri> i'm just being stupid, then!
gwb3 has joined #ruby
brennanMKE has quit [Ping timeout: 265 seconds]
spinx^ has joined #ruby
<ahri> complete sidenode; they seem to use curly braces at all times instead of do/end -- is this normal? what style do the majority of ruby devs use?
dscrd has quit [Quit: .]
cbetta_afk is now known as cbetta
shedd has quit [Ping timeout: 272 seconds]
Sawbones has joined #ruby
<shevy> Hanmac, lookie: http://www.uoguelph.ca/~gbarron/N-D%20Fungi/n-dfun1.jpg this is a little worm ("Fadenwurm") strangled by a fungi (Pilz Arthrobotrys)
asobrasil has joined #ruby
<canton7> the most common style is do..end for everything over 1 line, but there are people who prefer curley braces always
<waxjar> ahri: there are two conventions. {} for single lines, do .. end for multiple lines and {} if you care about the return value, do .. end if you don't
Wolland has joined #ruby
<ahri> ok, i'm glad i'm doing it the "normal" way then!
centipedefarmer has joined #ruby
sjohn3 has quit [Quit: leaving]
<shevy> I like curly braces
<shevy> one reason is visual
<shevy> def foo
<shevy> array.each {|entry|
<shevy> }
<shevy> end
<shevy> but only for methods
arietis has quit [Quit: Computer has gone to sleep.]
<shevy> I mean, in a method
<shevy> DSL-style like in sinatra, it looks better without the {}
clamstar has quit [Quit: Computer has gone to sleep.]
doodlehaus has joined #ruby
<ahri> i don't have any particular preference except to adhere to the norm; i have my fill of braces in C# and Java, and enjoy the lack of them in Python, with Ruby being closer to the Python end as far as number of braces in a file :)
aganov has quit [Quit: Leaving]
fuhgeddaboudit has quit [Ping timeout: 246 seconds]
<shevy> I guess ruby code will always have more braces than python
<shevy> you can use (or need) {} for blocks, Hashes... hmm
arietis has joined #ruby
<shevy> actually, I think these could be optional
RaCx has quit [Quit: Computer has gone to sleep.]
<shevy> do/end vs. Hash.new .update
jerius has joined #ruby
<shevy> whaaa... html5 draft http://www.w3.org/html/wg/drafts/html/CR/single-page.html why did it become so large :(
<shevy> now my firefox is not responding
stryek has joined #ruby
x_ has joined #ruby
catphish has joined #ruby
hasham has joined #ruby
rm__ has joined #ruby
LadyRainicorn has quit [Ping timeout: 272 seconds]
<catphish> does ruby have its own mechanism for STDOUT buffering? it doesn't appear to use the C stream library, but it does seem to buffer output differently when writing to a file vs TTY
<hasham> Anyone having issues with 2.1.0 and rails 4.0, is it safe to move production app to 2.1
grieg has joined #ruby
LinearInterpol has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
tannerburson has joined #ruby
LadyRainicorn has joined #ruby
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
gwb3 has quit [Quit: leaving]
gwb3 has joined #ruby
<shevy> ruby is rather famous, it even has its own html tag
teddyp1cker has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
<tobiasvl> lol
<LadyRainicorn> haha
fntzr has quit [Quit: Leaving]
<LadyRainicorn> I think it's a different tag.
johnmilton has joined #ruby
sambao21 has joined #ruby
grieg has left #ruby [#ruby]
rm__ has quit [Ping timeout: 272 seconds]
ocline has joined #ruby
yacks has joined #ruby
g0bl1n has joined #ruby
<Hanmac> yeah that is <ruby> in html that allows you to write Japanese or other chars above other
Geronimo74 has joined #ruby
Geronimo74 has quit [Client Quit]
<waxjar> yay free porn gifs. thx geronimo
<waxjar> :s
<LadyRainicorn> Not actually Ruby the language I mean
banister has joined #ruby
kcombs has joined #ruby
banister has quit [Max SendQ exceeded]
<tobiasvl> yes quite obviously
dscrd has joined #ruby
hasham has left #ruby [#ruby]
dscrd has quit [Client Quit]
Guest35909 has joined #ruby
joschi has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
zipper has joined #ruby
lukec has joined #ruby
samsonasu has joined #ruby
joaosa has quit [Ping timeout: 264 seconds]
noop has quit [Ping timeout: 264 seconds]
samsonasu has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby
cow_ has quit [Remote host closed the connection]
sailias has joined #ruby
cow_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
burlyscudd1 has joined #ruby
<alex88> sidekiq ui doesn't let you list the processed jobs?
arietis has quit [Quit: Computer has gone to sleep.]
vlad_sta_ has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
klaut has joined #ruby
fedesilva has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
klaut_ has joined #ruby
klaut has quit [Read error: Connection reset by peer]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
huttan has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 245 seconds]
clamstar has joined #ruby
phutchins has joined #ruby
brennanMKE has joined #ruby
pcarrier has joined #ruby
vpretzel has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
brennanMKE has joined #ruby
<pcarrier> I'm very puzzled by the behaviour of hashes with default values
jonathanwallace has quit [Quit: ZNC - http://znc.in]
<pcarrier> https://gist.github.com/pcarrier/8239243#file-gistfile1-rb-L44-L75 <--- can anyone guess why this is broken? (md is empty)
<apeiros> pcarrier: did you care to read Hash::new's docs?
<apeiros> you know… which you should do when a method doesn't act as you expect it…
<pcarrier> "If a block is specified, it will be called with the hash object and the key, and should return the default value."
<pcarrier> that's exactly what I'm expecting
<pcarrier> is it not?
<apeiros> read on
<apeiros> last sentence.
razibog has quit [Remote host closed the connection]
<pcarrier> oh wait what?
<apeiros> "It is the block's responsibility to store the value in the hash if required."
diegoviola has joined #ruby
<pcarrier> "and should return the default value."
<pcarrier> then how is what it returns used?
brennanMKE has quit [Ping timeout: 252 seconds]
freerobby has quit [Ping timeout: 245 seconds]
<apeiros> o0
millerti has quit [Quit: millerti]
<apeiros> no, that part you understood correctly.
<pcarrier> apeiros: yeah, now I understand what I'm doing wrong
<apeiros> or maybe you didn't either :-p
<pcarrier> but now I misunderstand what "returns the default value" means
<pcarrier> if I have to store what I want myself, what's "the default value"?
<pcarrier> apeiros: also, thanks :)
momomomomo has quit [Quit: momomomomo]
<apeiros> a default value is the value returned if a key is accessed which is not stored in the hash
intuxicated has joined #ruby
<apeiros> normally that's nil (and note, that one does NOT get stored in the hash automatically either… it's just the default value)
<pcarrier> ok ok, interesting
millerti has joined #ruby
<apeiros> and a block allows you to have a dynamic default value instead of a static
<pcarrier> that allows for some pretty crazy behaviours :)
Virtualize has quit [Read error: Connection reset by peer]
Virtualize has joined #ruby
lewix has joined #ruby
jedimind has joined #ruby
DouweM has joined #ruby
flame_ has quit [Quit: Computer has gone to sleep.]
Kneferilis has joined #ruby
tobago has joined #ruby
tylersmith has joined #ruby
IceDragon has joined #ruby
fmcgeough has joined #ruby
mfoo has joined #ruby
syamajala has quit [Quit: leaving]
<mfoo> Is there some static analysis tool for ruby that will tell me when I'm catching an exception but not using it? (I would like to find places where exceptions are caught but not logged)
arietis has joined #ruby
<apeiros> mfoo: note that the term "catch" means something different than rescue in ruby. you rescue exceptions, you don't catch them.
DrShoggoth has joined #ruby
lfox has joined #ruby
<apeiros> there are a couple of static analysis tools for ruby. wouldn't know whether they can do specifically what you asked for. check ruby-toolbox.com for a list of such tools.
<IceDragon> catch :a_ball { __some_ruby_code__; throw :a_ball; __other_ruby_code__ }; __other_stuff__
<apeiros> IceDragon: that's a syntax error :-p
<apeiros> (because :a_ball can't take a block…)
<IceDragon> fuuuuuu
<IceDragon> catch(:a_ball) { __some_ruby_code__; throw :a_ball; __other_ruby_code__ }; __other_stuff__
<IceDragon> that always annoys me
freerobby has joined #ruby
<shevy> hehehehe
interactionjaxsn has joined #ruby
* IceDragon tackles shevy out the window, but flies away before hitting the ground
<apeiros> def monkey; throw :feces; end
<IceDragon> ewwww ;x
<shevy> ok
fedesilva has joined #ruby
<shevy> who is going to catch that apeiros?
grep_away is now known as grep_awesome
<apeiros> I'm not
snath has quit [Ping timeout: 246 seconds]
<apeiros> as you might have noticed
<IceDragon> just don't monk_y around
LinearInterpol has quit [Read error: Connection timed out]
<IceDragon> on other news, I'm one step closer to embedding ruby, and a hundred steps backwards to extensions ;(
LinearInterpol has joined #ruby
lukec has quit [Quit: lukec]
millerti has quit [Quit: millerti]
ambushsabre has joined #ruby
burlyscudd1 has quit [Quit: Leaving.]
cgcardona_ has quit [Quit: cgcardona_]
Yarou has joined #ruby
kleinerdrache has joined #ruby
<kleinerdrache> how can I put an array of objects to an array of just 'titles' when i have an attribute named title
<kleinerdrache> like
Landshark753 has joined #ruby
<kleinerdrache> a.each do {|i| puts i.title}
guardianx has quit [Remote host closed the connection]
<kleinerdrache> just that i dont want to put it (via puts) but to have it in a new array like 'titles'
millerti has joined #ruby
havenwood has joined #ruby
<IceDragon> oh
<IceDragon> you could use Symbol#to_proc for that
<IceDragon> :)
<shevy> IceDragon embed into?
<IceDragon> a.map(&:title)
<shevy> IceDragon btw kleinerdrache means "little dragon"
<IceDragon> my C++ app
fedesilva has quit [Remote host closed the connection]
* IceDragon trips shevy and claws at his face
lmickh has joined #ruby
<shevy> we now even have german dragons here
<shevy> apeiros could be renamced to apedragon
fedesilva has joined #ruby
aryaching has joined #ruby
<IceDragon> kleinerdrache: a.map(&:title) #=> [titles...]
ehc has joined #ruby
<kleinerdrache> IceDragon, Thats great! thanks
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
<IceDragon> :3
millerti has quit [Client Quit]
Virtualize has quit [Quit: Leaving...]
mengu has quit []
dagnachew has quit [Quit: Leaving]
* LadyRainicorn is very dragonlike.
<LadyRainicorn> In fact many people think rainicorns and dragons are related.
kalelsage has joined #ruby
<LadyRainicorn> I think the Great Stone Dragon is a distant cousing of mine.
tagrudev has quit [Remote host closed the connection]
colonolGron has quit [Quit: leaving]
gasbakid has quit [Read error: Operation timed out]
<apeiros> shevy: and you lil'monkey?
fantazo has joined #ruby
millerti has joined #ruby
blackmesa has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
danshultz has joined #ruby
danshultz has quit [Remote host closed the connection]
ambushsabre has quit [Quit: rip]
DrShoggoth has quit [Ping timeout: 272 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
millerti has quit [Client Quit]
zeeraw has joined #ruby
millerti has joined #ruby
RaCx has joined #ruby
marr has quit [Ping timeout: 246 seconds]
danshultz has joined #ruby
b00stfr3ak has joined #ruby
ckinni has joined #ruby
shredding has left #ruby [#ruby]
guilund has joined #ruby
shime has quit [Ping timeout: 264 seconds]
mereghost_afk is now known as mereghost
bean has joined #ruby
cameronbarton has joined #ruby
<guilund> hey guys, happy new year!
figgleberry has joined #ruby
gasbakid has joined #ruby
<alex88> someone ever tried to get the s3 object url using the v2 version of the library?
zipper has quit [Ping timeout: 252 seconds]
smathieu has joined #ruby
<Hanmac> alex88 what exactly do you mean with that? what is s3 ?
<alex88> sorry :) aws s3 storage
_aeris_ has joined #ruby
<alex88> with old library they provide an s3object where you just need to call url on it, now they just return a response object
millerti has quit [Quit: millerti]
<shevy> LadyRainicorn u are more like a flying pony!
jkamenik has quit [Read error: Connection reset by peer]
jkamenik has joined #ruby
rehat has joined #ruby
teddyp1cker has quit [Read error: Connection reset by peer]
teddyp1cker has joined #ruby
ip`` has joined #ruby
platzhirsch has joined #ruby
clamstar has quit [Ping timeout: 252 seconds]
arietis has joined #ruby
clamstar has joined #ruby
byprdct has joined #ruby
<weeb1e> Hmm, I'm having trouble installing 1.9.3 to this box, I'm not sure if it is related to me first installing RVM, I think I'll try remove RVM
<weeb1e> installing library scripts: /usr/local/lib/ruby/1.9.1
<weeb1e> /home/admin/ruby-1.9.3-p484/lib/fileutils.rb:244:in `mkdir': File exists - /usr/local/lib/ruby/1.9.1/yaml (Errno::EEXIST)
<weeb1e> I get that error even after manually removing /usr/local/lib/ruby/1.9.1/yaml/usr/local/lib/ruby/1.9.1/yaml
<shevy> huh
<shevy> why would rvm install into /usr/local
tkuchiki has quit [Remote host closed the connection]
FifthWork has joined #ruby
<weeb1e> I don't think it would, which is why I am confused
<shevy> seems like a violation
<weeb1e> After I got that error I removed that directory manually shevy
<shevy> after all you install into your home directory it seems
<weeb1e> And after running sudo make install again, it still errors
brennanMKE has joined #ruby
<shevy> yeah
tkuchiki has joined #ruby
<shevy> apparently it does not matter if the directory exists or not
<weeb1e> I was going to use RVM on this system, but I think `rvmsudo` does not use root ulimits
<weeb1e> Which breaks my application, so now I have to install system ruby for root to use
<shevy> did you have another ruby on this box?
<weeb1e> Not other than the one I installed with RVM
<shevy> very strange
<weeb1e> Any suggestions?
Megtastique has joined #ruby
<weeb1e> I've never experienced this before and I've installed 1.9.3 on at least 10 different boxes
<havenwood> weeb1e: looks like you did a multi-user RVM install instead of the normal single-user setup
cow_ has quit [Remote host closed the connection]
<weeb1e> Only difference with this box is that I installed RVM first
<weeb1e> Ok, I'll try figure out how to uninstall RVM
<havenwood> weeb1e: rvm implode
nateberkopec has joined #ruby
<weeb1e> havenwood: You wouldn't happen to know how to get rvmsudo to use root ulimits would you?
subbyyy has joined #ruby
<weeb1e> That would be easier than installing ruby and my 100 gems again
<havenwood> weeb1e: i'm not sure, mpapis in #rvm would know if he's around
tkuchiki has quit [Ping timeout: 272 seconds]
<weeb1e> Ok, thanks
brennanMKE has quit [Ping timeout: 272 seconds]
lethjakman has joined #ruby
smathieu has quit [Remote host closed the connection]
<shevy> gems are usually downloaded into cache/ directory
clamstar has quit [Ping timeout: 260 seconds]
<weeb1e> Yeah well, bundler is not all that fast
<shevy> if you still have your old ruby somewhere, all .gem should be there. installing these .gem files then is trivial
<weeb1e> Download speed is generally not the bottleneck
<shevy> oh, I would not know. I use "gem install name.gem"
<shevy> and all the gems I use I also backup locally
end_guy has joined #ruby
<weeb1e> Bundler does make dependencies a bit eaiser when you have multiple applications all with many gem requirements
mzdravkov has quit [Remote host closed the connection]
jprovazn is now known as jprovazn_afk
bean has quit [Quit: Textual IRC Client: www.textualapp.com]
bean has joined #ruby
bentonrr has joined #ruby
clamstar has joined #ruby
subbyyy_ has joined #ruby
zipper has joined #ruby
<platzhirsch> When using RVM for installation on a server then it can also be installed globally, can't it?
<weeb1e> havenwood and shevy: So after imploding rvm and rm'ing /usr/local/lib/ruby manually, it is still broken
<weeb1e> This makes no sense
<weeb1e> ruby-1.9.3-p484/lib/fileutils.rb:244:in `mkdir': File exists - /usr/local/lib/ruby/1.9.1/yaml (Errno::EEXIST)
<Jamo> platzhirsch: yes
MrThePlague has joined #ruby
<weeb1e> The only way this error can be happening is if `sudo make install` is creating that directory twice
subbyyy has quit [Ping timeout: 272 seconds]
<weeb1e> So the official ruby install script must be broken?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kevind has joined #ruby
jameshyde has joined #ruby
jameshyde has quit [Max SendQ exceeded]
<shevy> see
<shevy> the error you describe, with /usr/local being used, sounds atypical
mansi_ has joined #ruby
<matti> shevy: Unless its Debian.
<shevy> when you write "official ruby install script", do you mean RVM? or ruby source
<shevy> yeah
<mereghost> shevy: unless it's installed as global.
<shevy> weeb1e, what is your distribution?
<shevy> mereghost huh? what do you mean there
<weeb1e> shevy: As I said, I used rm -rf /user/local/lib/ruby before `sudo make install`
<weeb1e> It's ubuntu 12.04.3 LTS
<weeb1e> The latest LTS
<shevy> ok, debian crap
<shevy> debian installs into /usr/local/lib
<mereghost> shevy: rvm will pull stuff in /usr/local if it is installed as root.
psyprus has quit [Changing host]
psyprus has joined #ruby
<shevy> mereghost ah I see. that's a violation
sumark has quit [Remote host closed the connection]
pushpak has joined #ruby
<weeb1e> I've installed 1.9.3 on 10 different ubuntu boxes, mostly earlier 12.04 versions and one debian squeeze box
<weeb1e> Yet installing Ruby 1.9.3-p484 on this ubuntu box gives that error
<shevy> the --prefix that should be honoured is the one given, which I assume must be the respective home directory
<mereghost> shevy: well... installing it as root is unnecessary most of the time.
<weeb1e> So the only thing I can think of now is try build and install an older 1.9.3 version, which I'd rather not do if I can avoid it
<mereghost> weeb1e: do you have anything on /usr
<shevy> that all does not make any sense weeb1e
<weeb1e> mereghost: What do you mean?
sumark has joined #ruby
<mereghost> weeb1e: sorry... /usr/local/lib/ruby
<shevy> I think he removed that already
<weeb1e> <weeb1e> shevy: As I said, I used rm -rf /user/local/lib/ruby before `sudo make install`
relix has joined #ruby
frustrum has joined #ruby
<weeb1e> I meant /usr/
<weeb1e> not /user
<shevy> so he won't remember what he had before :)
shedd has joined #ruby
frustrum has quit [Client Quit]
<shevy> last time I installed ubuntu, I had /usr/local/lib/python* things and perl there as well
<weeb1e> This official ruby installer must be broken
iamjarvo_ has joined #ruby
<weeb1e> I really can't see any other possibility here
<shevy> what is the "official ruby installer"
<mereghost> well, that's weird.
<shevy> no
<mereghost> are you compiling from source ?
<Hanmac> weeb1e: it depends, when you build ruby with "enable-multiarch" it also installs to /usr/local/lib/x86_64-linux/ruby
<shevy> ruby 1.9.3p448 (2013-06-27 revision 41675) [i686-linux]
Brolen has joined #ruby
<mereghost> I see.
<shevy> sorry, wrong symlink
<weeb1e> mereghost: Yes, like I said, I am getting that error when I use `sudo make install` after compiling the extensions and ruby itself
<shevy> ruby 1.9.3p484 (2013-11-22 revision 43786) [i686-linux]
banister has joined #ruby
<weeb1e> Hanmac: I have never done that before
<shevy> weeb1e I compile everything from source. I can tell you with 100% guarantee that everything is fine with the official ruby source
<havenwood> weeb1e: Check if ruby-install works fine?
<shevy> Hanmac even when the --prefix is /usr ?
<weeb1e> shevy: Like I said, I've compiled and install ruby 1.9.3 from source on at least 10 ubuntu boxes
<weeb1e> This is the first time I have had an issue
noname001__ has quit [Read error: Operation timed out]
Landshark753 has quit [Ping timeout: 240 seconds]
<shevy> weeb1e I do the same and I never had this issue. but you said you use rvm, which I dont
<weeb1e> havenwood: What is "ruby-install"?
<Hanmac> shevy i dont know i think the both options are working together
<shevy> Hanmac I doubt that
<weeb1e> shevy: I don't usually, and I have already imploded rvm and manually deleted any remaining files
davorb_ is now known as davorb
<shevy> I have never seen an automatic dishonouring of --prefix like that
<Hanmac> shevy if you use --prefix=/usr and --enable-multiarch it should put the stuff to /usr/lib/x86_64-linux/ruby
<shevy> yeah
senj has joined #ruby
gregoriokusowski has quit [Quit: gregoriokusowski]
<weeb1e> havenwood: Is that able to install ruby to /usr/local? I'd rather not install it to /opt
Landshark753 has joined #ruby
rootshift has quit [Quit: rootshift]
<havenwood> weeb1e: yeah, you can specify: ruby-install -i /usr/local/ ruby 1.9.3-p429
digital-ghost has joined #ruby
<weeb1e> When I configure, I just use ./configure, no prefix or other options
<shevy> weeb1e that defaults to --prefix=/usr/local
<weeb1e> havenwood: Ok, I will try that then
mlpinit has joined #ruby
<shevy> --prefix is always used, even when you do not specify it
<weeb1e> shevy: Yeah I know that, that is where I have it installed on all my boxes
shedd has quit [Ping timeout: 260 seconds]
Sawbones has quit [Remote host closed the connection]
millerti has joined #ruby
<shevy> weeb1e btw are you sure that fileutils.rb fails because of that error? I would assume that it would ignore already existing directories by default, otherwise one could not re-install things without cleaning up prior installs
sec^nd has joined #ruby
<weeb1e> shevy: Well that is what it says,...
<shevy> yeah but it could lie to you :)
<weeb1e> Well I know of no way of forcing it to tell the truth :P
<shevy> I have had situations where GNU autoconfigure said that "gtk is not installed" when some other xorg library .so file was not found (libxrender in that case)
DrShoggoth has joined #ruby
<shevy> so I fixed libxrender and compiles worked. gtk worked all the time, but it reported wrongfully to me
meoblast001 has joined #ruby
dapz has joined #ruby
yacks has quit [Quit: Leaving]
millerti has quit [Ping timeout: 260 seconds]
<meoblast001> not sure if this is really possible but it's worth throwing the question out. haven't found much on google. can i open a file and rewrite it without changing the file's creation date on a unix system?
tylersmith has quit [Remote host closed the connection]
<shevy> meoblast001 I dont think so
cj3kim has joined #ruby
<meoblast001> hm
<shevy> it would be a bug in the way how unix works if that would be possible
<meoblast001> i'll have to insert real creation date somewhere in the file then
<shevy> perhaps you can recreate the original data
<shevy> yeah
<meoblast001> thanks
<weeb1e> havenwood: Oh what extensions does ruby-installer include?
<meoblast001> although now i don't know what the difference between ctime and mtime is
<weeb1e> I need zlib, readline, syck and openssl
<meoblast001> but i can look that up on my own
<havenwood> weeb1e: ah, like what packages does it install?
Mars has joined #ruby
<weeb1e> havenwood: Does it automatically build and install those extensions if the native libs are installed to the system?
<havenwood> weeb1e: yes
millerti has joined #ruby
<weeb1e> Ok, thanks
<havenwood> weeb1e: np ;)
Mars is now known as Guest27318
<shevy> meoblast001 seems simple, creation time vs. modification time
tobago has quit [Remote host closed the connection]
<havenwood> weeb1e: well, it uses the system package manger to install them rather
rubyracer has joined #ruby
<shevy> havenwood knows a damn lot about ruby including the ecosystems
<weeb1e> I get the feeling it is gonna fail the same as `sudo make install`, but we'll see how it goes
<meoblast001> shevy: yeah. although from what i just learned, modification will trigger a change in the creation time
<shevy> weeb1e then you will use the source :)
shedd has joined #ruby
<shevy> and just for the try, you will specify another --prefix as well then
<meoblast001> it seems ctime is for any change to anything including metadata and mtime is for data only, from what i just read
<weeb1e> shevy: What do you mean use the source?
cj3kim has quit [Ping timeout: 246 seconds]
millerti has quit [Client Quit]
Trynemjoel has quit [Ping timeout: 245 seconds]
<shevy> weeb1e: wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p448.tar.bz2, extract, cd, ./configure --prefix=/home/trying_this_now
<weeb1e> Yeah I'll try another prefix if this doesn't work out
mklappstuhl has joined #ruby
<shevy> meoblast001 modifications really change the created-at time?
axl_ has joined #ruby
flame_ has joined #ruby
<meoblast001> shevy: seems so
<weeb1e> But the fact is, if deleting the existing directory before installing doesn't help, I can't see how another prefix will
<shevy> actually
<shevy> I cant find the created at slow
<shevy> 'stat' gives me: (1) Access (2) Modify (3) Change
<shevy> *slow = slot
<weeb1e> Modifications shouldn't change the creation time
<weeb1e> only the mtime
lewix has quit [Remote host closed the connection]
<weeb1e> Removing and recreating the file would change the creation time
axl_ has quit [Client Quit]
subbyyy_ has quit [Ping timeout: 260 seconds]
<shevy> hmm
meatherly has joined #ruby
jtoy has joined #ruby
<jtoy> what is a simple way to change a val into 0 if it is NaN or Infinity?
figgleberry has quit [Ping timeout: 272 seconds]
<jtoy> I tried something like val > 0 ? val : 0
<jtoy> but it seems NaN and infinity is greater than 0
meatherly has quit [Remote host closed the connection]
kalelsage has quit [Ping timeout: 260 seconds]
gasbakid has quit [Ping timeout: 252 seconds]
gasbakid_ has joined #ruby
meatherly has joined #ruby
<LadyRainicorn> NaN > 0?
Sthebig has quit [Ping timeout: 245 seconds]
figgleberry has joined #ruby
<LadyRainicorn> >> Float::NaN > 0
<eval-in> LadyRainicorn => uninitialized constant Float::NaN (NameError) ... (https://eval.in/85477)
MrThePlague has quit []
<LadyRainicorn> >> Float::NAN > 0
<eval-in> LadyRainicorn => false (https://eval.in/85479)
cow_ has joined #ruby
<LadyRainicorn> >> Float::NAN < 0
<eval-in> LadyRainicorn => false (https://eval.in/85480)
<havenwood> >> 1.upto(Float::NAN).take 5
<eval-in> havenwood => [1, 2, 3, 4, 5] (https://eval.in/85481)
<havenwood> >.>
<LadyRainicorn> >> Float::NAN <=> 0
<eval-in> LadyRainicorn => nil (https://eval.in/85482)
<platzhirsch> jtoy: val = 0 unless val.finite?
<jtoy> perfect platzhirsch
<LadyRainicorn> That's a bug I think.
<LadyRainicorn> upto(NaN) makes no sense.
<havenwood> LadyRainicorn: hehe
mklappstuhl has quit [Remote host closed the connection]
Sthebig has joined #ruby
gregoriokusowski has joined #ruby
deception has joined #ruby
fedesilv_ has joined #ruby
<Hanmac> >> [Float::NAN].pack("g") != [0/0.0].pack("g")
<eval-in> Hanmac => true (https://eval.in/85489)
axl_ has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
mjburgess has joined #ruby
zipper has quit [Ping timeout: 260 seconds]
maletor has joined #ruby
intuxicated has quit [Read error: No route to host]
Columcille has quit [Remote host closed the connection]
<havenwood> >> 0.upto("\x7F\xC0\x00\x00".unpack('g').first).take 3
<eval-in> havenwood => [0, 1, 2] (https://eval.in/85490)
cow_ has quit [Ping timeout: 272 seconds]
Sawbones has joined #ruby
jhn has joined #ruby
fedesilva has quit [Ping timeout: 272 seconds]
<Hanmac> >> "\x7F\xC0\x00\x00\xFF\xC0\x00\x00".unpack("g*")
<eval-in> Hanmac => [NaN, NaN] (https://eval.in/85491)
jhn has quit [Client Quit]
hiall has joined #ruby
ip`` has quit [Ping timeout: 272 seconds]
<LadyRainicorn> ... wut
meatherly has joined #ruby
<havenwood> >> p Array.new(7) { Float::NAN } << :batman
<eval-in> havenwood => [NaN, NaN, NaN, NaN, NaN, NaN, NaN, :batman] ... (https://eval.in/85492)
rm__ has joined #ruby
jhn has joined #ruby
<havenwood> >> "\x7F\xC0\x00\x00\xFF\xC0\x00\x00".unpack("g*").join * 3 << ' batman'
<eval-in> havenwood => "NaNNaNNaNNaNNaNNaN batman" (https://eval.in/85493)
<platzhirsch> lol
<LadyRainicorn> Ruby kind of fails at NaN ;-;
gasbakid__ has joined #ruby
Columcille has joined #ruby
geggam has quit [Quit: Leaving]
Guest27318 has quit [Ping timeout: 260 seconds]
<olivier_bK> i dont remember how i can pass element in empty array ?
leeurooi has joined #ruby
gasbakid_ has quit [Ping timeout: 272 seconds]
TheShaun has quit [Ping timeout: 245 seconds]
lukec has joined #ruby
johnyboy6000 has joined #ruby
Megtastique has quit []
nvrch has quit [Quit: nvrch]
<mereghost> [] << :something
<waxjar> >> e = []; e << 1; e
<eval-in> waxjar => [1] (https://eval.in/85497)
zipper has joined #ruby
gasbakid__ has quit [Ping timeout: 252 seconds]
marr has joined #ruby
joaosa has joined #ruby
TheShaun has joined #ruby
croaky has joined #ruby
<kure_> So, what are you guys developing today?
<Columcille> a cold
wallerdev has joined #ruby
<mereghost> an urge to drink some beer. =)
Virtualize has joined #ruby
lethjakman has quit [Ping timeout: 272 seconds]
<kure_> oh you
gasbakid__ has joined #ruby
kapowaz has joined #ruby
<mereghost> friday has this awesome power
Virtualize has quit [Client Quit]
zipper has quit [Ping timeout: 260 seconds]
* LadyRainicorn has not had much beer today. Fucking cold ;-;
jrhorn424 is now known as zz_jrhorn424
<olivier_bK> i dont understand something in my array
* mereghost will drink LadyRainicorn share of beer.
allaire has joined #ruby
<olivier_bK> i dont understand why he cant populate my array
<LadyRainicorn> You will probably die of alcohol poisoning first ;p
veinofstars has joined #ruby
<Hanmac> olivier_bK: "="
<mereghost> Challenge Accepted. xD
brennanMKE has joined #ruby
veinofstars has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<mereghost> olivier_bK: that should be a <<
rm__ has quit [Remote host closed the connection]
<havenwood> olivier_bK: you're overwriting it each iteration
<kure_> def friday(friends); self << beer * friends; end
<olivier_bK> havenwood, okai i understand now
<waxjar> olivier_bK: it'd be more idiomatic to use #map here
<havenwood> +1 map
<olivier_bK> waxjar, your advice is tu use map and not each
<waxjar> yes.
<mereghost> I just commented your gist with a map version.
ahawkins has quit [Read error: Operation timed out]
RaCx_ has joined #ruby
ambushsabre has joined #ruby
Voodoofish430 has joined #ruby
<olivier_bK> i going to read some documentation about map function
gasbakid__ has quit [Quit: Quitte]
<havenwood> olivier_bK: its an important one!
<shevy> olivier_bK yay! always good to read about docu!
gasbakid has joined #ruby
zeade has joined #ruby
RaCx has quit [Ping timeout: 245 seconds]
RaCx_ is now known as RaCx
brennanMKE has quit [Ping timeout: 252 seconds]
havenwood has quit []
<olivier_bK> i read a lot of documentation
dagobah has quit [Remote host closed the connection]
<olivier_bK> when i dream i read again
<olivier_bK> lol..
chrisan has quit [Ping timeout: 264 seconds]
Virtualize has joined #ruby
<shevy> man
<mereghost> yeah. The collections in Ruby are pretty rich.
<shevy> you should dream about beer or girls or fortunes... not documentation
geggam has joined #ruby
chrisan has joined #ruby
<mereghost> shevy: is beer documentation valid?
<olivier_bK> lol i know ...
<olivier_bK> beet miam miam
hadees has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<shevy> mereghost beer is so simple that it needs no documentation
<shevy> just open your mouth and in with the shit
<weeb1e> I tend to read examples more often than documentation
* waxjar waits for the beer snobs to show up
slash_nick is now known as slash_me
<shevy> I tend to drink more beer rather than read any documentation
<weeb1e> Once you know how to do something, the best way to learn more is to use it, irb makes testing things quick and easy
<weeb1e> I think I need to drink more beer
<shevy> hehe
<mereghost> weeb1e: irb and ri are your best friends. =)
Brolen has quit [Quit: Brolen]
<weeb1e> shevy: I'm trying with a local prefix now, since ruby-installer gave the same error as expected
lfox has quit [Quit: ZZZzzz…]
<mereghost> I tend to check docs first, try irb second, google third, asking around only if everything else failed.
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ffio_ has quit [Quit: WeeChat 0.4.1]
<weeb1e> mereghost: All my applications are eventmachine based, so I have a one or more live REPL interfaces for debugging and maintenance
DonRichie2 has quit [Read error: Connection timed out]
<mereghost> weeb1e: em-omg. that em-sounds em-cool. :P
<weeb1e> em-lol
rien has quit [Ping timeout: 246 seconds]
DonRichie has joined #ruby
jameshyde has joined #ruby
leeurooi has quit [Quit: I'm outta here]
jameshyde has quit [Max SendQ exceeded]
<weeb1e> shevy: As expected, still fails
ckinni has joined #ruby
jameshyde has joined #ruby
jameshyde has quit [Max SendQ exceeded]
<weeb1e> installing library scripts: /home/admin/rubytest/lib/ruby/1.9.1
<weeb1e> from /home/admin/ruby-1.9.3-p484/lib/fileutils.rb:244:in `fu_mkdir'
<weeb1e> /home/admin/ruby-1.9.3-p484/lib/fileutils.rb:244:in `mkdir': File exists - /home/admin/rubytest/lib/ruby/1.9.1/yaml (Errno::EEXIST)
jameshyde has joined #ruby
atmosx has joined #ruby
Brolen has joined #ruby
<weeb1e> So now I'm pretty much convinced that the official ruby source package is broken...
rien has joined #ruby
<weeb1e> I can't see how this could be happening any other way
axl_ has quit [Quit: axl_]
cow_ has joined #ruby
byprdct has quit [Ping timeout: 272 seconds]
ckinni has quit [Client Quit]
<weeb1e> I'm going to have to try build an older 1.9.3
Mars has joined #ruby
browndawg has left #ruby [#ruby]
Mars is now known as Guest61011
<atmosx> anyone has experience with partials haml and sinatra?
iamjarvo_ has quit [Remote host closed the connection]
iamjarvo_ has joined #ruby
<weeb1e> atmosx: Always better to ask your actual question, I'm sure many people do'
snath has joined #ruby
gja has joined #ruby
pushpak has quit [Quit: Leaving...]
<matti> weeb1e: I have no issues building upstream Ruby.
<atmosx> weeb1e: I want to use partials to change the layout menu according to user level. I have two methods !admin (admin level) and !protected (logged in user) to protect specific routes but I have no idea on how to proceed.
<weeb1e> And installing specifically, not just compiling
<weeb1e> It compiles fine, but always fails to install with the above error\
maletor has joined #ruby
gja has quit [Client Quit]
cow_ has quit [Ping timeout: 260 seconds]
<shevy> weeb1e can you tell me what you did with the source exactly?
jhn has quit []
SHyx0rmZ has joined #ruby
asteve has joined #ruby
<weeb1e> atmosx: I define my own partial helper method, I could pastebin it for you but I'm sure the one in that repo will work too (I can't see what it is right now, my internet is being stubborn)
<shevy> btw I did not use that source
jhn has joined #ruby
jameshyde has quit [Ping timeout: 246 seconds]
<atmosx> weeb1e: n/m I'll post a Q on SO
<shevy> ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p484.tar.gz
<weeb1e> shevy: `./configure`, manually built the 4 extensions I need and then `make && sudo make install`
<shevy> you did not specify a --prefix? :(
<weeb1e> shevy: I did for this last attempt
<shevy> what was it
<shevy> and the source you used was this one: ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p484.tar.gz correct?
<weeb1e> ./configure --prefix=/home/admin/rubytest
LinearInterpol is now known as [li]|AoS
<weeb1e> No, it was the cache. url I pasted above, the one that https://www.ruby-lang.org/en/downloads/ links to
<shevy> perhaps it points to an old one but ok, I'll assume it's the same
<shevy> ok, configure has finished ... what next hmm
<shevy> you did issue "make" or something else?
<weeb1e> Well it says ruby-1.9.3-p484.tar.gz
<weeb1e> configure, then make
<weeb1e> then sudo make install
<shevy> ok I run "make" now
<weeb1e> `make` works fine for me
mccraig has joined #ruby
<shevy> this may take a few minutes
catphish has quit [Quit: Leaving]
gja has joined #ruby
johnyboy6000 has quit [Remote host closed the connection]
<shevy> my machine is not the super fastest
mccraig has left #ruby [#ruby]
<shevy> go grab a beer :-)
<weeb1e> I'm gonna grab ruby-1.9.3-p448.tar.gz from the last box I installed ruby on and try that so long
<weeb1e> Let me know how it goes for you
lfox has joined #ruby
<shevy> what did you do after "make" btw? directly "make install"? or did you try to extra-build some extensions manually (note, I think normally make will do that already... not 100% sure though)
<shevy> compiling thread.c
<shevy> compiling encoding.c
<shevy> dumdedum *twiddles thumb*
<weeb1e> Cannot grab a beer right now, still got tons to do tonight :(
SHyx0rmZ has quit [Ping timeout: 260 seconds]
<shevy> haha
mlpinit_ has joined #ruby
<weeb1e> shevy: I built the extentions before the first time I did `make`
<matti> weeb1e: Building now...
pipecloud has joined #ruby
<matti> weeb1e: ./configure --prefix=/tmp/test
<weeb1e> I have had then not build in the past, so I now build them manually each time
<matti> weeb1e: make -j2
<weeb1e> I must remember that
<weeb1e> I should be able to -j8
<weeb1e> This box has two CPUs each with 4 physical cores (hyperthreading off)
<matti> I have 7 yo notebook ;]
mlpinit has quit [Ping timeout: 260 seconds]
gja has quit [Client Quit]
<shevy> weeb1e odd
<weeb1e> Hehe
<shevy> weeb1e I would skip the manual creation of extensions part
<shevy> perhaps that step created some files that interfered somehow
<weeb1e> shevy: It could be because I didn't have the native libs installed with apt before I built
jhn has quit []
freerobby has quit [Quit: Leaving.]
<shevy> ok "make" is now at the last part ... "Generating RDoc documentation"
<weeb1e> But I recall recompiling after installing them was not sufficient to fix it
lethjakman has joined #ruby
<apeiros> weeb1e: iirc the recommendation is cores-1
<apeiros> so -j7
dapz has quit [Ping timeout: 245 seconds]
<shevy> well, debian/ubuntu modifies all sorts of things
jhn has joined #ruby
<weeb1e> apeiros: Yeah probably, though this box is idle until I get my software installed
<weeb1e> I guess the OS needs some CPU time for the filesystem and stuff though
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
olivier_bK has quit [Ping timeout: 246 seconds]
moted has quit [Quit: moted]
aspires has joined #ruby
moted has joined #ruby
<weeb1e> shevy: This is what I copy-paste for each new box, http://pastebin.com/bUg6YQGU
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lukec has quit [Quit: lukec]
<matti> weeb1e: make install
<matti> weeb1e: Done, no errors.
<weeb1e> with -j7, it built ridiculously fast :P
pwh has joined #ruby
<matti> krzysztof@samsung:~/ruby-1.9.3-p484$ /tmp/test/bin/ruby -v
<matti> ruby 1.9.3p484 (2013-11-22 revision 43786) [i686-linux]
<weeb1e> matti: Then I really don't know what to say
<weeb1e> Makes no sense
<shevy> weeb1e that does not tell me much, I just don't trust debian at all ;)
<weeb1e> I'll try install 448 as soon as its done with RDoc and see
<shevy> but these steps here:
<shevy> cd ext/zlib/ && ruby extconf.rb
<weeb1e> shevy: Absolutely all my boxes are debian (ubuntu and debian), and I've never had a problem
<shevy> they are 100% not necessary if you have a sane default system
axl_ has joined #ruby
<weeb1e> It may have also only been necessary on debian though, and I've just always done it on ubuntu too
<weeb1e> Either way, it was necessary somewhere along the line
postmodern has quit [Quit: Leaving]
Tamal has joined #ruby
<weeb1e> ruby-1.9.3-p448/lib/fileutils.rb:244:in `mkdir': File exists - /usr/local/lib/ruby/1.9.1/yaml (Errno::EEXIST)
<shevy> well you already use apt-get to install some things that are missing
<weeb1e> 448 does the same as 484
<weeb1e> So I am officially screwed.
<shevy> so the cd ext/* are not needed
<shevy> weeb1e I am not yet at "make install", but I have the feeling that it will work 100% for me ;)
<shevy> Generating code for file enc/trans/big5.c...
<shevy> dumdedum ...
<weeb1e> Sigh, then the only remaining factor is that this is a newer ubuntu 12.04 than any of my other boxes (it is 12.04.3)
Tamal has quit [Client Quit]
<weeb1e> So unless RVM screwed something very strange up, it has to be the version of ubuntu
klaut_ has quit [Remote host closed the connection]
<weeb1e> But the issue still doesn't make sense... How can `make install` create the directory twice?
<shevy> I keep on telling you, I think there is another error
<weeb1e> Well if you have any ideas on how I can debug this, I'm all ears
phipes has quit [Remote host closed the connection]
freerobby has joined #ruby
<weeb1e> I have wasted more time on this now than I have spent installing ruby 20 times in the past
tylersmith has joined #ruby
zeeraw has joined #ruby
cameronbarton has quit [Quit: cameronbarton]
<shevy> yeah a moment
joaoh82 has quit [Remote host closed the connection]
<weeb1e> Alternatively, maybe I should just rsync the entire 448 installation from another box
<shevy> I am at this here now
<shevy> Generating docs for file ext/ripper/ripper.c...
shime has joined #ruby
rm__ has joined #ruby
<shevy> I also keep on telling you that if it is only the gems you miss, then you can copy all .gem files from cache/ subdirectory, then batch-install them via "gem install", without dependency checking
mlpinit_ has quit [Remote host closed the connection]
<shevy> but
<shevy> I dont use bundler
<shevy> I just use "gem"
<shevy> Running dot for graph 285/503
<shevy> dumdedum ...
troyready has joined #ruby
<shevy> compiling ruby 1.8.3 was a lot more fun then 1.9.x and higher :(
soobus has joined #ruby
<shevy> *than
<mereghost> shevy: you have a twisted sense of fun. :p
ahmedelgabri has joined #ruby
<atmosx> compiling fun?
<atmosx> you'd love gentoo
<weeb1e> I'm not sure what you mean by that, I can't install ruby, gems are irrelevant at this point...
_aeris_ is now known as [_aeris_]
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
<shevy> FINALLY
<shevy> "make" has finished
<shevy> weeb1e, shall I try to build the extensions first, or should I run "make install" now?
<weeb1e> Just make install
relix has joined #ruby
<shevy> ok
tylersmi_ has joined #ruby
tylersmith has quit [Ping timeout: 252 seconds]
cameronbarton has joined #ruby
devdaz___ has joined #ruby
<shevy> weeb1e, all worked, no errors, output is at http://pastie.org/pastes/8597661/text - I will now verify that this ruby works, but I am pretty sure it works
ahmedelgabri has quit [Client Quit]
<shevy> irb starts up fine, I am quite sure that all is in order
<weeb1e> :(
Underbyte has quit [Quit: Linkinus - http://linkinus.com]
alexherbo2 has joined #ruby
<shevy> the configure line I used was "./configure --prefix=/home/admin/rubytest"
<weeb1e> Well then the only option I can think of is rsync the missing files from another slightly older ruby 1.9.3 installation
<shevy> I ran without sudo though
<shevy> but
<shevy> I am quite sure that with sudo it would also work
<weeb1e> Yeah, no difference there
flubba has joined #ruby
wereHams1er has quit [Changing host]
wereHams1er has joined #ruby
wereHams1er is now known as wereHamster
<shevy> weeb1e, that error you mentioned
Guest61011 has quit [Ping timeout: 245 seconds]
<shevy> when exactly did it occur?
<weeb1e> This is so annoying, since even if I hack it to work with rsync, I still won't know what the issue is
breakingthings has quit []
<shevy> I mean make must have done something
<weeb1e> I'll pastebin my output
Landshark753 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klaut has joined #ruby
breakingthings has joined #ruby
sepp2k1 has quit [Quit: Leaving.]
<shevy> so perhaps something failed during that stage
<shevy> and it somehow passes a bogus error message to you
ahmedelgabri has joined #ruby
Megtastique has joined #ruby
<shevy> or the manual extension building you did caused that
freerobby has quit [Quit: Leaving.]
baroquebobcat has joined #ruby
<shevy> well
sepp2k has joined #ruby
<shevy> this is the output you get when you used --prefix=/home/admin/rubytest" ?
<shevy> minus the " there
RaCx has quit [Quit: Computer has gone to sleep.]
<weeb1e> No, but the only difference for a prefix is that error path
<weeb1e> Same error
<shevy> ok so the error would be
ahmedelgabri_ has joined #ruby
freerobby has joined #ruby
<shevy> /home/admin/rubytest/local/lib/ruby/1.9.1/yaml
Eiam has joined #ruby
<weeb1e> ruby-1.9.3-p484/lib/fileutils.rb:244:in `mkdir': File exists - /home/admin/rubytest/lib/ruby/1.9.1/yaml (Errno::EEXIST)
<weeb1e> Copy pasted from the SSH session that I did that in
ambushsabre has quit [Quit: rip]
ahmedelgabri_ has quit [Client Quit]
adam has quit [Disconnected by services]
<Hanmac> weeb1e: i do still wonder why you try to build 1.9? isnt 2.1 released last month?
<weeb1e> shevy: I wonder what will happen if I just hack fileutils.rb to continue :P
adam_ has joined #ruby
Neomex has joined #ruby
gasbakid has quit [Read error: Connection reset by peer]
<weeb1e> Hanmac: I don't have the time to test and make my large platforms compatible with 2.0
<weeb1e> They rely on tons of gems and do some pretty complex and hacky things
pzula has joined #ruby
<Hanmac> or in other words: "rails shit"
<weeb1e> I did use 2.0 for my newest project at least, but that is just for 1 application of 3 which makes up a single web app
<weeb1e> Hanmac: I have never used rails for a personal project, even though I learnt it at the same time as ruby
rm__ has quit [Remote host closed the connection]
lukec has joined #ruby
<weeb1e> I use ActiveSupport and AR when I work with legacy MySQL DBs, but that's all
fijimunkii has joined #ruby
<weeb1e> Web stuff is all sinatra, websockets, haml, coffeescript
* Hanmac splits at ActiveSupport
<terrellt> You splitted at it?
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
brennanMKE has joined #ruby
<weeb1e> Hanmac: Don't do that, even though I don't use tons of AS features, I use enough to be worth including in pretty much every application I build. It provides many convenient helpers
devdaz___ has quit [Quit: Bye]
subbyyy_ has joined #ruby
<weeb1e> A few months ago I actually went through most of the AS features I use in this channel when it was under discussion
<Hanmac> after so many years, activesupport still doesnt do the human file size correct
devdaze__ has joined #ruby
<weeb1e> I ended up realizing I use more than I thought I did, and even realized a few things were AS that I thought were part of ruby
devdaze__ has quit [Client Quit]
<weeb1e> That is one thing I have not used, I actually have my own helper for that
lyanchih has quit [Quit: lyanchih]
<Hanmac> "and even realized a few things were AS that I thought were part of ruby" <<< and thats exactly my problem with rails/AS users
<weeb1e> When I say a few things, I mean like 2...
<Hanmac> weeb1e: "That is one thing I have not used, I actually have my own helper for that" let me guess for you 1KB = 1024B right?
<weeb1e> I am pretty damn familiar with ruby and the libraries I use
Virtualize has quit [Read error: Connection reset by peer]
Virtualize|away has joined #ruby
<weeb1e> Yeah, of course, why?
RaCx has joined #ruby
<Hanmac> since more than 10 years its wrong
<weeb1e> In AS? That is pretty sad
<Hanmac> and in AS, it was never right
devdaz___ has joined #ruby
devdazed has quit [Quit: Bye]
devdaz___ has quit [Client Quit]
<terrellt> Lol, kibibyte.
<shevy> weeb1e you could try that, modify fileutils.rb and see what changes
rdark has quit [Quit: leaving]
LadyRainicorn has quit [Quit: Bye]
smathieu has joined #ruby
devdazed has joined #ruby
mlpinit has joined #ruby
mehlah has quit [Quit: Leaving...]
rm__ has joined #ruby
ae-r has joined #ruby
carraroj has joined #ruby
stkowski_ has joined #ruby
troessner has quit [Quit: Leaving]
millerti has joined #ruby
roolo has quit [Remote host closed the connection]
<weeb1e> shevy: I rescued from the mkdir printing a warning and now I get this:
<weeb1e> mkdir failed! (warning)
<weeb1e> /home/admin/ruby-1.9.3-p484/lib/fileutils.rb:1371:in `initialize': Not a directory - /usr/local/lib/ruby/1.9.1/yaml/store.rb (Errno::ENOTDIR)
mlpinit has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
VTLob has joined #ruby
<weeb1e> Which makes no more sense, clearly
ae-r has quit [Remote host closed the connection]
mlpinit has joined #ruby
relix has joined #ruby
OdNairy has quit [Ping timeout: 240 seconds]
magoo has joined #ruby
joaoh82 has joined #ruby
OdNairy has joined #ruby
rehat has quit [Remote host closed the connection]
dscrd has joined #ruby
gja has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo_ has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
jarjar_prime has joined #ruby
iamjarvo has joined #ruby
rm__ has quit [Remote host closed the connection]
<mereghost> something seems really FUBAR'd on your system, weeb1e.
gja has quit [Client Quit]
abra has joined #ruby
joaoh82 has quit [Ping timeout: 245 seconds]
madb055 has joined #ruby
[li]|AoS is now known as LinearInterpol
Mars has joined #ruby
Mars is now known as Guest4224
dscrd has quit [Quit: .]
iamjarvo has quit [Ping timeout: 252 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
jameshyde has joined #ruby
jameshyde has quit [Max SendQ exceeded]
nanoyak has joined #ruby
jameshyde has joined #ruby
w4pm has joined #ruby
<havenwood> weeb1e: just an aside, but make sure you've not got apt-get rvm installed: sudo apt-get purge ruby-rvm
<weeb1e> havenwood: I never used apt-get to install it
<havenwood> weeb1e: good ;)
ebobby has joined #ruby
<weeb1e> But I did rm ~/.rvm after imploding it
carraroj has quit [Ping timeout: 272 seconds]
<havenwood> that is fine
<havenwood> weeb1e: what version of gcc?
zxd has joined #ruby
<weeb1e> mereghost: This was a brand new system a few hours ago, so if it isn't Ubuntu 12.04.3's fault, it must be RVM that broke the whole system
<weeb1e> havenwood: gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
<havenwood> weeb1e: that should be fine, 4.2-4.8 for 1.9.3
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
[_aeris_] is now known as _aeris_
gja has joined #ruby
Bumptiou_ has quit [Ping timeout: 240 seconds]
zzak_ has joined #ruby
Bumptious has joined #ruby
alex88 has quit [Quit: Leaving...]
jameshyde has quit [Ping timeout: 272 seconds]
<shevy> weeb1e yeah not sure there... hmm
flubba has quit [Remote host closed the connection]
dima_ has joined #ruby
zxd has quit [Ping timeout: 272 seconds]
cameronbarton has quit [Quit: cameronbarton]
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
guilund has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
* weeb1e is very sad
cameronbarton has joined #ruby
kalelsage has joined #ruby
<shevy> weeb1e I think there must be a reason why it does not work on your system
millerti has quit [Quit: millerti]
tejas has joined #ruby
<weeb1e> Sure, but finding the issue is a completely different story :(
<weeb1e> Now my options are: a) rsync from an already installed ruby on another box. b) Install RVM again and try get rvmsudo to use root ulimits
sambao21 has quit [Quit: Computer has gone to sleep.]
gja has quit [Ping timeout: 246 seconds]
<pontiki> do you need rvm?
mneorr has joined #ruby
cbetta is now known as cbetta_afk
<weeb1e> No, but I cannot install ruby without it
TheDick has joined #ruby
<havenwood> weeb1e: ubuntu 12.04 x86_64 with ruby-1.9.3-p484 is your goal?
tejas has quit [Read error: Connection reset by peer]
klcant102 has quit []
<weeb1e> havenwood: Yes, 12.04.3 specifically
interactionjaxsn has quit [Remote host closed the connection]
CaptainJet has joined #ruby
peneconleche has joined #ruby
arietis has joined #ruby
tedstriker has quit [Quit: Anti-Fraping status set.]
<havenwood> weeb1e: mpapis does have a prebuilt binary for that setup: https://rvm.io/binaries/ubuntu/12.04/x86_64/ruby-1.9.3-p484.tar.bz2
interactionjaxsn has joined #ruby
wallerdev has quit [Quit: wallerdev]
<havenwood> weeb1e: might try #rvm, hrm
dann_ has joined #ruby
jhn has quit []
<weeb1e> I've already spoken to him
jhn has joined #ruby
<havenwood> weeb1e: ah
<weeb1e> He has no idea why I am experiencing either of my issues
<havenwood> weeb1e: neither do i
mfoo has quit [Quit: Leaving]
<weeb1e> But I am about to give up for today
tedstriker has joined #ruby
w4pm has quit [Ping timeout: 245 seconds]
<weeb1e> I have wasted too much time, been awake since very early and the heat is still killing me slowly
<havenwood> weeb1e: I've had good luck with ruby-install/chruby on debian, keeps it simple. ;)
<pontiki> have you tried just compiling the source?
<weeb1e> I suppose I could try just manually install that binary package
<havenwood> weeb1e: good luck!
<havenwood> weeb1e: yeah, the binary is prolly what i'd try
<weeb1e> pontiki: Only for the past 3 hours
<pontiki> withOUT rvm
<apeiros> weeb1e: heat? move over here. you'll have nothing of that.
<mereghost> later folks. The pub is calling.
<shevy> hehehe
<weeb1e> pontiki: Only for the past 2.5 hours
mereghost has left #ruby ["Pub time!"]
<havenwood> pontiki: he started with RVM, then things got wild
<pontiki> huh
<pontiki> i do it alla time
<apeiros> pub… oh my, that reminds me that my stash has run dry :(
<weeb1e> apeiros: Would be ideal, Global Warming will be the end of me
<shevy> pontiki it fails during make install, with a bogus report that a directory already exists
<havenwood> pontiki: multi-user install of rvm, then rvm implode, then build
<weeb1e> pontiki: Yeah yeah, no one can reproduce my issue, tell me what is causing it or how to fix it
<havenwood> pontiki: i dunno what the issue is
<shevy> weeb1e teaches you to rely on things other people compiled for you ;)
<weeb1e> I have installed 1.9.3 on 15 boxes in the past
<pontiki> i do it on a clean box alla time tho, no intermediary rvm thing
<shevy> but to be honest weeb1e
wallerdev has joined #ruby
<shevy> weeb1e I think that even on a default ubuntu install, I can compile ruby cleanly
<shevy> in fact, I just did that on my laptop :-)
<havenwood> shevy: for sure on a standard ubuntu box it works fine
<shevy> yeah
<weeb1e> shevy: In this case, it really doesn't, if I could compile this from source, I would have already :(
<shevy> weeb1e something you did is odd
w4pm has joined #ruby
rm__ has joined #ruby
<shevy> weeb1e but I just did on ubuntu!!!
<shevy> psych was not available, readline
<shevy> but other than those two, all worked so far
<shevy> (ok perhaps zlib will also fails at run-time, but I will recompile zlib lateron)
dann_ has quit [Ping timeout: 272 seconds]
<weeb1e> apeiros: I think stash has a different meaning over here :P
<shevy> psych/libyaml I just compiled, now I recompile ruby again. I am 99,9999% sure that it will work though
interactionjaxsn has quit [Ping timeout: 272 seconds]
jhn has quit []
SHyx0rmZ has joined #ruby
<havenwood> shevy: If you want everything working: sudo apt-get install -y build-essential libffi-dev libgdbm-dev libncurses5-dev libreadline-dev libssl-dev libyaml-dev zlib1g-dev
<apeiros> weeb1e: can't be used to mean where you store your alcoholic beverages?
<havenwood> `make --jobs` for speeeed!
<weeb1e> First step for installing ruby on a new box for me is: sudo apt-get install libedit-dev libssl-dev libyaml-dev
<shevy> weeb1e see, add what havenwood just pasted too
<weeb1e> apeiros: Not too commonly at least
<shevy> but I am beginning to believe, even if you do all that, you will run into the same error. I think you must have done something else to your system
Speed has joined #ruby
<weeb1e> apeiros: More common meaning would be closer to something like medical marijuana :P
<shevy> wow that's a long list pontiki
<shevy> tcl-dev
<shevy> tk-dev
<shevy> !
<shevy> do you use ruby-tk pontiki
<pontiki> like, once
Bumptiou_ has joined #ruby
Bumptious has quit [Ping timeout: 240 seconds]
<weeb1e> TK is too limited, every other GUI framework is too bloated
brianpWins has quit [Quit: brianpWins]
<weeb1e> GUI stuff is just terrible, I ended up building a separate GUI front end and IPC for my only ever GUI ruby app
mosez is now known as hipone
<pontiki> i decided i was only going to do web apps
mehlah has joined #ruby
<pontiki> more common interface
<weeb1e> I have always done that, but for that specific app (something very similar to dropbox), desktop GUI and specifically a tray icon + balloon notifications were needed
Brolen has quit [Quit: Brolen]
rm__ has quit [Remote host closed the connection]
<havenwood> hmm, i guess we can remove libncurses5-dev as an apt dependency for 2.1+
hipone is now known as mosez
Yarou has quit [Quit: This computer has gone to sleep]
<apeiros> weeb1e: well, that part of my stash started out dry, doesn't mean I have nothing :D
rm__ has joined #ruby
<weeb1e> apeiros: Haha
axl_ has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fantazo has quit [Ping timeout: 245 seconds]
tyl has joined #ruby
kalelsage has quit [Quit: ThrashIRC v2.9 sic populo comunicated]
meatherly has quit [Remote host closed the connection]
mrfoto has quit []
<Eiam> i thought it was your git stash =0
<shevy> weeb1e ok so the good news is - on ubuntu we can compile ruby just fine and everything works well
pushpak has joined #ruby
<weeb1e> shevy: That would be bad news for me :P
<shevy> no, it means that it is possible! that is good news
chomskiii has quit [Ping timeout: 245 seconds]
<weeb1e> But impossible for anyone to reproduce my issues
w4pm has quit [Ping timeout: 246 seconds]
<shevy> hmm
<shevy> but ruby used to work on the very same machine before, right weeb1e?
<weeb1e> It is seeming rather likely that RVM broke my system, in some extremely strange way
marr has quit [Ping timeout: 272 seconds]
<shevy> no idea, I don't use RVM myself
shadoi has joined #ruby
<weeb1e> I installed ruby with RVM before trying to install system ruby, which was clearly a mistake
<shevy> perhaps bundler installed a gem that modified thingies :>
teddyp1c_ has joined #ruby
ae-r has joined #ruby
<shevy> but if you have more than machine, actually, you could just compile on that other machine and copy the binaries/files to that other machine
<shevy> *more than one machine
<weeb1e> RVM just seemed like a good option, since I had a good experience using it when I installed 2.0 on one of my boxes recently
<shevy> RVM normally works too
<shevy> I think the best you can do is to start from scratch and watch closely when, where and how this mysterious error emerges
<weeb1e> Yeah, but havenwood linked me to RVM's binary package, so I'm just gonna manually install that
Yarou has joined #ruby
<shevy> \o/
<weeb1e> Should be good enough
<shevy> havenwood to the rescue
* havenwood flees!
<weeb1e> And "starting from scratch" isn't really an option
<shevy> I always knew he should have been called heavenwood
mojjojo has joined #ruby
<shevy> pfffft
<weeb1e> Since I have no physical or remote KVM access to this box
<shevy> people need to build more linux from scratch
mrfoto has joined #ruby
<weeb1e> The OS is staying
lewix has joined #ruby
<shevy> something is bugged with that box!
teddyp1cker has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]
<shevy> one day you'll find out what it was :)
chomskiii has joined #ruby
<weeb1e> I'd love to know, more than just working around the issue
<weeb1e> It is a pretty strange issue
w4pm has joined #ruby
meatherly has joined #ruby
teddyp1c_ has quit [Ping timeout: 252 seconds]
mneorr has quit [Remote host closed the connection]
teddyp1c_ has joined #ruby
mneorr has joined #ruby
DrShoggoth has quit [Remote host closed the connection]
includex has quit [Ping timeout: 260 seconds]
millerti has joined #ruby
ae-r has quit [Remote host closed the connection]
relix has joined #ruby
bean has joined #ruby
phipes has joined #ruby
lewix has quit [Remote host closed the connection]
ddd has quit [Quit: KERNEL REBOOT: Updating kernel due to security updates. bbs]
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
stkowski_ has quit [Quit: stkowski_]
iamjarvo has joined #ruby
cameronbarton has quit [Quit: cameronbarton]
ddd has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
dzan has quit [Remote host closed the connection]
dima_ has quit [Remote host closed the connection]
burlyscudd has joined #ruby
sambao21 has joined #ruby
reset has joined #ruby
Bumptious has joined #ruby
phipes has quit [Ping timeout: 245 seconds]
Bumptiou_ has quit [Ping timeout: 240 seconds]
cameronbarton has joined #ruby
colonolGron has joined #ruby
dann_ has joined #ruby
specious has quit [Ping timeout: 265 seconds]
meatherly has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
meatherly has joined #ruby
sambao21 has quit [Client Quit]
flubba has joined #ruby
specious has joined #ruby
RaCx has joined #ruby
iamjarvo has quit [Remote host closed the connection]
lewix has joined #ruby
tylersmi_ has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
bricker`1way has joined #ruby
tylersmith has joined #ruby
bricker`1way is now known as bricker
dogweather has joined #ruby
dogweather has quit [Remote host closed the connection]
Bumptiou_ has joined #ruby
dogweather has joined #ruby
Xeago has quit [Remote host closed the connection]
hamed_r has quit [Quit: Ex-Chat]
<shevy> yeah
Xeago has joined #ruby
bricker`away has quit [Ping timeout: 260 seconds]
Bumptious has quit [Ping timeout: 240 seconds]
senj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mbytes has joined #ruby
joaoh82 has joined #ruby
dpswireless has quit [Remote host closed the connection]
agjacome has joined #ruby
ninegrid has quit [Quit: leaving]
ninegrid has joined #ruby
iamjarvo has quit [Ping timeout: 260 seconds]
smathieu_ has joined #ruby
smathieu has quit [Ping timeout: 245 seconds]
Sawbones has quit [Ping timeout: 245 seconds]
rootshift has joined #ruby
cascalheira has quit [Quit: Leaving...]
Xeago has quit [Ping timeout: 245 seconds]
<dann_> hey if i have a class named Klass where #initialize is just @var = yield
joaoh82 has quit [Ping timeout: 260 seconds]
<dann_> do i initialize it like Klass.new do (block) end?
mneorr_ has joined #ruby
colonolGron has quit [Quit: Lost terminal]
krz has quit [Quit: WeeChat 0.4.2]
cj3kim has joined #ruby
dzan has joined #ruby
havenwood has joined #ruby
Asher has quit [Quit: Leaving.]
kcombs has quit [Remote host closed the connection]
<apeiros> dann_: yes
<dann_> ah
<apeiros> dann_: also: pry or irb
<apeiros> can easily be used to verify an idea ;-)
jameshyde has joined #ruby
FifthWork is now known as FifthLunch
<dann_> irb
<dann_> I have pry on me though
peneconleche has quit [Quit: Leaving...]
<dann_> apeiros: what idea then?
shadoi has quit [Quit: Leaving.]
<apeiros> 20:13 dann_: do i initialize it like Klass.new do (block) end?
<apeiros> your own
breakingthings has quit []
kep has quit [Quit: WeeChat 0.4.2]
rootshift has quit [Quit: rootshift]
mneorr has quit [Ping timeout: 272 seconds]
bentonrr_ has joined #ruby
dogweather has quit [Remote host closed the connection]
cameronbarton has quit [Quit: cameronbarton]
<pipecloud> dann_: Give it a try.
madb055 has quit [Ping timeout: 272 seconds]
<dann_> http://puu.sh/68hZd.png "@var=nil"
<apeiros> omgwhyyyy?
<dann_> what am I doing wrong here? the do..end notation?
<dann_> I'm on 1.9.3 btw
digifiv5e has quit [Quit: quit]
<apeiros> why would *any sane person* paste code as a freaking IMAGE?!?
<wmoxam> lol
<apeiros> I NO CAN HAS UNDERSTAND!
<wmoxam> dann_: gist.github.com
<wmoxam> ;)
<dann_> yes thanks, i've never used the internet before xoxo
<Hanmac> apeiros: what about a scene shot with a camera from an image of the code? ;D
lfox has quit [Quit: ZZZzzz…]
<wmoxam> dann_: obvsly
<apeiros> dann_: puts returns nil
<dann_> better yet, let me do that to the screenshot
<apeiros> hence the block returns nil
<apeiros> wmoxam: and now he'll gist the image…
jameshyde has quit [Ping timeout: 260 seconds]
<havenwood> i'm gunna start pasting screenshots of my gists
bentonrr has quit [Ping timeout: 252 seconds]
<wmoxam> apeiros: lol
<wmoxam> I hope so
<apeiros> havenwood: make sure you take a screen capture of that process which you then post on vimeo
<dann_> then screenshot the URL
<apeiros> I'll post my next problem as a soundfile
<dann_> I want an MD5 of it before I open it
* apeiros wonders how to capture the output of the `say` command line command
centipedefarmer has quit [Read error: Connection reset by peer]
cj3kim has quit [Ping timeout: 265 seconds]
centipedefarmer has joined #ruby
<havenwood> apeiros: -o say.wav
<apeiros> oooh
<Eiam> ffffff that'll be awful
<apeiros> nice one!
croaky has quit [Ping timeout: 246 seconds]
<dann_> can I do proc yield?
<dann_> @var = proc yield ?
mneorr_ has quit [Remote host closed the connection]
<apeiros> did you try in irb?
Al__ has quit [Quit: Al__]
<dann_> doing it rn
<havenwood> eww, nvm with wav, mp4 :P
mneorr has joined #ruby
<dann_> ^FLAC
<havenwood> it doesn't infer file format from wav
<Hanmac> dann_ the problem is the "puts" in the block
<dann_> I want @var to be a Proc of the code block I feed the class
<dann_> Hanmac: how so
<havenwood> dann_: flac works nicely ;)
<apeiros> dann_: def initialize(&block) @foo = block; end
ferr has joined #ruby
<apeiros> apple has its own lossless format, I think they prefer that over flac
end_guy has quit [Ping timeout: 240 seconds]
<havenwood> -o out.aiff, --output-file=file
FifthLunch has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mneorr_ has joined #ruby
<dann_> apeiros: thanks
<havenwood> "AIFF is the default and should be supported for most voices..."
cameronbarton has joined #ruby
<havenwood> yup
<ferr> hi. Should I read "Learn Ruby the hard way" or "Programming Ruby 1.9 & 2.0" as a newbie?
mary5030_ has joined #ruby
<havenwood> ferr: Programming Ruby
<dann_> ferr: how virile are you
mneorr has quit [Ping timeout: 245 seconds]
tt1187 has quit [Ping timeout: 246 seconds]
<shevy> ferr the best way is to start to write ruby code as soon as possible yourself
<havenwood> ferr: for those new to programming, i've heard high praise for Learn to Program by Chris Pine (which is Ruby)
<shevy> yeah
hiall has quit [Ping timeout: 245 seconds]
<wmoxam> the best way depends on experience with other languages :p
tedstriker has quit [Quit: Anti-Fraping status set.]
<ferr> I have no prior experiences except pascal at school years ago
endash has joined #ruby
wang has joined #ruby
<shevy> Learn to Program gave a good introduction. it's a bit old now but very simple, go read it first ferr, you can finish it in I'd say 1-2 hours easily, especially if you skip the homework examples it gives you
frx has quit []
<shevy> ferr most of the scripting languages (perl python ruby php) are really in essence rather similar, I mean the basics. most use functions/methods, most offer some way to OOP too
mrfoto has quit []
<dann_> ferr: rubymonk.com
RaCx has quit [Quit: Computer has gone to sleep.]
<shevy> I had one year of pascal too :)
<shevy> I was very proud...
tedstriker has joined #ruby
<shevy> (in school)
includex has joined #ruby
<ferr> lol
frx has joined #ruby
<ferr> thanks for your advices
<shevy> we calculated the area of rectangles and circles
lewix_ has joined #ruby
mary5030 has quit [Ping timeout: 264 seconds]
<havenwood> ferr: Learn Ruby the Hard Way reads like a bad port of Python code to Ruby.
hakanensari has joined #ruby
<dann_> shevy: in a whole year
<shevy> I think that's about all I can remember from that
<shevy> dann_ yeah
vlad_starkov has quit [Remote host closed the connection]
brianpWins has joined #ruby
<apeiros> havenwood: odd. the author of it started out with ruby.
<havenwood> ferr: Probably easy for a Python programmer to get, but often not idiomatic Ruby.
<dann_> outstanding
<shevy> dann_ it was only 1 hour in a week... 30 minutes was done by the prof speaking about shit and I was sleeping during that
<havenwood> apeiros: for loops, etc :O
<dann_> ewww for
<shevy> dann_ and walking to the PC rooms took +5 minutes too hehe
<apeiros> havenwood: I didn't say I don't believe you :)
<ferr> ok so Learn to program by Chris Pine and then to Programming Ruby?
<apeiros> havenwood: I just find it odd, that it is that way. given the circumstances.
<shevy> ferr yeah but! remember to start writing on your own as soon as possible!
Neomex has quit [Quit: Neomex]
<dann_> ferr: again, take a look at http://rubymonk.com
<ferr> Ok
<shevy> add rubymonk.com on third position ferr
<shevy> start with chris pine
<ferr> It doesn't matter if Chris Pine is outdated?
pythys has joined #ruby
iamjarvo has joined #ruby
<dann_> shevy is right, and rubymonk is pretty much just practical learning
sharms has quit [Ping timeout: 240 seconds]
maestro` has joined #ruby
<maestro`> is ruby a functional programming language?
Bumptious has joined #ruby
<pythys> hello everyone. I am having some difficulty installing any packages with gem. I get error messages like this -> ERROR: While generating documentation for bundle-0.0.1
<havenwood> maestro`: functional training wheels
vlad_starkov has joined #ruby
<ferr> thanks for your support
<ferr> see you later
<dann_> pythys: try gem update rdoc
<shevy> ferr well it does not matter
<pythys> I am running as root, so I exclude the permission issue
colonolGron has joined #ruby
<shevy> ferr just keep it in mind
Pixels has joined #ruby
Xeago has joined #ruby
<shevy> ferr it is not 100% the latest and greatest, ruby 2.1.1 added new things compared to that. I think chris pine does not mention lambda operator ->
<ferr> start writing as soon as possible - I got it
<shevy> but
<shevy> start simple
<havenwood> maestro`: but mixed-paradigm, certainly not purely functional but dips its toes in the pond
<shevy> you learn everything at a later point anyway. good luck
hakanensari has quit [Client Quit]
Bumptiou_ has quit [Ping timeout: 240 seconds]
<ferr> ty
<pythys> dann_: "nothing to update"
<maestro`> havenwood not to start a flamewar, but is it leaning more toward functional programming side than python?
<shevy> pythys is that really a gem? bundle-0.0.1
gja has joined #ruby
<pythys> shevy: I am just issuing the command gem install bundle
iamjarvo has quit [Read error: Connection reset by peer]
grep_awesome is now known as grep_away
<shevy> no
<pythys> am I supposed to explicitly specify the version?
<shevy> pythys that seems wrong
<shevy> you get a list there if you visit it
<shevy> the first result states this:
<shevy> "You really mean `gem install bundler`. It's okay. I'll fix it for you this one last time..."
<shevy> so I am quite sure, you should have used "gem install bundler" instead
<havenwood> maestro`: Ruby has lazy enumerator, etc and a nice functional style. More so than Python I think but I'm no Python expert.
<shevy> the gem is bundler, the binary/file to invoke things usually are: bundle foo bla
<pythys> shevy: sounds great, thank you!
cj3kim has joined #ruby
sarcher has left #ruby [#ruby]
<shevy> pythys, you can search for gems on rubygems.org - see at bundler here https://rubygems.org/gems/bundler, you can see release versions + date. For instance: 1.5.1 December 28, 2013 (278 KB)
subbyyy_ has quit [Ping timeout: 252 seconds]
<shevy> so the last release was only like ~5 or 6 days ago
<havenwood> maestro`: Ruby 2.1 has an immutable string literal, there are some great gems like atomic etc.
grep_away is now known as grep_awesome
Xeago has quit [Ping timeout: 252 seconds]
burlyscudd has quit [Read error: Connection reset by peer]
sharms has joined #ruby
iamjarvo has joined #ruby
burlyscudd has joined #ruby
<havenwood> maestro`: I think more Rubyists get into functional languages like Clojure than do Pythonistas, but I really have nothing to back that up but a hunch.
<pythys> shevy: I have a problem here. If I issue gem install bundler, I do not get the bundle command, which is needed for the installation of my package
ferr has left #ruby [#ruby]
<shevy> hmm
strax has joined #ruby
<havenwood> maestro`: Then again, maybe more Python folk than I realize are fans of Haskell/ML?
<shevy> I remember I had that problem as well
<shevy> pythys I dont know how I fixed it, I think I once did gem install rails, and bundler was downloaded, and then worked back then
<maestro`> havenwood i have no idea :). just deciding what to learn between python and ruby
<shevy> pythys there should be a channel called #bundler
iamjarvo_ has joined #ruby
<havenwood> maestro`: Learn Ruby.
<dann_> try gem remove bundler
<shevy> 51 people are there
<shevy> dann_ hehehe
<dann_> and then gem install bundler -f
<havenwood> maestro`: Ruby has such a nice Lisp and Functional underpinning, great language to branch out from.
<dann_> i /think/ it's -f to force the install
cameronbarton has quit [Quit: cameronbarton]
<maestro`> havenwood ah i see, interesting
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
end_guy has joined #ruby
michael_mbp has quit [Excess Flood]
cameronbarton has joined #ruby
sambao21 has joined #ruby
<maestro`> what ruby tutorial is usually recommended for beginners?
kirun has joined #ruby
<havenwood> maestro`: A nice start is tryruby: http://tryruby.org/
michael_mbp has joined #ruby
<wmoxam> havenwood: it's also a nice Smalltalk without having to be trapped in an insular environment
lewix has quit [Remote host closed the connection]
dpswireless has joined #ruby
nobitanobi has joined #ruby
<maestro`> thanks!
<havenwood> wmoxam: for sure!
<pythys> dann_: no good, bundle is still not installed
<pythys> I am on gem version 1.8.15
breakingthings has joined #ruby
<wmoxam> I tried to do something useful in Squeak last night
<pythys> which comes by default with ubuntu precise
<wmoxam> failed :(
<dann_> pythys: did you do gem install bundle -f
lewix_ is now known as lewix
lewix has quit [Changing host]
lewix has joined #ruby
iamjarvo has quit [Ping timeout: 265 seconds]
<havenwood> pythys: I was going to say `gem update --system` but debian....
gja has quit [Quit: This computer has gone to sleep]
<dann_> «[18:42] <dann_> and then gem install bundler -f» uh
<pythys> dann_: same error as before
agent_white has joined #ruby
<pythys> havenwood: yes, it's proving to be a harsh development environment
<dann_> pythys: you can reinstall gem
<pythys> dann_: very much doubt that's a solution, I'll give it a try (did before)
<havenwood> pythys: I usually just install Ruby with ruby-install and switch with chruby on debian rather than messing with apt-get and update-alternatives due to poor debian packing choices (imho)
mojjojo has quit [Quit: mojjojo]
<havenwood> s/packing/ruby-packaging
<havenwood> pythys: I want a *real* RubyGems that can update itself. And one that doesn't require sudo...!
Virtualize|away has quit [Quit: Leaving...]
interactionjaxsn has joined #ruby
<agent_white> Afternooon folks
Guest35909 has quit [Remote host closed the connection]
malkomalko has joined #ruby
<Mon_Ouie> You can always ask rubygems to install in your home directory (with --user-install)
<wmoxam> havenwood: mine doesn't require sudo ....
<wmoxam> :p
<apeiros> mine defaults to user-install
<havenwood> i haven't given it a try recently :P
<pythys> havenwood: is that rvm? because that thing failed too
<havenwood> pythys: different tools that accomplish the same thing roughly
<dann_> pythys: http://puu.sh/68jV6.png
<dann_> gem install bundler
cj3kim has quit [Read error: Connection reset by peer]
axl_ has left #ruby [#ruby]
Asher has joined #ruby
<pythys> dann_: I read that already
<havenwood> pythys: RVM ought work as well but is a much more complicated tool, weighing in at tens of thousands of lines of code not hundreds.
<dann_> well I'm out of ideas
<havenwood> pythys: But the apt-get version of RVM is poison.
<pythys> havenwood: I can't find ruby-install results on google. What is that?
burlyscudd has quit [Quit: Leaving.]
DrShoggoth has joined #ruby
<havenwood> pythys: pasted link a few lines above ^, it is a very simple tool to install Ruby dependencies with your system package manager, then download and compile Ruby
<havenwood> pythys: Just automates a simple proper build of Ruby.
<pythys> god damn, I've to unpack configure make make install!
vlad_starkov has quit [Remote host closed the connection]
<havenwood> hehe
DrShoggoth has quit [Max SendQ exceeded]
devdazed has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
DrShoggoth has joined #ruby
devdazed has joined #ruby
pagios has quit [Remote host closed the connection]
<shevy> pythys there is always pain
simoz9 has joined #ruby
<shevy> either you use distribution-specific tools but then you are at the mercy of what that distribution gives you
<bricker> I know Ruby doesn't have hard "interfaces" (in the Java sense), but the pattern is useful. What do you guys do when you make a module that depends on certain methods in the base class? Just document it really well? That's what I do but I wonder if there's any use to actually checking that the interface requirements are met in the `included` hook.
<shevy> or you dig into the core, compile from source, which may have less issues, but may take more of your time (and possibly more knowledge of what you do)
FifthWork has joined #ruby
<shevy> things like rvm, ruby-install etc... are somewhere in the middle of these extremes
<IceDragon> >.> did someone say compile ruby?
<IceDragon> I've been doing that for the past week... ;x
<bricker> So rather than getting "undefined method" errors, you get a clear error: "You must define the xxx method to use this module."
<shevy> bricker I dunno, I found throwing things into modules is usually best
<shevy> bricker and I dont often subclass
carraroj has joined #ruby
<pythys> shevy: rvm crashed, ruby-install is not even showing in my results
<shevy> pythys hey, I am not recommending any of that! just saying. I compile everything from source myself
<IceDragon> bricker: you could define a method on Module : abstract which would raise an error unless its overwritten
<havenwood> pythys: ruby-install is should be the top result in google if you search for `ruby-install` ;P
<shevy> bricker interesting
<IceDragon> abstract :redefine_me
<shevy> bricker don't think I yet had that... hmmm
dogweather has joined #ruby
<pythys> shevy: yeah, now I have to download all those dependencies and go through a tear inducing process
<shevy> bricker that's some extra method signature you basically want to use there in a module right?
<pythys> wow, I did not expect this to be so bitter tasting
<havenwood> shevy: compiling from source makes sense, but if you don't want to do research ruby-install does it for you
Kar- has joined #ruby
<bricker> IceDragon: Yeah, that's what I mean - like Java's @Override. That's trivial to do, but I wonder if it goes against Ruby's core philosophy or some BS like that. I've never seen an example in the wild of interface enforcement in Ruby.
<havenwood> pythys: you got bit by debian ;P
<havenwood> pythys: Fedora or Arch etc have a great default install.
senj has joined #ruby
<shevy> pythys I know! going the "compile everything from source" was painful in the beginning but nowadays it's better than the alternatives. I do: "ue url-to-program-path", then ruby compiles all for me. that's the only thing I have to do basically these days
<IceDragon> bricker: ruby is intended to be dynamic and ever changing so its expected.
lfox has joined #ruby
<fbernier> Is it possible to specify the file permission upon creation of a TempFile ?
<pythys> shevy: what if you mess-up the compilation, do you know which directories to clean up?
<shevy> pythys I also have to keep archives for local backups. so I have all of qt gtk glibc gcc etc...
<IceDragon> Arch is so simple: pacman -S ruby
<IceDragon> :P
<havenwood> IceDragon: And latest Ruby patch release <3
<shevy> pythys that depends. I recommend gobolinux-style installation - everything is compiled into versioned appdir-like structure
<IceDragon> <3
nisstyre has joined #ruby
<pythys> you're kidding! that's another learning curve
<shevy> pythys in that case, uninstalling is as simple as removing that directory. and you can have different versions side by side (but only one active at any given time. gobolinux uses symlinks for that, nixOS kinda does too but they additionally use hash-tag named directories)
nanoyak has quit [Quit: Computer has gone to sleep.]
<shevy> pythys yeah
<shevy> pythys so you are back to have to use what the distribution maintainers give you :)
<shevy> never abandon their path!
<shevy> weeb1e tried today and failed ;)
<havenwood> even if it leads to madness...
<shevy> indeed!
<pythys> sigh
<shevy> pythys you can take the blue pill or the red pill
<shevy> or you give up, say "screw all of that" and just drink beer
<ddd> with tequila chasers
<pythys> dude, this is frustrating. A programming language and its eco-system should not be such a bitch to tweak
<ddd> pythys: the ecosystem will be. it has a life of its own
<ddd> the language not so much
<agent_white> If you got it right the first time you'd learn nothing
<ddd> well it has a life of its own, but its usually one amenable to changes. the community isn't
drumusician has joined #ruby
<pythys> agent_white: dude, fuck learning! I want to get my application fired up
brian_____ has joined #ruby
<havenwood> pythys: There are several nice options, depending on your preferences for tools. But Debian's Ruby package is notoriously problematic.
<agent_white> pythys: ;D
<havenwood> pythys: ruby-install/chruby, RVM or ruby-build/rbenv should do the job nicely
Hanmac1 has joined #ruby
<shevy> pythys oh it is not for me at all!
<brian_____> can someone help me out here? im trying to spin up a rails app (v 2.1.1) and running ruby 1.8.7-p371. when i try to reload my generators i keep getting this error: Missing these required gems: firebase. but firebase gem is installed
<havenwood> brian_____: your Ruby and Rails versions are deprecated and missing essential security patches
<havenwood> brian_____: ^ just an aside :P
<brian_____> i know this.. but unfortunately it's what im working with at the moment
* agent_white does the upgrade dance
<dann_> https://gist.github.com/Pebblescript/f5561df357f5a5cf7d95 I'm trying to use &block with the |arg| syntax, what do I do?
<havenwood> brian_____: I never dealt with pre-bundler Rails, hrmm..
<pythys> shevy: I think I'll just go with plain compiling with make install. It seems the least gut wrenching for the moment
<shevy> brian_____ if you start irb, then do require 'firebase', that works?
<havenwood> brian_____: maybe try #rubyonrails chan?
Hanmac has quit [Ping timeout: 246 seconds]
<shevy> pythys hehe
<havenwood> brian_____: make sure you're using the ruby and gem you think you are?
<shevy> pythys good! make sure you remember which --prefix option you use there
<agent_white> brian_____: Need a bit more info than that. Run a trace and gist it so we can see what you're seein.
<brian_____> when i irb it says 'LoadError: no such file to load -- firebase'
<pythys> shevy: defaults won't work?
<havenwood> shevy: next time you build ruby, try the `--jobs` flag on make ;)
<shevy> pythys well the "default" is equal to /usr/local - yes it works, you just need to know where you installed it
<havenwood> shevy: takes a param for number of parallel jobs, or no param for unlimited
<havenwood> shevy: speeds things up nicely!
<shevy> havenwood I dont trust options I have never used yet
<agent_white> biran______: Are you loading a file, or are you requiring a library?
<agent_white> brian_____ * :P
<shevy> havenwood you want to mess up my system!!! :(
<havenwood> shevy: then use it, so you can start trusting it!
<shevy> ;P
malkomalko has quit []
<shevy> never change a running system
<shevy> (windows(tm))
<brian_____> when i run gem list it's in there...
<havenwood> shevy: yup, trying to break your system so you switch to ruby-install, i've been found out!
<shevy> brian_____ ok that means it is not installed
<havenwood> shevy: j/k j/k
<havenwood> brian_____: oh right, with 1.8 you have to separately install RubyGems
<agent_white> brian_____: From your error, it sounds like you're doing "load 'firebase'", this is looking for a file named 'firebase'.
<havenwood> brian_____: RubyGems doesn't come with Ruby until 1.9.
<shevy> oh
<shevy> he said gem list shows it...
<havenwood> oh
<agent_white> brian_____: require 'firebase' is what you should do instead.
<havenwood> nvm
<shevy> brian_____ can you put "gem env" output on a pastie pls?
<havenwood> shevy: oh right :P
asteve has joined #ruby
<shevy> brian_____ and out of curiousity... do you use debian-based system?
g0bl1n has quit [Quit: Ex-Chat]
<havenwood> shevy: hahaa
<brian_____> im on mac
<shevy> ok
joaoh82 has joined #ruby
nobitanobi has quit [Ping timeout: 252 seconds]
mneorr_ has quit [Remote host closed the connection]
nobitanobi has joined #ruby
Hanmac1 has quit [Ping timeout: 265 seconds]
<havenwood> brian_____: using system ruby?
Hanmac has joined #ruby
sree has joined #ruby
<brian_____> rvm
mneorr has joined #ruby
<shevy> Fetching: ethon-0.6.2.gem (100%)
<shevy> Successfully installed ethon-0.6.2
<shevy> Fetching: typhoeus-0.6.7.gem (100%)
<shevy> Fetching: firebase-0.1.6.gem (100%)
<shevy> Successfully installed firebase-0.1.6
<shevy> I start irb
<shevy> require 'firebase' # => true
<havenwood> brian_____: did you `require 'rubygems'`
<shevy> hmm
<agent_white> havenwood: He is doing "load 'firebase'"... that's his issue.
<shevy> I use 1.9.3 though
<havenwood> agent_white: ooooh
mojjojo has joined #ruby
<pythys> shevy: I am fine with compiling rubygems _without_ compiling ruby itself right?
<shevy> pythys I dont think that is possible in ruby 1.9.x and higher
<shevy> oh wait
<shevy> you mean the other way around
<shevy> pythys yeah you can update rubygems at any moment
<pythys> great
<shevy> I have rubygems version 2.1.11 right now
<pythys> one less compile
<havenwood> shevy: Debian RubyGems will refuse though.
<brian_____> havenwood: no it's just in the Rails::Initializer ... config.gem 'firebase'
psyl0n has quit [Remote host closed the connection]
Kricir has joined #ruby
Idealien has joined #ruby
<shevy> havenwood yeah
<havenwood> shevy: live in the now!! 2.2.0
<shevy> pythys keep in mind that you are no longer taking the red pill... you took the blue pill
<shevy> debian will insist on you continuing with the red pill
<havenwood> shevy: oh, but with Ruby 1.8, RubyGems 2.2.0 currently screws up Bundler
<shevy> it's good medicine they say
<sree> hey i guys i am new to ruby i just wanted to know to know any good resources from which i can learn ruby
<shevy> havenwood omg
<pythys> shevy: more like a suppository ...
<sree> can anyone suggest any sites or channel for good video tutriol
<shevy> well then again
maletor has quit [Quit: Computer has gone to sleep.]
nhmood_ has quit []
<shevy> I dont use bundler anyway :>
<havenwood> shevy: problem averted!
<sree> thanks agent_white:
nhmood has joined #ruby
<havenwood> shevy: ftw: gem install -g Gemfile
<shevy> sree no idea, I never watched ruby videos... but the only ones I can recommend is... watch matz videos!
<sree> hmm okay shevy:
<agent_white> Matz has vids?! :o
sambao21 has quit [Quit: Computer has gone to sleep.]
joaoh82 has quit [Ping timeout: 272 seconds]
<havenwood> sree: RubyTapas is great, pay $7 for all back screencasts.
<pythys> havenwood, shevy you guys have to worry about no computer/software than what you like / own
Brolen has joined #ruby
<havenwood> pythys: i don't? :O yay!
mneorr has quit [Ping timeout: 252 seconds]
* havenwood runs free!
<sree> is it worth the money havenmood
Astralum has joined #ruby
<shevy> sree this one https://www.youtube.com/watch?v=oEkJvvGEtB4 you need to get used to his english, but if you are bored, watch it once.
<havenwood> sree: For sure, watch the free ones before you pay to make sure.
<shevy> matz is always happy and smiles all the time, but his english makes people sad
<shevy> :>
<agent_white> sree: Maybe start with free stuff before paying?
<havenwood> sree: Can cancel once you pay, I keep subscription active but that's optional.
<sree> hmm okay thank u guys
<havenwood> agent_white: Then again, $7 and hours of high quality screencast. I think just worth it.
<Eiam> two coffees
<agent_white> havenwood: I haven't checked 'em out myself... maybe I will. ;)
<Eiam> I don't drink coffee, but I always like to cost things out in terms of # of coffees
<shevy> cool
<shevy> I found a new one from matz, 1 year old, https://www.youtube.com/watch?v=2lBBjkcfKuE
<shevy> his english got better actually
cameronbarton has quit [Quit: cameronbarton]
jameshyde has joined #ruby
jameshyde has quit [Max SendQ exceeded]
<slash_me> havenwood: check out elixir sips too if you have any interest
sambao21 has joined #ruby
<havenwood> slash_me: nice! will do
mzdravkov has joined #ruby
tyl has quit [Remote host closed the connection]
<agent_white> shevy: Maybe... we all just need to learn Japanese!
Kar- has quit [Ping timeout: 252 seconds]
<shevy> hehe
<shevy> agent_white I wonder if he is easier to understand in japanese than he is in english
mattmcclure has joined #ruby
<shevy> when he speaks in the english language, he seems to still "think" in japanese language
dann_ has quit [Quit: Page closed]
<ddd> thats typical of non native speakers
<ddd> leads to hella disjointed conversations lol
gregoriokusowski has quit [Quit: gregoriokusowski]
cameronbarton has joined #ruby
mattmcclure is now known as sh1ps
sh1ps is now known as mattmcclure
<shevy> yeah
<shevy> people make similar mistakes in their respective languages
gregoriokusowski has joined #ruby
<ddd> i hav ethe rosetta stone japanese module. wonder if i should take the time to actually study it so i can understand wtf he's saying most of the time :)
marr has joined #ruby
<shevy> Arnold Schwarzenegger in "Red Sonja", when he says "I am looking for Red Sooooooooounja", it is so typical middle-austrian dialect (Steiermark / Styria)
carraroj has quit [Quit: Konversation terminated!]
klaut has quit [Remote host closed the connection]
Astralum has quit [Quit: Leaving]
rm__ has quit [Remote host closed the connection]
<shevy> most germans tend to pronounce "the" as "ze" / "tse"
<ddd> hah
rm__ has joined #ruby
<pythys> shevy: are there any considerations as to the version dependencies between ruby and rubygems?
iamlacroix has joined #ruby
specious has quit [Ping timeout: 252 seconds]
Virtualize has joined #ruby
<ddd> shevy: i'm an american, speak americanized english, and i hav etroubles with accents even spoken in english. southern drawls can get heavy as rocks making understanding really difficult. add in a foreign language and my ears grow eyes that look like Huh?? hehe
iamjarvo_ has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
iamlacroix has quit [Remote host closed the connection]
iamlacroix has joined #ruby
<shevy> pythys well havenwood showed one... I think it depends what version of ruby you use... brian_____ uses 1.8.x so perhaps he has more problems with the latest rubygems than you may have pythys
<shevy> pythys but in my experience, so far I really dont have a problem with rubygems
<shevy> I am on 1.9.3.xxx something though
<ddd> myself i have a cross between a midwestern and southern drawl so people say they have a hard time understanding *me* at times. Makes me wonder how i sound to korean speakers when i speak korean. (i'm not great at it but i can speak it to a degree)
<ddd> suck at reading it though.
<agent_white> I'm from Colorado. It's like the flat-no-accent of America. ;D
<shevy> ddd funny story... I was taught british english in school, but I always found the american english much easier to understand. it is harder for my brain to process monty python english and also british guys on youtube (doing game commentaries and so forth)
<shevy> the brits have some really strange way to pronounce stuff
rm__ has quit [Ping timeout: 265 seconds]
alexherbo2 has joined #ruby
<shevy> very ... "wery" ... "weri" ... "feri" ... "ferri"
fcoury has quit [Quit: IRCRelay - http://ircrelay.com]
<shevy> oh
rm__ has joined #ruby
<shevy> and I love the way they talk in "no country for old men", that's how I imagine picturesque rural USA now :D
<ddd> hehehe
iamlacroix has quit [Client Quit]
colonolGron has quit [Quit: leaving]
Senjai`work has quit [Ping timeout: 272 seconds]
<ddd> oh damn, yeah the accents in that movie are harsh! lol
<shevy> ddd it's rather funny that arnold schwarzenegger's english made it into the Simpsons
<ddd> hahaha
<shevy> dialects are cool in general
<ddd> definitely
<ddd> i like the different sounds the human mouth and tongue can make
<ddd> whether you understand them or not.
mlpinit has quit [Quit: Leaving...]
<ddd> amazingly simple set of organs that can make come really complex sounds
<ddd> s.come.some
<shevy> oh yeah
<shevy> there are some awesome beatboxers out there, especially some non-mainstream ones
<ddd> oh yeah!
RaCx has joined #ruby
<ddd> i have zero skill in that area. truly amazes me what beatboxers can do
<slash_me> i like how folks who speak X can't pronounce sounds in languages Y,Z... not without training their brains and mouths
<shevy> some guy from sweden who sounds like a trombone
mlpinit has joined #ruby
nobitanobi has quit [Ping timeout: 252 seconds]
nobitanobi has joined #ruby
<shevy> I'd wish I would have had 1 hour of beatboxing in school rather than 1 hour of pascal....
<ddd> slash_me: yeah because it requires a thought change. to how you put thoughts together and the associated sounds we all make in our heads when we're doing it
<ddd> shevy: hahaha
<ddd> yeah, amazing stuff
sree has quit [Remote host closed the connection]
<slash_me> ddd: sometimes it requires learning that you have to put your tongue against the inside of your bottom row of teeth.. or against the roof of your mouth
<ddd> i found a video once on youtube of a beatboxer (think it was yugoslavia or something) that took the electronic drum sets, and the noise makers, and he could mimic them *perfectly*!
<agent_white> Kinda reminds me of people learning to use the 'rolling R' in Spanish. :P
<ddd> i mean he showed the sounds on an oscillator and the curves were exactly the same. stuff like that. truly cool stuff!
<slash_me> agent_white: i think of japenese words like "baret" (ballet)
nanoyak has joined #ruby
tedstriker has quit [Quit: Anti-Fraping status set.]
<ddd> agent_white: hehe the stuff that gives me troubles are when you have a transitory sound between sounds
<ddd> those are *really* tough to get
brianpWins has quit [Quit: brianpWins]
tt1187 has joined #ruby
<ddd> but without those sounds you're saying something completely different
Sawbones has joined #ruby
deception has quit [Quit: Goodbye]
mary5030 has joined #ruby
sree_ has joined #ruby
<ddd> like koreans have an.. l sound thats like an R at the same time. talk about tongue gymnastics
sree_ is now known as Guest63174
<ddd> its like an r with an l wrapped around it
<ddd> sound wise
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<ddd> i can't do it
sambao21 has quit [Quit: Computer has gone to sleep.]
<slash_me> the L (luh) sound is the same as the R (ruh) sound, except you touch the tip of your tongue to the roof of mouth, inside front teeth to make the L (luh) sound
<ddd> yeah something like that. so can not get it down
flame_ has quit [Quit: Computer has gone to sleep.]
Guest4224 has quit [Remote host closed the connection]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ddd> and then you have differences from say how they speak around Pusan, and how they speak closer to PyonYang (near the border)
croaky has joined #ruby
mary5030_ has quit [Ping timeout: 246 seconds]
<ddd> pusan is WAY south. on the coast
<ddd> PyonYang is at the DMZ
bean has joined #ruby
bean has quit [Max SendQ exceeded]
bean has joined #ruby
psyl0n has joined #ruby
<shevy> agent_white R seems to be a certain point, just how japanese pronounce the R, it's not really L but not really so much as a R
burlyscudd has joined #ruby
<shevy> ddd I was in Seoul once! sadly, it was so damn cold, I don't remember anything but the cold weather... (and Lotte shopping center... and bulgogi burgers haha)
Asher has quit [Quit: Leaving.]
Idealien has left #ruby [#ruby]
Senjai`work has joined #ruby
<ddd> oh yeah the korean winters are freakin BRUTAL!
aspires has quit []
vpretzel has quit [Ping timeout: 252 seconds]
<ddd> I was stationed at Camp Howze which is about 5 miles from the DMZ (We supported the infantry responsible for the border itself). We got issued 'bear suits'
aspires has joined #ruby
gregoriokusowski has quit [Quit: gregoriokusowski]
lele has quit [Ping timeout: 246 seconds]
<ddd> the bear suit is exactly like it's name. its got fur all inside and is about oh 4 inches thick. you have to wear just underwear when you wear it because you generate and trap so much heat with one of them on
<agent_white> shevy, ddd: I can't even either of those languages... it seems like a whole new world compared to going from English to Spanish :P
<shevy> hmm
<ddd> but man, yoou're thankful for them and the mickey mouse boots. (thick rubberized combat boots with a knob on them so you can release the trapped heat or you'd cook your feet)
<shevy> I had to learn spanish 4 years in school - I forgot most of it by now
<ddd> my son is learning that now
<agent_white> My buddy was trying to teach me about Chinese, and how one word can be pronounced so many different ways and have so many different meanings :P
<shevy> I should have learned chinese and moved to Hong Kong really
<shevy> cantonese
<ddd> he's going on a trip to Barcelona and a couple other places in Spain nexct year i think it is or th year after for his Spanish class at the highschool
<ddd> agent_white: yeah chinese is another language you have to be careful how you say things.
<agent_white> shevy: I studied it in school, but learned it from my Mexican buddies I worked with in restaurants :D
<ddd> real easy to say something you didn't mean to
zipper has joined #ruby
<shevy> hehe
<agent_white> ddd: Hahaha yeah shit! I'm good using Google translate and calling it even ;P
<shevy> lol
<shevy> google translate is so awful
Jake232 has joined #ruby
<shevy> I think they only created it so they can get some easy laughs
<ddd> agent_white: lol thats what I use and call it even
<ddd> when i really want to talk to someone who doesn't speak english i use that
lele has joined #ruby
cameronbarton has quit [Quit: cameronbarton]
<ddd> i don't know of a better translator or i'd use it
<ddd> well one thats more consistent. GT does have issues
<shevy> BABELFISH FOR THE WIN
<ddd> hehe
<ddd> i've had babelfish make some pretty big mistakes too
<ddd> ones i had to correct through GT
teddyp1c_ has quit []
RaCx has quit [Quit: Computer has gone to sleep.]
<slash_me> babelfish has been around for a while.. haven't used it in ages
nobitanobi has quit [Ping timeout: 252 seconds]
<ddd> i can not wait for the day we can wear ear pieces and throat devices that let you talk to anyone in the world
<ddd> like star trek has
<ddd> universal translator.
nobitanobi has joined #ruby
<shevy> I go the alternative approach
<ddd> there are so many peopl ein the world, with different customs, different histories.. i'd love to spend my life talking with people over stuff like that
<shevy> everyone must learn english
Kar- has joined #ruby
<ddd> well english and japanese are the universal languages of business
<ddd> math being the truly universal
<ddd> but i suck at that level of math hehe
shadoi has joined #ruby
<shevy> I suck at math :(
<ddd> me too
<ddd> my son is fucking AMAZING at math
<shevy> it's ok when it is simple or head calculations, there I can be fast
<ddd> he's 17
<shevy> but abstract stuff is killing me
<ddd> yeah, like checkbook level i've no problems
<ddd> but algebra and stuff. wow
kep has joined #ruby
RaCx has joined #ruby
Sthebig has quit [Ping timeout: 240 seconds]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ddd> since i was a kid, i've had this thing for learning about people. when i travel i try not to hit the tourist areas because i'm traveling to learn about the people, customs,and life generally of the people where i've gone
sjuxax has joined #ruby
Hanmac1 has joined #ruby
<ddd> yeah there's a lot of cross over (iu mean we're humans after all. we all shit the same way out of the same orfice) but there's also a lot of difference
burlyscudd has quit [Quit: Leaving.]
<platzhirsch> ugh, is there no rdoc-data for Ruby 2.1 yet?
cj3kim_ has joined #ruby
<ddd> stuff in those differences are what i find cool, with language being the biggest indicator of those differences
<sjuxax> Hello. I have a few questions about symbols. I understand defining a string that is not going to change often as a symbol to mark it immutable. However, there are some Ruby projects that use symbols for hash keys and variable names almost wherever possible. Is that truly necessary?
kate_r has quit [Ping timeout: 240 seconds]
<slash_me> symbols for variable names?
Hanmac has quit [Ping timeout: 260 seconds]
klaut has joined #ruby
bean has joined #ruby
<ddd> sjuxax: its a commonality. plus iirc it cuts down on memory usage if those keys are used a lot (otherwise its a new allocation for every invocation especially when you start scoping)
cbetta_afk is now known as cbetta
pwh has quit []
<ddd> but i don't know of people using symbols for vars commonly other than for well the norms like hashes
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
dblessing has quit [Quit: dblessing]
<sjuxax> I find it annoying that in practice Ruby variables are always expected to have a colon prefix
<slash_me> sjuxax: that's just wrong though
<ddd> they're not
Sthebig has joined #ruby
Sthebig has quit [Changing host]
Sthebig has joined #ruby
<havenwood> sjuxax: Not necessary but very common practice. Symbols make good keys.
<slash_me> symbols, on the other hand... yeah, colon prefix.
bentonrr_ has quit [Remote host closed the connection]
<shevy> sjuxax I find symbols used mostly in hashes though
clamstar has quit [Quit: Textual IRC Client: www.textualapp.com]
<ddd> exactly
flame_ has joined #ruby
nfk has quit [Quit: yawn]
ArchBeOS has quit [Quit: Leaving]
nomadic has quit [Ping timeout: 246 seconds]
<havenwood> sjuxax: What would you use instead for keys?
Lewis has joined #ruby
cameronbarton has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
allaire has quit []
flame_ has quit [Client Quit]
<ddd> bbiaf. neighbor needs me
vpretzel has joined #ruby
kate_r has joined #ruby
ebobby has quit [Quit: Changing server]
gregoriokusowski has joined #ruby
cj3kim_ has quit [Ping timeout: 272 seconds]
flame_ has joined #ruby
flame_ has quit [Client Quit]
<sjuxax> havenwood: A typical string, like {'key' => 'val'}
<slash_me> sjuxax: you can use any object as a key... nothing stops you from using a string.
aspires has quit []
madb055 has joined #ruby
Hanmac has joined #ruby
<sjuxax> I understand that. I'm trying to understand if/why it's necessary to use a symbol as the key for everything
meatherly has quit [Remote host closed the connection]
<havenwood> sjuxax: Not necessary, but nice.
flame_ has joined #ruby
<havenwood> sjuxax: You could have thousands of that same key with no larger memory footprint.
<sjuxax> OK, I used necessary too loosely
<havenwood> sjuxax: A nicety borrowed from List.
<havenwood> Lisp**
meatherly has joined #ruby
Hanmac1 has quit [Ping timeout: 272 seconds]
<Hanmac> sjuxax: PS: avoid under any circumstances to turn user input into symbols ... that would be very ugly
flame_ has quit [Client Quit]
iamjarvo has quit [Remote host closed the connection]
shedd has quit [Read error: Connection reset by peer]
<havenwood> sjuxax: the use case is when you are yourself creating the symbols, make them strings or otherwise when appropriate
Asher1 has joined #ruby
Lewis has quit [Ping timeout: 272 seconds]
iamjarvo has joined #ruby
shedd has joined #ruby
mneorr has joined #ruby
<havenwood> sjuxax: symbols are Ruby's interned strings, and interned strings make good keys
* Hanmac uses symbols often as C enums
axl_ has joined #ruby
kep has quit [Quit: WeeChat 0.4.2]
<sjuxax> I see them used as attributes often, also
<havenwood> sjuxax: That is a necesssity.
<slash_me> as attributes? a necessity? i don't understand what's being said
<apeiros> as attributes?
madb055 has quit [Ping timeout: 252 seconds]
nomadic has joined #ruby
jprovazn_afk has quit [Quit: Odcházím]
* apeiros wonders what sjuxax considers "as attributes"
<sjuxax> I see attributes defined as symbols, like attr_accessor :money
sambao21 has joined #ruby
kleinerdrache has quit [Quit: Ex-Chat]
<havenwood> apeiros: I took it to mean attrs. As in methods referenced as Symbols.
<apeiros> sjuxax: for the very reason havenwood cited
Kricir has quit [Remote host closed the connection]
axl_ has left #ruby [#ruby]
<apeiros> sjuxax: if you do attr_accessor "money", it'll work
<apeiros> but the string you pass will just be converted to a symbol anyway
vpretzel_ has joined #ruby
meatherly has quit [Ping timeout: 260 seconds]
<apeiros> so you can save ruby the work and memory and pass a symbol right away
vpretzel has quit [Disconnected by services]
vpretzel_ is now known as vpretzel
<havenwood> sjuxax: When a method is created that symbol is defined on a struct. You reference methods by the corresponding symbol.
<havenwood> >> send :puts, 'hi'
derebos has joined #ruby
iamjarvo has quit [Ping timeout: 260 seconds]
<shevy> sjuxax a symbol has the same object id all the time, a string object is always different
bentonrr has joined #ruby
<shevy> >> :foo.object_id
<shevy> eval-in you stupid bot! start working again!
<havenwood> shevy: #=> 496808
<sjuxax> I understand that a symbol is an immutable string. I'm just not used to having to consider the types of variable names, etc.
<shevy> lol
<sjuxax> or keys
mbytes has quit [Ping timeout: 245 seconds]
<shevy> sjuxax you can use 'strings' everywhere if you want to
<apeiros> sjuxax: you never had to bother whether your variable is an array or a string?
<sjuxax> I want to do the best thing, and am trying to understand what that is
<havenwood> sjuxax: Not sure why you mention variables. Variables aren't symbols.
<apeiros> symbols aren't variables
<apeiros> symbols are objects
<apeiros> like arrays are objects, or strings are objects
<apeiros> and I'm quite certain that you had to bother about type before too
brtdv has joined #ruby
psyl0n has quit [Remote host closed the connection]
brtdv has quit [Client Quit]
Virtualize has quit [Quit: Leaving...]
Kricir has joined #ruby
maletor has joined #ruby
<havenwood> sjuxax: {string: 'example', symbol: :example, frozen_string: 'example'.frozen}
jmimi has joined #ruby
<havenwood> sjuxax: Maybe just think of them as different kinds of strings?
<havenwood> 'example'.freeze***
smathieu_ has quit [Read error: Connection reset by peer]
<havenwood> >.>
meatherly has joined #ruby
smathieu has joined #ruby
<havenwood> Will be interesting to see how many folk start using the new Rational literal for money rather than BigDecimal.
ahmedelgabri has quit []
joast has quit [Quit: Leaving.]
<havenwood> Any downside for using Rational for monies??
joaoh82 has joined #ruby
brtdv has joined #ruby
joast has joined #ruby
<havenwood> >> (1.44r + 4.44r).to_f #=> 5.88
<Hanmac> havenwood: i think one day we need to use Complex for money calc because the finance system is to shitty :D
mengu has joined #ruby
phutchins has quit [Ping timeout: 260 seconds]
<kure_> Hey dudes, does Ruby Gems comes by default on Mac?
<havenwood> kure_: yes
<havenwood> Hanmac: haha
<havenwood> kure_: check: command -v gem
<havenwood> kure_: gem -v
<kure_> havenwood, thanks. Developing a gem and wanted to know if people could install it there
hiall has joined #ruby
gregoriokusowski has quit [Quit: gregoriokusowski]
<havenwood> kure_: Indeed, they'll just need to `sudo gem install`
jetblack has joined #ruby
<havenwood> kure_: with OS X system Ruby
<slash_me> havenwood: I've always used pennies (Integer)
<havenwood> slash_me: aye
<kure_> havenwood, gracias muchacho
<Hanmac> you can install things on mac? now i am suprised
<havenwood> kure_: de nada
<slash_me> figured best to go with the quantum
<havenwood> Hanmac: ha
<havenwood> Hanmac: you can indeed :P
simoz9 has quit [Ping timeout: 272 seconds]
<Hanmac> shevy i raised the rdoc comment ratio for rwx at "34.47% documented"
smathieu has quit [Ping timeout: 272 seconds]
<havenwood> Hanmac: Mavericks is ruby 2.0.0p247 and you can `sudo gem update --system`.
nomadic has quit [Ping timeout: 245 seconds]
<havenwood> Hanmac: Shhhhh about the floating point vuln. :O
joaoh82 has quit [Ping timeout: 252 seconds]
_honning_ has joined #ruby
Senjai`work has quit [Ping timeout: 245 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
freebs has quit [Quit: Leaving.]
pythys has quit [Quit: Leaving]
ahawkins has joined #ruby
ndrei has joined #ruby
iamjarvo has joined #ruby
jameshyde has joined #ruby
<shevy> Hanmac \o/
<havenwood> shevy: do you usually gentoo?
nomadic has joined #ruby
nadirvardar has joined #ruby
freebs has joined #ruby
cjk1969 has joined #ruby
ffranz has quit [Remote host closed the connection]
<wmoxam> ewww
<havenwood> wmoxam: no like gentoo?
<wmoxam> gentewwww
<wmoxam> havenwood: nope
cjk1969 has left #ruby ["WeeChat 0.4.2"]
<havenwood> shevy: did i imagine the gentoo thing? ;I
mzdravkov has left #ruby [#ruby]
<shevy> havenwood nah, I could not forgive them that they were using python (portage I think)
<shevy> I kinda started compiling on gobolinux in 2005 or some such
ahawkins has quit [Ping timeout: 245 seconds]
<havenwood> shevy: ahhhh, gobolinux!! i just remembered the g >.>
<havenwood> shevy: never used, how is it?
<shevy> it was great in 2005
jameshyde has quit [Ping timeout: 245 seconds]
<shevy> sadly the students who kick-started it got jobs and had less and less time
<havenwood> shevy: ahhh
<shevy> only recently did a few of them try to make a new release http://lists.gobolinux.org//pipermail/gobolinux-devel/2013-December/004388.html which will probably happen in Jan 2014, but other than that, it's rather dead
mojjojo has quit [Quit: mojjojo]
nomadic has quit [Changing host]
nomadic has joined #ruby
<shevy> havenwood my rbt project actually started because I did not understand the gobolinux shell scripts
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<havenwood> shevy: heh, nice
croaky has quit [Ping timeout: 272 seconds]
phansch has quit [Quit: Leaving]
<shevy> if there will indeed be a new release, I will install it here, then auto-generate all recipes
<shevy> I hate shell scripts :\
croaky has joined #ruby
<wmoxam> shevy: why?
<shevy> wmoxam I am a firm believer in concise, beautiful, clear, documented code and instructions
danshultz has quit [Remote host closed the connection]
colonolGron has joined #ruby
<shevy> I don't understand why shell scripts go about doing certain things
<havenwood> shevy: i'm a firm believer in concise, beautiful, self-documenting code :P
<shevy> like arguments to functions
rm___ has joined #ruby
gsvolt_work has joined #ruby
rm___ is now known as Guest28859
digifiv5e has joined #ruby
<wmoxam> shevy: shell script is very good for certain things
<shevy> $1 $2 $3
<shevy> I hate this so much
gja has joined #ruby
allaire has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<slash_me> shevy: yeah, typically you check that the number of arguments supplied matches an acceptible number you define... then give names to $1, $2, $3, etc
grieg has joined #ruby
mojjojo has joined #ruby
gsvolt_work has left #ruby [#ruby]
dsajoel has joined #ruby
gja has quit [Client Quit]
<havenwood> slash_me: trading connaissance of name for connaissance of position
<havenwood> both complect
skaflem has quit [Quit: Leaving]
<dsajoel> greetings. codemash conference in sandusky, ohio happens next week. my colleague has a four day ticket he wishes to sell, but hasn't yet. if you'd like it, email me at dsajoel@live.com with your contact info and I can forward it to my colleague; btw codemash does have some ruby pre-compilers and talks planned.. so I thought I'd atleast share this with the channel :)
Senjai`work has joined #ruby
<havenwood> dsajoel: if i could teleport i'd take it!
simoz9 has joined #ruby
<havenwood> Any Ohians around?
rm__ has quit [Ping timeout: 272 seconds]
<dsajoel> havenwood: I'm from Akron, Ohio btw
<dsajoel> where you from..
<havenwood> dsajoel: LA
<slash_me> havenwood: epochwolf in #rubyonrails
<grieg> hello. can the expression after "while" be shortened http://pastebin.com/cCyMcDjh
<epochwolf> yip!
<slash_me> epochwolf: wanna go to codemash in sandusky?
burlyscudd has joined #ruby
<epochwolf> um... no?
<epochwolf> that's like 4 hours from Cincinnati.
<slash_me> grieg: ["q", "quit", "exit"].include?(command)
<epochwolf> Chicago is almost closer.
<dsajoel> havenwood: dunno abt airline tickets for you .. might be cuttin it close - unless ofcourse you have 'a million dolllars' to spare for your airline of choice lol
<shevy> slash_me this is better %w( q quit exit ).include? command
tannerburson has quit [Quit: tannerburson]
<shevy> oh you wrote to grieg
<slash_me> shevy: much agreement
<shevy> I am kinda half asleep already ;<
tannerburson has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
Xeago has joined #ruby
<grieg> slash_me, shevy: so definately not with the logical operators?
lkba has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
<epochwolf> slash_me: also, I can't afford to go to a conference this month. I've got other expenses :P
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> grieg what is the logical operator?
tannerburson has quit [Client Quit]
<grieg> shevy: && || => and so on
<shevy> grieg well I tend to do loops via loop
<shevy> in your example though you have to compare
<shevy> (command != "q") and (command != "quit") and (command != "exit")
cameronbarton has quit [Quit: cameronbarton]
<shevy> vs
<shevy> %w( q quit exit ).include? command
<slash_me> much better ^
<shevy> or perhaps you may need the last () not sure
jarjar_prime has quit [Quit: Ready? Set? Go!]
<shevy> %w( q quit exit ).include?(command)
Sawbones has quit []
bean has joined #ruby
<grieg> alright, thank you guys
<slash_me> or perhaps you want to come back and add "bye" as an escape condition... do you want to add `and (command != "bye")`, or just to add "bye"
<shevy> grieg I usually do loop { read_user_input; check_against_menu } and the second method then handles exit from that loop. it's a bit extra work, especially for short code, but I kinda like to break actions into functional or logical components
<shevy> yeah
<shevy> grieg, if you use %w() for an array, it's easier to add to it
<shevy> EXIT_COMMANDS = %w( bla ble blge gieehieh ); EXIT_COMMANDS.include?
<shevy> or in case when
<shevy> when *EXIT_COMMANDS
<shevy> hmm anyone of you knows prawn? ruby pdf
colonolGron has quit [Quit: Lost terminal]
mlpinit_ has joined #ruby
<grieg> well, this http://pastebin.com/fvZSV1hC
<shevy> I wonder how simple it would be to re-set the title of a .pdf file with prawn alone
shime has quit [Ping timeout: 272 seconds]
<shevy> grieg yeah, I would replace this all with a case when menu
<shevy> less typing work too
<shevy> actually you can simplify all that even more
<slash_me> grieg: case/when docs, in case - http://ruby-doc.org/docs/keywords/1.9/Object.html#method-i-case
<slash_me> you know... "just in case"
mroth has joined #ruby
farn has quit [Quit: farn]
flame_ has joined #ruby
mlpinit has quit [Ping timeout: 272 seconds]
<grieg> yes i am a novice )
<shevy> grieg yeah, you should try to do this with a case menu
<shevy> and afterwards, you could try to write a small class
farn has joined #ruby
<shevy> class Die or Dice
<shevy> Dice.throw '2d3+5'
<shevy> and it gives you the proper result
<shevy> then you can simplify to
<shevy> case cmd
<shevy> when 'd3','d4','d5','2d8'
sambao21 has joined #ruby
<shevy> Dice.throw cmd
soobus has quit [Ping timeout: 252 seconds]
<shevy> I mean
<shevy> ah yeah
Kar- has quit [Ping timeout: 272 seconds]
<shevy> don't worry, in some days you have that by heart
simoz9 has quit [Ping timeout: 260 seconds]
<shevy> ruby people are lazy, they don't want repetition
<grieg> well i m on it actually, but first things first )
aspires has joined #ruby
mojjojo has quit [Quit: mojjojo]
mlpinit_ has quit [Remote host closed the connection]
<shevy> hey IceDragon look at that http://oi39.tinypic.com/35idr2b.jpg
camilasan has joined #ruby
<shevy> you know what the cool thing is? this is autogenerated from a context free (text) file
mlpinit has joined #ruby
<IceDragon> seriously mate?
<IceDragon> Gimme the codez
mehlah has quit [Ping timeout: 272 seconds]
momomomomo has joined #ruby
<shevy> hmm of that one? let me find it
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
slash_me is now known as slash_nick
<apeiros> hehe, they look a bit like retarted angry birds :D (the fact that they're autogenerated is awesome)
<IceDragon> ヽ(^ヮ^)ノ♪
DrShoggoth has quit [Remote host closed the connection]
gja has joined #ruby
<shevy> IceDragon http://pastie.org/pastes/8598432/text the program that interprets that is cfdg / contextfree design
Asher1 has quit [Quit: Leaving.]
* IceDragon grabs quickly
Kar- has joined #ruby
EngierkO has quit [Read error: Connection reset by peer]
Asher has joined #ruby
<shevy> apeiros yeah, some things in that gallery are awesome
<shevy> I'd wish I would be more creative
mehlah has joined #ruby
<shevy> but if you ever need some autogenerated random wallpapers...
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy> like texture patterns
<IceDragon> ;O
<IceDragon> I can has pretty thingz?
ndrei has quit [Quit: leaving]
<shevy> sadly there was no dragon pattern yet IceDragon
<shevy> for your scales
<IceDragon> o-e;
<IceDragon> someone call the wyverns..
<IceDragon> We have a problem...
lsmola_ has quit [Ping timeout: 246 seconds]
klaut has quit [Remote host closed the connection]
shadoi has quit [Quit: Leaving.]
tt1187 has quit [Ping timeout: 245 seconds]
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
psyl0n has joined #ruby
Brolen has quit [Quit: Brolen]
psyl0n has quit [Remote host closed the connection]
Guest63174 has quit []
jedimind has quit [Quit: Textual IRC Client: www.textualapp.com]
camilasan has quit [Quit: Konversation terminated!]
camilasan has joined #ruby
timonv has quit [Remote host closed the connection]
joaoh82 has joined #ruby
nfk has joined #ruby
rubyracer has quit [Quit: Konversation terminated!]
shime has joined #ruby
sambao21 has joined #ruby
psyl0n has joined #ruby
psyl0n has quit [Remote host closed the connection]
senj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senj has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shadoi has joined #ruby
iMBA has joined #ruby
skulker has joined #ruby
Xiti` has quit [Quit: Leaving]
Xiti has joined #ruby
byprdct has joined #ruby
Kricir has quit [Remote host closed the connection]
Megtastique has quit []
Ataraxzy has joined #ruby
iMBA_ has joined #ruby
Kricir has joined #ruby
burlyscudd has quit [Ping timeout: 245 seconds]
jgrevich has joined #ruby
mojjojo has joined #ruby
subbyyy_ has joined #ruby
ndrei has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
ahawkins has joined #ruby
gregoriokusowski has joined #ruby
Kricir has quit [Ping timeout: 252 seconds]
jameshyde has joined #ruby
_HolyCow1 has joined #ruby
brian_____ has quit [Quit: brian_____]
iMBA_ has quit [Remote host closed the connection]
Megtastique has joined #ruby
derebos has quit [Ping timeout: 260 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
hadees has quit [Quit: hadees]
sailias has quit [Quit: Leaving.]
_HolyCow has quit [Ping timeout: 265 seconds]
ahawkins has quit [Ping timeout: 246 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
iMBA_ has joined #ruby
jameshyde has quit [Ping timeout: 252 seconds]
Asher has quit [Quit: Leaving.]
gregoriokusowski has quit [Quit: gregoriokusowski]
Bira has joined #ruby
tt1187 has joined #ruby
includex has quit [Ping timeout: 272 seconds]
workmad3 has joined #ruby
mbytes has joined #ruby
cameronbarton has joined #ruby
nfk has quit [Remote host closed the connection]
iMBA_ has quit [Changing host]
iMBA_ has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
Sawbones has joined #ruby
mengu has quit [Ping timeout: 245 seconds]
guilund has joined #ruby
maletor has joined #ruby
iMBA has quit [Quit: iMBA]
iMBA_ is now known as iMBA
<guilund> hey guys... someone can help me with FileUtils.rm_rf not working properly?
sepp2k has quit [Read error: Connection reset by peer]
mitesh_test has joined #ruby
<shevy> FileUtils.rm_rf works
<guilund> FileUtils.rm_rf not deleting, and dont raise any error
io_syl has joined #ruby
<guilund> is this something to do with Mac Filesystem?
Wolland has quit []
allsystemsarego has quit [Quit: Leaving]
stryek has quit [Quit: Leaving]
dapz has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
tylersmi_ has joined #ruby
iamjarvo has quit [Remote host closed the connection]
<guilund> shevy: look at my gist, is something wrong?
dsajoel has quit [Ping timeout: 272 seconds]
cj3kim_ has joined #ruby
nanoyak has joined #ruby
x_ has quit [Read error: Operation timed out]
danshultz has joined #ruby
<guilund> bnagy: hey bnagy, happy new year
<shevy> guilund I would solve that differently
<guilund> shevy: i am just testing a concept, seeing how it goes... not final code
<shevy> something like: def rm(i = 'diretorio_site')
<shevy> entries = Dir["#{i}/*.html"]
<shevy> entries.each {|e| FileUtils.rm_rf(e) } unless entries.empty?
breakingthings has quit []
<shevy> and add the secure: true) part of course
<shevy> and if entries is not empty, output it
<shevy> guilund also check for permission errors
<guilund> how can i check for permission errors?
<shevy> if File.writable?
<shevy> I think you can check on a directory as well
<shevy> guilund when removing anything, it is usually better to be as accurate as possible
<guilund> shevy: its my first time dealing with filesystem, thats a lot of gotchas
<shevy> in your code right now you state that FileUtils.rm_rf must understand glob but I actually never used it like that
<shevy> I do use Dir['foo*'] a lot though
<shevy> then, when you have an array
<shevy> it is easier to feed it into your remove method
<shevy> and inside your remove method, handle removal of files, symlinks or directories
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
mojjojo has quit [Quit: mojjojo]
<guilund> i see
<shevy> guilund removing files scares me
<guilund> do you know any gem to ease the process?
ehaliewicz has joined #ruby
<shevy> i = '/**/*'; def remove(this); FileUtils.rm_rf(this);end; remove(i)
danshultz has quit [Ping timeout: 252 seconds]
<shevy> not really, but it's not a lot of code guilund
<shevy> 10-15 lines or so
banister has joined #ruby
<shevy> you could put it into a module and re-use it :)
<shevy> module Remove
<shevy> def self.this(i)
<shevy> Remove.this()
<shevy> hehehe
<guilund> yeah, its the gotchas that i cannot see that worries mme :P
<shevy> well, permission problems are only annoying
<shevy> removing files you did not want to remove is dangerous and even more annoying
<shevy> and to have other people remove what they want to is downright suicide
<shevy> in your remove-method you should also check if the file exists too
<guilund> yeah! i'll take more time to think this module right
<shevy> remove(i) if File.exist? i
<shevy> I dont know why it fails for you, in my code (local though) FileUtils.rm_rf works
<shevy> but via File.writable? you can check the permission, perhaps it is that
<guilund> i think it has something to do with mac filesystem
<shevy> hmm
<guilund> sometimes it doesnt get when a file is modified or deleted
<shevy> apeiros uses a mac
<shevy> and rails too
<shevy> guilund perhaps it is cached or buffered somewhere irregularly or there is another latency. I am happy on linux here
<guilund> shevy hehehe
interactionjaxsn has quit [Remote host closed the connection]
colonolGron has joined #ruby
interactionjaxsn has joined #ruby
colonolGron has quit [Client Quit]
Kricir has joined #ruby
Mon_Ouie has quit [Ping timeout: 272 seconds]
<shevy> linux is not very pretty
<shevy> but rather simple and effective
jerius has quit [Ping timeout: 272 seconds]
<guilund> shevy: i'm happy with mac, but its expensive as hell where i live
<guilund> shevy: its probably the most expensive mac in the world
Asher has joined #ruby
mojjojo has joined #ruby
<shevy> hehe
<guilund> shevy: that new mac pro, that looks like a blender, here in brazil, the price can reach US$25k !
<shevy> hmm
<shevy> yeah, I heard that price too in europe
<guilund> thats absurd :P
<shevy> it's like 1/3 or 1/4 of a car
meatherly has quit [Remote host closed the connection]
<guilund> its like 1/4 of an average apartment here
<guilund> hahaha
momomomomo has quit [Quit: momomomomo]
<guilund> an average apartment here in sao paulo is about US$100k
<shevy> wow
interactionjaxsn has quit [Ping timeout: 245 seconds]
<guilund> oh yeah man, go figure global economics
<guilund> the Apple guys are smoking a crack that alters the right perception of value
asobrasil has left #ruby [#ruby]
bean has joined #ruby
mojjojo has quit [Client Quit]
<shevy> I guess they aim to sell only few of these anyway
klaut has joined #ruby
<guilund> to the royal family of dubai, i believe
<shevy> some industrial designers perhaps
bean has quit [Client Quit]
grieg has quit [Remote host closed the connection]
<guilund> shevy: an average designer dont have this much money, i used to be one... :P
45PAAZBMQ has joined #ruby
<guilund> shevy: are you from america?
<shevy> guilund central europe
mojjojo has joined #ruby
joaosa has quit [Ping timeout: 245 seconds]
<shevy> guilund it depends on what type of designer one is. industral designers i.e. ones to work for car companies, or that design other things (a clock, toothbrush, how railjets / train wagons look etc..) can get a quite decent wage
danshultz has joined #ruby
<shevy> *industrial
<guilund> shevy: nice, i like europe, probably at school you guys have a very thick book of history to learn
<guilund> shevy: yeah, i began my design course at university as a industrial designer, then migrated to general design because here in brazil we dont have much room for this kind of design
<shevy> nah school history kinda sucks... they teach us an opinionated version of everything, also a rather pro-US history view and anti-past history view (understandable due to the world wars, but objective facts aren't explained properly)
Kricir has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
<guilund> shevy: yeah, dot trust your government kid
<guilund> shevy: anarcho-capitalism FTW
<guilund> :P
<guilund> or at least a minarchy
<shevy> hmm anarcho isn't very pro on anything, just very strong against authority
<guilund> yeah, im one of the 6 libertarians here in brazil
<shevy> hehehehe
<shevy> at least you have sunshine
<shevy> here it's damn cold
<guilund> the guys over here are socialists, via cultural marxism, gramscism
<shevy> only siberia is worse
<guilund> shevy: its about 40 degrees today
<guilund> its hot as hell
<shevy> hehe
davidw has joined #ruby
blackmesa has joined #ruby
troyready has quit [Remote host closed the connection]
<davidw> hi - with Nokogiri f.write(doc.css('body').to_xhtml()) "pretty prints" the html, adding a bunch of blank space. doc.to_xhtml() does not, leaving the original spacing intact. Any idea what's going on?
esing has joined #ruby
troyready has joined #ruby
<davidw> aha... it's to_xhtml vs to_html
iMBA_ has joined #ruby
<guilund> shevy: it worked the way you proposed
<guilund> Dir.glob("#{diretorio_site}/*.html") {|f| FileUtils.rm_rf( File.expand_path(f), secure: true) }
<guilund> iterating through the files
johnmilton has quit [Remote host closed the connection]
<shevy> your code looks scary :D
<guilund> hehehe its just testing
<guilund> putting a prototype together
<shevy> davidw wow, it gives you an option for xhtml?
grep_awesome is now known as grep_away
nateberkopec has quit [Quit: Leaving...]
45PAAZBMQ has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
DGuedes has joined #ruby
<esing> Hi, how do I return a variable to shell in ruby? (I mean something like 'return on exit')
jmimi1 has joined #ruby
<guilund> shevy: im trying to build a kind of online jekyll
esing has quit [Quit: Verlassend]
esing has joined #ruby
<guilund> shevy: simpler, though
sethen has joined #ruby
* esing disconnected
freebs has quit [Quit: Leaving.]
ahmet has joined #ruby
<ahmet> Hi
vpretzel has quit [Quit: Adios!]
<davidw> shevy, to_xhtml pretty prints it, to_html preserves all the spaces and stuff
davidw has left #ruby ["Ex-Chat"]
jmimi is now known as Guest49284
jmimi1 is now known as jmimi
Guest49284 has quit [Killed (cameron.freenode.net (Nickname regained by services))]
<esing> Did someone wrote something while I parted?
<ahmet> Is there anyway to refactor this https://gist.github.com/ahmetabdi/9f3825562adc25dfa3b8
<slash_nick> esing: not yet
<ahmet> I wanna set the opts to an empty hash unless its been declared
<esing> Okay, thanks
<slash_nick> ahmet: use stdout
<ahmet> ? whats that
<slash_nick> shellvar=`ruby this_script.rb blah blargh blergh`
<slash_nick> $shellvar will hold whatever the script output..outputted... put out
txdv has quit [Read error: Operation timed out]
shime has quit [Ping timeout: 260 seconds]
mitesh_test has quit [Quit: mitesh_test]
iMBA_ has quit [Quit: iMBA_]
Kar- has quit [Ping timeout: 252 seconds]
doodlehaus has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
vlad_starkov has joined #ruby
txdv has joined #ruby
subbyyy_ has quit [Ping timeout: 252 seconds]
fedesilva has joined #ruby
subbyyy_ has joined #ruby
fedesilva has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
aryaching has quit [Ping timeout: 245 seconds]
Sthebig has quit [Ping timeout: 240 seconds]
<esing> In python it is sys.exit(value). Searching the equivalent for Ruby
zeade has quit [Quit: Leaving.]
hadees has joined #ruby
mneorr_ has joined #ruby
iMBA has left #ruby [#ruby]
bentonrr has quit [Remote host closed the connection]
dachi_ has joined #ruby
mneorr has quit [Ping timeout: 245 seconds]
io_syl has quit []
fedesilv_ has quit [Ping timeout: 246 seconds]
bentonrr has joined #ruby
ahmet has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<dachi_> hi people. after a while I am back to Ruby again. Is there any reasonable use of Ruby with a cross platform GUI support to run as on Mac, as on Windows (.exe), etc.?
agjacome has quit [Ping timeout: 246 seconds]
millerti has quit [Quit: millerti]
<IceDragon> esing: ruby just has exit(value)
ambushsabre has joined #ruby
Spleeze has quit [Ping timeout: 245 seconds]
zipper has quit [Ping timeout: 260 seconds]
<IceDragon> dachi_: I'm not too clear on what your getting at...
Sthebig has joined #ruby
zipper has joined #ruby
<esing> IceDragon, I tried that already, but that raises this error: no implicit conversion of String into Integer (TypeError). So it seems that exit(..) only accepts integers
bentonrr_ has joined #ruby
agjacome has joined #ruby
ahawkins has joined #ruby
jameshyde has joined #ruby
vlad_starkov has joined #ruby
<IceDragon> yeah ;x why would you need otherwise?
<dachi_> I was rails developer mostly, I want to know do you use Ruby to make gui applications today that work on most platfors?
<IceDragon> even C/C++ uses ints
iMBA has joined #ruby
klaut has quit [Remote host closed the connection]
iMBA has left #ruby [#ruby]
<IceDragon> dachi_: From my experience, every single GUI lib/gem has failed me, they either crash, lag or burn
<esing> IceDragon, Because I need a value from the ruby script in my python script (calling the ruby script with subprocess)
bentonrr has quit [Read error: Connection reset by peer]
<IceDragon> I find that ruby does make a mean language for console apps, and daily usage :O
<dachi_> I see, what about JRuby?
<IceDragon> Its also nice for hacking an idea
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has joined #ruby
<IceDragon> Never used it, a friend of mine does though
<IceDragon> :) He finds it great for his android phone
abra has quit [Ping timeout: 252 seconds]
<dachi_> I see thanks, I just couldnot find any better than ruby and I wish a lot it to be faster and have a great gui support
klaut_ has joined #ruby
<guilund> shevy: do you know if, for example, ruby takes too long to create a directory for some reason, and in the next line i create a file, it will raise error?
gks has joined #ruby
<shevy> guilund I can not remember having ever had this issue myself or heard about it
<shevy> guilund File.writable? works for you?
<IceDragon> dachi_: ruby is fast enough!
<guilund> shevy: i mean, the ruby will 'hold' the code until the directory is created?
<IceDragon> GIL
<guilund> i dont know whats the name of this
<IceDragon> get used to it ;)
jameshyde has quit [Ping timeout: 246 seconds]
<dachi_> i'm not familiar with py
ahawkins has quit [Ping timeout: 245 seconds]
<dachi_> but i was to use scala with rails for performance
<guilund> for example, in one line i create the dir, then ruby will hold the code until its finished, then it goes to the next line
<dachi_> i don't know, maybe you're right
<terrellt> guilund: Yes, it blocks.
<guilund> it have a name... i forgot
abra has joined #ruby
<guilund> asynchronous
<guilund> something like that
<terrellt> guilund: Ruby always blocks.
<guilund> terrellt: nice!
Bumptious has quit [Read error: Connection reset by peer]
<IceDragon> RAB
Guest28859 has quit [Remote host closed the connection]
<gks> Ok, Having trouble with STDERR and Logger, can anyone help? I want the entries to be intermixed, right now it's all STDERR messages then Logger, rather than mixed. Gist here: https://gist.github.com/anonymous/68e9066ae975c7cb8a47
Bumptious has joined #ruby
rm__ has joined #ruby
Spleeze has joined #ruby
<dachi_> according to benchmarks it's slower than scala or java. but i don't like any other, don't take me wrong please. okay i'll say good bye, thanks for helping
dachi_ has quit [Quit: Page closed]
<guilund> another thing...
<guilund> dir_files = Dir.glob("#{diretorio_site}/*.html")
<guilund> it returns me an array, right?
klaut_ has quit [Ping timeout: 272 seconds]
<gks> guilund: yes
nadirvardar has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<guilund> why dir_files {|f| FileUtils.cp File.expand_path(f), "#{diretorio_backup}/#{diretorio_backup_agora}" }
<guilund> dont work?
<IceDragon> gks: STDERR takes higher priority than STDOUT
<guilund> and Dir.glob("#{diretorio_site}/*.html") {|f| FileUtils.cp File.expand_path(f), "#{diretorio_backup}/#{diretorio_backup_agora}" } works?
<IceDragon> use STDERR for your logger
<IceDragon> ;)
Sawbones has quit []
<gks> IceDragon: *sigh* then I have to execute the command with all sorts of funky stuff to get it to a file path I want it at
<guilund> dir_files.map { ??? or am i mixing everything and making a mess
<guilund> ?
claymore has quit [Quit: Leaving]
<shevy> guilund I would use Dir[] instead of Dir.glob()
fixl has joined #ruby
<IceDragon> well can't do much about that ;x
<shevy> guilund also, write methods man
<IceDragon> or use lambdas
* IceDragon hides
<shevy> then pass it into your method
<guilund> shevy: im just testing things up ... :)
michy has joined #ruby
<shevy> your code is scary right now
<guilund> hehehe i know
<gks> IceDragon: guess I have to deal with it, thanks though!
<IceDragon> :) np
mbytes` has joined #ruby
rm__ has quit [Ping timeout: 272 seconds]
<michy> Is here someone who has has experience with ruby in combination with sketchup?
mbytes has quit [Read error: Connection reset by peer]
simoz9 has joined #ruby
<guilund> shevy if i map it works wtf?
croaky has quit [Ping timeout: 245 seconds]
<gks> IceDragon: actually, is there a way to get STDERR from a recently executed command? I'm mostly going to get it from %x{command here} type syntax, if I can check for any error entries and then just use logger that would work too
cameronbarton has left #ruby [#ruby]
burlyscudd has joined #ruby
<IceDragon> you could reroute it to STDOUT ?
<IceDragon> %x{command 2>&1}
klaut has joined #ruby
mlpinit has quit [Read error: No route to host]
<michy> I'm trying to read/write to an arduino using the arduino_firmata gem. It works with my "normal" ruby installation, but not when I run it from sketchup.
<gks> possible, is that going to put the error output in the returned variable i'm going to get though?
lethjakman has quit [Quit: WeeChat 0.4.0]
mlpinit_ has joined #ruby
<gks> if so, i have to rewrite all the code to account for new output
Kar- has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gks> i'm doing a lot of execute command -> parse results. If the results now contain STDERR output then it's going to bomb everything that isn't expecting it
Wolland has joined #ruby
<michy> the require "arduino_firmata" throws an error... Someone has experience?
<shevy> guilund sounds weird
<guilund> shevy: dir_files.map {|f| FileUtils.cp File.expand_path(f), "#{diretorio_backup}/#{diretorio_backup_agora}" }
<guilund> weird huh?
<esing> What I searched was abort(value)
<shevy> guilund you copy here - I thought you had a problem not with copy but with removal
<gks> Looks like I can use open3… it returns stdout and stderr to separate variables
<guilund> shevy: thats another line, but with the same files, i first copy to backup, then i remove, to create the new files
croaky has joined #ruby
mklappstuhl has joined #ruby
Kar- has quit [Ping timeout: 272 seconds]
gks has quit [Quit: Textual IRC Client: www.textualapp.com]
<IceDragon> gks: looks like you have a winner then!
baroquebobcat has quit [Quit: baroquebobcat]
baroquebobcat has joined #ruby
shedd has quit [Remote host closed the connection]
TheDick has quit [Quit: TheDick]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
mklappstuhl has quit [Ping timeout: 272 seconds]
<shevy> IceDragon you are motivating them to get better
<shevy> and then
<shevy> you eat them alive
<shevy> :(
<IceDragon> >.> Shhh shevy
<IceDragon> Y u gib away plan?
Kricir has joined #ruby
<shevy> dragons are evil
<shevy> and I want to slay one :>
<IceDragon> May I remind you, this is the 21st century, I will tolerate no racial discrimination *puffs smoke*
<IceDragon> I even stopped eating humans...
<IceDragon> like uhh
<IceDragon> last year methinks?
lfox has quit [Quit: ZZZzzz…]
mlpinit_ has quit [Remote host closed the connection]
Jetchisel has joined #ruby
fijimunkii has quit [Ping timeout: 252 seconds]
DGuedes has left #ruby ["Saindo"]
<shevy> well
<guilund> i remember when i slayered my first dragon.... .... in skyrim, was easy
<shevy> lol
<shevy> IceDragon your kin will be exterminated
<IceDragon> ;_;
<shevy> IceDragon do you know Siegfrid?
h0rrorvacui has joined #ruby
w_alexus has quit [Ping timeout: 264 seconds]
<IceDragon> I've tales of the lad
<IceDragon> what of him
<guilund> holy shit im so nerd
<shevy> "Siegfried discovers a dragon, and deviates from his path to slay it."
<shevy> [...] "bathe in the dragon's blood in order to become invincible to attack"
jmo has quit [Ping timeout: 240 seconds]
Kar- has joined #ruby
<shevy> IceDragon can I bathe in your blood as well? :>
jkamenik has quit [Quit: Leaving.]
<IceDragon> ;_; no shevy, you may not
* IceDragon burns incense for all the dragons who had there blood spilt before him
<IceDragon> I should a book about that, ;x instead of Knights slaying dragons because there where dangerous
<IceDragon> I should write a book about a Dragon who tried to be friends with a human
<shevy> yeah
<IceDragon> <.< and said human stands up for the dragon
<IceDragon> >.>
<shevy> in those books dragons always lose, kinda
<IceDragon> and some knight stuff happens
<shevy> there was one cooler fantasy novel though
<shevy> there was an ice worm, a huge one
<IceDragon> <.< add some witches and a few ninjas
<guilund> IceDragon: very progressist
<IceDragon> and I have a best seller
<shevy> and some group of adventurers set out to slay it
<apeiros> guilund: why do you slay my pets?!? =(
asteve has joined #ruby
<shevy> but the problem was... after you started hitting it, despair and misery hits you
asteve has quit [Max SendQ exceeded]
<shevy> the whole theme was kinda melancholic, it was a weird novel :\
jxf has quit [Ping timeout: 240 seconds]
<guilund> IceDragon: but dragons aren't like puppies, you know... maybe a puppy dragon
<shevy> IceDragon do you know the old novels about the Dragonlance saga?
ocline` has joined #ruby
<shevy> I think the ice dragons were blue and evil
<IceDragon> ;_;
<IceDragon> but but but
<shevy> silver platinum gold were good, I think
asteve has joined #ruby
tannerburson has joined #ruby
asteve has quit [Max SendQ exceeded]
dzan has quit [Remote host closed the connection]
<guilund> if you scavenger an ice dragon you get what?
<guilund> ice cubes?
Virtualize has joined #ruby
* IceDragon looks over at contract "I IceDragon, agree not to kill any humans *some badly scribbled siganture*"
asteve has joined #ruby
* IceDragon burns the paper
Kricir has quit [Remote host closed the connection]
Kar- has quit [Ping timeout: 252 seconds]
<IceDragon> ooooh shevy!
<shevy> IceDragon in the later novels in the dragonlance saga, the dragons became much larger and imposed fear and terror onto all who saw them
<shevy> then came the half-dragon hero in even later novels, that's when I stopped reading it :\
<shevy> didn't like new authors
<IceDragon> ;
<IceDragon> When new people take over its always one of 2 things:
<IceDragon> Either the series takes a new direction
<IceDragon> or the series becomes drawn and dull
ocline has quit [Ping timeout: 260 seconds]
<guilund> how old are you guys, just to check? :P
<IceDragon> 500 years old, I'm still a young dragon you know ;)
<guilund> lol
<IceDragon> jokes aside, 20
<IceDragon> methinks
<guilund> oh, when i was 20... so long ago...
<kure_> yay, young channel - 20 here
<shevy> yeah I am way past 20 myself
<guilund> im 29
<guilund> 30 this year
<guilund> but you know, 30 is the new 20
<shevy> IceDragon I stopped reading all fantasy novels except for one, raymond feist, but he will retire from writing stuff :(
<IceDragon> go to his house
<IceDragon> feed him with sweets
<IceDragon> and then tell him gently "you may not retire"
Kricir has joined #ruby
<guilund> and i take 5g of vitamin C daily, so i dont have any free radicals
tcstar has joined #ruby
<guilund> i dont AGE
Vivekananda has joined #ruby
<IceDragon> :O
<IceDragon> zomg
<kure_> guilund, how long messing around with Ruby?
<guilund> kure_: 1 year
mjburgess has quit [Ping timeout: 240 seconds]
<shevy> IceDragon well he is almost 70 years now
<shevy> IceDragon it feels like an era is going to end
<IceDragon> seriously?
<IceDragon> :O
meatherly has joined #ruby
<shevy> yeah! wait +10 years, then you are old and can relate to that!