apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
sski has joined #ruby
nanoyak has joined #ruby
<shevy> sounds like
griffindy has joined #ruby
<shevy> fun
evenix has quit [Ping timeout: 264 seconds]
chumleeofthm has quit [Quit: Page closed]
<bricker> :c
<bricker> This server is running an old version of libc, I'll try updating
yubrew has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
Altonymous has joined #ruby
<yoshokatana> I'm trying to figure out.....ruby
Altonymous has left #ruby [#ruby]
Altonymous has joined #ruby
<yoshokatana> .____.
<shevy> yoshokatana that is simple
<yoshokatana> or rather octokit.rb, since I can parse these .rb files now
crystal77 has quit [Quit: Computer has gone to sleep.]
mikepack has joined #ruby
mjs2600 has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 240 seconds]
northfurr has joined #ruby
mjs2600 has joined #ruby
AFKGeek has joined #ruby
rbartos has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
predator117 has joined #ruby
chrisseaton has quit []
<Altonymous> I'm trying to upload a log file to AWS S3. I'm getting timeout errors intermittently. I'm wondering if someone could take a look at this gist and tell me if they see anything obviously wrong? https://gist.github.com/Altonymous/b08f81c7632e64c0c77f
mehlah has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 265 seconds]
mehlah has joined #ruby
Celm has joined #ruby
RyanD_ has joined #ruby
snath has joined #ruby
YamakasY has joined #ruby
Slavox is now known as Slavox|AFK
predator217 has quit [Ping timeout: 265 seconds]
rbartos has joined #ruby
aspires has quit []
srji has joined #ruby
nifty has joined #ruby
weie has quit [Ping timeout: 240 seconds]
Aryasam has joined #ruby
geopet has quit []
srji_ has quit [Ping timeout: 252 seconds]
fenicks has quit [Remote host closed the connection]
jhass is now known as jhass|off
vlad_starkov has quit [Remote host closed the connection]
YamakasY has quit [Ping timeout: 264 seconds]
AFKGeek has quit [Quit: Leaving]
gstamp has quit [Quit: Textual IRC Client: www.textualapp.com]
gstamp has joined #ruby
kitak has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Aryasam has quit [Client Quit]
zachallett has quit [Remote host closed the connection]
<bricker> Altonymous: hard to tell from that small snippet, but maybe don't open the AWS connection until after you've written to the file, reading/writing that much data takes a while
Aryasam has joined #ruby
<Altonymous> That's the entire script...
<Altonymous> And it's a streaming connection
<Altonymous> So it's not opening until I start streaming.
tjr9898 has quit [Remote host closed the connection]
Kricir has joined #ruby
grzywacz has quit [Ping timeout: 240 seconds]
renderful has quit [Ping timeout: 265 seconds]
bauerbob has joined #ruby
tkuchiki has quit [Remote host closed the connection]
mansi has joined #ruby
jbueza has quit [Quit: Textual IRC Client: www.textualapp.com]
jbueza has joined #ruby
aspires has joined #ruby
lolmaus has quit [Read error: Operation timed out]
flowerhack has quit [Quit: Connection closed for inactivity]
<bauerbob> hi. i want to write an explicit nil class for one of my objects, so i want its instances to return false for present?, however it returns true. it seems as if i can't override the present? method. is that correct?
Shidash has quit [Quit: Leaving.]
andrewlio has quit [Quit: Leaving.]
relaxer has quit [Ping timeout: 252 seconds]
<yoshokatana> Altonymous: I read that as "So it's not opening until I start screaming." and nodded thoughfully
<centrx> bauerbob, present? is just a Rails method on Object
ner0x has joined #ruby
timonv has joined #ruby
asteros has quit [Quit: asteros]
tonni has quit [Read error: Connection reset by peer]
renderful has joined #ruby
tonni has joined #ruby
xerox357 has joined #ruby
yoshokatana has quit [Quit: yoshokatana]
__TT__ has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 240 seconds]
asteros has joined #ruby
crystal77 has joined #ruby
workmad3 has joined #ruby
havenwood has joined #ruby
andy__ has joined #ruby
macclearich has joined #ruby
nifty has quit [Ping timeout: 264 seconds]
sparrovv has quit [Remote host closed the connection]
fschuindt has joined #ruby
fgo has quit [Remote host closed the connection]
__TT__ has left #ruby ["Leaving"]
xerox357 has quit [Remote host closed the connection]
pel_daniel has left #ruby [#ruby]
xerox357 has joined #ruby
sindork_ has joined #ruby
mjs2600 has quit [Ping timeout: 265 seconds]
jbueza has quit [Quit: Textual IRC Client: www.textualapp.com]
Slavox|AFK is now known as Slavox
mercwithamouth has joined #ruby
sindork_ has quit [Client Quit]
mansi has quit [Remote host closed the connection]
mikepack_ has joined #ruby
xerox357 has quit [Ping timeout: 264 seconds]
mjs2600 has joined #ruby
mansi has joined #ruby
joelroa has quit [Ping timeout: 265 seconds]
itadder has quit [Remote host closed the connection]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yasushi has joined #ruby
itadder has joined #ruby
Geniack has quit [Disconnected by services]
Geniack_ has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
renderful has quit [Ping timeout: 264 seconds]
Kricir has joined #ruby
coderhs has quit [Ping timeout: 265 seconds]
derek_c has quit [Ping timeout: 240 seconds]
mansi has quit [Ping timeout: 240 seconds]
thumpba has quit [Remote host closed the connection]
mikepack_ has quit [Ping timeout: 264 seconds]
thumpba has joined #ruby
Nirgali42 has quit [Ping timeout: 240 seconds]
itadder has quit [Ping timeout: 265 seconds]
budrose has quit [Remote host closed the connection]
lolmaus has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
albedoa has joined #ruby
rbartos has quit [Remote host closed the connection]
crystal77 has quit [Quit: Computer has gone to sleep.]
fgo has joined #ruby
alexju has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
RoxasShadowRS has joined #ruby
mansi has joined #ruby
Kricir has quit [Remote host closed the connection]
crucify_me has joined #ruby
yubrew has joined #ruby
agjacome has quit [Ping timeout: 240 seconds]
joelroa has joined #ruby
fgo has quit [Client Quit]
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Riking has quit [Ping timeout: 245 seconds]
crucify_me has quit [Client Quit]
vlad_starkov has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
kobain has quit [Read error: Connection reset by peer]
kitak has quit [Remote host closed the connection]
aspires has quit []
mikecmpbll has quit [Quit: i've nodded off.]
Zunonia has joined #ruby
kitak has joined #ruby
tkuchiki has joined #ruby
fschuindt has quit [Quit: Textual IRC Client: www.textualapp.com]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
kobain has joined #ruby
ndrei has joined #ruby
griffind_ has joined #ruby
spider-mario has quit [Remote host closed the connection]
griffindy has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
jamo has quit [Disconnected by services]
Jamo_ is now known as Jamo
awarner has quit [Remote host closed the connection]
lw has quit [Quit: s]
yasushi has quit [Remote host closed the connection]
shinobi_one has left #ruby [#ruby]
pietr0 has quit [Quit: pietr0]
falood has joined #ruby
not_a_guest has quit [Quit: Connection closed for inactivity]
awarner has joined #ruby
robustus has quit [Ping timeout: 244 seconds]
relaxer has joined #ruby
sailias has joined #ruby
stephenmac7_ is now known as stephenmac7
wiku5_ has quit [Quit: WeeChat 0.4.1]
nanoyak has quit [Ping timeout: 240 seconds]
robustus has joined #ruby
nanoyak has joined #ruby
zcreative has joined #ruby
<zcreative> any reason why i can't call a block on a file object conditionally stored as an instance variable?
<centrx> zcreative, Sounds possible
<zcreative> You'd think. Let me get a gist
axl_ has quit [Ping timeout: 244 seconds]
ndrei has quit [Ping timeout: 265 seconds]
Hobogrammer_ has quit [Ping timeout: 240 seconds]
lw has joined #ruby
Slavox is now known as Slavox|AFK
fraterlaetus has quit []
thesheff17 has joined #ruby
rbartos has joined #ruby
gilest has joined #ruby
lw has quit [Client Quit]
ebwise has joined #ruby
saarinen has quit [Quit: saarinen]
nowthatsamatt has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
mgberlin has joined #ruby
Slavox|AFK is now known as Slavox
codeFiend has joined #ruby
<centrx> zcreative, Calling open without the block returns the IO object without processing the block
<centrx> zcreative, Not a partial function
Riking has joined #ruby
<zcreative> I'd like to be able to access the block.
<zcreative> I think i need to do something with yield
thesheff17 has quit [Ping timeout: 265 seconds]
cfritz has joined #ruby
baroquebobcat has quit [Ping timeout: 265 seconds]
ericmathison has joined #ruby
cfritz has left #ruby [#ruby]
<centrx> zcreative, I think I see what you are trying to do now
not_a_guest has joined #ruby
<centrx> How about: def participant_data(&block); @participant_data ||= open('http://www.website.com/participant_list.txt', block); end
robbyoconnor has joined #ruby
ephemerian has quit [Quit: Leaving.]
wiku5_ has joined #ruby
<zcreative> That seems like it would only work with a single block
<zcreative> let me try
Kricir has joined #ruby
<centrx> open/all methods only accepts a single block?
<centrx> zcreative, You might need to pass &block instead of block
<zcreative> ok
<zcreative> i'll try this and let you know how it works out
coderhs has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
renderful has joined #ruby
itadder has joined #ruby
thisirs has quit [Remote host closed the connection]
jprovazn has quit [Ping timeout: 240 seconds]
rm__ has quit [Remote host closed the connection]
derek_c has joined #ruby
rm__ has joined #ruby
soheil has quit []
maletor has quit [Quit: Computer has gone to sleep.]
figgleberry has joined #ruby
rm__ has quit [Ping timeout: 240 seconds]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
maletor has joined #ruby
koell has joined #ruby
cs02rm0 has joined #ruby
xcv has quit [Remote host closed the connection]
xcv has joined #ruby
ukd1 has quit [Read error: Connection reset by peer]
Kricir has quit [Remote host closed the connection]
ukd1 has joined #ruby
ffranz has quit [Quit: Leaving]
peterellisjones has quit [Quit: Leaving.]
<zcreative> centrx this is what ended up working https://gist.github.com/zackperdue/066b54832be9b42f2dfe
ukd1 has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 240 seconds]
ukd1 has joined #ruby
multi_io has quit [Ping timeout: 264 seconds]
Altonymous has quit [Quit: Altonymous]
cs02rm0 has quit [Ping timeout: 244 seconds]
peterellisjones has joined #ruby
cdime has joined #ruby
multi_io has joined #ruby
benzrf has joined #ruby
<benzrf> hey yo
ukd1 has quit [Ping timeout: 240 seconds]
peterellisjones has quit [Client Quit]
kitak_ has joined #ruby
yubrew has joined #ruby
bauerbob has quit [Quit: Leaving]
ericmathison has quit [Quit: leaving]
hamakn has quit [Remote host closed the connection]
ebwise has quit [Ping timeout: 252 seconds]
iliketurtles has quit [Quit: zzzzz…..]
nateberkopec has joined #ruby
<benzrf> gosh so boring
benzrf has left #ruby [#ruby]
ukd1 has joined #ruby
rm__ has joined #ruby
kitak has quit [Ping timeout: 260 seconds]
Fidelix has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
randomnick_ has quit [Quit: Leaving]
yubrew has quit [Ping timeout: 265 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
fridim__ has quit [Ping timeout: 240 seconds]
mehlah has quit [Quit: Leaving...]
Hanmac1 has joined #ruby
Aryasam has quit [Ping timeout: 264 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
Spami has quit [Quit: This computer has gone to sleep]
renderful has quit [Remote host closed the connection]
kevind has quit [Quit: kevind]
tjr9898_ has quit [Read error: Connection reset by peer]
tjr9898 has joined #ruby
renderful has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
andy__ has quit [Remote host closed the connection]
kotakotakota has joined #ruby
andy__ has joined #ruby
zz_jrhorn424 is now known as jrhorn424
mgberlin has quit [Remote host closed the connection]
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago has joined #ruby
endash_ has joined #ruby
<hermanmunster> Anyone here from Adelaide?
danman has joined #ruby
<centrx> hermanmunster, You mean the Queen City of the South?
Aryasam has joined #ruby
razrunelord has quit []
amclain has joined #ruby
robbyoconnor has quit [Ping timeout: 240 seconds]
<hermanmunster> centrx: that's the place. South Australia.
jamto11 has quit [Remote host closed the connection]
hamakn has joined #ruby
andy__ has quit [Ping timeout: 244 seconds]
absolutezeroff has joined #ruby
coderhs has quit [Ping timeout: 264 seconds]
<centrx> hermanmunster, Adelaide is placed on gently rising ground on both banks of a small stream called the River Torrens (the Yatala of the natives). Nature appears to have marked out the site for a city the plateau upon which it sits having been lifted about 170 feet above the sea level.
<centrx> hermanmunster, This Adelaide?
<hermanmunster> centrx: that would be the one.
YamakasY has joined #ruby
aspires has quit []
fridim__ has joined #ruby
codeFiend has quit [Quit: codeFiend]
afex has quit [Ping timeout: 240 seconds]
xcv_ has joined #ruby
xcv has quit [Read error: Connection reset by peer]
RoxasShadowRS has quit [Read error: Connection reset by peer]
nfk has quit [Quit: yawn]
IceDragon has quit [Quit: Space~~~]
lw has joined #ruby
YamakasY has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
falood has quit [Remote host closed the connection]
gilest has quit [Remote host closed the connection]
falood has joined #ruby
Celm has quit [Remote host closed the connection]
mjs2600 has quit [Remote host closed the connection]
gilest has joined #ruby
tjr9898_ has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
figgleberry has quit [Ping timeout: 264 seconds]
markisonfire has quit [Quit: markisonfire]
sdouglas_ has quit [Read error: Connection reset by peer]
sdouglas has joined #ruby
Hanmac1 has quit [Ping timeout: 265 seconds]
macclearich has quit [Remote host closed the connection]
multi_io has quit [Ping timeout: 244 seconds]
pranny has quit [Quit: Leaving.]
multi_io has joined #ruby
mgberlin has joined #ruby
afex has joined #ruby
GaryOak_ has quit [Ping timeout: 264 seconds]
jprovazn has joined #ruby
rahult_ has joined #ruby
griffind_ has quit [Quit: Computer has gone to sleep.]
rahult has quit [Ping timeout: 264 seconds]
axsuul has quit [Remote host closed the connection]
xcv_ has quit [Remote host closed the connection]
axsuul has joined #ruby
Deele2 has quit [Ping timeout: 264 seconds]
Kricir has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Client Quit]
boycey has joined #ruby
_1_goku123 has joined #ruby
<_1_goku123> hola
<_1_goku123> :O
mansi has joined #ruby
linojon has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
derek_c has quit [Read error: Operation timed out]
_1_goku123 has quit [Quit: WhatsChat IRC Android APP]
<boycey> Hi ,anyone here use Shoes ?
derek_c has joined #ruby
_maes_ has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
<boycey> Or any other Ruby GUI ?
rbartos has quit [Ping timeout: 244 seconds]
<boycey> Helloooo ??
reset has quit [Quit: Leaving...]
meinside has joined #ruby
mansi has quit [Remote host closed the connection]
asteros has quit [Quit: asteros]
yubrew has joined #ruby
mansi has joined #ruby
<havenwood> boycey: shoes4 is the newest shoes, on JRuby
iliketurtles has joined #ruby
mikepack_ has joined #ruby
<havenwood> boycey: there is a #shoes too by the way
unixpro1970 has quit [Ping timeout: 244 seconds]
<boycey> havenwood: is shoes4 preferable to shoes3 ?
coderhs has joined #ruby
<boycey> havenwood: thanks, i looked at the channel , however nobody is around
<havenwood> yeah
<boycey> ok
mansi has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
davedev24 has joined #ruby
davedev2_ has quit [Ping timeout: 265 seconds]
<havenwood> boycey: i'd spend time on shoes4 personally, it is the future of shoes
sepp2k has quit [Read error: Connection reset by peer]
bry4n_ has joined #ruby
<pontiki> o/
mikepack has quit [Ping timeout: 264 seconds]
elcontrastador has joined #ruby
robbyoconnor has joined #ruby
<boycey> havenwood: yeah, i noticed shoes3 is dying slowly
kate_r has joined #ruby
<boycey> heh
CaptainJet has quit []
<havenwood> the previous version tends to when the next has a foothold
nadirvardar has joined #ruby
ukd1 has quit [Quit: Leaving...]
mikepack_ has quit [Client Quit]
Megtastique has joined #ruby
mlpinit has joined #ruby
derek_c has quit [Ping timeout: 264 seconds]
Megtastique has quit [Client Quit]
mansi has joined #ruby
niftylettuce_ has quit [Quit: Connection closed for inactivity]
bry4n_ has quit [Ping timeout: 265 seconds]
CaptainJet has joined #ruby
mikepack has joined #ruby
nadirvardar has quit [Max SendQ exceeded]
alvaro_o has quit [Quit: Ex-Chat]
mikepack_ has joined #ruby
nadirvardar has joined #ruby
endash_ has quit [Quit: endash_]
zcreative has quit [Quit: Computer has gone to sleep.]
Kricir has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 240 seconds]
crystal77 has joined #ruby
nateberkopec has quit [Quit: Leaving...]
krz has joined #ruby
skyjumper has quit [Changing host]
skyjumper has joined #ruby
jjbohn has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
chrisja has quit [Quit: leaving]
mikepack_ has quit [Remote host closed the connection]
aspires has joined #ruby
derek_c has joined #ruby
Aryasam has quit [Ping timeout: 244 seconds]
mikepack_ has joined #ruby
danman has quit [Quit: danman]
Aryasam has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
sdouglas has quit [Remote host closed the connection]
mois3x has quit [Quit: mois3x]
sdouglas has joined #ruby
itadder has quit [Remote host closed the connection]
thomasxie has joined #ruby
geggam has quit [Remote host closed the connection]
mikepack_ has quit [Ping timeout: 264 seconds]
sdouglas_ has joined #ruby
itadder has joined #ruby
mikepack_ has joined #ruby
coderhs has joined #ruby
sdouglas_ has quit [Remote host closed the connection]
sdouglas has quit [Ping timeout: 265 seconds]
sdouglas has joined #ruby
mikepac__ has joined #ruby
mikepa___ has joined #ruby
itadder has quit [Ping timeout: 252 seconds]
angelixd has quit [Ping timeout: 252 seconds]
rodasc has quit [Ping timeout: 244 seconds]
gtc has quit [Ping timeout: 240 seconds]
jjbohn has quit [Quit: Leaving...]
hiyosi has quit [Ping timeout: 264 seconds]
mjmac has quit [Ping timeout: 265 seconds]
mikepack has quit [Ping timeout: 264 seconds]
TheMoonMaster has quit [Ping timeout: 264 seconds]
rezzack has quit [Ping timeout: 240 seconds]
mikepack_ has quit [Ping timeout: 265 seconds]
sdouglas has quit [Ping timeout: 265 seconds]
Asher has quit [Quit: Leaving.]
gr33n7007h has joined #ruby
sdouglas has joined #ruby
Xeago_ has joined #ruby
mikepa___ has quit [Remote host closed the connection]
kotakotakota has quit [Quit: Leaving]
mikepack has joined #ruby
figgleberry has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
ner0x has quit [Quit: Leaving]
afex has quit [Ping timeout: 244 seconds]
oso96_2000 is now known as oso|away
Kricir has joined #ruby
fschuindt has joined #ruby
tommyvcantdesign has quit [Quit: Connection closed for inactivity]
boycey has quit [Ping timeout: 252 seconds]
mikepack has quit [Ping timeout: 252 seconds]
yacks has joined #ruby
koell has quit [Ping timeout: 264 seconds]
nateberkopec has joined #ruby
terrellt has quit [Ping timeout: 264 seconds]
lxsameer has joined #ruby
nateberkopec has quit [Read error: No route to host]
nateberkopec has joined #ruby
yubrew has joined #ruby
decoponio has joined #ruby
boycey has joined #ruby
davy has joined #ruby
Cache_Money has joined #ruby
aspires has quit []
io_syl has quit []
nateberkopec has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
marcdel has joined #ruby
Asher has joined #ruby
axl_ has joined #ruby
linojon has quit [Quit: linojon]
browndawg has joined #ruby
Vovko has quit [Remote host closed the connection]
evenix has joined #ruby
crodas has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
mjmac has joined #ruby
danman has joined #ruby
danman has quit [Client Quit]
gtc has joined #ruby
TheMoonMaster has joined #ruby
joelroa has quit [Ping timeout: 244 seconds]
LadyRainicorn has quit [Ping timeout: 252 seconds]
JasmeetQA has joined #ruby
nisstyre has joined #ruby
wiku5_ has quit [Ping timeout: 265 seconds]
postmodern has quit [Quit: Leaving]
mlpinit has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
craigp has quit [Remote host closed the connection]
radic has quit [Ping timeout: 240 seconds]
fschuindt has quit [Quit: Textual IRC Client: www.textualapp.com]
kukyakya has quit [Ping timeout: 240 seconds]
radic has joined #ruby
angelixd has joined #ruby
indranil has joined #ruby
asteros has joined #ruby
timonv has joined #ruby
renderful has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 252 seconds]
saarinen has joined #ruby
Aryasam has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
braincrash has quit [Quit: bye bye]
renderful has joined #ruby
<bnagy> loladelaide
mansi has quit [Remote host closed the connection]
jamto11 has joined #ruby
mansi has joined #ruby
Loaft has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
binw has joined #ruby
x77686d has quit [Quit: x77686d]
braincrash has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
YamakasY has joined #ruby
hiyosi has joined #ruby
Yayo has joined #ruby
jamto11 has quit [Ping timeout: 264 seconds]
mansi has quit [Ping timeout: 240 seconds]
wchun has joined #ruby
grvgr has joined #ruby
grvgr has quit [Client Quit]
YamakasY has quit [Ping timeout: 265 seconds]
davy has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 252 seconds]
kukyakya has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
mjs2600 has joined #ruby
omegahm has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cache_Money has quit [Quit: Cache_Money]
yeticry has joined #ruby
axl_ has quit [Quit: axl_]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjs2600 has quit [Ping timeout: 252 seconds]
sdouglas_ has joined #ruby
joelroa has joined #ruby
itadder has joined #ruby
visof has joined #ruby
mindcake has joined #ruby
mindcake has quit [Client Quit]
sdouglas has quit [Ping timeout: 265 seconds]
mindcake has joined #ruby
nikkos has quit [Quit: Lingo - http://www.lingoirc.com]
tylersmith has joined #ruby
mlpinit has joined #ruby
itadder has quit [Ping timeout: 265 seconds]
Avahey has quit [Quit: Connection closed for inactivity]
craigp has joined #ruby
joelroa has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
tylersmith has quit [Client Quit]
mlpinit has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
jprovazn has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
gilest has quit [Remote host closed the connection]
sparrovv has joined #ruby
craigp has quit [Ping timeout: 240 seconds]
visof has quit [Ping timeout: 265 seconds]
benlieb has quit [Quit: benlieb]
binw has quit [Read error: Connection reset by peer]
mgberlin has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 264 seconds]
mgberlin has joined #ruby
sparrovv has quit [Ping timeout: 252 seconds]
nateberkopec has joined #ruby
Solnse has quit [Quit: Leaving.]
tjr9898_ has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
jxf has joined #ruby
binw has joined #ruby
Steve445 has joined #ruby
figgleberry has quit [Ping timeout: 252 seconds]
saarinen has quit [Quit: saarinen]
nateberkopec has quit [Ping timeout: 240 seconds]
davy has joined #ruby
indranil has quit [Read error: No route to host]
jeregrine has quit [Quit: Connection closed for inactivity]
Steve445 has quit [Quit: Steve445]
invinceable has quit [Ping timeout: 240 seconds]
indranil has joined #ruby
morenoh149 has joined #ruby
davy has quit [Ping timeout: 252 seconds]
yasushi has joined #ruby
reactormonk has joined #ruby
<reactormonk> in a tree, which is the adjoining node?
<bnagy> uh
funburn has quit [Quit: funburn]
duggiefresh has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
<bnagy> could have more than one? My guess is they mean children, though
relaxer has quit [Ping timeout: 240 seconds]
<bnagy> adjoining is a weird term to use for a tree
<reactormonk> *adjoined
funburn has joined #ruby
<bnagy> adjoined makes even less sense
jpfuentes2 has left #ruby ["Textual IRC Client: www.textualapp.com"]
Hanmac1 has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
kopasetik has joined #ruby
weie has joined #ruby
Hanmac has quit [Ping timeout: 244 seconds]
nowthatsamatt has quit [Quit: nowthatsamatt]
mgberlin has quit [Remote host closed the connection]
omegahm has joined #ruby
recurrence has joined #ruby
vlad_starkov has joined #ruby
codeitagile has quit [Ping timeout: 240 seconds]
sarmiena_ has joined #ruby
gilest has joined #ruby
michaelchum has joined #ruby
mindcake has quit [Quit: mindcake]
vlad_starkov has quit [Ping timeout: 240 seconds]
<michaelchum> Can the values in a hash be modified after being add to the hash?
<agent_white> Yes
sarmiena_ has quit [Read error: Connection reset by peer]
sarmiena_ has joined #ruby
gilest has quit [Remote host closed the connection]
<sarmiena_> michaelchum: why not? the keys are the ones that are indexed, i believe
gilest has joined #ruby
mansi has joined #ruby
poguez has quit [Quit: Connection closed for inactivity]
hololeap has joined #ruby
robbyoconnor has joined #ruby
mansi has quit [Ping timeout: 244 seconds]
<michaelchum> oh ok I just figured out, because I have a hash with string as keys and integers as values, I tried to increment the integer values using hash["key"] += 1 but it didn't work, I ended up doing hash["key"] = hash["key"].to_i + 1
<michaelchum> Thanks
Faris has quit [Ping timeout: 240 seconds]
asteros has quit [Quit: asteros]
alexju has joined #ruby
JViz_ has joined #ruby
bluOxigen has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
JViz has quit [Ping timeout: 240 seconds]
shanemhansen has joined #ruby
renderful has quit [Read error: Connection reset by peer]
<shanemhansen> Quick question involving gemspec files. https://gist.github.com/shanemhansen/9361699
<shanemhansen> I have a local gem which can't seem to find aws-sdk.
<shanemhansen> I'm a total ruby moron.
Hanmac has joined #ruby
lw has quit [Quit: s]
<centrx> shanemhansen, Is awk-sdk a typo, or is it genuinely a different dependency?
aspires has joined #ruby
Deele has joined #ruby
<shanemhansen> ummm. typo.
<shanemhansen> Let me retry.
vlad_starkov has joined #ruby
makara has joined #ruby
morenoh149 has quit [Ping timeout: 240 seconds]
Hanmac1 has quit [Ping timeout: 240 seconds]
morenoh149 has joined #ruby
illumina has joined #ruby
illumina has left #ruby [#ruby]
yasushi has quit [Remote host closed the connection]
gilest has quit [Quit: Leaving...]
Kricir has joined #ruby
<shanemhansen> centrx, that did the trick. Sorry for such a dumb question. It helped to extract that portion.
<shanemhansen> the larger project involves using fpm to generate several debian packages.
<shanemhansen> That was the final piece of the puzzle.
<shanemhansen> !
jrhorn424 is now known as zz_jrhorn424
vlad_starkov has quit [Ping timeout: 240 seconds]
aspires has quit []
LiohAu has joined #ruby
amclain_ has joined #ruby
amclain has quit [Read error: Connection reset by peer]
amclain_ has quit [Client Quit]
amclain has joined #ruby
yubrew has joined #ruby
joelroa has joined #ruby
aspires has joined #ruby
<sarmiena_> I'm importing a CSV file, and there appears to be non-ut8 characters in the data. I assumed that using the following would remove all non utf-8 characters: CSV.open file.path, "r:bom|utf-8"
<sarmiena_> why does the file still have non-utf-8 chars?
evaryont has joined #ruby
mlpinit has joined #ruby
<shanemhansen> I don't think there's a way to remove non-utf8 characters from a string which doesn't decode to utf-8 in a simple way.
<shanemhansen> Then again, I know crap about ruby so maybe they made that task simple.
thomas_d has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
LiohAu has quit [Ping timeout: 244 seconds]
Hanmac has quit [Ping timeout: 265 seconds]
pierre1_ has quit [Quit: Leaving]
<shanemhansen> That apprently will discard invalid characters when making the conversion.
<bnagy> kind of
<bnagy> when you actually play with it it's kind of.. weird.
<bnagy> IME anyway
browndawg has quit [Quit: Leaving.]
evenix has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 240 seconds]
michaelchum has quit [Quit: Page closed]
<shanemhansen> Wrong channel I know, but I once had to deal with a really old postgres database using "sql_ascii" as it's charset, which means bytes.
<shanemhansen> The cpan module fixlatin was invaluable due to the heuristics.
joelroa has quit [Ping timeout: 265 seconds]
mlpinit has quit [Ping timeout: 240 seconds]
mgberlin has joined #ruby
sincereness has joined #ruby
<sincereness> hello
michaelchum has joined #ruby
<sincereness> can someone write me a regular expression that will take all the a links in my html output and put them on newlines
<sincereness> so everything between <a </a>
<shanemhansen> Suggest using a parser. sincereness
kitak_ has quit [Remote host closed the connection]
<sincereness> I am using nokogiri but the page i am working with has ridiculous css selectors so I cant grab individual elements
wiku5_ has joined #ruby
fridim__ has quit [Read error: Operation timed out]
<sincereness> i have pretty much everything I need outputed to the view but its one big jumble
not_a_guest has quit [Quit: Connection closed for inactivity]
kitak has joined #ruby
<bnagy> use different selectors?
<bnagy> nokogiri is the right approach, regexp is always a road to fail for html
nateberkopec has joined #ruby
bricker has quit [Ping timeout: 265 seconds]
<sincereness> alright i guess ill keep trying nokogiri combos
<sincereness> add #rubyonrails
<sincereness> how do u add a new channel from prompt
<centrx> /join #rubyonrails
<sincereness> ty
<sincereness> /join #rubyonrails
<sincereness> goddamit
<shanemhansen> Wouldn't a selector of a[text()=something] or a[href] be relevant?
The_NetZ has joined #ruby
<shanemhansen> I'm not a nokogiri expert, just assuming css selector support.
zcreative has joined #ruby
<sincereness> yes but everytime i try somthing like this
<sincereness> .css('a').each do |a_tag| puts "#{a.text} - #{a['href']}";
<sincereness> error everytime
<centrx> a isn't a variable
zcreative has quit [Client Quit]
craigp has joined #ruby
havenwood has quit [Remote host closed the connection]
<sincereness> also anyone getting this message? #rubyonrails Cannot join channel (+r) - you need to be identified with services
<sincereness> and so how should it reaD?
nateberkopec has quit [Ping timeout: 240 seconds]
<The_NetZ> ok, bit of help? I'm looking to serialize an array with marshal and zlib, any experts here? its a 3 x # array, in the following structure
Kricir has quit [Remote host closed the connection]
incade_ has joined #ruby
<centrx> sincereness, /nickserv help register
tgkokk has joined #ruby
<The_NetZ> sincereness: nickserv
havenwood has joined #ruby
<The_NetZ> [ array index, ScriptName, zlib compressed script source]
<sincereness> thats dumb....i come to freenode specifically because i dont have to register -_-
JasmeetQA1 has joined #ruby
<centrx> sincereness, I agree, but there was a lot of spam, and registering is very simple
<The_NetZ> assuming that I have a text ( or whatever ) list detailing 1. the array index of a script, 2. the name of the script, and 3. the location of the script source code, how would I achieve this effect?
<bnagy> registration only channels get less spam, trolls and people who can't read simple instructions
<sincereness> ahh
craigp has quit [Client Quit]
<bnagy> The_NetZ: Marshal.dump some_ary # done
centrx has quit [Quit: All this computer hacking is making me thirsty]
<The_NetZ> bnagy: that simple? :P
<albedoa> Eloquent Ruby says (paraphrased): "You should treat Ruby strings like any other mutable data structure. Get in the habit of saying `name = name.upcase` instead of `name.upcase!`" it doesn't go on to say why. what is the author saying here?
davy has joined #ruby
<bnagy> getting a zlib compressed strinh is a bit irritating though, the available gems are... not my favourite
Hanmac has joined #ruby
<bnagy> albedoa: I don't know.
havenn has joined #ruby
marcdel has quit []
<bnagy> I mean yeah I'm against using ! methods as a habit
TuxLyn has joined #ruby
tgkokk has quit [Client Quit]
<bnagy> but mainly because they're ugly and often lead to Unexpected Effects
havenwood has quit [Ping timeout: 240 seconds]
<TuxLyn> Hey guys, I've managed to do what I wanted in using regex ^_^
JasmeetQA has quit [Ping timeout: 240 seconds]
<The_NetZ> nice :)
<albedoa> bnagy i'm going to assume that's what he meant. thanks!
tylerkern has joined #ruby
shanemhansen has left #ruby ["Ex-Chat"]
<TuxLyn> it does exactly what I wanted and works very well without installing 3rd party gems :-)
davy has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
<bnagy> TuxLyn: you are the poster child for Dunning-Kruger
Loaft has quit [Remote host closed the connection]
Yayo has quit [Remote host closed the connection]
evaryont has quit [Quit: "woo solved it"]
crystal77 has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
shadoi1 has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
<sincereness> omfg ty <TuxLyn> for that link
Kricir has joined #ruby
<TuxLyn> sincereness, your welcome buddy
Nyyx has quit [Ping timeout: 264 seconds]
shadoi has quit [Ping timeout: 240 seconds]
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar has joined #ruby
<havenn> TuxLyn: I don't think "Remove Spaces Between Strings" is doing what you're wanting.
<TuxLyn> havenn, let me check
<havenn> >> "not quite".squeeze(' ')
<eval-in> havenn => "not quite" (https://eval.in/112566)
<TuxLyn> it does
<TuxLyn> at least in my test
<sincereness> yea it still doesnt say how to replace <a </a> tags with newlines
<TuxLyn> this is run after first
The_NetZ has quit [Quit: leaving]
<TuxLyn> you must first use > Remove Newlines, Tabs and Carriage Returns
<TuxLyn> without that it wont work
<TuxLyn> then anything like Remove Script Tags
<TuxLyn> then after all that use squeeze
<TuxLyn> worked very well in my test and created minified version of html code :)
crystal77 has joined #ruby
indranil has quit [Ping timeout: 240 seconds]
derek_c has quit [Ping timeout: 240 seconds]
<havenn> TuxLyn: "Returns a new string where runs of the same character that occur in this set are replaced by a single character."
<TuxLyn> html. is just an example you would run this on your own data
<havenn> TuxLyn: Removes extra spaces, I'll grant you that.
<TuxLyn> let me show you full example hold on
io_syl has joined #ruby
<havenn> I'm balking at "Removes Spaces Between Strings" not removing spaces between strings (leaving one space between).
<TuxLyn> did you use > html.gsub!(/(\n|\t|\r)/,' ') first ?
<TuxLyn> one sec
<TuxLyn> let me do an exmaple then give you spatebin link
<TuxLyn> give me a min
Zunonia has quit [Remote host closed the connection]
Zunonia has joined #ruby
pinkfloyd has joined #ruby
AlexRussia has quit [Remote host closed the connection]
<havenn> I guess your idea of removal is to sometimes remove or sometimes turn into a space character. It's okay, I don't need to understand.
<TuxLyn> try that :)
<TuxLyn> I removed comments and script tags
<TuxLyn> works exactly how I needed it, you're welcome to modify it to your needs
<Aquilo> I've got a strange problem that I'm sure is just me making a dumb mistake, but I can't figure out what's going on. I'm pushing a string (stored in a variable) to an array, then change the variable and try to push THAT into the array. When I print the array though, all the values equal the last thing that was pushed in, no matter how many times it is pushed in. If you print it each time, the
<Aquilo> elements update with the variable...I can't figure out what's going on at all http://pastebin.com/axiDRZCe
<havenn> bnagy: yup
AlexRussia has joined #ruby
Hanmac1 has joined #ruby
<TuxLyn> havenn, if you don't like messing with regex then you should use nokogiri and sanitize like some pointed out here.
<Aquilo> actual pushing occurs on line 22
jamto11 has joined #ruby
mansi has joined #ruby
Hanmac has quit [Ping timeout: 244 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
<hermanmunster> +1 for using nokogiri to sanitise html/xml
YamakasY has joined #ruby
Zunonia_ has joined #ruby
<TuxLyn> Yes nokogiri is very good and easy to use :) But this works for me, for very basic script.
<havenn> TuxLyn: if this is what you want to really be doing, just `html.gsub!(/(\n|\t|\r)/, '')` no and don't #squeeze!
<havenn> s/no//
<TuxLyn> havenn, well you do need it :)
<TuxLyn> try commenting out
<TuxLyn> and running the script
<TuxLyn> you'll see what happen
<TuxLyn> if you don't remove style for example
itadder has joined #ruby
<havenn> TuxLyn: look at the code i put above
<TuxLyn> you will have a lot of extra spaces
<havenn> TuxLyn: no
jamto11 has quit [Ping timeout: 252 seconds]
mansi has quit [Ping timeout: 244 seconds]
<havenn> TuxLyn: Only because you made the space.
<havenn> TuxLyn: Just don't.
maletor has joined #ruby
<TuxLyn> ok one sec
<TuxLyn> testing
Zunonia has quit [Ping timeout: 264 seconds]
aganov has joined #ruby
havenn is now known as cthulhu_
<TuxLyn> havenn, ok it worked this time, good :) It looks like I tried that with \n+ before :)
<TuxLyn> thanks for pointing that out :)
cthulhu_ is now known as havenwood
maletor has quit [Client Quit]
<TuxLyn> havenwood, what is the point of changing your nick :)
<havenwood> TuxLyn: I disconnected and my irc client chose a backup name.
<TuxLyn> ic
AlexRussia has quit [Ping timeout: 240 seconds]
YamakasY has quit [Ping timeout: 252 seconds]
<havenwood> ;)
robbyoconnor has quit [Read error: Connection reset by peer]
derek_c has joined #ruby
<TuxLyn> still have extra spacing before tags...
Hanmac has joined #ruby
maletor has joined #ruby
<TuxLyn> also will need to compress css better later
snuffeluffegus has quit [Remote host closed the connection]
itadder has quit [Ping timeout: 240 seconds]
snuffeluffegus has joined #ruby
Jetchisel has joined #ruby
Hanmac1 has quit [Ping timeout: 264 seconds]
go|dfish has quit [Ping timeout: 240 seconds]
<Aquilo> Not to be a bother, but just out of curiosity, has anyone else had a similar problem with arrays in that way before? I asked someone at a ruby meetup earlier tonight and he basically shrugged and said "should work."
mikepac__ has quit [Remote host closed the connection]
browndawg has joined #ruby
mjs2600 has joined #ruby
<Aquilo> It's gonna be something simple, but I can't for the life of me figure it out o.O
<havenwood> Aquilo: Taking a look, which part is the problem?
tylerkern has quit [Read error: Connection reset by peer]
<Aquilo> havenwood: line 22 where I push in the array. It doesn't just append the value, it actually changes the value of the whole array for some reason
<Aquilo> which is why I have it print for each iteration...so you can actually see it change
go|dfish has joined #ruby
<TuxLyn> havenwood, do you know how to properly use array with gsub ? In php I would use it like preg_replace(array('/regex1/','/regex2'), array('/one/','two'), $data, $out);
<TuxLyn> not exactly like that I would use array's outside of preg_replace but just so you understand what I'm asking ^_^
yubrew has joined #ruby
funburn has quit [Quit: funburn]
CaddyShack has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
rm__ has quit [Remote host closed the connection]
nadirvardar has quit [Quit: Computer has gone to sleep.]
rm__ has joined #ruby
<TuxLyn> basicly I would like to *try* and do this regex = [ ['/regex1/',''], ['/regex2/','.'] ] etc...
mary5030_ has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
<TuxLyn> where you have key and value in array
<TuxLyn> then run that throught gsub somehow ^_^
mjs2600 has quit [Ping timeout: 265 seconds]
asteros has joined #ruby
noopq has joined #ruby
vlad_starkov has joined #ruby
Hanmac1 has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
Hanmac has quit [Ping timeout: 244 seconds]
yarou has quit [Remote host closed the connection]
segmond has joined #ruby
rm__ has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
<TuxLyn> hmm I may be able to do this with each loop
mlpinit has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
iliketurtles has quit [Quit: zzzzz…..]
hermanmunster has quit [Remote host closed the connection]
mgberlin has quit [Remote host closed the connection]
hermanmunster has joined #ruby
rm__ has joined #ruby
albedoa has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yasushi has joined #ruby
hermanmu_ has joined #ruby
hermanmunster has quit [Read error: Connection reset by peer]
Shidash has joined #ruby
mlpinit has quit [Ping timeout: 252 seconds]
<Aquilo> alright, I've been messing with this push thing for literally hours. It's time to just leave it and come back to it tomorrow with fresh eyes.
shevy has joined #ruby
<Aquilo> Thanks for your help everyone :)
JohnBat26 has joined #ruby
yasushi has quit [Ping timeout: 240 seconds]
tonni has quit [Remote host closed the connection]
JohnBat26 has quit [Client Quit]
nateberkopec has joined #ruby
JohnBat26 has joined #ruby
JohnBat26 has quit [Client Quit]
JohnBat26 has joined #ruby
anarang has joined #ruby
dseitz has joined #ruby
falood has quit [Remote host closed the connection]
joelroa has joined #ruby
falood has joined #ruby
<TuxLyn> here is what I want to do but of course its not working for some reason :-) If any one can help I apreceate it. http://pastebin.com/7nfD1duA
<havenwood> Aquilo: i have the reason
<havenwood> Aquilo: sec
<havenwood> Aquilo: in your randMove method
<havenwood> Aquilo: you're overwriting your local_variable inside that method
<havenwood> Aquilo: it is still referenced in the Array
<havenwood> Aquilo: this code works (also replaced your `for` with a more idiomatic way): https://gist.github.com/havenwood/f92820e599ab76e1b163
<havenwood> Aquilo: camel_case! :P
nateberkopec has quit [Ping timeout: 240 seconds]
hololeap has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
cloud|nix has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
redlines has quit [Ping timeout: 240 seconds]
<havenwood> TuxLyn: You're key and value are both String literals, try them as Rexexp literals.
falood has quit [Remote host closed the connection]
<TuxLyn> havenwood, you have an example mate?
<havenwood> TuxLyn: /regexp literal/ versus "/string literal/"
hololeap has joined #ruby
yfeldblum has joined #ruby
<havenwood> s/You're/Your
<TuxLyn> you talking about loop line or regex array ?
amritanshu_RnD has joined #ruby
<havenwood> TuxLyn: array
arietis has joined #ruby
<Aquilo> Thank you so much havenwood! I'm just getting used to ruby.
hololeap has quit [Max SendQ exceeded]
pierre1_ has joined #ruby
<Aquilo> It was throwing me for a loop...no pun intended.
amritanshu_RnD is now known as Guest551
hololeap has joined #ruby
apeiros has joined #ruby
sincereness has quit [Ping timeout: 245 seconds]
shevy has quit [Ping timeout: 240 seconds]
<TuxLyn> havenwood, yeah I dont get it ^_^ sorry bud
Atw has joined #ruby
davy has joined #ruby
<havenwood> Aquilo: No prob! Yeah, having a local variable and argument name collide is scary.
<havenwood> TuxLyn: `/(\n|\t|\r)/ => ''` not `'/(\n|\t|\r)/' => ''`
yeticry has quit [Ping timeout: 240 seconds]
<TuxLyn> ohhhh ic what you mean thanks let me try
<havenwood> TuxLyn: you're successfully gsub'n, just a String not a Regexp as the first arg
<TuxLyn> wow :)
<TuxLyn> worked thanks man
<TuxLyn> awesome ^_^
<havenwood> np
bricker has joined #ruby
<TuxLyn> what is the diference in arrays such as regex = [ ['',''], ['',''] ] and using regex = {} with =>
shevy has joined #ruby
<TuxLyn> for example [ [/(\n|\t|\r)/,''], [/>\s*</,'><'] ] and regex = { /(\n|\t|\r)/ => '', />\s*</ => '><' }
iliketurtles has joined #ruby
davy has quit [Ping timeout: 244 seconds]
<TuxLyn> or is this just diferent syntax usage?
hobodave has joined #ruby
<havenwood> Aquilo: You don't really have to change much from your code, you got tripped up not putting everything in methods
sdouglas_ has quit [Remote host closed the connection]
<havenwood> Aquilo: That would avoid needing to #dup
mozzarella is now known as YourFavoriteBot
codeitagile has joined #ruby
<TuxLyn> because they both work the same for me
nfk has joined #ruby
codeitagile has quit [Max SendQ exceeded]
Vovko has joined #ruby
YourFavoriteBot is now known as mozzarella
<havenwood> Aquilo: trying to stick to your original code but make it work: https://gist.github.com/havenwood/3d4234837de01fde42b1
<havenwood> Aquilo: if you're not asleep yet ;)
<havenwood> TuxLyn: Hash versus Array tuples. Yeah, your choice.
JasmeetQA1 has quit [Quit: Leaving.]
<TuxLyn> Hash vs Array what does that mean ?
<TuxLyn> like obj vs array?
bricker has quit [Ping timeout: 244 seconds]
heftig has quit [Ping timeout: 244 seconds]
JasmeetQA has joined #ruby
<havenwood> {i: 'am', a: 'hash'}.to_a #=> [[:i, "am"], [:a, "hash"]]
<havenwood> the result being a LIE!
<havenwood> [[:i, "am"], [:a, "hash"]].to_h #=> {:i=>"am", :a=>"hash"}
<havenwood> whew, back to reality...
<TuxLyn> ic
tagrudev has joined #ruby
davedev24 has quit [Remote host closed the connection]
<TuxLyn> but they both work identical right ? because I used both of them have no issues
codeitagile has joined #ruby
davedev24 has joined #ruby
<havenwood> TuxLyn: for your usecase, yeah you could use either just fine
gaussblurinc has joined #ruby
<TuxLyn> ok thanks :)
Ch4rAss has joined #ruby
<Aquilo> havenwood: Haha, yay tinkering. Really I should be doing this with objects anyway. It's mostly something I'm just messing around with to get the hang of ruby. I'm glad you did that though, as it really clarified where the problem was. I knew what was happening after you fixed it and said it, but the refactor there solidified it in my head.
apeiros has quit [Remote host closed the connection]
seggy has joined #ruby
<havenwood> Aquilo: :)
apeiros has joined #ruby
mozzarella is now known as bro
segmond has quit [Read error: Connection reset by peer]
tonni has joined #ruby
recurrence has joined #ruby
robert___ has joined #ruby
davedev24 has quit [Ping timeout: 240 seconds]
Hanmac1 has quit [Ping timeout: 240 seconds]
Zunonia__ has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
coderhs has quit [Ping timeout: 264 seconds]
mikepack has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 252 seconds]
Hanmac has joined #ruby
robert_ has quit [Ping timeout: 252 seconds]
Zunonia_ has quit [Ping timeout: 240 seconds]
gaussblurinc has quit [Quit: Leaving.]
hololeap has quit [Ping timeout: 244 seconds]
lsmola has joined #ruby
shevy has joined #ruby
_tpavel has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
kopasetik has quit [Ping timeout: 244 seconds]
shevy has quit [Ping timeout: 240 seconds]
bal has joined #ruby
asteros has quit [Quit: asteros]
hermanmu_ has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
hermanmunster has joined #ruby
snuffeluffegus has quit [Quit: Leaving]
LiohAu has joined #ruby
shevy has joined #ruby
yubrew has joined #ruby
hermanmunster has quit [Ping timeout: 240 seconds]
iliketurtles has quit [Quit: zzzzz…..]
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Findegil has joined #ruby
klaut_ has joined #ruby
LiohAu has quit [Ping timeout: 240 seconds]
coderhs has joined #ruby
Waheedi has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
bousquet has joined #ruby
tonni has quit [Ping timeout: 240 seconds]
snuffeluffegus has joined #ruby
sdouglas has joined #ruby
aspires has quit []
<sarmiena_> i'm opening a csv file CSV.open("/home/dev/file.csv", "r:bom|utf-8").each { … }
<sarmiena_> but still getting ArgumentError: invalid byte sequence in UTF-8
hermanmunster has joined #ruby
hermanmunster has quit [Remote host closed the connection]
Nyyx has joined #ruby
Myk267 has joined #ruby
sdouglas has quit [Remote host closed the connection]
<sarmiena_> i thought the r:bom|utf-8 was supposed to remove all non-utf-8 chars in the file?
sdouglas has joined #ruby
TuxLyn has quit [Ping timeout: 244 seconds]
chipotle has quit [Quit: cya]
toastynerd has joined #ruby
kobain has quit []
toastynerd has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 265 seconds]
tonni has joined #ruby
tylersmith has quit [Remote host closed the connection]
sdouglas has quit [Ping timeout: 265 seconds]
Cache_Money has joined #ruby
mlpinit has joined #ruby
jph98 has joined #ruby
txdv_ has quit [Ping timeout: 264 seconds]
Zunonia__ has quit [Remote host closed the connection]
apeiros has joined #ruby
tylersmith has joined #ruby
Zunonia__ has joined #ruby
Nyyx has quit [Ping timeout: 240 seconds]
<sarmiena_> apeiros: i believe you helped me with my file read question a while back. had to do with byte order mark in my file…. not sure if you remember?
<apeiros> sarmiena_: I think I do. a utf-8 file with a BOM?
<sarmiena_> yeah!
<sarmiena_> so i'm having a follow up issue with another csv
<sarmiena_> i'm opening a csv file CSV.open("/home/dev/file.csv", "r:bom|utf-8").each { … }
<sarmiena_> but still getting ArgumentError: invalid byte sequence in UTF-8
madhatter has joined #ruby
<apeiros> sounds like the .csv is not in utf-8 then
hobodave has quit [Quit: Computer has gone to sleep.]
<sarmiena_> yeah… but i thought that opening the file with
<sarmiena_> r:bom|utf-8 would convert it and remove non-utf8 chars?
rippa has joined #ruby
<apeiros> that only states what encoding the file is supposed to be in. it doesn't convert it from unknown to utf-8
mary5030 has joined #ruby
<sarmiena_> oh i see
<sarmiena_> how would i achieve conversion?
<apeiros> in order to convert an encoding, the source encoding must be known
<sarmiena_> mhmmm
<sarmiena_> and how would one go about finding that out?
<apeiros> either you ask the creator of the file
<apeiros> or you inspect the file, look for distinctive chars, and try in which encoding they appear to be correct
mlpinit has quit [Ping timeout: 252 seconds]
tylersmith has quit [Ping timeout: 265 seconds]
<apeiros> File.read(path, encoding: 'TESTENCODING:utf-8')[offset, length] # <-- set offset/length so that you can see the distinctive char, set TESTENCODING to the encoding you assume the file to be
NovapaX has joined #ruby
<apeiros> this assumes that your terminal etc. can properly display utf-8 :)
Es0teric has quit [Quit: Computer has gone to sleep.]
<sarmiena_> there's no way to remove non-utf8 from random file?
bricker`LA has joined #ruby
<apeiros> you can remove all chars which are above the 7bit range
nateberkopec has joined #ruby
charlies_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> that sounds ill-advised, though
cdime has quit [Remote host closed the connection]
<sarmiena_> lol
dagobah has joined #ruby
Findegil has quit [Ping timeout: 240 seconds]
carraroj has joined #ruby
<apeiros> you'd open it as binary and use e.g. gsub(/[^\x00-\x79]/, ''), then you use force_encoding('utf-8')
<havenwood> sarmiena_: in 2.1 String#$scrub was added: http://www.ruby-doc.org/core-2.1.0/String.html#method-i-scrub
<apeiros> all 7bit chars are utf-8 compatible.
mary5030 has quit [Ping timeout: 244 seconds]
<apeiros> havenwood: honestly, I wouldn't use that if your source encoding is unknown
ndrei has joined #ruby
JJMalina has joined #ruby
<apeiros> I'd prefer to just remove all "high bytes". though, again, IMO that's ill-advised too.
nateberkopec has quit [Read error: No route to host]
<apeiros> figure out the source encoding is the best.
<sarmiena_> apeiros: why ill-advised? what's the consequence?
<havenwood> apeiros: yeah, seems reasonable - is there a reliable way to autodetect encoding? seems like there are some gems that try.
<apeiros> sarmiena_: you'll lose characters
<apeiros> >> "Hägar".force_encoding('binary').gsub(/[^\x00-\x7f]/, '').force_encoding('utf-8')
<eval-in> apeiros => "Hgar" (https://eval.in/112670)
<sarmiena_> lose non-utf-8 chars only, though, right?
<sarmiena_> my db only supports utf-8 anyhow
<apeiros> havenwood: no. there are some charset detectors available, but IME they were bad enough that I implemented my own for our limited use case.
timonv has joined #ruby
<apeiros> havenwood: but for our use case, I know culture and possible charsets is limited to 3
<apeiros> so a heuristic detection isn't too difficult
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
<havenwood> mm
<apeiros> sarmiena_: lose anything non-7bit ascii compatible
zombiebit has joined #ruby
<apeiros> sarmiena_: anyway, if you go that way, make sure you check first, whether the file is valid utf-8 first
shevy has joined #ruby
<apeiros> File.read(path, encoding: 'utf-8').valid_encoding?
txdv has joined #ruby
<apeiros> not that you strip off chars unecessarily
timonv_ has joined #ruby
skaflem has joined #ruby
<apeiros> it's western europe, charsets can be macroman, windows-1252 or utf-8
JJMalina has quit [Ping timeout: 240 seconds]
<sarmiena_> ok i see
<havenwood> apeiros: interesting, thanks for the link!
timonv has quit [Read error: Connection reset by peer]
Nyyx has joined #ruby
<apeiros> it's primitive, but worked quite reliably the last few years here.
andikr has joined #ruby
<apeiros> havenwood: I pondered implementing a bloom filter. with a large enough dictionary in a couple of languages, that should work quite well.
CaptainJet has quit []
<apeiros> at least for charsets which are 7bit ascii compatible
Findegil has joined #ruby
pinkfloyd has quit [Ping timeout: 245 seconds]
<apeiros> the others would need sorted out before running against the bloom-filter
<apeiros> *to be
davy has joined #ruby
<havenwood> hmmm
sigurding has joined #ruby
<apeiros> luckily there aren't too many multibyte charsets
Kricir has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 240 seconds]
shevy has joined #ruby
Kricir has joined #ruby
<havenwood> i think `possible_encodings.one?` would be a nice nit refactor here: https://github.com/apeiros/tabledata/blob/master/lib/tabledata/detection.rb#L37
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> god encodings are frightening :O
yacks has quit [Quit: Leaving]
dapz has joined #ruby
<havenwood> apeiros: pretty cool it works, at least for these three
cloud|nix has quit [Quit: Ex-Chat]
davy has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby
<havenwood> coming up with adequate rules seems daunting
Cache_Money has quit [Quit: Cache_Money]
shevy has quit [Ping timeout: 240 seconds]
Kricir has quit [Ping timeout: 240 seconds]
zombiebit has quit []
shevy has joined #ruby
grzywacz has joined #ruby
<havenwood> UTF-8 \o/
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
YamakasY has joined #ruby
ayaz has joined #ruby
jph98 has quit [Quit: jph98]
shvelo has joined #ruby
shvelo has quit [Changing host]
shvelo has joined #ruby
MattStra_ has joined #ruby
hermanmunster has joined #ruby
fgo has quit [Remote host closed the connection]
itadder has joined #ruby
hermanmunster has quit [Remote host closed the connection]
jsilver_ has joined #ruby
hermanmunster has joined #ruby
mengu__ has joined #ruby
ephemerian has joined #ruby
Gooder` has joined #ruby
charlies_ has joined #ruby
sski_ has joined #ruby
justinmcp_ has joined #ruby
<havenwood> apeiros: parsed a csv and created a pdf with tabledata gem, this is neat! :)
lolmaus_ has joined #ruby
claymore has joined #ruby
calleerlandsson has joined #ruby
m1lt0n_ has joined #ruby
jayne_ has joined #ruby
itadder has quit [Ping timeout: 264 seconds]
raddazong has joined #ruby
jmeeuwen has quit [Read error: Connection reset by peer]
ninegrid_ has joined #ruby
klaut__ has joined #ruby
predator217 has joined #ruby
gigetoo_ has joined #ruby
hermanmunster has quit [Ping timeout: 264 seconds]
Zunonia has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
_zxq9_ has joined #ruby
dseitz_ has joined #ruby
ahawkins has joined #ruby
jamto11 has joined #ruby
mansi has joined #ruby
predator117 has quit [Disconnected by services]
mr_rich102 has joined #ruby
ageis_ has joined #ruby
alex88 has joined #ruby
kevinfagan_ has joined #ruby
scttnlsn- has joined #ruby
shvelo has quit [*.net *.split]
charliesome has quit [*.net *.split]
madhatter has quit [*.net *.split]
Zunonia__ has quit [*.net *.split]
coderhs has quit [*.net *.split]
klaut_ has quit [*.net *.split]
_tpavel has quit [*.net *.split]
tagrudev has quit [*.net *.split]
dseitz has quit [*.net *.split]
noopq has quit [*.net *.split]
mengu has quit [*.net *.split]
browndawg has quit [*.net *.split]
wchun has quit [*.net *.split]
lolmaus has quit [*.net *.split]
sski has quit [*.net *.split]
zxq9 has quit [*.net *.split]
jsilver has quit [*.net *.split]
CpuID has quit [*.net *.split]
v0n has quit [*.net *.split]
ageis has quit [*.net *.split]
drager has quit [*.net *.split]
DrShoggoth has quit [*.net *.split]
gigetoo has quit [*.net *.split]
vpretzel has quit [*.net *.split]
Salve has quit [*.net *.split]
Alina-malina has quit [*.net *.split]
armyriad has quit [*.net *.split]
scttnlsn has quit [*.net *.split]
ninegrid has quit [*.net *.split]
Hamburglr has quit [*.net *.split]
Radar has quit [*.net *.split]
breakingthings has quit [*.net *.split]
kevinfagan has quit [*.net *.split]
mr_rich101 has quit [*.net *.split]
dreamchaser has quit [*.net *.split]
Gooder has quit [*.net *.split]
Andrevan has quit [*.net *.split]
justinmcp has quit [*.net *.split]
camt has quit [*.net *.split]
jayne has quit [*.net *.split]
Port3M5[Work] has quit [*.net *.split]
mclee_ has quit [*.net *.split]
Senjai has quit [*.net *.split]
kitak has quit [*.net *.split]
ayaz has quit [*.net *.split]
txdv has quit [*.net *.split]
apeiros has quit [*.net *.split]
Waheedi has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
nfk has quit [*.net *.split]
wiku5_ has quit [*.net *.split]
michaelchum has quit [*.net *.split]
kukyakya has quit [*.net *.split]
Xeago_ has quit [*.net *.split]
thomasxie has quit [*.net *.split]
tjr9898 has quit [*.net *.split]
awarner has quit [*.net *.split]
northfurr has quit [*.net *.split]
Xiti has quit [*.net *.split]
Mongey has quit [*.net *.split]
BraddBitt has quit [*.net *.split]
Nilium has quit [*.net *.split]
TMM has quit [*.net *.split]
greenrose has quit [*.net *.split]
Soulcutter has quit [*.net *.split]
tommyblu` has quit [*.net *.split]
jinie_ has quit [*.net *.split]
zellio has quit [*.net *.split]
phantasm66 has quit [*.net *.split]
ritek has quit [*.net *.split]
Hobogrammer has quit [*.net *.split]
glebm has quit [*.net *.split]
deadlock_ has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
MrJoshua has quit [*.net *.split]
p8952 has quit [*.net *.split]
joonty has quit [*.net *.split]
vaicine has quit [*.net *.split]
klaut has quit [*.net *.split]
Kovensky has quit [*.net *.split]
Davey has quit [*.net *.split]
mgomezch has quit [*.net *.split]
iamdoo2_ has quit [*.net *.split]
Authenticator has quit [*.net *.split]
george2 has quit [*.net *.split]
DylanJ has quit [*.net *.split]
lele has quit [*.net *.split]
w|t has quit [*.net *.split]
linduxed has quit [*.net *.split]
kloeri has quit [*.net *.split]
phutchins has quit [*.net *.split]
soahccc has quit [*.net *.split]
mgorbach has quit [*.net *.split]
NalloK has quit [*.net *.split]
virtualize has quit [*.net *.split]
mven has quit [*.net *.split]
ddd has quit [*.net *.split]
aboudreault has quit [*.net *.split]
idoru has quit [*.net *.split]
wykydtron has quit [*.net *.split]
gigetoo_ is now known as gigetoo
scttnlsn- is now known as scttnlsn
Alina-malina has joined #ruby
Radar has joined #ruby
Radar is now known as Guest71112
yacks has joined #ruby
drager has joined #ruby
jayne_ is now known as jayne
jamto11 has quit [Ping timeout: 253 seconds]
snuffeluffegus has quit [Quit: Leaving]
vpretzel has joined #ruby
mansi has quit [Ping timeout: 244 seconds]
dreamchaser has joined #ruby
agent_white has quit [Quit: leaving]
schaary has quit [Ping timeout: 264 seconds]
dreamchaser is now known as Guest76255
not_a_guest has joined #ruby
schaary has joined #ruby
tonni has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
havenwood has left #ruby [#ruby]
gaussblurinc has joined #ruby
io_syl has quit []
NalloK has joined #ruby
coderhs has joined #ruby
noopq has joined #ruby
_tpavel has joined #ruby
shvelo has joined #ruby
v0n has joined #ruby
CpuID has joined #ruby
CpuID has joined #ruby
CpuID has quit [Changing host]
mjs2600 has joined #ruby
axsuul has quit [Ping timeout: 252 seconds]
julian` has joined #ruby
esposito has joined #ruby
axsuul has joined #ruby
dseitz_ is now known as dseit
dseit is now known as dseitz
einarj has joined #ruby
esposito has quit [Client Quit]
CpuID has quit [Client Quit]
derek_c has quit [Quit: Leaving]
CpuID has joined #ruby
mjs2600 has quit [Ping timeout: 244 seconds]
<shevy> people seem to dislike goto
<shevy> I think we need goto everywhere
<shevy> even in ruby
<shevy> goto {}
amclain has quit [Quit: Leaving]
carraroj has quit [Ping timeout: 244 seconds]
<tobiasvl> funny that the gnutls bug ALSO was a goto mistake
CpuID has quit [Read error: Connection reset by peer]
<tobiasvl> i mean wtf.
aaronmcadam has joined #ruby
tesuji has joined #ruby
phansch has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
Ch4rAss has quit [Ping timeout: 240 seconds]
francisfish has joined #ruby
armyriad has joined #ruby
aaronmcadam has quit [Client Quit]
workmad3 has joined #ruby
mehlah has joined #ruby
Ch4rAss has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mlpinit has joined #ruby
leonidlm has joined #ruby
pcarrier has quit [Quit: Connection closed for inactivity]
mlpinit has quit [Read error: Connection reset by peer]
mlpinit has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
apeiros has joined #ruby
arietis has quit [Ping timeout: 265 seconds]
arietis has joined #ruby
<apeiros> seems I ended up on the wrong side of the netsplit
<gaussblurinc> hi! I am bit confused about regexps in ruby. how to implement 'not contains a set of words' for array select function? I use regex square brackets operator but I can't write correct regex with look-behind
mlpinit has quit [Ping timeout: 252 seconds]
<apeiros> hrm, but havenwood is not here :(
<apeiros> gaussblurinc: regex are character based. writing "does not include words" is non-trivial.
tonni has joined #ruby
ikaros has joined #ruby
<gaussblurinc> ?! - look-behind will do it well.. but how about [] - operator ?
<apeiros> [] are character classes.
<apeiros> [abc] <-- a single character, either a, b or c
<gaussblurinc> no, I mean []-operator for object in ruby :)
<apeiros> that's a method, not an operator
<apeiros> well, what about it?
<gaussblurinc> array.select{|object| object[regex]} - filter array with regex
tvw has joined #ruby
<apeiros> use =~, not [] there
jhass|off is now known as jhass
axsuul has quit [Read error: Connection reset by peer]
<gaussblurinc> regex = /one|two/ array.select{|object| object!~/regex/} ?
Guest551 has quit [Ping timeout: 264 seconds]
axsuul has joined #ruby
ndrei has joined #ruby
<gaussblurinc> oh! /regex/!~object
<apeiros> same thing
<apeiros> but I'd use reject with =~ instead of select with !~
<apeiros> ary.reject { |x| x =~ /regex/ }
<apeiros> should result in the same as ary.select { |x| x !~ /regex/ }
andrewlio has joined #ruby
Guest551 has joined #ruby
<gaussblurinc> hm, I am a bit confused again. ary.select {|x| x !~ /regex/} is not the same as ary.select{|x| x!~ regex}
breakingthings has joined #ruby
<apeiros> …
davy has joined #ruby
<apeiros> regex # <-- local variable or method
<apeiros> /regex/ # <-- a literal regex
<apeiros> so yes, of course the two are not the same
relix has joined #ruby
axsuul has quit [Ping timeout: 252 seconds]
<gaussblurinc> uh, yes, quoting :\
heftig has joined #ruby
<gaussblurinc> ary.select{|x| x !~ /#{regex}/}
<apeiros> o0
olivier_bK has joined #ruby
nfk|laptop has joined #ruby
<apeiros> if the variable `regex` has a regex assigned to it, then this is totally pointless
<apeiros> regex = /some regex/; ary.select { |x| x !~ /#{regex}/ } # <-- pointlessly verbose way to say `ary.select { |x| x !~ regex }`
davy has quit [Ping timeout: 244 seconds]
jlebrech has joined #ruby
renderful has joined #ruby
<gaussblurinc> apeiros: yes, this is perlish style is take a place here. $regex = /regex/; grep{/$regex/}(@array).
<apeiros> it's the same pointless in perl too
aaronmcadam has joined #ruby
<apeiros> if you have a variable containing a regex, you don't need to interpolate it in a literal again
gccv has joined #ruby
aaronmcadam has quit [Remote host closed the connection]
Xeago has joined #ruby
mikecmpbll has joined #ruby
shredding has joined #ruby
<bnagy> tobiasvl: the gnutls had nothing to do with gotot
<bnagy> *goto
Xeago_ has joined #ruby
<bnagy> I mean apart from the buggy func containing one
aboudreault has joined #ruby
camilasan has joined #ruby
nath_schwarz has joined #ruby
ritek has joined #ruby
mgorbach has joined #ruby
browndawg has joined #ruby
idoru has joined #ruby
phutchins has joined #ruby
thomas_d has joined #ruby
ddd has joined #ruby
mven has joined #ruby
nomenkun has joined #ruby
soahccc has joined #ruby
DylanJ has joined #ruby
cs02rm0 has joined #ruby
wykydtron has joined #ruby
w|t has joined #ruby
linduxed has joined #ruby
iamdoo2_ has joined #ruby
virtualize has joined #ruby
george2 has joined #ruby
timonv has joined #ruby
Authenticator has joined #ruby
Mongey has joined #ruby
kloeri has joined #ruby
Xiti has joined #ruby
Davey has joined #ruby
tjr9898 has joined #ruby
joonty has joined #ruby
camt has joined #ruby
Salve_ has joined #ruby
greenrose has joined #ruby
p8952 has joined #ruby
jinie_ has joined #ruby
michaelchum has joined #ruby
kukyakya has joined #ruby
SegFaultAX has joined #ruby
klaut has joined #ruby
23LAAI9A0 has joined #ruby
glebm has joined #ruby
zellio has joined #ruby
tommyblu` has joined #ruby
TMM has joined #ruby
northfurr has joined #ruby
lele has joined #ruby
nfk has joined #ruby
txdv has joined #ruby
BraddBitt has joined #ruby
robbyoconnor has joined #ruby
mgomezch has joined #ruby
Andrevan has joined #ruby
kewubenduben has joined #ruby
awarner has joined #ruby
webgen has joined #ruby
Port3M5[Work] has joined #ruby
phantasm66 has joined #ruby
mclee_ has joined #ruby
thomasxie has joined #ruby
tagrudev has joined #ruby
Hobogrammer has joined #ruby
<bnagy> it's just C type confusion
kitak has joined #ruby
ayaz has joined #ruby
MrJoshua has joined #ruby
Nilium has joined #ruby
jmeeuwen_ has joined #ruby
DrShoggoth has joined #ruby
vaicine has joined #ruby
Kovensky has joined #ruby
wiku5_ has joined #ruby
wchun has joined #ruby
Soulcutter has joined #ruby
Senjai has joined #ruby
emanu has joined #ruby
chrisseaton has joined #ruby
Xeago__ has joined #ruby
dEPy has joined #ruby
<bnagy> for want of a better term, anyway. Implicit casts, whatev
Advocation has joined #ruby
schaary has quit [Ping timeout: 245 seconds]
octarine has quit [Ping timeout: 245 seconds]
Xeago has quit [Ping timeout: 264 seconds]
cmaxw___ has quit [Ping timeout: 245 seconds]
yubrew has joined #ruby
greenarrow has joined #ruby
bcavileer has quit [Ping timeout: 245 seconds]
nimf has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
mjc_ has quit [Ping timeout: 245 seconds]
Xeago_ has quit [Ping timeout: 264 seconds]
TMM has quit [Ping timeout: 240 seconds]
Xeago__ has quit [Ping timeout: 240 seconds]
schaary has joined #ruby
cmaxw___ has joined #ruby
bcavileer has joined #ruby
octarine has joined #ruby
nimf_ has joined #ruby
Foo2 has joined #ruby
snuffeluffegus has joined #ruby
mjc_ has joined #ruby
carraroj has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
thomas_dick has joined #ruby
rahult has joined #ruby
camilasa_ has joined #ruby
sski_ has quit [Remote host closed the connection]
camilasa_ has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
canton7-mac has joined #ruby
camth has joined #ruby
camt has quit [Write error: Connection reset by peer]
sski has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
mikeg has joined #ruby
bousquet has quit []
canton7 has quit [Remote host closed the connection]
klaut__ has quit [Remote host closed the connection]
thomasxie has quit [Remote host closed the connection]
camilasan has quit [Remote host closed the connection]
camilasa_ has joined #ruby
canton7 has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
hiyosi has joined #ruby
camilasan has joined #ruby
mansi has quit [Ping timeout: 244 seconds]
andy__ has joined #ruby
thomas_d has quit [Ping timeout: 268 seconds]
e4xit has quit [Ping timeout: 240 seconds]
mbuf has joined #ruby
thomasxie has joined #ruby
<mbuf> is there a way to clone a remote repository using a Ruby command, or using 'system' is fine?
sski has quit [Ping timeout: 252 seconds]
carraroj has quit [Ping timeout: 264 seconds]
<shevy> you can use system
LiohAu has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
<shevy> cmd_to_run = 'git clone bla'; system(cmd_to_run)
<mbuf> shevy, okay
<shevy> for using pure ruby, without system, you'd need specific ruby bindings
<mbuf> shevy, I see
kitak has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
andy__ has quit [Ping timeout: 244 seconds]
claymore has joined #ruby
rahult is now known as rahult_
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snuffeluffegus has quit [Quit: Leaving]
timonv has quit [Ping timeout: 240 seconds]
cs02rm0 has quit [Ping timeout: 240 seconds]
nfk|laptop has quit [Read error: Operation timed out]
timonv has joined #ruby
leur has joined #ruby
emanu has quit [Quit: emanu]
axsuul has joined #ruby
weeb1e has joined #ruby
shredding has quit [Read error: Connection reset by peer]
Ch4rAss` has joined #ruby
rahult has joined #ruby
AlSquire has joined #ruby
mbuf has quit [Quit: Leaving]
<weeb1e> Good day everyone
sparrovv has joined #ruby
<weeb1e> I have a strange rubygems issue on one of my boxes which has not been solved by updating rubygems, when I run applications the console is flooded with:
<weeb1e> Exception `NoMethodError' at /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1949 - undefined method `to_ary' for #<Gem::Specification name=multi_json version=1.7.7>
<weeb1e> Exception `NoMethodError' at /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1949 - undefined method `to_ary' for #<Gem::Specification name=builder version=3.0.0>
<weeb1e> Many times for those gems
hermanmunster has joined #ruby
rm__ has quit [Remote host closed the connection]
gccv has left #ruby [#ruby]
rm__ has joined #ruby
<shevy> which gems?
Ch4rAss has quit [Ping timeout: 244 seconds]
gaussblurinc has quit [Quit: Leaving.]
roolo has joined #ruby
shredding has joined #ruby
elaptics`away is now known as elaptics
<jhass> weeb1e: what's your rubygems version now? gem --version
kitak has joined #ruby
<apeiros> mbreit: rugged is probably the best option
<apeiros> gah, sorry mbreit
<apeiros> the guy I wanted to address is already gone :(
mengu__ has quit [Remote host closed the connection]
rdark has joined #ruby
pingec has joined #ruby
rm__ has quit [Ping timeout: 240 seconds]
crystal77 has joined #ruby
coderhs has quit [Remote host closed the connection]
shaunbaker has joined #ruby
greenarrow has quit [Quit: 500]
sigurding has quit [Quit: sigurding]
gaussblurinc has joined #ruby
mlpinit has joined #ruby
tvw has quit []
greenarrow has joined #ruby
timonv has quit [Remote host closed the connection]
andrewlio has quit [Quit: Leaving.]
AxonetBE has joined #ruby
<AxonetBE> How can I pass an operand to a method?
<AxonetBE> Do I have to pass as a string like "+" "-" ?
<Riking> I think you'll want to pass a block
<Riking> in general
<Riking> what's the method supposed to do?
nateberkopec has joined #ruby
_HolyCow1 has joined #ruby
<AxonetBE> For example I want to make function for this because I repeat it quite often with other parameters
<AxonetBE> @stats_data.select{ |stock_object| stock_object[@order_attributes[0]] == first_level[@order_attributes[0]] }.inject(0){|sum,x| sum + (x["sales"] - x["returns"])}
TMM has joined #ruby
TMM has quit [Read error: Connection reset by peer]
sigurding has joined #ruby
<AxonetBE> My idea was to create a method like this
<AxonetBE> first_level_stats(@stats_data, @order_attributes, :attributes => ['sales', 'returns'], :operand => '-')
gaussblurinc has quit [Client Quit]
TMM has joined #ruby
snuffeluffegus has joined #ruby
mlpinit has quit [Ping timeout: 240 seconds]
Macaveli has joined #ruby
<weeb1e> shevy: Those two I pasted, they just flood the console with those two lines
_HolyCow has quit [Ping timeout: 265 seconds]
<weeb1e> jhass: 2.2.2
julian` has quit [Ping timeout: 264 seconds]
julian` has joined #ruby
shvelo has quit [Ping timeout: 244 seconds]
rahult is now known as rahult_
<jhass> AxonetBE: .inject(0){|sum,x| sum + (x["sales"] - x["returns"])} can be written as .map {|x| x["sales"] - x["returns"] }.inject(:+)
Hien has joined #ruby
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamletx has joined #ruby
<weeb1e> If anyone has any ideas how I can fix the issue, please let me know
nfk|laptop has joined #ruby
lolmaus has joined #ruby
shvelo has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby
<AxonetBE> jhass: thanks
lolmaus_ has quit [Ping timeout: 264 seconds]
gaussblurinc has joined #ruby
browndawg has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
Hanmac has quit [Quit: Leaving.]
Hanmac has joined #ruby
Shidash has quit [Ping timeout: 265 seconds]
karupanerura is now known as zz_karupanerura
blackmesa has joined #ruby
<AxonetBE> Riking: any idea how to make the method in the best way?
<Riking> whoops, wasn't looking - one sec
sdouglas has quit [Ping timeout: 265 seconds]
visof has joined #ruby
cs02rm0 has joined #ruby
<Riking> oh - what jhass said is the answer
<Riking> .inject(:+)
<bnagy> don't think so
guilleiguaran has quit [Quit: Connection closed for inactivity]
<Riking> hm, lemme check
<bnagy> I think it's sales - returns vs sales + returns vs whatever / otherthing
<Riking> 1.+() results in ArgumentError:
nomenkun has quit [Read error: Connection reset by peer]
<bnagy> but probably always inject :+
<AxonetBE> bnagy: correct
<Riking> so you want to use :- AxonetBE
<jhass> a.public_send(:-, b) then
<Riking> ^
<Riking> yup
<weeb1e> I'm considering editing rubygems/specification.rb and just hacking it to hide these method missing errors, I can't find any information online and have no idea how else I can fix this
itadder has joined #ruby
<bnagy> I'd probably write a method so you could do stocks.sum('sales', :-, 'returns')
Kneferilis has joined #ruby
<Riking> that's what he was trying to do IIRC
<bnagy> the implementation from there is pretty trivial :)
<bnagy> thing[first].send(op, thing[second])
davy has joined #ruby
<bnagy> or stocks.munge :+, 'sales', :-, 'returns'
<AxonetBE> I will make my method and post it later here for a double check
<bnagy> if you want to get fancy
itadder has quit [Ping timeout: 265 seconds]
ritek has quit [Changing host]
ritek has joined #ruby
ritek has joined #ruby
rahult has joined #ruby
davy has quit [Ping timeout: 265 seconds]
klaut_ has joined #ruby
Ilie has joined #ruby
<Ilie> Hello, I'm trying to deploy https://github.com/aphyr/riemann-dash on passenger but I only get the listing of the public directory
<Ilie> http://pastebin.com/vsp3pc3r am I missing something out?
yubrew has joined #ruby
razibog has joined #ruby
gaussblurinc has quit [Quit: Leaving.]
cs02rm0 has quit [Ping timeout: 265 seconds]
mengu has joined #ruby
chrisseaton has quit []
vlad_starkov has joined #ruby
alexherbo2 has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
chrisseaton has joined #ruby
mehlah has quit [Quit: Leaving...]
Hanmac has quit [Ping timeout: 252 seconds]
<krz> how can i get the numder of days elapsed from Fri, 28 Feb 2014 18:51:00 +0000 (DateTime) from Time.now.utc ?
rahult is now known as rahult_
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Ping timeout: 240 seconds]
mengu has quit [Ping timeout: 264 seconds]
zeeraw has joined #ruby
Zai00 has joined #ruby
Zunonia has quit [Ping timeout: 265 seconds]
jamto11 has joined #ruby
<krz> tobiasvl: DateTime.now.utc - @campaign.start_at
<krz> .utc
<krz> => (80183235982687/17280000000000)
<bnagy> don't see why you need the utcs there
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
<krz> @campaign.start_at = => Fri, 28 Feb 2014 18:51:00 +0000
roolo has quit [Quit: Leaving...]
tkuchiki_ has joined #ruby
northfurr has quit [Ping timeout: 240 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
<pontiki> if you just want days, and not the full time, try subtracting the julian date of each
<krz> why does it return with the following result?
<bnagy> >> require 'date'; DateTime.now - DateTime.parse("Fri, 28 Feb 2014 18:51:00 +0000")
<eval-in> bnagy => (66928988735677/14400000000000) (https://eval.in/112949)
<pontiki> it's a Rational, convert it to an Integer with to_i
<bnagy> >> 66928988735677/14400000000000.0
<eval-in> bnagy => 4.647846439977569 (https://eval.in/112950)
<bnagy> seems about right
gaussblurinc has joined #ruby
JustMozzy has joined #ruby
styped has joined #ruby
styped has quit [Client Quit]
<krz> ah
ndrei has quit [Ping timeout: 265 seconds]
<pontiki> you really should read that page tobiasvl pointed you at, krz
tkuchiki has quit [Ping timeout: 240 seconds]
rahult has joined #ruby
<bnagy> well that page mainly talks about Date not DateTime
<bnagy> the Rational part can be a little confusing tbh
<pontiki> mainly, but it still applies
jamto11 has quit [Ping timeout: 240 seconds]
CpuID has joined #ruby
eka has joined #ruby
hiyosi has joined #ruby
tkuchiki_ has quit [Ping timeout: 252 seconds]
mehlah has joined #ruby
<bnagy> >> DateTime.now.mjd - DateTime.parse("Fri, 28 Feb 2014 18:51:00 +0000").mjd # o_0
<eval-in> bnagy => uninitialized constant DateTime (NameError) ... (https://eval.in/112953)
arietis has quit [Quit: Computer has gone to sleep.]
<bnagy> suk it eval.in
<bnagy> >> require 'date'; DateTime.now.mjd - DateTime.parse("Fri, 28 Feb 2014 18:51:00 +0000").mjd # o_0
<eval-in> bnagy => 5 (https://eval.in/112955)
_bart has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
Vovko has quit [Remote host closed the connection]
<krz> hmm what if i need number of hours
<krz> not days
aagdbl has joined #ruby
<bnagy> multiply by 24?
Vovko has joined #ruby
timonv has joined #ruby
<bnagy> I mean, you know. Leap seconds and stuff, but life is hard
hiyosi has quit [Ping timeout: 240 seconds]
<krz> lets recap. i basically want to show something like 4 days, 3 hours and 20 minutes
<bnagy> how is that recapping?
<tobiasvl> that's more like backpedal or retcon
tvw has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
mjs2600 has joined #ruby
<bnagy> anyway, imho take the smallest unit you want, multiply your rational by that, then iteratively dovmod
<bnagy> divmod dammit
<bnagy> red wine + typing == joy
arietis has joined #ruby
ayonix_ has joined #ruby
Vovko has quit [Ping timeout: 240 seconds]
ayonix_ has quit [Client Quit]
styped has joined #ruby
infoget1 has joined #ruby
sigurding has quit [Quit: sigurding]
infoget has quit [Ping timeout: 240 seconds]
sigurding has joined #ruby
mostlybadfly has joined #ruby
mjs2600 has quit [Ping timeout: 244 seconds]
postmodern has joined #ruby
roolo has joined #ruby
infoget has joined #ruby
<bnagy> >> 7600.divmod 3600
<eval-in> bnagy => [2, 400] (https://eval.in/112962)
<bnagy> >> 400.divmod 60
<eval-in> bnagy => [6, 40] (https://eval.in/112963)
<bnagy> ... etc
joelroa has quit [Ping timeout: 240 seconds]
klaut_ has quit [Remote host closed the connection]
infoget1 has quit [Ping timeout: 240 seconds]
claymore has quit [Quit: Leaving]
<krz> hmm k let me try that
lkba has quit [Ping timeout: 265 seconds]
claymore has joined #ruby
<bnagy> you can divmod any numeric, so you can go straight from a Rational
<bnagy> >> require 'date'; ((DateTime.now - DateTime.parse("Fri, 28 Feb 2014 18:51:00 +0000")) * 24 * 3600).divmod 24*3600
<eval-in> bnagy => [4, (11415658061469/200000000)] (https://eval.in/112964)
<bnagy> that's kind cool actually
<bnagy> beats the shit out of floats
Speed has joined #ruby
Guest551 has quit [Read error: Connection reset by peer]
sarmiena_ has quit [Quit: sarmiena_]
<bnagy> anyway n8
<krz> thanks bnagy night
raddazong has quit [Changing host]
raddazong has joined #ruby
raddazong is now known as madhatter
Guest551 has joined #ruby
Guest551 has quit [Max SendQ exceeded]
Ilie has quit []
Guest551 has joined #ruby
mlpinit has joined #ruby
tkuchiki has joined #ruby
DaniG2k has joined #ruby
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
<krz> hmm bit confused. so ((DateTime.now - DateTime.parse(@campaign.start_at.to_s)) * 24 * 3600).divmod(24*3600) returns [4, (14238294736071/250000000)]
nateberkopec has joined #ruby
<krz> 4 is the elapsed number of days
not_a_guest has quit [Quit: Connection closed for inactivity]
workmad3 has joined #ruby
lolmaus has joined #ruby
<krz> now what would i need to get the hours?
jxf has quit [Ping timeout: 240 seconds]
<jhass> what is start_at, why do you to_s it?
<krz> jhass: DateTime
thomasxie has quit [Remote host closed the connection]
mlpinit has quit [Ping timeout: 240 seconds]
<krz> Fri, 28 Feb 2014 18:51:00 +0000
thomasxie has joined #ruby
<jhass> krz: makes no sense to t_s a DateTime just to parse it again into a DateTime
<certainty> unless it's in a test which it is not
* certainty starts the day with random non sense
<pontiki> distance_in_words_from_nonsense
<certainty> 0
agjacome has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby
thomasxie has quit [Client Quit]
<jhass> krz: so DateTime-DateTime returns days, *24 turns it into hours, *60 turns it into minutes, *60 turns it into seconds (60*60=3600)
ayonix has joined #ruby
thomasxie has joined #ruby
<apeiros> I'm always amazed how people fail to do the most basic of maths when it comes to dates/times
ayonix has left #ruby [#ruby]
JasmeetQA has quit [Quit: Leaving.]
JasmeetQA has joined #ruby
yeticry has joined #ruby
sdouglas has quit [Ping timeout: 244 seconds]
styped has quit [Ping timeout: 240 seconds]
foredoomed has joined #ruby
<certainty> apeiros: but most people haven't written a date/time library, unlike you :)
<apeiros> certainty: entirely off the point
<apeiros> certainty: *everybody* learns in elementary school already how many hours a day has, etc.
<certainty> oh that basic math
<apeiros> so going from days to hours is beyond trivial
<apeiros> yeah, that basic math :)
<certainty> agreed
* certainty didn't say anything
hamletx has quit [Remote host closed the connection]
grzywa has joined #ruby
<pontiki> i suppose that's for the best. :P
morenoh149 has quit [Ping timeout: 244 seconds]
shvelo has quit [Ping timeout: 240 seconds]
davy has joined #ruby
carraroj has joined #ruby
yubrew has joined #ruby
webgen has quit [Ping timeout: 240 seconds]
<pontiki> those applied maths are so confusing
cewek has joined #ruby
<cewek> hai
<pontiki> oui
<cewek> :D
joelroa has joined #ruby
nfk|laptop has quit [Quit: yawn]
<gaussblurinc> how to put this code into a for-loop in rubish style? return array unless options.has_key("filterRegex")
<gaussblurinc> return array unless options.has_key("substitudeRegex")
<gaussblurinc> return array unless options.has_key("replacementExpression")
<pontiki> you misspelled "rubbish"
<gaussblurinc> sorry
cs02rm0 has joined #ruby
aryaching has joined #ruby
davy has quit [Ping timeout: 240 seconds]
<cewek> hmmm
<gaussblurinc> perl is: return $array unless exists $options{$_} for qw(filterRegex substitudeRegex replacementExpression)
yubrew has quit [Ping timeout: 265 seconds]
shvelo has joined #ruby
vlad_starkov has joined #ruby
<jhass> gaussblurinc: so you want to return if none of these keys exist?
<jhass> or any?
<gaussblurinc> any
<jhass> return array if %w(filterRegex substitudeRegex replacementExpression).any? {|key| options.has_key? key }
cewek has left #ruby [#ruby]
<gaussblurinc> thanks. any? is array method, right?
<jhass> Enumerable (which is included in Array and many other things)
<olivier_bK> i try to execute curl from my ruby for that i use %x [...]
cs02rm0 has quit [Ping timeout: 240 seconds]
<olivier_bK> but i get an error than i cant understand
<gaussblurinc> olivier_bK: did you try to use %x and curl in simple example?
claymore has quit [Quit: Leaving]
<pontiki> return array if %w{filterRegex substituteRegex replacementExpression} & options.keys
<jhass> also posting non-english error output isn't very helpful
<olivier_bK> gaussblurinc, what do you mean
<gaussblurinc> olivier_bK: could your print your command without execution but with subtitution of variables?
<olivier_bK> gaussblurinc, if i try with %x[curl -i -H "Host: #{iname}" http://127.0.0.1/scripts/db/migrate'] i get thte same error
foredoomed has quit []
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
shvelo has quit [Ping timeout: 240 seconds]
yokel has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
<jhass> olivier_bK: also note that the Host header in HTTP isn't intended as parameter but as indicator what domain you want to access. Changing that meaning is bad style
<gaussblurinc> I'd like to use this: print qq(curl $url) ; print qx(curl $url) <- perl
yokel has joined #ruby
<olivier_bK> jhass, i try to acces to my domain
_zxq9_ is now known as zxq9
joelroa has quit [Ping timeout: 240 seconds]
pierre1_ has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
<olivier_bK> i have two server on in debian and another one in centos in the first one everything doing fine
<olivier_bK> but in centos i get this error
<jhass> olivier_bK: again, I do not speak french so I've no idea what the error is
<gaussblurinc> are you sure, that this is question about ruby?
bluenemo has joined #ruby
<olivier_bK> ohh sorry lol
<olivier_bK> Aucun fichier ou dossier de ce type
<olivier_bK> => i cant find any directory of that type
<pontiki> "Each file or folder of the type"
<jhass> You mean "No such file or directory" ?
<jhass> just run it with LC_ALL=C
<pontiki> do you know for a *fact* there are files of the type you are looking for there?
rdark has quit [Ping timeout: 240 seconds]
tjr9898 has quit [Read error: No route to host]
ndrei has joined #ruby
rahult is now known as rahult_
<olivier_bK> jhass, yea something like that :)
tjr9898 has joined #ruby
<jhass> what does which curl say?
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<olivier_bK> he say /usr/bin/curl
<jhass> try removing the '
<pontiki> that's what was bothering me
rdark has joined #ruby
<pontiki> if you send a quoted string to the shell like that, it thinks that whole string is the file to execute, doesn't it?
<jhass> yeah, I thought so
mansi has joined #ruby
<pontiki> wonder how eval-in deals with %x
<pontiki> >> %x[/bin/ls]
<eval-in> pontiki => (https://eval.in/113033)
alexju has quit [Remote host closed the connection]
AlexRussia has joined #ruby
<pontiki> guessing it's jailed
<certainty> hope so
<pontiki> me too
leur has quit [Remote host closed the connection]
<olivier_bK> i think is good
<pontiki> >> %x[/bin/echo hello world]
<eval-in> pontiki => (https://eval.in/113037)
<weeb1e> Still haven't been able to figure out what is going on with rubygems, something is seriously wrong
gaussblurinc has left #ruby [#ruby]
jkhaliph has joined #ruby
gaussblurinc has joined #ruby
<olivier_bK> thanks all
<pontiki> i doubt it, weeb1e
QbY has joined #ruby
<jkhaliph> I have a question about my ruby app im working on
<weeb1e> I am getting random gem method missing errors all over the place pontiki
<jkhaliph> can someone help?
<jkhaliph> Im a ruby noob
<pontiki> weeb1e: your installation might be screwed up
<weeb1e> Unlikley
<weeb1e> *Unlikely
<pontiki> lol
<jhass> jkhaliph: don't ask to ask, just ask
<weeb1e> I have many other applications running just fine on here
<pontiki> yes, and millions of other people are having all the same problems
<olivier_bK> yes ask your question
<weeb1e> (On this box, using this ruby installation)
<pontiki> so, you're saying that all those other applications are working, the one is not, and rubygems is screwed up??
<jkhaliph> I need to add a search ba yo a web app I am working on
mansi has quit [Ping timeout: 244 seconds]
dingus_khan has joined #ruby
<jkhaliph> bar to*
tjr9898 has quit [Read error: Connection reset by peer]
hiyosi has joined #ruby
<weeb1e> jkhaliph: Is it a rails app
<jhass> jkhaliph: note that ruby != rails, rails is a framework running on ruby. If you're using rails you're better helped in #RubyOnRails
<weeb1e> What jhass said.
tjr9898 has joined #ruby
<jkhaliph> Gotcha
<jkhaliph> Im heading over to the #rubyonrails chat now
<jkhaliph> thanks
dingus_khan has quit [Remote host closed the connection]
<weeb1e> I blame PHP for people confusing languages and frameworks
<weeb1e> PHP should never have been invented
jkhaliph has quit [Client Quit]
<pontiki> PHP isn't a framework, either
<QbY> but it made so many competent developers though
camilasan has quit [Remote host closed the connection]
<weeb1e> Exactly
camilasan has joined #ruby
<weeb1e> Why does rubygems hate me today :(
camilasa_ has joined #ruby
<weeb1e> MongoMapper is causing constant spamming of: Exception `NoMethodError' at /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/active_support/core_ext/date_time/calculations.rb:141 - undefined method `coerce' for nil:NilClass
<weeb1e> Even though everything still seems to work as expected, it makes my console output useless
hiyosi has quit [Ping timeout: 240 seconds]
camilasa_ has quit [Read error: Connection reset by peer]
itadder has joined #ruby
camilasa_ has joined #ruby
<itadder> whawt does yield do
camilasa_ has quit [Read error: Connection reset by peer]
andrewlio has joined #ruby
<weeb1e> Do you think it's possible I'm getting those coerce issues because the version of 1.9.3 is a lot older on this box?
<jhass> itadder: it calls a passed bloc. parameters you pass to yield are passed to the block. The return value of the block is the return value of yield
camilasa_ has joined #ruby
<weeb1e> These gems work fine on another box I have
<jhass> *block
camilasa_ has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
<itadder> thanks
AlSquire has quit [Ping timeout: 240 seconds]
dEPy has quit [Quit: Lingo - http://www.lingoirc.com]
camilasa_ has quit [Read error: Connection reset by peer]
<weeb1e> It looks like that is indeed a ruby bug
camilasa_ has joined #ruby
<weeb1e> Just surprised I have not run into it with any of my other applications running on this box
camilasan has quit [Ping timeout: 264 seconds]
<weeb1e> I'll have to try upgrade 1.9.3 to the latest build and hope none of my other applications break
camilasa_ has quit [Read error: Connection reset by peer]
crantron has quit []
ndrei has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
rdark has quit [Ping timeout: 244 seconds]
camilasan has quit [Read error: Connection reset by peer]
dingus_khan has joined #ruby
pierre1_ has joined #ruby
camilasan has joined #ruby
rahult has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
rdark has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
AlSquire has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
davedev24 has joined #ruby
renderful has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 264 seconds]
thomasxie has quit [Remote host closed the connection]
camilasan has joined #ruby
thomasxie has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
roolo has quit [Quit: Leaving...]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
<itadder> so yield
<itadder> passes the block
m1lt0n_ has quit [Quit: leaving]
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
<certainty> if you think of the block of a function, than yield == function application
fedesilva has joined #ruby
<certainty> then
<weeb1e> Or not... updated to the latest 1.9.3 and I still get these errors
camilasa_ has quit [Read error: Connection reset by peer]
<weeb1e> This makes no sense :/
camilasan has joined #ruby
mlpinit has joined #ruby
noopq has quit [Ping timeout: 240 seconds]
<itadder> certainty: oh
shime has joined #ruby
boycey has quit [Quit: boycey]
camilasan has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
chrisseaton has quit []
<itadder> what would be a good use case
sigurding has quit [Quit: sigurding]
camilasan has joined #ruby
dweeb has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
cs02rm0 has joined #ruby
camilasan has joined #ruby
<weeb1e> I don't even know how these exceptions are being caught and printed without a backtrace
<certainty> itadder: for yield?
camilasa_ has joined #ruby
dingus_khan has quit [Read error: Connection reset by peer]
<weeb1e> What part of ruby or rubygems catches exceptions and prints them out in this format? "Exception `NoMethodError' at /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/active_support/core_ext/date_time/calculations.rb:141 - undefined method `coerce' for nil:NilClass"
<weeb1e> I tried editing that file directly and adding a rescue to like 141, but it doesn't even catch the error
camilas__ has joined #ruby
chrisseaton has joined #ruby
<itadder> yes
<weeb1e> So I can't get a full backtrace and see where the real error is even
<weeb1e> If anyone has any ideas, please let me know :|
mlpinit has quit [Ping timeout: 244 seconds]
<certainty> itadder: there are many. It's a means to share code. Can be used to implement strategy pattern or visitor
<certainty> and all sorts of other interesting things
<itadder> okay
<itadder> it seem every chapter is getting more advance now
<itadder> methods and blocks are very advance topic for me
<itadder> I need to spend far more time doing examples and tweeking
cs02rm0 has quit [Ping timeout: 252 seconds]
shvelo has joined #ruby
<certainty> itadder: are you familiar with the concept of higher order functions?
nateberkopec has quit [Ping timeout: 240 seconds]
camilasan has quit [Ping timeout: 264 seconds]
<itadder> in math
<itadder> pemdas
<gaussblurinc> Unquoting issue: http://pastebin.com/ZS89Uk4q can anybody help with it?
camilasa_ has quit [Ping timeout: 264 seconds]
sparrovv has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 264 seconds]
Faris has joined #ruby
<certainty> itadder: that's something different I think. Isn't that a rule to remember the precedence of operations?
sparrovv has joined #ruby
boycey has joined #ruby
frode15243_ has joined #ruby
iaj_ has joined #ruby
mikemac has joined #ruby
ji0n has joined #ruby
Atww has joined #ruby
gyre007__ has joined #ruby
Jakee`__ has joined #ruby
<certainty> itadder: well basically every method in ruby can take an optional argument that happens to be equivalent to a function. Something that is callable and represents an operation/computation
Cope__ has joined #ruby
hanikazmi has joined #ruby
<certainty> that's the blocks
vcoinminer_ has joined #ruby
lolmaus_ has joined #ruby
LiohAu has quit [Read error: Connection reset by peer]
dachi_ has joined #ruby
snkcld_ has joined #ruby
<certainty> you can either bind the block to a parameter and call it def f(&block); block.call; end or use yield which will do the same but without the need to bind the block to a parameter: def f; yield; end
zrl__ has joined #ruby
jrhe_ has joined #ruby
* certainty is bad at explaining things
noname001__ has joined #ruby
vaktpost_ has joined #ruby
kevinfagan has joined #ruby
DrForr_ has joined #ruby
telling_ has joined #ruby
antonishen_ has joined #ruby
robmozart__ has joined #ruby
dseitz_ has joined #ruby
Drakevr_ has joined #ruby
multi_io_ has joined #ruby
crazysim has quit [Excess Flood]
frode15243 has quit [Ping timeout: 265 seconds]
Jakee`_ has quit [Ping timeout: 265 seconds]
frode15243_ is now known as frode15243
Jakee`__ is now known as Jakee`_
krandi has joined #ruby
dseitz has quit [Disconnected by services]
sivoais_ has joined #ruby
jpinnix___ has joined #ruby
dseitz_ is now known as dseitz
sparrovv has quit [Remote host closed the connection]
elimS has joined #ruby
Drakevr has quit [Disconnected by services]
mansi has joined #ruby
dayepa has joined #ruby
icedp has joined #ruby
sparrovv has joined #ruby
skyjumpe1 has joined #ruby
phrozen77 has joined #ruby
davy has joined #ruby
roolo has joined #ruby
TwinkleH1od has joined #ruby
schaary_ has joined #ruby
supershabam_ has joined #ruby
d-snp_ has joined #ruby
Drakevr_ is now known as Drakevr
ping_pong has joined #ruby
ckrailo_ has joined #ruby
SirFunk_ has joined #ruby
cbetta_ has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
foredoomed has joined #ruby
Tranquility_ has joined #ruby
mattyohe_ has joined #ruby
ndrei_ has joined #ruby
drjblouse__ has joined #ruby
mroth__ has joined #ruby
niv_ has joined #ruby
rdark_ has joined #ruby
visof_ has joined #ruby
adamholt_ has joined #ruby
sindork_ has joined #ruby
crazysim has joined #ruby
davidcel- has joined #ruby
hamakn_ has joined #ruby
Sthebig_ has joined #ruby
charles81_ has joined #ruby
xxi has joined #ruby
cmaxw____ has joined #ruby
aryaching_ has joined #ruby
kapowaz_ has joined #ruby
adambeynon__ has joined #ruby
jrunning____ has joined #ruby
Muz_ has joined #ruby
mtlatif__ has joined #ruby
cjk101010_ has joined #ruby
LiohAu has joined #ruby
roolo has quit [Read error: Connection reset by peer]
PLejeck- has joined #ruby
Ch4rAss has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
crazymykl has quit [Remote host closed the connection]
iaj has quit [Remote host closed the connection]
gyre007_ has quit [Ping timeout: 265 seconds]
bakingbread has quit [Ping timeout: 265 seconds]
phrozen7- has quit [Ping timeout: 265 seconds]
vcoinminer has quit [Ping timeout: 265 seconds]
ji0n_ has quit [Ping timeout: 265 seconds]
bodie_ has quit [Ping timeout: 265 seconds]
Speed has quit [Ping timeout: 265 seconds]
Klumben has quit [Ping timeout: 265 seconds]
FL1SK has quit [Ping timeout: 265 seconds]
Atw has quit [Remote host closed the connection]
zenojis has quit [Quit: No Ping reply in 180 seconds.]
jrhe has quit [Ping timeout: 265 seconds]
Cope has quit [Ping timeout: 265 seconds]
zrl_ has quit [Ping timeout: 265 seconds]
hanikazmi_ has quit [Quit: No Ping reply in 180 seconds.]
kevinfagan_ has quit [Ping timeout: 265 seconds]
JViz_ has quit [Ping timeout: 265 seconds]
jmaister has quit [Ping timeout: 265 seconds]
antonishen has quit [Ping timeout: 265 seconds]
epochwolf has quit [Ping timeout: 265 seconds]
dachi has quit [Ping timeout: 265 seconds]
ConstantineXVI has quit [Ping timeout: 265 seconds]
Klumben has joined #ruby
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
Deele has quit [Ping timeout: 265 seconds]
nathansoz has quit [Ping timeout: 265 seconds]
lfox_ has quit [Ping timeout: 265 seconds]
psyprus has quit [Ping timeout: 265 seconds]
Paradox has quit [Ping timeout: 265 seconds]
jpinnix__ has quit [Ping timeout: 265 seconds]
snkcld has quit [Ping timeout: 265 seconds]
robmozart_ has quit [Ping timeout: 265 seconds]
dmarr has quit [Ping timeout: 265 seconds]
artgoeshere has quit [Ping timeout: 265 seconds]
dachi_ is now known as dachi
mr_rich101 has joined #ruby
gyre007__ is now known as gyre007_
dmoe___ has joined #ruby
Deele has joined #ruby
Nigel_ has joined #ruby
Rylee has quit [Max SendQ exceeded]
zenojis has joined #ruby
The_Doctor has joined #ruby
jrhe_ is now known as jrhe
<itadder> is tutspoint + the best way for me to learn ruby methods
<itadder> or programing methods and blocks
jmaister has joined #ruby
<itadder> I just want to learn the logic of blocks classes and methods
__noname001__ has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 265 seconds]
vaktpost has quit [Ping timeout: 265 seconds]
<itadder> so I can then appiy to any lang later on
DrForr has quit [Ping timeout: 265 seconds]
MindfulMonk has quit [Ping timeout: 265 seconds]
jpinnix___ is now known as jpinnix__
BaconOverflow___ has quit [Ping timeout: 265 seconds]
G has quit [Ping timeout: 265 seconds]
mtlatif_ has quit [Ping timeout: 265 seconds]
telling has quit [Ping timeout: 265 seconds]
multi_io has quit [Ping timeout: 265 seconds]
Angelous has quit [Ping timeout: 265 seconds]
xiphiasx1 has quit [Ping timeout: 265 seconds]
ping-pong has quit [Ping timeout: 265 seconds]
ggherdov has quit [Ping timeout: 265 seconds]
davidcelis has quit [Ping timeout: 265 seconds]
G has joined #ruby
andikr has quit [Quit: No Ping reply in 180 seconds.]
tjr9898 has quit [Ping timeout: 265 seconds]
tobiasvl has quit [Ping timeout: 265 seconds]
dmoe__ has quit [Ping timeout: 265 seconds]
sivoais has quit [Ping timeout: 265 seconds]
davidcel- is now known as davidcelis
davidcelis has quit [Changing host]
davidcelis has joined #ruby
_main_ has joined #ruby
antonishen_ is now known as antonishen
vcoinminer_ is now known as vcoinminer
JasmeetQA has quit [Read error: Connection reset by peer]
PLejeck has quit [Ping timeout: 265 seconds]
Adran has quit [Ping timeout: 265 seconds]
mattyohe has quit [Ping timeout: 265 seconds]
alol_ has joined #ruby
tvl has joined #ruby
robmozart__ is now known as robmozart_
vjt has quit [Remote host closed the connection]
xiphiasx_ has joined #ruby
mahlon has quit [Ping timeout: 265 seconds]
plexus has quit [Ping timeout: 265 seconds]
skyjumper has quit [Ping timeout: 265 seconds]
Tranquility has quit [Ping timeout: 265 seconds]
charles81 has quit [Ping timeout: 265 seconds]
csq has quit [Ping timeout: 265 seconds]
Nightmare has quit [Ping timeout: 265 seconds]
tvl is now known as tobiasvl
epochwolf has joined #ruby
sindork has quit [Ping timeout: 265 seconds]
SirFunk has quit [Ping timeout: 265 seconds]
kapowaz has quit [Ping timeout: 265 seconds]
Guest22876 has quit [Ping timeout: 265 seconds]
supershabam has quit [Ping timeout: 265 seconds]
adambeynon_ has quit [Ping timeout: 265 seconds]
cbetta has quit [Ping timeout: 265 seconds]
TwinkleHood has quit [Ping timeout: 265 seconds]
ndrei has quit [Ping timeout: 265 seconds]
mr_rich102 has quit [Ping timeout: 265 seconds]
mroth has quit [Ping timeout: 265 seconds]
jrunning___ has quit [Ping timeout: 265 seconds]
__main__ has quit [Ping timeout: 265 seconds]
ckrailo has quit [Ping timeout: 265 seconds]
aef has quit [Ping timeout: 265 seconds]
dandrade_ has quit [Ping timeout: 265 seconds]
cjk101010 has quit [Ping timeout: 265 seconds]
d-snp has quit [Ping timeout: 265 seconds]
vjt has joined #ruby
tjr9898 has joined #ruby
schaary has quit [Ping timeout: 265 seconds]
visof has quit [Ping timeout: 265 seconds]
rdark has quit [Ping timeout: 265 seconds]
predator217 has quit [Ping timeout: 265 seconds]
alol has quit [Ping timeout: 265 seconds]
niv has quit [Ping timeout: 265 seconds]
drjblouse_ has quit [Read error: Connection reset by peer]
adamholt has quit [Quit: ZNC - http://znc.sourceforge.net]
jmaister has quit [Remote host closed the connection]
cmaxw___ has quit [Ping timeout: 265 seconds]
go|dfish has quit [Ping timeout: 265 seconds]
ValicekB has quit [Ping timeout: 265 seconds]
lectrick_ has quit [Ping timeout: 265 seconds]
drago777- has quit [Ping timeout: 265 seconds]
mbff- has joined #ruby
Guest85414______ has quit [Ping timeout: 265 seconds]
dandrade has joined #ruby
epochwolf has joined #ruby
epochwolf has quit [Changing host]
lfox has joined #ruby
Sthebig has quit [Ping timeout: 265 seconds]
ixx has quit [Ping timeout: 265 seconds]
Muz has quit [Ping timeout: 265 seconds]
mansi has quit [Remote host closed the connection]
dmarr has joined #ruby
aetaric has quit [Excess Flood]
Angelous has joined #ruby
Nightmare has joined #ruby
jmaister has joined #ruby
Nightmare has joined #ruby
jmaister has joined #ruby
psyprus has joined #ruby
Liothen has quit [Quit: The Dogmatic Law of Shadowsong]
csq has joined #ruby
Ch4rAss` has quit [Ping timeout: 265 seconds]
grzywacz has quit [Ping timeout: 265 seconds]
drago777 has joined #ruby
bodie_ has joined #ruby
aetaric has joined #ruby
artgoeshere has joined #ruby
G has quit [Ping timeout: 265 seconds]
aef has joined #ruby
mjmac has quit [Ping timeout: 265 seconds]
niv_ is now known as niv
lectrick__ has joined #ruby
cbetta_ is now known as cbetta
Liothen has joined #ruby
grzywacz has joined #ruby
Paradox has joined #ruby
cmaxw____ is now known as cmaxw___
BaconOverflow___ has joined #ruby
adambeynon__ is now known as adambeynon_
davy has quit [Ping timeout: 264 seconds]
ConstantineXVI has joined #ruby
Sthebig_ is now known as Sthebig
schaary_ is now known as schaary
bodie_ is now known as Guest87187
MindfulMonk has joined #ruby
mattyohe_ is now known as mattyohe
mroth__ is now known as mroth
alol_ is now known as alol
Guest85414______ has joined #ruby
kapowaz_ is now known as kapowaz
Mongey has quit [Ping timeout: 240 seconds]
drjblouse__ is now known as drjblouse_
hamakn has quit [Ping timeout: 265 seconds]
<certainty> itadder: i don't know that, so i can't judge. All I can say is that blocks are conceptually very simple and nothing to be afraid of
ckrailo_ is now known as ckrailo
Tranquility_ is now known as Tranquility
supershabam_ is now known as supershabam
<itadder> oh
mjmac has joined #ruby
<itadder> so I need to spend 2 hours after work
<itadder> every day
<itadder> I need to head to gym
Rylee has joined #ruby
<certainty> have fun
<itadder> I was just syncing some ebooks on my ipad and audio book on my iphone
_main_ is now known as __main__
predator117 has joined #ruby
shaileshg has joined #ruby
adambeynon_ is now known as adambeynon
<itadder> certainty: your da best thanks
<itadder> The
blackmesa has quit [Ping timeout: 264 seconds]
aryaching has joined #ruby
sparrovv has quit [Remote host closed the connection]
<itadder> practice makes the master is what I am learning in this audio book
<itadder> okay bye
ggherdov has joined #ruby
sparrovv has joined #ruby
joelroa has joined #ruby
mmochan has joined #ruby
aryaching_ has quit [Ping timeout: 252 seconds]
spider-mario has joined #ruby
ValicekB_ has joined #ruby
tjr9898 has quit [Ping timeout: 265 seconds]
ValicekB_ is now known as ValicekB
joelroa has quit [Read error: Operation timed out]
prc has quit [Ping timeout: 252 seconds]
Hanmac has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
heftig has quit [Quit: Quitting]
mengu has quit [Remote host closed the connection]
tjr9898 has joined #ruby
mikeg has quit [Remote host closed the connection]
TripleDES has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
telling_ is now known as telling
telling has quit [Changing host]
telling has joined #ruby
phantasm66 has quit [Quit: *sleeeep….]
griffindy has joined #ruby
Hanmac has joined #ruby
Speed has joined #ruby
tgkokk has joined #ruby
shredding has quit [Quit: shredding]
jamto11 has quit [Ping timeout: 244 seconds]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
Xeago_ has quit [Client Quit]
hiyosi has joined #ruby
grzywa has quit [Read error: Connection reset by peer]
JustMozzy has left #ruby [#ruby]
cjk101010_ is now known as cjk101010
joonty has quit [Ping timeout: 240 seconds]
grzywacz has quit [Ping timeout: 265 seconds]
tesuji has quit [Read error: Connection reset by peer]
tesuji has joined #ruby
craigp has joined #ruby
aganov has quit [Read error: Operation timed out]
hiyosi has quit [Ping timeout: 265 seconds]
lkba has joined #ruby
mjs2600 has joined #ruby
codeFiend has joined #ruby
prc has joined #ruby
nath_schwarz has quit [Remote host closed the connection]
IceDragon has joined #ruby
Guest71112 is now known as Radar
mjs2600 has quit [Ping timeout: 240 seconds]
nerium has joined #ruby
<nerium> Anyone knows a way to merge yaml filés?
pabloh has joined #ruby
<canton7> read them into hashes, merge using whatever technique you want, write back to yaml?
vlad_starkov has quit [Ping timeout: 265 seconds]
tgkokk has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
klaut_ has joined #ruby
sigurding has joined #ruby
chrisseaton has quit []
joonty has joined #ruby
fluxxible has joined #ruby
fluxxible has left #ruby [#ruby]
popl has quit [Quit: Touch the frog.]
vlad_starkov has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
<apeiros> nerium: that's a *very* vague question, given that a yaml can contain virtually *any* type of data
verto_ is now known as verto
hamakn_ has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
<nerium> apeiros: Okay, but given that they are almost the same
thomasxie has quit [Remote host closed the connection]
<apeiros> still not informative.
flagg0204 has quit [Ping timeout: 264 seconds]
thomasxie has joined #ruby
<apeiros> how do you merge a yaml file containing "1" with a yaml file containing "2"?
simono has joined #ruby
tgkokk has joined #ruby
tgkokk has quit [Max SendQ exceeded]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nerium> apeiros: It's more a question about merging two hashes
<apeiros> (they're almost the same - and that's the only description about your yaml files we have so far…)
codeFiend has quit [Quit: codeFiend]
<apeiros> see Hash#merge
m1lt0n_ has joined #ruby
nathansoz has joined #ruby
Speed has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
aganov has joined #ruby
<apeiros> note though that "It's more a question about merging two hashes" is still neither a question nor really informative. but at least it's getting warmer.
infoget has quit [Quit: Leaving.]
infoget has joined #ruby
<shevy> ack
<shevy> it is getting warmer
<shevy> that might be bad news depending on where one lives
yubrew has joined #ruby
<olivier_bK> how i can remove in my date T00:00:00+00:00 complete date 2011-02-02T00:00:00+00:00
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> >> "2011-02-02T00:00:00+00:00"[0,10]
<eval-in> apeiros => "2011-02-02" (https://eval.in/113172)
nateberkopec has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
TheLarkInn has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 264 seconds]
thisirs has joined #ruby
TheLarkInn has joined #ruby
mostlybadfly has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
morenoh149 has joined #ruby
sigurding has quit [Quit: sigurding]
dingus_khan has joined #ruby
sdouglas has quit [Ping timeout: 265 seconds]
mansi has quit [Ping timeout: 244 seconds]
<shevy> hmm anyone knows of a gem or something that would allow me to do copy xorg buffer into pastie.org ? but through a ruby script, right now I manually paste there
Speed has joined #ruby
Advocation has quit [Ping timeout: 240 seconds]
Advocation_ has joined #ruby
northfurr has joined #ruby
ziyadb_ has joined #ruby
morenoh149 has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
davy has joined #ruby
dingus_khan has quit [Ping timeout: 264 seconds]
Mongey has joined #ruby
jmeeuwen_ is now known as jmeeuwen
niftyn8 has joined #ruby
Hanmac has quit [Ping timeout: 244 seconds]
<certainty> shevy: don't be lazy :p
<shevy> hey!
<shevy> I did not pick perl
sigurding has joined #ruby
<shevy> those perl guys are hard workers
<shevy> I am with ruby and lazy
Megtastique has joined #ruby
tesuji has quit [Ping timeout: 264 seconds]
<certainty> shevy: could've picked haskell to be even more lazy
<shevy> ack
<shevy> I never managed to understand monads
davy has quit [Ping timeout: 240 seconds]
<certainty> heh, you know they're just monoids in the category of endofunctors, what's the big deal?
<TheLarkInn> Anyone know a good rspec autotest gems that work with OSX Notifications rather than Growl?
<shevy> what is an endofunctor and why is it important
AlexRussia has joined #ruby
kaliya has joined #ruby
<shevy> certainty this is the kind of stuff I do all day long http://oi62.tinypic.com/35kloja.jpg but wuest lately told me that all R,G,B colours work on konsole, so the next thing I shall do is ... add more colours!!!
hiyosi has joined #ruby
toastynerd has joined #ruby
joelroa has joined #ruby
<certainty> shevy: that was just a statement taken from here: http://james-iry.blogspot.de/2009/05/brief-incomplete-and-mostly-wrong.html
shime has quit [Ping timeout: 240 seconds]
<certainty> shevy: but from a programmers point of view, monads are not that difficult
elimS has quit [Remote host closed the connection]
elimS has joined #ruby
<certainty> bbl
* certainty &
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
thomasxie has quit [Remote host closed the connection]
browndawg has quit [Read error: Connection reset by peer]
thomasxie has joined #ruby
platzhirsch has joined #ruby
joelroa has quit [Ping timeout: 264 seconds]
* platzhirsch roars…
* platzhirsch pokes shevy
shevy has quit [Read error: Operation timed out]
browndawg has joined #ruby
senayar has quit [Remote host closed the connection]
zeeraw has joined #ruby
Zesty has joined #ruby
dapz has quit [Ping timeout: 240 seconds]
zeeraw has quit [Client Quit]
yacks has quit [Remote host closed the connection]
flagg0204 has joined #ruby
elimS has quit []
browndawg has quit [Quit: Leaving.]
atmosx has joined #ruby
Zesty has quit [Quit: Linkinus - http://linkinus.com]
shredding has joined #ruby
calleerlandsson has quit [Ping timeout: 240 seconds]
browndawg has joined #ruby
freerobby has joined #ruby
thisirs has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 0.4.3]
aryaching has joined #ruby
duggiefresh has joined #ruby
anarang has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
hamakn has joined #ruby
banister has joined #ruby
Bira has joined #ruby
shevy has joined #ruby
andrewlio has quit [Remote host closed the connection]
Butcho has joined #ruby
joelroa has joined #ruby
julian` has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
<shevy> hehe
<shevy> but ruby!
<rdark_> then "+p or "*p depending on which paste buffer you're using
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> cool
<Butcho> I have a nagios script which does a Net::HTTP::Post.new. But if the webserver isn't running, it throws a Errno::ECONNREFUSED. How do I check for that before running the rest of the script?
Hanmac1 has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
grzywacz has joined #ruby
<rdark_> Butcho: rescue that exception with a begin/rescue block
<Butcho> rdark_: thanks.. any examples?
joelroa has quit [Ping timeout: 240 seconds]
crystal77 has joined #ruby
browndawg has quit [Quit: Leaving.]
yfeldblum has quit [Ping timeout: 240 seconds]
<Butcho> rdark_: Fantastic! That worked. Inserted it straight into my def
duggiefresh has quit [Remote host closed the connection]
yubrew has joined #ruby
freerobby has quit [Quit: Leaving.]
mourest has joined #ruby
blaxter has joined #ruby
itadder has quit [Remote host closed the connection]
itadder has joined #ruby
rdark_ is now known as rdark
jprovazn has joined #ruby
Butcho has quit [Quit: Textual IRC Client: www.textualapp.com]
mark_locklear has joined #ruby
mjs2600 has joined #ruby
yacks has joined #ruby
prc has quit [Ping timeout: 240 seconds]
kaldrenon has joined #ruby
senayar has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
itadder has quit [Ping timeout: 240 seconds]
claymore has joined #ruby
Wolland has joined #ruby
tommyvcantdesign has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
aaronmcadam has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
linojon has joined #ruby
shvelo has quit [Ping timeout: 244 seconds]
dayepa has quit [Ping timeout: 264 seconds]
sdouglas has joined #ruby
momomomomo has joined #ruby
Wolland has left #ruby [#ruby]
yfeldblum has joined #ruby
JViz_ has joined #ruby
sailias has joined #ruby
stringoO has joined #ruby
hermanmunster has quit [Remote host closed the connection]
dayepa has joined #ruby
dayepa has quit [Client Quit]
hermanmunster has joined #ruby
sdouglas has quit [Ping timeout: 265 seconds]
m1lt0n_ has quit [Quit: Lost terminal]
wiku5_ has quit [Quit: WeeChat 0.4.1]
go|dfish has joined #ruby
shime has joined #ruby
wiku5_ has joined #ruby
thomasxie has quit [Remote host closed the connection]
thomasxie has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
fedesilv_ has joined #ruby
thomasxie has quit [Remote host closed the connection]
thomasxie has joined #ruby
hermanmunster has quit [Ping timeout: 252 seconds]
mansi has joined #ruby
davy_ has joined #ruby
freerobby has joined #ruby
sdouglas has joined #ruby
fedesilva has quit [Ping timeout: 240 seconds]
flagg0204 has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
mahlon has joined #ruby
zeeraw has joined #ruby
Mongey has quit [Quit: Mongey]
flagg0204 has joined #ruby
davy_ has quit [Ping timeout: 264 seconds]
mjs2600 has quit [Remote host closed the connection]
jsilver_ has quit [Read error: Connection reset by peer]
jsilver has joined #ruby
jeregrine has joined #ruby
meatherl_ has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 240 seconds]
<phansch> any idea why this is not working: https://gist.github.com/phansch/277a68ec59be882e99d4
<phansch> it fails with fails with wrong number of arguments (2 for 1) but it should work, right?
mary5030 has joined #ruby
<phansch> oh, nvm
dweeb has quit [Quit: Textual IRC Client: www.textualapp.com]
coder_neo has joined #ruby
<phansch> forgot to convert the lamda to a block when calling #new
charlies_ has quit [Quit: Textual IRC Client: www.textualapp.com]
mary5030_ has joined #ruby
MattStra_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
makara has quit [Read error: Operation timed out]
crystal77 has joined #ruby
lolmaus_ has quit [Quit: No Ping reply in 180 seconds.]
lolmaus has joined #ruby
Hanmac has joined #ruby
webgen has joined #ruby
rmorello has joined #ruby
relaxer has joined #ruby
toastynerd has joined #ruby
mlpinit has joined #ruby
duggiefresh has joined #ruby
phantasm66 has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
grvgr has joined #ruby
jamto11 has joined #ruby
mjs2600 has joined #ruby
freezey has joined #ruby
jackneill has joined #ruby
thomasxie has quit [Remote host closed the connection]
thomasxie has joined #ruby
fedesilv_ has quit [Remote host closed the connection]
tjr9898_ has joined #ruby
niftyn8 has quit [Ping timeout: 264 seconds]
<gaussblurinc> does anybody know how to solve this issue with unqouting? http://pastebin.com/ZS89Uk4q
jamto11 has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
grvgr has quit [Quit: grvgr]
slowcon has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
timonv has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
tjr9898__ has joined #ruby
tjr9898 has quit [Ping timeout: 265 seconds]
jamto11 has joined #ruby
lw has joined #ruby
Mongey has joined #ruby
ndrei_ has quit [Ping timeout: 264 seconds]
coder_neo has quit [Quit: This computer has gone to sleep]
relaxer has quit [Ping timeout: 240 seconds]
tgkokk has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sigurding has quit [Quit: sigurding]
xcv has joined #ruby
browndawg has joined #ruby
sambao21 has joined #ruby
antonishen has quit []
antonishen has joined #ruby
crystal77 has joined #ruby
workmad3 has quit [Quit: Reconnecting]
workmad3 has joined #ruby
jglover has joined #ruby
dtcrshr has joined #ruby
enebo has joined #ruby
mary5030_ has quit [Remote host closed the connection]
marcgg_ has joined #ruby
joelroa has joined #ruby
mary5030 has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi_ has joined #ruby
tonni has quit [Remote host closed the connection]
dblessing has joined #ruby
dseitz has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
yubrew has joined #ruby
mansi_ has quit [Read error: Connection reset by peer]
mansi has joined #ruby
marcgg has quit [Ping timeout: 264 seconds]
freerobby has quit [Quit: Leaving.]
joelroa has quit [Ping timeout: 265 seconds]
kevind has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
phantomtiger has joined #ruby
yubrew has quit [Ping timeout: 265 seconds]
boycey has quit [Quit: boycey]
marcgg has joined #ruby
zipper has joined #ruby
<zipper> Hey guys.
shime has quit [Ping timeout: 264 seconds]
<jglover> yo
fridim__ has joined #ruby
<zipper> How can I fix the following error ` /usr/lib/ruby/site_ruby/2.1.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'liquid' (~> 2.5.5) - did find: [liquid-2.6.1] (Gem::LoadError) '
<jhass> zipper: install liquid < 2.6
mansi has quit [Read error: Connection reset by peer]
<jhass> ~> 2.5.5 means >= 2.5.5 && < 2.6
<zipper> jhass: gem instal liquid 2.5.5 ?
mansi has joined #ruby
<zipper> How will I handle the conflict in versions?
<jhass> I think gem install liquid -v ~> 2.5.5 works nowadays
<jhass> normally you'd use bundler
marcgg_ has quit [Ping timeout: 240 seconds]
<jglover> Hm. Do you guys think there is any reason not to use two different database softwares in a single project?
<jglover> I haven't had any issues at all, but maybe it's because I'm naive
zz_jrhorn424 is now known as jrhorn424
dik_dak has joined #ruby
tedstriker has joined #ruby
ndrei has joined #ruby
itadder has joined #ruby
andrewlio has joined #ruby
marcgg_ has joined #ruby
<apeiros> jglover: it may introduce some headaches. like you can't join two tables from two different databases (easily)
crystal77 has quit [Quit: Computer has gone to sleep.]
rudisimo has joined #ruby
nerium has quit [Quit: nerium]
<jglover> apeiros: the information in them is completely independent. I have a user table in mysql that contains passwords, email, name, etc and then a table in MongoDB for an API
griffindy has quit [Quit: Computer has gone to sleep.]
bluntman is now known as choomalot
marcgg has quit [Ping timeout: 240 seconds]
momomomomo has quit [Quit: momomomomo]
itadder has quit [Ping timeout: 264 seconds]
tonni has joined #ruby
banister has joined #ruby
timonv has joined #ruby
yeticry has quit [Ping timeout: 252 seconds]
aagdbl has quit [Quit: Connection closed for inactivity]
tonni has quit [Client Quit]
shime has joined #ruby
zachallett has joined #ruby
a-priori has joined #ruby
MattStratton has joined #ruby
Bira has quit [Remote host closed the connection]
clamstar has quit [Quit: ZNC - http://znc.in]
morenoh149 has joined #ruby
<shevy> create a new table with all that information!
Ch4rAss has quit [Quit: "Connection reset by beer"]
yfeldblum has joined #ruby
Bira has joined #ruby
<jglover> shevy: I'm using mongo for it's speed. It counts when some of this data is like 50,000 rows
tgkokk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sparrovv has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
codabrink has joined #ruby
xcv has quit [Remote host closed the connection]
tjr9898_ has quit [Remote host closed the connection]
fedesilva has joined #ruby
xcv has joined #ruby
sparrovv has joined #ruby
grvgr has joined #ruby
guilleiguaran has joined #ruby
ffranz has joined #ruby
Guest551 has quit [Quit: Leaving]
yasushi has joined #ruby
morenoh149 has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
banister_ has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
cocotton has joined #ruby
nhhagen has joined #ruby
sigurding has joined #ruby
bean has joined #ruby
banister has quit [Ping timeout: 265 seconds]
mary5030 has quit [Remote host closed the connection]
davy_ has joined #ruby
twd_ has joined #ruby
<twd_> hi does anyone here
<toretore> yes
duggiefresh has quit [Remote host closed the connection]
<twd_> nice to see you guys here
lxsameer has quit [Quit: Leaving]
deadlock_ has joined #ruby
<zipper> Ok when I add ` gem 'listen' '~> 1.3' ' to my gemfile and run bundle install I get the error: ` Could not find gem 'listen~> 1.3 (>= 0) ruby' in the gems available on this machine. '
momomomomo has joined #ruby
freezey has quit [Remote host closed the connection]
<twd_> what is irc
<zipper> Shouldn't bundle install install the gems in Gemfile?
duggiefresh has joined #ruby
<zipper> and not look for them in the machine?
<zipper> So I fail to understand: ` Could not find gem 'listen~> 1.3 (>= 0) ruby' in the gems available on this machine. '
<toretore> u miss ,
Guedes0 has quit [Quit: Saindo]
adamholt_ is now known as adamholt
Nirgali42 has joined #ruby
tonni has joined #ruby
<toretore> use the , man
Guedes has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
<shevy> twd_ we exchange information on IRC; you will learn ruby
Guedes has left #ruby [#ruby]
<zipper> toretore: What?
<phansch> zipper: gem 'listen', '~> 1.3'
Findegil has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> zipper a , between two arguments
Kruppe has quit [Quit: ZNC - http://znc.in]
davy_ has quit [Ping timeout: 240 seconds]
yoshokatana has joined #ruby
julian` has joined #ruby
jlast has joined #ruby
<zipper> Oh man what a dumb error
aganov has quit [Remote host closed the connection]
<zipper> Thank you.
Kruppe has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
jds has joined #ruby
x77686d has joined #ruby
ndrei has joined #ruby
xcv_ has joined #ruby
vlad_starkov has joined #ruby
Xeago has joined #ruby
shaileshg has quit [Quit: Connection closed for inactivity]
sigurding has quit [Quit: sigurding]
xcv has quit [Read error: Connection reset by peer]
anarang has joined #ruby
dseitz has joined #ruby
meatherly has joined #ruby
freerobby has joined #ruby
BaconOverflow___ is now known as BaconOverflow
<olivier_bK> how i can remove T00 .........
freezey has joined #ruby
larissa has joined #ruby
freezey has quit [Remote host closed the connection]
yubrew has joined #ruby
freezey has joined #ruby
marcgg_ has quit [Read error: Connection reset by peer]
ocher has quit [Ping timeout: 264 seconds]
sigurding has joined #ruby
evenix has joined #ruby
ocher has joined #ruby
nowthatsamatt has joined #ruby
marcgg has joined #ruby
mary5030 has joined #ruby
relaxer has joined #ruby
<toretore> olivier_bK: it's a DateTime, you can do whatever you want
coder_neo has joined #ruby
tjr9898 has joined #ruby
tjr9898_ has joined #ruby
<gaussblurinc> how to add documentation to script? I add 'optparse' and want to call documentation if parameter -h passed
tjr9898__ has quit [Ping timeout: 240 seconds]
thomasxie has quit [Ping timeout: 244 seconds]
visof_ has quit [Ping timeout: 240 seconds]
vim_shim has joined #ruby
<toretore> opts.on("-h", "--help", "Display this help screen"){ puts opts; exit }
sdouglas has quit [Remote host closed the connection]
jobewan has joined #ruby
sdouglas has joined #ruby
<gaussblurinc> toretore: how about more complex documentation?
andy__ has joined #ruby
<toretore> that's a whole different issue
jonathanwallace has quit [Ping timeout: 244 seconds]
nateberkopec has quit [Quit: Leaving...]
<toretore> actually, just replace the `puts opts` with whatever you want
<shevy> ack
<shevy> optparse
<gaussblurinc> what is the best way to format documentation for ruby script?
<shevy> ARGV
<shevy> :)
<weeb1e> I am being tortured by ruby today
thomasxie has joined #ruby
<shevy> noooo weeb1e why
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy> why is it ruby and not your brain
<shevy> or your fingers
<shevy> or your boss
<weeb1e> Any ideas how I can trace back some lines printed
<shevy> well there is caller()
<weeb1e> SOMETHING is printing exceptions out
<shevy> and the super useless trace_var_func or ... whatever name it was
<weeb1e> It's not catching them completely, but it doesn't seem to raise them entirely either
sandelius has joined #ruby
<weeb1e> This is all so damn confusing
kukyakya_ has joined #ruby
<weeb1e> How is that going to help me shevy
kennym1 has quit [Quit: Leaving.]
Xeago has quit [Read error: Connection reset by peer]
<weeb1e> You mean if I try monkeypatch Kernel#print()
<weeb1e> or something
<shevy> weeb1e caller? you can see what calls what when
<weeb1e> shevy: It's printing to console
<gaussblurinc> does ruby have built-in documentation format in the same file where script stored?
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
sdouglas has quit [Ping timeout: 244 seconds]
<shevy> yeah, I use ruby all the time on console
rm_ has joined #ruby
<weeb1e> shevy: From the start of my application, I get a bunch of exceptions spammed to console constantly by 2 gem specs
<weeb1e> Then that same thing catches all sorts of other exceptions
<shevy> pretty nasty
<weeb1e> Yet I have no idea what is doing it, it sure isn't my code
jcs222 has quit [Quit: leaving]
<weeb1e> I'm at the point where I'm doing a find all for "Exception `" in my gems directory
visof has joined #ruby
Guest87187 is now known as bodie_
<weeb1e> Has anyone ever seen exceptions being printed by something in the following format: Exception `RuntimeError' at ./test.rb:195 - some exception!
kennym1 has joined #ruby
<weeb1e> Single line exception print outs, formatted like that
<shevy> wuest I blame this all on you now! -> http://oi60.tinypic.com/ouxeux.jpg
jonathanwallace has joined #ruby
<shevy> weeb1e you could perhaps try to grep through your gems directory
Nyyx has quit [Ping timeout: 252 seconds]
<shevy> to see which gem does output both "at" and "Exception" as words
interactionjaxsn has joined #ruby
<shevy> and perhaps "some exception"
speakingcode has quit [Ping timeout: 244 seconds]
<weeb1e> My IDE is indexing the entire gem directory
<shevy> man
<weeb1e> No you misunderstand, that is not the exception
<shevy> you use layer on layer on layer
shaunbaker has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
<weeb1e> That is my own exception I'm raising
<shevy> ok, how can it happen that you do not know which gem is doing that?
<weeb1e> But the formatting is how it is printing out
<shevy> ?!
<shevy> it sure is not default ruby
<weeb1e> I've never seen such a thing before, I use these gems on another machine just fine
<weeb1e> I'm going to start stripping down my app now
<weeb1e> Until it goes away, and slowly home in on what is causing it
rippa has joined #ruby
dtcrshr has quit [Remote host closed the connection]
thomasxie has quit [Quit: Leaving.]
<shevy> some gem that must reformat exceptions like that
tjr9898 has quit [Ping timeout: 265 seconds]
<weeb1e> It's not reformatting them shevy
browndawg has quit [Quit: Leaving.]
<weeb1e> I'm not even entirely sure what it is doing
<weeb1e> It's printing them, but not catching my manually raised one
<weeb1e> Yet, it must be catching them, since nothing ever breaks
clamstar has joined #ruby
<weeb1e> I cannot make sense of it
derek_c has joined #ruby
tjr9898 has joined #ruby
<shevy> what do you mean it is not reformatting
sdouglas has joined #ruby
shaunbaker has joined #ruby
<shevy> who is displaying the string: " Exception `RuntimeError' at ./test.rb:195 - some exception!"
joelroa has joined #ruby
kpshek has joined #ruby
shredding has quit [Read error: Connection reset by peer]
FL1SK has joined #ruby
<weeb1e> shevy: $ ruby ./test.rb
<weeb1e> Exception `RuntimeError' at ./test.rb:194 - some exception!
<weeb1e> ./test.rb:194:in `block in <main>': some exception! (RuntimeError)
<toretore> weeb1e: what gems are you using?
<weeb1e> It prints it in addition to the normal exception handler, which I can still rescue from
tagrudev has quit [Remote host closed the connection]
derek_c has quit [Client Quit]
derek_c has joined #ruby
derek_c has quit [Read error: Connection reset by peer]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> what is the content of that test.rb file?
koell has joined #ruby
derek_c has joined #ruby
mengu has quit []
<weeb1e> toretore: For this part, mainly activesupport, mongo_mapper, eventmachine, em-synchrony,
<toretore> eventmachine is the gem you're looking for
<shevy> :)
<weeb1e> No.
<weeb1e> toretore: I have built EM based applications for more years than I can count
<weeb1e> Yet I have never seen such an exception handler print out
<toretore> exceptions inside the em reactor are caught and printed to stdout by default
<weeb1e> No they are not...
<toretore> at least some of them
shredding has joined #ruby
jglover has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<weeb1e> None of them are by default
duggiefresh has quit [Read error: Connection reset by peer]
razibog has quit [Quit: Leaving.]
<weeb1e> toretore: I have personally build over 100 EM-based applications from scratch
duggiefresh has joined #ruby
freezey has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
tylersmith has joined #ruby
<toretore> are you using defer?
<toretore> i have seen em do this many times
meatherly has joined #ruby
<toretore> but i'm not sure under which circumstances exactly it does this
<weeb1e> No, this is a completely single threaded application
joelroa has quit [Ping timeout: 265 seconds]
<yoshokatana> hey, has anyone here used octokit.rb? I'm trying to do api calls to update github issues, but I'm not sure how to translate the api requests into octokit (and the docs aren't very forthcoming with examples)
momomomomo has quit [Quit: momomomomo]
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
<wuest> I was pinged
<wuest> shevy: glad you're having fun! :D
<shevy> hehe
fedesilva has quit [Remote host closed the connection]
griffindy has joined #ruby
lw has quit [Quit: s]
lw has joined #ruby
axl_ has joined #ruby
nateberkopec has joined #ruby
<weeb1e> Ah damn, figured it out
lw has quit [Client Quit]
meatherly has quit [Ping timeout: 240 seconds]
<weeb1e> It's because I had $DEBUG = true, which I pretty much never have enabled in any of my applications
<shevy> !!!
<weeb1e> FYI toretore, not related to EM
<weeb1e> It seems to be a ruby feature
<weeb1e> Enabling $DEBUG has the same effect when outside of the event loop
momomomomo has joined #ruby
<weeb1e> I'm glad that is over, that was pure torture
<toretore> ah
tylersmith has quit [Ping timeout: 265 seconds]
<toretore> but i'm also positive that em at least used to catch some exceptions and just print them
<toretore> though i think that's changed
<toretore> probably related to EM.defer
xerox357 has joined #ruby
<weeb1e> Now I can get back to debugging some mind-breaking fiber race condition issues
<weeb1e> toretore: If you use EM.defer, you are doing something wrong
<weeb1e> The whole point of using EventMachine is so that you do not have to defer to another thread
<toretore> why is that? sometimes you have to use threads to not block the main thread
<toretore> not everything is async
<weeb1e> Give me an example use case where you would do that toretore?
redlines has joined #ruby
meatherly has joined #ruby
<weeb1e> You should _NOT_ be using any blocking code in an EM application
<weeb1e> At all
<weeb1e> If you have to do something seriously heavy, like a massive IO operation on the filesystem, deferring would be acceptable
twd_ has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
<toretore> one example: i had to use IO.popen because i couldn't send EOF on EM's version
<weeb1e> toretore: On windows?
<toretore> no, linux/osx
ebwise has joined #ruby
geopet has joined #ruby
<weeb1e> toretore: Do you want a better solution?
<weeb1e> I have implemented countless things for EM over the years, including that
<toretore> i could've probably got the file handler and use that, but tbh i can't be bothered
<toretore> ok, what's the better solution
<toretore> ?
webgen has quit [Ping timeout: 269 seconds]
<weeb1e> Let me check my code, it's been a while
<toretore> saying "never use threads in em" like it's some sort of hard rule isn't very helpful
<toretore> sometimes you gotta use threads
<a-priori> not everything fits in EM's world view
thomas_dick has quit [Remote host closed the connection]
thomas_d has joined #ruby
akitada has joined #ruby
no0code has joined #ruby
<weeb1e> It's actually very helpful, to avoid incredibly bad habbits toretore
<toretore> no, that's dogma. not advice
<weeb1e> It's counter-productive to use threads in an EM application for anything IO related
<weeb1e> No really, you have an async reactor at your disposal
<weeb1e> I for one make the most out of it
<toretore> as long as you have an evented alternative, but not when you don't
<weeb1e> Ok toretore, it's a bit of a mouthful but I can pastebin you my implementation for spawning
<toretore> ok
<weeb1e> One thing though, you will need to make slightly changes to it
<weeb1e> It is designed as a module for my modular platform that almost all my applications are based on
<weeb1e> So you will need to replace the :loaded event, etc
<weeb1e> But all the hard work is done, and it is far better than anything else I have seen for spawning stuff from ruby
<weeb1e> I implemented it primarily for a process_manager daemon that runs on my boxes are root and exposes an IPC to my other applications for spawning processes as specific users with specific privs
<weeb1e> As well as monitoring them, restarting them, and other stuff
mikepack has joined #ruby
<weeb1e> But you can use it standalone
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
yoshokatana has left #ruby [#ruby]
sambao21 has joined #ruby
Xeago has quit [Remote host closed the connection]
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
xaq has joined #ruby
tonni has quit [Read error: Connection reset by peer]
tylershipe has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<weeb1e> toretore: Ok just had to go through and check for dependencies, I think lib/callbacks.rb is the only other thing you need
Xeago has joined #ruby
geggam has joined #ruby
<weeb1e> You'll need to replace the loaded callback, either define a log method or replace it right puts, and that's about it
The_Doctor is now known as Adran
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
niftyn8 has joined #ruby
x77686d has quit [Quit: x77686d]
DouweM has joined #ruby
joonty has quit [Ping timeout: 252 seconds]
momomomomo has quit [Quit: momomomomo]
snath has quit [Read error: Operation timed out]
davy_ has joined #ruby
joonty has joined #ruby
<toretore> right, so that's why i used defer, because i didn't want to write all that just to use popen ;)
starfox21 has joined #ruby
alexju has joined #ruby
rayners has joined #ruby
<weeb1e> Oh damn, there's a bit more you need too toretore :P
<weeb1e> I forgot signal catching is abstracted by my framework too
whowantstolivef2 has joined #ruby
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<weeb1e> toretore: I have implemented hundreds of protocols and other useful things for EM over the years
whowantstolivef3 has quit [Ping timeout: 252 seconds]
<weeb1e> Anything to not have to defer.
<toretore> you still haven't said exactly why using defer is so bad
geggam has quit [Ping timeout: 244 seconds]
momomomomo has joined #ruby
ehc has joined #ruby
<weeb1e> Because the overhead of threading and context switching is completely unnecessary
pontiki has joined #ruby
lmickh has joined #ruby
<weeb1e> The whole point of using EM is to use non-blocking code
axl_ has quit [Ping timeout: 240 seconds]
<toretore> so what if i want to use multiple cores? ;)
davy_ has quit [Ping timeout: 265 seconds]
Vovko has joined #ruby
msmith_ has joined #ruby
<weeb1e> toretore: Then it would be better to spin up an instance of your application as a new process per core
apeiros has quit [Remote host closed the connection]
<toretore> that would also imply a lot of overhead
meatherly has quit [Remote host closed the connection]
havenwood has joined #ruby
apeiros has joined #ruby
<toretore> but my real point is that defer is a completely legitimate way to handle something that blocks the thread instead of writing a completely new piece of em-friendly code
<weeb1e> toretore: If you do want to use that code, just define a signal_queue array on the class level and replace "signal(:CLD) do end" with: Signal.trap(sig) do signal_queue << sig end
<weeb1e> end
<weeb1e> end--
tonni has joined #ruby
<toretore> not that your code isn't interesting, but for me to write that at the point i was making the decision would be complete overkill
wiku5_ has quit [Ping timeout: 240 seconds]
<weeb1e> toretore: Deferring for that reason is counter-productive and unnecessary
BackEndCoder has quit [Read error: Connection reset by peer]
<weeb1e> It's a pity the EM maintainers don't care more about improving the core
<weeb1e> So that stuff like this "just works"
BackEndCoder has joined #ruby
<toretore> not as unnecessary as spending god knows how much time writing em-friendly code first is
<weeb1e> There is often a ready made implementation for what you need, in this case, probably not
lw has joined #ruby
<toretore> EM.defer{ IO.popen(cmd){|io| } } is not going to destroy my app
<weeb1e> But my main point was, it's a bad habbit to allow yourself to defer
jerius has joined #ruby
<toretore> is it a bad habit to use threads?
freezey has joined #ruby
<weeb1e> If you're willing to defer for a popen, you'll defer for plenty unnecessary stuff
jamto11 has quit []
<weeb1e> In an EM-based application, yes
<toretore> you can't know that
derek_c has quit [Ping timeout: 240 seconds]
<weeb1e> For IO in general, yes.
<weeb1e> Using threading for anything IO-related is a complete waste
redlines has quit [Ping timeout: 240 seconds]
<toretore> you have drank too much of the em koolaid my friend
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
banek has joined #ruby
<weeb1e> EM is great for ruby, but it that is just for ruby
apeiros has quit [Ping timeout: 240 seconds]
sdouglas has quit [Remote host closed the connection]
gaussblurinc has quit [Quit: Leaving.]
<weeb1e> I have been working with asynchronous reactor based applications since just after I started learning to code
tonni has quit [Remote host closed the connection]
sdouglas has joined #ruby
bal has quit [Quit: bal]
<weeb1e> Pretty much all game servers are single threaded, asynchronous reactor based applications
<toretore> which is another way of saying you're heavily biased towards them
<weeb1e> For good reason
Vovko has quit [Remote host closed the connection]
platzhirsch has quit [Quit: Leaving.]
<weeb1e> Threading causes unnecessary overhead, complexity and general headaches
platzhirsch has joined #ruby
<weeb1e> The only reason to use it for IO stuff is if one is lazy
zachallett has quit [Remote host closed the connection]
joonty has quit [Ping timeout: 244 seconds]
<toretore> async/concurrency/parallellism is a complex subject with lots of problems and solutions, and to say that one way is superior is just foolish
jrhe has quit [Quit: Connection closed for inactivity]
Thanatermesis has joined #ruby
JViz_ has quit [Ping timeout: 265 seconds]
<lilltiger> But isent I/O in Ruby blocking, so threading it makes no sense at all..
<weeb1e> toretore: I specifically said for IO-related stuff
<weeb1e> There simply is no case where threading is better at doing IO
<a-priori> I wouldn't go that far.
<weeb1e> In ruby, even more so, like lilltiger mentioned
einarj has quit [Remote host closed the connection]
<toretore> so? it doesn't have to be "better", it just has to work for what i'm doing
<toretore> i'm not going to spend days writing code just to avoid having to use defer
<toretore> actually, i would, but it shouldn't be expected
<a-priori> evented concurrency is good for situations where the app spends most of its time waiting for stuff to happen
sdouglas has quit [Ping timeout: 265 seconds]
<weeb1e> Yeah well, it seems most coders take that lazy approach, and I find that really sad
<toretore> threads have been and will for the foreseeable future be the most basic concurrency primitive
<weeb1e> This is why the world runs on PHP
<toretore> you are being silly
centrx has joined #ruby
<weeb1e> a-priori: Ie. IO-heavy applications
<weeb1e> Which is what I have been saying all along
<a-priori> something like a thread pool model is good for compute-heavy applications
madb055 has quit [Remote host closed the connection]
grvgr has quit [Quit: grvgr]
<weeb1e> I never once said threading shouldn't be used for compute-heavy code, but that is not what we are talking about
madb055 has joined #ruby
<weeb1e> toretore: I can't help that I'm more anal about such things than most people
<toretore> you don't have to convince anyone that pre-emptive scheduling isn't ideal for io
xaq has quit [Remote host closed the connection]
<weeb1e> I've written 1 blocking ruby application in the past 6 years
senayar_ has joined #ruby
<toretore> you do have to convince people who aren't writing their own programming language that they should ditch threads and do 5 times the amount of work just because "it's slightly more efficient"
<weeb1e> And it's a unicorn web front-end which is only 1/3rd of 3 applications, two of which are EM-based which make up a single website
<a-priori> just rebuking your statement "There simply is no case where threading is better at doing IO" -- if an app does a bit of IO followed by a lot of computation, then a thread pool would make more sense
crazysim has quit [Max SendQ exceeded]
<a-priori> weeb1e
crazysim has joined #ruby
<lilltiger> weeb1e: Just out of couriosity, why do you use Ruby when you are concerned about things like that?
<weeb1e> a-priori: If it was doing it once off and then cutting the IO connection, I'd accept that
<weeb1e> But if not I'd use a EM core which defers the compute work to worker threads
ocher has quit [Read error: Connection reset by peer]
Emmanuel_Chanel has quit [Ping timeout: 264 seconds]
ziyadb_ has quit [Quit: Connection closed for inactivity]
<a-priori> i.e, using EM.defer
<weeb1e> lilltiger: Because ruby is the best language I've ever seen
diegoviola has joined #ruby
MarcWeber has joined #ruby
<weeb1e> And I have been through a ton of languages
roolo has joined #ruby
ocher has joined #ruby
axl_ has joined #ruby
no0code has quit [Remote host closed the connection]
ziyadb_ has joined #ruby
platzhirsch has quit [Ping timeout: 240 seconds]
<weeb1e> I still have to use other languages for various domain specific things, C++ for extensions and a few small applications, a variety of scripting languages and some other less known ones
<MarcWeber> Is there an alternative to clamsy (which turns .odt templates into pdf files)? clamsy's gem file has'nt been updated for a long time and depends on an old rghost version ..
<weeb1e> But nothing else comes close to ruby
<lilltiger> weeb1e: well, depends on what one would define as best then, as always blocking for I/O etc. isent a good thing in a language :)
<weeb1e> I can't wait until mruby is one day mature and optimized enough to be used for just about anything
senayar has quit [Ping timeout: 264 seconds]
no0code has joined #ruby
terrellt has joined #ruby
<weeb1e> lilltiger: What do you mean exactly?
whowantstolivef1 has joined #ruby
<weeb1e> I define the best language as one with good enough performance, and great useability in terms of features which improve your development experience
sdouglas has joined #ruby
<weeb1e> Ruby has so many small useful features, which I am always missing when I use other languages
ocher has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
mgberlin has joined #ruby
<toretore> no language is "best", you can do most things equally well in most languages
<toretore> just like no concurrency tool is "best"
<lilltiger> weeb1e: Nothing realy, I was just wondering, i'm a C++ coder mainly, and it often seems to me that people does the most extreame things to work around shortcommings in thire favorite language, and still claims it to be the best, while I have never found a language that can be called it self best for evry task
whowantstolivef2 has quit [Ping timeout: 264 seconds]
alexherbo2 has quit [Ping timeout: 264 seconds]
<wmoxam> best is in the eye of the beholder
<toretore> and i am the beholder
sdouglas has quit [Remote host closed the connection]
<wmoxam> Behold! It's the beholder!!
ocher has joined #ruby
<weeb1e> lilltiger: Sure, no high level language is the best for every use case, but ruby is the best I have used for the vast majority of my use cases
mgberlin has quit [Remote host closed the connection]
<toretore> you can't behold the beholder, because then you are the beholder
<toretore> it's a paradox
ff22310 has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<weeb1e> I build large IO-heavy platforms that make tons of outgoing connections and accept incoming connections for a variety of services
ndrei has quit [Ping timeout: 240 seconds]
Emmanuel_Chanel has joined #ruby
<toretore> so you should be using node
<weeb1e> And that is what I use ruby for, though I will use it for other things when I can get away with it
<wmoxam> a paradox wrapped in an enigma
<weeb1e> toretore: No, I really should not
zeeraw has joined #ruby
<lilltiger> toretore: of corse you can behold the beholder, just watch out for it's rays
<weeb1e> The slightly performance increase Node has over ruby 1.9.3/2.0 is not worth the loss of syntax
<wmoxam> weeb1e: given that is a primary use case for node, maybe you should :p
<weeb1e> I would rather have slightly more overhead and be able to make use of all of ruby's awesome features, than be limited to CoffeeScript, which I already am forced to use for all web front ends
ocher has quit [Read error: Connection reset by peer]
foredoomed has quit []
<a-priori> just because it's the primary use case doesn't mean it's better at it
<toretore> OH, you mean like the slight performance increase a reactor has over threads isn't worth the extra work?
<wmoxam> weeb1e: are you using eventmachine?
<shevy> hehe
Zai00 has left #ruby [#ruby]
<weeb1e> toretore: No, threads are just plain bad.
<weeb1e> :)
derek_c has joined #ruby
<toretore> said the pot to the kettle
<shevy> everyone asks weeb1e whether he is using eventmachine
<weeb1e> wmoxam: Pretty much all my applications are EM-based
<toretore> i heard celluloid is much better than eventmachine
<toretore> and node + celluloid is the way to go
joonty has joined #ruby
<wmoxam> heh
<wmoxam> I heard that Rust is teh bomb
shime has quit [Ping timeout: 240 seconds]
<weeb1e> toretore: You have run with that, why not throw some PHP in there while you're at it :P
<weeb1e> *fun with that
<toretore> but it's got actors just like erlang
<toretore> it's gotta be good
ocher has joined #ruby
<weeb1e> wmoxam: I heard good things about it, but I would not be willing to use it instead of ruby syntax
itadder has joined #ruby
<toretore> the celluloid guys say actors are the answer to all my concurrency problems; i don't know who to trust
jprovazn has quit [Quit: Leaving]
<wmoxam> Never trust an actor!
<toretore> and rich hickey says it's agents
<toretore> i so confuse
<wmoxam> toretore: the NSA has proven to never trust agents either!
griffindy has quit [Read error: Connection reset by peer]
<weeb1e> Just use EM
interactionjaxsn has quit [Remote host closed the connection]
<weeb1e> I've recently started using fibers again
ocher has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
griffindy has joined #ruby
dik_dak has quit [Ping timeout: 265 seconds]
<toretore> don't use fibers, they're just inefficient
<weeb1e> Primarily for database queries, so that callback spagetti does not get ridiculous
<toretore> goroutines are much more lightweight
xcv_ has quit [Remote host closed the connection]
<weeb1e> Fibers are not very heavy, but I do pool them
crystal77 has joined #ruby
<toretore> AND they can be parallellized
<weeb1e> I have a dynamic fiber pool which I use for almost everything
joelroa has joined #ruby
<weeb1e> (in applications that are fibered at least)
<toretore> how do you do that, to be serious for a change?
jjbohn has joined #ruby
<toretore> the fiber pool
<havenwood> toretore: They aren't lighter weight than fibers.
<toretore> sure they are
<weeb1e> toretore: Want me to pastebin it for you?
<havenwood> toretore: They start as heavy as a fiber afaik.
tylersmith has joined #ruby
<havenwood> toretore: 4k stack size.
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<toretore> fibers have a set stack size, goroutines start out very small and grow as needed
apeiros has joined #ruby
<toretore> ruby 2 fibers have much larger stack sizes by default afaik
<havenwood> toretore: goroutines start out as large as fibers then grow, that isn't lighter weight. :P
<weeb1e> Fibers are pretty light weight, but I did have some issues with processing huge amounts of incoming UDP packets with them before I switched to using a pool
boycey has joined #ruby
<toretore> weeb1e: yes please
madb055 has quit [Remote host closed the connection]
itadder has quit [Ping timeout: 240 seconds]
xerox357_ has joined #ruby
madb055 has joined #ruby
<toretore> try running 100k fibers in ruby
ocher has joined #ruby
<toretore> then 100k goroutines
<havenwood> toretore: okay, did it
ahawkins has quit [Quit: leaving]
<havenwood> toretore: was i supposed to notice somthing?
<toretore> without changing the fiber stack size
_HolyCow1 is now known as _HolyCow
<havenwood> toretore: the default stack size is 4k just like goroutines
dik_dak has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<weeb1e> toretore: http://pastebin.com/PVnh15cH
<slowcon> hey guys
nisstyre has quit [Quit: WeeChat 0.4.3]
<weeb1e> That is a simple dynamic fiber pool, I have it nested in the EventMachine module
<a-priori> if you're worried about stack size, 100k is not that many... 100k*4KB is only 0.5GB
<weeb1e> DynamicFiberPool.dispatch { ... }
joelroa has quit [Ping timeout: 252 seconds]
sk87 has joined #ruby
mark_locklear has quit [Ping timeout: 240 seconds]
geggam has joined #ruby
<toretore> >> RubyVM::DEFAULT_PARAMS
<eval-in> toretore => {:thread_vm_stack_size=>524288, :thread_machine_stack_size=>524288, :fiber_vm_stack_size=>65536, :fiber_machine_stack_size=>262144} (https://eval.in/113536)
xerox357 has quit [Ping timeout: 244 seconds]
<tobiasvl> ugh parsing... anyone here who's used whittle?
<apeiros> havenwood: due to the netsplit before you left I didn't see a message from you and you probably didn't see some from me…
<weeb1e> The Fiber.current[:whois] is unrelated, another part of my platforms uses that to track fibers
<havenwood> apeiros: oops!
lolmaus has quit [Remote host closed the connection]
lolmaus has joined #ruby
<apeiros> 09:01 apeiros: havenwood: in what version was .one? introduced?
<apeiros> 09:02 apeiros: havenwood: if you're interested in building such a bloomfilter, we could work on one
<apeiros> 09:02 apeiros: but doing it alone, I'm not interested :)
xerox357_ has quit [Ping timeout: 240 seconds]
ocher has quit [Read error: Connection reset by peer]
<apeiros> so if you're interested, tell me ;-)
<toretore> on my machine i get {:thread_vm_stack_size=>1048576, :thread_machine_stack_size=>1048576, :fiber_vm_stack_size=>131072, :fiber_machine_stack_size=>524288}
zeeraw has joined #ruby
Nyyx has joined #ruby
<apeiros> and thanks @ "this is neat"
ocher has joined #ruby
sk87 has quit [Client Quit]
<toretore> weeb1e: thanks. i might try to work a fiber pool into this thing i'm working on
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
<toretore> not sure exactly how though
ebwise has quit [Ping timeout: 252 seconds]
razrunelord has joined #ruby
<weeb1e> No problem
* apeiros brb
<weeb1e> This chat has been fun, given me some procrastination time
<weeb1e> Guess I should get back to debugging my fiber troubles
<weeb1e> For some reason the connection to mongodb is getting broken seemingly randomly
io_syl has joined #ruby
yjmsf20 has joined #ruby
<yjmsf20> what's wrong with my code http://pastie.org/private/u3tsusgcabyumqeiwqyztw ?
<yjmsf20> trying some simple metaprogramming
no0code has quit [Remote host closed the connection]
<a-priori> if it makes you feel any better I'm dealing with a similar problem... on an in-process socket
<a-priori> :)
no0code has joined #ruby
rbartos has joined #ruby
<weeb1e> Well I monkeypatched the mongo driver to be fibered so that I can use all existing MongoMapper code as is, which worked fine in the application I originally implemented it for, but now trying to reuse the same code in a new application on another box is being troublesome
ocher has quit [Read error: Connection reset by peer]
mark_locklear has joined #ruby
ndrei has joined #ruby
lsmola has quit [Ping timeout: 244 seconds]
<toretore> is the mongo driver thread blocking by default?
ocher has joined #ruby
Xeago has quit [Remote host closed the connection]
GaryOak_ has joined #ruby
TMM has quit [Quit: Ex-Chat]
supersym has joined #ruby
<weeb1e> The one MongoMapper uses is
<toretore> if it's callback based you could just write a wrapper that uses the callbacks to yield and resume
<toretore> instead of monkey patching
io_syl has quit [Ping timeout: 244 seconds]
<weeb1e> Yeah that can't work without completely rewriting MongoMapper
AxonetBE has quit [Quit: AxonetBE]
<weeb1e> and if you have not already looked at that code base, you really don't want to
<weeb1e> I recall bad things
lolmaus has quit [Remote host closed the connection]
<toretore> oh, mongomapper
<weeb1e> Monkeypatching the blocking mongo driver allows using a blocking framework with it, but in a fibered application
<toretore> didn't see that part
<havenwood> apeiros: i'd for sure be interested in looking into bloom filters, i need to look more at tabledata gem too ;)
<havenwood> apeiros: #one? is in 1.8.7 at least, but I'm not sure when it was introduced
coder_neo has quit [Quit: Leaving]
poguez has joined #ruby
<havenwood> 1.8 is dead, long live 2.1!!
<havenwood> (rumors of 1.8's death may be exaggerated)
lolmaus has joined #ruby
<weeb1e> em-synchrony provides most helper classes you need for monkeypatching blocking code to be fibered
Celm has joined #ruby
<weeb1e> It's pretty useful when there is no better option
<havenwood> weeb1e: igrigorik touched it, it is gold
<havenwood> midas i tell you
<weeb1e> Hehe :)
<a-priori> :)
mary5030 has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
Waheedi has joined #ruby
end_guy has joined #ruby
apeiros has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
<razrunelord> yjmsf20: What is the purpose of the method signature self.instance?
Waheedi has quit [Client Quit]
lw has quit [Quit: s]
carneiro has joined #ruby
<kukyakya_> In Rakefile, how can I add a non-file task to the prerequisites of a rule?
snath has joined #ruby
Hanmac1 has joined #ruby
sivoais_ is now known as sivoais
sivoais has quit [Changing host]
sivoais has joined #ruby
<kukyakya_> I tried "rule '.o' => ['.cpp', :my_task]"
<kukyakya_> but it doesn't work
anarang has quit [Quit: Leaving]
<yjmsf20> razrunelord: To create a new instance of the class.
<boycey> Guys , anyone know what the line 'gemspec' in a Gemfile does ?
RaCx has joined #ruby
<kukyakya_> rake says "Don't know how to handle rule dependent: :FORCE"
anarang has joined #ruby
aspires has joined #ruby
<weeb1e> I think I actually need to take a break and look at this later again, I get the feeling I'm not going to make much progress
<weeb1e> Everything works fine, until it doesn't
zachallett has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
<weeb1e> It can work for anywhere up to 15 minutes or something, and then a query kills it due to a connection error
leonidlm has quit [Ping timeout: 265 seconds]
acrussell has joined #ruby
<boycey> Anyone ?
mikepack_ has joined #ruby
ocher has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
<havenwood> boycey: It contains all the info for the gem.
<razrunelord> yjmsf20: I think instance is used for the singleton pattern
bluenemo has quit [Remote host closed the connection]
JViz has joined #ruby
ocher has joined #ruby
<boycey> havenwood: so , if it's empty (ie. just 'gemspec' ) it does nothing , right ?
apeiros has quit [Ping timeout: 264 seconds]
<havenwood> boycey: RubyGems uses it to build the gem, know who the author is, what dependencies the gem has, etc.
bean has joined #ruby
<yjmsf20> razrunelord: Ok, replace the method signature with get.
derek_c has quit [Read error: Operation timed out]
b00stfr3ak has quit [Ping timeout: 244 seconds]
<yjmsf20> s/instance/get
larissa has quit [Ping timeout: 240 seconds]
<havenwood> boycey: the convention is to name the gemspec file `gem_name.gemspec`.
ocher has quit [Read error: Connection reset by peer]
thisirs has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
mgberlin has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
<a-priori> weeb1e: maybe run it through wireshark to see what's happening on the wire to kill the connection?
<jxport> Single Responsibility Principle: it breaks out responsibilities from a class into singly responsible classes. Doesn't this make it more complicated for end users, of the original functionality that got split out, though?
YamakasY has quit [Read error: Connection reset by peer]
<havenwood> a-priori: yeah, that is a good read
no0code has quit [Remote host closed the connection]
<boycey> a-priori: havenwood: alright thanks. i think i get it :D
<weeb1e> a-priori: Could be a bit tricky, there is a lot of other stuff also using mongo
yfeldblum has quit [Ping timeout: 241 seconds]
<toretore> jxport: complexity > bad code
<a-priori> on the same machine? if not then you can filter by the IP
YamakasY has joined #ruby
<havenwood> jxport: no, the principle can be maintained through refactoring that doesn't effect end user experience
<weeb1e> Yeah on the same machine
<havenwood> toretore: <3 simple
<weeb1e> There are a few other large, active ruby platforms that use the same database
<weeb1e> I'm just adding this small new one since the box is massive
<toretore> havenwood: simple, but not too simple
ocher has joined #ruby
<weeb1e> And also has great connectivity, which is needed for making thousands of UDP queries a minute
anarang is now known as annie
<toretore> how can you have a "connection error" if you're using udp? ;)
annie is now known as Guest45684
davy_ has joined #ruby
clamstar has quit [Quit: ZNC - http://znc.in]
ocher has quit [Read error: Connection reset by peer]
<a-priori> seems like a strange use for udp to me
jezz has joined #ruby
ebwise has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
Solnse has joined #ruby
<weeb1e> The mongodb connection is TCP
monkegjinni has joined #ruby
Guest45684 has quit [Quit: Leaving]
<a-priori> oh good ;)
anarang has joined #ruby
<toretore> well, you could just do the mongo stuff in a thread, that way you don't have to go around monkey patching it
<weeb1e> The application queries ~15k servers frequently and updates their stats in the mongo database
duggiefresh has quit [Remote host closed the connection]
jezz has quit [Client Quit]
<a-priori> really toretore, what do you think weeb1e is going to say to that :P
figgleberry has joined #ruby
<toretore> "yay threads"? :P
<weeb1e> I want to use the stats to graph uptime, user counts and latency data
duggiefresh has joined #ruby
ddelrio1986 has joined #ruby
<weeb1e> That is, if mongodb will let me
Hanmac1 has quit [Ping timeout: 252 seconds]
pabloh has quit [Ping timeout: 265 seconds]
<weeb1e> toretore: I don't think I actually need to answer that suggestion :P
<toretore> can't you funnel all the mongo stuff into one worker that serializes them?
<weeb1e> I'd sooner start spawning processes to make queries :P
ocher has joined #ruby
davy_ has quit [Ping timeout: 240 seconds]
<toretore> and by serialize i mean synchronize, run in serial
kpshek has quit []
ocher has quit [Read error: Connection reset by peer]
craigp has quit [Remote host closed the connection]
<a-priori> not real familiar with mongodb, but generally that sort of serialization is the DBMS's job
<a-priori> it'll do a much better job via transactions than you will
maletor has joined #ruby
albedoa has joined #ruby
ff22310 has quit [Ping timeout: 265 seconds]
yasushi has quit [Remote host closed the connection]
grvgr has joined #ruby
pfg has joined #ruby
<weeb1e> I implemented all this fibered mongo stuff for 2 other applications, which have no issues, so I really need to figure out what is causing this
kevind_ has joined #ruby
duggiefresh has quit [Ping timeout: 240 seconds]
<weeb1e> a-priori: What would you even need transactions for, in a single threaded reactor based application?
apeiros has joined #ruby
kpshek has joined #ruby
olivier_bK has quit [Ping timeout: 264 seconds]
<apeiros> huh? why on earth does my macbook randomly disconnect? :-S
<weeb1e> I had to disable transactions for the MySQL driver in another one of my applications because it was causing all kinds of race conditions
S0da has joined #ruby
pel_daniel has joined #ruby
<weeb1e> Since there are no other applications that use that MySQL db, that was the best option to solve that
<toretore> a-priori: what i mean is that you can have one or more workers who's only responsibility is to run queries against mongo, instead of having mongo connections everywhere
jprovazn has joined #ruby
<toretore> like a connection pool, but better
ocher has joined #ruby
grzywacz has quit [Ping timeout: 264 seconds]
YamakasY_ has joined #ruby
recurrence has joined #ruby
<a-priori> weeb1e: because you might have multiple queries in-flight at a time?
<weeb1e> toretore: You're far too used to threaded programming :P
kevind has quit [Ping timeout: 244 seconds]
ndrei has joined #ruby
kevind_ is now known as kevind
rbartos_ has joined #ruby
<weeb1e> a-priori: Multiple update queries on the same record?
<toretore> weeb1e: actually, i'm not used to threaded programming at all
<weeb1e> You'd have to be careful to avoid that I guess
<weeb1e> But so far I haven't had any issues, and it's been a good few months since I disabled transactions
visof has quit [Ping timeout: 240 seconds]
<toretore> sharing resources like connections and synchronizing isn't only useful with threads
ocher has quit [Read error: Connection reset by peer]
<weeb1e> It did solve hundreds of rare race conditions though
<a-priori> weeb1e: sure, why not? if two clients request data for the same record you have to synchronize it somehow
Shidash has joined #ruby
rbartos has quit [Ping timeout: 240 seconds]
<weeb1e> a-priori: Requesting data can't cause issues?
<weeb1e> How would transactions affecting querying data out of the db?
dagobah has quit [Quit: Leaving...]
<weeb1e> Reading is reading
IcyDragon has joined #ruby
<jxport> havenwood & toretore: sorry I disappeared. By "end user", I actually meant the person that's writing an interface to the functionality
nhhagen has quit [Ping timeout: 270 seconds]
IceDragon has quit [Disconnected by services]
IcyDragon is now known as IceDragon
pietr0 has joined #ruby
<toretore> jxport: long answer made short: it doesn't matter. code/design quality comes first
<jxport> what was before a "Report", has become ReportCLI, Report, ReportCSVWriter, ReportEmailer
YamakasY has quit [Ping timeout: 264 seconds]
YamakasY_ has quit [Read error: Operation timed out]
lw has joined #ruby
<toretore> well separated concerns then
<weeb1e> toretore: The mongo client includes a connection pool
<weeb1e> Which I share between all my fibers
Vovko has joined #ruby
RaCx_ has joined #ruby
<toretore> weeb1e: right, but it wouldn't have race conditions
<apeiros> havenwood: got a date/time when you'd have time for it? e.g. next saturday?
<a-priori> bad choice of words on 'request', I was referring to read consistency in the presence of a write query
<a-priori> weeb1e:
RaCx has quit [Ping timeout: 244 seconds]
<apeiros> I think the most difficult part of it is collecting the data…
RaCx_ is now known as RaCx
<havenwood> apeiros: sat sounds good
<havenwood> apeiros: brb on a call
<apeiros> you're in a european timezone?
<apeiros> kk
freezey has quit [Remote host closed the connection]
<weeb1e> a-priori: Ah right, yeah that makes sense, though I'm not sure how the database handles that
figgleberry has quit []
<weeb1e> I haven't had any issue reports
<weeb1e> So I assume reading is going just fine
<a-priori> there's a few ways, but one is MVCC
<jxport> toretore: I'm only playing Devil's advocate here. But now if I was to write a new interface alongside ReportCLI, e.g. ReportWeb: it now has to know about Report, ReportCSVWriter and ReportEmailer. Before, the interface could just do Report.issue() and respond to the interface appropriately
<a-priori> locks are another
davidcollom_ has quit [Ping timeout: 264 seconds]
<toretore> weeb1e: race conditions happen when you share resources, if those resources were controlled in just one place, it'd be easier to deal with
ocher has joined #ruby
<a-priori> toretore: at a great performance cost
timonv has quit [Remote host closed the connection]
<toretore> which is?
<workmad3> weeb1e: read consistency will depend on the transaction isolation level, assuming that's something you can set in MySQL (I know you can in pg)
tonni has joined #ruby
<weeb1e> I don't use MySQL very often anymore, that platform is one of the last I have that uses MySQL (activerecord) which I had to patch to be fibered instead of blocking because database queries started having a far too large performance impact
<jxport> So I'm not sure if it could be considered *more* simple (except on a per-class basis) - it could certainly be considered more complicated though, on a per-usage basis
tkuchiki has quit [Remote host closed the connection]
<a-priori> mysql isn't exactly a good example of good DBMS design anyway
<weeb1e> toretore: Threading and synchronizing has huge overhead
pabloh has joined #ruby
<toretore> jxport: well, it depends on what those things do and how they're separated
Vovko_ has joined #ruby
<weeb1e> Just ask Valve, who completely screwed up their games which now spend 80% of their time in locks
Vovko has quit [Read error: Connection reset by peer]
<toretore> weeb1e: i wan't saying anything about threads
shredding has quit [Read error: Operation timed out]
fella5s has quit [Ping timeout: 252 seconds]
<toretore> i just said "worker"
davidcollom_ has joined #ruby
<weeb1e> toretore: Basically, in a single threaded application, you can't really have conventional race conditions
davidcollom_ is now known as davidcollom
<toretore> sure you can
kukyakya has quit [Ping timeout: 240 seconds]
<workmad3> weeb1e: you can in a co-routine based reactor system
<toretore> isn't that what you're having now? ;)
<workmad3> weeb1e: read - event machine (or similar) using fibers ;)
<weeb1e> workmad3: Yeah ok you can, but it is harder
<toretore> workmad3: have any examples of one of those?
<workmad3> toretore: weeb1e's current system? :D
<toretore> (in ruby)
pingec has left #ruby [#ruby]
<toretore> well, i don't know how weeble's system works
<weeb1e> toretore: Fibered MySQL + transactions
<toretore> i mean a fiber reactor
<workmad3> toretore: eventmachine
<toretore> eventmachine doesn't use fibers
<workmad3> it can do
<weeb1e> transactions delays the updating of attributes until the transaction is over, which means it yields out of the fiber when it starts the query and only updates the local data in memory afterwards
<toretore> i'm asking because i'm currently writing one
<workmad3> toretore: you can use the Fiber class (standard ruby) and EM plays nicely with it
<toretore> and i didn't see anything in ruby already
<toretore> sure, but em doesn't manage the fibers
<toretore> it just runs callbacks
<weeb1e> toretore: Fibers are cooperatively managed
<weeb1e> It's up to the code implementing fiber support to manage them
<toretore> but they can be scheduled, which is what i'm talking about
<workmad3> toretore: I think EM-Synchrony adds fiber management into EM
<weeb1e> Libraries with fiber support manage them where needed
tylersmith has quit [Remote host closed the connection]
<weeb1e> em-synchrony adds fiber management for many common uses
gigetoo has quit [Remote host closed the connection]
<weeb1e> It's a good starting point
<toretore> but it's not a fiber reactor
<weeb1e> toretore: I think you're misunderstanding what fibers are
tylersmith has joined #ruby
<weeb1e> Or how they work
<toretore> no, i know what fibers are
rainmanjam has joined #ruby
Hanmac has joined #ruby
<toretore> i have just written a fiber scheduler/reactor
<weeb1e> Then you'd know you don't need or get such a thing as a "fiber reactor"
<workmad3> toretore: ok, if you wanted to get extremely picky about it, you may have a point... but you can certainly make heavy use of fibers with EM and get what, is to most people, a fiber reactor ;)
<toretore> which is why i'm interested in the topic
<diegoviola> hi
gigetoo has joined #ruby
Es0teric has joined #ruby
not_a_guest has joined #ruby
freezey has joined #ruby
jjbohn is now known as jjbohn|afk
davy_ has joined #ruby
tylersmi_ has joined #ruby
sigurding has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
carlyle has joined #ruby
<toretore> a fiber reactor is an event loop that uses fibers instead of callables
RaCx has quit [Quit: Computer has gone to sleep.]
<weeb1e> a-priori: I added a rescue and retry around the one query that seems to randomly fail the most and it pretty much fixes this
jjbohn|afk is now known as jjbohn
scottradcliff has joined #ruby
fraterlaetus has joined #ruby
<weeb1e> So I guess I'll just monkeypatch retries on lost connection to the Mongo driver
axsuul has quit [Read error: Connection reset by peer]
<weeb1e> Still odd that it randomly loses 1 connection while making an update query once in a while
vlad_starkov has joined #ruby
S0da has quit [Remote host closed the connection]
griffindy has quit [Read error: Connection reset by peer]
griffindy has joined #ruby
endash_ has joined #ruby
b00stfr3ak has quit [Ping timeout: 264 seconds]
endash_ has quit [Client Quit]
Es0teric has quit [Quit: Nigga, im OUTIE 5000]
klaut_ has quit [Remote host closed the connection]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
arietis has quit [Quit: Computer has gone to sleep.]
b00stfr3ak has joined #ruby
supersym has quit [Quit: WeeChat 0.4.3]
roolo has quit [Quit: Leaving...]
markisonfire has joined #ruby
platzhirsch has joined #ruby
Speed has joined #ruby
camilas__ has quit []
vlad_starkov has quit [Ping timeout: 265 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
RaCx has joined #ruby
axsuul has joined #ruby
zkc has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
_tpavel has quit [Quit: Leaving]
DaniG2k has quit [Quit: leaving]
platzhirsch has left #ruby [#ruby]
Hanmac has quit [Ping timeout: 240 seconds]
Biohazard has quit [Ping timeout: 264 seconds]
joelroa has joined #ruby
craigp has joined #ruby
duggiefresh has joined #ruby
xcv has joined #ruby
sigurding has quit [Quit: sigurding]
canton7-mac has quit [Quit: Leaving]
meatherly has joined #ruby
tylershipe has quit [Remote host closed the connection]
Hanmac has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
tylershipe has joined #ruby
duggiefresh has quit [Ping timeout: 252 seconds]
joelroa has quit [Ping timeout: 264 seconds]
axsuul has quit [Ping timeout: 265 seconds]
kaliya has quit [Quit: Lost terminal]
redlines has joined #ruby
willb1 has quit [Ping timeout: 264 seconds]
momomomomo has quit [Quit: momomomomo]
sparrovv has quit [Remote host closed the connection]
carlyle has quit [Read error: Connection reset by peer]
Biohazard has joined #ruby
carlyle has joined #ruby
supersym has joined #ruby
ikaros has quit [Quit: Ex-Chat]
rbartos_ has quit [Remote host closed the connection]
zeeraw has joined #ruby
zeeraw has quit [Client Quit]
kukyakya has joined #ruby
tylershipe has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby
momomomomo has quit [Client Quit]
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RaCx has quit [Quit: Computer has gone to sleep.]
<havenwood> apeiros: i'm on PST
klaut_ has joined #ruby
Hamburglr has joined #ruby
<havenwood> just north of LA
timonv has joined #ruby
xcv has quit [Remote host closed the connection]
xcv has joined #ruby
aaronmcadam has quit [Ping timeout: 240 seconds]
<chridal> it's very different from on OS X
aagdbl has joined #ruby
heftig has joined #ruby
<havenwood> what is?
<certainty> it!
<havenwood> oh
RaCx has joined #ruby
<diegoviola> i want to generate some random number sequence in ruby
<diegoviola> how to do that?
<diegoviola> a list
<diegoviola> 0 to 1000, etc
<certainty> a list of random numbers?
<diegoviola> yes
<diegoviola> 0 to 1000, all random
<diegoviola> etc
zeeraw has joined #ruby
rootshift has joined #ruby
<certainty> all members in the range of 0 ... 1000 must be drawn and therefor accure in the list? (exactly once)
<havenwood> diegoviola: Array.new(5) { rand(0..1000) }
freggles has quit []
<havenwood> diegoviola: ^ for a 5-element array
marianogg9 has joined #ruby
rbartos has joined #ruby
<Soulcutter> (0..1000).to_a.shuffle
<shevy> http://pastie.org/8876080 this adds the class method hi() to the class. is there another way without having to use: class << self ?
cocotton has quit [Quit: Page closed]
<diegoviola> i want something more like this: 100.times { p rand(0..1000) }
<havenwood> diegoviola: you want all numbers between 1 and 1000 each once, or some set number?
<marianogg9> hi guys, I need to capture an on-screen exception and do something with it
<havenwood> diegoviola: Array.new(100) { rand 0..1000 }
<diegoviola> just some set of numbers
<centrx> shevy, extend ClassMethods
<marianogg9> I think in rescue function?
willb1 has joined #ruby
<havenwood> diegoviola: or the more expensive: 100.times.map { rand 0..1000 }
tylershipe has joined #ruby
andy__ has quit [Remote host closed the connection]
duggiefresh has joined #ruby
xcv has quit [Remote host closed the connection]
grvgr has quit [Quit: grvgr]
andy__ has joined #ruby
xcv has joined #ruby
Xeago has joined #ruby
pushpak has joined #ruby
davy_ has quit [Remote host closed the connection]
<diegoviola> havenwood: thanks
io_syl has joined #ruby
rbartos has quit [Remote host closed the connection]
carneiro has quit []
crystal77 has joined #ruby
thesheff17 has joined #ruby
amundj has quit [Remote host closed the connection]
lw has quit [Quit: s]
razibog has joined #ruby
carlyle has quit [Read error: Connection reset by peer]
Voodoofish4301 has joined #ruby
<alex88> hi guys, I'm coming from PHP, usually a thing like "if comments_count = comments_since_last_visit(user).count()" not pass if comments_count (and so the count() on the right) is 0, on ruby however it pass, what should I do to both assign the variable and do the if in one line?
<tobiasvl> alex88: in ruby 0 evaluates as true
nateberkopec has quit [Read error: Connection reset by peer]
andy__ has quit [Ping timeout: 244 seconds]
<marianogg9> is this rightly formatted? https://gist.github.com/marianogg9/9372593
<tobiasvl> only nil and false evaluate as false
<alex88> oh, that's why, thank tobiasvl
nateberkopec has joined #ruby
carlyle has joined #ruby
<toretore> alex88: don't, it's bad practice
<alex88> so I should assign it and do if comments_count > 0 ?
thesheff17 has quit [Remote host closed the connection]
<toretore> yes
<alex88> kk thanks a lot
rbartos has joined #ruby
xcv_ has joined #ruby
xcv has quit [Read error: Connection reset by peer]
arietis has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
Hanmac1 has joined #ruby
thesheff17 has joined #ruby
<certainty> marianogg9: no
cjsarette has quit [Ping timeout: 245 seconds]
<marianogg9> certainty: I need to capture an exception and send it out
<marianogg9> just to alert the script didn't work
mikepack_ has quit [Remote host closed the connection]
mlpinit has quit [Read error: Connection reset by peer]
<certainty> marianogg9: ok, but you asked about the formatting which is off
albedoa has quit [Quit: Textual IRC Client: www.textualapp.com]
workmad3 has quit [Ping timeout: 244 seconds]
shaunbaker has quit [Remote host closed the connection]
mlpinit has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
<marianogg9> certainty: you're right
sputnik13 has joined #ruby
joelroa has joined #ruby
pabloh has quit [Remote host closed the connection]
momomomomo has joined #ruby
carlyle has quit [Remote host closed the connection]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<marianogg9> is there anything missing there? or missplaced?
greenarrow has quit [Quit: 500]
<certainty> marianogg9: the rescue and end should align with the begin. Apart from that is's a bit odd that you rescue where nothing can go wrong
<marianogg9> I was thinking to add it to a large script
timonv_ has joined #ruby
<marianogg9> as a debug tool
nhhagen has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
kpshek has quit []
QbY has quit [Remote host closed the connection]
zipper has quit [Ping timeout: 240 seconds]
pu22l3r has joined #ruby
sputnik13 has quit [Client Quit]
<marianogg9> so if anything goes and there's an exception thrown, then this will pick it up and send it to myself
<certainty> ok
<marianogg9> *goes wrong
<certainty> what if the sending goes wrong?
sputnik13 has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
Advocation_ has quit [Quit: Advocation_]
<certainty> as in throws an exception, also don't you want to reraise the exception?
iliketurtles has joined #ruby
carlyle has joined #ruby
cjsarette has joined #ruby
RaCx has joined #ruby
wiku5_ has joined #ruby
mansi has quit [Remote host closed the connection]
iliketurtles has quit [Client Quit]
mansi has joined #ruby
Spami has joined #ruby
tommyvcantdesign is now known as tomv
tomv is now known as thomas
mansi_ has joined #ruby
thomas is now known as tomas
klaut_ has quit [Remote host closed the connection]
tomas is now known as thomas314
mansi has quit [Read error: Connection reset by peer]
decoponio has quit [Quit: Leaving...]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rbartos has quit [Remote host closed the connection]
rootshift has joined #ruby
robbyoconnor has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
recurrence has joined #ruby
sailias has quit [Ping timeout: 240 seconds]
rdark has quit [Quit: leaving]
<marianogg9> if the sending goes wrong then there's nothing I can do
<certainty> ok i'm fine with that
rbartos has joined #ruby
<certainty> what's with reraising?
<marianogg9> but, at least it will alert me if any other thing (not the sending) goes wrong
cjsarette has quit [Ping timeout: 245 seconds]
monkegjinni has quit [Remote host closed the connection]
Foo2 has quit [Remote host closed the connection]
<marianogg9> I don't know what you mean with reraising, sorry
<b00stfr3ak> is sqlit3 slow as balls for any one else?
jxf has joined #ruby
itadder has joined #ruby
yfeldblum has joined #ruby
<certainty> marianogg9: if you rescue exceptions like this, you hide that something bad happened from the upper layers (the caller at least)
<certainty> that may be intentional or not
recurrence has quit [Client Quit]
relaxer has quit [Ping timeout: 240 seconds]
<jhass> b00stfr3ak: depends on what you're doing. If you're doing lots of inserts/updates in a row turning off autocommit can help
macmartine has joined #ruby
yacks has quit [Quit: Leaving]
<marianogg9> so, I don't know what rescue means then..I just need to get alerted if the exception appears
zipper has joined #ruby
jtoy has left #ruby [#ruby]
<marianogg9> maybe rescue isn't the propper function here
Hanmac has joined #ruby
timonv_ has quit [Remote host closed the connection]
zipper is now known as Guest5559
tedstriker has quit [Quit: Anti-Fraping status set.]
<b00stfr3ak> jhass: thanks i'll try that. Yeah doing a bunch of inserts and it is just slooooooooooooow
chrisja has joined #ruby
sigurding has joined #ruby
axl_ has quit [Quit: axl_]
kukyakya_ has quit [Remote host closed the connection]
mlpinit has quit [Read error: Connection reset by peer]
<marianogg9> like an if, if an exception appears -> let me know
tedstriker has joined #ruby
mlpinit has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
jrhorn424 is now known as zz_jrhorn424
razrunelord has quit []
<certainty> marianogg9: rescue is fine. It's made for these cases. Will this used inside a method?
<certainty> +be
axsuul has joined #ruby
senayar_ has quit [Remote host closed the connection]
senayar has joined #ruby
itadder has quit [Ping timeout: 240 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Guest5559 has quit [Client Quit]
hobodave has joined #ruby
<marianogg9> I've added this rescue at the end
<marianogg9> but (of course) it doesn't work and shows me a "page does not exist" exception
axsuul has quit [Read error: Connection reset by peer]
zkc has quit [Ping timeout: 240 seconds]
<marianogg9> I've edited that script from the original one in order to fit my environment (sorry for the messy writting)
saarinen has joined #ruby
mgberlin has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 0.4.3]
<certainty> marianogg9: you did not only add 'rescue' but also 'begin' which is most likely not what you want
<marianogg9> right
akitada has quit [Quit: Connection closed for inactivity]
axsuul has joined #ruby
<marianogg9> so, the begin isn't necessary?
<jhass> def foo; begin ... rescue ... end end == def foo ... rescue ... end
<certainty> marianogg9: it changes semantics if you put it there
mehlah has quit [Ping timeout: 252 seconds]
Shidash has quit [Quit: Leaving.]
sputnik13 has joined #ruby
<certainty> marianogg9: in an expression like begin code; rescue ... end you will only rescue excptions that accure during the begin and the rescue
<certainty> in your case there is no code between
<certainty> the code that you want to rescue exceptions from must be enlosed by begin and rescue
<marianogg9> ok certainty thanks for the clarification
<certainty> technically that's not totally correct, but the variations would only confuse you even more
afex has joined #ruby
<marianogg9> so, in my case there's a begin a the beginning of the code, so I'd just need to add a rescue at the end?
Foo3 has joined #ruby
Slavox is now known as Slavox|AFK
Slavox|AFK is now known as Slavox
<certainty> there might be missing and 'end' from the block. It's hard to see with that formatting
mehlah has joined #ruby
<jhass> open rescues always make me sad :(
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
hiyosi has quit [Ping timeout: 240 seconds]
<certainty> marianogg9: https://gist.github.com/anonymous/9373507 this is your template. Not that i encourage you to do it that way but it will get you going
rbartos has quit [Remote host closed the connection]
guinslym has joined #ruby
mansi_ has quit [Remote host closed the connection]
<certainty> rethink what you want to do with the exception other than notifying it
morenoh159 has joined #ruby
axsuul has quit [Read error: No route to host]
mansi has joined #ruby
bricker has joined #ruby
sputnik13 has joined #ruby
<certainty> marianogg9: also do yourself a favor and align your code properly
mikecmpbll has joined #ruby
<marianogg9> thanks man
<marianogg9> indeed there's an end bothering around
codeFiend has joined #ruby
Es0teric has joined #ruby
PLejeck- is now known as nuck
nath_schwarz has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
davy has joined #ruby
mansi has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<marianogg9> certainty: is there a tool to align the code?
sailias has joined #ruby
mark_locklear has quit [Quit: Leaving]
Aquilo has quit [Ping timeout: 264 seconds]
<certainty> marianogg9: a decent editor will be able to do that. There might be command line tools that can do it as well, but i'm not aware of one
sepp2k has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
shinobi_one has joined #ruby
<lewellyn> considering how everyone seems to rewrite everything in ruby, i'm surprised there's no indent(1) for ruby.
shinobi_one has quit [Client Quit]
<vpretzel> lol wut?
WormDrink has quit [Ping timeout: 265 seconds]
sarmiena_ has joined #ruby
<guinslym> I have a warning on a 'if' statement. I don't really understands it. this is my gist https://gist.github.com/guinslym/9373750
recurrence has joined #ruby
<centrx> guinslym, puts x if x.include?('a') on one line would be cleaner and more idiomatic
<lewellyn> vpretzel: man indent
alex88 has quit [Quit: Leaving...]
<vpretzel> "everyone seems to rewrite everything in ruby"
sputnik13 has joined #ruby
<lewellyn> vpretzel: it's not as bad as node, but yeah.
<vpretzel> lol ok
<lewellyn> it follows perl's lead there. ;)
<lewellyn> it's a tradition. people rewrite things which work perfectly well.
<guinslym> centrx: thanks... yes it's quite cleaner...
<vpretzel> There are some fundamental things that people need so I guess what I'm saying is I don't know exactly where the "excess" rewriting is going on, kind of curious
<lewellyn> the same thing happened when C++ became cool. people started rewriting things which were in C just because C++ is newer.
armyriad has quit [Ping timeout: 264 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
kpshek has joined #ruby
<centrx> If the promise of mruby holds out, everything should be rewritten in Ruby
shinobi_one has joined #ruby
jjbohn is now known as jjbohn|afk
cs02rm0 has joined #ruby
<shinobi_one> lewellyn: everyone seems to rewrite everything in ruby?
AxonetBE has joined #ruby
monkegjinni has joined #ruby
tvw has quit []
dyreshark has joined #ruby
kukyakya has quit [Ping timeout: 264 seconds]
axsuul has quit [Read error: Connection reset by peer]
<dyreshark> hello friends! beginner question: i have `class Foo < Struct.new(:bar); end` -- how do i define a different string representation for Foo? i've tried defining to_s and to_str, but neither works (running Ruby 2.1)
crystal77 has quit [Quit: Computer has gone to sleep.]
skyjumpe1 is now known as skyjumper
skyjumper has quit [Changing host]
skyjumper has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
Speed has quit [Ping timeout: 265 seconds]
monkegjinni has quit [Ping timeout: 240 seconds]
nanoyak has joined #ruby
albedoa has joined #ruby
carlyle has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
afex has quit [Ping timeout: 265 seconds]
havenwood has quit [Remote host closed the connection]
carlyle has joined #ruby
budrose has joined #ruby
havenwood has joined #ruby
crystal77 has joined #ruby
LBRapid has quit [Ping timeout: 264 seconds]
lfox has quit [Ping timeout: 265 seconds]
timonv has joined #ruby
freerobby1 has joined #ruby
Nightmare has quit [Ping timeout: 265 seconds]
freerobby has quit [Read error: Connection reset by peer]
WormDrink has joined #ruby
WormDrink has quit [Changing host]
WormDrink has joined #ruby
WormDrink has quit [Remote host closed the connection]
hiyosi has joined #ruby
Nightmare has joined #ruby
DarkFoxDK has quit [Ping timeout: 265 seconds]
WormDrink has joined #ruby
Cache_Money has joined #ruby
nuba has quit [Ping timeout: 252 seconds]
skinny_much has quit [Quit: ZNC - http://znc.sourceforge.net]
kaichanvong has quit [Quit: _]
chuck_ has quit [Ping timeout: 245 seconds]
lfox has joined #ruby
mary5030 has joined #ruby
Cache_Money has quit [Client Quit]
mary5030 has quit [Remote host closed the connection]
DarkFoxDK has joined #ruby
mary5030 has joined #ruby
hoelzro has quit [Ping timeout: 245 seconds]
andy__ has joined #ruby
wmoxam has quit [Ping timeout: 252 seconds]
macmartine has quit []
carlyle has quit [Ping timeout: 240 seconds]
yosafbridge has quit [Ping timeout: 245 seconds]
wmoxam has joined #ruby
hoelzro has joined #ruby
chuck_ has joined #ruby
kukyakya has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
xcv_ has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
kaichanvong has joined #ruby
aagdbl has quit [Quit: Leaving]
duggiefresh has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
LBRapid has joined #ruby
skinny_much has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
pu22l3r_ has joined #ruby
vlad_starkov has joined #ruby
starfox21 has quit [Quit: starfox21]
yosafbridge has joined #ruby
<chuck_> is there a pattern to make conditions like this simpler? https://gist.github.com/cmelbye/e84e3d4e7643a57857df
<chuck_> to avoid having to write the variable declaration several times
<apeiros> uh, yeah, start with a sane design.
SHyx0rmZ has joined #ruby
<chuck_> huh?
nuba has joined #ruby
cjsarette has joined #ruby
<chuck_> that's not my object, it's an API response, I'm trying to normalize it
<tylershipe> What is a SOAP api and is there a way to interact with one in ruby?
<apeiros> city = address.values_at("city", "town", "village", "hamlet").compact.first
<shevy> hmm
RaCx has quit [Quit: Computer has gone to sleep.]
<centrx> tylershipe, Yes, and yes.
<apeiros> alternatively, city = %w[city town village hamlet].find { |key| address[key] }
krandi has quit [Remote host closed the connection]
* centrx approves of apeiros' code
<chuck_> ooh I like that, thanks!
<tylershipe> centrx, Awesome and awesome!
pu22l3r has quit [Ping timeout: 265 seconds]
RaCx has joined #ruby
nadirvardar has joined #ruby
olivier_bK has joined #ruby
timonv has quit [Remote host closed the connection]
sambao21 has joined #ruby
blaxter has quit [Quit: foo]
Hobogrammer_ has joined #ruby
carlyle has joined #ruby
jjbohn|afk is now known as jjbohn
zachallett has quit [Remote host closed the connection]
* apeiros ponders writing a gem with ~10 LoC
RaCx has quit [Quit: Computer has gone to sleep.]
nadirvardar has quit [Max SendQ exceeded]
<apeiros> class Module; def inherit(module); include module::InstanceMethods; include module::Constants; extend module::ClassMethods; end; end # <-- roughly this
mansi has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
snkcld_ is now known as snkcld
pranny has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
pmullin has joined #ruby
mansi has joined #ruby
jxf has quit [Ping timeout: 240 seconds]
nadirvardar has joined #ruby
noopq has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
CaptainJet has joined #ruby
<shevy> wuest, it all continues :D http://oi57.tinypic.com/24pwe13.jpg
axl_ has joined #ruby
timonv has joined #ruby
jonahR has joined #ruby
tedstriker has quit [Quit: Anti-Fraping status set.]
noopq has quit [Client Quit]
RaCx has joined #ruby
tedstriker has joined #ruby
klaut_ has joined #ruby
axsuul has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
mattmcclure has joined #ruby
Speed has joined #ruby
frem has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
ndrei has joined #ruby
io_syl has quit []
cdime has joined #ruby
<weeb1e> apeiros: Your alternative option these is not equivalent... city = address["city"] || address["town"] || address["village"] || address["hamlet"]
<weeb1e> Your alternative will return the key, not the value
nadirvardar has quit [Max SendQ exceeded]
S0da has joined #ruby
<apeiros> weeb1e: ah, damn, yes
<apeiros> I keep wanting a map_find
<chuck_> yeah haha the first example was good though
<weeb1e> chuck_: See my alternative above as yet another option
davy has quit [Remote host closed the connection]
nadirvardar has joined #ruby
shinobi_one has quit [Quit: shinobi_one]
mehlah has quit [Read error: Connection reset by peer]
<wuest> shevy: :)
Speed has quit [Ping timeout: 240 seconds]
jjbohn is now known as jjbohn|afk
timonv has quit [Remote host closed the connection]
Kricir has joined #ruby
quatron has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
pu22l3r has joined #ruby
twiceaday has quit [Read error: Connection reset by peer]
twiceaday has joined #ruby
mikecmpbll has joined #ruby
jjbohn|afk is now known as jjbohn
Advocation has joined #ruby
oso|away is now known as oso96_2000
paulfm has joined #ruby
Speed has joined #ruby
awkisopen has quit [Quit: ZNC - http://znc.in]
Bira has joined #ruby
sincereness has joined #ruby
Macaveli has joined #ruby
skaflem has quit [Quit: Leaving]
monkegjinni has joined #ruby
<Macaveli> hi centrx
mikepack has quit [Remote host closed the connection]
Mongey has quit [Quit: Mongey]
awkisopen has joined #ruby
styped has joined #ruby
randomnick_ has joined #ruby
Bira has quit [Ping timeout: 240 seconds]
phantasm66 has quit [Ping timeout: 240 seconds]
senayar has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
zachallett has joined #ruby
e4xit has joined #ruby
SCommette has joined #ruby
lw has joined #ruby
AxonetBE has quit [Quit: AxonetBE]
kirun has joined #ruby
styped is now known as polyidus
maletor has quit [Quit: Computer has gone to sleep.]
b00stfr3ak has quit [Ping timeout: 240 seconds]
codeFiend has quit [Quit: codeFiend]
relaxer has joined #ruby
a-priori has quit [Remote host closed the connection]
<gr33n7007h> Does `self` refer to the class or the instantiated object?
<apeiros> gr33n7007h: depends on where you are
AxonetBE has joined #ruby
northfurr has quit [Ping timeout: 264 seconds]
<gr33n7007h> outside of the class
timonv has joined #ruby
<apeiros> outside of the class it doesn't refer to neither the class nor an instance of it
RaCx has quit [Quit: Computer has gone to sleep.]
aryaching has quit [Ping timeout: 264 seconds]
<apeiros> "outside the class" - well, then the class doesn't matter anymore at all for self, it doesn't matter what you're *out* of, it matters what you're *in*.
<gr33n7007h> Your example makes it clear
anarang has quit [Quit: Leaving]
mourest has quit [Read error: Connection reset by peer]
maletor has joined #ruby
<gr33n7007h> Yes that make so much sense now
<apeiros> gr33n7007h: http://pastie.org/8876987
Sawbones has joined #ruby
<apeiros> more cases covered
mehlah has joined #ruby
<centrx> It's called "this", not "that"
<apeiros> gr33n7007h: note that @ivars are tied to the same self. same self == same ivars.
tjr9898_ has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
RaCx has joined #ruby
<gr33n7007h> Brilliant, thanks apeiros
craigp has quit []
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
<slowcon> hey guys, is there an OS that ruby plays best with?
polyidus has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> slowcon the RubyOS
<RubyPanther> slowcon: Any of the Earth ones
yarou has joined #ruby
<slowcon> looking at a server and have the options of ubuntu, centos, debian, fedora, scientific linux
<wmoxam> Ruby is terible on BlackberryOS
<shevy> slowcon linux is usually better because of the ease of interoperability you get; I set my xorg buffer freely, then open tabs in firefox. on windows, this may be possible but not out-of-the-box I assume
<wmoxam> :(
cloud|nix has joined #ruby
<slash_nick> slowcon: have used ubuntu and centos
boycey has left #ruby [#ruby]
<slash_nick> no problems with either... what do you prefer?
<shevy> then kde konsole with R,G,B colours + tabs - beat that windows! ok now that we determined that windows loses, let's look at osx
sigurding has quit [Quit: sigurding]
<RubyPanther> slowcon: for Ruby those are all the same, but centos has the best server packages for the other stuff you may need
<wmoxam> slowcon: any of those will work great
styped has joined #ruby
<slowcon> ive only worked in windows and osx really, never dove into any other
duggiefresh has joined #ruby
dzhulk has joined #ruby
<shevy> yeah
<centrx> slowcon, I would recommend a Debian-based distribution, such as Ubuntu or Debian
<shevy> you would need someone to compare linux to osx and vice versa
<shevy> (provided that there are clever people using both)
<centrx> slowcon, (given the list of options you presented)
<slowcon> hmmmmm
<RubyPanther> slowcon: Even if I write a Ruby extension in C on linux, it will compile and run without porting or modification on windows, we've escaped platform lock a decade ago
<shevy> can you set the paste buffer on osx from the commandline?
<RubyPanther> In fact a lot of my code gets run on windows desktops, and I don't even own a windows box to test on.
duggiefr_ has joined #ruby
<centrx> RubyPanther, Has the slowness of Ruby on Windows been improved?
<shevy> it is easy to make pr0n run cross platform
<slowcon> RubyPanther: i work on windows at work, osx at home. was running into so many problems on the windows machine
phansch has quit [Quit: WeeChat 0.4.2]
<shevy> slowcon ditch windows!
<RubyPanther> centrx: I wouldn't write a media codec or something in Ruby, so it would never be a bottleneck to even know if it is slow or not. To the user it runs the same speed as a C app; the speed of windows
phantomtiger has quit [Quit: phantomtiger]
freezey has quit [Remote host closed the connection]
starfox21 has joined #ruby
<slowcon> shevy: i wish!
<shevy> slowcon the most important thing is to have ruby running
<shevy> on windows you can at least use the unixy tools, either via putty to connect to a server with linux or by using stuff like cygwin or msys
<RubyPanther> slowcon: The windows boxes themselves have lots of problems, but for the Ruby it Just Works. If I tried to dev there, yeah, problems I'm sure
jjbohn is now known as jjbohn|afk
duggiefresh has quit [Ping timeout: 264 seconds]
boxmein has joined #ruby
<slowcon> RubyPanther: yeah exactly. i want to setup a dev enviornment on this server and always work there
havenwood has quit [Remote host closed the connection]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
armyriad has quit [Ping timeout: 240 seconds]
<RubyPanther> slowcon: centos is the best blend of server and workstation defaults IMO
<slowcon> perfect
<slowcon> centrx thinks so as well :)
havenwood has joined #ruby
kpshek has quit []
<slowcon> what you think centrx?
Xeago has joined #ruby
agent_white has joined #ruby
<centrx> I prefer Debian-based distributions.
<centrx> Surely any distribution will work
tjr9898_ has joined #ruby
shvelo has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
rbartos has joined #ruby
<shevy> :)
<shevy> slowcon do you have a computer to test?
<shevy> I mean like, test install a linux distribution for a while
<slowcon> im going to buy a server
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hiyosi has joined #ruby
jjbohn|afk is now known as jjbohn
havenwood has quit [Ping timeout: 240 seconds]
freezey has joined #ruby
Xeago has quit [Ping timeout: 265 seconds]
pu22l3r has quit [Ping timeout: 241 seconds]
Jetchisel has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
rbartos has quit [Remote host closed the connection]
rezzack has joined #ruby
itadder has joined #ruby
duggiefr_ has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
mark_locklear has joined #ruby
rbartos has joined #ruby
hiyosi has quit [Ping timeout: 244 seconds]
kpshek has joined #ruby
joelroa has quit [Ping timeout: 269 seconds]
AxonetBE has left #ruby [#ruby]
Salve_ has quit []
sigurding has joined #ruby
Salve has joined #ruby
meatherl_ has joined #ruby
zz_jrhorn424 is now known as jrhorn424
nath_schwarz has quit [Ping timeout: 240 seconds]
itadder has quit [Read error: Operation timed out]
meatherl_ has quit [Read error: Connection reset by peer]
meather__ has joined #ruby
codabrink has quit [Quit: Textual IRC Client: www.textualapp.com]
ndrei has joined #ruby
Advocation has quit [Quit: Advocation]
meatherly has quit [Ping timeout: 240 seconds]
Hobogrammer_ has quit [Ping timeout: 252 seconds]
budrose has quit [Remote host closed the connection]
dzhulk has quit [Quit: Leaving.]
styped is now known as polydius
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ktosiek has joined #ruby
agent_white has quit [Quit: leaving]
rbartos has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
agent_white has joined #ruby
cjsarette has quit [Ping timeout: 245 seconds]
<apeiros> feedback on https://github.com/apeiros/inherit/blob/master/lib/inherit.rb please (also asking on #ruby-lang and twitter)
YamakasY has joined #ruby
tvw has joined #ruby
senayar has joined #ruby
afex has joined #ruby
rbartos has joined #ruby
smathieu has joined #ruby
YamakasY_ has joined #ruby
dzhulk has joined #ruby
freerobby1 has quit [Quit: Leaving.]
<DouweM> apeiros: why not leave the instance methods in the module itself, instead of under InstanceMethod? That way it's a little more in line with expectations/"real" behaviour. Note that this is also how ActiveSupport::Concern handles this
<apeiros> DouweM: because it means you include all constants directly under the module too
<apeiros> and that's exactly one aspect I dislike about AS::Concern
<DouweM> apeiros: ah, right
vlad_starkov has joined #ruby
<DouweM> I was gonna say I think ActiveSupport::Concern is a neater solution, but that's actually a great point that I wasn't aware of
<apeiros> there was something else I disliked, but I forgot. I barely ever used AS::Concern :(
axl_ has quit [Quit: axl_]
vpretzel has quit [Remote host closed the connection]
freerobby has joined #ruby
<DouweM> ActiveSupport::Concern handles module dependencies nicely as well
freerobby has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby
YamakasY has quit [Ping timeout: 268 seconds]
maroloccio has joined #ruby
pfg has joined #ruby
Hanmac1 has joined #ruby
tedstriker has quit [Quit: Anti-Fraping status set.]
claymore has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
tedstriker has joined #ruby
claymore has joined #ruby
freerobby has joined #ruby
ebwise has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 269 seconds]
carlyle has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 240 seconds]
tjr9898__ has joined #ruby
carlyle has joined #ruby
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
starfox21 has quit [Quit: starfox21]
tvw has quit [Ping timeout: 252 seconds]
tjr9898 has quit [Ping timeout: 264 seconds]
<apeiros> DouweM: got an example how and where that matters?
<apeiros> (I do intend on keeping `inherit` minimal, though)
<DouweM> I think there's some in the Rails docs
cjsarette has joined #ruby
shinobi_one has joined #ruby
lw has quit [Quit: s]
rbartos has quit [Remote host closed the connection]
WormDrink has quit [Ping timeout: 265 seconds]
lw has joined #ruby
xyon has joined #ruby
toastynerd has quit [Remote host closed the connection]
carlyle has quit [Ping timeout: 240 seconds]
pmullin has quit [Quit: Textual IRC Client: www.textualapp.com]
pu22l3r has joined #ruby
shanlar has quit [Quit: Be back later]
WormDrink has joined #ruby
WormDrink has quit [Changing host]
WormDrink has joined #ruby
echevemaster has joined #ruby
bodie_ has quit [Quit: ZNC - http://znc.in]
<apeiros> DouweM: I see. I don't think I'll add that.
<DouweM> Oh no, definitely don't and keep it minimal. Just mentioning it as a benefit to Concern
<DouweM> I don't like including AS in every single project, so smaller more "vanilla Ruby" gems like inherit are great
vpretzel_ has joined #ruby
xaq has joined #ruby
shanlar has joined #ruby
joelroa has joined #ruby
afex has quit [Ping timeout: 244 seconds]
monkegjinni has quit [Remote host closed the connection]
<Macaveli> Can you do an each loop with a filter in the each
<Macaveli> In pseudo code like this -> @testimonials.each do |value {value.interest_group != ""|
<Macaveli> forgot a }
RaCx has quit [Quit: Computer has gone to sleep.]
<DouweM> Macaveli: sure you're not looking for #select ?
<apeiros> Macaveli: see Enumerable#select
vpretzel has quit [Read error: Connection reset by peer]
xaq has quit [Read error: Connection reset by peer]
xaq_ has joined #ruby
bodie_ has joined #ruby
bodie_ is now known as Guest18028
carlyle has joined #ruby
rm_ has quit []
RaCx has joined #ruby
WormDrink has quit [Ping timeout: 240 seconds]
TMM has joined #ruby
armyriad has joined #ruby
rm_ has joined #ruby
WormDrink has joined #ruby
bean has joined #ruby
Trevoke has joined #ruby
jjbohn is now known as jjbohn|afk
<Macaveli> apeiros, that is so f. awesome cool Ö
<Macaveli> DouweM, indeed I really should learn more about enumerable -> @testimonials.select {|value| value.interest_group != ''}.each do |test|
<Macaveli> did the trick
<apeiros> f*ck, rubyflow.com formatting, how does it work? >:(
xaq has joined #ruby
<DouweM> Macaveli: that's two runs over the array though, you could also just use an if statement inside the #each block
xaq_ has quit [Read error: Connection reset by peer]
<Macaveli> DouweM, so this is slower than just loop everything and work with an if?
pranny has quit [Quit: Leaving.]
<DouweM> Macaveli: in your case probably not noticably so, but yeah
<Macaveli> DouweM, I will leave it as is because the @testimonials will max contain 80 values
joelroa has quit [Ping timeout: 240 seconds]
<DouweM> Macaveli: in that case, it's fine to go for readability
<Macaveli> DouweM, thanks a lot ;)
kukyakya has quit [Ping timeout: 240 seconds]
vpretzel_ is now known as vpretzel
jjbohn|afk is now known as jjbohn
banister_ has quit [Ping timeout: 252 seconds]
axl_ has joined #ruby
dzhulk has quit [Quit: Leaving.]
<apeiros> Macaveli: I prefer not having negations, so in that case, I'd use reject:
<apeiros> @testimonials.reject {|value| value.interest_group == ''}.each …
BeLucid has quit [Remote host closed the connection]
dzhulk has joined #ruby
<apeiros> if all your values are strings, you can shorten this to:
xaq has quit [Read error: Connection reset by peer]
<apeiros> @testimonials.reject(&:empty?).each …
banister has joined #ruby
xaq has joined #ruby
mihirrege has joined #ruby
smathieu has quit [Remote host closed the connection]
Solnse has quit [Quit: Leaving.]
<jhass> actually you can't, he's doing .interest_group
inversesquarelaw has joined #ruby
jackneill has quit [Read error: Operation timed out]
smathieu has joined #ruby
<jhass> I still like .reject {|testimonial| testimonial.interest_group.empty? } better though
<Macaveli> DouweM, apeiros does an Enumerable unique exist for example Line 1 -> "abc" Line 2 -> "def" Line 3 -> "abc" -> it can only loop 2 lines in that case
YamakasY_ has quit [Remote host closed the connection]
mjs2600 has quit [Remote host closed the connection]
mjs2600 has joined #ruby
<apeiros> jhass: gah, true
enebo has quit [Quit: enebo]
<apeiros> and yes, still .empty?
YamakasY has joined #ruby
<apeiros> Macaveli: I don't follow, sorry.
<fveillette> if i have 2 different array and both contain hashes... if i try to do array1 - array2 it doesn't evaluate the hashes properly.. i would like to know why
mjs2600 has quit [Remote host closed the connection]
<apeiros> fveillette: incomplete problem description.
<Macaveli> apeiros, jhass -> it becomes this @testimonials.reject{|testimonial| testimonial.interest_group.empty? }.uniq{|x| x.interest_group}.each do |test|
mjs2600 has joined #ruby
<apeiros> fveillette: reproducable example. demo input, output, and expected output
<Macaveli> or can you combine uniq and select?
mjs2600 has quit [Remote host closed the connection]
<fveillette> i give you a gist in a sec
Kricir has quit []
kaldreno_ has joined #ruby
YamakasY_ has joined #ruby
<apeiros> Macaveli: chaining is fine
phantomtiger has joined #ruby
afex has joined #ruby
<jhass> now you can do uniq(&:interest_group) ;)
mjs2600 has joined #ruby
vim_shim is now known as vimsterly
<apeiros> Macaveli: you could do the uniq test within reject/select, but it'd become horribly unreadable and you'd gain nothing IMO.
<apeiros> isn't it uniq_by?
smathieu has quit [Ping timeout: 265 seconds]
<jhass> iirc that one falls out of the scheme
<apeiros> ohfuckno
<apeiros> it isn't :(
<apeiros> SHAME ON THEM!
kaldrenon has quit [Ping timeout: 264 seconds]
mjs2600 has quit [Remote host closed the connection]
Nyyx has quit [Ping timeout: 252 seconds]
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
mjs2600 has joined #ruby
YamakasY has quit [Ping timeout: 240 seconds]
phantomtiger has quit [Client Quit]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
mansi has quit [Remote host closed the connection]
mark_locklear has quit [Ping timeout: 269 seconds]
VinceThePrince has joined #ruby
boxmein has left #ruby ["[00:12.05] <\m> An into-solid turner"]
mansi has joined #ruby
Xeago has joined #ruby
geopet has quit [Ping timeout: 240 seconds]
VinceThePrince has quit [Remote host closed the connection]
jjbohn has quit [Quit: Leaving...]
dzhulk has quit [Quit: Leaving.]
Raboo has quit [Ping timeout: 264 seconds]
<apeiros> fveillette: the hashes in your array are not equal
<apeiros> fveillette: Array#- only removes equal objects
Nyyx has joined #ruby
<apeiros> {"main"=>"1", "type"=>"4", …} is not equal {"main"=>"1", "type"=>"1", …}
aspires has quit []
jjbohn has joined #ruby
aspires has joined #ruby
visof has joined #ruby
<apeiros> ah, wait, there's a second hash… moment
Macaveli has quit [Ping timeout: 244 seconds]
mansi has quit [Read error: Connection reset by peer]
<fveillette> apparently is does because the result i get is an empty array
<apeiros> (horribly formatted…)
<banister> apeiros what's a hash moment
<banister> sounds like an advanced concept
<apeiros> banister: get a font which can display ... properly :-p
mansi has joined #ruby
diegoviola has joined #ruby
<apeiros> fveillette: ok, so actual contains 2 equal hashes
<fveillette> yes
<apeiros> both get removed because they are equal to the second hash in tocreate
alvaro_o has joined #ruby
<fveillette> i see...
<apeiros> Array#- does not remove the amount of occurrences, it removes all equal objects
marianogg9 has left #ruby [#ruby]
phantomtiger has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
<apeiros> >> [1,1,1,1,2,1,1,1] - [1]
<eval-in> apeiros => [2] (https://eval.in/113781)
koell has quit [Quit: So say we all!]
rootshift has joined #ruby
polydius has quit []
jxf has joined #ruby
Deele has quit [Ping timeout: 244 seconds]
soulcake has joined #ruby
Jdubs has joined #ruby
mihirrege has quit [Remote host closed the connection]
joelroa has joined #ruby
Guest18028 is now known as bodie_
hiyosi has joined #ruby
kotakotakota has joined #ruby
mansi has quit [Ping timeout: 244 seconds]
Foo3 has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
mihirrege has joined #ruby
mjs2600 has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
RaCx_ has joined #ruby
RaCx has quit [Ping timeout: 244 seconds]
RaCx_ is now known as RaCx
jxf has quit [Ping timeout: 264 seconds]
<kewubenduben> can anyone suggest me on what library to use to be able to parse mysql's my.cnf config format?
hiyosi has quit [Ping timeout: 240 seconds]
joelroa has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
shvelo has quit [Ping timeout: 240 seconds]
kukyakya has joined #ruby
sski has joined #ruby
sambao21 has joined #ruby
<shevy> dont think there is a library
sparrovv has joined #ruby
tvw has joined #ruby
lw has quit [Quit: s]
lw has joined #ruby
atmosx has quit [Quit: WeeChat 0.4.3-dev]
atmosx has joined #ruby
<kewubenduben> any suggestion on how to parse the conf? I've tried 'iniparse', problem is that mysql config have some lines which doesn't have matching value
mansi has joined #ruby
<agent_white> It's quiet in here...
pu22l3r has quit [Ping timeout: 265 seconds]
ws2k3__ has quit [Remote host closed the connection]
esposito has joined #ruby
<centrx> Almost too quiet...
<centrx> agent_white, BOO
kaldreno_ is now known as kaldrenon
<Jdubs> hey guys i cant seem to find help with an issue elsewhere, anyone good with bootstrap?
AntelopeSalad has quit []
ws2k3__ has joined #ruby
<centrx> kewubenduben, Iniparse isn't robust enough to handle that?
<apeiros> kewubenduben: StringScanner, TreeTop
<kewubenduben> centrx, yep
<apeiros> oh, *Treetop actually
<kewubenduben> apeiros, thanks.. will look into it
<apeiros> if .cnf is supposed to be a valid .ini format - patch iniparse
RaCx has quit [Quit: Computer has gone to sleep.]
prc has joined #ruby
grzywacz has joined #ruby
<centrx> Jdubs, How about #twitter-bootstrap
wimplash has joined #ruby
<centrx> Jdubs, If no response there, you could try #RubyOnRails that would be a more likely channel than here
<Jdubs> alright thanks
polydius has joined #ruby
polydius has quit [Max SendQ exceeded]
armyriad has quit [Ping timeout: 240 seconds]
AntelopeSalad has joined #ruby
nanoyak has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
polydius has joined #ruby
polydius has quit [Max SendQ exceeded]
wimplash has quit [Client Quit]
igsilv has joined #ruby
rbartos has joined #ruby
guinslym has quit [Quit: Lost terminal]
carlyle has quit []
tedstriker has quit [Quit: Anti-Fraping status set.]
jokke has quit [Quit: WeeChat 0.4.2]
mengu has joined #ruby
mengu has joined #ruby
aspires has quit []
tedstriker has joined #ruby
LiohAu has quit [Quit: LiohAu]
maroloccio has quit [Quit: WeeChat 0.4.3]
<slowcon> centrx: i went with ubuntu. gonna try this out
esposito has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
jokke has joined #ruby
RaCx has joined #ruby
monkegjinni has joined #ruby
<centrx> slowcon, This is an important step in your programming career!
evenix_ has joined #ruby
ws2k3__ has quit [Remote host closed the connection]
polydius has joined #ruby
polydius has quit [Max SendQ exceeded]
<slowcon> centrx: why you gotta say it like that and get me all nervous hahahaha
polydius has joined #ruby
polydius has quit [Max SendQ exceeded]
aspires has joined #ruby
claymore has quit [Ping timeout: 252 seconds]
polydius has joined #ruby
jsilver has quit [Read error: Connection reset by peer]
petey has joined #ruby
ws2k3__ has joined #ruby
jsilver has joined #ruby
evenix has quit [Ping timeout: 264 seconds]
apeiros has quit [Read error: Connection reset by peer]
DouweM has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
evenix_ has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
jjbohn has quit [Quit: Leaving...]
sigurding has quit [Quit: sigurding]
dzhulk has joined #ruby
kirun has quit [Quit: Client exiting]
banek has quit [Remote host closed the connection]
jjbohn has joined #ruby
maletor has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
rayners has quit [Ping timeout: 252 seconds]
predator117 has quit [Ping timeout: 252 seconds]
banister has quit [Ping timeout: 244 seconds]
rm__ has joined #ruby
Jdubs has quit [Remote host closed the connection]
fgo has joined #ruby
rm_ has quit [Read error: No route to host]
mjs2600 has joined #ruby
hobodave_ has joined #ruby
hobodave has quit [Ping timeout: 240 seconds]
predator117 has joined #ruby
northfurr has joined #ruby
northfurr has quit [Changing host]
northfurr has joined #ruby
datacrusher has joined #ruby
elaptics`away is now known as elaptics
CpuID has quit [Quit: This computer has gone to sleep]
CpuID has joined #ruby
dzhulk has quit [Quit: Leaving.]
smathieu has joined #ruby
dzhulk has joined #ruby
Jdubs has joined #ruby
claymore has joined #ruby
vimsterly has quit [Quit: Leaving]
carraroj has quit [Quit: Konversation terminated!]
DaniG2k has joined #ruby
kukyakya has quit [Ping timeout: 240 seconds]
CpuID has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
cloud|nix has quit [Ping timeout: 240 seconds]
sputnik13 has joined #ruby
sambao21 has joined #ruby
rayners has joined #ruby
toastynerd has joined #ruby
visof has quit [Ping timeout: 240 seconds]
zachallett has quit [Remote host closed the connection]
geopet has joined #ruby
tylershipe has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
tylershipe has joined #ruby
freezey has quit [Remote host closed the connection]
klaut_ has quit [Remote host closed the connection]
nadirvardar has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Jdubs has quit [Remote host closed the connection]
rahult has joined #ruby
Hobogrammer_ has joined #ruby
itadder has joined #ruby
srji_ has joined #ruby
tylershipe has quit [Ping timeout: 240 seconds]
srji has quit [Ping timeout: 252 seconds]
swapna has joined #ruby
grzywacz has quit [Remote host closed the connection]
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
cs02rm0 has quit [Ping timeout: 240 seconds]
DaniG2k has quit [Ping timeout: 240 seconds]
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
itadder has quit [Ping timeout: 241 seconds]
<bradhe> Hey how can I install the ruby development headers if I'm installing from source?
paulfm has quit []
<centrx> The development headers are in the source directory
bluOxigen has quit [Ping timeout: 252 seconds]
mary5030 has quit [Read error: Connection reset by peer]
pwh has joined #ruby
toastynerd has joined #ruby
swapna has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
timonv has quit [Remote host closed the connection]
mary5030 has quit [Read error: Connection reset by peer]
swapna has joined #ruby
monkegjinni has quit [Remote host closed the connection]
rankine has joined #ruby
monkegjinni has joined #ruby
enebo has joined #ruby
rbartos has quit [Remote host closed the connection]
banek has joined #ruby
sdouglas has joined #ruby
joelroa has joined #ruby
boom__ has joined #ruby
hiyosi has joined #ruby
sailias has quit [Ping timeout: 240 seconds]
MissionCritical has quit [Ping timeout: 245 seconds]
DaniG2k has joined #ruby
popl has quit [Quit: Touch the frog.]
ndrei has quit [Ping timeout: 264 seconds]
codezomb has joined #ruby
jonno11 has joined #ruby
monkegjinni has quit [Ping timeout: 264 seconds]
rbartos has joined #ruby
msmith_ has quit [Remote host closed the connection]
agent_white has quit [Quit: leaving]
<RubyPanther> bradhe: if you're on ruby 1.9 you need some tricks
sdouglas has quit [Remote host closed the connection]
<bradhe> Rub
<bradhe> RubyPanther: 2.1.1
ddelrio1986 has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
ndrei has joined #ruby
<RubyPanther> okay, it should all happen automatically then
polydius has quit [Quit: EOF]
<bradhe> hmmm
sdouglas has joined #ruby
Sokolman has joined #ruby
<bradhe> I used sudo make install, the binary makes it to the right place...but when I try to install a gem with native extensions is says "can't find mkmf"
<bradhe> which I thought was part of the dev stuff for ruby?
polydius has joined #ruby
joelroa has quit [Ping timeout: 240 seconds]
mois3x has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
<Hanmac1> bradhe: do you use rvm or similar? what is your OS?
<bradhe> Ubuntu, no RVM
xaq has quit [Remote host closed the connection]
<bradhe> I'm trying to do it without RVM...
<Hanmac1> bradhe: test "ruby -v" and "gem env" if your installed ruby is correct installed
kaldrenon has quit [Remote host closed the connection]
<RubyPanther> bradhe: typicaly that means you're hitting a system ruby
kaldrenon has joined #ruby
<bradhe> Looks correct to me...
<shevy> bradhe on some debian distributions they are so clever to remove mkmf, then you can't compile ruby extensions. say thanks to these helpful devs!
Sokolman has quit []
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<Hanmac1> shevy: he installed by source
<shevy> Hanmac1: <bradhe> [...] says "can't find mkmf"
mary5030 has joined #ruby
<Hanmac1> shevy: " if I'm installing from source"
madb055 has quit [Ping timeout: 240 seconds]
<shevy> I install by source as well and never run into this problem :>
Hanmac1 is now known as Hanmac
<RubyPanther> bradhe: sometimes sudo has difficulty with things installed in /usr/local
<bradhe> https://gist.github.com/bradhe/9377665 <-- bundle install attempt
<bradhe> RubyPanther: Ah, interesting...
<Hanmac> ah the bundler shit
<RubyPanther> it is actually much better to use a user install, and if it is a shared system, give the other users access
Sawbones has quit []
<shevy> not only bundler, also an old and crippled ruby at /usr prefix. /usr/lib/ruby/1.9.1/rubygems/
<Hanmac> bradhe: you need to install bundler again for your new ruby
<RubyPanther> I usually have a per-project or per-team user that owns the ruby
<bradhe> RubyPanther: Do you have to give special flags to make for that?
<bradhe> like --prefix or soemthing?
<RubyPanther> bradhe: No, I let ruby-build handle that, but in the old days, yeah, just --prefix
kaldrenon has quit [Ping timeout: 240 seconds]
Findegil has joined #ruby
<Hanmac> i still think the problem lies with bundler
<RubyPanther> yeah, Hanmac is probably right
Mission-Critical has joined #ruby
agent_white has quit [Quit: leaving]
agent_white has joined #ruby
Kruppe has quit [Quit: ZNC - http://znc.in]
<shevy> Hanmac likes bundler
<Hanmac> RubyPanther: thats what my friends hate on me ... that sometimes they need to tell me "yeah you are right" or i said to them "Told you so" ... if i get a Dollar for each time i was right ... i already would own my own City ;P
Kruppe has joined #ruby
<shevy> like Detroit
<shevy> it did cost a dollar at one point in time
<RubyPanther> But if you do sudo sh -c 'echo $PATH' # typically /usr/local/bin is stripped out, so you run a ruby tool with sudo, and that tool then tries to hand off to another tool, but it hits the system tool instead of the one in /usr/local, because the scripts all have #!/usr/bin/env ruby
robbyoconnor has quit [Ping timeout: 240 seconds]
jjbohn has quit [Quit: Leaving...]
agent_white has quit [Client Quit]
tjr9898_ has quit []
<Hanmac> shevy: yeah but no one wants Detroit ;P
jjbohn has joined #ruby
toastynerd has quit []
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rm__ has quit []
<bradhe> Odd, "irb; require 'mkmf' => true" -- maybe bundler is le hosed?
<jhass> bradhe: did you install it again already?
<Hanmac> bradhe: didyou try to reinstall bundler?
<bradhe> I'm trying now
rm_ has joined #ruby
<Hanmac> RubyPanther: i should collect money for each time someone does not want to listen when i am right ... ;P
<RubyPanther> bradhe: You should also remove the system ruby so that if sudo can't find something, you'll get the right error message (that it isn't there) instead of a ruby error message that will be obtuse
jonno11 has joined #ruby
acrussell has quit [Quit: Leaving.]
<RubyPanther> Hanmac: I was just trying to guide him past the pain so that he doesn't need your advice :o
mikepack has quit [Remote host closed the connection]
Sawbones has joined #ruby
Solnse has joined #ruby
<Hanmac> yeah ... but sometimes they need to learn when the hotplates are "hot" ;P
cs02rm0 has joined #ruby
yubrew has quit [Remote host closed the connection]
tedstriker has quit [Quit: Anti-Fraping status set.]
vlad_starkov has joined #ruby
<RubyPanther> In my case, I insisted I could just cool them off, and I maintained an alternate sudo rpm for a couple years
joast has quit [Quit: Leaving.]
Kricir has joined #ruby
JViz has quit [Ping timeout: 264 seconds]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
esposito has joined #ruby
sincereness has quit [Ping timeout: 245 seconds]
yubrew has joined #ruby
<bradhe> Yup, it was freakin' bundler. Re-isntalling it (with a know-good version this time) fixed the problem.
yubrew has quit [Remote host closed the connection]
<RubyPanther> but the reality is that /usr/local is fine for games, but sucks for dev tools these days
<Hanmac> i used Centos at work ... i am still suprised that BASIC components like "man" where missing!!¡
kukyakya has joined #ruby
<RubyPanther> Hanmac: don't blame centos, blame the IT person who ran the installer
toastynerd has joined #ruby
<jhass> bradhe: it rather was /usr/bin/bundle still pointing to your old ruby I bet. Which is expected unless you install your gems with --env-shebang or what the parameter was
<RubyPanther> A lot of sysadmins don't want extra tools on the routers, etc
<centrx> slowcon, How is the Ubuntu?
Mission-Critical is now known as MissionCritical
Umschwung has joined #ruby
cs02rm0 has quit [Ping timeout: 244 seconds]
<RubyPanther> "Society is important because of Ubuntu." -- President Bill Clinton
Sawbones has quit []
fgo has quit [Remote host closed the connection]
griffindy has quit [Quit: Computer has gone to sleep.]
doubleemms has joined #ruby
thomas_d has quit []
joast has joined #ruby
philcrissman has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
rbartos has quit [Remote host closed the connection]
ebwise has joined #ruby
rudisimo has quit []
rbartos has joined #ruby
banister has joined #ruby
albedoa has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jph98 has joined #ruby
scottradcliff has quit [Quit: Page closed]
Xeago has quit [Remote host closed the connection]
<Hanmac> RubyPanther: last i have seen a picture that shows that Clinton could answer 3 of 3 Questions about My Little Pony ;PP
derek_c has joined #ruby
mjs2600 has quit [Remote host closed the connection]
<RubyPanther> Hanmac: I don't know anything about his work with My Little Pony, but you can quote my response: "Omg! Ponies!" http://www.clintonfoundation.org/main/clinton-foundation-blog.html/2012/07/16/the-spirit-of-ubuntu
Umschwung has quit []
duggiefresh has quit [Remote host closed the connection]
Hobogrammer_ has quit [Ping timeout: 240 seconds]
<Hanmac> xD
sambao21 has quit [Quit: Computer has gone to sleep.]
jbueza has joined #ruby
visof has joined #ruby
derek_c has quit [Client Quit]
deadlock_ has quit [Ping timeout: 265 seconds]
jrhorn424 is now known as zz_jrhorn424
auxbuss has joined #ruby
jxf has joined #ruby
mihirrege has quit [Quit: Leaving]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fgo has joined #ruby
skkeeper has quit [Quit: ZNC - http://znc.in]
deadlock_ has joined #ruby
dblessing has quit [Quit: dblessing]
sdouglas has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
mary5030 has quit [Ping timeout: 240 seconds]
mansi has quit [Remote host closed the connection]
enricostn has joined #ruby
armyriad has joined #ruby
mansi has joined #ruby
bradhe has quit [Remote host closed the connection]
mary5030 has joined #ruby
mlpinit has quit [Read error: Connection reset by peer]
<enricostn> hi there, I'm trying to install ruby-2.0.0-p353 on ArchLinux using RVM but I get the following error while compiling:
<enricostn> uncommon.mk:179: recipe for target 'build-ext' failed // make: *** [build-ext] Error 2
<centrx> enricostn, Does Arch have source packages you can build from?
mlpinit has joined #ruby
<jhass> hm
DaniG2k has quit [Quit: leaving]
<enricostn> I think so, I've compiled other ruby versions before without issues
<jhass> I happen to maintain the ruby2.0 AUR package ;)
freerobby1 has quit [Quit: Leaving.]
<enricostn> :)
Trevoke has quit [Ping timeout: 264 seconds]
esposito has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<jhass> enricostn: arch is on readline 6.3, the fix for that is unreleased: https://bugs.ruby-lang.org/issues/9578
polydius has quit [Quit: EOF]
<jhass> it's -p456 iirc
Kricir has quit [Remote host closed the connection]
<jhass> which as said isn't released yet
Hanmac1 has joined #ruby
ffranz has quit [Quit: Leaving]
RaCx has quit [Quit: Computer has gone to sleep.]
<enricostn> :(
<enricostn> so no p353 on Arch?
<jhass> unless you downgrade to readline 6.2
<enricostn> maybe I could downgrade readline
tesuji has joined #ruby
mansi has quit [Ping timeout: 244 seconds]
<enricostn> ... :)
evenix has joined #ruby
tesuji has quit [Excess Flood]
Kricir has joined #ruby
<enricostn> I'll do that... I need p353
mikepack has joined #ruby
auxbuss has quit [Quit: I'm gone.]
<centrx> enricostn, Why do you need that exact version?
<enricostn> it's the version we use at work for this repo
Hanmac has quit [Ping timeout: 265 seconds]
<enricostn> so I can't pick another one
Muz_ is now known as Muz
sambao21 has joined #ruby
mercwithamouth has joined #ruby
<centrx> jhass, What do you like about Arch Linux?
hermanmunster has joined #ruby
<jhass> newest packages and writing packages is so easy that I never have to resort to sudo make install
<jhass> also for 98% of the stuff there already is a package I can use
<enricostn> btw, many thanks jhass and centrx ! :)
rankine has quit [Quit: leaving]
bradhe has joined #ruby
joelroa has joined #ruby
JViz has joined #ruby
freerobby has joined #ruby
krillov has joined #ruby
visof has quit [Ping timeout: 264 seconds]
krillov has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
visof has joined #ruby
jjbohn has quit [Quit: Leaving...]
whomp has joined #ruby
Asher has quit [Quit: Leaving.]
rm_ has quit [Read error: Connection reset by peer]
rm_ has joined #ruby
rbartos has quit [Remote host closed the connection]
doubleemms has quit [Quit: doubleemms]
jjbohn has joined #ruby
jxf has quit [Ping timeout: 240 seconds]
<shevy> cool
<shevy> I did not know there was a readline 6.3, off to compile it!
<jhass> shevy: see arch has it compiled for you in the repos before you even notice it's released! ;P
meather__ has quit [Remote host closed the connection]
<shevy> yeah, 20 eyes see more than 2 eyes
<shevy> finished compilation!
meatherly has joined #ruby
Faris2 has joined #ruby
Kricir has quit [Remote host closed the connection]
<shevy> hmm
<shevy> there is, or there appears to be, this slight inconsistency in how ruby programs use versioning
Asher has joined #ruby
<shevy> I thought this would work: Readline::Version
<shevy> well no... it is Readline::VERSION instead # => "5.2"
Faris has quit [Ping timeout: 240 seconds]
<shevy> Is everyone here using VERSION?
caesura has joined #ruby
tvw has quit []
<enricostn> jhass, downgrading readline (6.3-1 => 6.2.004-2) did the trick!
<enricostn> thanks
<centrx> shevy, I think so
zachallett has joined #ruby
<terrellt> shevy: Yes, but only because that's what bundler generates.
<shevy> hmm
<centrx> VERSION looks like a constant. Version looks like a class
<enricostn> now I need to remember to upgrade it when the ruby issue is fixed...
jph98 has quit [Quit: jph98]
Kricir has joined #ruby
<shevy> yeah I think that makes sense centrx ... Gem also uses the same: Gem::VERSION # => "2.2.2", it also has a class caled Gem::Version
<jhass> enricostn: haven't verified but I think the issue is only at compile time. Given the major ABI version didn't change I'd expect it to continue working after upgrade
codeitagile has quit [Remote host closed the connection]
<enricostn> oh, thanks
<shevy> omg... actionpack-4.0.2/lib/action_pack/version.rb: module VERSION
charliesome has joined #ruby
<shevy> oh... but they use an interesting way to version; def self.version; Gem::Version.new "4.0.2"
mary5030 has quit [Remote host closed the connection]
Faris2 has quit [Ping timeout: 240 seconds]
mlpinit has quit [Remote host closed the connection]
meatherly has quit [Ping timeout: 265 seconds]
Faris has joined #ruby
Asher has quit [Read error: Connection reset by peer]
mlpinit has joined #ruby
Asher has joined #ruby
hiyosi has joined #ruby
zachallett has quit [Ping timeout: 264 seconds]
bradhe has quit [Remote host closed the connection]
<whomp> what's the best way to include bundles in my ruby app? it'll be distributed to mac users only
hobodave_ has quit [Quit: Computer has gone to sleep.]
<whomp> also, what's the best way to protect my source code and keep it closed-source?
<jhass> hmm
<jhass> don't use ruby?
<jhass> or don't give it to anybody
<centrx> mruby?
<shevy> whomp how do you want to protect text files?
hornairs has joined #ruby
<apeiros> whomp: or pay $ridiculous for encoder (google it, I don't have the link, sorry - it's by zenspider I think)
igsilv has quit [Ping timeout: 240 seconds]
<whomp> shevy, i want to have them as obfuscated as files in any compiled language. so if there's a good way to compile them, i'm down with that
mlpinit has quit [Ping timeout: 240 seconds]
Asher has quit [Client Quit]
mojjojo has joined #ruby
toastynerd has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
hiyosi has quit [Ping timeout: 265 seconds]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
pierre1_ has quit [Ping timeout: 265 seconds]
jonno11 has quit [Ping timeout: 252 seconds]
Trevoke has joined #ruby
pfg has joined #ruby
markisonfire has quit [Ping timeout: 252 seconds]
jerius has quit [Ping timeout: 252 seconds]
mengu has quit []
markisonfire has joined #ruby
jcs222 has joined #ruby
toastynerd has joined #ruby
philcrissman has quit [Remote host closed the connection]
<enricostn> whomp, http://rubyencoder.com/ and friends...
rayners has quit [Remote host closed the connection]
Trevoke has quit [Ping timeout: 240 seconds]
Megtastique has quit []
diegovio1 has joined #ruby
robbyoconnor has joined #ruby
diegoviola is now known as Guest89859
diegovio1 is now known as diegoviola
<csmrfx> enricostn: does that run on jvm?
rm_ has quit []
Guest89859 has quit [Ping timeout: 265 seconds]
<enricostn> csmrfx, don't know I don't use it
Asher has joined #ruby
jobewan has quit [Quit: Leaving]
superscott[8] has joined #ruby
charliesome has quit [Ping timeout: 264 seconds]
Trevoke has joined #ruby
yubrew has joined #ruby
postmodern has joined #ruby
<jhass> blinking "our blog" big "only $xxx"? This totally looks like satire to me :P
charliesome has joined #ruby
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
linojon has quit [Quit: linojon]
polydius has joined #ruby
polydius has quit [Max SendQ exceeded]
lkba has quit [Ping timeout: 240 seconds]
jxf has joined #ruby
<shevy> big bucks
<shevy> big blinking
<shevy> it all fits together
<shevy> it's hypnotic, just look at it for a while
kukyakya has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
cs02rm0 has joined #ruby
Nyyx has quit [Ping timeout: 240 seconds]
kpshek has quit []
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
DrShoggoth has quit [Quit: Leaving]
jonahR has quit [Quit: jonahR]
binaryhat has joined #ruby
yasushi has joined #ruby
rootshift has joined #ruby
cs02rm0 has quit [Ping timeout: 244 seconds]
petey has quit [Ping timeout: 264 seconds]
Avahey has joined #ruby
griffindy has joined #ruby
SCommette has quit [Quit: SCommette]
shinobi_one has quit [Quit: shinobi_one]
aspires has quit []
shinobi_one has joined #ruby
hobodave has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
griffindy has quit [Client Quit]
duggiefresh has joined #ruby
aspires has joined #ruby
chrisja has quit [Quit: leaving]
enebo has quit [Quit: enebo]
Trevoke has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
geggam has quit [Remote host closed the connection]
Nyyx has joined #ruby
elaptics is now known as elaptics`away
scrogson has left #ruby ["Auf Wiedersehen"]
<swapna> regarding sketchup and ruby scripts... Anyone know if ruby scripts needs to be converted from dos to unix format in order for the plugins to work??
bradhe has quit [Ping timeout: 240 seconds]
rbartos has joined #ruby
itadder has joined #ruby
bradhe has joined #ruby
esposito has joined #ruby
unixpro1970 has joined #ruby
unixpro1970 has quit [Remote host closed the connection]
itadder has quit [Ping timeout: 240 seconds]
carif has joined #ruby
kiki_lamb has quit [Quit: leaving]
ndrei has quit [Ping timeout: 244 seconds]
polydius has joined #ruby
kiki_lamb has joined #ruby
nateberkopec has quit [Quit: Leaving...]
timonv has joined #ruby
phantomtiger has quit [Quit: phantomtiger]
fedesilva has joined #ruby
charlies_ has joined #ruby
esposito has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
timonv has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
sincereness has joined #ruby
Beoran_ has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
jjbohn has quit [Quit: Leaving...]
hiyosi has joined #ruby
Mongey has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
andrewlio has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
dapz has joined #ruby
lkba has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
grzywacz has quit [Read error: Operation timed out]
esposito has joined #ruby
freerobby has quit [Quit: Leaving.]
yasushi has quit [Remote host closed the connection]
chrisseaton has joined #ruby
andy__ has quit [Remote host closed the connection]