apeiros changed the topic of #ruby to: Ruby 2.0.0-p353: http://ruby-lang.org (Ruby 1.9.3-p484) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
fuzzyhorns has quit [Quit: Leaving.]
preller has quit [Ping timeout: 252 seconds]
bricker has quit [Ping timeout: 252 seconds]
vikhyat has quit [Remote host closed the connection]
bricker has joined #ruby
drag00n has joined #ruby
sambao21 has joined #ruby
zimt09 has joined #ruby
sambao21 has quit [Client Quit]
flubba has quit [Remote host closed the connection]
mois3x has quit [Read error: Connection reset by peer]
lewix has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
keen___ has quit [Quit: Tiarra 0.1+svn-39209: SIGINT received; exit]
sambao21 has joined #ruby
momomomomo has joined #ruby
coca_rails has joined #ruby
nullsign has quit [Ping timeout: 272 seconds]
zimt09 has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
drag00n has quit [Quit: Textual IRC Client: www.textualapp.com]
terrellt has quit [Ping timeout: 248 seconds]
predator217 has joined #ruby
rootshift has joined #ruby
sambao21 has joined #ruby
drag00n has joined #ruby
funburn has joined #ruby
vlad_starkov has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
charliesome has joined #ruby
Hobogrammer_ has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
maletor has joined #ruby
eka has joined #ruby
predator117 has quit [Ping timeout: 250 seconds]
Silent__ has joined #ruby
nullsign has joined #ruby
mikemac has joined #ruby
crazymykl has quit [Quit: Konversation terminated!]
voland has joined #ruby
Geniack has quit [Disconnected by services]
Geniack_ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
GreatSUN has joined #ruby
<GreatSUN> re
senj has quit [Quit: Textual IRC Client: www.textualapp.com]
Hobogrammer has quit [Ping timeout: 250 seconds]
preller has joined #ruby
terrellt has joined #ruby
guinslym has quit [Ping timeout: 264 seconds]
Hobogrammer_ has quit [Ping timeout: 252 seconds]
freakazoid0223 has joined #ruby
petey__ has quit [Ping timeout: 246 seconds]
bamdad has quit [Quit: bamdad]
dayepa has quit [Quit: dayepa]
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
ewnd9 has joined #ruby
preller has quit [Ping timeout: 248 seconds]
banister has joined #ruby
dhruvasa1ar has quit [Read error: Operation timed out]
Spami has joined #ruby
preller has joined #ruby
tvw has quit []
tvw has joined #ruby
elux has joined #ruby
primenum has joined #ruby
lkba has joined #ruby
liamkeily has joined #ruby
elux has quit [Client Quit]
Jetchisel has joined #ruby
dhruvasagar has joined #ruby
timonv has joined #ruby
baroquebobcat has joined #ruby
simoz4 has quit [Ping timeout: 248 seconds]
jamesaanderson has joined #ruby
jamesaanderson has quit [Client Quit]
sergicles has quit [Quit: sergicles]
jamblack has joined #ruby
platzhirsch has left #ruby [#ruby]
timonv has quit [Ping timeout: 240 seconds]
mklappstuhl has quit [Remote host closed the connection]
preller has quit [Ping timeout: 248 seconds]
snath has quit [Ping timeout: 272 seconds]
nowthatsamatt has quit [Quit: nowthatsamatt]
bubu has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
coca_rails has quit [Ping timeout: 245 seconds]
Hobogrammer_ has joined #ruby
vlad_starkov has joined #ruby
preller has joined #ruby
Hobogrammer has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
guinslym has joined #ruby
Silent__ has quit [Ping timeout: 246 seconds]
Hobogrammer_ has quit [Ping timeout: 240 seconds]
Heskie has quit []
dhruvasagar has joined #ruby
simoz4 has joined #ruby
Megtastique has quit []
whunt has quit [Quit: Computer has gone to sleep.]
centipedefarmer has quit [Remote host closed the connection]
benlieb has joined #ruby
robustus has quit [Ping timeout: 245 seconds]
p4d4w4n has joined #ruby
snath has joined #ruby
AMcP has quit [Remote host closed the connection]
robustus has joined #ruby
osvico has joined #ruby
guinslym has quit [Ping timeout: 252 seconds]
guinslym has joined #ruby
conceal_rs_____1 has quit [Quit: Tiarra 0.1+svn-36726: SIGTERM received; exit]
Megtastique has joined #ruby
ephemerian has quit [Quit: Leaving.]
shastaky has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
ssvo_ has quit [Ping timeout: 252 seconds]
mgberlin has quit [Quit: mgberlin]
shastaky has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
kevind has quit [Quit: kevind]
vt102 has joined #ruby
mark_locklear has joined #ruby
<flaccid> i'm reading https://github.com/capistrano/sshkit/blob/master/EXAMPLES.md#setting-global-ssh-options and i'm wondering where this Netssh object is from. is this is a typo ?
flubba has joined #ruby
ivar has quit [Read error: Connection reset by peer]
shastaky has joined #ruby
preller has quit [Ping timeout: 265 seconds]
shastaky has quit [Read error: Connection reset by peer]
ivar has joined #ruby
preller has joined #ruby
shastaky has joined #ruby
raphaelivan has joined #ruby
shastaky has quit [Remote host closed the connection]
mojjojo has quit [Quit: mojjojo]
lewix has joined #ruby
shastaky has joined #ruby
tkuchiki has joined #ruby
xk_id has quit [Quit:
nullsign has quit [Ping timeout: 240 seconds]
ivar has quit [Read error: Connection reset by peer]
ivar has joined #ruby
Azure has quit [Quit: My MBP went to sleep.]
phipes has quit [Remote host closed the connection]
Azure has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
g0bl1n has quit [Ping timeout: 252 seconds]
mark_locklear has quit [Ping timeout: 246 seconds]
fandikurnia01 has quit [Quit: Leaving]
sambao21 has joined #ruby
ewnd9 has quit [Ping timeout: 272 seconds]
nullsign has joined #ruby
shastaky has quit [Quit: Leaving...]
crucify_me has joined #ruby
shastaky has joined #ruby
liamkeil1 has joined #ruby
marr has quit [Ping timeout: 260 seconds]
postmodern has joined #ruby
<crucify_me> hi incorrigible noob here: sorry, but why does this prog. appear to run twice? Also, is require_relative completely replaced require || why do I need it to run here? thanks: http://pastie.org/8562039
<crucify_me> has* require_relative
tvw has quit []
<crucify_me> <<
<crucify_me> ^^
liamkeily has quit [Ping timeout: 250 seconds]
ssvo has joined #ruby
punkcat has quit [Ping timeout: 272 seconds]
troyready has quit [Quit: Leaving]
sparq has joined #ruby
Nogbit has joined #ruby
troyready has joined #ruby
brennanMKE has quit [Remote host closed the connection]
iliketu__ has quit [Quit: zzzzz…..]
kitak_ has joined #ruby
digifiv5e has joined #ruby
mikepack_ has joined #ruby
digifiv5e is now known as Guest79735
blazeroot has quit [Quit: Wychodzi]
nanoyak has quit [Quit: Computer has gone to sleep.]
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ckinni has joined #ruby
mikepack has quit [Read error: Operation timed out]
phipes has joined #ruby
gverri has joined #ruby
jamblack has quit [Quit: jamblack]
kitak has quit [Ping timeout: 245 seconds]
tonni has quit [Read error: Connection reset by peer]
tonni has joined #ruby
xk_id has joined #ruby
mikepack_ has quit [Ping timeout: 272 seconds]
freakazoid0223 has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Read error: Operation timed out]
n0kada has quit [Remote host closed the connection]
coca_rails has joined #ruby
guardianx has joined #ruby
rushed has joined #ruby
moneydouble has joined #ruby
liamkeil1 has quit [Ping timeout: 264 seconds]
hadees has quit [Quit: hadees]
momomomomo has quit [Quit: momomomomo]
michaeldeol has quit [Remote host closed the connection]
coca_rails has quit [Ping timeout: 245 seconds]
lyanchih has joined #ruby
codygman has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
hadees has joined #ruby
zz_jrhorn424 is now known as jrhorn424
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
hadees has quit [Client Quit]
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
freakazoid0223 has joined #ruby
jamesaanderson has joined #ruby
culturel_ has joined #ruby
preller has quit [Ping timeout: 252 seconds]
iliketur_ has joined #ruby
w4pm has quit [Ping timeout: 252 seconds]
jonahR has quit [Quit: jonahR]
nateberkopec has joined #ruby
YOURBESTFRIEND is now known as someoneelse
momomomomo has joined #ruby
someoneelse is now known as YOURBESTFRIEND
jrhorn424 is now known as zz_jrhorn424
lfox has joined #ruby
Nogbit has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dapz has joined #ruby
werdnativ has quit [Ping timeout: 260 seconds]
ssvo has quit [Ping timeout: 264 seconds]
preller has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
cycorld has joined #ruby
chrisja has quit [Quit: leaving]
sleetdrop has joined #ruby
colonolGron has quit [Quit: leaving]
Azure has quit [Quit: My MBP went to sleep.]
yshh has joined #ruby
Azure has joined #ruby
momomomomo has quit [Quit: momomomomo]
nateberkopec has quit [Quit: Leaving...]
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
lyanchih has quit [Ping timeout: 240 seconds]
falood has joined #ruby
lyanchih has joined #ruby
kitak_ has quit [Remote host closed the connection]
kitak has joined #ruby
amsi has quit [Quit: Leaving]
flubba has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
hogoo has joined #ruby
ahawkins has quit [Ping timeout: 240 seconds]
flubba has joined #ruby
mascarita-sagrad has joined #ruby
mascarita-sagrad has left #ruby [#ruby]
Barrin6 has joined #ruby
maca has joined #ruby
lyanchih_ has joined #ruby
mascarita-sagrad has joined #ruby
mascarita-sagrad has left #ruby [#ruby]
lyanchih has quit [Ping timeout: 272 seconds]
lyanchih_ is now known as lyanchih
mascarita-sagrad has joined #ruby
maca has left #ruby [#ruby]
aspires has quit []
Seich has joined #ruby
mascarita-sagrad has left #ruby [#ruby]
p4d4w4n has quit [Quit: This computer has gone to sleep]
brianpWins has quit [Ping timeout: 264 seconds]
michaeldeol has joined #ruby
lyanchih has quit [Ping timeout: 250 seconds]
freezey has quit [Remote host closed the connection]
gja has joined #ruby
nari has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
michaeldeol has quit [Ping timeout: 246 seconds]
Jetchisel has joined #ruby
jokke has quit [Quit: WeeChat 0.4.2]
mary5030 has joined #ruby
aspires has joined #ruby
timonv has joined #ruby
fijimunk1i has joined #ruby
fijimunkii has quit [Ping timeout: 252 seconds]
preller has quit [Ping timeout: 252 seconds]
michael_lee has joined #ruby
peregrine81 has quit []
timonv has quit [Ping timeout: 246 seconds]
jonahR has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
peregrine81 has joined #ruby
closures999 has joined #ruby
raphaelivan has quit [Quit: Leaving.]
ivar has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby
centipedefarmer has joined #ruby
primenum has quit [Ping timeout: 272 seconds]
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brennanMKE has joined #ruby
guiocavalcanti has joined #ruby
ckinni has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
centipedefarmer has joined #ruby
marcgg_ has quit [Read error: Connection reset by peer]
marcgg has joined #ruby
justinxreese has quit [Ping timeout: 246 seconds]
rubyracer has joined #ruby
gja has joined #ruby
brennanMKE has quit [Ping timeout: 240 seconds]
justinxreese has joined #ruby
guiocavalcanti has quit [Ping timeout: 240 seconds]
heidi has quit [Quit: Leaving.]
tylersmith has quit [Remote host closed the connection]
nari has joined #ruby
coca_rails has joined #ruby
mr_snowf1ake has joined #ruby
benlieb has quit [Quit: benlieb]
preller has quit [Ping timeout: 246 seconds]
gja has quit [Quit: This computer has gone to sleep]
brianpWins has joined #ruby
vlad_starkov has joined #ruby
justsee has joined #ruby
cow_ has joined #ruby
rootshift has quit [Quit: rootshift]
Asitha has joined #ruby
preller has joined #ruby
varfoo has joined #ruby
benlieb has joined #ruby
guiocavalcanti has joined #ruby
kenneth has quit [Quit: kenneth]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Senjai`work has quit [Quit: WeeChat 0.3.7]
flame_ has quit [Quit: Computer has gone to sleep.]
subbyyy_ has quit [Ping timeout: 248 seconds]
Megtastique has quit []
preller has quit [Ping timeout: 248 seconds]
petey_ has joined #ruby
Seich has quit [Quit: Computer has gone to sleep.]
Seich has joined #ruby
nomenkun has joined #ruby
sergicles has joined #ruby
dbjeepn has quit [Excess Flood]
Hanmac1 has joined #ruby
dbjeepn has joined #ruby
reset has quit [Ping timeout: 250 seconds]
dbjeepn has quit [Excess Flood]
Hanmac has quit [Ping timeout: 245 seconds]
dbjeepn has joined #ruby
dbjeepn has quit [Excess Flood]
dbjeepn has joined #ruby
Seich has quit [Ping timeout: 260 seconds]
dbjeepn has quit [Excess Flood]
dbjeepn has joined #ruby
preller has joined #ruby
dbjeepn has quit [Excess Flood]
werdnativ has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
dbjeepn has joined #ruby
troyready has quit [Ping timeout: 252 seconds]
habanany has joined #ruby
nfk has quit [Ping timeout: 246 seconds]
sepp2k has quit [Read error: Connection reset by peer]
hogoo has quit [Remote host closed the connection]
Hanmac has joined #ruby
ckinni has joined #ruby
gja has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
dbjeepn has quit [Excess Flood]
mikemac has quit [Quit: Konversation terminated!]
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has quit []
dbjeepn has joined #ruby
simoz4 has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Excess Flood]
dbjeepn has quit [Excess Flood]
nanoyak has joined #ruby
robbyoconnor has joined #ruby
primenum has joined #ruby
dbjeepn has joined #ruby
crazymykl has joined #ruby
yfeldblum has quit [Remote host closed the connection]
dbjeepn has quit [Excess Flood]
maletor has quit [Quit: Computer has gone to sleep.]
dbjeepn has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
grvgr has quit [Quit: grvgr]
brianpWins has quit [Remote host closed the connection]
dbjeepn has quit [Excess Flood]
dbjeepn has joined #ruby
thams has quit [Quit: thams]
dbjeepn has quit [Excess Flood]
dbjeepn has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
BombStrike has quit [Excess Flood]
EngierkO has quit [Excess Flood]
snath has quit [Quit: Ex-Chat]
grvgr has joined #ruby
BombStrike has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
coldie has joined #ruby
bogeyd6 has joined #ruby
michaeldeol has joined #ruby
guiocavalcanti has quit [Ping timeout: 265 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
snath has joined #ruby
fijimunk1i has quit [Ping timeout: 246 seconds]
fuhgeddaboudit has joined #ruby
AMcP has joined #ruby
diegok has quit [Excess Flood]
BombStrike has quit [Excess Flood]
guardianx has quit [Excess Flood]
jamesaanderson has quit [Excess Flood]
guardianx has joined #ruby
guardianx has quit [Excess Flood]
preller has quit [Ping timeout: 248 seconds]
michaeldeol has quit [Ping timeout: 260 seconds]
guardianx has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
guardianx has quit [Excess Flood]
BombStrike has joined #ruby
guardianx has joined #ruby
jamesaanderson has joined #ruby
guardianx has quit [Excess Flood]
pen has quit [Remote host closed the connection]
jamesaanderson has quit [Excess Flood]
guardianx has joined #ruby
diegok has joined #ruby
guardianx has quit [Excess Flood]
pen has joined #ruby
BombStrike has quit [Excess Flood]
guardianx has joined #ruby
guardianx has left #ruby [#ruby]
estebistec has joined #ruby
BombStrike has joined #ruby
bvsh has quit [Ping timeout: 264 seconds]
pencilcheck has joined #ruby
hogeo has joined #ruby
diegok has quit [Excess Flood]
BombStrike has quit [Excess Flood]
sleetdrop has quit [Excess Flood]
BombStrike has joined #ruby
mikepack has joined #ruby
diegok has joined #ruby
Megtastique has joined #ruby
guiocavalcanti has joined #ruby
diegok has quit [Excess Flood]
BombStrike has quit [Excess Flood]
peregrine81 has quit [Excess Flood]
CaptainJet has quit [Read error: Connection reset by peer]
pen has quit [Ping timeout: 265 seconds]
Megtastique has quit [Client Quit]
peregrine81 has joined #ruby
w4pm has joined #ruby
diegok has joined #ruby
BombStrike has joined #ruby
CaptainJet has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
rushed has quit [Quit: rushed]
pel_daniel has left #ruby [#ruby]
culturel_ has joined #ruby
culturel_ has quit [Max SendQ exceeded]
diegok has quit [Excess Flood]
diegok has joined #ruby
culturel_ has joined #ruby
grvgr has quit [Quit: grvgr]
brennanMKE has joined #ruby
hogoo has joined #ruby
botorosa has joined #ruby
jkhwan has quit [Remote host closed the connection]
petey_ has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
peregrine81 has quit [Excess Flood]
preller has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
centipedefarmer has joined #ruby
jkhwan has joined #ruby
<YOURBESTFRIEND> >> puts "test"
<eval-in> YOURBESTFRIEND => undefined method `puts ' for main:Object (NoMethodError) ... (https://eval.in/80750)
brennanMKE has quit [Ping timeout: 245 seconds]
noop has joined #ruby
<YOURBESTFRIEND> >> def spaces in the name; puts 'cool'; end; spaces in the name
<eval-in> YOURBESTFRIEND => cool ... (https://eval.in/80751)
hogoo has quit [Ping timeout: 240 seconds]
gja has quit [Quit: This computer has gone to sleep]
<YOURBESTFRIEND> I shall use this instead of underscores from now on, much clearer
coldmethod has quit [Remote host closed the connection]
CaptainJet has quit [Read error: No route to host]
zeromodulus has joined #ruby
Spami has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
phipes has quit [Remote host closed the connection]
fuhgeddaboudit has quit [Ping timeout: 260 seconds]
hogoo has joined #ruby
whunt has joined #ruby
preller has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
nomenkun has quit [Quit: Leaving...]
kevind has joined #ruby
hogoo has quit [Remote host closed the connection]
noop has quit [Ping timeout: 260 seconds]
baroquebobcat has joined #ruby
nomenkun has joined #ruby
tylersmith has joined #ruby
soba has joined #ruby
mrsolo has joined #ruby
mrsolo has quit [Client Quit]
CaptainJet has joined #ruby
preller has joined #ruby
whunt has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
tylersmith has quit [Ping timeout: 260 seconds]
Spami has quit [Quit: This computer has gone to sleep]
preller has quit [Ping timeout: 248 seconds]
guiocavalcanti has quit [Remote host closed the connection]
cow_ has quit [Remote host closed the connection]
centipedefarmer has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
funburn has quit [Quit: funburn]
jamblack has joined #ruby
phipes has joined #ruby
Spami has joined #ruby
mgberlin has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
habanany1 has joined #ruby
gquental has quit [Ping timeout: 252 seconds]
petey_ has joined #ruby
_5kg has quit [Excess Flood]
_5kg has joined #ruby
zeade has quit [Quit: Leaving.]
Fire-Dragon-DoL has quit [Quit: Leaving.]
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
habanany has quit [Read error: Operation timed out]
yfeldblum has joined #ruby
digital-ghost has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coca_rails has joined #ruby
Akuma has joined #ruby
braincrash has joined #ruby
flaccid has quit [Read error: Connection reset by peer]
timonv has joined #ruby
hogeo has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
hogeo has joined #ruby
crucify_me has quit []
coca_rails has quit [Ping timeout: 245 seconds]
yacks has quit [Quit: Leaving]
L8D has quit [Ping timeout: 248 seconds]
habanany1 has quit [Ping timeout: 250 seconds]
timonv has quit [Ping timeout: 252 seconds]
preller has quit [Ping timeout: 252 seconds]
jamest3 has joined #ruby
<jamest3> Does anyone know of a good news api (preferable one that lets me send a query string regarding what topic/person i want to search for) i can incorporate into my rails app?
michaeldeol has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
gquental has joined #ruby
hogeo has quit [Remote host closed the connection]
Asitha has quit []
subbyyy_ has joined #ruby
jamblack has quit [Quit: jamblack]
jamblack has joined #ruby
AMcP has quit [Remote host closed the connection]
AMcP has joined #ruby
ahawkins has joined #ruby
AMcP has quit [Read error: Connection reset by peer]
michaeldeol has quit [Ping timeout: 260 seconds]
AMcP has joined #ruby
preller has joined #ruby
freakazoid0223 has quit [Ping timeout: 240 seconds]
phipes has quit [Remote host closed the connection]
dktm has joined #ruby
cmedeiros has quit [Ping timeout: 245 seconds]
machuga is now known as machuga|away
freerobby has quit [Quit: Leaving.]
yfeldblum has joined #ruby
culturel_ has joined #ruby
hogeo has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
io_syl has quit []
dseitz has joined #ruby
framling has quit [Quit: Lost terminal]
phipes has joined #ruby
framling has joined #ruby
xk_id has quit [Quit:
yfeldblum has quit [Read error: Operation timed out]
preller has quit [Ping timeout: 260 seconds]
jkhwan has quit [Remote host closed the connection]
brennanMKE has joined #ruby
ce_afk is now known as cescalante
moneydouble has quit [Quit: Leaving.]
lfox has quit [Quit: ZZZzzz…]
mj12albert has joined #ruby
brennanMKE has quit [Ping timeout: 240 seconds]
cow_ has joined #ruby
preller has joined #ruby
fijimunkii has joined #ruby
cescalante is now known as ce_afk
justsee has quit [Ping timeout: 250 seconds]
Bira has quit [Remote host closed the connection]
L8D has joined #ruby
jamest3 has quit [Remote host closed the connection]
Rix has quit [Ping timeout: 252 seconds]
Rix has joined #ruby
justsee has joined #ruby
mj12albert has quit [Quit: Textual IRC Client: www.textualapp.com]
hogoo has joined #ruby
dogweather has joined #ruby
mj12albert has joined #ruby
<krainboltgreene> Want to help contribute to a open source project? Hamster needs help in a few areas, like this: https://github.com/hamstergem/hamster/issues/68
yfeldblum has joined #ruby
hogoo has quit [Remote host closed the connection]
AMcP has quit [Remote host closed the connection]
hogoo has joined #ruby
botorosa has left #ruby [#ruby]
preller has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
yshh has quit [Remote host closed the connection]
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
kevind_ has joined #ruby
havenwood has quit [Remote host closed the connection]
snath has quit [Remote host closed the connection]
linhmtran has joined #ruby
closures999 has quit [Ping timeout: 246 seconds]
IceDragon has quit [Quit: Space~~~]
kevind has quit [Ping timeout: 272 seconds]
kevind_ is now known as kevind
mary5030 has quit [Remote host closed the connection]
linhmtran has quit [Remote host closed the connection]
closures999 has joined #ruby
L8D has quit [Ping timeout: 245 seconds]
snath has joined #ruby
yshh has joined #ruby
machty has joined #ruby
<machty> so, i feel like i should know this at this point, but i do not: what is the fundamental incompatibility, if any, between ruby and websockets?
kevind has quit [Remote host closed the connection]
cow_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
kevind has joined #ruby
<krainboltgreene> There is none.
mary5030 has quit [Remote host closed the connection]
kevind has quit [Client Quit]
<krainboltgreene> Websockets is a way to do TCP-like persisted connections via HTTP.
<krainboltgreene> Ruby is a programming language.
<krainboltgreene> There are like 6 websocket ruby libraries out there. reel-io supports it.
kozma has joined #ruby
reach has joined #ruby
io_syl has joined #ruby
io_syl has quit [Client Quit]
psyl0n has joined #ruby
descala has quit [Ping timeout: 260 seconds]
descala has joined #ruby
dik_dak has quit [Quit: Leaving]
Barrin6 has quit [Quit: Leaving]
yfeldblum has quit [Remote host closed the connection]
gja has joined #ruby
samsonasu has quit [Quit: samsonasu]
postmodern has quit [Quit: Leaving]
kevind has joined #ruby
vpretzel has quit [Remote host closed the connection]
samsonasu has joined #ruby
cow_ has joined #ruby
coca_rails has joined #ruby
lewix has quit [Remote host closed the connection]
cow_ has quit [Client Quit]
larissa has quit [Quit: Leaving]
ahawkins has quit [Ping timeout: 240 seconds]
synergy has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
guinslym has quit [Ping timeout: 252 seconds]
drag00n has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
justsee has quit [Quit: Lost terminal]
mercwithamouth has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
hogoo has quit [Remote host closed the connection]
kevind has quit [Quit: kevind]
hogoo has joined #ruby
michaeldeol has quit [Ping timeout: 246 seconds]
preller has quit [Read error: Operation timed out]
ylluminate` has joined #ruby
ylluminate` has quit [Client Quit]
Hanmac1 has joined #ruby
kevind has joined #ruby
kevind has quit [Client Quit]
Hanmac has quit [Ping timeout: 260 seconds]
<machty> krainboltgreene: i don't follow... WebSockets means TCP, no?
psyl0n has quit []
freerobby has joined #ruby
ylluminate has quit [Ping timeout: 260 seconds]
tectonic has joined #ruby
freerobby1 has joined #ruby
aagdbl has joined #ruby
frustrum has quit [Ping timeout: 252 seconds]
freerobby has quit [Read error: Connection reset by peer]
OdNairy has joined #ruby
shastaky has quit [Quit: Leaving...]
preller has joined #ruby
tectonic has quit [Client Quit]
Azure has quit [Quit: Textual IRC Client: www.textualapp.com]
freerobby1 has quit [Ping timeout: 265 seconds]
brennanMKE has joined #ruby
<machty> i think i'm cray cray
<machty> rails hangover
prc has quit [Quit: Leaving.]
mkevin has joined #ruby
LostMonk- has joined #ruby
brennanMKE has quit [Ping timeout: 250 seconds]
Tritania has quit [Ping timeout: 246 seconds]
LostMonk has quit [Ping timeout: 260 seconds]
freakazoid0223 has joined #ruby
klaut has joined #ruby
funburn has joined #ruby
chomskiii has joined #ruby
sayan has joined #ruby
coca_rails has quit [Read error: Connection reset by peer]
coca_rai_ has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
dhruvasagar has joined #ruby
w4pm has quit [Ping timeout: 252 seconds]
phipes has quit [Remote host closed the connection]
mary5030 has joined #ruby
estebistec has quit [Remote host closed the connection]
ckinni has joined #ruby
jamblack has quit [Quit: jamblack]
vlad_starkov has joined #ruby
coca_rai_ has quit [Ping timeout: 245 seconds]
synergy has quit [Remote host closed the connection]
justsee has quit [Ping timeout: 264 seconds]
preller has quit [Ping timeout: 252 seconds]
mr_snowf1ake has quit [Ping timeout: 252 seconds]
Tritania has joined #ruby
luckyrub_ has joined #ruby
lewix has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
luckyruby has quit [Ping timeout: 246 seconds]
mary5030 has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
rubyracer has quit [Quit: Konversation terminated!]
thams has joined #ruby
postmodern has joined #ruby
preller has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mr_snowf1ake has joined #ruby
timonv has joined #ruby
SimplyAubs has joined #ruby
BrixSat has quit [Read error: Connection reset by peer]
SimplyAubs is now known as Guest73449
dukz has joined #ruby
BrixSat has joined #ruby
dukz_ has joined #ruby
Jake232 has joined #ruby
angusiguess has quit [Ping timeout: 246 seconds]
hogoo has quit [Remote host closed the connection]
Guest73449 has quit [Client Quit]
lyanchih has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xapak has joined #ruby
xapak has left #ruby [#ruby]
dukz has quit [Ping timeout: 260 seconds]
dukz has joined #ruby
petey_ has quit [Remote host closed the connection]
primenum has quit [Ping timeout: 240 seconds]
preller has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
subbyyy_ has quit [Ping timeout: 265 seconds]
lyanchih has quit [Client Quit]
dukz has quit [Remote host closed the connection]
dukz_ has quit [Ping timeout: 264 seconds]
dukz has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
funburn has quit [Quit: funburn]
lyanchih has joined #ruby
mkevin has left #ruby [#ruby]
dhruvasagar has quit [Read error: Connection reset by peer]
ScottNYC has quit [Quit: Linkinus - http://linkinus.com]
closures999 has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
closures999 has joined #ruby
butblack has quit [Quit: butblack]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dukz has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Client Quit]
dhruvasagar has joined #ruby
michael_lee has quit [Quit: Ex-Chat]
wallerdev has joined #ruby
dapz has joined #ruby
preller has joined #ruby
michaeldeol has joined #ruby
LexicalScope has joined #ruby
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
coldie has quit []
mgberlin has quit [Quit: mgberlin]
JohnBat26 has joined #ruby
preller has quit [Ping timeout: 250 seconds]
freerobby has joined #ruby
zipper has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
freerobby1 has joined #ruby
jonahR has quit [Quit: jonahR]
angusiguess has joined #ruby
timonv has joined #ruby
phansch has joined #ruby
tagrudev has joined #ruby
preller has joined #ruby
freerobby1 has quit [Ping timeout: 264 seconds]
noop has joined #ruby
brennanMKE has joined #ruby
nanoyak has joined #ruby
freerobby has joined #ruby
angusiguess has quit [Ping timeout: 250 seconds]
culturel_ has joined #ruby
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iMe has quit [Quit: Bye Bye]
DanBoy has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 265 seconds]
phansch has quit [Remote host closed the connection]
DanBoy has joined #ruby
d45h has joined #ruby
freerobby has quit [Ping timeout: 260 seconds]
iMe has joined #ruby
phipes has joined #ruby
coca_rails has joined #ruby
varfoo has quit [Ping timeout: 260 seconds]
timonv has quit [Remote host closed the connection]
iamdoo2 has quit [Ping timeout: 265 seconds]
hogeo has quit [Remote host closed the connection]
timonv has joined #ruby
phansch has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
hogeo has joined #ruby
samsonasu has quit [Quit: samsonasu]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Cope> is that what you get if you drink too much koolaid? or PBR?
coderhs has joined #ruby
<Cope> wait - it may not be possible to drink too much PBR...
cads has joined #ruby
timonv has joined #ruby
amritanshu_RnD has joined #ruby
butblack has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<shevy> YOURBESTFRIEND hmm but these are not spaces... you use some unicode thingy right? I can't read it :(
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
kenneth has joined #ruby
hephaestus_rg has joined #ruby
<hephaestus_rg> hello
iamdoo2 has joined #ruby
<hephaestus_rg> performance question: i'm doing `ruby name.rb data.txt`
Seich has joined #ruby
<YOURBESTFRIEND> yes it's unicode… but it's still a space, though
<hephaestus_rg> inside of a loop
<hephaestus_rg> and it's really friggen slow
Seich has quit [Client Quit]
<hephaestus_rg> is there some caching i could do or a better way to do this?
<jle`> is that a haiku?
Seich has joined #ruby
<jle`> sorry wrong channel
phipes has quit [Remote host closed the connection]
guinslym has joined #ruby
phansch has quit [Quit: Leaving]
subbyyy has joined #ruby
lewix_ has joined #ruby
OdNairy has joined #ruby
guinslym has quit [Remote host closed the connection]
johno has joined #ruby
lewix_ has quit [Remote host closed the connection]
Seich has quit [Ping timeout: 250 seconds]
d45h has quit []
lewix_ has joined #ruby
<shevy> hephaestus_rg did you show ruby code
simoz4 has joined #ruby
<hephaestus_rg> i can push to github if that would help explain it
LexicalScope has quit [Ping timeout: 248 seconds]
<shevy> yes
coca_rails has quit [Read error: Connection reset by peer]
<shevy> except that I dont know what you mean with "push to github"
coca_rails has joined #ruby
<shevy> there is a simple textarea for pasting the code you use
lewix_ has quit [Ping timeout: 250 seconds]
tobago has joined #ruby
butblack has quit [Quit: butblack]
<hephaestus_rg> i'll just upload the whole thing in case you need context, on bitbucket now
<hephaestus_rg> output = `ruby #{strat} #{filepath}`
simoz4 has quit [Ping timeout: 260 seconds]
<shevy> you actually use two loops here, don't you?
<hephaestus_rg> am i?
<shevy> well, parse_raw_data() uses one and initialize() uses one
coca_rails has quit [Ping timeout: 245 seconds]
<shevy> the code seems not very well defined, you don't use many methods and put so much inside of initialize :(
<shevy> it is also uncommon to have to use `` when you make use of a ruby script. `ruby #{strat} #{filepath}` why not use strat directly?
<hephaestus_rg> well that's only called once, the while loop is hte bottleneck
<hephaestus_rg> the strategy files are designed to read from STDIN and ouput to STDOUT
<hephaestus_rg> for a hackerrank.com thing
echevemaster has quit [Quit: Leaving]
<shevy> I really dont know why you need to use "ruby bla" rather than just ClassName.new(something)
subbyyy has quit [Quit: none 0.3.9.2]
<hephaestus_rg> b/c the ruby files don't strictly even need to be classes
<hephaestus_rg> according to the official rules
zz_N00D is now known as CripperZ
<shevy> omg :\
<hephaestus_rg> just read from stdin and ouput to stdout
gja has joined #ruby
pwestlund_away is now known as pwestlund
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hephaestus_rg> i was considering doing it that way, but then that creates a leaky abstraction
LostMonk- has quit [Read error: Connection reset by peer]
<shevy> Anyway, I have a big .rb file that is 1.1MB in size and has about 72 arrays, with a total content of 11.000
<hephaestus_rg> where my strategy.rb file needs to be different in development
tyl has joined #ruby
<shevy> reading that file in with File.readlines takes less than a second
<shevy> how big are the files you read in?
<hephaestus_rg> well, i'm also on an intel atom 1.6ghz
<hephaestus_rg> and a 5400 rpm hdd
<hephaestus_rg> the ruby file is
<shevy> I have a cheap machine
<shevy> only RAM is high, 4 gig
LostMonk has joined #ruby
<hephaestus_rg> ~ 10k characters
<krainboltgreene> machty: No, it doesn't.
<shevy> should be super fast then
Elhu has joined #ruby
<hephaestus_rg> the input to the strategy file
<hephaestus_rg> is about 500 characters
simoz4 has joined #ruby
<krainboltgreene> machty: Websockets is "TCP-like" persistant connections over HTTP which is over TCP.
<hephaestus_rg> the slowdown seems to be starting and restarting the ruby interpreter
<krainboltgreene> It's basically TCP via HTTP if you can't do straight up TCP.
<hephaestus_rg> via backticks
<hephaestus_rg> i wouldn't call myself a great dev by any stretch, so if you think the whole process could be redesigned let me know
ayaz has joined #ruby
ayaz has quit [Changing host]
ayaz has joined #ruby
hephaestus_rg has left #ruby [#ruby]
hephaestus_rg has joined #ruby
<hephaestus_rg> whoops closed the wrong tab
ayaz has quit [Client Quit]
HD has joined #ruby
klaut has quit []
zeromodulus has quit [Quit: leaving]
freerobby has joined #ruby
sg has joined #ruby
wald0 has joined #ruby
<pragmatism> hephaestus_rg: womp womp
lewix has quit [Remote host closed the connection]
hephaestus_rg has left #ruby [#ruby]
Beoran_ has joined #ruby
hephaestus_rg has joined #ruby
<hephaestus_rg> Colloquy has unintuitive right click behavior
<pragmatism> Which OS are you running?
lewix has joined #ruby
ayaz has joined #ruby
<sg> for the purposes of models' class design how should i handle something like an accounting system where each Transaction has several LineItems that each have an Account and Amount?
zipper has quit [Ping timeout: 252 seconds]
<hephaestus_rg> OSX
<pragmatism> Dude, Linkinus
<sg> then i need to enumerate all lineitems of a given account
<pragmatism> check it out
ayaz has quit [Changing host]
ayaz has joined #ruby
simoz4 has quit [Ping timeout: 240 seconds]
<hephaestus_rg> paid irc client?
angusiguess has joined #ruby
zipper has joined #ruby
preller has quit [Ping timeout: 265 seconds]
dayepa has joined #ruby
Beoran has quit [Ping timeout: 272 seconds]
<pragmatism> sg: Have the parent class maintain an ivar array that only allows objects of LineItem type. I'm assuming you're using a relational database to store your data: use a ActiveRecord or another system to store those relationships
preller has joined #ruby
<pragmatism> hephaestus_rg: Great client.
freerobby has quit [Ping timeout: 260 seconds]
<pragmatism> Try the trial
<sg> pragmatism: this is more of a personal exercise to help me with my OO design, i am not using any backend to store any data
<hephaestus_rg> i might end up impulse buying it if i do
<pragmatism> Ah
<hephaestus_rg> lets see if i can put up with colloquy
dayepa has quit [Client Quit]
timonv has quit [Remote host closed the connection]
<pragmatism> Then transaction should have an ivar array that only allows items of class Transaction
<pragmatism> sorry of class Linetimes
brennanMKE has joined #ruby
timonv has joined #ruby
<pragmatism> and each LineItem should be initialized with an account and Amount
<pragmatism> data classes.
johno has left #ruby [#ruby]
angusiguess has quit [Ping timeout: 240 seconds]
<sg> right. but then i have the scenario of needing to get all LineItems associated with a specific account (we dont care about transactions which may have lineitems from different accounts)
<sg> how do i do that without needing to iterate through every transaction's lineitems?
tonni has quit [Remote host closed the connection]
tonni has joined #ruby
varfoo has joined #ruby
OdNairy has quit [Ping timeout: 260 seconds]
<pragmatism> Update an Account array of IDs each time a transaction refers to it?
dayepa has joined #ruby
preller has quit [Ping timeout: 248 seconds]
krz has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
brennanMKE has quit [Ping timeout: 265 seconds]
<sg> hma
<sg> hm*
<pragmatism> If they cannot be initialized in order (data objects), then without an relational DB you'll have to refer to the objects on both ends with a controller.
LostMonk- has joined #ruby
<pragmatism> Which is whack
<pragmatism> Stateless machines may not work in your example/
<pragmatism> So you end up with something stateful with no ability to persist
subbyyy has joined #ruby
<pragmatism> I'm sure there's a better pattern for your problem
<pragmatism> but in RL, use a DB.
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
subbyyy has quit [Client Quit]
tonni has quit [Ping timeout: 245 seconds]
LostMonk has quit [Ping timeout: 265 seconds]
<sg> thanks
LostMonk- has quit [Read error: Connection reset by peer]
CpuID has quit [Ping timeout: 250 seconds]
preller has joined #ruby
jwang has quit [Quit: Leaving]
txdv has quit [Ping timeout: 252 seconds]
dapz has joined #ruby
mikepack has quit [Remote host closed the connection]
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hephaestus_rg> could i make it faster
<hephaestus_rg> could i replace
<hephaestus_rg> output = `ruby strategy.rb filepath.txt`
<hephaestus_rg> with
subbyyy has joined #ruby
<hephaestus_rg> output = `ruby strategy.rb contents_of_file`
smirn0v has joined #ruby
<hephaestus_rg> in a unix style consle
subbyyy has quit [Client Quit]
<hephaestus_rg> how can i run ruby file.rb data.txt
<hephaestus_rg> with the data.txt as a string
<hephaestus_rg> instead of having to read a file
<hephaestus_rg> if it was a single line i think it would work
<hephaestus_rg> but it's multiple lines
dhruvasagar has quit [Ping timeout: 260 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby
subbyyy has joined #ruby
<hephaestus_rg> seems like i could use the load method
dayepa has quit [Ping timeout: 240 seconds]
dayepa has joined #ruby
akonny has joined #ruby
Xiti has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Read error: Connection reset by peer]
cow_ has joined #ruby
Xiti has joined #ruby
aganov has joined #ruby
coldmethod has joined #ruby
cycorld has quit []
hogeo has quit [Remote host closed the connection]
h_kon has joined #ruby
fluve has joined #ruby
hogeo has joined #ruby
tonni has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
radic has quit [Read error: Connection reset by peer]
sg has quit [Remote host closed the connection]
hogeo has joined #ruby
timonv has joined #ruby
Akuma has quit [Ping timeout: 246 seconds]
<pragmatism> in that case, data.txt is in ARGV
dhruvasagar has joined #ruby
cycorld has joined #ruby
<varfoo> i have a method foo_bar_baz, and a variable foobar = 'baz'
preller has quit [Ping timeout: 264 seconds]
dktm has quit [Ping timeout: 264 seconds]
CaptainJet has quit []
petey_ has joined #ruby
<hephaestus_rg> pragmatism: what i end up doing, which is inefficient
<varfoo> how do i turn my method into foo_bar_<foobar> and doing accordingly what its method is suppose to
<hephaestus_rg> is writing a multiline string to data.text
<hephaestus_rg> and then calling `ruby strategy.rb data.txt`
Akuma has joined #ruby
Xiti has quit [Read error: No buffer space available]
<hephaestus_rg> if i could do that call with the variable directlty i think itd be faster
<hephaestus_rg> instead of doing this disk io
w4pm has joined #ruby
radic has joined #ruby
Xiti has joined #ruby
<varfoo> i'm trying to make my method dynamic
<varfoo> so my method can be foo_bar_baz, or foo_bar_buz
<hephaestus_rg> could you use lambdas
<hephaestus_rg> let's say
stonecolddevin has quit [Ping timeout: 245 seconds]
<krz> no thats not what he needs
<krz> isnt it within the lines of send?
<hephaestus_rg> yeah
Xeago has joined #ruby
Galgorth has joined #ruby
petey_ has quit [Ping timeout: 246 seconds]
<hephaestus_rg> oh yeah
preller has joined #ruby
<hephaestus_rg> de
<hephaestus_rg> fine
dhruvasagar has quit [Ping timeout: 250 seconds]
BRMatt has quit [Quit: Connection closed for inactivity]
<hephaestus_rg> define_method 'name' do
brianpWins has joined #ruby
w4pm has quit [Ping timeout: 260 seconds]
<hephaestus_rg> ...
<hephaestus_rg> end
flubba has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
coca_rails has joined #ruby
Seich has joined #ruby
<varfoo> ok thanks heph got it
<hephaestus_rg> yay :D
tonni has quit [Read error: Connection reset by peer]
stonecolddevin has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
<hephaestus_rg> now if only someone could help me figure my thing out
dhruvasagar has joined #ruby
Seich has quit [Ping timeout: 265 seconds]
pagioss is now known as pagios
Xeago has quit [Remote host closed the connection]
threesome has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
wallerdev has quit [Quit: wallerdev]
timonv has quit [Remote host closed the connection]
tonni has joined #ruby
timonv has joined #ruby
Yan__ has joined #ruby
CripperZ is now known as zz_CripperZ
TomRone has joined #ruby
freerobby has joined #ruby
esampaio has joined #ruby
alup has joined #ruby
preller has quit [Ping timeout: 260 seconds]
michaeldeol has quit [Remote host closed the connection]
mikepack has joined #ruby
timonv has quit [Ping timeout: 246 seconds]
freerobby has quit [Ping timeout: 248 seconds]
sergicles has quit [Quit: sergicles]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
intuxicated has joined #ruby
relix has joined #ruby
preller has joined #ruby
iliketur_ has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
brennanMKE has joined #ruby
mikepack has quit [Ping timeout: 260 seconds]
drago777 has quit [Ping timeout: 240 seconds]
dayepa has quit [Ping timeout: 240 seconds]
ace_striker has joined #ruby
dayepa has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
mk_qi has left #ruby [#ruby]
TomRone has joined #ruby
osvico has quit []
drago777 has joined #ruby
brennanMKE has quit [Ping timeout: 252 seconds]
xiphias has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
preller has quit [Ping timeout: 252 seconds]
xiphias has joined #ruby
ephemerian has joined #ruby
Kricir has quit [Remote host closed the connection]
dayepa has quit [Ping timeout: 240 seconds]
<hephaestus_rg> ok i think i'm making progress
preller has joined #ruby
<hephaestus_rg> i can do:
<hephaestus_rg> output = `data="#{data}"
<hephaestus_rg> ruby strategy.rb $data`
<bgy> Hi
<hephaestus_rg> hi bgy:
<hephaestus_rg> but that doesn't work
xiphias has quit [Ping timeout: 240 seconds]
coca_rails has quit [Ping timeout: 245 seconds]
<hephaestus_rg> ruby tries to find a file with the name of $data
dfranciosi has joined #ruby
<bgy> what are you trying to do hephaestus_rg, it seems logical to me
gauteh has joined #ruby
vikhyat has joined #ruby
xiphias has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
<hephaestus_rg> well normally
<hephaestus_rg> i would do
<hephaestus_rg> output = `ruby strategy.rb data.txt`
dfranciosi has quit [Client Quit]
<hephaestus_rg> but that's slow inside a loop
<hephaestus_rg> and before that, i have to write to data.txt anyway
<hephaestus_rg> i have the string that goes into data.txt
pencilcheck has quit []
robbyoconnor has quit [Read error: Connection reset by peer]
akonny has quit [Quit: akonny]
Akuma has quit [Ping timeout: 245 seconds]
xiphias has quit [Ping timeout: 240 seconds]
hephaestus|table has joined #ruby
coldmethod has quit [Remote host closed the connection]
dfranciosi has joined #ruby
xiphias has joined #ruby
hephaestus_rg has quit [Quit: hephaestus_rg]
phus1on has joined #ruby
robbyoconnor has joined #ruby
jhaals has joined #ruby
nari has quit [Ping timeout: 245 seconds]
subbyyy has quit [Quit: none 0.4.2]
subbyyy has joined #ruby
Duckily has quit [Quit: Duckily]
xiphias has quit [Ping timeout: 240 seconds]
Akuma has joined #ruby
Duckily has joined #ruby
sayan has quit [Ping timeout: 240 seconds]
xiphias has joined #ruby
gregoriokusowski has joined #ruby
obs has joined #ruby
g0bl1n has joined #ruby
lyanchih has quit [Quit: lyanchih]
Elhu has joined #ruby
g0bl1n has quit [Client Quit]
drago777 has quit [Ping timeout: 240 seconds]
Duckily has quit [Ping timeout: 250 seconds]
kenneth has quit [Quit: kenneth]
roolo has joined #ruby
subbyyy_ has joined #ruby
drago777 has joined #ruby
Akuma has quit [Ping timeout: 240 seconds]
nvrch has joined #ruby
shime has joined #ruby
blaxter_ has joined #ruby
blaxter_ is now known as blaxter
TomRone has quit [Ping timeout: 240 seconds]
Akuma has joined #ruby
hogeo has quit [Remote host closed the connection]
subbyyy has quit [Ping timeout: 245 seconds]
preller has quit [Read error: Operation timed out]
hogeo has joined #ruby
smirn0v has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
DouweM has quit [Read error: Operation timed out]
yfeldblum has quit [Ping timeout: 250 seconds]
TomRone has joined #ruby
hogeo_ has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
derebos has joined #ruby
sayan has joined #ruby
drumusician has joined #ruby
andikr has joined #ruby
dukz has joined #ruby
msuszczy has joined #ruby
culturel_ has joined #ruby
zipper has quit [Ping timeout: 240 seconds]
Akuma has quit [Excess Flood]
xk_id has joined #ruby
Akuma has joined #ruby
ace_striker has quit [Ping timeout: 272 seconds]
preller has joined #ruby
decoponio has joined #ruby
phansch has joined #ruby
troessner has joined #ruby
d45h has joined #ruby
tonni has quit [Remote host closed the connection]
LiohAu has joined #ruby
tonni has joined #ruby
yacks has joined #ruby
tonni has quit [Read error: Connection reset by peer]
dukz has quit [Remote host closed the connection]
workmad3 has joined #ruby
dukz has joined #ruby
mikecmpbll has joined #ruby
Xeago has quit [Remote host closed the connection]
marr has joined #ruby
preller has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
closures999 has quit []
workmad3 has quit [Ping timeout: 240 seconds]
andikr has quit [Remote host closed the connection]
workmad3 has joined #ruby
shredding has joined #ruby
arquebus has joined #ruby
michaeldeol has joined #ruby
gregoriokusowski has quit [Quit: gregoriokusowski]
freerobby has quit [Ping timeout: 252 seconds]
gregoriokusowski has joined #ruby
RoryHughes has joined #ruby
arquebus has quit [Client Quit]
preller has joined #ruby
sayan has quit [Ping timeout: 240 seconds]
LiohAu has quit [Ping timeout: 272 seconds]
Yan__ has quit [Ping timeout: 246 seconds]
TMM has joined #ruby
DaniG2k has joined #ruby
kitak_ has joined #ruby
dukz has quit []
kitak_ has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 240 seconds]
kitak_ has joined #ruby
brennanMKE has joined #ruby
akonny has joined #ruby
kitak has quit [Ping timeout: 245 seconds]
TMM has quit [Client Quit]
TMM has joined #ruby
werdnativ has quit [Quit: werdnativ]
Kneferilis has joined #ruby
preller has quit [Read error: Operation timed out]
yfeldblum has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
yfeldblu_ has joined #ruby
brennanMKE has quit [Ping timeout: 252 seconds]
vikhyat has quit [Remote host closed the connection]
ace_striker has joined #ruby
tonni has joined #ruby
kitak_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 250 seconds]
kitak has joined #ruby
coca_rails has joined #ruby
preller has joined #ruby
yfeldblu_ has quit [Ping timeout: 250 seconds]
TomRone has joined #ruby
sayan has joined #ruby
mklappstuhl has joined #ruby
Al___ has joined #ruby
falood has quit [Remote host closed the connection]
falood has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
drumusician has quit [Read error: Operation timed out]
akonny has quit [Ping timeout: 265 seconds]
TomRone has quit [Ping timeout: 240 seconds]
xk_id has quit [Ping timeout: 252 seconds]
bricker`LA has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
andikr has joined #ruby
xk_id has joined #ruby
RoryHughes has quit []
lemonsparrow has joined #ruby
LiohAu has joined #ruby
Yan__ has joined #ruby
akonny has joined #ruby
bricker`LA has joined #ruby
isec has joined #ruby
shaunbaker has joined #ruby
TomRone has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
isec has quit [Client Quit]
vikhyat has joined #ruby
isec has joined #ruby
preller has quit [Ping timeout: 246 seconds]
claymore has joined #ruby
vlad_starkov has joined #ruby
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
isec has quit [Remote host closed the connection]
marcgg has quit [Ping timeout: 240 seconds]
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
Alina-malina has quit [Ping timeout: 260 seconds]
yacks has quit [Read error: Operation timed out]
Alina-malina has joined #ruby
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
TomRone has quit [Ping timeout: 240 seconds]
poikon has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
Yan__ has quit [Ping timeout: 250 seconds]
marcgg has joined #ruby
Xeago has joined #ruby
TomRone has joined #ruby
culturel_ has joined #ruby
preller has joined #ruby
p4d4w4n has joined #ruby
cbetta_afk is now known as cbetta
drago777 has joined #ruby
ghr has joined #ruby
zacts has quit [Quit: leaving]
petey_ has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
RoryHughes has joined #ruby
Xeago has quit [Remote host closed the connection]
cow_ has quit [Remote host closed the connection]
TomRone has quit [Ping timeout: 240 seconds]
petey_ has quit [Ping timeout: 265 seconds]
pranny has joined #ruby
cow_ has joined #ruby
TomRone has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
cow_ has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rdark has joined #ruby
Xeago has joined #ruby
OdNairy has joined #ruby
mojjojo has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
preller has quit [Ping timeout: 260 seconds]
siwica has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
freerobby has joined #ruby
RoryHughes has quit []
zeeraw has joined #ruby
dayepa has joined #ruby
preller has joined #ruby
DaniG2k has quit [Quit: leaving]
obs has quit [Ping timeout: 248 seconds]
vikhyat has quit [Ping timeout: 240 seconds]
gja has joined #ruby
vikhyat has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
michaeldeol has joined #ruby
OdNairy has quit []
mercwithamouth has quit [Quit: Lost terminal]
dweeb_ has joined #ruby
punkcat has joined #ruby
voland has quit [Remote host closed the connection]
jibi has joined #ruby
subbyyy_ has quit [Ping timeout: 260 seconds]
michaeldeol has quit [Ping timeout: 246 seconds]
francisfish has joined #ruby
brennanMKE has joined #ruby
<relix> guys I'm using a library which heavily depends on XML to interface with an API
<relix> I keep getting errors like this:
<relix> "LibXML::XML::Error: Nodes belong to different documents. You must first import the node by calling XML::Document.import"
<relix> what does that even mean?
ss_ has joined #ruby
<relix> I can't find anything on google about it
luckyrub_ has quit [Remote host closed the connection]
<relix> it's making me insane
preller has quit [Ping timeout: 260 seconds]
hogeo_ has quit [Remote host closed the connection]
Norrin has quit [Ping timeout: 245 seconds]
<relix> I can't give sample code that reproduces because the library is doing a lot of things
<relix> I can give a link to where it happens:
<relix> line 21, "node << as_xml(extension)"
<relix> not sure how useful it is
<relix> the errors mostly happen when I try to execute that method (to_xml, defined from line 15) twice
s2013 has joined #ruby
akonny has quit [Quit: akonny]
yfeldblum has joined #ruby
brennanMKE has quit [Ping timeout: 264 seconds]
Norrin has joined #ruby
dayepa has quit [Ping timeout: 240 seconds]
zipper has joined #ruby
dayepa has joined #ruby
preller has joined #ruby
obs has joined #ruby
obs has quit [Read error: Connection reset by peer]
falood has quit [Remote host closed the connection]
coca_rails has joined #ruby
francisfish has quit [Read error: Connection reset by peer]
falood has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
francisfish has joined #ruby
drago777 has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
DouweM has joined #ruby
Yan__ has joined #ruby
_JamieD_ has quit [Quit: _JamieD_]
JonnieCache has joined #ruby
<JonnieCache> hello
<JonnieCache> is anyone else experiencing rubygems/bundler problems?
falood has quit [Ping timeout: 264 seconds]
jkamenik has quit [Ping timeout: 260 seconds]
jkamenik has joined #ruby
nakazanieto has joined #ruby
<nakazanieto> Hi
<nakazanieto> Someone knows good IDE for Ruby?
akonny has joined #ruby
Guest12315 has joined #ruby
coderhs has quit [Ping timeout: 264 seconds]
s2013 has quit [Remote host closed the connection]
<esampaio> @nakazanieto people say RubyMine is a great one, others Textmate, others emacs or vim... kinda like a personal preference really
obs has joined #ruby
timonv has quit [Remote host closed the connection]
culturel_ has joined #ruby
fluve has quit []
<nakazanieto> RubyMine is commercial product, right?
mr_snowf1ake has quit [Quit: Leaving]
<esampaio> yes
<esampaio> and kinda expensive IMHOP
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<esampaio> you should try a few ones, most have a free trial period
MrJoshua has joined #ruby
<esampaio> see which one feels more comfortable to you
dayepa has quit [Ping timeout: 240 seconds]
gja has quit [Quit: This computer has gone to sleep]
<GreatSUN> hi ho
nanoyak has quit [Quit: Computer has gone to sleep.]
<GreatSUN> good morning
<GreatSUN> ;-)
<nakazanieto> in Ruby i can programming for Windos and Linux, right?
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
sepp2k has joined #ruby
Duckily has joined #ruby
<Xeago> Why do you need an IDE for ruby programming?
olivier_bK has joined #ruby
<popl> nakazanieto: Sure!
banister has joined #ruby
<popl> Xeago: Some people like the convenience.
<krainboltgreene> As long as an interpretor is available, you can run Ruby code.
xiphias has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
<popl> Sounds like a superhero. "I am… Interpretor!"
<esampaio> lol
<krainboltgreene> It's my hero.
<esampaio> more like a supervillain
xiphias has joined #ruby
<GreatSUN> hey guys... I need some help
<GreatSUN> if someone has an idea on that, please tell me
<shevy> Xeago the cool kids have flashy IDEs
<krainboltgreene> If you had to turn a method into JSON, what would your structure be?
<nakazanieto> popl: im newbie in programming. What are u think? Ruby is easy to learn for something who never programming?
zipper has quit [Ping timeout: 246 seconds]
punkcat has quit [Ping timeout: 264 seconds]
<shevy> nakazanieto start with php
<shevy> nakazanieto in 2 years you will switch to a better language
<nakazanieto> i dont like php.
<shevy> but you are newbie
<krainboltgreene> nakazanieto: Yes, Ruby can be easy to learn.
<shevy> you have to start somewhere
drago777 has quit [Ping timeout: 240 seconds]
<krainboltgreene> nakazanieto: But it's not a shallow language. It has some deep complexity that can be useful and annoying.
Nilium has quit [Ping timeout: 246 seconds]
<GreatSUN> this is just an example, also the real implementation is much more complicated and has even more features as well as there are a lot of modules integrated in different classes/parts of the overall
<GreatSUN> so please don't discuss for some complete other solution
<krainboltgreene> GreatSUN: What's with line 2?
<shevy> you use @@class_vars
<shevy> that is awful
sayan has quit [Ping timeout: 265 seconds]
<krainboltgreene> It's only terrible if you don't understand global scope problems.
<GreatSUN> shevy: is there some other solution to have static methods and instance methods access the same variable/value?
<krainboltgreene> Hard to justify tho.
mosheee has quit [Ping timeout: 246 seconds]
mklappstuhl has quit [Remote host closed the connection]
<shevy> krainboltgreene can you show me code where you use @@class_vars?
<krainboltgreene> GreatSUN: Yeah, a few ways, but in your case it works. I suggest having a getter and setter for the instance variable.
<krainboltgreene> shevy: Data that I want to have access to from all classes and instances of those classes.
<GreatSUN> krainboltgreene: it doesnt work to be honest
<krainboltgreene> GreatSUN: I'll make a comment.
<shevy> krainboltgreene I mean specific, you are on github or? do you recall any of your projects? I'd like to peek into your code there if you don't mind
<GreatSUN> ahh
<GreatSUN> ok
<shevy> GreatSUN you could (mis)use constants
xiphias has quit [Ping timeout: 240 seconds]
<GreatSUN> stupid me
noc0de has quit [Ping timeout: 246 seconds]
mklappstuhl has joined #ruby
<GreatSUN> you should read errors carefully :D
<krainboltgreene> That's true.
<GreatSUN> krainboltgreene: you are welcome to make a comment
<krainboltgreene> shevy: Oh man, I think do but I'm not sure if it's public. Momento.
vlad_starkov has joined #ruby
<GreatSUN> shevy: misuse is the match
drago777 has joined #ruby
<shevy> GreatSUN misuse in the sense because a constant should be unchangable
<shevy> but you could always use them to store stuff in a module too
<GreatSUN> shevy: exactly
xiphias has joined #ruby
<shevy> ARRAY_FOO = ["bla"]
<GreatSUN> I know
Xeago has quit [Remote host closed the connection]
<krainboltgreene> CONSTANTs are good if you don't want to modify things.
<GreatSUN> but that is not a better solution
<GreatSUN> thats even worse
<krainboltgreene> Class variables are essentially constants that can be modified.
<shevy> ARRAY_FOO can be freely modified as well
<GreatSUN> krainboltgreene: and exist in a special contect
<krainboltgreene> :|
<krainboltgreene> You shouldn't modify constants. You're breaking the language contract.
<GreatSUN> context
<shevy> ruby allows you to change constants freely
<shevy> the name is silly though
<GreatSUN> krainboltgreene: what is worse? changing constants and misuse them or using classvars
<GreatSUN> :D
<shevy> a constant that can be changed should not be called a constant
<GreatSUN> shevy: I know a lot of languages doing the same, but that doesn't mean that they should be changes like that
<GreatSUN> even though you don't have them in limited context
s2013 has joined #ruby
<shevy> GreatSUN I do wonder about that too. I don't like it that in ruby constants are named constants but they can be changed
<krainboltgreene> GreatSUN: Class Variables have a bad wrap because they have global scope.
<krainboltgreene> And global scope is not easy.
<shevy> :D
<krainboltgreene> Because it can be very confusing.
<shevy> yeah
moshee has joined #ruby
moshee has joined #ruby
LiohAu has quit [Ping timeout: 272 seconds]
<krainboltgreene> Suddenly your tests are behaving weird and you're not quite sure why.
<GreatSUN> krainboltgreene: surely, but not easy and confusing doesn't mean it's a bad style
<krainboltgreene> The same goes for singleton methods tho.
<jle`> class variables are namespaced globals so it's not as bad as a global just sitting there
Nilium has joined #ruby
<jle`> but they are definitely abusable
mklappstuhl has quit [Ping timeout: 245 seconds]
<krainboltgreene> shevy: I just did an ack on my code directory for '@@', it'll be a bit.
shadoi has joined #ruby
<shevy> hehe
postmodern has quit [Quit: Leaving]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> I searched the source of rack
<shevy> for @@
<shevy> test/spec_builder.rb: @@env = env
nakazanieto has left #ruby [#ruby]
<shevy> that's the only file where it is used :)
noc0de has joined #ruby
ss_ has quit [Remote host closed the connection]
<krainboltgreene> Woops, accidentally searched my ruby and rubinius repository :P
<dweeb_> How can I read the first 10 lines of a remote txt file that is 100mb?
<krainboltgreene> A few stdlibs use class variables, but I'm not sure if I'd say they are good examples.
xiphias has quit [Ping timeout: 240 seconds]
mojjojo has quit [Quit: mojjojo]
eka has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
xiphias has joined #ruby
<shevy> I shy away from the japanese comments :D
shadoi has quit [Ping timeout: 248 seconds]
s2013 has quit [Ping timeout: 252 seconds]
<krainboltgreene> Ah-ha!
LiamFederer has joined #ruby
<cbetta> can someone explain to me how to add a method that is used outside of method scope in an object instance? What I mean is something like Rails's "belongs_to" method
LiamFederer has quit [Client Quit]
guiocavalcanti has joined #ruby
<krainboltgreene> I'm actually questioning it's use here. Since it means any instance of Whiskey::Server has the same configuration.
<shevy> That's so you can use Whiskey::Server.configure() ?
esing has joined #ruby
esing has quit [Changing host]
esing has joined #ruby
<krainboltgreene> I might actually change that to an instance variable.
<krainboltgreene> Or rather, pass it to the server instance for holding.
mercwithamouth has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
camilasan has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
phansch has quit [Quit: Leaving]
ewnd9 has joined #ruby
aagdbl1 has joined #ruby
aagdbl has quit [Disconnected by services]
aagdbl1 is now known as aagdbl
TomRone has joined #ruby
mikecmpbll has joined #ruby
freerobby has joined #ruby
<krainboltgreene> Yeah.
<krainboltgreene> Bleh.
gja has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
<krainboltgreene> Okay, so here's why I think I did this: I wanted a class level set of configurations that could then be modified for instance level configurations
<krainboltgreene> The class level configurations get their data from env variables, like ENV["WHISKEY_SERVER_HOST"]
mercwithamouth has joined #ruby
<krainboltgreene> And then you can modify them further for instances of servers. I forgot to implement the latter.
shredding has quit [Quit: shredding]
<krainboltgreene> And really the former doesn't need to be a class variable, since no one is writing to it.
<krainboltgreene> It can be a constant.
dangerousdave has joined #ruby
Heskie has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
tfitts has quit [Read error: Connection reset by peer]
guiocava_ has joined #ruby
michaeldeol has joined #ruby
lyanchih has joined #ruby
<krainboltgreene> But I can still see the pattern being useful, when you have shared settings for all classes that can be modified AFTER the class has been defined.
mojjojo has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
tfitts has joined #ruby
cmedeiros has joined #ruby
guiocavalcanti has quit [Ping timeout: 245 seconds]
Duckily has quit [Ping timeout: 248 seconds]
<shevy> hmm
cow_ has joined #ruby
vikhyat has quit [Remote host closed the connection]
dogweather has quit [Remote host closed the connection]
dogweather has joined #ruby
ahri has quit [Ping timeout: 272 seconds]
MrJoshua has quit [Quit: MrJoshua]
drumusician has joined #ruby
MrJoshua has joined #ruby
vlad_starkov has joined #ruby
mklappstuhl has joined #ruby
brennanMKE has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 260 seconds]
drago777 has quit [Ping timeout: 240 seconds]
dogweather has quit [Ping timeout: 250 seconds]
mklappst_ has joined #ruby
nari has joined #ruby
dogweather has joined #ruby
cmedeiros has quit [Ping timeout: 252 seconds]
Yan__ has quit [Ping timeout: 252 seconds]
mklappstuhl has quit [Ping timeout: 248 seconds]
drago777 has joined #ruby
cbetta is now known as cbetta_afk
viod has joined #ruby
brennanMKE has quit [Ping timeout: 260 seconds]
jibi has quit [Quit: leaving]
mklappst_ has quit [Ping timeout: 246 seconds]
sayan has joined #ruby
mojjojo has quit [Quit: mojjojo]
banghouse2 has joined #ruby
andycamp has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
ss_ has joined #ruby
mojjojo has joined #ruby
yacks has joined #ruby
tonni has quit [Remote host closed the connection]
tonni has joined #ruby
esing has quit [Remote host closed the connection]
jokke has joined #ruby
diegoviola has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
mojjojo has quit [Client Quit]
esing has joined #ruby
akonny has quit [Quit: akonny]
whysobad has quit [Ping timeout: 272 seconds]
tonni has quit [Ping timeout: 252 seconds]
dayepa has joined #ruby
mlpinit has joined #ruby
drago777 has joined #ruby
vlad_starkov has joined #ruby
esing has quit [Remote host closed the connection]
wildroman2 has joined #ruby
mojjojo has joined #ruby
charliesome has joined #ruby
wildroman2 has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
wildroman2 has joined #ruby
ghr has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hogeo has joined #ruby
mojjojo has quit [Client Quit]
mklappstuhl has joined #ruby
dvarrui has joined #ruby
camilasan has joined #ruby
drPoggs has quit [Quit: +++ATH]
lyanchih has quit [Ping timeout: 250 seconds]
esing has joined #ruby
esing has joined #ruby
esing has quit [Changing host]
mojjojo has joined #ruby
rootshift has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
petey_ has joined #ruby
drago777 has joined #ruby
dvarrui has quit [Quit: Saliendo]
w4pm has joined #ruby
hogeo has quit [Remote host closed the connection]
rootshift has quit [Ping timeout: 240 seconds]
hogeo has joined #ruby
aryaching has joined #ruby
petey_ has quit [Ping timeout: 260 seconds]
coca_rails has joined #ruby
intuxicated has quit [Read error: No route to host]
gja has quit [Quit: This computer has gone to sleep]
mark_locklear has joined #ruby
w4pm has quit [Ping timeout: 264 seconds]
drumusician has quit [Ping timeout: 265 seconds]
zipper has joined #ruby
vlad_starkov has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
zipper_ has joined #ruby
zipper has quit [Ping timeout: 265 seconds]
Xeago has quit [Ping timeout: 246 seconds]
gja has joined #ruby
banghouse2 is now known as banghouse
freerobby has joined #ruby
vikhyat has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
Yan__ has joined #ruby
popl has quit [Ping timeout: 260 seconds]
dayepa has quit [Quit: dayepa]
Hanmac1 is now known as Hanmac
freerobby has quit [Ping timeout: 246 seconds]
vikhyat has quit [Remote host closed the connection]
Duckily has joined #ruby
mark_locklear has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
jamesaanderson has joined #ruby
bogeyd6 has quit [Ping timeout: 246 seconds]
Bofu2U has joined #ruby
Neomex has joined #ruby
michaeldeol has joined #ruby
Neomex has quit [Client Quit]
Duckily has quit [Ping timeout: 240 seconds]
cow_ has quit [Read error: Connection reset by peer]
cow_ has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
brennanMKE has joined #ruby
ayaz has quit [Quit: Lost terminal]
Mon_Ouie has quit [Ping timeout: 245 seconds]
michaeldeol has quit [Ping timeout: 248 seconds]
ace_striker has quit [Ping timeout: 272 seconds]
ewnd9 has quit [Read error: Operation timed out]
BizarreCake has joined #ruby
Yan__ has quit [Ping timeout: 248 seconds]
alexherbo2 has quit [Ping timeout: 246 seconds]
sergicles has joined #ruby
preller has quit [Read error: Operation timed out]
yfeldblum has joined #ruby
amundj has quit [Ping timeout: 250 seconds]
akonny has joined #ruby
brennanMKE has quit [Ping timeout: 260 seconds]
gja has quit [Quit: This computer has gone to sleep]
andycamp has quit [Quit: andycamp]
gja has joined #ruby
phansch has joined #ruby
amundj has joined #ruby
andycamp has joined #ruby
yacks has quit [Ping timeout: 250 seconds]
amundj has quit [Client Quit]
yfeldblum has quit [Ping timeout: 264 seconds]
aagdbl has quit [Read error: Connection reset by peer]
aagdbl has joined #ruby
centipedefarmer has joined #ruby
aagdbl has quit [Read error: Connection reset by peer]
aagdbl has joined #ruby
Elhu has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amundj has joined #ruby
dayepa has joined #ruby
dayepa has quit [Client Quit]
camilasan has quit [Remote host closed the connection]
dayepa has joined #ruby
habanany has joined #ruby
camilasan has joined #ruby
mojjojo has quit [Quit: mojjojo]
rubyracer has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
preller has joined #ruby
sharms has joined #ruby
cow_ has quit [Remote host closed the connection]
banister has joined #ruby
mojjojo has joined #ruby
esing has quit [Remote host closed the connection]
Xeago has joined #ruby
troyready has joined #ruby
Mohan has quit [Ping timeout: 245 seconds]
hogeo has quit [Remote host closed the connection]
rubyracer has quit [Quit: Konversation terminated!]
gregoriokusows-1 has joined #ruby
osvico has joined #ruby
aryaching_ has joined #ruby
troyready has quit [Max SendQ exceeded]
drago777 has quit [Ping timeout: 240 seconds]
raphaelivan has joined #ruby
Mohan__ has joined #ruby
troyready has joined #ruby
siwica has quit [Ping timeout: 265 seconds]
Fire-Dragon-DoL has joined #ruby
psyprus has quit [Ping timeout: 240 seconds]
drago777 has joined #ruby
gregoriokusowski has quit [Ping timeout: 248 seconds]
sergicles has quit [Quit: sergicles]
psyprus has joined #ruby
Virtualize has joined #ruby
mojjojo has quit [Quit: mojjojo]
Advocation has joined #ruby
dfranciosi has quit [Remote host closed the connection]
preller has quit [Ping timeout: 252 seconds]
aryaching has quit [Ping timeout: 241 seconds]
vpretzel has joined #ruby
amundj has quit [Ping timeout: 240 seconds]
mlpinit_ has joined #ruby
mojjojo has joined #ruby
JonnieCache has quit [Ping timeout: 252 seconds]
pranny has quit [Quit: Leaving.]
mark_locklear has joined #ruby
amundj has joined #ruby
drumusician has joined #ruby
mlpinit has quit [Read error: No route to host]
cmedeiros has joined #ruby
mlpinit__ has joined #ruby
kozma has quit [Remote host closed the connection]
preller has joined #ruby
angusiguess has joined #ruby
akonny has quit [Quit: akonny]
mlpinit_ has quit [Ping timeout: 260 seconds]
securitycrush has joined #ruby
fedesilva has joined #ruby
coca_rails has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
machuga|away is now known as machuga
ewnd9 has joined #ruby
Guest79735 has quit [Changing host]
Guest79735 has joined #ruby
Guest79735 is now known as guyz
raphaelivan has quit [Quit: Leaving.]
maze has joined #ruby
<maze> hello
TomRone has joined #ruby
<maze> how does one collect the results of a block to an array?
lkba has joined #ruby
cow_ has joined #ruby
lyanchih has joined #ruby
ffranz has joined #ruby
danshultz has joined #ruby
<canton7> example?
dhruvasagar has quit [Ping timeout: 250 seconds]
mmitchell has joined #ruby
Inoperable has quit [Max SendQ exceeded]
Inoperable has joined #ruby
drumusician has quit [Ping timeout: 250 seconds]
fijimunkii has quit [Ping timeout: 245 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
freerobby has joined #ruby
dfranciosi has joined #ruby
mark_locklear has quit [Ping timeout: 252 seconds]
vlad_sta_ has joined #ruby
mlpinit__ has quit [Remote host closed the connection]
Megtastique has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
preller has quit [Ping timeout: 252 seconds]
Heskie has quit []
vlad_starkov has quit [Read error: Connection reset by peer]
Megtastique has quit [Client Quit]
mikecmpbll has joined #ruby
freerobby has quit [Ping timeout: 250 seconds]
Xeago has quit [Remote host closed the connection]
justsee has joined #ruby
vikhyat has joined #ruby
osvico has quit [Ping timeout: 264 seconds]
Advocation has quit [Quit: Advocation]
Neomex has joined #ruby
Neomex has quit [Client Quit]
preller has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
michaeldeol has joined #ruby
bamdad has joined #ruby
mlpinit has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
ComingHome has joined #ruby
<ComingHome> valid? and invalid?
stringoO has joined #ruby
lewix has quit [Remote host closed the connection]
polymar has joined #ruby
allsystemsarego has joined #ruby
drago777 has joined #ruby
ArchBeOS-work has joined #ruby
brennanMKE has joined #ruby
drumusician has joined #ruby
liamkeil1 has joined #ruby
diegoviola has quit [Ping timeout: 252 seconds]
tkuchiki has quit [Ping timeout: 260 seconds]
pranny has joined #ruby
pranny has quit [Client Quit]
michaeldeol has quit [Ping timeout: 264 seconds]
shredding has joined #ruby
polymar has quit [Write error: Broken pipe]
polymar has joined #ruby
devdazed has quit [Ping timeout: 265 seconds]
xk_id has quit [Quit:
alexherbo2 has joined #ruby
soba has quit [Ping timeout: 260 seconds]
brennanMKE has quit [Ping timeout: 250 seconds]
vlad_starkov has joined #ruby
RaCx has joined #ruby
fedesilva has quit [Remote host closed the connection]
TomRone has quit [Ping timeout: 240 seconds]
vlad_sta_ has quit [Ping timeout: 260 seconds]
coca_rails has quit [Ping timeout: 245 seconds]
robbyoconnor has quit [Excess Flood]
sharms has quit [Changing host]
sharms has joined #ruby
TomRone has joined #ruby
robbyoconnor has joined #ruby
ComingHome has quit [Quit: leaving]
Advocation has joined #ruby
Nahra has quit [Ping timeout: 246 seconds]
Nahra has joined #ruby
timonv has quit [Remote host closed the connection]
Heskie has joined #ruby
timonv has joined #ruby
spider-mario has joined #ruby
brennanMKE has joined #ruby
jerius has joined #ruby
jerius has quit [Client Quit]
mark_locklear has joined #ruby
<Geniack_> hello, anyone of you ever used "https://github.com/tmm1/perftools.rb" ?
timonv has quit [Ping timeout: 248 seconds]
spider-mario_ has joined #ruby
spider-mario has quit [Ping timeout: 240 seconds]
prc has joined #ruby
krawchyk has joined #ruby
brennanMKE has quit [Ping timeout: 260 seconds]
justsee has quit [Ping timeout: 260 seconds]
bamdad has quit [Quit: bamdad]
spider-mario_ is now known as spider-mario
shredding has quit [Quit: shredding]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
samsonasu has joined #ruby
Xeago has joined #ruby
angusiguess has quit [Ping timeout: 250 seconds]
iamjarvo has joined #ruby
jmaister has quit [Remote host closed the connection]
lfox has joined #ruby
Aquilo is now known as Aquilo[GONE]
Xeago has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
jragon has joined #ruby
mojjojo has quit [Quit: mojjojo]
iamjarvo has quit [Remote host closed the connection]
ivar has joined #ruby
iamjarvo has joined #ruby
L8D has joined #ruby
allaire has joined #ruby
nakazanieto has joined #ruby
<nakazanieto> Hi.
kdaigle has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
frustrum has joined #ruby
burlyscudd has joined #ruby
rootshift has joined #ruby
Hamburglr has quit [Quit: Textual IRC Client: www.textualapp.com]
drago777 has joined #ruby
Hamburglr has joined #ruby
<Geniack_> TMM: hi
<TMM> hi
Advocation has quit [Quit: Advocation]
cycorld has quit [Ping timeout: 240 seconds]
zeeraw has joined #ruby
<Geniack_> https://github.com/tmm1/perftools.rb are you the author of this?
<TMM> Geniack_, no
coca_rails has joined #ruby
mark_locklear has quit [Ping timeout: 250 seconds]
cycorld has joined #ruby
<Geniack_> damn :(
<TMM> sorry
<Geniack_> ever used it ?
toroidalcode has quit []
hogeo has joined #ruby
mark_locklear has joined #ruby
fijimunkii has joined #ruby
psyl0n has joined #ruby
nakazanieto has left #ruby [#ruby]
preller has quit [Read error: Operation timed out]
breakingthings has joined #ruby
rootshift has quit [Ping timeout: 264 seconds]
sayan has quit [Ping timeout: 252 seconds]
grvgr has joined #ruby
voland has joined #ruby
<TMM> Geniack_, I'm afraid not. Sorry.
<shevy> guys
<shevy> any of you can recommend a good way how to properly document a large project in ruby?
<Geniack_> TMM: thx anyway
fuzzyhorns has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
jerius has joined #ruby
TomRone has joined #ruby
drPoggs has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
<workmad3> shevy: I'd start by asking what types of documentation are needed
preller has joined #ruby
<workmad3> shevy: code documentation for maintenance? API documentation for people using it as a library? user documentation? installation documentation? design docs?
zipper_ has quit [Quit: leaving]
nowthatsamatt has joined #ruby
cycorld has quit [Remote host closed the connection]
asobrasil has joined #ruby
coca_rails has quit [Remote host closed the connection]
coca_rails has joined #ruby
perlsyntax has joined #ruby
justsee has quit [Ping timeout: 248 seconds]
drago777 has joined #ruby
havenwood has joined #ruby
LostMonk has joined #ruby
mojjojo has joined #ruby
Virtualize has quit [Quit: Leaving...]
aagdbl has left #ruby [#ruby]
<jokke> how can i check in popen3 if my process has terminated?
viod1 has joined #ruby
grvgr has quit [Quit: grvgr]
Virtualize has joined #ruby
elux has joined #ruby
grvgr has joined #ruby
SHyx0rmZ has joined #ruby
viod has quit [Ping timeout: 260 seconds]
coca_rails has quit [Ping timeout: 245 seconds]
<Geniack_> jokke: you using the "close_fds" parameter?
rndstr has joined #ruby
<jokke> hm?
<jokke> i use all four
freerobby has joined #ruby
pen has joined #ruby
tobago has quit [Ping timeout: 240 seconds]
<jokke> i.e.: Open3.popen3('echo bla && sleep 10 && echo bla') do |stdin,stdout,stderr,p|
<Geniack_> oh nevermind, i was thinking about subprocess stuff of python right now
<Geniack_> but the file descriptors should be accessible anymore after its terminated
akonny has joined #ruby
<Geniack_> maybe you can check for this condition
drago777 has quit [Ping timeout: 240 seconds]
vpretzel has quit [Ping timeout: 250 seconds]
<jokke> hmm
rh1n0 has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Remote host closed the connection]
zipper has joined #ruby
angusiguess has joined #ruby
tobago has joined #ruby
kevind has joined #ruby
havenwood has quit [Remote host closed the connection]
Akuma has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
drago777 has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
nomenkun has joined #ruby
gja has joined #ruby
blindrage has joined #ruby
<blindrage> anyone familiar with setting up digest auth?
mikepack has joined #ruby
<blindrage> i don't care what module i use, i'm currently using httparty
freerobby has joined #ruby
kevind has quit [Client Quit]
<blindrage> i can do 'get "/"' and i get 200 OK with a body
<blindrage> if i do a post with 'post "/uri" "some data"' i get: EOFError: end of file reached
angusiguess has quit [Ping timeout: 240 seconds]
<blindrage> the access log shows: "POST /uri HTTP/1.1" 401 142 - -
hogeo has quit [Remote host closed the connection]
LexicalScope has joined #ruby
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<shevy> workmad3 all of it!
TomRone has quit [Ping timeout: 240 seconds]
<shevy> workmad3 though API docu I care less, people should just use it :P
timonv has quit [Ping timeout: 265 seconds]
samsonasu has quit [Quit: samsonasu]
Duckily has joined #ruby
xk_id has joined #ruby
michaeldeol has joined #ruby
Akuma has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
devdazed has joined #ruby
DuoSRX has quit [Quit: Connection closed for inactivity]
<workmad3> shevy: well, figure out what you need from each area... then start writing it :P
mikepack has quit [Ping timeout: 248 seconds]
iamjarvo has joined #ruby
<workmad3> shevy: unfortunately, there isn't much more you can do if you're documenting after the fact and aren't hiring people to write the docs and guides for you
TomRone has joined #ruby
vlad_starkov has joined #ruby
mojjojo has quit [Quit: mojjojo]
<DouweM> yeah, writing docs is what you get interns for :p
michaeldeol has quit [Ping timeout: 246 seconds]
havenwood has joined #ruby
jlast has joined #ruby
asteve has joined #ruby
preller has quit [Ping timeout: 252 seconds]
asteve has quit [Max SendQ exceeded]
AlSquire has joined #ruby
zipper is now known as urbanslug
TomRone has quit [Ping timeout: 240 seconds]
wald0 has quit [Quit: Lost terminal]
ahawkins has joined #ruby
dkamioka has joined #ruby
urbanslug has quit [Quit: Lost terminal]
asteve has joined #ruby
spyderman4g63 has quit []
jlast has quit [Read error: Connection reset by peer]
drago777 has quit [Ping timeout: 240 seconds]
noop has quit [Ping timeout: 265 seconds]
polymar_ has joined #ruby
jlast has joined #ruby
iamjarvo has quit [Remote host closed the connection]
<shevy> :(
yfeldblum has joined #ruby
iamjarvo has joined #ruby
TomRone has joined #ruby
h_kon has quit [Remote host closed the connection]
whysosad has joined #ruby
SHyx0rmZ has joined #ruby
mark_locklear has quit [Ping timeout: 250 seconds]
drago777 has joined #ruby
kpshek has joined #ruby
jamblack has joined #ruby
polymar has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
akonny has quit [Quit: akonny]
perlsyntax has quit [Quit: Leaving]
preller has joined #ruby
jlast has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 246 seconds]
TomRone has quit [Ping timeout: 240 seconds]
petey_ has joined #ruby
timonv has joined #ruby
mark_locklear has joined #ruby
iamjarvo has quit [Ping timeout: 272 seconds]
jlast has joined #ruby
petey_ has quit [Read error: Connection reset by peer]
petey_ has joined #ruby
hephaestus|table has quit [Read error: Connection reset by peer]
SHyx0rmZ has quit [Ping timeout: 240 seconds]
amritanshu_RnD has quit [Quit: Leaving]
samsonasu has joined #ruby
polymar_ has quit [Remote host closed the connection]
samsonasu has quit [Client Quit]
wald0 has joined #ruby
luki3k4 has joined #ruby
dktm has joined #ruby
cycorld has joined #ruby
hephaestus_rg has joined #ruby
teenwolf has joined #ruby
voland has quit [Remote host closed the connection]
tannerburson has joined #ruby
TomRone has joined #ruby
voland has joined #ruby
preller has quit [Ping timeout: 264 seconds]
drago777 has quit [Ping timeout: 240 seconds]
lmickh has quit [Quit: lmickh]
BizarreCake has quit [Read error: Connection reset by peer]
drago777 has joined #ruby
user258467 has joined #ruby
duggiefresh has joined #ruby
polymar has joined #ruby
_HolyCow has quit [Read error: Connection reset by peer]
luki3k4 has quit [Client Quit]
nomenkun has quit [Remote host closed the connection]
lfox has quit [Quit: ZZZzzz…]
Sourceless is now known as Guest9473
cycorld has quit [Ping timeout: 250 seconds]
nomenkun has joined #ruby
spider-mario has quit [Remote host closed the connection]
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
_HolyCow has joined #ruby
kevind has joined #ruby
kevind has quit [Remote host closed the connection]
dangerousdave has joined #ruby
blandflakes has joined #ruby
samsonasu has joined #ruby
Virtualize has quit [Quit: Leaving...]
<ivar> So.. I'm a bit stumped as to how to refactor a piece of code.. I've got a huge block that I need to split into methods, but am not sure the best approach or how to manage it correctly.. if you've got a few mins I'd appreciate it someone could take a peek at https://gist.github.com/anonymous/8040409
nomenkun has quit [Ping timeout: 250 seconds]
<ivar> the block is way too long and should be broken down
Virtualize has joined #ruby
drumusician has quit [Ping timeout: 248 seconds]
mark_locklear has quit [Ping timeout: 240 seconds]
araujo has quit [Read error: Connection reset by peer]
prc has quit [Quit: Leaving.]
<shevy> the code does not seem to be very logical
araujo has joined #ruby
Megtastique has joined #ruby
<shevy> what is often a lot easier is to arrange things into a class and call methods inside of that class
<ivar> so to wrap the Sunspot search object with my own class ?
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Virtualize has quit [Read error: Operation timed out]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
<shevy> I dunno, I don't know Sunspot at all
drago777 has quit [Ping timeout: 240 seconds]
Jake232 has joined #ruby
<workmad3> ivar: that's what I typically do with elasticsearch and sunspot searches
parduse has quit [Remote host closed the connection]
xk_id has quit [Quit:
parduse has joined #ruby
<shevy> I guess it comes with a bunch of methods attached to itself ... facet(), paginate() with()
akonny has joined #ruby
Duckily has quit [Ping timeout: 248 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
<ivar> but when the block gets too big, how best to decompose it ?
ahawkins has quit [Ping timeout: 250 seconds]
drago777 has joined #ruby
nouitfvf has quit [Read error: Connection timed out]
grvgr has quit [Quit: grvgr]
<shevy> you say block
xk_id has joined #ruby
burlyscudd has quit [Quit: Leaving.]
<shevy> but to me it is just a bunch of methods that you call
ffio has joined #ruby
<shevy> and either you need to set these things through the methods or you don't
TomRone has quit [Ping timeout: 240 seconds]
<ivar> they are methods, but they are called in the context of the Sunspot search object
<shevy> and if you need to call these methods then I am not sure how you want to get rid of them
<ivar> so, within the block that gets passed to the search, s'elf' is a search object
<ivar> 'self' rather
nouitfvf has joined #ruby
jamesaanderson has joined #ruby
TomRone has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
dkamioka has quit [Remote host closed the connection]
<ivar> If I try to call methods from within that block, I get method not found exceptions because the methods don't exist on Sunspot's search
falood has joined #ruby
robbyoconnor has quit [Ping timeout: 264 seconds]
baordog_ has joined #ruby
sec^nd has quit [Ping timeout: 240 seconds]
<ivar> hmm.. I guess it's not so so horrible, but I'm taking heat from code climate due to method complexity
mary5030 has joined #ruby
<ivar> Thanks shevy and workmad3 for your time :P
<shevy> I guess there are limits over as to how useful a block can be
<DouweM> ivar: code climate is a bit trigger happy. the method is a bit complex in terms of amount of code, but it's plenty understandable
<shevy> but wrapping things up into a class is often helpful for reusing things, and rearranging too
xk_id has quit [Ping timeout: 240 seconds]
lfox has joined #ruby
drumusician has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
<workmad3> ivar: if sunsport works like tire for elasticsearch, then if you pass a block 'Sunspot.search(Property) do |search| ...' then self remains the same and 'search' is the search object you call methods like 'with' and 'facet' on
mojjojo has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
xk_id has joined #ruby
<workmad3> ivar: which is useful when you want to carve your search up into more sensible method names inside a class ;)
mojjojo has quit [Client Quit]
jamblack has quit [Quit: jamblack]
cbetta_afk is now known as cbetta
cow_ has quit [Remote host closed the connection]
fedesilva has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cow_ has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
mojjojo has joined #ruby
jamblack has joined #ruby
polymar has quit []
TomRone has joined #ruby
JonnieCache has joined #ruby
preller has quit [Ping timeout: 248 seconds]
drago777 has quit [Ping timeout: 240 seconds]
xk_id has quit [Quit:
coca_rails has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
cow_ has quit [Ping timeout: 246 seconds]
tobago has quit [Remote host closed the connection]
drago777 has joined #ruby
andikr has quit [Remote host closed the connection]
mojjojo has quit [Client Quit]
msuszczy has quit [Quit: leaving]
petey_ has quit [Remote host closed the connection]
Virtualize has joined #ruby
perlsyntax has joined #ruby
petey_ has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
asobrasil has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
Virtualize has quit [Client Quit]
preller has joined #ruby
bogeyd6 has joined #ruby
TomRone has joined #ruby
lmickh has joined #ruby
coca_rails has quit [Remote host closed the connection]
drag00n has joined #ruby
petey_ has quit [Ping timeout: 246 seconds]
mojjojo has joined #ruby
<GreatSUN> bye --> home
mengu has quit [Remote host closed the connection]
GreatSUN has quit [Quit: Page closed]
stringoO has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
esampaio has quit []
coca_rails has joined #ruby
stringoO has joined #ruby
mikepack has joined #ruby
petey_ has joined #ruby
Jake232 has quit [Quit: Textual IRC Client: www.textualapp.com]
MrZYX|off is now known as MrZYX
tagrudev has quit [Quit: Me = Awesome]
drumusician has quit [Read error: Operation timed out]
jlebrech has quit [Quit: Konversation terminated!]
mojjojo has quit [Quit: mojjojo]
tvw has joined #ruby
fedesilv_ has joined #ruby
mikepack has quit [Ping timeout: 265 seconds]
mikepack has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
michaeldeol has joined #ruby
peregrine81 has joined #ruby
peregrine81 has quit [Client Quit]
burlyscudd has joined #ruby
fedesilva has quit [Ping timeout: 252 seconds]
TomRone has joined #ruby
perlsyntax has quit [Quit: Leaving]
<tyl> i'm having problems using a custom method with a ! behind. I call this method from an include module. It works if i remove the ! with a _
gja has joined #ruby
dweeb_ has quit [Quit: Computer has gone to sleep.]
<tyl> module
failshell has joined #ruby
fntzr has joined #ruby
Virtualize has joined #ruby
<tyl> main controller the create method is where i call it from the @user.ensure_authentication_token!
michaeldeol has quit [Ping timeout: 246 seconds]
peregrine81 has joined #ruby
slackfan has joined #ruby
slackfan has quit [Changing host]
slackfan has joined #ruby
peregrine81 has quit [Max SendQ exceeded]
phansch has quit [Quit: Leaving]
phus1on has quit [Quit: .]
<tyl> wait huh its working now
petey_ has quit [Remote host closed the connection]
preller has quit [Ping timeout: 272 seconds]
derebos has quit [Quit: Leaving]
peregrine81 has joined #ruby
tfitts has quit [Ping timeout: 265 seconds]
xk_id has joined #ruby
phansch has joined #ruby
dkamioka has joined #ruby
petey__ has joined #ruby
cbetta has left #ruby ["Textual IRC Client: www.textualapp.com"]
cbetta has joined #ruby
<tyl> no its still not working
pen has quit []
<MrZYX> try to create a minimal example reproducing your issue
spider-mario has joined #ruby
aerook has joined #ruby
tkuchiki has joined #ruby
krawchyk has quit []
preller has joined #ruby
<aerook> hello, I'm having an issue with factorygirl + rspec + mongoid
<pontiki> also, please give more detail than "it works" or "it doesn't work"
<aerook> my understanding is that FactoryGirl.create saves the creation to the db before returning it
<tyl> pontiki the method reset_authentication_token! is never called
drumusician has joined #ruby
<tyl> i pug logger.debug messages in it but they are not shown in the rails logger
jkamenik has quit [Ping timeout: 264 seconds]
<cout> aerook: validation may have failed
jkamenik has joined #ruby
stetho has joined #ruby
nouitfvf has quit [Read error: Connection timed out]
<tyl> this line def ensure_authentication_token!
<aerook> cout: my model tests pass using the same factory
yfeldblum has joined #ruby
<tyl> reset_authentication_token! if self.authentication_token.blank?
nouitfvf has joined #ruby
coca_rails has quit [Remote host closed the connection]
coca_rails has joined #ruby
<olivier_bK> do you know how i can resolv this problem
dima_ has joined #ruby
<olivier_bK> `require': no such file to load -- mysql
<olivier_bK> i added in MysqlConnect.rb require 'mysql'
dktm has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
pen has joined #ruby
jlast has quit [Remote host closed the connection]
snath has quit [Read error: Operation timed out]
<cout> aerook: but you're still not checking the return value for errors
jamblack has quit [Quit: jamblack]
petey__ has quit [Remote host closed the connection]
jlast has joined #ruby
buscon_ has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
randomnick_ has joined #ruby
mikecmpbll has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 250 seconds]
user258467 has quit [Quit: Quitte]
sayan has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
marcgg_ has joined #ruby
SHyx0rmZ has joined #ruby
TomRone has joined #ruby
<aerook> cout: Sorry, I'm newish at this...How could a factory work fine for one test but not the other?
petey__ has joined #ruby
jlast has quit [Ping timeout: 248 seconds]
burlyscudd has quit [Quit: Leaving.]
geggam has joined #ruby
<cout> aerook: fine, if you don't want to check for errors, don't
<cout> write shit code
geggam has quit [Max SendQ exceeded]
<cout> I don't care
<aerook> I can do FactoryGirl.create(:user) in the console without error
xk_id has quit [Quit:
<aerook> yea i'm trying, that's why im here
geggam has joined #ruby
Virtualize has quit [Quit: Leaving...]
burlyscudd has joined #ruby
<aerook> you say check for errors, what does that mean? I have tests for all the user model validations, using factorygirl, and they pass
divi_ has joined #ruby
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
marcgg has quit [Ping timeout: 264 seconds]
dik_dak has joined #ruby
jchristi has joined #ruby
<aerook> the error that's being thrown is "Failure/Error: before { visit user_path(user) }", which happens after FactoryGirl.create, so I'm assuming that during the test, the factory user is being created without a problem
<aerook> that would make this a routing issue
punkcat has joined #ruby
wald0 has quit [Quit: Lost terminal]
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
Parker0_ has joined #ruby
<fuzzyhorns> aerook: i recommend you try #rubyonrails
bean has joined #ruby
<fuzzyhorns> aerook: i also recommend using pry with your tests so you can check on them in progress
Thanatermesis has joined #ruby
subbyyy_ has joined #ruby
<aerook> fuzzyhorns: thanks, i'm looking into pry
Virtualize has joined #ruby
divi__ has joined #ruby
scuwolf has joined #ruby
jlebrech has joined #ruby
divi_ has quit [Ping timeout: 246 seconds]
burlyscudd has quit [Ping timeout: 240 seconds]
Duckily has joined #ruby
drumusician has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Remote host closed the connection]
esing has joined #ruby
esing has quit [Changing host]
esing has joined #ruby
drag00n has quit [Ping timeout: 272 seconds]
freezey has joined #ruby
enebo has joined #ruby
snath has joined #ruby
hamakn has quit [Ping timeout: 250 seconds]
juarlex has quit [Remote host closed the connection]
mlpinit has quit [Remote host closed the connection]
centipedefarmer has quit [Remote host closed the connection]
jlast has joined #ruby
mlpinit has joined #ruby
gauteh has quit [Ping timeout: 252 seconds]
burlyscudd has joined #ruby
peregrine81 has quit []
sec^nd has joined #ruby
drag00n has joined #ruby
punkcat has quit [Ping timeout: 272 seconds]
aep has quit [Read error: Connection reset by peer]
Parker0 has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
rootshift has joined #ruby
mlpinit_ has joined #ruby
ewnd9 has quit [Ping timeout: 260 seconds]
AMcP has joined #ruby
digital-ghost has joined #ruby
tylersmith has joined #ruby
AMcP has quit [Remote host closed the connection]
drago777 has joined #ruby
xk_id has joined #ruby
tyl has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
mlpinit has quit [Ping timeout: 245 seconds]
atno_ has quit [Read error: Connection reset by peer]
gja has quit [Quit: This computer has gone to sleep]
AMcP has joined #ruby
ghr has quit [Quit: Computer has gone to sleep.]
tyl has joined #ruby
rootshift has quit [Ping timeout: 246 seconds]
xiphias has joined #ruby
danshultz has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 264 seconds]
TomRone has quit [Ping timeout: 240 seconds]
danshultz has joined #ruby
mary5030 has joined #ruby
LexicalScope has quit [Ping timeout: 246 seconds]
zeeraw has quit [Ping timeout: 240 seconds]
ffio has quit [Quit: WeeChat 0.4.1]
TomRone has joined #ruby
danshult_ has joined #ruby
drumusician has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
BombStrike has quit [Ping timeout: 260 seconds]
xk_id has quit [Quit:
mklappstuhl has joined #ruby
peregrine81 has joined #ruby
aganov has quit [Remote host closed the connection]
xiphias has quit [Ping timeout: 240 seconds]
Seich has joined #ruby
dangerousdave has joined #ruby
xiphias has joined #ruby
baroquebobcat has joined #ruby
RaCx has joined #ruby
gja has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
danshult_ has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
Txandy has joined #ruby
dkamioka has quit [Remote host closed the connection]
cmedeiros has quit [Ping timeout: 264 seconds]
Czupa has joined #ruby
danshultz has quit [Remote host closed the connection]
drago777 has joined #ruby
danshultz has joined #ruby
BombStrike has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
mklappstuhl has quit [Ping timeout: 245 seconds]
threesome has quit [Read error: Operation timed out]
Parker0_ has quit [Quit: Linkinus - http://linkinus.com]
dvmac3 has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
dvmac3 has quit [Client Quit]
akonny has quit [Quit: akonny]
xiphias has joined #ruby
senj has joined #ruby
jamblack has joined #ruby
ehc has joined #ruby
jamesaanderson has joined #ruby
psyl0n has quit []
mklappstuhl has joined #ruby
danshultz has quit [Ping timeout: 272 seconds]
danshultz has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Remote host closed the connection]
cow_ has joined #ruby
ahawkins has joined #ruby
phus1on has joined #ruby
tkuchiki has joined #ruby
xiphias has joined #ruby
kevind has joined #ruby
lyanchih has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
subbyyy has joined #ruby
ce_afk is now known as cescalante
BizarreCake has joined #ruby
mklappstuhl has quit [Ping timeout: 252 seconds]
petey__ has quit [Remote host closed the connection]
doodlehaus has joined #ruby
ivar has quit [Ping timeout: 246 seconds]
bricker has quit [Ping timeout: 272 seconds]
fred__ is now known as fred
fred has quit [Changing host]
fred has joined #ruby
bricker has joined #ruby
cow_ has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
petey_ has joined #ruby
dkamioka has joined #ruby
petey_ has quit [Remote host closed the connection]
TomRone has quit [Ping timeout: 240 seconds]
petey_ has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
<Underbyte> quick question for you fine ruby people
ivar has joined #ruby
scuwolf has left #ruby ["离开"]
<Underbyte> this is go #2 for my nginx+passenger server, after it was suggested the other day not to use rvm
Duckily has quit [Ping timeout: 265 seconds]
<Underbyte> so i installed ruby 2.0 natively, and this is what i'm getting when i try 'bundle install'
<Underbyte> root@api:/var/www/analytics# bundle install
<Underbyte> -bash: /usr/local/bin/bundle: /usr/bin/ruby1.9.1: bad interpreter: No such file or directory
xiphias has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
cmedeiros has joined #ruby
Bira has joined #ruby
<Underbyte> anyway ideas?
psyl0n has joined #ruby
<workmad3> Underbyte: did you reinstall bundler after installing ruby 2?
RaCx has quit [Ping timeout: 240 seconds]
<wmoxam> Underbyte: sounds like /usr/local/bin/bundle is an old version
<Underbyte> no. should i?
<wmoxam> yes
<Underbyte> gem reinstall bundle?
<wmoxam> maybe remove /usr/local/bin/bundle
<wmoxam> gem install bundler
TomRone has joined #ruby
aspires has joined #ruby
michaeldeol has joined #ruby
petey__ has joined #ruby
<Underbyte> cool, looks like 'gem uninstall bundle; gem install bundle' worked fine
cmedeiros has quit [Max SendQ exceeded]
<workmad3> Underbyte: the executable wrappers that rubygems creates have a hard-coded link to the ruby interpreter they were installed with in them
petey_ has quit [Read error: Connection reset by peer]
ch0mskiii has joined #ruby
alexherbo2 has quit [Ping timeout: 260 seconds]
<Underbyte> now getting this when i run 'bundle install'
Guest12315 has quit [Remote host closed the connection]
chomskiii has quit [Read error: Connection reset by peer]
<Underbyte> i'm guessing i'm missing some mysql lib package, anyone know which one it might be
sambao21 has joined #ruby
juarlex has joined #ruby
<Underbyte> never mind, looks like it was 'libmysql-dev'
<MrZYX> libmysqlclient-dev should suffice
Hanmac1 has joined #ruby
drago777 has joined #ruby
burlyscudd has quit [Quit: Leaving.]
jamesaanderson has quit [Quit: Textual IRC Client: www.textualapp.com]
<Underbyte> okay, one more question :)
<Underbyte> Cannot execute "/usr/lib/passenger/agents/SpawnPreparer": No such file or directory (errno=2)
blaxter has quit [Quit: foo]
drumusician has quit [Ping timeout: 246 seconds]
Hanmac has quit [Ping timeout: 265 seconds]
aspires has quit [Ping timeout: 240 seconds]
xiphias has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Ping timeout: 248 seconds]
mklappstuhl has joined #ruby
xiphias has joined #ruby
freezey has quit [Remote host closed the connection]
huttan_ has joined #ruby
reach has quit []
Kiba has joined #ruby
<Kiba> hi
subbyyy_ has quit [Ping timeout: 240 seconds]
<Kiba> working on a research project
aspires has joined #ruby
xk_id has joined #ruby
<Kiba> trying to marhsal lines into ruby hashes
aagdbl1 has joined #ruby
maletor has joined #ruby
jonathanwallace1 has joined #ruby
aagdbl1 is now known as aagdbl
diego_k has joined #ruby
Elhu_ has joined #ruby
marr123 has joined #ruby
freerobby1 has joined #ruby
marr123 has quit [Remote host closed the connection]
<havenwood> Kiba: Can you give an example of input String with desired output?
andredieb_ has joined #ruby
<Kiba> already working on a paste
lemonsparrow has quit [Ping timeout: 272 seconds]
drag00n_ has joined #ruby
nari has quit [Ping timeout: 264 seconds]
goto has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
<havenwood> Kiba: Are you on Ruby 1.8?
tyl_ has joined #ruby
relix_ has joined #ruby
<Kiba> 1.9.3
<MrZYX> and why do you strip? how is test-data generated?
<havenwood> Kiba: Then no need to `require "rubygems"`
<Underbyte> okay i think i actually have a problem that's not PEBKAC this time: http://pastebin.com/TYphbLLZ
xiphias has joined #ruby
<Kiba> I assume I need it
<havenwood> Kiba: Marshal.load not Marshal::load (it is a method, not a namespaced constant).
TomRone has quit [Ping timeout: 240 seconds]
buscon_ has quit [Remote host closed the connection]
<Kiba> incompatiable marshal file format (can't be read)
subbyyy has quit [Ping timeout: 240 seconds]
<havenwood> Underbyte: mkmf is a Ruby dependency that you appear to not have installed
punkcat has joined #ruby
thams has quit [Quit: thams]
<Underbyte> havenwood: is that a gem or a debian package?
oz` has joined #ruby
<havenwood> Kiba: You've left the file unclosed, which is one amongst many reasons to use the block form of File.open.
<havenwood> Underbyte: package
<Underbyte> (yep, looks like the package is 'ruby-dev')
oz has quit [Disconnected by services]
oz` is now known as oz
<havenwood> Underbyte: sudo apt-get install ruby1.9.1-dev
<matti> Underbyte: And: make and build-essential
<Kiba> havenwood: does it matter?
braincra- has joined #ruby
<MrZYX> Kiba: again, how is test-data generated?
<Kiba> MrZYX: a hash for each line
<havenwood> Underbyte: The actual reqs: sudo apt-get install -y build-essential libffi-dev libgdbm-dev libncurses5-dev libreadline-dev libssl-dev libyaml-dev zlib1g-dev
<havenwood> Underbyte: If you're not using Ruby package*
flubba has joined #ruby
<havenwood> Underbyte: I'd ensure those ^ are installed though.
Seich has quit [Remote host closed the connection]
sambao21 has quit [Ping timeout: 245 seconds]
freerobby has quit [*.net *.split]
Txandy has quit [*.net *.split]
tyl has quit [*.net *.split]
Virtualize has quit [*.net *.split]
sayan has quit [*.net *.split]
jlebrech has quit [*.net *.split]
drag00n has quit [*.net *.split]
JonnieCache has quit [*.net *.split]
lfox has quit [*.net *.split]
falood has quit [*.net *.split]
viod1 has quit [*.net *.split]
Elhu has quit [*.net *.split]
andycamp has quit [*.net *.split]
Mohan__ has quit [*.net *.split]
Bofu2U has quit [*.net *.split]
marr has quit [*.net *.split]
relix has quit [*.net *.split]
radic has quit [*.net *.split]
braincrash has quit [*.net *.split]
diegok has quit [*.net *.split]
jonathanwallace has quit [*.net *.split]
anderson has quit [*.net *.split]
huttan has quit [*.net *.split]
<havenwood> Underbyte: chruby wiki is a good reference for dependencies: https://github.com/postmodern/chruby/wiki/Ruby
<MrZYX> Kiba: you can't just write normal ruby hashes in a file and expect Marshal.load to parse them correctly
TomRone has joined #ruby
<MrZYX> it has its own format
<Underbyte> havenwood: well first of all, i'm using ruby 2.0, not 1.9.1
coca_rails has joined #ruby
<havenwood> Kiba: Marshal.load only loads what Marshal.dump has already serialized
<havenwood> Underbyte: oh, good
<havenwood> Underbyte: thought you said 1.9 for some reason
<Underbyte> no worries
<Underbyte> now the error i'm getting from passenger is this: Could not find json-1.8.0 in any of the sources (Bundler::GemNotFound)
<Kiba> havenwood: oh
cads has quit [Ping timeout: 252 seconds]
<Kiba> MrZYX: how would I handle it then?
terrellt_ has joined #ruby
robbyoconnor has joined #ruby
<Kiba> eval?
<MrZYX> guess what, that depends on how test-data is generated
terrellt has quit [Disconnected by services]
terrellt_ is now known as terrellt
<havenwood> Kiba: Can you properly serialize it in the first place?
<havenwood> Kiba: Or are you getting remote data?
<Kiba> well, it's a file
xiphias has quit [Ping timeout: 240 seconds]
<MrZYX> Kiba: don't let us guess, describe how you data is generated exactly, not only how it looks
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
<MrZYX> are you typing it by hand or what?
burlyscudd has joined #ruby
<Kiba> MrZYX: no, I wrote a program to download data for each gem
<pontiki> Kiba: was each line of your file generated with a Marshal::dump ?
cmedeiros has joined #ruby
<Kiba> MrZYX: in which I made a mistake of not serializing it as JSON
xiphias has joined #ruby
Mohan__ has joined #ruby
falood has joined #ruby
whunt has joined #ruby
sayan has joined #ruby
Virtualize has joined #ruby
lfox has joined #ruby
andycamp has joined #ruby
jlebrech has joined #ruby
Bofu2U has joined #ruby
<MrZYX> Kiba: show how you dumped the data then
<MrZYX> in code
sayan has quit [Quit: Leaving]
andycamp has left #ruby [#ruby]
sayan has joined #ruby
<Kiba> so I just wrote the data as just ruby hashes
<pontiki> not at Marshal::dump
<Kiba> and by the time I realized my error, it was too late
<pontiki> why would you expect Marshal::load to read that?
cmedeiros has quit [Max SendQ exceeded]
<Kiba> I don't know what I was thinking
<pontiki> ah
<pontiki> been there, a lot
<MrZYX> so that's Hash.to_s
cmedeiros has joined #ruby
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
drago777 has quit [Ping timeout: 240 seconds]
<MrZYX> which is the same as Hash#inspect
<havenwood> Kiba: Is easy to save to file with Marshal or YAML with PStore or YAML::Store, but you've got to properly serialize before you can deserialize (whether it be YAML, JSON, Marshal, MsgPack, whatever).
cmedeiros has quit [*.net *.split]
whunt has quit [*.net *.split]
jlebrech has quit [*.net *.split]
Virtualize has quit [*.net *.split]
lfox has quit [*.net *.split]
falood has quit [*.net *.split]
Mohan__ has quit [*.net *.split]
Bofu2U has quit [*.net *.split]
radic has joined #ruby
cmedeiros has joined #ruby
andredieb_ is now known as andredieb
andredieb has quit [Changing host]
andredieb has joined #ruby
<havenwood> >> Marshal.load(Marshal.dump({an: 'example'}))
<eval-in> havenwood => {:an=>"example"} (https://eval.in/81215)
aagdbl has quit [Quit: Leaving.]
<Kiba> havenwood: right, but I now have a 200+ MB problem
xiphias has quit [Ping timeout: 240 seconds]
drago777 has joined #ruby
dkamioka has quit [Remote host closed the connection]
<havenwood> well, if you created the data then `eval` each line and serialize it back to file
Solnse has joined #ruby
<pontiki> Kiba: so basically, you have a file, each line of which contains the ruby code equivalent of a hash
xiphias has joined #ruby
robbyoconnor has quit [Ping timeout: 272 seconds]
<Kiba> yep, which I plan to do
<Kiba> pontiki: something like that, yes
Solnse has quit [Client Quit]
coca_rails has quit [Ping timeout: 245 seconds]
phansch has quit [Quit: Leaving]
<pontiki> edit it so it's an array, then eval it, write it back out the way you want?
sepp2k has quit [Quit: Konversation terminated!]
<MrZYX> actually the i18n gem supports a similar "format", sadly there seems to be no better alternative to eval, I'm sure they'd use something else otherwise https://github.com/svenfuchs/i18n/blob/6f4342d8e029756c21aa3580ae453f237a0ce866/lib/i18n/backend/base.rb#L171
<pontiki> or something like that...
mikepack has quit [Remote host closed the connection]
<havenwood> oh, there is apeiros's gem
jamblack has quit [Quit: jamblack]
<MrZYX> ah, right literal_parser is another thing to look right, always forget that :P
timonv has quit [Remote host closed the connection]
aep has joined #ruby
dweeb_ has joined #ruby
dweeb_ has quit [Client Quit]
vongrippen has quit []
klaut has joined #ruby
freezey has joined #ruby
timonv has joined #ruby
jlebrech has joined #ruby
whunt has joined #ruby
lfox has joined #ruby
falood has joined #ruby
Virtualize has joined #ruby
Bofu2U has joined #ruby
Mohan__ has joined #ruby
yacks has joined #ruby
RaCx has joined #ruby
michaeldeol has joined #ruby
sassamo has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vongrippen_ has joined #ruby
ckinni has joined #ruby
ckinni has quit [Max SendQ exceeded]
ckinni has joined #ruby
ckinni has quit [Max SendQ exceeded]
will has joined #ruby
petey__ has quit [Remote host closed the connection]
ckinni has joined #ruby
will is now known as Guest25131
Guest25131 has left #ruby [#ruby]
michaeldeol has quit [*.net *.split]
whunt has quit [*.net *.split]
timonv has quit [*.net *.split]
jlebrech has quit [*.net *.split]
Virtualize has quit [*.net *.split]
falood has quit [*.net *.split]
lfox has quit [*.net *.split]
Bofu2U has quit [*.net *.split]
Mohan__ has quit [*.net *.split]
Mohan has joined #ruby
Mohan has joined #ruby
Mohan has quit [Changing host]
petey_ has joined #ruby
falood has joined #ruby
jlebrech has joined #ruby
koalallama has left #ruby [#ruby]
canton7-mac has joined #ruby
varfoo has quit [Quit: WeeChat 0.4.0]
michaeldeol has joined #ruby
petey_ has quit [Read error: Connection reset by peer]
aspires has quit []
vongrippen_ is now known as vongrippen
coca_rails has joined #ruby
viod has joined #ruby
jkhwan has joined #ruby
varfoo has joined #ruby
dkamioka has joined #ruby
varfoo has quit [Client Quit]
falood has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
flubba has quit [Remote host closed the connection]
psyl0n has quit []
brianpWins has quit [Quit: brianpWins]
threesome has joined #ruby
lfox has joined #ruby
s2013 has joined #ruby
zumba_addict has joined #ruby
Virtualize has joined #ruby
troyready has quit [Ping timeout: 264 seconds]
ivar has quit [Read error: Connection reset by peer]
flubba has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
coca_rails has quit [Ping timeout: 245 seconds]
TomRone has quit [Ping timeout: 240 seconds]
<krainboltgreene> Imagine if ruby automatically bound any keyword arguments you passed.
ivar has joined #ruby
<krainboltgreene> Would it better or worse?
TomRone has joined #ruby
drago777 has joined #ruby
zeropx has quit [Ping timeout: 272 seconds]
allaire has quit []
rg_ has joined #ruby
flubba has quit [Ping timeout: 250 seconds]
<MrZYX> you mean if you don't need to declare them in your method definition? worse
Virtualize has quit [Quit: Leaving...]
<workmad3> krainboltgreene: you mean when using a catch-all **kwargs?
Heskie has quit []
zeropx has joined #ruby
alup has quit [Quit: Leaving]
sambao21 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<workmad3> krainboltgreene: because you can already declare them and they'll be bound... e.g. 'def foo(arg1: "fooo", arg2: "bar")
Virtualize has joined #ruby
Bira has quit [Remote host closed the connection]
noop has joined #ruby
petey has joined #ruby
burlyscudd has quit [Quit: Leaving.]
rg_ has quit [Quit: Leaving]
<krainboltgreene> That is
sambao21 has quit [Ping timeout: 264 seconds]
slash_nick has quit [Ping timeout: 246 seconds]
<krainboltgreene> You don't ahve to declare them.
slash_nick has joined #ruby
juarlex has quit [Ping timeout: 240 seconds]
<MrZYX> that's bad. first thing that comes to my mind is that it'd be too easy to accidentally overwrite a (private) method called in the method you call
<krainboltgreene> Example:https://gist.github.com/krainboltgreene/8043002
brennanMKE has joined #ruby
<krainboltgreene> Good point, with normal arguments you're limited to what the method definer allowed.
liamkeil1 has quit [Ping timeout: 260 seconds]
magbeat_ has quit [Ping timeout: 246 seconds]
<DouweM> krainboltgreene: why would you want that? What good is it to work with parameters when you don't know whether you'll receive them if any?
<krainboltgreene> And instead of accidentally, lets say maliciously.
petey has quit [Remote host closed the connection]
rg_ has joined #ruby
<krainboltgreene> DouweM: You know you'll receive them, because you're expecting htem.
<krainboltgreene> If you don't receive them then the method fails.
petey has joined #ruby
<krainboltgreene> Assuming you have a clean slate of bindings.
magbeat has joined #ruby
juarlex has joined #ruby
<DouweM> why would the method fail? because of undefined var? what if you have method_missing?
jlebrech has quit [Quit: Konversation terminated!]
<krainboltgreene> Yes.
<DouweM> and when you know what you're receiving, why not just explicitly specify them?
petey has quit [Read error: Connection reset by peer]
Kabaka has quit [Ping timeout: 246 seconds]
<krainboltgreene> Aren't you being explicit by using
<krainboltgreene> ?
maletor has joined #ruby
nvrch has quit [Quit: nvrch]
<DouweM> no, because how would the source know you're referring to the `name` var rather than the `name` method or even `method_missing(:name)`?
<krainboltgreene> Good point, you would have to change how methods are called.
petey has joined #ruby
<krainboltgreene> To avoid ambiguity.
<DouweM> let's not go there :P
fcoury has quit [Ping timeout: 246 seconds]
<DouweM> and "explicit by using" sounds mightily implicit to me
<shevy> let's go there
<shevy> and send DouweM first
<krainboltgreene> I agree, go there.
<shevy> :D
<DouweM> jesus :P
grvgr has joined #ruby
<krainboltgreene> I admit I'm actually just discussing this because of the language I'm playing around building.
<shevy> when I read explicit, I instantly think of python
<krainboltgreene> It behaves much like ruby, so I can get away with saying "what if ruby did (X thing I'm thinking of doing)"
vlad_starkov has joined #ruby
<DouweM> krainboltgreene: ah, in that case :) I thought you were genuinly wondering why this wasn't supported in Ruby
<DouweM> right
<krainboltgreene> I do want better keyword argument support in Ruby.
<DouweM> but in this case you couldn't have method_missing
p0wn3d has joined #ruby
<krainboltgreene> Oh in ruby though you could use self.method name
cbetta is now known as cbetta_afk
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<krainboltgreene> That would disambiguate in ruby between the local variable and the method, I believe.
<DouweM> sure
<krainboltgreene> It would mean foreverafter requiring self.
freerobby1 has quit [Quit: Leaving.]
<krainboltgreene> I wonder if adding () would do the same.
<DouweM> Also, method headers are very useful to learn a class's/method's interface. that goes out the door when you have to scan the code to find the required vars :/
freerobby has joined #ruby
mikepack has joined #ruby
<krainboltgreene> Might force people to write smaller methods, which is always good.
fcoury has joined #ruby
<DouweM> and when you find `nationality` halfway down the method definition, you'd have to scan up again to see if it's a local var or a parameter
<krainboltgreene> Realistically we see this in ruby all the freaking time: def method(arg, options = {})
<DouweM> true
shedd has joined #ruby
<krainboltgreene> Though admittedly it means doing options[:key]
TMM has quit [Quit: Ex-Chat]
rg_ has quit [Quit: Leaving]
<DouweM> but that's not so much Ruby as a Railsism :/ at least, it's just much much more in Rails than in pure Ruby libs in my experience.
drago777 has quit [Ping timeout: 240 seconds]
<DouweM> right, so it's much easier to scan for
<krainboltgreene> Agreed, not used once in any of the STDlibs.
<DouweM> and those are pretty much always explained in the documenting comment accompanying a method def
RaCx has quit [Quit: Computer has gone to sleep.]
rootshift has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
<DouweM> so if you're going to make that documentation, why not just specify it in the method header explicitly?
<krainboltgreene> It's funny that we have this syntax "limitation" because documentation isn't a given.
Duckily has joined #ruby
<krainboltgreene> If good documentation is a given, or small methods prolific, then it might be easier to swallow.
dhruvasagar has joined #ruby
dogweather has quit [Remote host closed the connection]
dapz has joined #ruby
rh1n0 has joined #ruby
<krainboltgreene> Thanks for the discussion DouweM.
<DouweM> you're also throwing abstract classes away
dogweather has joined #ruby
pel_daniel has joined #ruby
<krainboltgreene> How so?
drago777 has joined #ruby
<DouweM> if vars are only specified by the implementation, you can't have an abstract class without an implementation
Virtualize has quit [Quit: Leaving...]
<DouweM> If you have an abstract Shape class and subclasses Square and Circle, you can have a #draw method, but to get the parameters for that draw method you'd need to scan the implementation. Which is empty for the Shape class
Kabaka has joined #ruby
fcoury has quit [Ping timeout: 240 seconds]
TomRone has quit [Ping timeout: 240 seconds]
<krainboltgreene> Interesting. Mixins become a lot harder.
<DouweM> so there are no parameters? Yeah there are, thats, x and y, which are used in Square#draw and Circle#draw. But you're just dealing with a Shape, and don't care about its subclasses
<DouweM> Shape needs to specify its interface somehow, even if it has no implementation
<DouweM> so in this case you'd need to spcify them explicitly, and we're back to square one
<krainboltgreene> Is that really any different? I mean in a truely reflective language like Smalltalk it's easy to garner information about a method via developer interfaces.
<krainboltgreene> Ruby's various REPLs now-a-days have things like show-method.
rh1n0 has quit [Quit: Textual IRC Client: www.textualapp.com]
<DouweM> when you expect a Shape object, how would you find out what parameters its #draw method expects?
rh1n0 has joined #ruby
<DouweM> note that you don't know or care about Square and Circle
<krainboltgreene> I wonder if having really good tools and those tools being able to determine what arguments are required would help.
<DouweM> they may not even have been defined
Duckily has quit [Ping timeout: 240 seconds]
<DouweM> how would your tool do that
mklappstuhl has joined #ruby
ahawkins has quit [Ping timeout: 246 seconds]
<DouweM> it can't. because there is no implementation.
ssvo has joined #ruby
dogweather has quit [Ping timeout: 246 seconds]
<krainboltgreene> Well lets assume that each method is an object, and when defining the body it finds the varnames and assigns them setter/getters.
fcoury has joined #ruby
coca_rails has joined #ruby
<DouweM> Right. So what about Shape#draw?
<krainboltgreene> That would require evaluating the method body I think.
grvgr has quit [Quit: grvgr]
<DouweM> Shape#draw doesn't have a body. Shape is an abstract class
<DouweM> it just specifies the interface
<krainboltgreene> Draw is given from something though, yes?
<krainboltgreene> Somewhere something defines draw and gives it to Shape.
<Hanmac1> normaly a the Shape supclasses should take the same parameter for the #draw specification (like it would be in C++)
<DouweM> class Shape; def draw; end; end
<krainboltgreene> Haha, well then theoretically you can pass in anything and nothing would fail.
<krainboltgreene> You'd just get nil in return.
<DouweM> :|
TomRone has joined #ruby
<krainboltgreene> It'd be the same for def draw(options = {}); end
<workmad3> krainboltgreene: so your suggestion is that 'def draw; end;' becomes the same as 'def draw(*args); end;'?
sec^nd has quit [Ping timeout: 240 seconds]
<DouweM> for Shape#draw, sure, but in actuality you're not working with Shape, you're working with Square or Circle
centipedefarmer has joined #ruby
DanBoy has quit [Ping timeout: 240 seconds]
end_guy has quit [Ping timeout: 240 seconds]
predator217 has quit [Remote host closed the connection]
slackfan has quit [Quit: slackfan]
<Hanmac1> krainboltgreene: like r= Rect.new(width: 4,height: 5); r.draw(x: 1, y: 2)
<DouweM> it'd be impossible to find out what parameters a method takes, without reading through the source for any of its implementations
relix_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<DouweM> *every even
<krainboltgreene> Well, not easily feasible with normal methods.
<krainboltgreene> It'd definitely be possible.
<DouweM> I
<krainboltgreene> Just in weird ways.
marr has joined #ruby
<DouweM> I'm gonna get back to studying for my exam tomorrow, good luck with figuring out your language :P
<krainboltgreene> So there's a class of mixin style where the sub-object gets all of the behavior of the parent-object.
<Hanmac1> DouweM & krainboltgreene: Klassname.instance_method(:meth).parameters
<krainboltgreene> Instead of delegation it's directly copying.
olivier_bK has quit [Ping timeout: 248 seconds]
Hanmac1 is now known as Hanmac
<workmad3> DouweM: and that's not getting into issues where you have different options, e.g. a Circle may accept draw(radius: 5) while square would have draw(side_length: 5)
Megtastique has quit []
<workmad3> should the abstract draw method bind both, so that they're acceptable for all shapes?
<krainboltgreene> It's definitly difficult to think of this happening in runtime, but perhaps that's not so often.
mklappstuhl has quit [Ping timeout: 250 seconds]
<DouweM> workmad3: well, in the case of a Shape#draw method that's just called from some Canvas with an array of Shapes, I'm not sure that would be an option anyway?
<krainboltgreene> Why are square and circile not getting different defined draw methods again?
<Hanmac> krainboltgreene: make a gist of your code so we canshow you whats wrong
coca_rails has quit [Ping timeout: 245 seconds]
<DouweM> krainboltgreene: they are. squares and circles aren't drawn the same way, obvs
<workmad3> krainboltgreene: they will... but they're conforming to an interface from the Shape abstract superclass
wildroman2 has quit [Remote host closed the connection]
<DouweM> the Shape#draw method doesn't make any assumptions and leaves all implementation to its subclasses
<krainboltgreene> Er, sure: Hanmac https://gist.github.com/krainboltgreene/8043002
predator117 has joined #ruby
<krainboltgreene> I see.
<workmad3> krainboltgreene: and the method signature of interface methods should really match the superclass interface in order to conform to LSP
wildroman2 has joined #ruby
obs has quit [Quit: Saliendo]
drago777 has quit [Ping timeout: 240 seconds]
mklappstuhl has joined #ruby
<krainboltgreene> Even in mixin only style passing of behavior?
s2013 has quit [Ping timeout: 240 seconds]
atno has joined #ruby
canton7-mac has quit [Quit: Leaving]
<krainboltgreene> Seems like that law really only helps when you have single points of behavior passing.
AMcP has quit [Remote host closed the connection]
<DouweM> krainboltgreene: which is why Shape#draw is empty. Circle#draw and Square#draw do have implementation. Our class has, say, a list of Shapes, and we want to draw them all, by calling shape.draw(ARGS). What args would it take? Well, we look at the Shape#draw method. Which is empty. So no args? Well, no, because obviously a #draw method would take x and y args (or anything else you fancy)
<krainboltgreene> If you have a Policeman and Fireman mixin on a Person object, which #career method do you conform to?
<workmad3> krainboltgreene: with mixins, you tend to require some form of interface method too, that you can rely on the interface for... so unless you're going to scan the entire source for all uses and somehow normalise them
mary5030_ has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
<krainboltgreene> DouweM: Not sure I know why you're making an empty method. Go back to studying.
<DouweM> krainboltgreene: because Shape doesn't know anything about how to draw a generic shape. that's left to the subclasses
mklappstuhl has joined #ruby
<workmad3> krainboltgreene: because ruby doesn't support 'true' abstract classes
<krainboltgreene> I'll probably realize what you're saying in the shower or sometjhing.
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DouweM> But yeah, fair point on the studying. I'll leave this to workmad3 and Hanmac :)
<krainboltgreene> DouweM: If Shape doesn't know how to draw, who the hell gave it a draw method? :P
<workmad3> krainboltgreene: so to define an interface you create an empty method to declare the expected interface
<DouweM> krainboltgreene: dude. learn abstract classes
RaCx has joined #ruby
<krainboltgreene> I suppose I'll ahve to read up on these.
<DouweM> that would help
petey has quit [Remote host closed the connection]
drago777 has joined #ruby
<krainboltgreene> I just can't imagine defining a method that would never get used.
<krainboltgreene> Unless it's to say "Hey, this object isn't complete unless it defines this method"
moted has joined #ruby
<workmad3> krainboltgreene: think of that empty method as programmer documentation on the expected interface
petey has joined #ruby
<Hanmac> workmad3: you CAN make "true" abstract classes in ruby ;P but its not a nice way to do that
dapz has joined #ruby
<workmad3> krainboltgreene: if the method is required, a common practice is do do 'def draw; raise NotImplementedException; end'
wildroman2 has quit [Ping timeout: 245 seconds]
<Hanmac> krainboltgreene: normaly methods you need to overwrite does raise "NotImplmentedError" or something like that
<workmad3> (or whatever that exception is called)
<zumba_addict> hey folks, what does this mean in the beginning of a line? #= require and //= require
<workmad3> NotImplementedError, that's it, thanks Hanmac :)
<zumba_addict> i mean, beginning of a file
<krainboltgreene> workmad3: That sounds like brittle documentation. If I crate an Oblong class that gets it's beahvior from Shape but never define draw, then run my code it breaks because of whatever an empty method returns.
mary5030 has quit [Ping timeout: 246 seconds]
<krainboltgreene> zumba_addict: That's a Sprockets thing.
<workmad3> krainboltgreene: catch up :P already commented about what is typical for a required method
<zumba_addict> What is Sprockets krainboltgreene ?
<Hanmac> workmad3: you can remove the allocate method from a class to make it "virtual" ;D
<workmad3> krainboltgreene: while for an optional method, returning nothing is fairly standard... same for creating 'hook' methods
<workmad3> Hanmac: ewww :)
petey_ has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
<krainboltgreene> Not sure if I like the idea, but it's good food for thought.
Senjai`work has joined #ruby
<krainboltgreene> The whole "binding overwriting" thing from DouweM threw me for a loop.
<krainboltgreene> zumba_addict: It's a thing for Rails.
<zumba_addict> k
petey has quit [Read error: Connection reset by peer]
<krainboltgreene> zumba_addict: You probably read it in a application.js or application.css file?
thams has joined #ruby
BombStrike has quit [Ping timeout: 264 seconds]
<zumba_addict> no, in a coffeescript file
vikhyat has quit [Remote host closed the connection]
mklappstuhl has quit [Ping timeout: 265 seconds]
w4pm has joined #ruby
psyl0n has joined #ruby
Spami has joined #ruby
<krainboltgreene> Same thing.
<krainboltgreene> zumba_addict: Google "sprockets ruby github"
<zumba_addict> ok
Xeago has quit [Remote host closed the connection]
<zumba_addict> this is what I found, https://github.com/sstephenson/sprockets
<zumba_addict> is that it?
<krainboltgreene> zumba_addict: It's a way for Sprockets to "compile" multiple asset files into a single file.
<zumba_addict> ah like minification
<krainboltgreene> You "require" these other files.
<krainboltgreene> And gathering.
<krainboltgreene> Minification comes later.
<zumba_addict> got it
<zumba_addict> so combining
<krainboltgreene> The whole using "require" is just to make it feel like Ruby.
<workmad3> sprockets will combine and then minify (if you've got a minifier set up)
<krainboltgreene> Because ruby's method for loading other files is "require"
<workmad3> krainboltgreene: or load ;)
buscon_ has joined #ruby
<krainboltgreene> "An AbstractClass is a class that represents abstract concepts for which objects cannot exist." sounds like a module.
octoberry has joined #ruby
wildroman2 has joined #ruby
<zumba_addict> i am confused about the symbol though. On one file, i see #= require and on another file, I see //= require
wildroman2 has quit [Remote host closed the connection]
BombStrike has joined #ruby
maletor_ has joined #ruby
CaptainJet has joined #ruby
<krainboltgreene> zumba_addict: It's beacuse # is the comment symbol for coffeescrpt and // for javascript
TomRone has joined #ruby
<krainboltgreene> All sprockets directives (the words and crap) are inside comments.
<workmad3> zumba_addict: sprockets supports several different prefixes to 'fit in' with the comments for different syntaxes
<krainboltgreene> At the top.
<zumba_addict> hmmm, they're both in a coffeescript file
maletor has quit [Read error: Connection reset by peer]
wildroman2 has joined #ruby
ValicekB has quit [Ping timeout: 250 seconds]
<krainboltgreene> Then you'll have problems.
<workmad3> krainboltgreene: no he won't
failshell has quit []
<krainboltgreene> Unless coffeescript supports //?
ffio has joined #ruby
<workmad3> krainboltgreene: sprockets doesn't care what comment type you use
sec^nd has joined #ruby
Megtastique has joined #ruby
<krainboltgreene> Fairly sure it did. Maybe they changed that?
<zumba_addict> workmad3: am I right that #= require is not a comment
<workmad3> krainboltgreene: it never has
<krainboltgreene> Oh well, uniform it anyways.
<workmad3> zumba_addict: #= is a coffeescript comment
<krainboltgreene> It looks ugly :P
<zumba_addict> ok
<workmad3> zumba_addict: //= is a javascript comment
<workmad3> zumba_addict: most likely, someone renamed a .js file to .js.coffee without changing the require directives
<krainboltgreene> ^^
dhruvasagar has quit [Ping timeout: 272 seconds]
gomix has joined #ruby
<zumba_addict> I'll ask my teammate now
w4pm has quit [Ping timeout: 252 seconds]
arietis has joined #ruby
jkamenik has quit [Quit: Leaving.]
<workmad3> zumba_addict: the main thing it'll screw up is your syntax highlighting, as long as sprockets keeps on removing processed comments ;)
<zumba_addict> k
rdark has quit [Quit: leaving]
<zumba_addict> one sec, here he is
pen has quit [Remote host closed the connection]
dogweather has joined #ruby
mikepack has quit [Remote host closed the connection]
jhaals has joined #ruby
shaunbaker has quit [Remote host closed the connection]
iliketur_ has joined #ruby
fijimunkii has quit [Ping timeout: 245 seconds]
rh1n0 has quit [Quit: Linkinus - http://linkinus.com]
allaire has joined #ruby
vikhyat has joined #ruby
mercwithamouth has joined #ruby
flubba has joined #ruby
mikepack has joined #ruby
allaire has quit [Client Quit]
<zumba_addict> he also thinks it's a comment but he was not sure
subbyyy has joined #ruby
viod has quit [Ping timeout: 264 seconds]
<workmad3> zumba_addict: coffeescript uses # for comments, javascript uses //
<workmad3> zumba_addict: and CSS uses /* */ for block comments, sprockets also supports that (with a *= require )
Elhu_ has quit [Quit: Computer has gone to sleep.]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zumba_addict> what confuses me is that //= is also found in our coffeescript files, tons of fiels
<workmad3> zumba_addict: yeah, sprockets removes the comment after it's been procesed
dapz has joined #ruby
<workmad3> zumba_addict: so it doesn't cause an issue
Duckily has joined #ruby
fijimunkii has joined #ruby
<workmad3> zumba_addict: but if you tried a plain // comment in a coffeescript file, you'd get errors
<workmad3> zumba_addict: and you also get weird syntax highlighting... and if you have a syntax checker run when you save a file, you'll also get errors then
<zumba_addict> ok. What I''ll do is remove that line and try to access the webpage
<workmad3> zumba_addict: don't remove the lines... just change //= to #=
BombStrike has quit [Ping timeout: 264 seconds]
<zumba_addict> but some of our coffeescript files doesn't have them
<workmad3> zumba_addict: not every coffeescript file needs to depend on other files
<zumba_addict> so are you saying that the require does really import the file?
brianpWins has joined #ruby
<workmad3> zumba_addict: yes
<zumba_addict> oh ok
<zumba_addict> got it
<zumba_addict> i understand it now
<workmad3> zumba_addict: those files are parsed by sprockets and used to import files :)
<zumba_addict> yeah and not by coffeescript
<workmad3> *lines are parsed
<workmad3> yeah
ValicekB has joined #ruby
BombStrike has joined #ruby
<zumba_addict> so if #, sprocket will ignore it?
petey_ has quit [Remote host closed the connection]
troessner has quit [Read error: Connection reset by peer]
<workmad3> zumba_addict: # is a plain coffeescript comment, yes
dapz has quit [Client Quit]
<zumba_addict> yes, # is a coffeescript comment
petey has joined #ruby
<zumba_addict> but when it's #, will sprocket ignore it too?
<workmad3> zumba_addict: sprockets will pick up #= require (and a few other directives) as long as there aren't any non-comment lines before it in the file
<workmad3> zumba_addict: yes, sprockets only touches lines it can do stuff with
<zumba_addict> what if sprocket sees //= require?
<workmad3> it'll process it
<zumba_addict> k
<workmad3> but it'll look ugly in your coffeescript files :)
<zumba_addict> so now, what does coffeescript do when it sees //= require
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<workmad3> zumba_addict: barf
<zumba_addict> ok
Virtualize has joined #ruby
freerobby has quit [Quit: Leaving.]
Alina-malina has quit [Ping timeout: 248 seconds]
txdv has joined #ruby
Alina-malina has joined #ruby
SmileyKeith has joined #ruby
thams has quit [Quit: thams]
dapz has joined #ruby
petey has quit [Ping timeout: 240 seconds]
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
juarlex has quit [Remote host closed the connection]
juarlex has joined #ruby
mklappstuhl has joined #ruby
BombStrike has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
<Underbyte> hey, where is "mkmf.log"?
tvw has quit []
juarlex has quit [Read error: No route to host]
juarlex has joined #ruby
dhruvasagar has joined #ruby
fuzzyhorns has quit [Quit: Leaving.]
saarinen has joined #ruby
AMcP has joined #ruby
werdnativ has joined #ruby
nanoyak has joined #ruby
freerobby has quit [Client Quit]
<havenwood> Underbyte: locate mkmf.log
BombStrike has joined #ruby
<havenwood> Underbyte: likely all over
mklappstuhl has quit [Ping timeout: 250 seconds]
<Underbyte> well, anyone have an idea of what this could be about? http://pastebin.com/9kg69ekJ
freerobby has joined #ruby
thams has joined #ruby
viod has joined #ruby
<Underbyte> (part of my botched passenger installation)
divi__ has quit [Quit: Textual IRC Client: www.textualapp.com]
<Underbyte> (apparently it refuses to build the nginx plugin, due to some unmet dependency)
<Underbyte> You have to install development tools first.
divi has joined #ruby
<Underbyte> ./usr/lib/ruby/2.0.0/mkmf.rb:434:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
<Underbyte> You have to install development tools first.
<Underbyte> i've installed every dev package i can think of
jonahR has joined #ruby
fuzzyhorns has joined #ruby
juarlex has quit [Ping timeout: 265 seconds]
<havenwood> Underbyte: rebuild Ruby once you've installed the tools
<Underbyte> i installed ruby 2.0 from a package
<Underbyte> ruby2.0 ruby2.0-dev
io_syl has joined #ruby
relix has joined #ruby
<havenwood> oh, right, Debian packages are broken with mkmf - i build my own Rubies with ruby-install and select them with chruby
relix has quit [Max SendQ exceeded]
heidi has joined #ruby
mlpinit_ has quit [Remote host closed the connection]
petey has joined #ruby
SmileyKeith has left #ruby [#ruby]
mlpinit has joined #ruby
<havenwood> Underbyte: though i'd have expected ruby2.0-dev to have mkmf
camilasan has quit []
<havenwood> yeah, it ought
dkamioka has quit [Read error: Connection reset by peer]
shedd has quit [Remote host closed the connection]
dkamioka_ has joined #ruby
AMcP has quit [Ping timeout: 246 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
goto is now known as anderson
zeade has joined #ruby
relix has joined #ruby
<havenwood> Underbyte: oh, this isn't mkmf now it's your GCC?
<Hanmac> havenwood: there is a reason for that ... ruby2.0-dev is multiarch co-installable while ruby2.0 is not
w4pm has joined #ruby
<havenwood> Hanmac: ahh, right - you'd mentioned that before
<havenwood> remembering now
zeade has quit [Client Quit]
relix has quit [Max SendQ exceeded]
gregoriokusows-1 has quit [Remote host closed the connection]
pu22l3r has joined #ruby
<Hanmac> Underbyte: "apt-get install build-essential"
relix has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
danshultz has quit [Remote host closed the connection]
<havenwood> Underbyte: You installed all these right??: sudo apt-get install -y build-essential libffi-dev libgdbm-dev libncurses5-dev libreadline-dev libssl-dev libyaml-dev zlib1g-dev
Valesk has joined #ruby
gregoriokusowski has joined #ruby
<havenwood> well, i guess all are in ruby-dev other than build-essential?
danshultz has joined #ruby
freezey has quit [Remote host closed the connection]
cek has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
pen has joined #ruby
<cek> hi. geting sigsegv in ruby 2.0 : https://gist.github.com/celesteking/ad06bb7ce3ed4d4a2bf7 . what could be the prob?
gja has joined #ruby
zeade has joined #ruby
pen has quit [Read error: No route to host]
gregoriokusowski has quit [Client Quit]
pen has joined #ruby
tyl_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has joined #ruby
<MrZYX> cek: GEM_HOME=/estorage/h/f/.rvm/gems/ruby-1.9.3-p448
<MrZYX> you're using 1.9 gems with native extensions for 1.9.1 under the 2.0.0 ABI
<cek> well, crap. thanks man
<cek> it's not me, it's RVM that decided to do that
<MrZYX> sure :P
<cek> rvm install 2.0.0
Valesk has quit [Quit: Textual IRC Client: www.textualapp.com]
<MrZYX> rvm use 2.0.0, right? ;)
Valesk has joined #ruby
<cek> i'm just installing 2.0 using rvm. it should not've done such things
bobdobbs` has quit [Read error: Connection reset by peer]
pen has quit [Ping timeout: 265 seconds]
bobdobbs` has joined #ruby
doodleha_ has joined #ruby
octoberry has quit [Ping timeout: 246 seconds]
PhilK has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
PhilK has joined #ruby
preller has quit [Ping timeout: 265 seconds]
mengu has joined #ruby
momomomomo has joined #ruby
ahawkins has joined #ruby
doodlehaus has quit [Ping timeout: 264 seconds]
mikepack has joined #ruby
momomomomo has quit [Client Quit]
TomRone has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
drumusician has joined #ruby
phipes has joined #ruby
RaCx has joined #ruby
coca_rails has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mklappstuhl has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
iamjarvo has joined #ruby
TomRone has joined #ruby
preller has joined #ruby
iliketur_ has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
<havenwood> cek: ruby-install ftw
<havenwood> though sounds like a selection rather than installation bug
<havenwood> so chruby ftw :P
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Virtualize has quit [Quit: Leaving...]
mklappstuhl has quit [Ping timeout: 250 seconds]
<havenwood> cek: I am curious though, what version exactly of RVM?
petey has quit [Remote host closed the connection]
<havenwood> cek: Might want to notify #rvm.
petey has joined #ruby
ivar has left #ruby [#ruby]
danshultz has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
Virtualize has joined #ruby
Megtastique has quit []
<MrZYX> havenwood: sorry I have to say it, but you mentioning ruby-install/chruby on any remotely related topic kinda gets annoying over time. Would be great if you could reduce that a bit :)
dapz has joined #ruby
<havenwood> MrZYX: no prob - just honestly think it is a better way to go than rvm
gverri has quit [Ping timeout: 246 seconds]
<MrZYX> sure I got that and guess what, it's what I'm using
jkhwan has quit [Remote host closed the connection]
<Soulcutter> Can you use the tilt gem for templates that are not based on the filesystem?
preller has quit [Ping timeout: 264 seconds]
<Soulcutter> the documentation seems to mostly cover using tilt by passing file paths
jkhwan has joined #ruby
brennanMKE has quit [Remote host closed the connection]
thams has quit [Quit: thams]
<havenwood> MrZYX: Everyone reads from tutorials to use RVM, then come asking for help with bizarre and very-difficult-to-solve bugs. Sorry for the broken record effect though, I'll try to shut up. :P
brennanMKE has joined #ruby
petey has quit [Ping timeout: 272 seconds]
Advocation has joined #ruby
JonnieCache has joined #ruby
<MrZYX> thank you
IceDragon has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
mengu has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 246 seconds]
kenneth has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
radic has quit [Disconnected by services]
<MrZYX> Soulcutter: hmm, how would you specify what engine to use?
pen has joined #ruby
radic_ has joined #ruby
<Soulcutter> I guess I don't -have- to use tilt for rendering templates, but I thought it would be nice since I already have it in my project and it would allow me to switch template engines easily
<Soulcutter> MrZYX: Tilt['markdown']
xiphias has joined #ruby
<mjc_> Soulcutter: you could probably use it but you'd have to tell it which template to use manually
dfranciosi has quit [Remote host closed the connection]
shedd has joined #ruby
liamkeil1 has joined #ruby
<mjc_> and tilt is designed to precompile templates
preller has joined #ruby
<krainboltgreene> I wish mustache would become the standard in ruby for template evaluation.
thams has joined #ruby
Elhu has joined #ruby
brennanMKE has quit [Ping timeout: 246 seconds]
<Soulcutter> mjc_: I know I have markdown in the db, so that's not really a problem
rootshift has quit [Quit: rootshift]
<Soulcutter> but yeah, judging by https://github.com/rtomaykao/tilt/blob/tilt-1/lib/tilt/template.rb#L32-L51 I might be fighting an uphill battle for no reason
burlyscudd has joined #ruby
cek has quit [Quit: жопа диридай диридиридай]
IceDragon_ has joined #ruby
<MrZYX> yeah, the whole design seems to be around files
freezey has joined #ruby
rotor has quit [Ping timeout: 246 seconds]
<mjc_> Soulcutter: having the templates in the db kind of is the opposite of precompiling templates
<mjc_> Soulcutter: the idea is that it reads the template once and stores a copy of it as ruby source, then when you refer to that template again it doesn't have to re-parse it until you restart the server
<Soulcutter> mjc_: not necessarily
IceDragon has quit [Ping timeout: 252 seconds]
<mjc_> that's basically what tilt is for
gregoriokusowski has joined #ruby
elux has quit [Read error: No route to host]
kep has joined #ruby
rotor has joined #ruby
<Soulcutter> you could use an id/timestamp from a db resource as a precompilation key
freerobby has quit [Quit: Leaving.]
<Soulcutter> I was thinking it might be usable just as an abstraction over which specific engine I was using
<mjc_> so you'd end up with old templates in memory until the process is restarted
pen has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
<mjc_> unless tilt has a way to expire a precompiled template
jkhwan has quit [Remote host closed the connection]
<Soulcutter> I'm really not sure how it caches those either
pu22l3r has quit [Remote host closed the connection]
<Soulcutter> it -could- be a LRU cache, but who knows without digging I guess
pu22l3r has joined #ruby
<Soulcutter> thanks for the discussion, though, think it's leading me away from using tilt like this
<mjc_> Tilt::Cache
cmedeiros has quit [Ping timeout: 250 seconds]
mj12albert has quit [Ping timeout: 246 seconds]
<mjc_> hashtable
Al___ has quit [Quit: Al___]
Blue_Ice_ has quit [Ping timeout: 246 seconds]
jkhwan has joined #ruby
<mjc_> has a clear but no way to delete a specific key
burlyscudd has quit [Ping timeout: 265 seconds]
<Soulcutter> mjc_++
gja has joined #ruby
<mjc_> if you were to use it you'd have to monkeypatch it :/
Blue_Ice has joined #ruby
Sawbones has joined #ruby
<mjc_> also I'd be careful when picking markdown parsers, pick one that's threadsafe
nobitanobi has joined #ruby
<Soulcutter> which ones are those?
gja has quit [Client Quit]
<Soulcutter> I was going to go with kramdown
shedd has quit [Ping timeout: 240 seconds]
ahawkins has quit [Ping timeout: 265 seconds]
petey has joined #ruby
<mjc_> rdiscount is almost certainly threadsafe
<mjc_> unless things have changed lately
mikepack has quit [Remote host closed the connection]
xiphias has quit [Ping timeout: 240 seconds]
<mjc_> IIRC redcarpet takes some care to use it threaded
<mjc_> no idea about kramdown
dangerousdave has joined #ruby
xiphias has joined #ruby
<Soulcutter> hmm
bricker has quit [Ping timeout: 250 seconds]
IceDragon_ is now known as IceDragon
Fuzai has joined #ruby
bricker has joined #ruby
<Fuzai> Hi, if i'm using Mysql2 to only call stored procedures and the sql user only has call permissions, is it sill possible to sql inject?
<mjc_> seems relevant
mklappstuhl has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
<MrZYX> Fuzai: probably be not but be paranoid about it and assume so
wildroman2 has quit [Remote host closed the connection]
<MrZYX> s/be//
<Fuzai> MrZYX I completely agree, but i'm just trying to figure out if anyone knows a way to inject against that
<Fuzai> because I haven't been able to get a clean answer out of anyone
<Fuzai> No worries, i'll try #sql, have a good day
<Soulcutter> mjc_: interesting - thanks for digging
Fuzai has left #ruby [#ruby]
<mjc_> Soulcutter: np
Valesk has quit [Quit: Textual IRC Client: www.textualapp.com]
d45h has quit []
mklappstuhl has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
<mjc_> you might not run into threading problems with MRI but it is always wise to be aware of this stuff because you might want to switch implementations later
Hanmac1 has joined #ruby
mengu has quit [Remote host closed the connection]
<mjc_> I am using MRI less and less lately
burlyscudd has joined #ruby
* Soulcutter nods
<Soulcutter> I have been dabbling with jruby, though I haven't deployed anything substantial on it yet
drago777 has joined #ruby
primenum has joined #ruby
noop has quit [Ping timeout: 248 seconds]
xiphias has quit [Ping timeout: 240 seconds]
g0bl1n has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
deception has joined #ruby
freezey has quit [Remote host closed the connection]
<havenwood> i was going to use jruby for a raspberry pi project, just to get access to swig, but had pi/jvm problems ;(
aspires has joined #ruby
asdsadasd has joined #ruby
nobitanobi has quit [Disconnected by services]
xiphias has joined #ruby
ffio has quit [Quit: WeeChat 0.4.1]
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
<mjc_> been using rbx and jruby
Hanmac has joined #ruby
<mjc_> holding off on rbx for a bit while it stabilizes after the latest major changes
nobitanobi has joined #ruby
<Soulcutter> rbx breaking up the standard lib rankles with me just a tad
MvDevNull has left #ruby [#ruby]
burlyscudd has quit [Ping timeout: 246 seconds]
jibi has joined #ruby
<Soulcutter> in fairness, some of the standard lib is of questionable value :x
Hanmac1 has quit [Ping timeout: 252 seconds]
slash_nick has quit [Changing host]
slash_nick has joined #ruby
<Soulcutter> e.g. rss
burlyscudd has joined #ruby
<havenwood> Soulcutter: i like that they gemmified rubysl, i just don't like that you have to manually require it in Gemfile etc
<mjc_> Soulcutter: it's turning out to be useful
petey has quit [Remote host closed the connection]
<mjc_> havenwood: that may change
<havenwood> mjc_: i hope :)
<benlieb> I have an old rspec spec (from a rails 2.1 app) that uses mock_model. Is this still used in rspec? If not how would this be done in rspec 2.14: mock_model(Price, :valid? => true, :[]= => true, :marked_for_deletion => false, :save => true, :member? => true)
<Soulcutter> it's just a bit of added friction, I guess... different from what I'm used to :P
dayepa has quit [Ping timeout: 245 seconds]
<mjc_> however I like the idea of having the stdlib versions your app requires in the gemfile.lock
petey has joined #ruby
* Soulcutter nods to mjc_
asdsadas has joined #ruby
nobitanobi has quit [Disconnected by services]
<Soulcutter> benlieb: double(Price, :valid? => true, ...) <-- how about that?
xiphias has quit [Ping timeout: 240 seconds]
asdsadasd has quit [Ping timeout: 240 seconds]
petey has quit [Read error: Connection reset by peer]
wildroman2 has joined #ruby
asdsadas is now known as nobitanobi
wildroman2 has quit [Remote host closed the connection]
<benlieb> Soulcutter: I'm new to rsepc, so I don't know how about that :)
xiphias has joined #ruby
petey has joined #ruby
<benlieb> Soulcutter: that seem like it could work. Lemme try.
wildroman2 has joined #ruby
<benlieb> No error...
<Soulcutter> always a good first step...
coca_rails has joined #ruby
decoponio has quit [Quit: Leaving...]
kirun has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Virtualize has quit [Quit: Leaving...]
freezey has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Megtastique has joined #ruby
petey has quit [Ping timeout: 250 seconds]
xiphias has quit [Ping timeout: 240 seconds]
petey has joined #ruby
dapz has joined #ruby
xiphias has joined #ruby
jhaals has joined #ruby
krz has quit [Quit: WeeChat 0.4.2]
Czupa has quit [Ping timeout: 246 seconds]
vt102 has quit [Remote host closed the connection]
fntzr has quit [Quit: Leaving]
lsmola_ has quit [Ping timeout: 250 seconds]
atno has quit [Read error: Connection reset by peer]
atno has joined #ruby
Virtualize has joined #ruby
jlast has quit [Read error: Connection reset by peer]
Advocation has quit [Quit: Advocation]
jlast has joined #ruby
iamjarvo has quit [Remote host closed the connection]
zleslie has joined #ruby
doodlehaus has joined #ruby
<zleslie> Hi
burlyscudd has quit [Quit: Leaving.]
randomnick_ has quit [Ping timeout: 246 seconds]
iamjarvo has joined #ruby
preller has quit [Ping timeout: 245 seconds]
samsonasu has quit [Quit: samsonasu]
Advocation has joined #ruby
<zleslie> I don't understand something about ipaddr. I do IPAddr.new('fc01::/7').to_s and it returns 'fc00::'. Thats not the address I entered, why is it not returning the address? I just want to be able to get the IP and prefix from the object.
platzhirsch has joined #ruby
Megtastique has quit []
<zleslie> As well as validate the address.
<platzhirsch> I found evil code
* platzhirsch draws his sword
kevind_ has joined #ruby
senj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
doodleha_ has quit [Ping timeout: 250 seconds]
<mjc_> zleslie: /7 is a subnet, isn't it?
iamjarvo has quit [Ping timeout: 240 seconds]
Virtualize has quit [Quit: Leaving...]
noxgirl has quit [Ping timeout: 252 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
kevind has quit [Ping timeout: 272 seconds]
kevind_ is now known as kevind
Hanmac1 has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
<mjc_> zleslie: I mean fc00:: is the start of the subnet at /7 anyway
xiphias has joined #ruby
Virtualize has joined #ruby
autumn has joined #ruby
preller has joined #ruby
<benlieb> rspec question: How can I use double and add the double as an association? @mem_price = double(Price, :valid? => true, :[]= => true, :marked_for_deletion => false, :save => true, :member? => true); @product.prices << @mem_price;
<mjc_> fc01:: sory
<mjc_> *sorry
Hanmac has quit [Ping timeout: 248 seconds]
BizarreCake has quit [Read error: No buffer space available]
viod has quit [Ping timeout: 272 seconds]
AMcP has joined #ruby
<MrZYX> zleslie: well, this is documented behavior: Returns a new ipaddr built by masking IP address with the given prefixlen/netmask. (e.g. 8, 64, "255.255.255.0", etc.)
vpretzel has joined #ruby
axl_ has joined #ruby
<MrZYX> er, nvm, was in the wrong line
<krainboltgreene> benlieb: Sounds like you need a factory at this point.
<benlieb> krainboltgreene: i agree
<krainboltgreene> double("SomeObject") is meant for mocking simple things.
<benlieb> krainboltgreene: I'm rewriting someone's old app
drago777 has quit [Ping timeout: 240 seconds]
mklappstuhl has joined #ruby
<MrZYX> zleslie: there we go: If a prefixlen or a mask is specified, it returns a masked IP address. From IPAddr#initialize
<benlieb> It's pretty large
michaeldeol has quit [Remote host closed the connection]
<benlieb> I'd rather make as little changes as possible, but I think I'm going to have to add some factories. ug. Just trying to port from 2.1.1 to 4.0.x. Where's the coffee?
thams has quit [Quit: thams]
michaeldeol has joined #ruby
ScottNYC has joined #ruby
<DouweM> benlieb: wow, that's going to be hell. good luck.
klaut has quit [Remote host closed the connection]
<Underbyte> blerg
alexherbo2 has joined #ruby
<benlieb> krainboltgreene: I've always used FactoryGirl, now's a good time to choose the best factory out there. What's your recommendation.
<krainboltgreene> Fabricator.
drago777 has joined #ruby
<benlieb> DouweM: tell me about it :)
<krainboltgreene> But FactoryGirl might have more 2.1 support.
<DouweM> I like FactoryGirl *shrug*
<AntelopeSalad> how would you go about yielding to a heredoc? i've tried a lot of things and it always prints the word yield literally
<benlieb> krainboltgreene: The new app is rails 4
<krainboltgreene> Oh, then Fabricator.
AMcP has quit [Ping timeout: 240 seconds]
xiphias has quit [Ping timeout: 240 seconds]
<DouweM> krainboltgreene: why do you prefer it over FactoryGirl? I have no experience with Fabricator
<benlieb> krainboltgreene: this https://rubygems.org/gems/fabricator ? Last update 2009?
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xiphias has joined #ruby
mklappstuhl has quit [Ping timeout: 240 seconds]
matrixise has quit [Read error: Operation timed out]
<DouweM> thanks
<krainboltgreene> Yep.
petey has quit [Remote host closed the connection]
<krainboltgreene> I switched because FactoryGirl was switching from 2.0.0 to 3.0.0 and the documentation was a bitch.
<krainboltgreene> Because of the transition
petey has joined #ruby
matrixise has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<krainboltgreene> Ended up never looking back.
TomRone has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Ping timeout: 246 seconds]
ckinni has joined #ruby
<krainboltgreene> These days I might just create something based of double/allow.
<benlieb> krainboltgreene: DouweM: It seems that the main difference is FG hits the DB, and Fabrication doesn't?
AMcP has joined #ruby
fijimunkii has quit [Ping timeout: 246 seconds]
<benlieb> krainboltgreene: can you add a factory created with fabricator as an association?
psyprus has quit [Ping timeout: 240 seconds]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<krainboltgreene> Yes.
<krainboltgreene> Both can hit the database.
preller has quit [Ping timeout: 245 seconds]
petey has quit [Read error: Connection reset by peer]
<Underbyte> question: for passenger + nginx, where does the "passanger_native_support.so" go?
petey has joined #ruby
psyprus has joined #ruby
<mjc_> Underbyte: you have to compile nginx modules into nginx itself iirc
petey has quit [Remote host closed the connection]
petey has joined #ruby
<krainboltgreene> Hmm.
<krainboltgreene> Now I want to make a double/allow based factory gem.
xiphias has quit [Ping timeout: 240 seconds]
benlieb has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
xiphias has joined #ruby
TomRone has joined #ruby
yfeldblu_ has joined #ruby
<Underbyte> mjc_: here is the error that passenger is spitting out at me: http://pastebin.com/XKfZAC3u
Elhu has quit [Quit: Computer has gone to sleep.]
Virtualize has quit [Quit: Leaving...]
<mjc_> Underbyte: looks like you don't have python in your path?
<Underbyte> root@api:/etc# which python
<Underbyte> '/usr/bin/python
viod has joined #ruby
ahawkins has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<mjc_> Underbyte: what are you starting this process with?
petey has quit [Ping timeout: 246 seconds]
<mjc_> Underbyte: env python doesn't find anything when whatever you're running calls it (line 46)
yfeldblum has quit [Ping timeout: 240 seconds]
preller has joined #ruby
wildroman2 has joined #ruby
Virtualize has joined #ruby
ddd has quit [Quit: to reboot for kernel upgrade]
xiphias has quit [Ping timeout: 240 seconds]
<Underbyte> mjc_: i would imagine that this isn't a $PATH issue, but a locations.ini issue?
shime has quit [Ping timeout: 245 seconds]
Speed has joined #ruby
Virtualize has quit [Client Quit]
Speed is now known as Guest18243
Heskie has joined #ruby
randomnick_ has joined #ruby
xiphias has joined #ruby
ddd has joined #ruby
Guest18243 has quit [Client Quit]
maze has left #ruby [#ruby]
pen has joined #ruby
speed2 has joined #ruby
wildroman2 has quit [Ping timeout: 248 seconds]
Kiba has quit [Ping timeout: 272 seconds]
speed2 has quit [Client Quit]
<mjc_> Underbyte: are you running passenger-install-nginx-module and getting this? or some other thing
end_guy has joined #ruby
<Underbyte> no, i'm accessing the endpoint with a browser and getting this in the browser
freerobby has quit [Quit: Leaving.]
<mjc_> how did you install passenger
RaCx has joined #ruby
speed2 has joined #ruby
speed2 has quit [Client Quit]
<Underbyte> apt-get install passenger passenger-dev
lewix has joined #ruby
<Underbyte> OH wait
<Underbyte> i don't think that .so module is for nginx
<Underbyte> i think its for ruby
speed2 has joined #ruby
<ddd> don't you still hve to run the passenger-install-*-module with the passenger package?
<mjc_> yeah, you do
<mjc_> run passenger-install-nginx-module and it will compile and install nginx for you
speed2 has quit [Changing host]
speed2 has joined #ruby
jkamenik has joined #ruby
speed2 is now known as Speed
<Underbyte> heh
<Underbyte> i just found the reason behind all this
pen has quit [Ping timeout: 250 seconds]
Elhu has joined #ruby
<Underbyte> i installed 'nginx' instead of 'nginx-full'
<ddd> ahh missing nginx modules?
Speed has left #ruby [#ruby]
<Underbyte> yMysql::Error: Access denied for user 'root'@'localhost' (using password: YES) (Sequel::DatabaseConnectionError)
<Underbyte> excellent :)
<Underbyte> thanks guys
xiphias has quit [Ping timeout: 240 seconds]
TomRone has quit [Ping timeout: 240 seconds]
roolo has quit [Remote host closed the connection]
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shedd has joined #ruby
Duckily has quit [Quit: Duckily]
xiphias has joined #ruby
Advocation has quit [Quit: Advocation]
freerobby has joined #ruby
timonv has quit [Remote host closed the connection]
Virtualize has joined #ruby
divi has joined #ruby
thams has joined #ruby
TomRone has joined #ruby
MrJoshua has quit [Ping timeout: 250 seconds]
mklappstuhl has joined #ruby
klaut has joined #ruby
shedd has quit [Ping timeout: 248 seconds]
Hanmac has joined #ruby
freakazoid0223 has quit [Ping timeout: 240 seconds]
Duckily has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
drago777 has quit [Ping timeout: 240 seconds]
xiphias has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Ping timeout: 272 seconds]
guiocava_ has quit [Remote host closed the connection]
makerops has joined #ruby
kenneth has quit [Ping timeout: 240 seconds]
<makerops> hi, im having some trouble with queues
coldmethod has joined #ruby
<makerops> i basically want two threads, one that listens for a new config, and when it receives one, interrupts the running thread, and puts a value in
<makerops> am i not thinking about things correctly?
mklappstuhl has quit [Ping timeout: 248 seconds]
dayepa has joined #ruby
bricker has quit [Quit: leaving]
viod has quit [Ping timeout: 248 seconds]
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
bean has joined #ruby
viod has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
RoryHughes has joined #ruby
drago777 has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
xiphias has joined #ruby
liamkeil1 has quit [Read error: No route to host]
p4d4w4n has quit [Quit: This computer has gone to sleep]
samsonasu has joined #ruby
Elhu has joined #ruby
michaeldeol has joined #ruby
freerobby has quit [Quit: Leaving.]
bricker has joined #ruby
burlyscudd has joined #ruby
<havenwood> makerops: If I understand what you're saying, seems you may want to use a ConditionVariable: http://ruby-doc.org/stdlib-2.0.0/libdoc/thread/rdoc/ConditionVariable.html
freezey has quit [Remote host closed the connection]
<makerops> havenwood, I have tried that as well
<makerops> couldnt seem to get it to work
freerobby has joined #ruby
<havenwood> makerops: Have a Gist of what you've got so far?
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
<makerops> dont have that version anymore, let me redo it
freakazoid0223 has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
MrJoshua has joined #ruby
tom39291_ has left #ruby [#ruby]
buscon_ has quit [Remote host closed the connection]
shredding has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
<krainboltgreene> DouweM benlieb: https://gist.github.com/krainboltgreene/8045577
<krainboltgreene> Tada.
alvaro_o has joined #ruby
vt102 has joined #ruby
alvaro_o_ has joined #ruby
alvaro_o_ has quit [Client Quit]
Virtualize has quit [Quit: Leaving...]
<DouweM> krainboltgreene: :)
xiphias has joined #ruby
marcgg_ has quit [Ping timeout: 246 seconds]
drago777 has joined #ruby
gregoriokusowski has quit [Quit: gregoriokusowski]
Astralum has joined #ruby
<krainboltgreene> Just gotta fill in the rspec-mocks details.
<krainboltgreene> Drawback: No free lunch. You gotta define associations and field returns by hand.
<krainboltgreene> Actually that's not too bad.
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<makerops> this is actually not what I got last time
<makerops> but, I seem to be making progress
<zleslie> MrZYX: Alright, that helps, its just not what I was expecting. Not sure why the masked IP would ever be useful. Seems like you would just want ot call .network or something instead
viod1 has joined #ruby
marcgg has joined #ruby
viod1 has left #ruby [#ruby]
<DouweM> krainboltgreene: Note that this won't work properly with attr_accessible on the model. Those attributes won't be set
<zleslie> MrZYX: Is there a way to get the IP once created with the mask? I've given a quick look through the methods, but it doesn't seem like what I am after
habanany has quit [Ping timeout: 264 seconds]
<zleslie> Perhaps IPAddr is not what I need, but I'd like not to drag in another lib
<MrZYX> what do you need then?
moozach has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
viod has quit [Ping timeout: 240 seconds]
Matriks has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
<krainboltgreene> DouweM: Fuck attr_accessible. :/
xiphias has joined #ruby
freezey has joined #ruby
gja has joined #ruby
<krainboltgreene> AFK sleep time.
TomRone has quit [Ping timeout: 240 seconds]
<zleslie> MrZYX: I need to get the IP that I pass, validate that its correct, and ask for the mask back. I can just do this all myself by detecting a '/' in the address and taking the last part. It just seems that this should be a solved problem
mary5030_ has quit [Ping timeout: 272 seconds]
b00stfr3ak has joined #ruby
drago777 has joined #ruby
afhammad has joined #ruby
arietis has quit [Ping timeout: 264 seconds]
<zleslie> I don't know what value IPAddr.new('fc01::/7').mask(7) has. I would think that .mask would just give you the mask portion that you have already supplied.
mary5030 has joined #ruby
<zleslie> Also, fc00:: is a perfectly acceptable IPv6 Adress, so the fact that when you pass fc00:: to IPAddr.new, and you get a different IP back seems broken
TomRone has joined #ruby
brennanMKE has joined #ruby
mary5030 has quit [Remote host closed the connection]
arietis has joined #ruby
<zleslie> Sorry, passing fc01:: and getting fc00:: back is the part that seems broken.
mary5030 has joined #ruby
kpshek has quit []
Kiba has joined #ruby
<DouweM> "fc01::/7" you mean? And are you sure it's broken and not just properly interpreting the mask?
blindrage has quit [Remote host closed the connection]
<MrZYX> well, as the documentation says it returns the masked ip address. IPAddr itself doesn't has the concept of an attached mask, because two identical ip addresses with different masks are still identical
<MrZYX> the combination applies to an interface because it describes a network and that this interface has this network
mklappstuhl has joined #ruby
<zleslie> Sure, fc01::/7 and fc01::/8 are both valid, however neither one of them should be returning fc00:: as the IP, since thats not the address. Masked or otherwise.
xiphias has quit [Ping timeout: 240 seconds]
burlyscudd has quit [Quit: Leaving.]
<zleslie> The only part that you need to know to understand the network in IPv6 is the prefix. If you are passing in a prefix, ie fc01::/7, then you have the network because you have the prefix.
<MrZYX> it is the masked address
aspires has quit []
xiphias has joined #ruby
<MrZYX> fc01 is 1111 1100 0000 0001, with a mask of 1111 11100 0000 0000 that's 1111 1100 0000 0000 aka fc00
kpshek has joined #ruby
<primenum> hm, to setup a route such that any request for foo.com/controller/action/namevalue gets mapped to a post that posts name=namevalue is possible?
Virtualize has joined #ruby
asteve has joined #ruby
mityaz has quit [Quit: See ya!]
asteve has quit [Max SendQ exceeded]
bricker_ has joined #ruby
max_ has joined #ruby
mklappstuhl has quit [Ping timeout: 245 seconds]
asteve has joined #ruby
<DouweM> primenum: that's Rails territory. Check out #RubyOnRails
vlad_starkov has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 240 seconds]
<makerops> primenum, friendly_id gem
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
w4pm has quit [Ping timeout: 252 seconds]
mikepack has joined #ruby
vlad_starkov has joined #ruby
<zleslie> MrZYX: Thats what I am saying is incorrect. I don't think there is a mask concept in v6.
<MrZYX> there is. period
bricker has joined #ruby
RaCx has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
w4pm has joined #ruby
Virtualize has quit [Quit: Leaving...]
vlad_starkov has quit [Remote host closed the connection]
max_ has quit [Ping timeout: 245 seconds]
burlyscudd has joined #ruby
Duckily has quit [Quit: Duckily]
bricker_ has quit [Ping timeout: 240 seconds]
xiphias has quit [Ping timeout: 240 seconds]
gja has quit [Quit: This computer has gone to sleep]
sjohnson has left #ruby ["WeeChat 0.4.1"]
RaCx has joined #ruby
xiphias has joined #ruby
aspires has joined #ruby
<zleslie> I don't understand what the mask gives you if you have the prefix.
intuxicated has joined #ruby
deception has quit [Quit: Goodbye]
<zleslie> Subnets in v6 do not use the same binary logic that exists in v4.
<zleslie> You can still come up with a mask using the same binary logic that you have demonstrated above, but there is no value whatever in this.
<zleslie> The prefix tells how many bits are for the network address.
<zleslie> Which is what a mask does in v4.
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<platzhirsch> (0..100).step(5),.. well done Ruby
pu22l3r has quit [Remote host closed the connection]
primenum has quit [Quit: Leaving]
primenum has joined #ruby
wildroman2 has joined #ruby
nobitanobi has quit [Ping timeout: 250 seconds]
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pu22l3r has joined #ruby
nobitanobi has joined #ruby
<zleslie> When would you ever use the mask of a v6 address?
Czupa has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
xiphias has joined #ruby
divi has joined #ruby
vigintas has joined #ruby
aerook has quit [Quit: Page closed]
erasmus has left #ruby ["Ciao a tutti!"]
hephaestus_rg_ has joined #ruby
pen has joined #ruby
wildroman2 has quit [Ping timeout: 272 seconds]
Jetchisel has joined #ruby
<zleslie> I think I'll just use https://github.com/bluemonk/ipaddress
<zleslie> stdlib can continue being broken.
mojjojo has joined #ruby
pen has quit [Ping timeout: 246 seconds]
mklappstuhl has joined #ruby
colonolGron has joined #ruby
nanoyak has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
kpshek has quit []
pu22l3r has quit [Remote host closed the connection]
mojjojo has quit [Client Quit]
pu22l3r has joined #ruby
kpshek has joined #ruby
polaco has quit [Ping timeout: 246 seconds]
RoryHughes has quit []
VTLob has joined #ruby
mklappstuhl has quit [Ping timeout: 240 seconds]
mojjojo has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aef has quit [Ping timeout: 245 seconds]
eka has quit [Ping timeout: 260 seconds]
vigintas_ has joined #ruby
kpshek has quit [Client Quit]
vigintas has quit [Ping timeout: 245 seconds]
eka has joined #ruby
<primenum> I ended up disconnected earlier but my question was: if someone requests the following foo.com/controller/action/namevalue can it be rerouted to post to controller/action using name=namevalue?
<benlieb> is there a way to determine where a method is defined?
phipes has quit []
RoryHughes has joined #ruby
<benlieb> I have a member? method on a model and that method isn't in the model
<primenum> What do you mean by where?
Czupa has quit [Quit: Wychodzi]
<primenum> ah, not sure
<benlieb> I can't tell if a gem added that somewhere
Czupa has joined #ruby
<benlieb> or what
<benlieb> it's being tested in the specs, and it exists, I just can't find where it's coming from
coca_rails has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 246 seconds]
<benlieb> there must be a way, no?
burlyscudd has quit [Ping timeout: 272 seconds]
coca_rails has joined #ruby
Advocation has joined #ruby
<primenum> Can you just search all *.rb files for it?
cgore has quit [Remote host closed the connection]
<benlieb> primenum: already did
<benlieb> that method is defined on other models, but not on this one
<benlieb> and I don't see an initializer or anything that adds it.
<benlieb> I just don't know what the method is testing for to determine if member? is true or not.
cgore has joined #ruby
<DouweM> primenum: this might be better suited to #RubyOnRails
fedesilv_ has quit [Remote host closed the connection]
<primenum> DouweM, thanks
drago777 has quit [Ping timeout: 240 seconds]
<DouweM> benlieb: tried object.method(:your_method).source_location ?
<benlieb> DouweM: sweet
phus1on has quit [Quit: .]
<DouweM> benlieb: it worked? :)
<benlieb> that says it's coming from active model. hm.
kpshek has joined #ruby
culturel_ has joined #ruby
<benlieb> attribute methods
<DouweM> benlieb: what's the method in question?
<benlieb> member?
Mon_Ouie has quit [Ping timeout: 240 seconds]
<benlieb> it's not in the docs
<DouweM> what does it say for source location?
drago777 has joined #ruby
samsonasu has quit [Quit: samsonasu]
mojjojo has quit [Quit: mojjojo]
polaco_zZz has joined #ruby
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
danshult_ has joined #ruby
benlieb has left #ruby [#ruby]
polaco_zZz is now known as polaco
benlieb has joined #ruby
<benlieb> it's /gems/activemodel-4.0.2/lib/active_model/attribute_methods.rb
<benlieb> I guess this is a free method when an attr is booean?
securitycrush has quit [Quit: Leaving]
RaCx has quit [Quit: Computer has gone to sleep.]
Asher has quit [Quit: Leaving.]
<DouweM> benlieb: ah, yes, if you have a :member fields, that's definitely it
<benlieb> huh, I guess this has been around a while. I never knew. Nice. And duh.
Astralum has quit [Ping timeout: 240 seconds]
<benlieb> Been trying to hunt that down… grrr
zcreative has joined #ruby
danshultz has quit [Ping timeout: 248 seconds]
drag00n_ has quit [Remote host closed the connection]
drago777 has quit [Ping timeout: 240 seconds]
drag00n has joined #ruby
ambushsabre has joined #ruby
sparrovv has joined #ruby
drago777 has joined #ruby
radic_ has quit [Quit: Verlassend]
blackmesa has joined #ruby
radic has joined #ruby
ValicekB has quit [Ping timeout: 246 seconds]
prezJFK has joined #ruby
iamjarvo has joined #ruby
samsonasu has joined #ruby
popl has quit [Ping timeout: 264 seconds]
petey has joined #ruby
grvgr has joined #ruby
vigintas_ has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
flame_ has joined #ruby
ambushsabre has quit [Ping timeout: 240 seconds]
makerops has left #ruby ["Leaving"]
ambushsabre has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
mikepack has joined #ruby
jrhe has quit [Quit: Connection closed for inactivity]
mikepack has quit [Remote host closed the connection]
bamdad has joined #ruby
bamdad has quit [Client Quit]
TomRone has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Remote host closed the connection]
bamdad has joined #ruby
tonni has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
mklappstuhl has quit [Ping timeout: 248 seconds]
shaman42 has quit [Ping timeout: 246 seconds]
TomRone has joined #ruby
danshultz has joined #ruby
shaman42 has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
sassamo has quit [Remote host closed the connection]
sassamo has joined #ruby
b00stfr3ak has quit [Ping timeout: 240 seconds]
b00stfr3ak has joined #ruby
fijimunkii has joined #ruby
aryaching_ has quit [Ping timeout: 250 seconds]
danshult_ has quit [Ping timeout: 250 seconds]
mikepack has joined #ruby
michaeldeol has joined #ruby
mikepack has quit [Remote host closed the connection]
jkamenik has quit [Quit: Leaving.]
sassamo has quit [Ping timeout: 250 seconds]
mlpinit has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
spider-mario has quit [Remote host closed the connection]
abstractj has quit [Ping timeout: 246 seconds]
abstractj has joined #ruby
p4d4w4n has joined #ruby
abstractj has quit [Changing host]
abstractj has joined #ruby
Synthead has joined #ruby
freezey has quit [Remote host closed the connection]
freezey has joined #ruby
shredding has quit [Quit: shredding]
ValicekB has joined #ruby
siwica has joined #ruby
iamjarvo has quit [Remote host closed the connection]
RaCx has joined #ruby
iamjarvo has joined #ruby
cescalante is now known as ce_afk
p0wn3d has quit [Remote host closed the connection]
Virtualize has joined #ruby
hephaestus_rg has quit [Read error: Connection reset by peer]
fijimunkii has quit [Ping timeout: 250 seconds]
preller has quit [Ping timeout: 272 seconds]
hephaestus_rg_ is now known as hephaestus_rg
robbyoconnor has joined #ruby
yokel has quit [Ping timeout: 252 seconds]
ce_afk is now known as cescalante
iamjarvo has quit [Ping timeout: 246 seconds]
Megtastique has joined #ruby
CpuID has joined #ruby
CpuID has quit [Changing host]
CpuID has joined #ruby
phansch has joined #ruby
guiocavalcanti has joined #ruby
tonni has quit [Quit: Leaving...]
mklappstuhl has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
iamjarvo has joined #ruby
pen has joined #ruby
MrZYX is now known as MrZYX|off
Elhu has joined #ruby
dkamioka_ has quit [Remote host closed the connection]
phansch has quit [Ping timeout: 240 seconds]
klaut has quit [Remote host closed the connection]
Elhu has quit [Client Quit]
workmad3 has joined #ruby
MrZYX|off is now known as MrZYX
anonymuse has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
mklappstuhl has quit [Ping timeout: 246 seconds]
allsystemsarego has quit [Quit: Leaving]
bogeyd6 has quit [Ping timeout: 248 seconds]
pen has quit [Ping timeout: 264 seconds]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has quit [Read error: Connection reset by peer]
jonahR has quit [Quit: jonahR]
cory_ has quit [Quit: Connection closed for inactivity]
wildroman2 has joined #ruby
mrsolo has joined #ruby
shedd has joined #ruby
<hephaestus_rg> i just discovered pipes
<hephaestus_rg> and it's awesome
robbyoconnor has quit [Ping timeout: 265 seconds]
maletor_ has quit [Quit: Computer has gone to sleep.]
Virtualize has quit [Quit: Leaving...]
maletor has joined #ruby
RoryHughes has quit []
maletor has quit [Max SendQ exceeded]
maletor has joined #ruby
vpretzel has quit [Quit: Adios!]
danshultz has quit [Remote host closed the connection]
shredding has joined #ruby
danshultz has joined #ruby
iamjarvo has quit [Remote host closed the connection]
cmedeiros has joined #ruby
wildroman2 has quit [Ping timeout: 246 seconds]
iamjarvo has joined #ruby
Czupa has quit [Ping timeout: 248 seconds]
shedd has quit [Ping timeout: 240 seconds]
banister has joined #ruby
mikepack has joined #ruby
FenixFyreX has joined #ruby
RoryHughes has joined #ruby
danshultz has quit [Read error: Operation timed out]
<FenixFyreX> Is there anyone here who uses the Ray gem and has time to fill me in on a few things?
<MrZYX> FenixFyreX: it's better to ask questions than to find the right people to answer them ;)
enebo has quit [Quit: enebo]
preller has quit [Ping timeout: 246 seconds]
iamjarvo has quit [Ping timeout: 250 seconds]
<FenixFyreX> :P This is true.
<FenixFyreX> What would be the best way to handle data that is too large for Ruby's memory allocation
<FenixFyreX> for instance, a 3D array
petey has quit [Remote host closed the connection]
<FenixFyreX> I first thought that it might work to just access the serialized data via offset / length of data needed
petey has joined #ruby
<FenixFyreX> I'm not so sure that'd be efficient though
<FenixFyreX> also hello CaptainJet, IceDragon
burlyscudd has joined #ruby
<IceDragon> yo
aspires has quit []
RaCx has quit [Quit: Computer has gone to sleep.]
afhammad has quit []
FenixFyreX has quit []
petey_ has joined #ruby
petey has quit [Read error: Connection reset by peer]
mikepack has quit [Ping timeout: 246 seconds]
preller has joined #ruby
bamdad has quit [Quit: bamdad]
tomsthumb has joined #ruby
freerobby has quit [Quit: Leaving.]
<shevy> hey IceDragon
<shevy> the sun is shining :>
<IceDragon> o_o I'm inside my cave shevy
blackmesa has joined #ruby
Guest80914 has quit [Ping timeout: 240 seconds]
<IceDragon> There is no "sun"
<IceDragon> ObjectSpace.each_object(Sun).size # => 0
Matriks has quit [Remote host closed the connection]
<shevy> ah damn ghetto dragon
drumusician has quit [Read error: Connection reset by peer]
<shevy> get out! life is outside the cave!
<IceDragon> lol
S0da has joined #ruby
Matriks has joined #ruby
<IceDragon> I ate it all...
lewix has quit [Remote host closed the connection]
drumusician has joined #ruby
zumba_addict has quit [Quit: zumba_addict]
* IceDragon points at the bones in the corner of unfortunate non-rubyists
lewix has joined #ruby
lewix has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<shevy> see
<shevy> this is why people don't like dragons
<hephaestus_rg> is there a simple way to profile in ruby
<hephaestus_rg> lik
<hephaestus_rg> e
<hephaestus_rg> python's profiletools
mklappstuhl has joined #ruby
aspires has joined #ruby
hashpuppy has joined #ruby
Megtastique has quit []
nowthatsamatt has quit [Quit: nowthatsamatt]
lewellyn has quit [Read error: Operation timed out]
cescalante is now known as ce_afk
lewellyn has joined #ruby
Virtualize has joined #ruby
Bira has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
nowthatsamatt has joined #ruby
Synthead has quit [Remote host closed the connection]
Elhu has joined #ruby
Matriks has quit [Remote host closed the connection]
lkba has joined #ruby
mikepack has joined #ruby
dangerousdave has joined #ruby
Matriks has joined #ruby
anderson has left #ruby ["Leaving"]
<shevy> hephaestus_rg hmm simple
thams has quit [Ping timeout: 246 seconds]
<shevy> there is Benchmark
mrsolo has joined #ruby
Synthead has joined #ruby
Virtualize has quit [Client Quit]
<shevy> look at the example on that page
<shevy> puts Benchmark.measure { BigMath.PI(10_000) }
iamjarvo has quit [Remote host closed the connection]
mklappstuhl has quit [Ping timeout: 272 seconds]
kirun has quit [Quit: Client exiting]
<hephaestus_rg> can i just gem install benchmark
iamjarvo has joined #ruby
<hephaestus_rg> or is it builtin
machuga is now known as machuga|away
<havenwood> hephaestus_rg: It is in the stlib, so you can just: require 'benchmark'
thams has joined #ruby
<hephaestus_rg> havenwood: thanks!
Matriks has quit [Remote host closed the connection]
pushpak has joined #ruby
<havenwood> stdlib*
klaut has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
fuzzyhorns has quit [Quit: Leaving.]
<shevy> hephaestus_rg yeah is built in, usually in such blog entries, if it would be an external gem, it will be mentioned explicitely (unless the blog author was an idiot, but most blog authors are very clever)
iamjarvo has quit [Ping timeout: 252 seconds]
Elhu has quit [Read error: Connection reset by peer]
<hephaestus_rg> 0.000000 0.000000 0.000000 ( 0.001072)
<hephaestus_rg> 0.000000 0.000000 0.270000 ( 0.283958)
Raboo has quit [Ping timeout: 246 seconds]
<hephaestus_rg> how does that second line make sense if 0 + 0 = 0
Elhu has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
cmedeiros has quit [Ping timeout: 241 seconds]
wudofyr has quit [Remote host closed the connection]
cgore has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
preller has quit [Ping timeout: 246 seconds]
ValicekB has quit [Ping timeout: 252 seconds]
wudofyr has joined #ruby
Sawbones has quit [Remote host closed the connection]
ffranz has quit [Quit: Leaving]
postmodern has joined #ruby
ambushsabre has quit [Quit: Textual IRC Client: www.textualapp.com]
Bira has quit [Remote host closed the connection]
klaut has quit [Ping timeout: 240 seconds]
ambushsabre has joined #ruby
<havenwood> hephaestus_rg: the first two 0.000000 summed are the third 0.000000, then the 0.001072 is the real time
<havenwood> oh
Bira has joined #ruby
coca_rails has quit [Remote host closed the connection]
Elhu has quit [Ping timeout: 265 seconds]
angusiguess has joined #ruby
<havenwood> hephaestus_rg: i see, you said second line >.>
<hephaestus_rg> maybe becuase it's executing a subprocess
<hephaestus_rg> i
prc has joined #ruby
<hephaestus_rg> h
<hephaestus_rg> av
<hephaestus_rg>
<hephaestus_rg> e
<hephaestus_rg> some
Al___ has joined #ruby
<hephaestus_rg> jesus colloquey
<MrZYX> less pressing enter, more profit!
<hephaestus_rg> i;m not, its a slow netbook + annoying irc client
mojjojo has joined #ruby
<hephaestus_rg> right now i have a line that looks like
<hephaestus_rg> @output = `echo "#{@input}" | ruby #{rubyfile}`
<hephaestus_rg> is there a better way to do that
<petey_> crap i'm an idiot, it works..
p4d4w4n has quit [Read error: Connection reset by peer]
<petey_> wrong channel, sorry
preller has joined #ruby
<MrZYX> hephaestus_rg: make whatever rubyfile contains a proper lib and then rubyfile just a simple client script passing stdin (or ARGF) to that lib
coca_rai_ has joined #ruby
<shevy> lol
<MrZYX> then you can too use that lib in the file you do that
<shevy> hephaestus_rg let's get in some typing lessons first :D
<shevy> hit the "return" key 12 times with your eyes closed now
Bira has quit [Ping timeout: 245 seconds]
jerius has quit [Read error: Operation timed out]
<shevy> hephaestus_rg yeah I still wonder how to get stdin like that in pure ruby
p4d4w4n has joined #ruby
<MrZYX> shevy: hm?
<shevy> like to have a ruby class that can read in user input - and if no user input is provided, read from stdin
claymore has quit [Quit: Leaving]
ValicekB has joined #ruby
sambao21 has joined #ruby
<slash_nick> $stdin.getch
<slash_nick> I might not get the question
<MrZYX> how is user input different than reading from stdin?
gregoriokusowski has joined #ruby
<MrZYX> what's user input in your sentence? :P
Bira has joined #ruby
<slash_nick> ARGV[0] || $stdin.gets
<hephaestus_rg> according to some rule, rubyfile can only collect input from stdin
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<shevy> MrZYX $stdin.gets is user input, but it should not happen when the script is used in pipe context
CpuID has quit [Read error: Connection reset by peer]
jkhwan has quit [Remote host closed the connection]
<MrZYX> $stdin.tty? iirc
<slash_nick> i.e.?... echo "bar" | ruby foo.rb
baordog_ has quit [Remote host closed the connection]
<MrZYX> input = $stdin.tty? $stdin.gets : $stdin.read
yokel has joined #ruby
<shevy> slash_nick yeah
<shevy> no thanks
<slash_nick> don't think i've used ruby that way
<shevy> 3 $ in one line
simoz4 has joined #ruby
<slash_nick> mo money mo problems
<hephaestus_rg> can i use require or load somehow
<shevy> I will never write 3x $ in one line
preller has quit [Ping timeout: 246 seconds]
<MrZYX> ok
<MrZYX> stdout = $stdout
<shevy> hehehehe
<shevy> that's better
mbff_ has joined #ruby
jragon has quit [Ping timeout: 260 seconds]
senj has joined #ruby
<shevy> hephaestus_rg what do you wanna load or require
sergicles has joined #ruby
<hephaestus_rg> basically so i don't need to do this in backticks
<hephaestus_rg> @output = `echo "#{@input}" | ruby #{rubyfile}`
<MrZYX> hephaestus_rg: according to some rule you have to do it wrong?
<hephaestus_rg> ideally something like
<hephaestus_rg> @output = load 'rubyfile' @input
<MrZYX> what the hell is that rule and where's it coming from?
<hephaestus_rg> it's based on hackerrank
jkhwan has joined #ruby
Synthead has quit [Remote host closed the connection]
serp` has joined #ruby
<hephaestus_rg> basically i'm writing a client to simulate strategies locally
mklappstuhl has joined #ruby
<hephaestus_rg> but i don't want the stratgies to care if they're being run locally or on hackerrank
<MrZYX> so make it a class that takes an IO object as input
threesome has quit [Read error: Operation timed out]
<MrZYX> and then I need to remember rubys if main construct...
<MrZYX> ah
<slash_nick> you don't have to use backticks to execute shell scripts
<MrZYX> YouClass.new($stdin) if __FILE__ == $0
AMcP has quit [Remote host closed the connection]
<MrZYX> then you can just require that file and do YourClass.new(File.open('foo'))
<MrZYX> a dozen times in a row even
banghouse has quit [Remote host closed the connection]
AMcP has joined #ruby
<MrZYX> and actually don't use IO objects, use strings and $stdin.read/File.read
peregrine81 has quit []
preller has joined #ruby
petey_ has quit [Remote host closed the connection]
AMcP has quit [Read error: Connection reset by peer]
AMcP_ has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
petey has joined #ruby
mklappstuhl has quit [Ping timeout: 252 seconds]
AMcP_ has quit [Remote host closed the connection]
primenum has quit [Ping timeout: 272 seconds]
CpuID has joined #ruby
CpuID has joined #ruby
CpuID has quit [Changing host]
eka has quit [Quit: Computer has gone to sleep.]
pen has joined #ruby
w4pm has quit [Read error: Operation timed out]
eka has joined #ruby
sailias has quit [Quit: Leaving.]
Bira has quit [Remote host closed the connection]
w4pm has joined #ruby
petey has quit [Ping timeout: 250 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
eka has quit [Client Quit]
burlyscudd has quit [Quit: Leaving.]
Jeticus has joined #ruby
benlieb has quit [Quit: benlieb]
breakingthings has quit []
pen has quit [Ping timeout: 245 seconds]
Al___ has quit [Read error: Connection reset by peer]
CaptainJet has quit [Ping timeout: 265 seconds]
<hephaestus_rg> doesn't that require the rubyfile to be aware of the execution enviornment (local vs hackerrank)
mrsolo has quit [Quit: This computer has gone to sleep]
yfeldblu_ has quit [Remote host closed the connection]
Al___ has joined #ruby
mojjojo has quit [Quit: mojjojo]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mmitchell has quit [Remote host closed the connection]
bbloom has joined #ruby
sambao21 has joined #ruby
Duckily has joined #ruby
yfeldblum has joined #ruby
mojjojo has joined #ruby
<MrZYX> kinda, it's directly invoked vs. required I guess
<MrZYX> thus the if __FILE__ == $0
petey has joined #ruby
sayan has quit [Ping timeout: 245 seconds]
petey has joined #ruby
petey has quit [Remote host closed the connection]
ScottNYC has quit [Quit: Linkinus - http://linkinus.com]
kpshek has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
rootshift has joined #ruby
huttan has joined #ruby
randomnick_ has quit [Read error: Connection reset by peer]
preller has quit [Ping timeout: 246 seconds]
mikepack has quit [Remote host closed the connection]
voland has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
Bira has joined #ruby
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rootshift has quit [Client Quit]
petey has quit [Ping timeout: 272 seconds]
samsonasu has quit [Quit: samsonasu]
Hanmac has quit [Ping timeout: 245 seconds]
banister has quit [Read error: Connection reset by peer]
justsee has quit [Quit: leaving]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eka has joined #ruby
preller has joined #ruby
danshultz has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
sassamo has joined #ruby
HD_ has joined #ruby
sambao21 has joined #ruby
funburn has joined #ruby
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
klaut has joined #ruby
kristianpaul has quit [Remote host closed the connection]
HD has quit [Ping timeout: 248 seconds]
kep has quit [Quit: WeeChat 0.4.1]
shredding has quit [Quit: shredding]
iamjarvo has joined #ruby
danshultz has quit [Ping timeout: 246 seconds]
drumusician has quit [Ping timeout: 240 seconds]
simoz5 has joined #ruby
nateberkopec has quit [Quit: Leaving...]
Hanmac has joined #ruby
AMcP has joined #ruby
peregrine81 has joined #ruby
simoz4 has quit [Ping timeout: 264 seconds]
peregrine81 has quit [Max SendQ exceeded]
peregrine81 has joined #ruby
pel_daniel has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
alexherbo2 has quit [Ping timeout: 252 seconds]
<snath> I've just install some of the net-ssh gems. As a sysadmin, what other gems should I go ahead and install?
Hanmac1 has quit [Ping timeout: 246 seconds]
fuzzyhorns has joined #ruby
preller has quit [Ping timeout: 245 seconds]
mikepack has joined #ruby
ambushsabre has joined #ruby
jibi has quit [Quit: .]
jonno11 has joined #ruby
senj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senj has joined #ruby
petey has joined #ruby
freezey has quit [Ping timeout: 264 seconds]
anonymuse has quit [Remote host closed the connection]
banghouse has joined #ruby
AMcP has quit [Ping timeout: 252 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
preller has joined #ruby
banghouse is now known as Guest48825
doodlehaus has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
relix has joined #ruby
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
randomnick_ has joined #ruby
ItSANgo_ has joined #ruby
VTLob has quit [Quit: VTLob]
mojjojo has quit [Quit: mojjojo]
Al___ has quit [Read error: Connection reset by peer]
Guest48825 has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
<jonno11> Hi guys. Trying to run a rake task via cron. It works completely fine by running it manually, but cron doesn't run it Any ideas where I'm going wrong? https://gist.github.com/jonlambert/d78b4cac8abb5038d0c1
Al___ has joined #ruby
relix has quit [Client Quit]
mojjojo has joined #ruby
pushpak has quit [Ping timeout: 246 seconds]
phipes has joined #ruby
<MrZYX> "doesn't run" is not an error message I'm aware of
txdv has quit [Read error: Connection reset by peer]
<jonno11> MrZYX: Cheers for the sarcasm, but there aren't any error messages.
txdv has joined #ruby
<MrZYX> did you look into whatever log your cron daemon writes to?
ItS______ has quit [Ping timeout: 248 seconds]
<hephaestus_rg> in ruby
<hephaestus_rg> how can i pipe something to Kernel.load 'rubyfile'
<hephaestus_rg> meaning, i know rubyfile will read from stdin
<hephaestus_rg> can i "set" the stdin somehow
foster63_ has joined #ruby
vlad_starkov has joined #ruby
<MrZYX> you could reassing $stdin but I already told you the sane solution
<MrZYX> *reassigning
Al___ has quit [Ping timeout: 248 seconds]
<MrZYX> meh, it's too late for me to spell correctly :P
<jonno11> MrZYX: Yeah. Apparently crontab doesn't log.
Al___ has joined #ruby
<foster63_> Hello?
<jonno11> MrZYX: But, if you took the time to read the gist, you'll see I piped the output to a file.
<MrZYX> jonno11: you piped stdout, not stderr
<foster63_> I'm lookingn anyone help? for some idiomatic Ruby. Ca
mklappstuhl has joined #ruby
<foster63_> Can anyone help?
<MrZYX> foster63_: don't ask to ask, just ask
<foster63_> How do I do "Find the first non-false element of an array?"
krz has quit [Quit: WeeChat 0.4.2]
<jonno11> MrZYX: Yeah. I've done that too, still nothing.
vlad_starkov has quit [Read error: Connection reset by peer]
<MrZYX> foster63_: array.find {|e| e != false }
<hephaestus_rg> MrZYX: i didn't really understand your sane soluton
ahawkins has quit [Ping timeout: 252 seconds]
serp` has quit [Quit: serp`]
coca_rai_ has quit [Remote host closed the connection]
<foster63_> Will array.select!.first work?
blackmesa has joined #ruby
samsonasu has joined #ruby
<MrZYX> hephaestus_rg: put your code into a class, lets say foo.rb containing the class Foo. Then you can write multiple runners, like run_foo_from_stdin.rb requiring foo and passing $stdin to Foo and run_foos_from_sample_inputs.rb taking a couple of files and passing each one to a new instance of Foo
<foster63_> Ahh, no because select need a block. Correct?
<MrZYX> foster63_: let's find out!
culturel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<MrZYX> it says "If no block is given, an Enumerator is returned instead."
mklappstuhl has quit [Ping timeout: 248 seconds]
coca_rails has joined #ruby
frustrum has quit [Quit: WeeChat 0.4.2]
Al___ has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
<Authenticator> I'm trying to unit-test a program that can open a pry console without spamming test output onto the screen. I've redefined $stdout, $stderr (and STDOUT, STDERR) and set the Pry prompt to '' but it still prints its output. I can prevent/capture other output this way, any idea why not Pry's?
Al___ has joined #ruby
<MrZYX> foster63_: array.select { |e| e != false }.first would work but do more work than array.find {|e| e != false }
<MrZYX> Authenticator: just a wild guess: probably because it's going through readline
frustrum has joined #ruby
axl_ has left #ruby [#ruby]
tyl has joined #ruby
<MrZYX> foster63_: also note that the self modifying methods in core (the ones with a ! at the end) may retun nil if they don't change anything
blackmesa has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
Al___ has quit [Client Quit]
<MrZYX> >> %i(a b c).select! {|e| true }
<eval-in> MrZYX => nil (https://eval.in/81292)
afhammad has joined #ruby
<Authenticator> MrZYX: Thanks. I imagine it is. I'll poke at that.
RoryHughes has quit []
colonolGron has quit [Quit: z/quit]
Heskie has quit []
<MrZYX> Authenticator: depending on how you start pry, another way to unit test this could be by overriding binding.pry or by dependency injection
afhammad has left #ruby [#ruby]
tyl has quit [Ping timeout: 264 seconds]
tyl has joined #ruby
<havenwood> Authenticator: just an aside, but #pry is often well populated and another good place to ask Pry-related stuff
pen has joined #ruby
mikepack has quit [Remote host closed the connection]
cads has joined #ruby
araujo has quit [Read error: Connection reset by peer]
<Authenticator> havenwood: Thanks. I'll drop in now.
<Authenticator> MrZYX: Oh yeah. I don't actually have to start Pry at all. I could just make sure binding.pry gets called. Doh! :)
araujo has joined #ruby
huttan has quit [Ping timeout: 264 seconds]
cbetta_afk is now known as cbetta
frustrum has quit [Quit: WeeChat 0.4.2]
p4d4w4n has quit [Quit: This computer has gone to sleep]
Advocation has quit [Quit: Advocation]
frustrum has joined #ruby
voland has joined #ruby
<foster63_> Ok thanks MrZYX. How come I can't post on #ruby-lang
<havenwood> foster63_: must reg your nick
<foster63_> Also excuse my poor IRC style folks
<foster63_> Where do I reg?
<foster63_> And how do I address my posts here?
pen has quit [Ping timeout: 272 seconds]
coca_rails has quit [Remote host closed the connection]