apeiros_ changed the topic of #ruby-lang to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
yubrew has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 252 seconds]
nathanstitt has quit [Quit: I growing sleepy]
Coincide_ has joined #ruby-lang
khaase_ has joined #ruby-lang
Coincidental has quit [Ping timeout: 265 seconds]
Avon has left #ruby-lang [#ruby-lang]
khaase__ has joined #ruby-lang
ddv has quit [Ping timeout: 245 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
psycho_one has joined #ruby-lang
khaase_ has quit [Ping timeout: 265 seconds]
verto_ has joined #ruby-lang
khaase__ has quit [Ping timeout: 265 seconds]
verto has quit [Ping timeout: 399 seconds]
havenwood has quit [Remote host closed the connection]
Guest62918 has quit [Ping timeout: 252 seconds]
psycho_one has quit [Ping timeout: 252 seconds]
ddv has joined #ruby-lang
Caius has joined #ruby-lang
dvorak_ has joined #ruby-lang
dvorak has quit [Disconnected by services]
dvorak_ is now known as dvorak
arBmind has quit [Ping timeout: 332 seconds]
lcdhoffman has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has joined #ruby-lang
starbucks has quit [Remote host closed the connection]
pixelhandler has quit [Quit: pixelhandler]
charliesome has joined #ruby-lang
starbucks has joined #ruby-lang
thomasxie has joined #ruby-lang
Johz has quit [Quit: Leaving]
symm- has quit [Ping timeout: 252 seconds]
robbyoconnor has joined #ruby-lang
starbucks has quit [Ping timeout: 264 seconds]
Krishve has joined #ruby-lang
<Krishve> hi
thomasxie has quit [Ping timeout: 240 seconds]
spuk has joined #ruby-lang
<Krishve> 7.When Ruby does a method look-up and can't find a particular method, it may a.call the method, method_respond b.call the method, method_missing c.throw a NoMethodError d.call the method, respond_to?
<Krishve> can the Ruby gurus please help with my Q's ?
jsodini has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
yubrew has joined #ruby-lang
<|jemc|> Krishve: sounds like homework which you'd be better helped by doing yourself
<Krishve> Thanks I have bunch of Q's which was given as test and I needed some gurus to validate them....
robbyoconnor has quit [Ping timeout: 264 seconds]
<apeiros> "c.throw a NoMethodError" - exceptions are raised, not thrown. throw exists in ruby too and means something different.
fragamus has joined #ruby-lang
<Krishve> thanks that was my answer too...
<apeiros> …
<apeiros> that wasn't an answer
<Krishve> means ?
<apeiros> that you should read past the first 4 words
nathanstitt has joined #ruby-lang
yubrew has quit [Ping timeout: 252 seconds]
marr has quit []
<Krishve> ok thanks...are there any paid formus or someone who can validate my answers ? I have 12 very basic Q's
simono has joined #ruby-lang
jsodini has quit [Quit: Linkinus - http://linkinus.com]
symm- has joined #ruby-lang
lewis has joined #ruby-lang
lewis has quit [Changing host]
lewis has joined #ruby-lang
willmarshall has joined #ruby-lang
mistym_ has joined #ruby-lang
<whitequark> no, do your homework yourself.
mistym_ has quit [Remote host closed the connection]
thomasxie has joined #ruby-lang
mistym has quit [Ping timeout: 240 seconds]
khaase has joined #ruby-lang
tkuchiki has joined #ruby-lang
Krishve has quit [Quit: Page closed]
khaase has quit [Ping timeout: 265 seconds]
nathanstitt has quit [Quit: I growing sleepy]
symm- has quit [Ping timeout: 265 seconds]
diegoviola has joined #ruby-lang
lsegal has joined #ruby-lang
alexju has joined #ruby-lang
jxie has quit [Read error: Connection reset by peer]
thomasxie has quit [Remote host closed the connection]
simono has quit [Quit: Textual IRC Client: www.textualapp.com]
<wallerdev> lol
<wallerdev> "thanks that was my answer too"
mistym has joined #ruby-lang
jxie has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
toretore has quit [Quit: This computer has gone to sleep]
yfeldblum has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
yubrew has joined #ruby-lang
mister_i_ has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
mister_integer has joined #ruby-lang
mykoweb_ has joined #ruby-lang
yubrew has quit [Ping timeout: 264 seconds]
Cakey has joined #ruby-lang
mykoweb has quit [Ping timeout: 265 seconds]
wallerdev has quit [Quit: wallerdev]
starbucks has joined #ruby-lang
mistym has quit [Remote host closed the connection]
jxie has quit [Ping timeout: 255 seconds]
mykoweb has joined #ruby-lang
jxie has joined #ruby-lang
mykoweb_ has quit [Read error: Connection reset by peer]
lewis has quit [Ping timeout: 258 seconds]
tylersmith has joined #ruby-lang
mistym has joined #ruby-lang
mykoweb has quit [Ping timeout: 240 seconds]
khaase has joined #ruby-lang
jxie has quit [Ping timeout: 264 seconds]
mykoweb has joined #ruby-lang
Paradox has quit [Ping timeout: 252 seconds]
jxie has joined #ruby-lang
omosoj has quit [Quit: Leaving]
psycho_one has joined #ruby-lang
khaase has quit [Ping timeout: 265 seconds]
nathanstitt has joined #ruby-lang
psycho_one has quit [Ping timeout: 245 seconds]
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
mykoweb_ has joined #ruby-lang
mykoweb has quit [Read error: Connection reset by peer]
Guest21382 has quit [Ping timeout: 252 seconds]
Paradox has joined #ruby-lang
jxie has quit [Ping timeout: 240 seconds]
KM has joined #ruby-lang
robbyoconnor has joined #ruby-lang
KM is now known as Guest35499
jxie has joined #ruby-lang
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
junkmechanic_ has joined #ruby-lang
robbyoconnor has quit [Max SendQ exceeded]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robbyoconnor has joined #ruby-lang
yubrew has joined #ruby-lang
yubrew has quit [Ping timeout: 240 seconds]
Coincide_ has quit []
sepp2k has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Quit: Konversation terminated!]
fragamus has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Ping timeout: 255 seconds]
lewis has joined #ruby-lang
Coincidental has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
gix has quit [Ping timeout: 252 seconds]
vpretzel_ has joined #ruby-lang
vpretzel has quit [Ping timeout: 245 seconds]
gix has joined #ruby-lang
vpretzel_ is now known as vpretzel
willmarshall has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lewix has joined #ruby-lang
charliesome has joined #ruby-lang
knu0 has quit [Ping timeout: 252 seconds]
lewis has quit [Remote host closed the connection]
KM|2 has joined #ruby-lang
Guest35499 has quit [Read error: Connection reset by peer]
khaase has joined #ruby-lang
ij has quit [Ping timeout: 240 seconds]
khaase has quit [Ping timeout: 265 seconds]
lcdhoffman has joined #ruby-lang
lewis has joined #ruby-lang
mykoweb_ has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
mykoweb has quit [Ping timeout: 252 seconds]
houhoulis has joined #ruby-lang
wallerdev has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
tylersmi_ has joined #ruby-lang
havenwood has joined #ruby-lang
_JokerDoom has joined #ruby-lang
x0f has quit [Ping timeout: 255 seconds]
tylersmi_ is now known as tylersmith_
tylersmith_ has quit [Client Quit]
JokerDoom has quit [Ping timeout: 265 seconds]
tylersmith has quit [Ping timeout: 276 seconds]
fragamus has joined #ruby-lang
xcesariox has joined #ruby-lang
xcesariox has quit [Max SendQ exceeded]
yfeldblum has joined #ruby-lang
xcesariox has joined #ruby-lang
fragamus has quit [Client Quit]
toastynerd has joined #ruby-lang
fragamus has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
toastynerd has joined #ruby-lang
starbucks has quit [Remote host closed the connection]
toastynerd has quit [Ping timeout: 245 seconds]
toastynerd has joined #ruby-lang
jxie has quit [Ping timeout: 255 seconds]
toastynerd has quit [Remote host closed the connection]
doitjay has joined #ruby-lang
jxie has joined #ruby-lang
danijoo_ has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
khaase has joined #ruby-lang
JohnBat26 has joined #ruby-lang
khaase has quit [Ping timeout: 265 seconds]
psycho_one has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
ledestin has joined #ruby-lang
iamcalledrob has joined #ruby-lang
woollyams has joined #ruby-lang
Cakey has quit [Ping timeout: 255 seconds]
psycho_one has quit [Ping timeout: 258 seconds]
ascarter has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
yubrew has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
Miphix has quit [Quit: Leaving]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yubrew has quit [Ping timeout: 252 seconds]
iamcalledrob_ has joined #ruby-lang
iamcalledrob has quit [Ping timeout: 245 seconds]
iamcalledrob_ has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby-lang
iamcalledrob_ has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
knu0 has joined #ruby-lang
toastynerd has joined #ruby-lang
woollyams has joined #ruby-lang
vpretzel has quit [Quit: Adios!]
amclain has quit [Quit: Leaving]
khaase has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
Coincidental has quit [Remote host closed the connection]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
khaase has quit [Ping timeout: 265 seconds]
Cakey has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
doitjay has quit [Quit: Leaving]
hakunin_ has joined #ruby-lang
yubrew has joined #ruby-lang
Cakey has quit [Ping timeout: 240 seconds]
hakunin has quit [Ping timeout: 276 seconds]
ap4y has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
yubrew has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
houhoulis has quit [Remote host closed the connection]
brianpWins has joined #ruby-lang
knu0 has quit [Ping timeout: 252 seconds]
willmarshall has joined #ruby-lang
PSU_Boss has joined #ruby-lang
toastynerd has joined #ruby-lang
charliesome has joined #ruby-lang
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
[spoiler] has joined #ruby-lang
JPascal has joined #ruby-lang
crudson has quit [Quit: Leaving.]
tbuehlmann has joined #ruby-lang
jg has joined #ruby-lang
iamcalledrob_ has quit [Quit: Computer has gone to sleep.]
Cakey has joined #ruby-lang
iamcalledrob_ has joined #ruby-lang
Gue______ has joined #ruby-lang
jxie has quit [Ping timeout: 264 seconds]
<Gue______> found behavior of * operator of Vector class wired.
jxie has joined #ruby-lang
RobertBirnie has quit [Read error: Connection reset by peer]
RobertBirnie has joined #ruby-lang
<Gue______> document says * operator would 'Multiplies the vector by x, where x is a number or another vector.'
khaase has joined #ruby-lang
<Gue______> but it does nothing but rails a exception when x is a Vector
<Gue______> raise
Gu_______ has joined #ruby-lang
Gu_______ has quit [Client Quit]
Gu_______ has joined #ruby-lang
Gu_______ has quit [Client Quit]
yanke_guo has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
khaase has quit [Ping timeout: 265 seconds]
yubrew has joined #ruby-lang
Gue______ has quit [Ping timeout: 258 seconds]
psycho_one has joined #ruby-lang
yubrew has quit [Ping timeout: 240 seconds]
psycho_one has quit [Ping timeout: 245 seconds]
yanke_guo has quit [Quit: Textual IRC Client: www.textualapp.com]
lewix has quit [Remote host closed the connection]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
GBrawl has joined #ruby-lang
_ht has joined #ruby-lang
<|jemc|> heh, 'rails an exception'
lewis has quit [Ping timeout: 265 seconds]
__JokerDoom has joined #ruby-lang
mister_integer has quit [Remote host closed the connection]
|jemc| has quit [Ping timeout: 252 seconds]
wallerdev has quit [Quit: wallerdev]
_JokerDoom has quit [Ping timeout: 276 seconds]
kyb3r_ has quit [Ping timeout: 276 seconds]
kyb3r_ has joined #ruby-lang
khaase has joined #ruby-lang
khaase has quit [Changing host]
khaase has joined #ruby-lang
relix has joined #ruby-lang
crudson has joined #ruby-lang
willmarshall has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
psycho_one has joined #ruby-lang
mistym has quit [Remote host closed the connection]
tris has quit [Ping timeout: 245 seconds]
iamcalledrob_ has quit [Quit: Computer has gone to sleep.]
yubrew has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
yubrew has quit [Ping timeout: 240 seconds]
banister has joined #ruby-lang
toastynerd has joined #ruby-lang
woollyams has quit [Read error: Connection reset by peer]
woollyams has joined #ruby-lang
banister has quit [Ping timeout: 252 seconds]
toastynerd has quit [Ping timeout: 264 seconds]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
scepticulous has joined #ruby-lang
knu0 has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
Fushi has joined #ruby-lang
benlovell has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
banister has quit [Read error: Connection reset by peer]
knu0 has quit [Ping timeout: 252 seconds]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
lolmaus has joined #ruby-lang
kitak_ has quit [Remote host closed the connection]
psycho_one has quit [Remote host closed the connection]
banister has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby-lang
banister has joined #ruby-lang
kitak_ has joined #ruby-lang
alexju has quit [Remote host closed the connection]
BucOder has joined #ruby-lang
yubrew has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.3]
symm- has joined #ruby-lang
yubrew has quit [Ping timeout: 255 seconds]
toastynerd has joined #ruby-lang
iamcalledrob_ has joined #ruby-lang
banister has quit [Ping timeout: 252 seconds]
toastynerd has quit [Ping timeout: 255 seconds]
iamcalledrob_ has quit [Ping timeout: 252 seconds]
elia has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ikrima has joined #ruby-lang
BucOder has quit [Quit: Computer has gone to sleep.]
BucOder has joined #ruby-lang
jhass|off is now known as jhass
symm- has quit [Ping timeout: 252 seconds]
BucOder has quit [Quit: Computer has gone to sleep.]
anthemas has joined #ruby-lang
kitak_ has quit [Remote host closed the connection]
<anthemas> hello
<anthemas> ive installed mysql2 as a gem and i cannot use it with require 'mysql'
<anthemas> even using require 'rubygems' first doesnt do the trick
<anthemas> gem list shows me mysql2<0.3.16>
<jhass> no mysql.rb in there
kitak_ has joined #ruby-lang
<[spoiler]> this reminds me though, I hate it when a game is called xx and you have to require it as xy or something; such a dick move, developer.
<anthemas> even mysql2 doesnt work
BucOder has joined #ruby-lang
<jhass> does gem which mysql2 say anything?
GBrawl has quit [Quit: Lingo - http://lingoirc.com]
<anthemas> how do you mean that?
<jhass> gem which mysql2
<jhass> command for your terminal
Xzyx987X has quit [Ping timeout: 258 seconds]
<anthemas> yes returns path to mysql2.rb
<anthemas> i also copied libmysql.dll to ruby/bin
<jhass> does gem env list the same interpreter as ruby -v?
<anthemas> gem env list gives me gem::commandlineerror
<anthemas> unkown environment options
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> `gem env` is the command
<anthemas> looks fine
Xzyx987X has joined #ruby-lang
<jhass> okay, make a gist with the output of gem env, gem which mysql2, ruby -v and ruby -rmysql2 -e '1+1' then please
BucOder has quit [Quit: Computer has gone to sleep.]
yubrew has joined #ruby-lang
BucOder has joined #ruby-lang
Cakey has quit [Ping timeout: 240 seconds]
tkuchiki_ has joined #ruby-lang
<anthemas> jhass, here is the output: http://codepaste.net/hasbwe
tkuchiki_ has quit [Remote host closed the connection]
<jhass> ah, so that "doesn't work" is a segmentation fault
<jhass> you should've mentioned that
<anthemas> i shouldve known that
<anthemas> before :)
Cakey has joined #ruby-lang
<jhass> well, in general it helps to post actual error messages
<jhass> so, that's most likely happening because it links to/loads a different libmysqlclient than it was built against. Don't ask me for the specifics in windows though
tkuchiki has quit [Ping timeout: 255 seconds]
<anthemas> if i delete libmysql.dll from the ruby bin folder the segmentation error is gone
<jhass> another possibility is that your mysql2.so was built against a different ruby or system
yubrew has quit [Ping timeout: 255 seconds]
<jhass> ruby -rmysql2 -e '1+1' has no output then?
<anthemas> its returns mysql2.so load error
<jhass> (11:04:07) jhass: well, in general it helps to post actual error messages
iamcalledrob_ has joined #ruby-lang
nofxx__ has quit [Ping timeout: 264 seconds]
<anthemas> the file exists, just checked it
<anthemas> das angegebene modul wurde nicht gefunden = the specified modul was not found
kitak_ has quit [Remote host closed the connection]
<jhass> bad error message but I guess that's indeed it not finding the dll
<jhass> sorry, I just don't know enough about the windows dynamic library stuff to help you further
<anthemas> np, thanks anyway
symm- has joined #ruby-lang
<anthemas> found an answer to the problem
iamcalledrob_ has quit [Ping timeout: 264 seconds]
toastynerd has joined #ruby-lang
workmad3 has joined #ruby-lang
JPascal has quit []
brianpWins has quit [Quit: brianpWins]
toastynerd has quit [Ping timeout: 258 seconds]
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
Cakey has quit [Ping timeout: 258 seconds]
<anthemas> jhass, creating a mingw compatible 64bit library did the job
<jhass> ok, great
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
ikrima has quit [Ping timeout: 252 seconds]
benlovell has quit [Ping timeout: 264 seconds]
BucOder has quit [Quit: Computer has gone to sleep.]
JPascal has joined #ruby-lang
anthemas has quit [Quit: Page closed]
stamina has joined #ruby-lang
khaase has quit [Remote host closed the connection]
phansch has joined #ruby-lang
ur5us has joined #ruby-lang
knu0 has joined #ruby-lang
sozorogami has joined #ruby-lang
sozorogami has quit [Remote host closed the connection]
JPascal has quit []
yfeldblum has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
yubrew has joined #ruby-lang
sozorogami has joined #ruby-lang
sozorogami has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
psycho_one has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
elia has joined #ruby-lang
banister has joined #ruby-lang
yubrew has quit [Ping timeout: 258 seconds]
koos303 has joined #ruby-lang
psycho_o_ has joined #ruby-lang
psycho_one has quit [Read error: Connection reset by peer]
alexju has joined #ruby-lang
iamcalledrob_ has joined #ruby-lang
kitak_ has joined #ruby-lang
alexju has quit [Ping timeout: 276 seconds]
Caius has quit [*.net *.split]
ozzloy has quit [*.net *.split]
PSU_Boss has quit [*.net *.split]
elia has quit [Quit: Computer has gone to sleep.]
ozzloy has joined #ruby-lang
PSU_Boss has joined #ruby-lang
PSU_Boss has quit [Changing host]
PSU_Boss has joined #ruby-lang
JPascal has joined #ruby-lang
iamcalledrob_ has quit [Ping timeout: 255 seconds]
marr has joined #ruby-lang
toastynerd has joined #ruby-lang
symm- has quit [Ping timeout: 265 seconds]
nertzy has joined #ruby-lang
elia has joined #ruby-lang
Caius has joined #ruby-lang
toastynerd has quit [Ping timeout: 255 seconds]
khaase has joined #ruby-lang
elia has quit [Client Quit]
robmiller has quit [Quit: Leaving.]
khaase has quit [Ping timeout: 265 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elia has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
faces has quit [Ping timeout: 240 seconds]
JPascal has quit []
face has joined #ruby-lang
JPascal has joined #ruby-lang
khaase has joined #ruby-lang
khaase has joined #ruby-lang
khaase has quit [Changing host]
robmiller has joined #ruby-lang
koos303 has quit [Ping timeout: 264 seconds]
yubrew has joined #ruby-lang
arBmind has joined #ruby-lang
khaase_ has joined #ruby-lang
khaase__ has joined #ruby-lang
michd is now known as MichD
yubrew has quit [Ping timeout: 255 seconds]
kazundo has joined #ruby-lang
khaase has quit [Ping timeout: 265 seconds]
ij has joined #ruby-lang
ij is now known as Guest34176
Guest34176 is now known as sie
sie has quit [Changing host]
sie has joined #ruby-lang
khaase_ has quit [Ping timeout: 265 seconds]
khaase__ has quit [Ping timeout: 265 seconds]
scepticulous has left #ruby-lang ["Gone"]
sepp2k has joined #ruby-lang
luiz_ has quit [Ping timeout: 240 seconds]
iamcalledrob_ has joined #ruby-lang
AKASkip has joined #ruby-lang
iamcalledrob_ has quit [Ping timeout: 258 seconds]
toastynerd has joined #ruby-lang
koos303 has joined #ruby-lang
luiz_ has joined #ruby-lang
toastynerd has quit [Ping timeout: 276 seconds]
koos303 has quit [Ping timeout: 264 seconds]
postmodern has quit [Quit: Leaving]
kyb3r_ has quit [Read error: Connection reset by peer]
kitak_ has quit [Remote host closed the connection]
kitak_ has joined #ruby-lang
kitak_ has quit [Ping timeout: 240 seconds]
elia has joined #ruby-lang
koos303 has joined #ruby-lang
Ono-Sendai has joined #ruby-lang
Ono-Sendai is now known as Ono-Sendai2
<Ono-Sendai2> Hi, I have a question regarding backslashes and gsub. '\\'.gsub(/\\/, '\\\\') returns "\\". Shouldn't it be "\\\\" ?
toretore has joined #ruby-lang
<jhass> >> print '\\\\'
<eval-in__> jhass => \\nil (https://eval.in/156825)
<jhass> so you replace \ by \\
lokeshguddu has joined #ruby-lang
lokeshguddu has quit [Client Quit]
<Ono-Sendai2> Yeah I'm trying to replace a single backslash by two backslashes
sarkyniin has joined #ruby-lang
<face> that's exactly what it's doing :o
<Ono-Sendai2> it's returning a single backslash
<Ono-Sendai2> AFAICT
<jhass> hm, maybe gsub interprets that as backreferences
<jhass> or an escaped backreference
<jhass> anyway, just add another \ß
<face> i assuemd it was interpreting your source '\\' as a single escaped backslash
<jhass> *\\
<canton7> yeah, same. you say "take this single backslash, and replace it with a double backslash"
<Ono-Sendai2> face: it is
<toretore> >> "\\\\".gsub(/\\/, '\\\\')
<eval-in__> toretore => "\\\\" (https://eval.in/156826)
<toretore> damit
<toretore> >> "\\\\".gsub(/\\/, '\\\\\\\\')
<eval-in__> toretore => "\\\\\\\\" (https://eval.in/156827)
<face> is it returning "\\" or "\\\\" and just printing it as "\\"?
<jhass> face: "\\" is the string representation of \
<Ono-Sendai2> irb(main):068:0> '\\'.gsub(/\\/, '\\\\') => "\\"
<face> jhass: i know, but if he's printing the output wouldn't it be unescaping it
<jhass> he's not printing it
<toretore> first, you need to escape the backslash in the string, then you need to escape it for the regex enging, which interprets it as a capture reference
<Ono-Sendai2> i have no parentheses tho, presumably it shouldn't be doing capturing
ldnunes has joined #ruby-lang
<toretore> it doesn't matter
GBrawl has joined #ruby-lang
<toretore> the parsing of the replacement string is independent of that
<toretore> it's just the syntax it expects
<Ono-Sendai2> god i hate regexps :)
yubrew has joined #ruby-lang
luiz_ has quit [Ping timeout: 252 seconds]
<Ono-Sendai2> there's raw HTML in the doc btw
<Ono-Sendai2> The text enclosed by the n<sup>th</sup> group of parentheses
x0f has joined #ruby-lang
<Ono-Sendai2> btw, is there a simple way to replace a single backslash with two blackslashes, without using regexps?
jg has quit [Ping timeout: 265 seconds]
<Ono-Sendai2> Would be easy enough in e.g. c++, character manip seems to be quite tricky in ruby tho
x0f has quit [Remote host closed the connection]
<toretore> how would you do it in c++?
yubrew has quit [Ping timeout: 258 seconds]
<Ono-Sendai2> iterate over the string character by character
<toretore> you can do that in ruby
<Ono-Sendai2> if the character is a single backslash, replace with two backslashes
<Ono-Sendai2> it seems to be tricky because ruby doesn't have a character type AFAIK
<toretore> '\\\\'.chars.map{|c| c == '\\' ? '\\\\' : c }.join
<toretore> >> '\\\\'.chars.map{|c| c == '\\' ? '\\\\' : c }.join
<eval-in__> toretore => "\\\\\\\\" (https://eval.in/156828)
<Ono-Sendai2> also that looks very slow
<Ono-Sendai2> this code should ideally run reasonably fast
<toretore> it'll be fast enough, probably
x0f has joined #ruby-lang
<Ono-Sendai2> :)
<toretore> it's not much different from what it would be in c++
<Ono-Sendai2> yes it is
<Ono-Sendai2> it looks like it will create O(n) temp strings
<Ono-Sendai2> where n is original string length
<toretore> how would c++ avoid that? does it already have the chars inside the string?
relix has quit [Ping timeout: 245 seconds]
<Ono-Sendai2> with C++ i would alloc space for the resulting string once
relix has joined #ruby-lang
khaase has joined #ruby-lang
khaase has quit [Changing host]
khaase has joined #ruby-lang
jgpawletko has joined #ruby-lang
<jhass> ruby is not your language if you worry about that level of optimization while writing code. Optimize if it happens to be a bottleneck
<toretore> i wouldn't worry too much about it, unless you're writing something that actually needs to be very efficient
<Ono-Sendai2> it does
<toretore> and then you shouldn't be using ruby in the first place
<Ono-Sendai2> well, not *very* efficient
<Ono-Sendai2> wasn't my choice to use ruby
<toretore> what is this functionality for?
<Ono-Sendai2> for our exporter for SketchUp, which has a ruby API
<Ono-Sendai2> i need to do some javascript escaping, hence the replacing of single blackslash with double backslash
<toretore> i really don't think this is going to be close to becoing a bottleneck in your program
<yorickpeterse> toretore: re "don't use Ruby for performance" that's a bullshit statement
<Ono-Sendai2> toretore: you might be right
<Ono-Sendai2> this is only for GUI display
<toretore> yorickpeterse: explain?
<Ono-Sendai2> ruby definitely is a bottleneck elsewhere tho
<toretore> how so?
<yorickpeterse> toretore: I hear too many people say "Ruby is slow anyway so who cares about performance". You can write perfectly well performing Ruby code
<toretore> not as well perfoming as c
<Ono-Sendai2> it can take > 1 minute to export our scenes
<yorickpeterse> Yeah no shit
<toretore> that's just the fact
<yorickpeterse> And C is not going to perform as well as x86 assembly
<Ono-Sendai2> the equivalent code in C++ could prob do it in a few seconds
khaase has quit [Ping timeout: 265 seconds]
<yorickpeterse> So lets write everything in x86 assembly
<Ono-Sendai2> (i do like ruby btw :) )
<yorickpeterse> You're comparing apples and donkeys
<toretore> no, we're not in this case
<toretore> Ono-Sendai2 gave a reasonable example above
<toretore> 1 min vs few secs
<toretore> Ono-Sendai2: i wouldn't be surprised if that could be optimized quite a bit though
<Ono-Sendai2> yeah it probably could be
<yorickpeterse> if it's about the chars map bit yes, that's going to be shit slow for larger inputs
<Ono-Sendai2> will still be at least 10x slower than C++ at a guess
<toretore> ruby makes it easy to write bad-performing code
<yorickpeterse> Because first you break the input up in to charcters (= extra String allocations for every character), then you map it while creating more Strings
<toretore> that could perform better
cbreeze has joined #ruby-lang
<toretore> a lot of the "convenience" stuff, like chains of map.inject.whatever could be more performant written in a more procedural fashion
x0f has quit [Quit: quit]
centrx has joined #ruby-lang
x0f has joined #ruby-lang
ta_ has joined #ruby-lang
moogumbo has quit [Ping timeout: 265 seconds]
Arch4ngel has quit [Ping timeout: 265 seconds]
Arch4ngel has joined #ruby-lang
GarethAdams has quit [Ping timeout: 265 seconds]
<Ono-Sendai2> gonna compare regexp vs chars map perf
<Ono-Sendai2> btw, are regexp compilations cached?
ta has quit [Ping timeout: 265 seconds]
moogumbo has joined #ruby-lang
canton7 has quit [Excess Flood]
<ohsix> how would you already know about the length of the new string ... or the original length at all without going over the string multiple times in c++, doesn't imply you never have to do inefficient stuff
<yorickpeterse> Regexp is most likely going to be faster and more memory efficient
canton7 has joined #ruby-lang
GarethAdams has joined #ruby-lang
<ohsix> c strings are fun for hacking!!11;]
<Ono-Sendai2> ohsix: two ways, first is, do a pass over the input string once, to count the number of \'s
<Ono-Sendai2> ohsix: second way is just to guess, and allocate a bit of extra space
<ohsix> i know how you would do it, but it's not implied in what you stated
<ohsix> guessing or making a buffer 'big enough' is one of the major c hazards ;D
<Ono-Sendai2> this is C++
<Ono-Sendai2> i would use push_back
<Ono-Sendai2> is safe
<Ono-Sendai2> C string manip does indeed suck
<ohsix> why would you guess if you were using std::string at all
<ohsix> it's going to be managing the rope or whatever behind the scenes
iamcalledrob_ has joined #ruby-lang
<ohsix> invoking the heap at indeterminate times
<ohsix> with its own distinct behaviour, the default allocator might really suck for the manipulations you are doing
<Ono-Sendai2> 'might'
<Ono-Sendai2> odds are it will still spank ruby tho
<ohsix> yes, and .map 'might' suck, to not treat the actual goings on of either case is special pleading
khaase has joined #ruby-lang
khaase has joined #ruby-lang
khaase has quit [Changing host]
arBmind has quit [Quit: Leaving.]
yfeldblum has joined #ruby-lang
sie has quit [Ping timeout: 258 seconds]
iamcalledrob_ has quit [Ping timeout: 252 seconds]
<Ono-Sendai2> regexp seems faster than chars.map
<Ono-Sendai2> about twice as fast
toastynerd has joined #ruby-lang
<ohsix> a specialized state machine that does only what you want to a string can be pretty fast
<Ono-Sendai2> takes 864ms to go through a 3MB string
<ohsix> what pattern?
khaase has quit [Ping timeout: 265 seconds]
<ohsix> that sounds like a lot
toastynerd has quit [Read error: No route to host]
<Ono-Sendai2> that's with a lot of matches
toastynerd has joined #ruby-lang
<ohsix> every character?
<Ono-Sendai2> one sec, i'll post the code somewhere
<Ono-Sendai2> without any matches, regexp spanks charmap
<Ono-Sendai2> elapsed charmap: 1619.0929999999998 ms
<Ono-Sendai2> elapsed regexp: 6.0 ms
yfeldblum has quit [Ping timeout: 264 seconds]
<centrx> Regexes are faster than making your own state machine
<Ono-Sendai2> i don't need a state machine in this case though, i just want to replace a single character
Cakey has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
<centrx> Ono-Sendai2, just use gsub then
<Ono-Sendai2> centrx: Yeah i will.
toastynerd has quit [Ping timeout: 258 seconds]
<ohsix> heh, making your own state machine should be equivalent, if the regex library isn't a backtracking type
<centrx> That's absurd
<ohsix> huh?
<Ono-Sendai2> a regexp should be implemented with a FSM, right? :)
<ohsix> shrug
<ohsix> depends on what you're doing, but if you have antagonistic patterns a backtracking one can be messed with ;D
x0f has quit [Quit: quit]
cnivolle has joined #ruby-lang
x0f has joined #ruby-lang
<Ono-Sendai2> btw, the fact that gsub is so much slower when actual matches occur (~80 slower), would imply there are some missed optimisations in gsub
<centrx> Slower than what?
<centrx> How are you testing this?
<Ono-Sendai2> slower than when no matches occur
<ohsix> it might not literally do what it seems by its name, it might just use regex or something behind the scene
<Ono-Sendai2> see my pastebin
<ohsix> does g sound for glob?
<centrx> Use Benchmark.bmbm
<ohsix> stand for
<Ono-Sendai2> i would say gsub could be 10x or more faster
cnivolle has quit [Remote host closed the connection]
<Ono-Sendai2> in the matching case
cnivolle has joined #ruby-lang
<jhass> ohsix: global, there's sub which only replaces the first match
<ohsix> k
<ohsix> i don't know anything about ruby, basically; but if the doc is any indication it might be hitting the same regular expression library as if you were just doing it yourself, indirectly measuring the same thing
<Ono-Sendai2> not sure what you mean. My point is that gsub seems to be doing something very inefficient in the matching case
<centrx> Ono-Sendai2, Would you not expect changing the string to be slower than merely scanning it?
<Ono-Sendai2> such as allocing a new string when each match (and replacement) occurs
<Ono-Sendai2> centrx: Yes, but not that much slower
<centrx> Ono-Sendai2, Why not? It's still extremely fast.
<Ono-Sendai2> no it's not
<Ono-Sendai2> it's 71x slower when matches occur
<ohsix> sure, it could do worse, but you basically have the same expressions evaluated by the same thing for the larger part of it
<Ono-Sendai2> if the code was optimised, should be 2 or 3x slower
<centrx> Ono-Sendai2, Why do you think that?
<Ono-Sendai2> when matches occur:
<Ono-Sendai2> elapsed charmap: 1748.1 ms
<Ono-Sendai2> elapsed regexp: 356.02099999999996 ms
<Ono-Sendai2> when no matches occur:
<Ono-Sendai2> elapsed charmap: 1613.093 ms
<Ono-Sendai2> elapsed regexp: 5.0 ms
<Ono-Sendai2> just pointing out a possible place for optimisation.
Cakey has quit [Ping timeout: 245 seconds]
<Ono-Sendai2> the perf problem is with making the replacements, not finding the matches, it seems
yubrew has joined #ruby-lang
<ohsix> hmm it can use onig, which i saw googling around this stuff was at least comparable to pcre
<centrx> it's only 10x slower with a reasonably sized string
<ohsix> for some definition of reasonable
<centrx> 30 characters is quite a lot
<centrx> His test has 300,000 chars in a string
workmad3 has quit [Ping timeout: 252 seconds]
<centrx> actually, 3 million
<centrx> so, not relevant
<ohsix> yea, and he's said why he's testing with that too
<ohsix> haha nice try
<Ono-Sendai2> well i was just making the string large enough so that the timing values are measurable
<Ono-Sendai2> to get around timer granularity
<centrx> Ono-Sendai2, Use 1000.times { }
<Ono-Sendai2> but yeah, it was defn measuring large strings
<ohsix> there is no regex engine that's super fast hiding under gsub or even most of what's in re.c
<Ono-Sendai2> blen = RSTRING_LEN(str) + 30; /* len + margin */
yubrew has quit [Ping timeout: 264 seconds]
<Ono-Sendai2> looks like there is a little bit of padding for the dest string ?
<ohsix> oh man you're going to make me read it now
<ohsix> i was just satisfying my curiosity with how things are structured behind the scenes
mehlah has joined #ruby-lang
<Ono-Sendai2> i would change that to be a multiple of the input string len
<Ono-Sendai2> blen = RSTRING_LEN(str) * 2
<Ono-Sendai2> or somesuch
<Ono-Sendai2> not gonna recompile ruby and test here tho :)
arBmind has joined #ruby-lang
<ohsix> well in the C++ allocator thing we were sort of talking about earlier, there's a 'speed' to the allocation growth that you can be clever with, doubling may happen sometimes
<Ono-Sendai2> yes, i know
<ohsix> but if you make a change that's even 10% larger than the input, double is seriously too much for large strings
<Ono-Sendai2> well multiply by 1.2 or something then :)
<Ono-Sendai2> or 1.1
<Ono-Sendai2> it would also be much faster to do it in 2 passes
<Ono-Sendai2> 1 to get the final length
<Ono-Sendai2> then another pass to make the actual changes
<Ono-Sendai2> much faster in the sense that it would speed up the worst case greatly
<Ono-Sendai2> would slightly slow down intermediate cases (e.g. 1 match)
<Ono-Sendai2> I would go for the * 1.4 or so
<Ono-Sendai2> easy change to make
<ohsix> well no value is right, 30 characters is a pretty good guess for what might be typical
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
<Ono-Sendai2> the problem with a fixed number is it doesn't scale with input length
<ohsix> it just avoids a reallocatino for cat/append if it happens to not be larger than 30 in the output
<Ono-Sendai2> what if you are gsubing e.g. an html page?
<ohsix> if there's overhead for it being a large string you probably wouldn't
<Ono-Sendai2> a multiple of the input len is a better way IMO
jg has joined #ruby-lang
<ohsix> what if you use 1.2 of 3mb and it really is just 30 characters? it's about common usage, you don't need to make gsub bulletproof if people accept that it's slow for larger strings
<Ono-Sendai2> best is probably 2-pass tho
<ohsix> you could make sure you're using the fast regex engine instead
sarkyniin has quit [Ping timeout: 240 seconds]
<ohsix> also there's the backtracking problem, large inputs are a problem in general
arBmind has quit [Ping timeout: 240 seconds]
<Ono-Sendai2> it's a multiple of the input string len AFAICT
<Ono-Sendai2> so if it's 30 chars it will be 30 * 1.2
<ohsix> there's are going to be polynomial time stuff in a regular expression evaluation and not in a memory allocation, you'd invoke it twice to make two passes to avoid allocations
<Ono-Sendai2> if your original string is 30 chars i mean
<ohsix> there will be situations where that will win, but they are smaller than the ones where the allocation is far far far less expensive
phansch has quit [Ping timeout: 252 seconds]
<Ono-Sendai2> anyway, am not gonna argue this all day, have work to do. Just pointing out a change that could prob speed up gsub in some cases by ~40x
<ohsix> you can get arbitrarily clever with your string representation too, don't need to assume c strings or full copies or anything
<Ono-Sendai2> thanks for your help all
jg has quit [Client Quit]
<ohsix> i wonder if you couldn't build some sort of execution list with shift/moves you could evaluate at the end instead of doing reallocations ;] you'd need something you could insert into the original string as a tag ... so there'd be at least one copy, cuz that's not friendly
<Ono-Sendai2> there's all kinds of clever things you could do, would be a bitch to test tho :)
BucOder has joined #ruby-lang
<ohsix> well you'd generate things like you'd do for binary differencing, you could keep a running count of inserts to advise your final allocation too
relix has quit [Read error: Connection reset by peer]
relix_ has joined #ruby-lang
<Ono-Sendai2> that's kinda what i mean by 2-pass
<Ono-Sendai2> first pass counts the final string size
thisirs has joined #ruby-lang
psycho_o_ has quit []
<Ono-Sendai2> after that you allocate the correctly sized string
<Ono-Sendai2> second pass fill in the new string
<ohsix> you'd still have allocations to manage the instruction list
<ohsix> and you'd probably guess at a reasonable depth, like 30 ;]
yatish27 has joined #ruby-lang
<ohsix> maybe your string representation can keep the list with the string, and you never have to normalize it until it's used
<ohsix> then instead of keeping a rope like you do for std::string you'd have a list of overlays to produce the latest version when it's 'sampled' at that location
miqui has joined #ruby-lang
<ohsix> getting super silly now, but you could use that to defer character conversions and stuff too
thomasxie has joined #ruby-lang
<ohsix> there are restartable-computing and transactional memory models that work like that, pack everything to speculate with you
<Ono-Sendai2> that's why a simple 2 pass alg is better
<Ono-Sendai2> you just need an int to count the final string size
jxie has quit [Ping timeout: 276 seconds]
<Ono-Sendai2> actually I'm definitely gonna file a bug, submit a patch or something about his
<ohsix> you'd change the behaviour for gsub in ways that wouldn't be optimal for what it is now
<Ono-Sendai2> i disagree
jxie has joined #ruby-lang
<ohsix> heh this isn't something one disagrees with
<ohsix> the code is what it is now
<Ono-Sendai2> i disagree :)
<Ono-Sendai2> would maybe change to blen = max(RSTRING_LEN(str) + 30, (int)((float)RSTRING_LEN(str) * 1.2))
Atttwww has joined #ruby-lang
<Ono-Sendai2> so there's a little bit of constant padding, plus a multiplicative factor
<ohsix> you'd have to make the case for it being suitable for large strings, and that +30 isn't the only thing that implies it isn't
thomasxie has quit [Client Quit]
<Ono-Sendai2> well the whole point is to make it suitable for large strings
<ohsix> you want to make gsub work optimally for what you're doing and not just do the optimal thing? use the new regex engine
cbreeze has quit [Quit: Textual IRC Client: www.textualapp.com]
<ohsix> or do the 2 pass and literal replacement you keep talking about
<Ono-Sendai2> 2 pass is too tricky
<Ono-Sendai2> would leave that to actual ruby hackers
<Ono-Sendai2> (too tricky for me)
koos303 has quit [Quit: leaving]
<ohsix> for your circumstance you don't even need to use regular expressions
<Ono-Sendai2> sure, but is there a faster way in ruby?
<ohsix> i've said already i don't know ruby, but it would be pretty impressive if there weren't
<ohsix> the syntactic sugar stuff that is nice but slow is usually what's used unless it turns out to be insufficient
yfeldblum has joined #ruby-lang
jxie has quit [Ping timeout: 276 seconds]
<Ono-Sendai2> gsub is not syntactic sugar
<ohsix> .map is
<jhass> .map is not syntactic sugar either
jxie has joined #ruby-lang
<jhass> a.foo = bar is syntactic sugar for a.foo=(bar)
<ohsix> 04:50 < toretore:#ruby-lang> '\\\\'.chars.map{|c| c == '\\' ? '\\\\' : c }.join
<jhass> a << b is syntactic sugar for a.<<(b)
<jhass> .map is a normal method call
iamcalledrob_ has joined #ruby-lang
<ohsix> i guess if he didn't know aht i was referring to in the first place, referring to it again doesn't help
arBmind has joined #ruby-lang
thoolihan has quit [Ping timeout: 258 seconds]
phansch has joined #ruby-lang
thooliha- has joined #ruby-lang
thooliha- is now known as thoolihan
khaase has joined #ruby-lang
yfeldblum has quit [Ping timeout: 264 seconds]
alexju has joined #ruby-lang
kitak_ has joined #ruby-lang
khaase has quit [Ping timeout: 265 seconds]
iamcalledrob_ has quit [Ping timeout: 252 seconds]
arBmind has quit [Ping timeout: 276 seconds]
toastynerd has joined #ruby-lang
musurgia has joined #ruby-lang
alexju has quit [Ping timeout: 264 seconds]
elia has quit [Quit: Computer has gone to sleep.]
toastynerd has quit [Ping timeout: 258 seconds]
workmad3 has joined #ruby-lang
elia has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 255 seconds]
yubrew has joined #ruby-lang
heftig has joined #ruby-lang
DEac- has joined #ruby-lang
DEac-_ has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 255 seconds]
anjen has joined #ruby-lang
spastorino has joined #ruby-lang
<anjen> Hi folks, can anyone share a more efficient method for determining a file download is complete (FTP/SFTP) than using the classic filesize?... sleep N... filesize2? comparison?
lewis has joined #ruby-lang
lewis has quit [Changing host]
lewis has joined #ruby-lang
arBmind has joined #ruby-lang
banister has joined #ruby-lang
ghg has joined #ruby-lang
[spoiler] has quit [Quit: Leaving]
<miqui> hi folks.... in rake, is there a task that can be run globally before any other tasks? kinda like a pre-run hook ? am trying to setup a taks that reads config data that other tasks will need
ecnalyr has joined #ruby-lang
ghg has quit [Remote host closed the connection]
<miqui> but i want to avoid having to specify this dependancy for every task via => operator...
ghg has joined #ruby-lang
AncientAmateur has joined #ruby-lang
alexju has joined #ruby-lang
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robmiller has quit [Quit: Leaving.]
yfeldblum has joined #ruby-lang
ledestin_ has joined #ruby-lang
ledestin has quit [Ping timeout: 255 seconds]
ledestin_ is now known as ledestin
anjen has quit [Quit: anjen]
lewis has quit [Remote host closed the connection]
relix has joined #ruby-lang
nathanstitt has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
iamcalledrob_ has joined #ruby-lang
khaase has joined #ruby-lang
karamazov has joined #ruby-lang
banister_ has joined #ruby-lang
kitak_ has quit [Remote host closed the connection]
JPascal has quit []
baniste__ has joined #ruby-lang
yubrew has joined #ruby-lang
baniste__ has quit [Max SendQ exceeded]
banister has quit [Ping timeout: 240 seconds]
banister has joined #ruby-lang
ascarter has joined #ruby-lang
toastynerd has joined #ruby-lang
banister_ has quit [Ping timeout: 252 seconds]
iamcalledrob_ has quit [Ping timeout: 264 seconds]
khaase has quit [Ping timeout: 276 seconds]
<jhass> miqui: does it have to be a task? can't you just require some toplevel code in your Rakefile?
BucOder has quit [Quit: Computer has gone to sleep.]
lewis has joined #ruby-lang
dik_dak has joined #ruby-lang
<miqui> jhass: cool, yeah that should work too.. you have an example?
Macacity has joined #ruby-lang
loincloth has joined #ruby-lang
<miqui> jhass: it would be cool if the toplevel code runs when automgically when rake runs and before any task...
luiz_lha has joined #ruby-lang
<jhass> lib/a.rb: puts "run when loading the Rakefile"; Rakefile: require 'a' # note that I never actually tried that
kitak has quit [*.net *.split]
yfeldblum has joined #ruby-lang
kitak has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
<miqui> k thanks jhass
phansch has quit [Ping timeout: 265 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RobertBirnie has joined #ruby-lang
dik_dak has quit [Ping timeout: 255 seconds]
Nilium has quit [Ping timeout: 240 seconds]
h_h has joined #ruby-lang
closer has quit [*.net *.split]
closer has joined #ruby-lang
momomomomo has joined #ruby-lang
momomomomo has quit [Read error: Connection reset by peer]
closer has quit [*.net *.split]
closer has joined #ruby-lang
Nilium has joined #ruby-lang
momomomomo has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby-lang
starbucks has joined #ruby-lang
momomomomo has quit [Read error: Connection reset by peer]
dik_dak has joined #ruby-lang
momomomomo has joined #ruby-lang
momomomomo has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby-lang
BucOder has joined #ruby-lang
momomomomo has quit [Read error: Connection reset by peer]
Miphix has joined #ruby-lang
elia has joined #ruby-lang
momomomomo has joined #ruby-lang
momomomomo has quit [Read error: Connection reset by peer]
BucOder has quit [Client Quit]
phansch has joined #ruby-lang
ecnalyr has quit [Quit: Macbook has gone to sleep. . .]
ghg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robbyoconnor has joined #ruby-lang
mbj has joined #ruby-lang
enebo has joined #ruby-lang
RobertBirnie has joined #ruby-lang
AKASkip has left #ruby-lang [#ruby-lang]
mistym has joined #ruby-lang
mbj has quit [Client Quit]
mykoweb has joined #ruby-lang
iamcalledrob_ has joined #ruby-lang
GBrawl has quit [Remote host closed the connection]
khaase has joined #ruby-lang
khaase has joined #ruby-lang
khaase has quit [Changing host]
GBrawl has joined #ruby-lang
BucOder has joined #ruby-lang
iamcalledrob_ has quit [Ping timeout: 245 seconds]
rippa has joined #ruby-lang
khaase has quit [Ping timeout: 265 seconds]
toastynerd has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghg has joined #ruby-lang
ghg has quit [Remote host closed the connection]
ghg has joined #ruby-lang
stamina has quit [Quit: WeeChat 0.4.3]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
Cakey has joined #ruby-lang
Cakey has quit [Ping timeout: 255 seconds]
fragamus has quit [Quit: Computer has gone to sleep.]
Ono-Sendai2 has quit [Quit: ChatZilla 0.9.90.1 [Firefox 29.0/20140421221237]]
momomomomo has joined #ruby-lang
momomomomo has quit [Read error: Connection reset by peer]
chouhoul_ has joined #ruby-lang
toretore has quit [Quit: Leaving]
momomomomo has joined #ruby-lang
chouhoulis has quit [Ping timeout: 255 seconds]
momomomomo has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby-lang
Cakey has joined #ruby-lang
momomomomo has joined #ruby-lang
chouhoul_ has quit [Ping timeout: 276 seconds]
Paradox has quit [Ping timeout: 240 seconds]
elia has quit [Quit: Computer has gone to sleep.]
Cakey has quit [Ping timeout: 245 seconds]
Paradox has joined #ruby-lang
Cakey has joined #ruby-lang
khaase has joined #ruby-lang
AncientAmateur has quit [Remote host closed the connection]
GBrawl has quit [Read error: Connection reset by peer]
GBrawl has joined #ruby-lang
heftig has quit [Quit: Quitting]
toastynerd has joined #ruby-lang
seako has joined #ruby-lang
momomomomo has quit [Ping timeout: 276 seconds]
Johz has joined #ruby-lang
momomomomo has joined #ruby-lang
momomomomo has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby-lang
__butch__ has joined #ruby-lang
relix has quit [Read error: Connection reset by peer]
relix has joined #ruby-lang
RobertBirnie has joined #ruby-lang
momomomomo has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
momomomomo has joined #ruby-lang
arBmind has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
arBmind has quit [Ping timeout: 255 seconds]
momomomomo has quit [Read error: Connection reset by peer]
siflyn has joined #ruby-lang
momomomomo has joined #ruby-lang
momomomomo has quit [Read error: Connection reset by peer]
Paradox has quit [Quit: off to herp the derps]
charliesome has joined #ruby-lang
yfeldblum has quit [Ping timeout: 252 seconds]
yatish27 has quit []
eval-in__ has quit [Remote host closed the connection]
eval-in has joined #ruby-lang
momomomomo has joined #ruby-lang
momomomomo has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby-lang
momomomomo has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
momomomomo has joined #ruby-lang
momomomomo has quit [Read error: Connection reset by peer]
yatish27 has joined #ruby-lang
momomomomo has joined #ruby-lang
mistym has quit [Remote host closed the connection]
momomomomo has quit [Read error: Connection reset by peer]
AncientAmateur has joined #ruby-lang
benlovell has quit [Ping timeout: 252 seconds]
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby-lang
mikecmpbll has quit [Ping timeout: 245 seconds]
danijoo has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby-lang
danijoo has joined #ruby-lang
Asher has quit [Ping timeout: 240 seconds]
eval-in has quit [Remote host closed the connection]
Asher has joined #ruby-lang
eval-in has joined #ruby-lang
AncientAmateur has quit [Ping timeout: 240 seconds]
musurgia has left #ruby-lang [#ruby-lang]
Cakey has quit [Ping timeout: 258 seconds]
wallerdev has quit [Quit: wallerdev]
arooni-mobile has joined #ruby-lang
momomomomo_ has joined #ruby-lang
havenwood has joined #ruby-lang
momomomomo has quit [Ping timeout: 276 seconds]
momomomomo_ is now known as momomomomo
arBmind has joined #ruby-lang
AncientAmateur has joined #ruby-lang
hahuang65 has quit [Ping timeout: 240 seconds]
banister has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister_ has joined #ruby-lang
mistym has joined #ruby-lang
mikecmpbll has joined #ruby-lang
wallerdev has joined #ruby-lang
doitjay has joined #ruby-lang
momomomomo_ has joined #ruby-lang
momomomomo has quit [Ping timeout: 240 seconds]
momomomomo_ is now known as momomomomo
ghg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cakey has joined #ruby-lang
ghg has joined #ruby-lang
DEac- has quit [Ping timeout: 258 seconds]
ghg has quit [Client Quit]
DEac- has joined #ruby-lang
ghg has joined #ruby-lang
yfeldblum has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby-lang
chouhoul_ has joined #ruby-lang
starbucks has quit [Remote host closed the connection]
chouhoul_ has quit [Read error: Connection reset by peer]
chouhou__ has joined #ruby-lang
enebo has quit [Quit: enebo]
starbucks has joined #ruby-lang
saarinen has joined #ruby-lang
starbucks has quit [Read error: Connection reset by peer]
starbucks has joined #ruby-lang
chouhoulis has quit [Ping timeout: 276 seconds]
seako has quit [Quit: Leaving.]
elia has joined #ruby-lang
arBmind has quit [Ping timeout: 264 seconds]
diegoviola has joined #ruby-lang
Cakey has quit [Ping timeout: 252 seconds]
GBrawl has quit [Quit: Lingo - http://lingoirc.com]
loincloth has quit [Remote host closed the connection]
karamazov has quit [Remote host closed the connection]
pixelhandler has joined #ruby-lang
arBmind has joined #ruby-lang
Asher has quit [Quit: Leaving.]
lewis has quit [Quit: Leaving]
lewix has joined #ruby-lang
lewix has quit [Changing host]
lewix has joined #ruby-lang
enebo has joined #ruby-lang
sarkyniin has joined #ruby-lang
brianpWins has joined #ruby-lang
hahuang65 has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
rjayroach has joined #ruby-lang
Coincidental has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
AncientAmateur has quit [Remote host closed the connection]
dvxam has joined #ruby-lang
AncientA_ has joined #ruby-lang
BucOder has quit [Quit: Computer has gone to sleep.]
sharpmachine has quit [Remote host closed the connection]
BucOder has joined #ruby-lang
AncientA_ has quit [Ping timeout: 252 seconds]
diegoviola has quit [Quit: WeeChat 0.4.3]
workmad3 has quit [Ping timeout: 240 seconds]
arBmind has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
arBmind has joined #ruby-lang
BucOder has quit [Ping timeout: 260 seconds]
Coincidental has quit [Read error: Connection reset by peer]
AncientAmateur has joined #ruby-lang
Coincidental has joined #ruby-lang
alex-quiterio has joined #ruby-lang
chouhou__ has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
GBrawl has joined #ruby-lang
ikrima has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 255 seconds]
dvxam has quit [Quit: leaving]
sie has joined #ruby-lang
sie is now known as Guest39079
robbyoconnor has quit [Ping timeout: 265 seconds]
Johz has quit [Quit: Leaving]
loincloth has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
arBmind1 has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
achiu has quit [Ping timeout: 252 seconds]
arBmind has quit [Ping timeout: 252 seconds]
BucOder has joined #ruby-lang
mehlah has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
BucOder has quit [Ping timeout: 252 seconds]
sandbags has joined #ruby-lang
achiu has joined #ruby-lang
siflyn has quit []
rjayroach has quit [Remote host closed the connection]
alexju has quit [Read error: Connection reset by peer]
alex-quiterio has quit [Quit: Leaving.]
alexju has joined #ruby-lang
rjayroach has joined #ruby-lang
stulzer has quit [Quit: leaving]
saarinen has quit [Quit: saarinen]
tkuchiki has joined #ruby-lang
nofxx__ has joined #ruby-lang
arBmind has joined #ruby-lang
saarinen has joined #ruby-lang
arBmind1 has quit [Ping timeout: 252 seconds]
cnivolle_ has joined #ruby-lang
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 252 seconds]
sandbags has quit [Read error: Connection reset by peer]
cnivolle has quit [Ping timeout: 265 seconds]
arBmind has joined #ruby-lang
cnivolle_ has quit [Ping timeout: 265 seconds]
sharpmachine has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
alex-quiterio has joined #ruby-lang
mykoweb has joined #ruby-lang
GBrawl has quit [Quit: Lingo - http://lingoirc.com]
mykoweb has quit [Read error: No route to host]
mykoweb has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
arBmind1 has quit [Ping timeout: 240 seconds]
MichD is now known as michd
wallerdev has joined #ruby-lang
Miphix has quit [Read error: Connection reset by peer]
toretore has joined #ruby-lang
momomomomo has joined #ruby-lang
michd is now known as MichD
mykoweb has quit [Remote host closed the connection]
khaase has quit [Quit: Leaving...]
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 245 seconds]
ikrima has quit [Ping timeout: 252 seconds]
arBmind has joined #ruby-lang
arBmind1 has quit [Ping timeout: 264 seconds]
arBmind1 has joined #ruby-lang
yfeldblum has quit [Ping timeout: 264 seconds]
Fushi has quit [Quit: Connection closed for inactivity]
tkuchiki has quit [Remote host closed the connection]
arBmind has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby-lang
Guest39079 has quit [Quit: WeeChat 0.4.3]
Miphix has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
rjayroach has quit [Quit: leaving]
karamazov has joined #ruby-lang
BucOder has joined #ruby-lang
jaimef has quit [Excess Flood]
BucOder has quit [Ping timeout: 260 seconds]
wallerdev has quit [Quit: wallerdev]
jaimef has joined #ruby-lang
saarinen has quit [Quit: saarinen]
mistym_ has joined #ruby-lang
musurgia has joined #ruby-lang
mistym has quit [Ping timeout: 252 seconds]
mistym_ has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ghg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karamazov has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
cnivolle has joined #ruby-lang
mykoweb has joined #ruby-lang
arBmind1 has quit [Ping timeout: 264 seconds]
sandbags has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
sandbags has joined #ruby-lang
mistym has joined #ruby-lang
musurgia has left #ruby-lang [#ruby-lang]
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 252 seconds]
alex-quiterio has quit [Quit: Leaving.]
Paradox has joined #ruby-lang
postmodern has joined #ruby-lang
saarinen has joined #ruby-lang
nofxx__ has quit [Ping timeout: 264 seconds]
_ht has quit [Remote host closed the connection]
loincloth has quit [Remote host closed the connection]
sharpmachine has quit [Remote host closed the connection]
sandbags0 has joined #ruby-lang
sandbags has quit [Ping timeout: 252 seconds]
mjw has joined #ruby-lang
alexju has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
banister_ has quit [Read error: Connection reset by peer]
banister has joined #ruby-lang
Miphix has quit [Read error: Connection reset by peer]
mjw has left #ruby-lang [#ruby-lang]
loincloth has joined #ruby-lang
dwknoxy has joined #ruby-lang
diegoviola has joined #ruby-lang
jaimef has quit [Excess Flood]
jaimef has joined #ruby-lang
kyb3r_ has joined #ruby-lang
yfeldblum has joined #ruby-lang
Xzyx987X has quit [Ping timeout: 240 seconds]
Xzyx987X has joined #ruby-lang
workmad3 has joined #ruby-lang
mistym has joined #ruby-lang
Xzyx987X has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 258 seconds]
doitjay has quit [Quit: Leaving]
ghg has joined #ruby-lang
Asher has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
Xzyx987X has joined #ruby-lang
DanishMan has joined #ruby-lang
elia has joined #ruby-lang
mjw has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
spuk has joined #ruby-lang
mykoweb has quit [Ping timeout: 265 seconds]
wallerdev has joined #ruby-lang
ur5us has joined #ruby-lang
thisirs has quit [Read error: Connection reset by peer]
wallerdev has quit [Ping timeout: 255 seconds]
relix has joined #ruby-lang
AncientAmateur has quit [Remote host closed the connection]
phansch has quit [Quit: WeeChat 0.4.3]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mykoweb has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
jgpawletko has quit [Quit: jgpawletko]
charliesome has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
alex-quiterio has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
GBrawl has joined #ruby-lang
GBrawl has quit [Client Quit]
mykoweb has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sharpmachine has joined #ruby-lang
mykoweb has joined #ruby-lang
sandbags0 has quit [Remote host closed the connection]
sandbags has joined #ruby-lang
sandbags has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
mykoweb has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
mykoweb has joined #ruby-lang
dik_dak has quit [Quit: Leaving]
charliesome has joined #ruby-lang
symm- has joined #ruby-lang
sarkyniin has quit [Ping timeout: 258 seconds]
loincloth has quit [Remote host closed the connection]
lewix has quit [Ping timeout: 245 seconds]
nathanstitt has quit [Quit: I growing sleepy]
<zenspider> drbrain: oi. https://gist.github.com/ae161885db796e52f0f2 wtf?
<drbrain> zenspider: you started two instances of MyServer
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<drbrain> that's allowed in DRb
<zenspider> how in the fuck does that not raise on the second one?
elia has quit [Quit: Computer has gone to sleep.]
<zenspider> it can't open the port
<zenspider> so it just silently sits there pretending to do work?
omosoj has joined #ruby-lang
<drbrain> ah, hrm
<zenspider> the second process sits there and blocks on the first message send across drb
<zenspider> I should probably switch to unix sockets w/ the pid in the path or something
mykoweb has quit [Remote host closed the connection]
<zenspider> but this is retarded. absolutely borks on simple network programming standards
mykoweb has joined #ruby-lang
loincloth has joined #ruby-lang
cnivolle has quit []
<zenspider> is there a workaround? I would like to make minitest-autotest user friendly
mykoweb_ has joined #ruby-lang
<drbrain> looking
mykoweb has quit [Read error: Connection reset by peer]
sandbags has quit []
mjw1 has joined #ruby-lang
tris- has joined #ruby-lang
<drbrain> zenspider: the first time it opens an IPv4 port
<drbrain> then an IPv6 port
<drbrain> zenspider: if you change URI to "druby://:3141" it opens on all socket types at once
mjw has quit [Ping timeout: 240 seconds]
<drbrain> you could set an ACL to prevent non-localhost access
<zenspider> fuck me I hate ipv6... THAT is why it asked if ruby should be able to open a socket.
<zenspider> that's horrible. because the client is gonna always do the ipv4
miwood has joined #ruby-lang
elia has joined #ruby-lang
jhass is now known as jhass|off
<whitequark> IPv6 is fine, it's DRb which is broken here.
<whitequark> it shouldn't silently go to the next addrinfo entry when it fails to bind on the current one.
mykoweb_ has quit [Remote host closed the connection]
<zenspider> I agree with your latter point, I still think IPv6 is stupid in general
<whitequark> ?
mykoweb has joined #ruby-lang
<whitequark> we're already almost ran out of addresses
<centrx> Stop using so many addresses
<whitequark> you do realize there are more people on the planet than IPv4 addresses, right?
DanishMan has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
kitak_ has joined #ruby-lang
<centrx> Stop assigning so many addresses to people. Use the buddy system
<toretore> my fridge also needs an ip
<centrx> Your IP will be shared with with one friend of your choice and one U.S. Government employee.
<zenspider> and your fridge's handle. and lightbulb. and water spout. and icemaker
<centrx> You don't even need a fridge
mykoweb has quit [Ping timeout: 276 seconds]
<whitequark> zenspider: and that's perfectly fine. addresses need not be an artifically scarce resource.
dwknoxy has quit [Ping timeout: 265 seconds]
<xybre> I have like 15 internet capable devices myself, 3 of them have external IPs
yubrew has quit [Remote host closed the connection]
jaimef has quit [Excess Flood]
elia has quit [Quit: Computer has gone to sleep.]
jaimef has joined #ruby-lang
<zenspider> when we realized that we were running out of seconds in a time_t, they didn't re-invent our time system to fix it.
<zenspider> they made the number bigger
MichD is now known as michd
<xybre> Maybe that was a bad solution.
yfeldblum has joined #ruby-lang
<zenspider> right. obviously.
<xybre> Rather, maybe there was a better solution that was overlooked.
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby-lang
<xybre> I suppose would could have jsut doubled the size of an IP4 address. 192.168.0.0.0.0.0.1
saarinen has quit [Quit: saarinen]
crudson has quit [Quit: Leaving.]
<whitequark> the changes in the IP stack amount to enlarging the number...
robbyoconnor has joined #ruby-lang
<whitequark> you can't just change the packet structure without bumping the version anyway, so there's no way around redeploying everything
mykoweb has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
mykoweb has quit [Remote host closed the connection]
<whitequark> time_t has exactly the same problem. it breaks ABI, it breaks kernel interface, and it interacts badly with file formats.
mykoweb has joined #ruby-lang
<xybre> It's larger than a lot of platform's word and built in integer sizes, so fun stuff had to happen. But thats sorta the reason time was the size it was before.
<whitequark> or the largefile interface. it's only recently that wget gained an ability to download stuff over 2GB.
apeiros has quit [Remote host closed the connection]
spuk has quit [Ping timeout: 260 seconds]
apeiros has joined #ruby-lang
mykoweb has quit [Ping timeout: 245 seconds]
mykoweb_ has joined #ruby-lang
spuk has joined #ruby-lang
Coincide_ has joined #ruby-lang
Coincidental has quit [Ping timeout: 276 seconds]
starbucks has quit [Remote host closed the connection]
nathanstitt has joined #ruby-lang
alex-quiterio has quit [Quit: Leaving.]
__butch__ has quit [Quit: Leaving.]
Coincide_ has quit [Remote host closed the connection]
NemesisD has joined #ruby-lang
<NemesisD> hi guys. i'm having a problem with rmagick where it is built against an old version of imagemagick i no longer have. i am pointing bundler to use the github version and i can't for the life of me uninstall it
<NemesisD> i've run gem uninstall rmagick, gem list rmagick shows nothing, but bundle show rmagick: /home/michael/.rvm/gems/ruby-1.9.3-p545/bundler/gems/rmagick-79e1708c7f67
<zenspider> NemesisD: `rm -r` works if you have to
<zenspider> make sure you clean up the other rmagick stuff sibling to /gems/
<NemesisD> zenspider: hmm. like things that depend on it?
<zenspider> no, I mean the spec, docs, cache, etc.
<zenspider> you're trying to reinstall it, right? so the stuff that depend on it should be OK, assuming they're compatible with the new version
<NemesisD> good call, there was a gems/extensions/x86_64-linux/1.9.1/rmagick-2.13.2
<NemesisD> yeah attempting to reinstall it
wallerdev has joined #ruby-lang
<NemesisD> much to my surprise, emacs actually required a newish version of imagemagick with HDR support (wat) and the currently published rmagick refuses to install with HDR support enabled
<NemesisD> comedy of errors
<wallerdev> rmagick is a mess of memory leaks i thought
ghg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kavinder has joined #ruby-lang
yubrew has joined #ruby-lang
<NemesisD> it is. nothing has given me more trouble than rmagick
<whitequark> all because ruby's gc is too dumb to account for finalizable memory
<zenspider> NemesisD: emacs does?? huh. not for me. what version?
<zenspider> rmagick is the reason why imagescience exists, you know. ;)
woollyams has joined #ruby-lang
alex-quiterio has joined #ruby-lang
yubrew has quit [Ping timeout: 258 seconds]
mykoweb_ has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mykoweb_ has joined #ruby-lang
mykoweb has quit [Ping timeout: 265 seconds]
saarinen has joined #ruby-lang
starbucks has joined #ruby-lang
charliesome has joined #ruby-lang
NemesisD has quit [Ping timeout: 265 seconds]
toastynerd has quit [Remote host closed the connection]
mykoweb_ has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
doitjay has joined #ruby-lang
kitak_ has quit [Remote host closed the connection]
toastynerd has joined #ruby-lang
lewix has joined #ruby-lang
lewix has quit [Changing host]
lewix has joined #ruby-lang
karamazov has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
mykoweb has quit [Ping timeout: 276 seconds]
kazundo has quit [Quit: Leaving.]
ghg has joined #ruby-lang
Jamo___ is now known as Jamo
karamazov has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
ghg has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
ghg has joined #ruby-lang
chouhoulis has quit [Ping timeout: 245 seconds]
mjw1 has quit [Quit: Leaving.]
<zenspider> drbrain: Gem::Specification.lib_files is totally broken?
<zenspider> drbrain: compare ruby -rubygems -e 'p Gem::Specification.map(&:lib_files)'
mjw has joined #ruby-lang
<zenspider> vs ruby -rubygems -e 'p Gem::Specification.map(&:files)' (tho #files is so fucked...)
karamazov has joined #ruby-lang
<zenspider> @files doesn't have lib/* as a prefix
lewix has quit [Remote host closed the connection]
<drbrain> @files should be empty for installed gems
<drbrain> or nearly so
<drbrain> should be using the filesystem
<zenspider> don't think so. look at :325
mykoweb has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
<zenspider> I'm TRYING to get just the requirable files, and failing miserably because of that thing
kavinder has quit [Remote host closed the connection]
<drbrain> zenspider: the @files comes from the gemspec which doesn't contain anything in lib/ for installed gems
<zenspider> best I've got so far: ruby -rubygems -e 'p Gem::Specification.map { |s| s.files - s.test_files }.flatten.grep(/\.rb$/).map { |s| s.sub(/\.rb$/, "") }.sort'
<zenspider> I dunno what to tell you, instance_variable_get(:@files) returns plenty of content
<zenspider> but none of it has lib/ on the front, so lib_files doesn't match anything
<drbrain> zenspider: ruby -e 'p Gem::Specification.find_by_name("mechanize").files' doesn't show anything but rdoc files and manifest for me
<drbrain> because Gem::Specification#for_cache empties @files
<zenspider> ruby -rubygems -e 'p Gem::Specification.map { |s| s.instance_variable_get(:@files) }.flatten.size # => 450'
<drbrain> it seems only default gems have @files filed in with anything
<zenspider> again, immaterial. lib_files is broken
<zenspider> [[], [], [], [], ...] == broken
kitak_ has joined #ruby-lang
<drbrain> most of my gems don't have any files at all
<drbrain> or only documentation
<drbrain> sure lib_files is broken, but fixing it won't fix your problem
<drbrain> because there are no files for gems installed past when #for_cache was introduced
<zenspider> because fixing it to ACTUALLY RETURN LIB FILES is beyond rubygems?
<zenspider> how does that even make sense?
kitak_ has quit [Remote host closed the connection]
mjw has quit [Quit: Leaving.]
<drbrain> let me restate
<drbrain> #lib_files looking at #files is wrong, #lib_files needs to use the filesystem, not change its prefix
<drbrain> that the items in #files don't have "lib" on them is irrelevant
<zenspider> I don't give a fuck what's in @files. see the forest through all those pesky trees. I want the lib_files method to return the files in lib.
mjw has joined #ruby-lang
<drbrain> then why are you going on about not having "lib" so much?
kitak has quit [Remote host closed the connection]
lewix has joined #ruby-lang
kitak has joined #ruby-lang
<zenspider> I give up. Keep your broken method. Fuck me.
ari-_-e has joined #ruby-lang
stulzer has joined #ruby-lang
yubrew has joined #ruby-lang
jsullivandigs has joined #ruby-lang
stulzer has quit [Client Quit]
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
yubrew has quit [Ping timeout: 252 seconds]
tdy has quit [Quit: WeeChat 0.4.3]
tdy has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
mykoweb has quit [Ping timeout: 258 seconds]
houhoulis has joined #ruby-lang
kitak has quit [Remote host closed the connection]
kitak has joined #ruby-lang
starbucks has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
Coincidental has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ciao.]
Coincidental has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang