ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
apeiros has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
<erikh> hmm
<erikh> zenspider: if it works for you, tunnelblick is nice on os x
<erikh> but if you have a concentrator you'll probably be stuck with w/e
rolfb has quit [Quit: Linkinus - http://linkinus.com]
<zenspider> what's a concentrator?
<zenspider> is that like when you don't drink enough water?
<erikh> it's a hardware vpn
<erikh> heh
<erikh> basically take router, add crypto
_tca has left #ruby-lang [#ruby-lang]
kurko_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
slyphon has joined #ruby-lang
datanoise has joined #ruby-lang
<erikh> fwiw, ended up going with this
<erikh> #3
qwerxy has joined #ruby-lang
<erikh> still keeps the role and node count local to the case instrumentation without completely clobbering the super/teardown
<erikh> thanks for the comments.
havenn has joined #ruby-lang
qwerxy has quit [Client Quit]
datanoise has quit [Ping timeout: 256 seconds]
CaptainJet has quit []
justinram has quit [Read error: Connection reset by peer]
outoftime has quit [Quit: Leaving]
justinram has joined #ruby-lang
enebo has joined #ruby-lang
robbyoconnor has joined #ruby-lang
tenderlo_ has joined #ruby-lang
stardiviner has joined #ruby-lang
Kingy has quit [Quit: Leaving]
justinram has quit [Remote host closed the connection]
tenderlove has quit [Ping timeout: 245 seconds]
intellitech is now known as intellitech|afk
mwjcomputing has joined #ruby-lang
<Harzilein> hi
<Harzilein> is there something more current/maintained then cookiejar for parsing cookie-headers?
<Harzilein> than*
<Harzilein> cookiejar seems to have trouble with multiple cookies in a header
<drbrain> Harzilein: mechanize?
<Harzilein> drbrain: i'd like to do everything else by foot
<Harzilein> i.e. i just want to _parse_ set-cookie headers, not maintain a user agent object with them
gregmoreno has quit [Ping timeout: 245 seconds]
<zenspider> by foot?
<manveru> he likes doing things the... roundabout way :)
<zenspider> oh look... that sorta looks like a wheel... sorta...
Madis has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121026125834]]
toretore has quit [Quit: Leaving]
Kainore has quit []
<Harzilein> :D
<Harzilein> the mechanize cookiejar/cookieobject doesn't seem to provide a parse function for set-cookie headers
slyphon has quit [Ping timeout: 245 seconds]
swarley_ has joined #ruby-lang
<Harzilein> Mechanize::HTTP contains classes for communicated with HTTP servers. All API under this namespace is considered private and is subject to change at any time.
<Harzilein> that's not the kind of api i want in this case
<zenspider> _I_ see a parse function...
<drbrain> me too, and it's not in Mechanize::HTTP
<drbrain> Mechanize::Cookie.parse
<Harzilein> drbrain: that parses _one_ cookie as far as i can tell
<drbrain> that's not what the documentation says
<drbrain> Harzilein: I'm not sure what use Mechanize::Cookie.parse would be if it didn't parse multiple cookies in one go
<Harzilein> yeah, nvm, it does. i don't quite like its approach (splitting on both , and ; and then aggregating them again, but i guess that's the easiest way to make it robust
<Harzilein> s/again,/again)/
<zenspider> # Parses a Set-Cookie header line +str+ sent from +uri+ into an # array of Cookie objects
<drbrain> Harzilein: it has to deal with what browsers do, of course it's going to be ugly
swarley_ has left #ruby-lang [#ruby-lang]
<Harzilein> is there any advantage in this case to using %r instead of /.../?
<drbrain> it's an rdoc bug
postmodern has joined #ruby-lang
emptyflask has quit [Ping timeout: 245 seconds]
<erikh> ah, http
<erikh> your like smtp, but everyone still loves you
gsav has joined #ruby-lang
<erikh> s/your/you're/
m3nd3s has quit [Ping timeout: 245 seconds]
iamlacroix has joined #ruby-lang
gsav_ has joined #ruby-lang
iamlacroix has quit [Remote host closed the connection]
<manveru> wish i could love it...
GorbiE has quit []
bfreeman has quit [Quit: bfreeman]
<erikh> manveru: you know it well enough to have the sense not to
<erikh> side note, it's absolutely hilarious to get raggi going on http
<manveru> yeah, it'd just stab me in the back while i'm not watching
<erikh> well-formed data? schmell-formed data!
<manveru> if i had the choice between fixing http and total ipv6 coverage... i'd choose fixing http, i think :)
<manveru> or maybe just fix people to stop thinking about http as the magic layer that binds everything
<erikh> what do you mean? you mean there are other protocols layer 7 can use?
<manveru> :P
thone_ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
thone has quit [Ping timeout: 260 seconds]
havenn has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
brianpWins has quit [Quit: brianpWins]
imajes has joined #ruby-lang
datanoise has joined #ruby-lang
<ttilley> ...is there a way to force ruby to shotgun destroy and GC all objects at exit? or at least make valgrind not complain about leaked memory that's only "leaked" because manual cleanup before exit isn't necessary?
<ttilley> hm
<Harzilein> drbrain: -.-
mrsolo has quit [Quit: Leaving]
<Harzilein> oh well, guess i can use mechanize's cookie object then
<Harzilein> or cookiejar object
<Harzilein> thanks for pointing it out. maybe i should extract it and send a patch for the cookiejar gem
datanoise has quit [Ping timeout: 276 seconds]
slyphon has joined #ruby-lang
<zenspider> ttilley: look at ruby-talk@ in the last week or so. matz posted a file that cleans up valgrind for ruby
<zenspider> and the answer is: no. you can't. because ruby GC is conservative (and dumb)
<ttilley> fair enough
pkrnj has joined #ruby-lang
datanoise has joined #ruby-lang
dorei has quit []
slyphon has quit [Ping timeout: 245 seconds]
stardiviner has joined #ruby-lang
jxie has quit [Quit: leaving]
datanoise has quit [Ping timeout: 245 seconds]
<zenspider> hoe 3.3.0 released
Paradox has quit [Ping timeout: 252 seconds]
blazes816 has quit [Quit: blazes816]
CaptainJet has joined #ruby-lang
Paradox has joined #ruby-lang
tenderlo_ is now known as tenderlove
shtirlic has quit []
shtirlic has joined #ruby-lang
roadt has joined #ruby-lang
methods1 has joined #ruby-lang
methods has quit [Read error: Connection reset by peer]
gregmoreno has joined #ruby-lang
gmci has joined #ruby-lang
<dankest> What's the difference between this channel and #ruby?
gmci is now known as Guest46770
spuk has joined #ruby-lang
Guest46770 has quit [Client Quit]
tenderlove has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
<drbrain> dankest: this is the official channel
mpatel has left #ruby-lang [#ruby-lang]
<dankest> drbrain: thanks. What is the content difference between this channel and #ruby?
<drbrain> I don't visit #ruby, so I'm not sure
<drbrain> there are many that are in both channels
<dankest> drbrain: for sure. #ruby has like 5x more people in it, so I wasn't sure if there was a reason to idle here
<drbrain> I tried starting the process of getting the channels merged, but it's difficult to get the proper file in the proper place on ruby-lang.org
<erikh> well this channel has more characters in the name
sn0wb1rd has quit [Quit: sn0wb1rd]
lsegal has joined #ruby-lang
gregmore_ has joined #ruby-lang
methods has joined #ruby-lang
methods1 has quit [Read error: Operation timed out]
gregmoreno has quit [Ping timeout: 248 seconds]
slyphon has joined #ruby-lang
methods1 has joined #ruby-lang
methods1 has quit [Client Quit]
methods has quit [Read error: Connection reset by peer]
sepp2k1 has quit [Remote host closed the connection]
krohrbaugh has quit [Quit: Leaving.]
slyphon has quit [Ping timeout: 245 seconds]
<dankest> drbrain: how is Rathbone?
dankest has quit [Quit: Linkinus - http://linkinus.com]
seoaqua has joined #ruby-lang
Aria has joined #ruby-lang
datanoise has joined #ruby-lang
jackhammer2022 has joined #ruby-lang
countdigi has joined #ruby-lang
Aria has quit [Ping timeout: 260 seconds]
datanoise has quit [Ping timeout: 260 seconds]
ryanlecompte has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
charliesome has joined #ruby-lang
stonerfish has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
jackhammer2022 has quit [Read error: Connection reset by peer]
jackhammer2022 has joined #ruby-lang
havenn has joined #ruby-lang
stardiviner has joined #ruby-lang
bfreeman has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
mistym has quit [Remote host closed the connection]
RantriX has joined #ruby-lang
redbaritone has joined #ruby-lang
redbaritone has quit [Client Quit]
savage- has joined #ruby-lang
krohrbaugh has joined #ruby-lang
slyphon has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
seoaqua has quit [Ping timeout: 246 seconds]
d3vic3 has quit [Ping timeout: 246 seconds]
d3vic3 has joined #ruby-lang
alvaro_o has quit [Quit: Ex-Chat]
robbyoconnor has quit [Ping timeout: 246 seconds]
seoaqua has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
datanoise has joined #ruby-lang
mistym has joined #ruby-lang
mwjcomputing has quit [Ping timeout: 248 seconds]
datanoise has quit [Ping timeout: 264 seconds]
methods has joined #ruby-lang
seoaqua has quit [Ping timeout: 255 seconds]
thinkdevcode has joined #ruby-lang
methods has quit [Quit: Leaving.]
gregmore_ has quit [Ping timeout: 255 seconds]
gregmoreno has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
stbaby has joined #ruby-lang
seoaqua has joined #ruby-lang
bluepojo1 has quit [Quit: Leaving.]
piyo` has joined #ruby-lang
brianpWins has joined #ruby-lang
gregmoreno has joined #ruby-lang
robbyoconnor has joined #ruby-lang
cstrahan has quit [Quit: cstrahan]
aetcore has quit [Read error: Connection reset by peer]
r0bby has joined #ruby-lang
cstrahan has joined #ruby-lang
aetcore has joined #ruby-lang
r0bby has quit [Read error: Connection reset by peer]
stbaby has quit [Quit: Linkinus - http://linkinus.com]
davai has joined #ruby-lang
CaptainJet has quit []
robbyoconnor has quit [Ping timeout: 245 seconds]
dous_ has joined #ruby-lang
dous_ has joined #ruby-lang
dous_ has quit [Changing host]
rekky has joined #ruby-lang
dous has quit [Ping timeout: 246 seconds]
piyo`` has joined #ruby-lang
davai has quit [Quit: Linkinus - http://linkinus.com]
davai has joined #ruby-lang
piyo` has quit [Read error: Operation timed out]
seoaqua has quit [Ping timeout: 260 seconds]
cstrahan has quit [Quit: cstrahan]
d3vic3 has quit [Ping timeout: 248 seconds]
savage- has quit [Quit: savage-]
lcdhoffman has joined #ruby-lang
d3vic3 has joined #ruby-lang
emptyflask has joined #ruby-lang
jxie has joined #ruby-lang
davai has quit [Quit: Linkinus - http://linkinus.com]
davai has joined #ruby-lang
carmichael has joined #ruby-lang
Weems has quit []
Xzyx987X has quit [Read error: Connection reset by peer]
Xzyx987X has joined #ruby-lang
rekky has quit [Quit: rekky]
Nisstyre has quit [Ping timeout: 252 seconds]
davidbalber|away is now known as davidbalbert
emptyflask has quit [Remote host closed the connection]
savage- has joined #ruby-lang
Nisstyre has joined #ruby-lang
WillMarshall has joined #ruby-lang
areil has joined #ruby-lang
emptyflask has joined #ruby-lang
davidbalbert is now known as davidbalber|away
<TTilus> erikh: i guess that makes this channel more official :)
rekky has joined #ruby-lang
rekky has quit [Client Quit]
rekky has joined #ruby-lang
thinkdev_ has joined #ruby-lang
datanoise has joined #ruby-lang
thinkdevcode has quit [Read error: No route to host]
senekis has quit [Remote host closed the connection]
gsav_ has quit [Read error: Connection reset by peer]
gsav has quit [Read error: Connection reset by peer]
datanoise has quit [Ping timeout: 240 seconds]
thinkdev_ has quit [Remote host closed the connection]
thinkdevcode has joined #ruby-lang
emptyflask has quit [Remote host closed the connection]
lcdhoffman has quit [Quit: lcdhoffman]
TylerGillies has joined #ruby-lang
<TylerGillies> is there a way to get [1,2,3,4] as an io object so i can do something like arr.read(5) and get something like [1,2,3,4,0] ?
<TylerGillies> #shift and #first just give me the rest of the array
<TylerGillies> i can guess i can check size of sub array and pad with leading zeros
<TylerGillies> trailing rather
yxhuvud has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
RantriX has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
<postmodern> TylerGillies, checkout StringIO
<erikh> TTilus: if nothing else, it wins at strcmp
Hakon has quit [Read error: Connection reset by peer]
Hakon has joined #ruby-lang
sush24 has joined #ruby-lang
robbyoconnor has joined #ruby-lang
cschwartz has joined #ruby-lang
slyphon has quit [Ping timeout: 245 seconds]
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
NemesisD has joined #ruby-lang
<NemesisD> anyone ever use ruby to process large XML files? i've found that i get crazy memory leaks when using nokogiri and jruby
<NemesisD> i'd be willing to try something else if it worked with jruby. i've found SAX to be far too difficult to work with
<postmodern> NemesisD, SAX is your best beat
<postmodern> NemesisD, there was a recent XML benchmark article too
<postmodern> NemesisD, some people recommend OX
<postmodern> NemesisD, but it doesn't use libxml2, so beware
<NemesisD> postmodern: i've been using Nokogiri::XML::Reader
<postmodern> NemesisD, ah nice
<NemesisD> my problem with sax is that you have to maintain a stack of elements and internally build up the nodes. i've got a huge file full of <release> tags. i just want to yield a node per one of those tags
<NemesisD> it works ok in ruby 1.9.3 but i would like some parallelism, and in jruby it just sits around, exhausts the stacks then bails
<NemesisD> sax is so much work to get anything remotely approaching useful
svyatov has joined #ruby-lang
stonerfish has quit [Quit: Leaving.]
rippa has joined #ruby-lang
savage- has quit [Quit: savage-]
ryanf has joined #ruby-lang
<crankharder> I've got what looks like an empty space but isn't, gsub/strip won't get rid of it... how do i identifiy it?
<drbrain> crankharder: string.codepoints
<drbrain> or maybe each_codepoint
datanoise has joined #ruby-lang
<drbrain> ruby -e 'p " ".codepoints.to_a' #=> [160]
<drbrain> crankharder: also: ruby19 -e 'p " ".gsub(/\p{Space}/, "").length' #=> 0
gaveen has joined #ruby-lang
imajes has quit [Excess Flood]
Mon_Ouie has quit [Ping timeout: 240 seconds]
imajes has joined #ruby-lang
<crankharder> drbrain: Encoding::CompatibilityError: incompatible encoding regexp match (ASCII-8BIT regexp with UTF-8 string)
<crankharder> thats for your last recommendation
<drbrain> crankharder: what kind of string do you have?
<drbrain> I mean, is it really binary?
savage- has joined #ruby-lang
<drbrain> looks like you've got a UTF-8 string
<crankharder> yes
<crankharder> d.encoding => #<Encoding:UTF-8>
cschwartz has quit [Ping timeout: 245 seconds]
<drbrain> then try d.gsub(/\p{Space}/, "") again
<drbrain> \s only matches ASCII 7-bit space characters
<drbrain> you have a Unicode non-breaking space (\u00A0, the 160) which \p{Space} will match if the string matched against is in a compatible encoding
<crankharder> it's working on one context but not another... hard to reproduce, i'll keep diggin
<crankharder> thanks
<drbrain> crankharder: you might need to force_encoding in the non-working context, then
jackhammer2022 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
brianpWins has quit [Quit: brianpWins]
sandbags has joined #ruby-lang
sandbags1138 has quit [Ping timeout: 240 seconds]
<crankharder> so i tried this: tds[0].force_encoding('ASCII-8BIT').gsub(/\p{Space}/, "") -- that what you had in mind?
<crankharder> still doesn't seem to do the trick :/
<drbrain> you must force_encoding('UTF-8')
<drbrain> \p{} requires Unicode-compatible strings
<drbrain> bed time for me
WillMarshall has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<crankharder> the string was already utf-8, and the error was suggesting regexp was ascii
<crankharder> incompatible encoding regexp match (ASCII-8BIT regexp with UTF-8 string)
<drbrain> that's really odd
<drbrain> what about /\p{Space}/u
<crankharder> leave it to etrade and ms-server to f stuff up
<crankharder> that did it
<drbrain> it might be your script encoding is ASCII-8BIT
<drbrain> # coding: utf-8 as the first line would also fix the regexp
<drbrain> … but I imagine it's set to ASCII-8BIT instead for some reason
<drbrain> anyhow, off to bed
<crankharder> thanks! :)
rue|w has joined #ruby-lang
NemesisD has quit [Quit: zzz]
CrazyHorse18 has joined #ruby-lang
<CrazyHorse18> ok.. two arrays.. need to see if they contain the exact same objects.. don't care about the order
<CrazyHorse18> is there a short ruby way of doing this?
datanoise has quit [Ping timeout: 276 seconds]
<CrazyHorse18> ahh too easy
charliesome has quit [Ping timeout: 252 seconds]
chendo has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby-lang
chendo_ has joined #ruby-lang
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
dr_bob has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
CrazyHorse18 has quit [Quit: Leaving.]
rolfb has joined #ruby-lang
vlad_starkov has joined #ruby-lang
datanoise has joined #ruby-lang
TylerGillies has quit [Remote host closed the connection]
dous_ has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
workmad3 has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
imajes has joined #ruby-lang
dous has quit [Remote host closed the connection]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
datanoise has quit [Ping timeout: 255 seconds]
stardiviner has joined #ruby-lang
CrazyHorse18 has joined #ruby-lang
workmad3 has quit [Ping timeout: 255 seconds]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
dc5ala has joined #ruby-lang
tonni has quit [Remote host closed the connection]
tonni has joined #ruby-lang
Aria has joined #ruby-lang
znake has joined #ruby-lang
cschwartz has joined #ruby-lang
Averna has quit [Quit: Leaving.]
CrazyHorse18 has quit [Quit: Leaving.]
Aria has quit [Ping timeout: 268 seconds]
datanoise has joined #ruby-lang
qwerxy has joined #ruby-lang
datanoise has quit [Ping timeout: 240 seconds]
matthewd has quit [Ping timeout: 244 seconds]
cyri_ has joined #ruby-lang
matthewd has joined #ruby-lang
bastilian has joined #ruby-lang
<yorickpeterse> Morning
sush24 has joined #ruby-lang
tjadc has joined #ruby-lang
cyri_ has quit [Quit: cyri_]
richardjapenga has joined #ruby-lang
blacktulip has joined #ruby-lang
dous has quit [Remote host closed the connection]
ryanf has quit [Quit: leaving]
pabloh has joined #ruby-lang
blacktulip has quit [Remote host closed the connection]
agarcia has joined #ruby-lang
blacktulip has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
runeb has joined #ruby-lang
havenn has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
dous_ has joined #ruby-lang
dous_ has quit [Changing host]
dous_ has joined #ruby-lang
imajes has quit [Excess Flood]
Muz has quit [Quit: Lost terminal]
imajes has joined #ruby-lang
dous__ has joined #ruby-lang
dous__ has quit [Remote host closed the connection]
dous__ has joined #ruby-lang
nazty has joined #ruby-lang
dous has quit [Ping timeout: 245 seconds]
dous_ has quit [Ping timeout: 248 seconds]
sush24 has quit [Quit: This computer has gone to sleep]
d3vic3 has quit [Quit: leaving]
Muz has joined #ruby-lang
toretore has joined #ruby-lang
robotmay has joined #ruby-lang
cyri_ has joined #ruby-lang
thinkdevcode has quit [Remote host closed the connection]
faces has quit [Ping timeout: 240 seconds]
faces has joined #ruby-lang
stardiviner has joined #ruby-lang
_lenny has joined #ruby-lang
stardiviner has quit [Client Quit]
<sandbags> morning
datanoise has joined #ruby-lang
datanoise has quit [Ping timeout: 268 seconds]
savage- has quit [Quit: savage-]
stardiviner has joined #ruby-lang
sush24 has joined #ruby-lang
kalleth has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
workmad3 has joined #ruby-lang
x0F has quit [Read error: Connection reset by peer]
x0F has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
vlad_starkov has quit [Remote host closed the connection]
shtirlic has quit [Read error: No buffer space available]
shtirlic_ has joined #ruby-lang
sepp2k has joined #ruby-lang
imajes has quit [Excess Flood]
GarethAdams has joined #ruby-lang
carmichael has quit [Ping timeout: 240 seconds]
imajes has joined #ruby-lang
adambeynon has joined #ruby-lang
carmichael has joined #ruby-lang
havenn has joined #ruby-lang
tonni has quit [*.net *.split]
nazty has quit [*.net *.split]
Muz has quit [*.net *.split]
chendo_ has quit [*.net *.split]
charliesome has quit [*.net *.split]
krohrbaugh has quit [*.net *.split]
intellitech|afk has quit [*.net *.split]
wyhaines has quit [*.net *.split]
ViperMaul|_ has quit [*.net *.split]
bcardarella has quit [*.net *.split]
nyuszika7h has quit [*.net *.split]
icooba has quit [*.net *.split]
corundum has quit [*.net *.split]
Guest26813 has quit [*.net *.split]
mfn has quit [*.net *.split]
vmoravec has quit [*.net *.split]
dkannan has quit [*.net *.split]
Kero has quit [*.net *.split]
TTilus has quit [*.net *.split]
_sillymarkets has quit [*.net *.split]
gaveen has quit [*.net *.split]
tpope has quit [*.net *.split]
vbatts has quit [*.net *.split]
ozzloy has quit [*.net *.split]
EvilJStoker has quit [*.net *.split]
SubSpawn has quit [*.net *.split]
_ko1 has quit [*.net *.split]
canton7 has quit [*.net *.split]
dumfries has quit [*.net *.split]
snk has quit [*.net *.split]
epitron has quit [*.net *.split]
llakey has quit [*.net *.split]
andrewvos has quit [*.net *.split]
GarethAdams has quit [*.net *.split]
faces has quit [*.net *.split]
agarcia has quit [*.net *.split]
shtirlic_ has quit [*.net *.split]
sandbags has quit [*.net *.split]
davai has quit [*.net *.split]
pbjorklund has quit [*.net *.split]
dominikh has quit [*.net *.split]
slaytanic has quit [*.net *.split]
_dumfrie- has quit [*.net *.split]
dabradley has quit [*.net *.split]
kuja has quit [*.net *.split]
freedrull has quit [*.net *.split]
adgar has quit [*.net *.split]
blowmage has quit [*.net *.split]
_br_ has quit [*.net *.split]
ged has quit [*.net *.split]
mahlon has quit [*.net *.split]
meise has quit [*.net *.split]
znake has quit [Quit: Linkinus - http://linkinus.com]
GarethAdams has joined #ruby-lang
shtirlic_ has joined #ruby-lang
faces has joined #ruby-lang
Muz has joined #ruby-lang
agarcia has joined #ruby-lang
tonni has joined #ruby-lang
nazty has joined #ruby-lang
TTilus has joined #ruby-lang
18VAAEHPH has joined #ruby-lang
krohrbaugh has joined #ruby-lang
mfn has joined #ruby-lang
Kero has joined #ruby-lang
freedrull has joined #ruby-lang
blowmage has joined #ruby-lang
pbjorklund has joined #ruby-lang
dominikh has joined #ruby-lang
gaveen has joined #ruby-lang
ViperMaul|_ has joined #ruby-lang
sandbags has joined #ruby-lang
slaytanic has joined #ruby-lang
davai has joined #ruby-lang
wyhaines has joined #ruby-lang
icooba has joined #ruby-lang
ozzloy has joined #ruby-lang
_dumfrie- has joined #ruby-lang
snk has joined #ruby-lang
canton7 has joined #ruby-lang
EvilJStoker has joined #ruby-lang
dabradley has joined #ruby-lang
bcardarella has joined #ruby-lang
epitron has joined #ruby-lang
_ko1 has joined #ruby-lang
corundum has joined #ruby-lang
intellitech|afk has joined #ruby-lang
tpope has joined #ruby-lang
adgar has joined #ruby-lang
llakey has joined #ruby-lang
dumfries has joined #ruby-lang
nyuszika7h has joined #ruby-lang
vbatts has joined #ruby-lang
vmoravec has joined #ruby-lang
charliesome has joined #ruby-lang
dkannan has joined #ruby-lang
kuja has joined #ruby-lang
_sillymarkets has joined #ruby-lang
SubSpawn has joined #ruby-lang
Guest26813 has joined #ruby-lang
meise has joined #ruby-lang
_br_ has joined #ruby-lang
ged has joined #ruby-lang
andrewvos has joined #ruby-lang
mahlon has joined #ruby-lang
totallymike has quit [Excess Flood]
havenn has quit [Ping timeout: 255 seconds]
|Vargas| has quit [Quit: ...]
nyuszika7h has quit [Max SendQ exceeded]
gaveen has quit [Ping timeout: 255 seconds]
totallymike has joined #ruby-lang
JohnBat26 has joined #ruby-lang
_lenny has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
Xzyx987X has quit [*.net *.split]
postmodern has quit [*.net *.split]
ohsix has quit [*.net *.split]
TheDracle has quit [*.net *.split]
nick_h has quit [*.net *.split]
rking has quit [*.net *.split]
mroth has quit [*.net *.split]
rue|w has quit [*.net *.split]
ironcamel has quit [*.net *.split]
alex_k has quit [*.net *.split]
voker57 has quit [*.net *.split]
achiu has quit [*.net *.split]
pcboy_ has quit [*.net *.split]
lake has quit [*.net *.split]
yellow5 has quit [*.net *.split]
jkyle has quit [*.net *.split]
schroedinbug1 has quit [*.net *.split]
zzak has quit [*.net *.split]
randym has quit [*.net *.split]
rtl has quit [*.net *.split]
jayne has quit [*.net *.split]
lianj has quit [*.net *.split]
anekos has quit [*.net *.split]
robotmay has quit [*.net *.split]
richardjapenga has quit [*.net *.split]
tjadc has quit [*.net *.split]
matthewd has quit [*.net *.split]
dr_bob has quit [*.net *.split]
Hakon has quit [*.net *.split]
countdigi has quit [*.net *.split]
aetcore has quit [*.net *.split]
piyo`` has quit [*.net *.split]
roadt has quit [*.net *.split]
sj26 has quit [*.net *.split]
kain has quit [*.net *.split]
ddd has quit [*.net *.split]
jperry2 has quit [*.net *.split]
joast has quit [*.net *.split]
hakunin has quit [*.net *.split]
djinni` has quit [*.net *.split]
masterkorp has quit [*.net *.split]
khaase has quit [*.net *.split]
Guedes has quit [*.net *.split]
benwoody has quit [*.net *.split]
Cherrum has quit [*.net *.split]
18VAAEHPH is now known as chendo
chendo is now known as 18VAAEHPH
_lenny has joined #ruby-lang
richardjapenga has joined #ruby-lang
robotmay has joined #ruby-lang
tjadc has joined #ruby-lang
matthewd has joined #ruby-lang
rue|w has joined #ruby-lang
dr_bob has joined #ruby-lang
Hakon has joined #ruby-lang
robbyoconnor has joined #ruby-lang
Xzyx987X has joined #ruby-lang
piyo`` has joined #ruby-lang
aetcore has joined #ruby-lang
countdigi has joined #ruby-lang
roadt has joined #ruby-lang
postmodern has joined #ruby-lang
ironcamel has joined #ruby-lang
jperry2 has joined #ruby-lang
hakunin has joined #ruby-lang
alex_k has joined #ruby-lang
achiu has joined #ruby-lang
sj26 has joined #ruby-lang
kain has joined #ruby-lang
joast has joined #ruby-lang
voker57 has joined #ruby-lang
ddd has joined #ruby-lang
jkyle has joined #ruby-lang
pcboy_ has joined #ruby-lang
ohsix has joined #ruby-lang
yellow5 has joined #ruby-lang
lake has joined #ruby-lang
TheDracle has joined #ruby-lang
schroedinbug1 has joined #ruby-lang
anekos has joined #ruby-lang
jayne has joined #ruby-lang
Cherrum has joined #ruby-lang
lianj has joined #ruby-lang
benwoody has joined #ruby-lang
Guedes has joined #ruby-lang
zzak has joined #ruby-lang
rtl has joined #ruby-lang
randym has joined #ruby-lang
khaase has joined #ruby-lang
masterkorp has joined #ruby-lang
djinni` has joined #ruby-lang
mroth has joined #ruby-lang
rking has joined #ruby-lang
nick_h has joined #ruby-lang
setmeaway2 has quit [*.net *.split]
solars has quit [*.net *.split]
tdy has quit [*.net *.split]
erichmenge has quit [*.net *.split]
Gekz has quit [*.net *.split]
jarib has quit [*.net *.split]
darix has quit [*.net *.split]
wnd has quit [*.net *.split]
grandy has quit [*.net *.split]
devn has quit [*.net *.split]
drbrain has quit [*.net *.split]
wycats has quit [*.net *.split]
msch has quit [*.net *.split]
robbyoconnor has quit [Remote host closed the connection]
Aria has joined #ruby-lang
setmeaway2 has joined #ruby-lang
wnd has joined #ruby-lang
tdy has joined #ruby-lang
erichmenge has joined #ruby-lang
msch has joined #ruby-lang
grandy has joined #ruby-lang
wycats has joined #ruby-lang
jarib has joined #ruby-lang
devn has joined #ruby-lang
Gekz has joined #ruby-lang
solars has joined #ruby-lang
drbrain has joined #ruby-lang
darix has joined #ruby-lang
_lenny has quit [Remote host closed the connection]
robotmay has quit [*.net *.split]
richardjapenga has quit [*.net *.split]
matthewd has quit [*.net *.split]
tjadc has quit [*.net *.split]
dr_bob has quit [*.net *.split]
Hakon has quit [*.net *.split]
piyo`` has quit [*.net *.split]
aetcore has quit [*.net *.split]
countdigi has quit [*.net *.split]
sj26 has quit [*.net *.split]
roadt has quit [*.net *.split]
kain has quit [*.net *.split]
jperry2 has quit [*.net *.split]
joast has quit [*.net *.split]
ddd has quit [*.net *.split]
hakunin has quit [*.net *.split]
djinni` has quit [*.net *.split]
khaase has quit [*.net *.split]
masterkorp has quit [*.net *.split]
Guedes has quit [*.net *.split]
Cherrum has quit [*.net *.split]
benwoody has quit [*.net *.split]
nyuszika7h has joined #ruby-lang
18VAAEHPH is now known as chendo
lele has quit [Ping timeout: 246 seconds]
rue|w has quit [*.net *.split]
alex_k has quit [*.net *.split]
ironcamel has quit [*.net *.split]
achiu has quit [*.net *.split]
voker57 has quit [*.net *.split]
pcboy_ has quit [*.net *.split]
yellow5 has quit [*.net *.split]
lake has quit [*.net *.split]
jkyle has quit [*.net *.split]
schroedinbug1 has quit [*.net *.split]
randym has quit [*.net *.split]
zzak has quit [*.net *.split]
rtl has quit [*.net *.split]
lianj has quit [*.net *.split]
jayne has quit [*.net *.split]
anekos has quit [*.net *.split]
chendo is now known as 18VAAEHPH
robotmay has joined #ruby-lang
countdigi has joined #ruby-lang
piyo`` has joined #ruby-lang
dr_bob has joined #ruby-lang
roadt has joined #ruby-lang
tjadc has joined #ruby-lang
richardjapenga has joined #ruby-lang
aetcore has joined #ruby-lang
hakunin has joined #ruby-lang
khaase has joined #ruby-lang
djinni` has joined #ruby-lang
joast has joined #ruby-lang
matthewd has joined #ruby-lang
jperry2 has joined #ruby-lang
Cherrum has joined #ruby-lang
ddd has joined #ruby-lang
sj26 has joined #ruby-lang
Guedes has joined #ruby-lang
Hakon has joined #ruby-lang
kain has joined #ruby-lang
masterkorp has joined #ruby-lang
benwoody has joined #ruby-lang
rue|w has joined #ruby-lang
voker57 has joined #ruby-lang
ironcamel has joined #ruby-lang
achiu has joined #ruby-lang
yellow5 has joined #ruby-lang
alex_k has joined #ruby-lang
lake has joined #ruby-lang
jkyle has joined #ruby-lang
schroedinbug1 has joined #ruby-lang
randym has joined #ruby-lang
pcboy_ has joined #ruby-lang
rtl has joined #ruby-lang
zzak has joined #ruby-lang
lianj has joined #ruby-lang
anekos has joined #ruby-lang
jayne has joined #ruby-lang
rohit has joined #ruby-lang
jashank has quit [*.net *.split]
KnowTheLedge has quit [*.net *.split]
array has quit [*.net *.split]
tris has quit [*.net *.split]
jwollert has quit [*.net *.split]
Harzilein has quit [*.net *.split]
wasnotrice has quit [*.net *.split]
yugui_zzz has quit [*.net *.split]
amerine has quit [*.net *.split]
zz_chrismcg has quit [*.net *.split]
znouza has quit [*.net *.split]
Aria has quit [Ping timeout: 260 seconds]
jashank has joined #ruby-lang
KnowTheLedge has joined #ruby-lang
tris has joined #ruby-lang
array has joined #ruby-lang
wasnotrice has joined #ruby-lang
Harzilein has joined #ruby-lang
jwollert has joined #ruby-lang
zz_chrismcg has joined #ruby-lang
amerine has joined #ruby-lang
znouza has joined #ruby-lang
yugui_zzz has joined #ruby-lang
workmad3 has quit [*.net *.split]
thone_ has quit [*.net *.split]
spuk has quit [*.net *.split]
singpolyma has quit [*.net *.split]
valeri_ufo has quit [*.net *.split]
L0rdShrek__ has quit [*.net *.split]
davidboy has quit [*.net *.split]
musl has quit [*.net *.split]
workmad3 has joined #ruby-lang
davidboy has joined #ruby-lang
singpolyma has joined #ruby-lang
L0rdShrek__ has joined #ruby-lang
musl has joined #ruby-lang
valeri_ufo has joined #ruby-lang
thone_ has joined #ruby-lang
spuk has joined #ruby-lang
lele has joined #ruby-lang
<masterkorp> hello
robbyoconnor has joined #ruby-lang
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
gaveen has joined #ruby-lang
r0bby has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
robbyoconnor has quit [Ping timeout: 256 seconds]
gaveen has quit [Quit: Leaving]
qwerxy has joined #ruby-lang
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
gaveen has joined #ruby-lang
RandyInLA has quit [Quit: RandyInLA]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
pabloh has quit [Ping timeout: 245 seconds]
cultureulterior has joined #ruby-lang
Madis has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
cultureulterior has quit [Ping timeout: 245 seconds]
stardiviner has joined #ruby-lang
derekm has joined #ruby-lang
cyri_ has quit [Quit: cyri_]
runeb has quit [Remote host closed the connection]
m3nd3s has joined #ruby-lang
imajes has quit [Excess Flood]
r0bby has quit [Ping timeout: 240 seconds]
imajes has joined #ruby-lang
sush24 has joined #ruby-lang
sush24 has quit [Client Quit]
runeb has joined #ruby-lang
rohit has quit [Quit: Leaving]
runeb has quit [Remote host closed the connection]
Hakon has quit [Quit: Leaving...]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
<mfn> hi
derekm has quit [Remote host closed the connection]
runeb has joined #ruby-lang
stiang has joined #ruby-lang
davai has quit [Quit: Leaving...]
carloslopes has joined #ruby-lang
postmodern has quit [Quit: Leaving]
vlad_starkov has joined #ruby-lang
brunocoelho has joined #ruby-lang
rippa has joined #ruby-lang
brunocoelho has quit [Remote host closed the connection]
leopard_me has joined #ruby-lang
jxie has quit [Quit: leaving]
Hakon has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
vlad_starkov has joined #ruby-lang
d3vic3 has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
stardiviner has joined #ruby-lang
<masterkorp> submarine mode, engage
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 276 seconds]
areil_ has joined #ruby-lang
areil has quit [Ping timeout: 268 seconds]
pcboy_ has quit [Read error: Connection reset by peer]
pcboy_ has joined #ruby-lang
<mfn> ruby 2 should really make "-v" default ... it's incredible how many gems spit out warnings, making it impossible to sanely use it with your own code
<erikh> 1.9 already has $VERBOSE set
<erikh> it's just not set as high as -v sets it, IIRC.
mwjcomputing has joined #ruby-lang
<mfn> hmm .. in my ruby 1.9.3p194 $VERBOSE = false by default and gets set to true when I use -v
<erikh> right, in typical ruby parlance that's confusing
<erikh> so, setting it to nil disables warnings entirely
<erikh> setting it to false enables "some" warnings
<erikh> constant overwrites are one you'll see
<mfn> lol, ok. Thanks for the education. hrm :)
<erikh> sec
<erikh> here's some gory ugliness I had to write recently to step around a library I was using that used the stdio constants, which I needed to redirect
ttilley has quit [Quit: ttilley]
<erikh> the warnings don't really service anyone there, and I can't walk around the fact that those items need to be redirected
<erikh> (it's a core feature of that part of the code)
<mfn> holy ....
<erikh> but note the $VERBOSE = nil
<erikh> that turns them off, entirely
<erikh> (I also restore after *and* do a restore in an ensure block too, "just in case")
<mfn> I undertand
<erikh> it's pretty ugly, but if I didn't do that on 1.9, with or without -v you will see warnings for that.
<erikh> which was the point I was getting at
jxie has joined #ruby-lang
shtirlic_ has quit [Read error: Connection reset by peer]
havenn has joined #ruby-lang
slaytanic has quit [Ping timeout: 260 seconds]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
countdigi has quit [Ping timeout: 245 seconds]
sush24 has joined #ruby-lang
Hakon has quit [Quit: Leaving...]
Stereokitsune has quit [Ping timeout: 265 seconds]
telemachus has quit [Ping timeout: 260 seconds]
<kke> can i do something like "return 123.extend(Poop)" without creating a local variable?
telemachus has joined #ruby-lang
Hakon has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
Stereokitsune has joined #ruby-lang
<andrewvos> extend poop
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
Muz has quit [Read error: Operation timed out]
shtirlic has joined #ruby-lang
Muz has joined #ruby-lang
Stereokitsune has quit [Ping timeout: 272 seconds]
apeiros_ has joined #ruby-lang
Stereokitsune has joined #ruby-lang
mwjcomputing has quit [Quit: Leaving]
stiang_ has joined #ruby-lang
heruka has joined #ruby-lang
heruka has left #ruby-lang ["WeeChat 0.3.7"]
stiang has quit [Ping timeout: 260 seconds]
stiang_ is now known as stiang
heruka has joined #ruby-lang
havenn has quit [Remote host closed the connection]
spike|spiegel has joined #ruby-lang
d3vic3 has quit [Ping timeout: 256 seconds]
kurko_ has joined #ruby-lang
d3vic3 has joined #ruby-lang
kurko_ has quit [Client Quit]
kurko_ has joined #ruby-lang
shtirlic_ has joined #ruby-lang
<kurko_> Hey, in "Abc::Def::Ghi".scan(/:.*hi/), it's returning => ["::Def::Ghi"]. How do I return G?
slaytanic has joined #ruby-lang
<kke> kurko_: "Abc::Def::Ghi".scan(/:(.)hi/) => [["G"]]
<kurko_> Thanks, kke. This was an example, I need more then one letter.
<kke> if you really need to use scan
<kurko_> like
<kurko_> "Abc::Def::Ghij".scan(/:.*ij/)
<kurko_> "Abc::Def::Ghij".[/:.*ij/]
<kurko_> ops
<kurko_> without the dot
shevy has joined #ruby-lang
<kke> kurko_: "Abc::Def::Ghi"[/:(.hi.*)/, 1] => "Ghi"
<kurko_> cool
<kurko_> I managed to make it work, thanks.
<kke> "Abc::Def::Ghi".split("::").last[0] :)
<kke> hyvä
<apeiros_> str[/[^:]*$/]
m3nd3s has quit [Remote host closed the connection]
<kurko_> I'm using this
<kurko_> "ActiveModel::Validations::PresenceValidator".class.name.split("::").last.scan(/(.*)Validator/)[0].downcase
<kurko_> to get presence
<kurko_> :p
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<apeiros_> oh dear
hynkle has joined #ruby-lang
hynkle has quit [Client Quit]
* workmad3 's eyes bleed
rekky has quit [Quit: rekky]
rekky has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
sush24 has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
probst has joined #ruby-lang
slyphon has joined #ruby-lang
<apeiros_> workmad3: google 'eyebleach'
<apeiros_> it helps
<apeiros_> (potentially NSFW, though)
outoftime has joined #ruby-lang
<zzak> yorickpeterse: nice dude
<yorickpeterse> what the fuck
<yorickpeterse> How the hell did he find that
<yorickpeterse> Unless...matz is a Redditor!
shevy has left #ruby-lang [#ruby-lang]
slyphon has quit [Ping timeout: 245 seconds]
retro|cz has quit [Ping timeout: 244 seconds]
stiang has quit [Remote host closed the connection]
stiang has joined #ruby-lang
<mfn> So your github project is called rlint and the game is ruby-lint but there is a rlint gem which is *not* your project O_o ... :)
<mfn> s/game/gem/
<yorickpeterse> Yes, it's kinda annoying
<yorickpeterse> I have however already renamed all the directories and such to "ruby-lint"
sailias has joined #ruby-lang
<yorickpeterse> I'll probably rename the GH project at some point as well
<yorickpeterse> Though since you can't set up redirects I'd like to wait a bit until the storm of people going "Hm, what's this shit" settles down a bit
<apeiros_> yorickpeterse: I'd keep the old one anyway
<mfn> yeah, I thought so too about the redirec
<apeiros_> simply pointing to the new one
<yorickpeterse> apeiros_: That's still a bit confusing
<yorickpeterse> But yeah, I'll most likely do that anyway
<apeiros_> sure, but it's less confusing than "wtf, where did it go?"
<yorickpeterse> true
aflynn has quit [Quit: Ex-Chat]
areil_ has quit [Remote host closed the connection]
rolfb has quit [Quit: Linkinus - http://linkinus.com]
m3nd3s has joined #ruby-lang
workmad3_ has joined #ruby-lang
davidbalber|away is now known as davidbalbert
workmad3 has quit [Ping timeout: 260 seconds]
mistym has quit [Remote host closed the connection]
Uranio has joined #ruby-lang
imajes has quit [Excess Flood]
workmad3 has joined #ruby-lang
workmad3_ has quit [Ping timeout: 260 seconds]
sush24 has quit [Quit: This computer has gone to sleep]
imajes has joined #ruby-lang
dabradley has quit [Quit: WeeChat 0.3.8]
GarethAdams has quit [Remote host closed the connection]
GarethAdams|Work has joined #ruby-lang
sush24 has joined #ruby-lang
GarethAdams|Work has quit [Changing host]
GarethAdams|Work has joined #ruby-lang
GarethAdams|Work is now known as GarethAdams
kgrz has joined #ruby-lang
tonni has quit [Remote host closed the connection]
sea6ear has joined #ruby-lang
<andrewvos> yorickpeterse: Just keep the old one, and then put huge fuck off text saying "THIS PROJECT HAS MOVED TO <HERE>"
andre____ has joined #ruby-lang
dabradley has joined #ruby-lang
andre____ is now known as andrewhl
slyphon has joined #ruby-lang
lxsameer has joined #ruby-lang
<lxsameer> chris2: ping
elux has joined #ruby-lang
datanoise has joined #ruby-lang
sea6ear has quit [Ping timeout: 245 seconds]
<zzak> then rename it to lintr
shtirlic_ has quit [Remote host closed the connection]
kain has quit [Quit: exit]
kain has joined #ruby-lang
JohnBat26 has quit [Ping timeout: 252 seconds]
Serial_Killer_C has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Mon_Ouie has joined #ruby-lang
savage- has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
gsav has joined #ruby-lang
rekky has quit [Quit: rekky]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
stiang has quit [Quit: stiang]
nitti has joined #ruby-lang
methods has joined #ruby-lang
davidbalbert is now known as davidbalber|away
methods1 has joined #ruby-lang
senekis has joined #ruby-lang
methods has quit [Ping timeout: 260 seconds]
lxsameer has quit [Quit: Leaving]
r0bby has joined #ruby-lang
m3nd3s has quit []
m3nd3s has joined #ruby-lang
robotmay has quit [Read error: Connection reset by peer]
robotmay has joined #ruby-lang
<erikh> matz plugged my nginx/mruby stuff too
enebo has joined #ruby-lang
<erikh> (which I did not plug on reddit)
<erikh> I imagine he keeps his eye closer on the non-core community than people expect
<yorickpeterse> big brother matz is watching us
<zzak> matz is onmipresnt and omniscient
gsav_ has joined #ruby-lang
<zzak> what matz is for ruby, headius is for jruby
gsav__ has joined #ruby-lang
<zzak> say jruby 3 times in the mirror, see what happens
<lianj> "jruby"*3
<yorickpeterse> zzak: he's the biggy smiles of jruby?
<yorickpeterse> oh dear
<workmad3> lianj: ("jruby"*3).reverse (after all, it's in a mirror) :)
<injekt> nerds
<workmad3> injekt: if you intended that to be an insult, I think you're in the wrong chan :P
<injekt> workmad3: i'd like to think i've been here long enough for people to know it's not :)
<workmad3> :)
<lianj> injekt: ("jruby"*3).reverse.unpack("B*")[0] is for nerds
kaliya has joined #ruby-lang
<injekt> lianj: if it were for nerds, there would be no 'jruby' in it :P
<zzak> inkjet error: pc load letter
<injekt> and char codes dont count
<injekt> zzak: HAR
<zzak> i watched that this last weekend
<zzak> been a while, but good flick
davidbalber|away is now known as davidbalbert
rue has quit [Remote host closed the connection]
rue has joined #ruby-lang
vmoravec has quit [Quit: Leaving]
cschwartz has quit [Ping timeout: 252 seconds]
sush24 has quit [Quit: This computer has gone to sleep]
GarethAdams has quit [Remote host closed the connection]
GarethAdams has joined #ruby-lang
savage- has quit [Quit: savage-]
<erikh> herp
headius has joined #ruby-lang
<erikh> if I were matz, I'd be interested in all the cool shit people are doing with my baby
<erikh> sorry, "babies"
<headius> zzak: you need something?
<zzak> lol
dous__ has quit [Remote host closed the connection]
elux has quit [Read error: Connection reset by peer]
<zzak> read the backlog
sysconfig has joined #ruby-lang
gsav has quit [Quit: Lost terminal]
gsav__ has quit [Quit: Lost terminal]
sysconfig is now known as Guest85736
matti has quit [Read error: Connection reset by peer]
roadt has quit [Ping timeout: 245 seconds]
krohrbaugh has quit [Quit: Leaving.]
r0bby is now known as robbyoconnor
<headius> hmmm
ruby-lang138 has joined #ruby-lang
cschwartz has joined #ruby-lang
robotmay has quit [Read error: Connection reset by peer]
<headius> zzak: I don't know where to find #ruby-lang logs
robotmay has joined #ruby-lang
agarcia has quit [Quit: Konversation terminated!]
kaliya has quit [Quit: Lost terminal]
Guest85736 has quit [Quit: Page closed]
<ddfreyne> Is anybody else having trouble loading travis builds?
tjadc has quit [Ping timeout: 245 seconds]
<erikh> headius: whitequark logs, but I can't remember what the url is
<headius> erikh: ok, I think I found them
enebo has quit [Quit: enebo]
<headius> zzak: hah
<erikh> yeah, I do wonder if you've got a small hadoop cluster analyzing tweets with the word 'jruby' in them
<headius> I get a small electric shock whenever the word jruby is mentioned
<erikh> x10 interface
<erikh> I am impressed
blazes816 has joined #ruby-lang
jxie has quit [Ping timeout: 256 seconds]
jxie has joined #ruby-lang
<zzak> haha
<zzak> RT worthy
richardjapenga has quit [Quit: Leaving]
wallerdev has joined #ruby-lang
geopet has joined #ruby-lang
rue|w has joined #ruby-lang
dorei has joined #ruby-lang
apeiros_ has joined #ruby-lang
rue|w has quit [Ping timeout: 256 seconds]
mistym_ has joined #ruby-lang
alvaro_o has joined #ruby-lang
runeb has quit [Remote host closed the connection]
mistym_ has quit [Remote host closed the connection]
dc5ala has quit [Quit: Ex-Chat]
cyri_ has joined #ruby-lang
rolfb has joined #ruby-lang
bfreeman has quit [Quit: bfreeman]
rekky has joined #ruby-lang
Serial_Killer_C has quit [Remote host closed the connection]
probst has quit [Quit: probst]
ryanlecompte has joined #ruby-lang
Serial_Killer_C has joined #ruby-lang
sea6ear has joined #ruby-lang
quatauta has joined #ruby-lang
krohrbaugh has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
cultureulterior_ has quit [Quit: cultureulterior_]
thinkdevcode has joined #ruby-lang
cschwartz has quit [Ping timeout: 252 seconds]
gregmoreno has joined #ruby-lang
bastilian has quit [Quit: Leaving...]
mrsolo has joined #ruby-lang
qwerxy has quit [Quit: offski]
m3nd3s has quit [Remote host closed the connection]
m3nd3s has joined #ruby-lang
stiang has joined #ruby-lang
nitti has quit [Remote host closed the connection]
tbuehlmann has joined #ruby-lang
devn has quit [Quit: leaving]
stiang has quit [Ping timeout: 255 seconds]
devn has joined #ruby-lang
nitti has joined #ruby-lang
sush24 has joined #ruby-lang
runeb has joined #ruby-lang
senekis has quit [Ping timeout: 260 seconds]
davidbalbert is now known as davidbalber|away
piyo`` has left #ruby-lang [#ruby-lang]
anachronistic has joined #ruby-lang
dr_bob has quit [Quit: Leaving.]
davidbalber|away is now known as davidbalbert
imajes has quit [Excess Flood]
ruby-lang138 has quit [Ping timeout: 245 seconds]
davidbalbert is now known as davidbalber|away
Rizzle has joined #ruby-lang
imajes has joined #ruby-lang
runeb has quit [Ping timeout: 255 seconds]
GarethAdams has quit [Quit: Leaving...]
ViperMaul|_ has quit [Ping timeout: 252 seconds]
sepp2k has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby-lang
rolfb has quit [Quit: Linkinus - http://linkinus.com]
shtirlic_ has joined #ruby-lang
cirenyc has joined #ruby-lang
cirenyc has quit [Client Quit]
senekis has joined #ruby-lang
matti has joined #ruby-lang
agile has joined #ruby-lang
mistym is now known as mistym_lunch
cultureulterior has joined #ruby-lang
mrsolo has quit [Quit: This computer has gone to sleep]
kalleth has quit [Quit: kalleth]
rafael has joined #ruby-lang
mrsolo has joined #ruby-lang
rebelcan has joined #ruby-lang
rafael is now known as Guest70418
d3vic3 has quit [Ping timeout: 268 seconds]
robotmay has quit [Read error: Connection reset by peer]
Uranio has quit [Remote host closed the connection]
robotmay has joined #ruby-lang
d3vic3 has joined #ruby-lang
bfreeman has joined #ruby-lang
cultureulterior has quit [Quit: cultureulterior]
robbyoconnor has quit [Ping timeout: 256 seconds]
sn0wb1rd has joined #ruby-lang
rafrcruz has joined #ruby-lang
Guest70418 has quit [Ping timeout: 245 seconds]
alexkira has joined #ruby-lang
cultureulterior has joined #ruby-lang
robbyoconnor has joined #ruby-lang
<rafrcruz> Hello guys... I'm new in Ruby (and even in object oriented programming)... I'm trying to develop a simulation enviroment in ruby. Indeed, that simular is already done in MATLAB... My project is basically translate some fuctions and incorporate the object oriented paradigm to the project
<rafrcruz> I intend to use the Gosu and chipmunk frameworks
kalleth has joined #ruby-lang
runeb has joined #ruby-lang
quatauta has quit [Quit: Verlassend]
kalleth has quit [Client Quit]
<rafrcruz> The problem is that the number of robots in the simulation may vary. My question is if there is any way for me to get all objects of a class to invoke a method
davidbalber|away is now known as davidbalbert
<lianj> keep a array of all items in the scene, then just use that array
<zzak> or write a class method that returns the number of instances of that class, and everytime you initialize a new instance, increment that number
cschwartz has joined #ruby-lang
<lianj> or that, but he didnt ask for a number but for a way to iterate over them
<rafrcruz> zzak, the number of instances can be known through a class variable, don't you think? like @@number_of_objects... but that information by it self is not enought to make every instance call the method
kalleth has joined #ruby-lang
kalleth has quit [Client Quit]
mwjcomputing has joined #ruby-lang
mwjcomputing has quit [Read error: Connection reset by peer]
<zzak> hmm
<zzak> maybe with objectspace
runeb has quit [Ping timeout: 252 seconds]
cschwartz has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
<rafrcruz> maybe would be better if I explain the problem better... I'm intend to create a thread that every 100 milliseconds calculate a new control action for the robots ( the velocity for each wheels). Suppose that the method's name is controlRobot. If I has two robots, it is just Robot1.controlRobot and Robot2.controlRobot
<Kero> keep a list. avoid to make classes the bags that hold the instances. classes should (mostly) only create the instances
Aria has joined #ruby-lang
<Kero> list.each {|robot| robot.updateVelocityForWheelsOrWhatever }
<rafrcruz> The problem is that the number of robots may vary... So it would be interesting to me has something who make every object of the class call this method
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
justinram has joined #ruby-lang
mwjcomputing has joined #ruby-lang
<lianj> rafrcruz: class A; end; 3.times{ A.new }; ObjectSpace.each_object.select{|i| i.is_a?(A) } this would be the please dont do it solution. ;)
<Kero> something knows how/why it varies. It's that objects job to adjust the list
<rafrcruz> hmm, thanks for the tips Kero and lianj
<lianj> scene.add(obj); scene.objects.each{|o| o.update_whatever }; scene.remove(obj) ..
<zzak> ObjectSpace.each_object(Object) { |obj| do something with obj if obj.instance_of?(Robot) }
<apeiros_> zzak: each_object(Robot) then
Aria has quit [Ping timeout: 260 seconds]
<lianj> anyhow, i hope none of you suggest actually using it
<zzak> that too
<zzak> haha
<apeiros_> yupp, ObjectSpace is for debugging
Hakon has quit [Quit: Leaving...]
<drbrain> or dirty tricks like DRb
cyri_ has quit [Quit: cyri_]
<zzak> drbrain: hi!
justinram has quit [Remote host closed the connection]
<zzak> drbrain: i was going to ask you the other day about manpages but forgot
<rafrcruz> And for make a execution every 100 milliseconds, I should use the Time class and make something like: if (initialTime-curentTime) > 100 then computing_code, initialTime = 0 end
<rafrcruz> that inside the thread scope.
<rafrcruz> Or there is a better why or a class that do a precise interrupt for me?
<rafrcruz> a better way*
svyatov has quit [Quit: svyatov]
<zzak> you could try lib/timeout.rb
<lianj> zzak: create a thread instead a thread every 100ms for no benefit?
<drbrain> zzak: what's up?
<zzak> lianj: yeh, i am probably opening up a can of worms, but i thought of the timeout module
<zzak> drbrain: there are a few patches for the manpages, #183 and #210 on github
<zzak> i wasn't sure how to handle/test those from trunk
benanne has joined #ruby-lang
<drbrain> you use nroff or groff or something on them
<zzak> drbrain: that looks about right, thanks
<rafrcruz> thank you guys. This conversation was very enlightening... :)
Kingy has joined #ruby-lang
intellitech|afk has quit [Read error: Operation timed out]
thinkdevcode has quit [Ping timeout: 260 seconds]
justinram has joined #ruby-lang
runeb has joined #ruby-lang
cultureulterior has quit [Quit: cultureulterior]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
davidbalbert is now known as davidbalber|away
runeb has quit [Ping timeout: 256 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
mrsolo has joined #ruby-lang
Jayflux has joined #ruby-lang
enebo has joined #ruby-lang
rafrcruz has quit []
dankest has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
mistym_lunch is now known as mistym
<_sillymarkets> Trying to use net-ssh
<_sillymarkets> and getting "undefined method 'exec!' " ... nothing on google is immediately helpful
<_sillymarkets> anyone seen this?
runeb has joined #ruby-lang
<mistym> _sillymarkets: What are you trying to do that's failing?
shtirlic_ has quit [Remote host closed the connection]
_sillymarkets has quit [Ping timeout: 245 seconds]
rekky has quit [Quit: rekky]
thinkdevcode has joined #ruby-lang
runeb has quit [Ping timeout: 265 seconds]
Hakon has joined #ruby-lang
ryanf has joined #ruby-lang
ryanf has quit [Client Quit]
lcdhoffman has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
r0bby has joined #ruby-lang
vlad_starkov has joined #ruby-lang
davidbalber|away is now known as davidbalbert
robbyoconnor has quit [Ping timeout: 260 seconds]
imajes has quit [Excess Flood]
cyri_ has joined #ruby-lang
methods1 has left #ruby-lang [#ruby-lang]
imajes has joined #ruby-lang
gaveen has quit [Remote host closed the connection]
tUze has joined #ruby-lang
tUze is now known as H1gh
bluepojo has joined #ruby-lang
intellitech has joined #ruby-lang
<devn> How do I run the rubyspec for CRuby?
francisfish has quit [Remote host closed the connection]
<zzak> devn: rake test-rubyspec
<zzak> make rather
sush24 has quit [Quit: This computer has gone to sleep]
andrewhl has quit [Remote host closed the connection]
cyri_ has quit [Quit: cyri_]
andrewhl has joined #ruby-lang
rindolf has joined #ruby-lang
<rindolf> Hi all.
methods has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
slaytanic has quit [Quit: mmmb0p.]
slaytanic has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
davidbalbert is now known as davidbalber|away
<mistym> Hey rindolf
<rindolf> mistym: hi, what's up?
carloslopes has quit [Remote host closed the connection]
<mistym> rindolf: Not too much! Just settling back into the office after a few days away. You?
<rindolf> mistym: I'm bisecting a gnumeric bug.
<mistym> rindolf: That'll teach it!
<rindolf> mistym: heh.
Kingy has quit [Quit: Leaving]
francisfish has joined #ruby-lang
rippa has quit [Ping timeout: 252 seconds]
cyri_ has joined #ruby-lang
smaddock has joined #ruby-lang
slaytani1 has joined #ruby-lang
leopard_me has quit [Quit: Computer has gone to sleep.]
runeb has joined #ruby-lang
slaytanic has quit [Ping timeout: 265 seconds]
sabfer has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
slaytani1 has left #ruby-lang [#ruby-lang]
Mon_Ouie has quit [Ping timeout: 240 seconds]
qpingu has quit [Ping timeout: 256 seconds]
ttilley has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
slaytanic has joined #ruby-lang
runeb has quit [Ping timeout: 265 seconds]
andrewhl has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
sabfer has quit [Quit: sabfer]
andrewhl has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
shtirlic has quit [Ping timeout: 276 seconds]
sabfer has joined #ruby-lang
qpingu has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
mwjcomputing has quit [Quit: Leaving]
setmeaway2 has quit [Quit: Leaving]
runeb has joined #ruby-lang
setmeaway has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
sabfer has quit [Quit: sabfer]
Administrator has joined #ruby-lang
Administrator is now known as Guest7363
runeb has quit [Ping timeout: 245 seconds]
dstywho has quit [Quit: Leaving]
Guest7363 has left #ruby-lang [#ruby-lang]
RandyInLA has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
rindolf has quit [Quit: Yay! I'm a llama again. http://www.shlomifish.org/]
qwerxy has joined #ruby-lang
fromhet has joined #ruby-lang
imajes has quit [Excess Flood]
hh has joined #ruby-lang
imajes has joined #ruby-lang
hh has quit [Killed (idoru (Spam is off topic on freenode.))]
kyrylo has joined #ruby-lang
havenn has joined #ruby-lang
kyrylo has left #ruby-lang ["WeeChat 0.3.9"]
runeb has joined #ruby-lang
yxhuvud has quit [Ping timeout: 252 seconds]
blacktulip has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 240 seconds]
l0st1 has joined #ruby-lang
runeb has quit [Ping timeout: 255 seconds]
thinkdevcode has quit [Remote host closed the connection]
wyhaines has quit [Remote host closed the connection]
postmodern has joined #ruby-lang
slyphon has quit [Quit: WeeChat 0.3.8]
imajes has quit [Excess Flood]
havenn has quit [Remote host closed the connection]
imajes has joined #ruby-lang
Discordian93 has joined #ruby-lang
fromhet has quit [Ping timeout: 252 seconds]
Hakon has quit [Quit: Linkinus - http://linkinus.com]
<Discordian93> hi! I'm trying to learn ruby, I am doing a very simple conditional check and I don't see where it possible could be wrong, but it doesn't run
<bluepojo> Discordian93: you need to close your if block
kurko_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Discordian93> oh, i need two ends?
<Discordian93> ok
<bluepojo> one for the unless
<Discordian93> thanks
<bluepojo> and one for the if
<bluepojo> :D
<Discordian93> python has spoiled me :P
tonni has joined #ruby-lang
Hakon has joined #ruby-lang
Discordian93 has quit [Client Quit]
qpingu has quit [Read error: Operation timed out]
runeb has joined #ruby-lang
davidbalber|away is now known as davidbalbert
<yorickpeterse> Does anybody know if `defined?()` is a method call or a statement?
<Mon_Ouie> defined? is a keyword
<Mon_Ouie> It wouldn't work as a method, because it would have to evaluate its argument
Aria has joined #ruby-lang
<yorickpeterse> ta
sn0wb1rd has quit [Remote host closed the connection]
havenn has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
achiu has quit [Quit: WeeChat 0.3.9]
qpingu has joined #ruby-lang
<apeiros_> somebody knows!
sabfer has joined #ruby-lang
<apeiros_> definded? is awesome and horrible in one…
Aria has quit [Ping timeout: 260 seconds]
<drbrain> apeiros_: indeed
<yorickpeterse> Hm, TIL about `* = 'some value'`
<apeiros_> you know about def foo(*) already?
Serial_Killer_C has quit [Read error: Connection reset by peer]
<yorickpeterse> Nope, the fuck does that do?
lcdhoffman has quit [Quit: lcdhoffman]
<apeiros_> proc { |@foo, @@baz, $bar| died in 1.9 iirc, yes?
<apeiros_> it takes any amount of args and ignores them
Serial_Killer_C has joined #ruby-lang
<yorickpeterse> Yeah that proc gives syntax errors
<apeiros_> nice for stuff where you just do something regardeless of the args and then call super
<yorickpeterse> apeiros_: aah
_sillymarkets has joined #ruby-lang
runeb has quit [Ping timeout: 248 seconds]
<_sillymarkets> Is anyone good with Shoes here?
<yorickpeterse> _sillymarkets: Do you need to tie them?
<yorickpeterse> *rimshot*
<_sillymarkets> basically :\
imajes has quit [Excess Flood]
<_sillymarkets> I want a simple button that when its clicked runs another ruby script (telnets into a box, and saves output to a file). Im not seeing any errors in Shoes, but I know the telnet function isnt working since the output file is not being created
<_sillymarkets> The telnet function and Ruby class work as standalone. Thought it would be an easy Shoes.app {
<_sillymarkets> button.click { RubyScript.new }
imajes has joined #ruby-lang
<_sillymarkets> any helpful words or links?
intellitech has quit [Quit: This computer has gone to sleep]
gsav_ has quit [Ping timeout: 248 seconds]
headius has quit [Quit: headius]
<zzak> drbrain: how come stdlib 2.0 was removed from ruby-doc.org? :(
<drbrain> zzak: was it ever there?
<drbrain> zzak: James Britt runs ruby-doc.org, you'd need to ask him
<zzak> yeh, it was before
<zzak> ill shoot him an email
<jkyle> I'm trying to set the teimout on the Net::HTTP object. I did a http = Net::HTTP.new, then http.read_timeout = 1. But when it still seems to take a minute or so to timeout, not 1s
<zzak> drbrain: tryin to get evan to sync documenting-ruby repo too btw
<drbrain> jkyle: maybe you need to set open_timeout also?
<apeiros_> teh fuck?
<apeiros_> Kernel#y is dead?
<apeiros_> ======(
<drbrain> apeiros_: it likely died with syck
<jkyle> that's it, much better
robgleeson has joined #ruby-lang
<apeiros_> drbrain: WHYYYYYYYYYY!?!?
<drbrain> jkyle: note that read_timeout isn't the timeout for the entire body
<drbrain> apeiros_: oversight by tenderlove, probably
<jkyle> open_timeout is what I was looking for, I want it to quite quickly if it can't establish a connection
robgleeson has quit [Quit: WeeChat 0.3.7]
francisfish has quit [Remote host closed the connection]
<drbrain> ok
<drbrain> apeiros_: sick had lots of monkeypatches
<drbrain> syck
r0bgleeson has joined #ruby-lang
* apeiros_ thinks that was a freud'schian
datanoise has quit [Ping timeout: 252 seconds]
* zzak tries to summon the tenderlove
<apeiros_> you need sausage
gsav has joined #ruby-lang
Carnage\ has joined #ruby-lang
achiu has joined #ruby-lang
runeb has joined #ruby-lang
tenderlove has joined #ruby-lang
Meta0 has joined #ruby-lang
Jayflux has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
<zzak> apeiros_: if you change the yamler to syck you can get it back
<apeiros_> I could also just go and use ruby 1.6 instead
vlad_starkov has quit [Ping timeout: 248 seconds]
gsav has quit [Ping timeout: 246 seconds]
<zzak> do that
cyri_ has quit [Quit: cyri_]
enebo has quit [Quit: enebo]
vlad_starkov has joined #ruby-lang
sebastianb has quit [Read error: Connection reset by peer]
nuclearblast has joined #ruby-lang
imajes has quit [Excess Flood]
sabfer has quit [Quit: sabfer]
mistym has quit [Remote host closed the connection]
Serial_Killer_C has quit [Remote host closed the connection]
imajes has joined #ruby-lang
heruka has quit [Quit: WeeChat 0.3.7]
Paradox has quit [Ping timeout: 264 seconds]
runeb has quit [Ping timeout: 240 seconds]
francisfish has joined #ruby-lang
Paradox has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
wyhaines has joined #ruby-lang
outoftime has quit [Quit: Leaving]
kgrz has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kgrz has joined #ruby-lang
francisfish has joined #ruby-lang
sabfer has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
datanoise has joined #ruby-lang
stardiviner has joined #ruby-lang
r0bgleeson has quit [Ping timeout: 260 seconds]
NemesisD has joined #ruby-lang
slyphon has joined #ruby-lang
<NemesisD> anyone know of a way to parse xml with nokogiri without a root element? i.e. lots of <item> tags but no <items> wrapping it
vlad_sta_ has joined #ruby-lang
nitti has quit [Quit: Leaving...]
<blazes816> NemesisD: it isn't xml without a root element
<blazes816> body = "<root>#{what_claims_to_be_xml}</root>"
<blazes816> try something like that ^
<NemesisD> blazes816: the problem is that its a file handle because its >1gb
<NemesisD> so my alternative is to figure out how to have a file handle and to prepend the starting tag
<NemesisD> and append the ending tag at EOF
datanoise has quit [Ping timeout: 268 seconds]
Carnage\ has quit []
<NemesisD> hmm this might be it https://github.com/jasoncodes/filter_io
vlad_starkov has quit [Ping timeout: 245 seconds]
runeb has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
Averna has joined #ruby-lang
<jaimef> how could one %x{$EDITOR /tmp/foo}
<eam> jaimef: you want system()
runeb has quit [Read error: Connection reset by peer]
<mistym> Also you can access environment variables via ENV: ENV['EDITOR']
<eam> %x{} is for capturing output, and you can't capture the output of an editor
<jaimef> true
Kingy has joined #ruby-lang
<eam> does ruby have a module similar to perl's File::Spec? I'm specifically after File::Spec->canonpath()
benanne has quit [Quit: kbai]
qwerxy has quit [Quit: offski]
<eam> does that canonicalize a path?
<eam> doesn't seem to
<eam> ah #cleanpath
<eam> thanks!
justinram has quit [Remote host closed the connection]
<ddfreyne> #realpath is what I’d say
<ddfreyne> well… that is absolute
<eam> actually
<eam> it appears neither do what I want
imajes has quit [Excess Flood]
<eam> cleanpath treats .. incorrectly, and realpath actually touches the filesystem
<ddfreyne> Hm, .. is handled incorrectly? can you give an example?
imajes has joined #ruby-lang
<eam> ddfreyne: as documented in http://perldoc.perl.org/File/Spec.html
Kyril has joined #ruby-lang
<eam> cleanpath removes the preceding directory when it encounters a ..
<eam> that's a bug :(