apeiros_ changed the topic of #ruby-lang to: Ruby 1.9.3-p385: http://ruby-lang.org (ruby-2.0.0-rc1) || Paste >3 lines of text on http://gist.github.com
bright_day has quit [Remote host closed the connection]
__butch__ has quit [Quit: Leaving.]
Nisstyre-laptop has quit [Quit: Leaving]
beho has quit [Remote host closed the connection]
Rarrikins_a_w has quit [Ping timeout: 245 seconds]
Rarrikins_a_w has joined #ruby-lang
vlad_starkov has joined #ruby-lang
tenderlove has quit [Ping timeout: 255 seconds]
RickHull1 has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 255 seconds]
bright_d_ has joined #ruby-lang
davidbalbert is now known as davidbalber|away
AntiTyping has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
tenderlove has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
kurko__ has quit [Ping timeout: 252 seconds]
wallerdev has joined #ruby-lang
kurko_ has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
bright_d_ has quit [Quit: Leaving...]
wyhaines has quit [Read error: Connection reset by peer]
geopet has quit [Quit: geopet]
wyhaines has joined #ruby-lang
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby-lang
carloslopes has joined #ruby-lang
havenn has joined #ruby-lang
Bwild has quit [Ping timeout: 252 seconds]
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby-lang
iamjarvo has joined #ruby-lang
Averna has joined #ruby-lang
carloslopes has quit [Read error: Connection reset by peer]
mistym_ has quit [Read error: No route to host]
mistym_ has joined #ruby-lang
carloslopes has joined #ruby-lang
BigFatFatty has left #ruby-lang [#ruby-lang]
bright_day has joined #ruby-lang
mistym_ has quit [Remote host closed the connection]
bright_day has quit [Client Quit]
Bwild has joined #ruby-lang
<cirenyc> Is there a good way to get the length (in lines of code) of a class and then similarly a count for each method in a class?
bright_day has joined #ruby-lang
marr has quit [Ping timeout: 252 seconds]
bright_day has quit [Client Quit]
<zenspider> cirenyc: why?
<cirenyc> zenspider: Toying around w/ using the counts for code quality checks.
tomzx_mac has joined #ruby-lang
Rarrikins_a_w has quit [Ping timeout: 256 seconds]
<zenspider> cirenyc: so when I write my code with lots of extra returns do I score better or worse than someone who writes code with lots of semicolons?
toretore has quit [Quit: Leaving]
Rarrikins_a_w has joined #ruby-lang
<andrewvos> zenspider: Are you still maintaining autotest? Thought it would be perfect by now.
<andrewvos> zenspider: Do
<andrewvos> gahh
<cirenyc> zenspider: To answer your question, my leaning would be towards better in that example...but...obiviously these wouldn't be hard checks.
<zenspider> cirenyc: my point being, line counts don't reflect on quality at all
<zenspider> a;b;c vs a\n\nb\n\nc
<zenspider> they're the same code
<cirenyc> I realize your point.
<andrewvos> zenspider: Do you really use perforce or am I just missing some inside joke?
<zenspider> andrewvos: I very much use perforce
<andrewvos> zenspider: Why exactly?
<cirenyc> zenspider: That said, a class w/ 10000 lines of code may be something at least worth looking into, no?
<cirenyc> Or maybe a method with 200 lines?
<andrewvos> cirenyc: A 10000 line class in Ruby might not be bad.
<zenspider> andrewvos: superior tool that stays the fuck out of my way. unlike git (and pretty much everything else)
lcdhoffman has quit [Quit: lcdhoffman]
<zenspider> cirenyc: not necessarily, no
<cirenyc> andrewvos: Okay, make a million.
<cirenyc> *it
<andrewvos> zenspider: Git stays out of my way. What do you use perforce for?
<zenspider> andrewvos: everything
<zenspider> and no, git doesn't stay out of your way. you need to understand how the internals work to use it at all
JoelMcCracken has joined #ruby-lang
s1n4 has quit [Quit: leaving]
<zenspider> cirenyc: if there is only one path through the million line method, then I'd say it isn't any more complex (conceptually) than a single path 10 line method
swav has quit [Ping timeout: 248 seconds]
<andrewvos> cirenyc: Is this 10000 line file covered by tests? It is probably better off than 100 Java classes.
<zenspider> again, line counts mean fuck-all
brianpWins has quit [Quit: brianpWins]
<zenspider> your line counter will also completely miss dynamically generated classes and methods... which arguably is more important than all that boring statically written code
<andrewvos> zenspider: Surely you understand the internals more than 99% of the population though?
<zenspider> andrewvos: not in the least
<zenspider> it's a horrible tool. why should I get good at something that is horrible?
imajes has quit [Excess Flood]
<cirenyc> zenspider: I see your points. Do you have an answer to the question?
<zenspider> cirenyc: write a ruby parser
imajes has joined #ruby-lang
<zenspider> since you're insisting on NIH, you might as well do that too while you're at it
<cirenyc> nih?
<zenspider> not-invented-here
<cirenyc> and i'm insisting on nih how?
<zenspider> really? you're going to play coy?
idkazuma has quit [Remote host closed the connection]
<zenspider> I've given you several reasons why the path you're going down is not well thought out. Despite that, you ask "Do you have an answer to the question", implying that you're going to go ahead with it anyhow. You obviously haven't researched this. You obviously haven't looked to see if anyone else has done this. If you did, you wouldn't have asked the question to begin with.
<zenspider> but gosh... I couldn't possibly come to the conclusion that you're insisting on NIH, could I?
* zenspider goes back to working on a similar tool that actually works
swav has joined #ruby-lang
innohero has joined #ruby-lang
<cirenyc> Thanks for the pleasant response, zenspider. I was completely unfamiliar w/ NIH prior to a few minutes ago. Not being coy, not purposefully ignoring your suggestion. I was simply toying around w/ an idea, stupid one or not and more to learn a thing or two, and had a question that I thought I'd present to IRC.
<zenspider> NIH is a good acronym to know. don't confuse it with national institute of health
ivanoats has quit [Remote host closed the connection]
<zenspider> slightly different
<cirenyc> It was the first result in a google search and one that I'm more familiar with.
<cirenyc> And with all the possibilities many acronyms have, I thought it best to just ask.
<zenspider> anyone have a good scheme for making it possible for plugins to extend your OptionParser setup? it looks messy
<zenspider> I guess I'd have to have a chain of blocks to run inside my main processor
<zenspider> blech
<drbrain> zenspider: I've passed the OptionParser instance to a special method in the plugin
<zenspider> passing it down? hrm
<zenspider> example?
<zenspider> I was thinking the plugin would register a block to run... but that could work too
<drbrain> specifically line 75 on
<drbrain> RubyGems commands extend an option parser, but there's a layer of methods atop OptionParser so it's not the same
<drbrain> far too much mechanism for most purposes
<zenspider> oh. so you're not passing an actual OptionParser, just something with one. gotcha
<zenspider> that was a bit confusing
<zenspider> as it stands, I need a better mechanism for flay
<zenspider> right now I just load them, and they add process_<lang> methods to Flay
<drbrain> I'm not particularly pleased with the RDoc way
<drbrain> I pass in the Options instance to set defaults
<zenspider> I guess more methods inside flay could work too
<zenspider> right. my FAVORITE PART about OptionParser is that it provides no storage. so I have to pass around 2 things
JoelMcCracken has quit [Ping timeout: 256 seconds]
spuk_ has joined #ruby-lang
mistym_ has joined #ruby-lang
spuk has quit [Ping timeout: 245 seconds]
havenn_ has joined #ruby-lang
havenn_ has quit [Client Quit]
havenn_ has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 252 seconds]
JMcAfreak has quit [Ping timeout: 264 seconds]
mjio has quit []
MartynKeigher has quit [Excess Flood]
iamjarvo has quit [Quit: Leaving.]
jerikl has joined #ruby-lang
<zenspider> OH. MY. GOD.
<zenspider> IRON SKY IS ON NETFLIX STREAMING
sush24 has joined #ruby-lang
intellitech has quit [Ping timeout: 252 seconds]
<zenspider> Three Words: Nazi. Moon. Base.
thone_ has joined #ruby-lang
<postmodern> wtf, www.ruby-lang.org is down?
<postmodern> im trying to finish my importing of it to jekyll
<postmodern> also btw, anyone know how to get the Content Encoding from open-uri?
soypirate has joined #ruby-lang
<drbrain> postmodern: it might be on io.meta
<drbrain> something like that
<postmodern> i need to pass the charset/encoding to Nokogiri, so that it doesn't convert unicode chars to &#1234;
<drbrain> seems odd to write your own thing with open-uri when mechanize does all of that for you
kogent has quit [Quit: kogent]
<lianj> DARK SIDE OF THE MOON
<postmodern> drbrain, good point
<postmodern> drbrain, i'll use mechanize instead, this little scraper task started out small
<drbrain> lianj: Cat-Women of the Moon
kogent has joined #ruby-lang
thone has quit [Ping timeout: 245 seconds]
arubin has joined #ruby-lang
gregmoreno has quit [Ping timeout: 245 seconds]
joevandyk has quit [Quit: joevandyk]
jerikl has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
JoelMcCracken has joined #ruby-lang
<postmodern> drbrain, how do you request an RSS feed and get back a Mechanize::Page object?
__BigO__ has joined #ruby-lang
<postmodern> drbrain, giving me a Mechanize::File, which doesn't have a #search method
sush24 has quit [Quit: This computer has gone to sleep]
cordax has quit [Quit: Computer has gone to sleep.]
<drbrain> likely agent.pluggable_parser[rss feed mime type] = Mechanize::Page
sandbags has quit [Remote host closed the connection]
<postmodern> drbrain, URL returns text/xml, shouldn't that result in a Mechanize::Page
<drbrain> Mechanize::Page is for HTML, but text/xml is not necessarily HTML
Vektur has joined #ruby-lang
<postmodern> drbrain, it's pretty close
<postmodern> drbrain, and Nokogiri can handle XML
<postmodern> ok going back to open-uri
<drbrain> postmodern: not all XML has <meta content-type> or <title> or ...
<postmodern> drbrain, all XML should have a DOCTYPE
<drbrain> did something about setting the pluggable parser not work?
<drbrain> would feeding the body through nokogiri after the fact not work?
<postmodern> drbrain, yes, mechanize does not have a Page like class for XML documents
<postmodern> drbrain, or RSS feeds more specifically
<drbrain> last I checked, "should" != "must"
<postmodern> drbrain, RSS being XML, and also defining a <language> tag
<postmodern> drbrain, yes, those are two separate words :)
<postmodern> so mechanize isn't working for my task, so i wont use it for requesting the RSS feed
<postmodern> however, it should work for requesting the other html pages
mjio has joined #ruby-lang
lcdhoffman has joined #ruby-lang
__BigO__ has quit [Remote host closed the connection]
intellitech has joined #ruby-lang
<postmodern> drbrain, success! mechanize is handling the unicode content just fine
reppard has joined #ruby-lang
brianpWins has joined #ruby-lang
emmdeeess has joined #ruby-lang
<emmdeeess> @agent.get( 'http://website/image.png' ).save ('/path/image.png') won't overwrite the file if it already exists, how do i get it to do that?
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
<drbrain> emmdeeess: you'll be able to do that in the next release
<emmdeeess> dang
<drbrain> emmdeeess: you could remove /path/image.png
<emmdeeess> is there a quick way to delete the file before i download it?
<drbrain> File.unlink '/path/image.png'
megha has quit [Quit: WeeChat 0.4.0]
baba has joined #ruby-lang
<emmdeeess> you guys are the best
<emmdeeess> thanks
foucist has joined #ruby-lang
<drbrain> emmdeeess: injekt has been handling recent mechanize work, maybe he knows when the next release will be ready
<foucist> variable extrapolation in regexp is kind of funny
<foucist> foo = /b/; bar = /a#{foo}c/ #=> /a(?-mix:b)c/
kurko_ has quit [Quit: Computer has gone to sleep.]
bluepojo_ has joined #ruby-lang
bluepojo has quit [Ping timeout: 260 seconds]
bluepojo_ has quit [Ping timeout: 248 seconds]
jxie has joined #ruby-lang
reppard has quit [Ping timeout: 240 seconds]
ridget has quit [Read error: Connection reset by peer]
ridget has joined #ruby-lang
reppard has joined #ruby-lang
jxie has quit [Ping timeout: 245 seconds]
sn0wb1rd has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 244 seconds]
cupakromer has quit []
krz has joined #ruby-lang
jbsan has quit [Ping timeout: 248 seconds]
emocakes has quit [Quit: emocakes]
io_syl has quit [Ping timeout: 244 seconds]
rsl has quit [Quit: Computer has gone to sleep.]
foucist has quit [Read error: Connection reset by peer]
bradland has quit [Read error: Connection reset by peer]
bradland has joined #ruby-lang
bryanl has quit [Ping timeout: 240 seconds]
joevandyk has joined #ruby-lang
ryanv-raptor has left #ruby-lang [#ruby-lang]
felipe has quit [*.net *.split]
mame1 has quit [*.net *.split]
krz has quit [*.net *.split]
KillerFox has quit [*.net *.split]
brianpWins has quit [*.net *.split]
liftM has quit [*.net *.split]
jmeeuwen has quit [*.net *.split]
vesan has quit [*.net *.split]
Kuukunen has quit [*.net *.split]
t0h has quit [*.net *.split]
ramonmaruko has quit [*.net *.split]
slaytanic has quit [*.net *.split]
Glass_saga has quit [*.net *.split]
EvilJStoker has quit [*.net *.split]
steez has quit [*.net *.split]
znz_jp has quit [*.net *.split]
dabradley has quit [*.net *.split]
Kero has quit [*.net *.split]
intellitech has quit [*.net *.split]
amerine has quit [*.net *.split]
jperry2 has quit [*.net *.split]
kain has quit [*.net *.split]
CoverSlide has quit [*.net *.split]
jaska has quit [*.net *.split]
totallymike has quit [*.net *.split]
dams has quit [*.net *.split]
freedrull has quit [*.net *.split]
levifig has quit [*.net *.split]
kennyvb has quit [*.net *.split]
knu has quit [*.net *.split]
ryanf has quit [*.net *.split]
mistym_ has quit [*.net *.split]
Rarrikins_a_w has quit [*.net *.split]
nyuszika7h has quit [*.net *.split]
chris2 has quit [*.net *.split]
s0ber has quit [*.net *.split]
ddv has quit [*.net *.split]
kotp has quit [*.net *.split]
cout has quit [*.net *.split]
hexreel has quit [*.net *.split]
eban has quit [*.net *.split]
narya_ has quit [*.net *.split]
epitron has quit [*.net *.split]
oddmunds has quit [*.net *.split]
mfn has quit [*.net *.split]
JoelMcCracken has quit [*.net *.split]
arubin has quit [*.net *.split]
drbrain has quit [*.net *.split]
mistym has quit [*.net *.split]
chendo_ has quit [*.net *.split]
cirenyc has quit [*.net *.split]
dvorak has quit [*.net *.split]
yibe_ has quit [*.net *.split]
wycats__ has quit [*.net *.split]
nmeum has quit [*.net *.split]
Caius has quit [*.net *.split]
hackeron has quit [*.net *.split]
ggreer has quit [*.net *.split]
flori has quit [*.net *.split]
dominikh has quit [*.net *.split]
swav has quit [*.net *.split]
mephux has quit [*.net *.split]
Fretta has quit [*.net *.split]
vbatts|work has quit [*.net *.split]
x0F has quit [*.net *.split]
insane_kangaroo has quit [*.net *.split]
priodev has quit [*.net *.split]
voker57 has quit [*.net *.split]
melter has quit [*.net *.split]
rebelcan has quit [*.net *.split]
eam has quit [*.net *.split]
tpope has quit [*.net *.split]
nibbo has quit [*.net *.split]
soahccc has quit [*.net *.split]
asio has quit [*.net *.split]
kirin` has quit [*.net *.split]
Spaceghostc2c has quit [*.net *.split]
herpless has quit [*.net *.split]
dreinull_ has quit [*.net *.split]
MrWGW- has quit [*.net *.split]
ridget has quit [*.net *.split]
djwonk has quit [*.net *.split]
pbjorklund has quit [*.net *.split]
stardiviner has quit [*.net *.split]
sduckett has quit [*.net *.split]
Guest85414 has quit [*.net *.split]
wudofyr_ has quit [*.net *.split]
joschi has quit [*.net *.split]
remi has quit [*.net *.split]
amateurhuman has quit [*.net *.split]
Spakman_ has quit [*.net *.split]
valeri_ufo has quit [*.net *.split]
[dmp]_ has quit [*.net *.split]
hagabaka has quit [*.net *.split]
_ko1 has quit [*.net *.split]
wyhaines has quit [*.net *.split]
tenderlove has quit [*.net *.split]
sebasoga has quit [*.net *.split]
singpolyma has quit [*.net *.split]
bryno has quit [*.net *.split]
djinni` has quit [*.net *.split]
ReinH has quit [*.net *.split]
ioga_wrk has quit [*.net *.split]
nirix has quit [*.net *.split]
yfeldblum has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
sheerun has quit [*.net *.split]
vgoff has quit [*.net *.split]
johnnyfive has quit [*.net *.split]
Vektur has quit [*.net *.split]
techlife has quit [*.net *.split]
canton7 has quit [*.net *.split]
bcardarella has quit [*.net *.split]
matthewd has quit [*.net *.split]
kalleth has quit [*.net *.split]
meizaps has quit [*.net *.split]
s4muel has quit [*.net *.split]
madveru has quit [*.net *.split]
msch has quit [*.net *.split]
reppard has quit [*.net *.split]
Cherrum has quit [*.net *.split]
imajes has quit [*.net *.split]
soypirate has quit [*.net *.split]
postmodern has quit [*.net *.split]
gix has quit [*.net *.split]
dustint has quit [*.net *.split]
erichmenge has quit [*.net *.split]
setmeaway2 has quit [*.net *.split]
matled has quit [*.net *.split]
Xzyx987X has quit [*.net *.split]
dyfrgi has quit [*.net *.split]
jasiek has quit [*.net *.split]
llakey has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
pcboy_ has quit [*.net *.split]
flexd has quit [*.net *.split]
beawesomeinstead has quit [*.net *.split]
floyd2_ has quit [*.net *.split]
scrr has quit [*.net *.split]
havenn_ has quit [*.net *.split]
mjio has quit [*.net *.split]
Banistergalaxy has quit [*.net *.split]
wallerdev has quit [*.net *.split]
stonerfish has quit [*.net *.split]
Asher has quit [*.net *.split]
jayne has quit [*.net *.split]
UziMonkey has quit [*.net *.split]
wasnotrice has quit [*.net *.split]
guilleiguaran has quit [*.net *.split]
ahf has quit [*.net *.split]
rondale_sc has quit [*.net *.split]
zigidias has quit [*.net *.split]
injekt has quit [*.net *.split]
zzak has quit [*.net *.split]
crankharder has quit [*.net *.split]
adgar has quit [*.net *.split]
lianj has quit [*.net *.split]
ironcamel has quit [*.net *.split]
dRbiG has quit [*.net *.split]
foca has quit [*.net *.split]
neurodamage has quit [*.net *.split]
hachiya has quit [*.net *.split]
jarib has quit [*.net *.split]
bstrie has quit [*.net *.split]
cyndis has quit [*.net *.split]
adam12 has quit [*.net *.split]
fumduq has quit [*.net *.split]
franckverrot has quit [*.net *.split]
fuzzy8balls has quit [*.net *.split]
akamike has quit [*.net *.split]
mksm has quit [*.net *.split]
nick_h has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
Gate has quit [*.net *.split]
innohero has quit [*.net *.split]
dbussink has quit [*.net *.split]
ohsix has quit [*.net *.split]
tylersmith has quit [*.net *.split]
wizonesolutions has quit [*.net *.split]
grandy has quit [*.net *.split]
threedaymonk has quit [*.net *.split]
crudson1 has quit [*.net *.split]
joast has quit [*.net *.split]
snk has quit [*.net *.split]
aef has quit [*.net *.split]
Spaceghost|cloud has quit [*.net *.split]
shaman42 has quit [*.net *.split]
ged has quit [*.net *.split]
mahlon has quit [*.net *.split]
weeb1e has quit [*.net *.split]
zcl0ud has quit [*.net *.split]
duckinator has quit [*.net *.split]
znz_v has quit [*.net *.split]
davidbalber|away has quit [*.net *.split]
levicole has quit [*.net *.split]
dous has quit [*.net *.split]
tsou has quit [*.net *.split]
huydx has quit [*.net *.split]
DEac- has quit [*.net *.split]
bpot has quit [*.net *.split]
jashank has quit [*.net *.split]
musl has quit [*.net *.split]
shajith has quit [*.net *.split]
vbatts has quit [*.net *.split]
anekos has quit [*.net *.split]
tris has quit [*.net *.split]
sonne has quit [*.net *.split]
masterkorp has quit [*.net *.split]
khaase has quit [*.net *.split]
TTilus has quit [*.net *.split]
emmdeeess has quit [*.net *.split]
sn0wb1rd has quit [*.net *.split]
fsvehla has quit [*.net *.split]
achiu has quit [*.net *.split]
Weems has quit [*.net *.split]
lucas has quit [*.net *.split]
matti has quit [*.net *.split]
SubSpawn has quit [*.net *.split]
tos9 has quit [*.net *.split]
brixen has quit [*.net *.split]
akahn has quit [*.net *.split]
Cope has quit [*.net *.split]
rking has quit [*.net *.split]
pabs has quit [*.net *.split]
jsaak has quit [*.net *.split]
cHarNe2 has quit [*.net *.split]
spectra has quit [*.net *.split]
bradland has quit [*.net *.split]
baba has quit [*.net *.split]
lcdhoffman has quit [*.net *.split]
AntiTyping has quit [*.net *.split]
tomzx_mac has quit [*.net *.split]
RickHull1 has quit [*.net *.split]
aedorn has quit [*.net *.split]
dcwu has quit [*.net *.split]
kith has quit [*.net *.split]
rue has quit [*.net *.split]
retro|cz has quit [*.net *.split]
Smol has quit [*.net *.split]
sora_h has quit [*.net *.split]
ddfreyne has quit [*.net *.split]
FiXato has quit [*.net *.split]
abuiles_ has quit [*.net *.split]
kvs has quit [*.net *.split]
theoros has quit [*.net *.split]
benwoody has quit [*.net *.split]
pkondzior__ has quit [*.net *.split]
randym has quit [*.net *.split]
shachaf has quit [*.net *.split]
mitchty has quit [*.net *.split]
xsdg has quit [*.net *.split]
kke has quit [*.net *.split]
jwollert has quit [*.net *.split]
wang has quit [*.net *.split]
mbr has quit [*.net *.split]
lake has quit [*.net *.split]
thone_ has quit [*.net *.split]
Averna has quit [*.net *.split]
Bwild has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
tdy has quit [*.net *.split]
Muz has quit [*.net *.split]
ruskie has quit [*.net *.split]
rdw200169 has quit [*.net *.split]
Axsuul has quit [*.net *.split]
bougyman has quit [*.net *.split]
DefV has quit [*.net *.split]
lele|w has quit [*.net *.split]
L0rdShrek____ has quit [*.net *.split]
gianlucadv has quit [*.net *.split]
dumfries has quit [*.net *.split]
yellow5 has quit [*.net *.split]
_dumfries has quit [*.net *.split]
neocoin has quit [*.net *.split]
ebouchut has quit [*.net *.split]
_Mon_Ouie_ has quit [*.net *.split]
GitNick has quit [*.net *.split]
Guest16497 has quit [*.net *.split]
meise has quit [*.net *.split]
corundum has quit [*.net *.split]
ericwood has quit [*.net *.split]
cschneid has quit [*.net *.split]
Mellett68 has quit [*.net *.split]
anildigital_work has quit [*.net *.split]
darix has quit [*.net *.split]
bedouin has quit [*.net *.split]
rtl has quit [*.net *.split]
rwjblue has quit [*.net *.split]
andrewvos has quit [*.net *.split]
blowmage has quit [*.net *.split]
jaymes has quit [*.net *.split]
joevandyk has quit [*.net *.split]
spuk_ has quit [*.net *.split]
tonni__ has quit [*.net *.split]
face has quit [*.net *.split]
naquad has quit [*.net *.split]
scottschecter has quit [*.net *.split]
earthquake has quit [*.net *.split]
zanea_ has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
thorncp has quit [*.net *.split]
heftig has quit [*.net *.split]
mihar has quit [*.net *.split]
wnd has quit [*.net *.split]
linc01n has quit [*.net *.split]
pnr has quit [*.net *.split]
jaimef has quit [*.net *.split]
FastJack has quit [*.net *.split]
whitequark has quit [*.net *.split]
Paradox has quit [*.net *.split]
badeball has quit [*.net *.split]
coffeejunk has quit [*.net *.split]
jstemmer has quit [*.net *.split]
kuja has quit [*.net *.split]
manveru has quit [*.net *.split]
hibariya has quit [*.net *.split]
reactormonk has quit [*.net *.split]
faen has quit [*.net *.split]
conceal_rs_ has quit [*.net *.split]
devn has quit [*.net *.split]
certainty has quit [*.net *.split]
joren_ has quit [*.net *.split]
segfault_ has quit [Ping timeout: 246 seconds]
alvaro_o has quit [Quit: Ex-Chat]
bedouin has joined #ruby-lang
cschneid has joined #ruby-lang
Guest16497 has joined #ruby-lang
corundum has joined #ruby-lang
ebouchut has joined #ruby-lang
meise has joined #ruby-lang
_Mon_Ouie_ has joined #ruby-lang
jwollert has joined #ruby-lang
anildigital_work has joined #ruby-lang
wang has joined #ruby-lang
neocoin has joined #ruby-lang
shachaf has joined #ruby-lang
rue has joined #ruby-lang
FiXato has joined #ruby-lang
ddfreyne has joined #ruby-lang
RickHull1 has joined #ruby-lang
kke has joined #ruby-lang
mbr has joined #ruby-lang
Smol has joined #ruby-lang
kvs has joined #ruby-lang
erichmenge has joined #ruby-lang
abuiles_ has joined #ruby-lang
rtinker has joined #ruby-lang
aedorn has joined #ruby-lang
xsdg has joined #ruby-lang
valeri_ufo has joined #ruby-lang
GitNick has joined #ruby-lang
amateurhuman has joined #ruby-lang
retro|cz has joined #ruby-lang
AntiTyping has joined #ruby-lang
theoros has joined #ruby-lang
_ko1 has joined #ruby-lang
ridget has joined #ruby-lang
EvilJStoker has joined #ruby-lang
dcwu has joined #ruby-lang
Kuukunen has joined #ruby-lang
sduckett has joined #ruby-lang
krz has joined #ruby-lang
herpless has joined #ruby-lang
melter has joined #ruby-lang
Fretta has joined #ruby-lang
mfn has joined #ruby-lang
vbatts|work has joined #ruby-lang
jmeeuwen has joined #ruby-lang
djwonk has joined #ruby-lang
soahccc has joined #ruby-lang
narya_ has joined #ruby-lang
steez has joined #ruby-lang
vesan has joined #ruby-lang
tjadc has joined #ruby-lang
epitron has joined #ruby-lang
ramonmaruko has joined #ruby-lang
dvorak has joined #ruby-lang
77CAAL5XC has joined #ruby-lang
wudofyr_ has joined #ruby-lang
s0ber has joined #ruby-lang
kotp has joined #ruby-lang
ryanf has joined #ruby-lang
Caius has joined #ruby-lang
ddv has joined #ruby-lang
Rarrikins_a_w has joined #ruby-lang
darix has joined #ruby-lang
ioga_wrk has joined #ruby-lang
[dmp]_ has joined #ruby-lang
slaytanic has joined #ruby-lang
joschi has joined #ruby-lang
eban has joined #ruby-lang
dabradley has joined #ruby-lang
yibe_ has joined #ruby-lang
t0h has joined #ruby-lang
lcdhoffman has joined #ruby-lang
remi has joined #ruby-lang
wycats__ has joined #ruby-lang
asio has joined #ruby-lang
Spakman_ has joined #ruby-lang
voker57 has joined #ruby-lang
rebelcan has joined #ruby-lang
cirenyc has joined #ruby-lang
eam has joined #ruby-lang
kith has joined #ruby-lang
sora_h has joined #ruby-lang
tpope has joined #ruby-lang
Kero has joined #ruby-lang
oddmunds has joined #ruby-lang
lake has joined #ruby-lang
Spaceghostc2c has joined #ruby-lang
Mellett68 has joined #ruby-lang
mitchty has joined #ruby-lang
flori has joined #ruby-lang
nmeum has joined #ruby-lang
hagabaka has joined #ruby-lang
kirin` has joined #ruby-lang
pbjorklund has joined #ruby-lang
brianpWins has joined #ruby-lang
JoelMcCracken has joined #ruby-lang
Glass_saga has joined #ruby-lang
cout has joined #ruby-lang
MrWGW- has joined #ruby-lang
stardiviner has joined #ruby-lang
lsegal has joined #ruby-lang
hexreel has joined #ruby-lang
chris2 has joined #ruby-lang
chimkan_ has joined #ruby-lang
swav has joined #ruby-lang
znz_jp has joined #ruby-lang
bradland has joined #ruby-lang
pkondzior__ has joined #ruby-lang
nibbo has joined #ruby-lang
priodev has joined #ruby-lang
randym has joined #ruby-lang
mistym_ has joined #ruby-lang
ericwood has joined #ruby-lang
nyuszika7h has joined #ruby-lang
benwoody has joined #ruby-lang
dreinull_ has joined #ruby-lang
mistym has joined #ruby-lang
hackeron has joined #ruby-lang
Guest85414 has joined #ruby-lang
ggreer has joined #ruby-lang
x0F has joined #ruby-lang
knu has joined #ruby-lang
freedrull has joined #ruby-lang
jaska has joined #ruby-lang
TTilus has joined #ruby-lang
amerine has joined #ruby-lang
Cherrum has joined #ruby-lang
spectra has joined #ruby-lang
dams has joined #ruby-lang
CoverSlide has joined #ruby-lang
khaase has joined #ruby-lang
masterkorp has joined #ruby-lang
adgar has joined #ruby-lang
kalleth has joined #ruby-lang
Gate has joined #ruby-lang
tris has joined #ruby-lang
jarib has joined #ruby-lang
jperry2 has joined #ruby-lang
msch has joined #ruby-lang
totallymike has joined #ruby-lang
fuzzy8balls has joined #ruby-lang
zcl0ud has joined #ruby-lang
bstrie has joined #ruby-lang
levifig has joined #ruby-lang
injekt has joined #ruby-lang
zzak has joined #ruby-lang
sonne has joined #ruby-lang
foca has joined #ruby-lang
ironcamel has joined #ruby-lang
akamike has joined #ruby-lang
zigidias has joined #ruby-lang
Y_Ichiro has joined #ruby-lang
jsaak has joined #ruby-lang
vbatts has joined #ruby-lang
lianj has joined #ruby-lang
weeb1e has joined #ruby-lang
znz_v has joined #ruby-lang
anekos has joined #ruby-lang
davidbalber|away has joined #ruby-lang
canton7 has joined #ruby-lang
pabs has joined #ruby-lang
shajith has joined #ruby-lang
s4muel has joined #ruby-lang
madveru has joined #ruby-lang
rking has joined #ruby-lang
crankharder has joined #ruby-lang
bcardarella has joined #ruby-lang
mahlon has joined #ruby-lang
meizaps has joined #ruby-lang
nick_h has joined #ruby-lang
mksm has joined #ruby-lang
kennyvb has joined #ruby-lang
kain has joined #ruby-lang
neurodamage has joined #ruby-lang
johnnyfive has joined #ruby-lang
cHarNe2 has joined #ruby-lang
rondale_sc has joined #ruby-lang
matthewd has joined #ruby-lang
franckverrot has joined #ruby-lang
levicole has joined #ruby-lang
akahn has joined #ruby-lang
hachiya has joined #ruby-lang
adam12 has joined #ruby-lang
musl has joined #ruby-lang
jasiek has joined #ruby-lang
llakey has joined #ruby-lang
ged has joined #ruby-lang
beawesomeinstead has joined #ruby-lang
duckinator has joined #ruby-lang
fumduq has joined #ruby-lang
yeltzooo has joined #ruby-lang
pcboy_ has joined #ruby-lang
joast has joined #ruby-lang
dRbiG has joined #ruby-lang
yfeldblum has joined #ruby-lang
brixen has joined #ruby-lang
dyfrgi has joined #ruby-lang
jayne has joined #ruby-lang
matti has joined #ruby-lang
SubSpawn has joined #ruby-lang
ahf has joined #ruby-lang
achiu has joined #ruby-lang
snk has joined #ruby-lang
threedaymonk has joined #ruby-lang
bryno has joined #ruby-lang
wizonesolutions has joined #ruby-lang
wallerdev has joined #ruby-lang
dous has joined #ruby-lang
tsou has joined #ruby-lang
bpot has joined #ruby-lang
guilleiguaran has joined #ruby-lang
singpolyma has joined #ruby-lang
mephux has joined #ruby-lang
havenwood has joined #ruby-lang
imajes has joined #ruby-lang
sheerun has joined #ruby-lang
Asher has joined #ruby-lang
wasnotrice has joined #ruby-lang
tenderlove has joined #ruby-lang
grandy has joined #ruby-lang
flexd has joined #ruby-lang
Xzyx987X has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
matled has joined #ruby-lang
pnr has joined #ruby-lang
wyhaines has joined #ruby-lang
floyd2_ has joined #ruby-lang
faen has joined #ruby-lang
tos9 has joined #ruby-lang
badeball has joined #ruby-lang
crudson1 has joined #ruby-lang
dustint has joined #ruby-lang
naquad has joined #ruby-lang
Spaceghost|cloud has joined #ruby-lang
ReinH has joined #ruby-lang
setmeaway2 has joined #ruby-lang
mjio has joined #ruby-lang
mercwithamouth has joined #ruby-lang
earthquake has joined #ruby-lang
DEac- has joined #ruby-lang
mihar has joined #ruby-lang
FastJack has joined #ruby-lang
KA_ has joined #ruby-lang
scottschecter has joined #ruby-lang
jashank has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
Weems has joined #ruby-lang
spuk_ has joined #ruby-lang
whitequark has joined #ruby-lang
shaman42 has joined #ruby-lang
wnd has joined #ruby-lang
certainty has joined #ruby-lang
bryanl has joined #ruby-lang
tonni__ has joined #ruby-lang
Paradox has joined #ruby-lang
fsvehla has joined #ruby-lang
djinni` has joined #ruby-lang
aef has joined #ruby-lang
huydx has joined #ruby-lang
zanea_ has joined #ruby-lang
Cope has joined #ruby-lang
postmodern has joined #ruby-lang
joevandyk has joined #ruby-lang
jaymes has joined #ruby-lang
blowmage has joined #ruby-lang
jaimef has joined #ruby-lang
techlife has joined #ruby-lang
emmdeeess has joined #ruby-lang
dbussink has joined #ruby-lang
face has joined #ruby-lang
linc01n has joined #ruby-lang
rtl has joined #ruby-lang
cyndis has joined #ruby-lang
ezkl has joined #ruby-lang
thorncp has joined #ruby-lang
scrr has joined #ruby-lang
JohnBat26 has joined #ruby-lang
nirix has joined #ruby-lang
stonerfish has joined #ruby-lang
vgoff has joined #ruby-lang
gix has joined #ruby-lang
ohsix has joined #ruby-lang
robbyoconnor has joined #ruby-lang
rwjblue has joined #ruby-lang
sebasoga has joined #ruby-lang
UziMonkey has joined #ruby-lang
samuelkadolph has joined #ruby-lang
Guest82066 has joined #ruby-lang
lucas has joined #ruby-lang
baba has joined #ruby-lang
innohero has joined #ruby-lang
andrewvos has joined #ruby-lang
coffeejunk has joined #ruby-lang
mame1 has joined #ruby-lang
KillerFox has joined #ruby-lang
reactormonk has joined #ruby-lang
felipe has joined #ruby-lang
hibariya has joined #ruby-lang
jstemmer has joined #ruby-lang
devn has joined #ruby-lang
conceal_rs_ has joined #ruby-lang
joren_ has joined #ruby-lang
kuja has joined #ruby-lang
manveru has joined #ruby-lang
Bwild has joined #ruby-lang
ruskie has joined #ruby-lang
Muz has joined #ruby-lang
L0rdShrek____ has joined #ruby-lang
_dumfries has joined #ruby-lang
thone_ has joined #ruby-lang
lele|w has joined #ruby-lang
tdy has joined #ruby-lang
yellow5 has joined #ruby-lang
Averna has joined #ruby-lang
DefV has joined #ruby-lang
bougyman has joined #ruby-lang
dumfries has joined #ruby-lang
gianlucadv has joined #ruby-lang
Axsuul has joined #ruby-lang
rdw200169 has joined #ruby-lang
krohrbaugh has joined #ruby-lang
nazty has joined #ruby-lang
totallymike has quit [Excess Flood]
techlife has quit [Max SendQ exceeded]
dominikh has joined #ruby-lang
techlife has joined #ruby-lang
totallymike has joined #ruby-lang
totallymike is now known as Guest97912
Guest97912 has quit [Remote host closed the connection]
rtinker has left #ruby-lang [#ruby-lang]
robbyoconnor has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
kirin` has quit [Ping timeout: 276 seconds]
kirin` has joined #ruby-lang
agile has joined #ruby-lang
kurko_ has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
kirin` has quit [Ping timeout: 255 seconds]
ivanoats has joined #ruby-lang
kirin` has joined #ruby-lang
havenwood has quit [Ping timeout: 252 seconds]
tenderlo_ has joined #ruby-lang
tenderlove has quit [Ping timeout: 252 seconds]
kurko_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
io_syl has joined #ruby-lang
havenwood has joined #ruby-lang
kirin` has quit [Ping timeout: 256 seconds]
kirin` has joined #ruby-lang
stonerfish has quit [Ping timeout: 276 seconds]
MartynKe- has joined #ruby-lang
ryanf has quit [Ping timeout: 240 seconds]
MartynKe- has quit [Excess Flood]
kirin` has quit [Ping timeout: 264 seconds]
kirin` has joined #ruby-lang
MartynKe- has joined #ruby-lang
Aiur has joined #ruby-lang
rtinker_ has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
tenderlo_ has quit [Remote host closed the connection]
savagecroc has joined #ruby-lang
amerine has quit [Quit: Computer has gone to sleep.]
<savagecroc> netsplit over yet?
krz has quit [Ping timeout: 245 seconds]
gregmoreno has joined #ruby-lang
Averna has quit [Quit: Leaving.]
lcdhoffman has quit [Quit: lcdhoffman]
ryanf has joined #ruby-lang
sebasoga has quit [Quit: Textual IRC Client: www.textualapp.com]
JoelMcCracken has quit [Ping timeout: 252 seconds]
brianpWins has quit [Quit: brianpWins]
mistym_ has quit [Remote host closed the connection]
intellitech has joined #ruby-lang
guns has joined #ruby-lang
mistym_ has joined #ruby-lang
rtinker_ has quit [Remote host closed the connection]
mjio has quit []
thufir_ has joined #ruby-lang
joevandyk has quit [Quit: joevandyk]
mistym_ has quit [Remote host closed the connection]
FINE has joined #ruby-lang
FINE has left #ruby-lang [#ruby-lang]
brianpWins has joined #ruby-lang
noop has joined #ruby-lang
setmeaway2 has quit [Ping timeout: 244 seconds]
mjio has joined #ruby-lang
mjio has quit [Client Quit]
Mon_Ouie has joined #ruby-lang
Fretta has quit [Quit: Fretta]
rippa has joined #ruby-lang
krz has joined #ruby-lang
chimkan_ has quit [Quit: chimkan_]
freedrull has quit [Read error: Operation timed out]
freedrull has joined #ruby-lang
Fretta has joined #ruby-lang
Aiur has quit [Ping timeout: 246 seconds]
baba has quit [Ping timeout: 252 seconds]
megha has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
solars has joined #ruby-lang
miraks has joined #ruby-lang
therod has joined #ruby-lang
rodrigo has joined #ruby-lang
therod has quit [Ping timeout: 252 seconds]
lun_ has joined #ruby-lang
dams has quit [Read error: Operation timed out]
dams has joined #ruby-lang
rodrigo has quit [Read error: Connection reset by peer]
knu has quit [Ping timeout: 256 seconds]
Fretta has quit [Quit: Fretta]
vlad_starkov has joined #ruby-lang
knu has joined #ruby-lang
<postmodern> i know there's a couple archive plugins for jekyll
<postmodern> what's the best one to generate /#{year}/ and /#{year}/#{month}/ archives?
<postmodern> *archive pages
Mon_Ouie has quit [Ping timeout: 255 seconds]
gregmoreno has quit [Remote host closed the connection]
rue has quit [Remote host closed the connection]
rue has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
ezkl has quit [Quit: Textual IRC Client: www.textualapp.com]
brianpWins has quit [Quit: brianpWins]
nXqd has joined #ruby-lang
AntiTyping has quit [Quit: AntiTyping]
miraks has quit []
dhruvasagar has joined #ruby-lang
ridget has quit [Remote host closed the connection]
sn0wb1rd has quit [Quit: I will be right back]
brianpWins has joined #ruby-lang
KA_ has quit [Quit: KA_]
beho has joined #ruby-lang
KA_ has joined #ruby-lang
tbuehlmann has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
mars777 has joined #ruby-lang
<mars777> Is it possible to call a class method and do a joins on it?
<mars777> self.real_cool
havenwood has joined #ruby-lang
<mars777> for example
<mars777> user = User.new
<mars777> User.real_cool
<mars777> how would I join User.real_cool with a query string?
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
amerine has joined #ruby-lang
lun_ has quit [Ping timeout: 248 seconds]
JohnBat26 has joined #ruby-lang
dr_bob has joined #ruby-lang
lun_ has joined #ruby-lang
<injekt> postmodern: Mechanize::Page for anything but html makes no sense, pluggable parser should work fine though. pluggable_parer.xml = XMLPage
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
rolfb has joined #ruby-lang
<postmodern> injekt, ended up doing it all with spidr
<postmodern> injekt, forget I exposed a get_page method
<injekt> postmodern: I updated your issue anyway
<savagecroc> hi i've got some text, and i need to dump it on a file on a remote server
<injekt> emmdeeess: i'd like to close a few more issues before the next release, but it shouldn't be long
<savagecroc> i've tired just doing "echo #{Shellwords.escape(content)} | sudo tee #{file_path_and_name}" but it keeps failing
<savagecroc> can't work out what the error is.. any other way of doing it?
<injekt> I think you want > not |
<injekt> oh tee
<savagecroc> nah > drops the priviliage level
<injekt> missed that
<savagecroc> if i ssh onto the server and run echo 'bla' | sudo tee #{file_path_and_name} it works fine
<injekt> what makes you think this is a ruby problem then?
<injekt> mars777: you'll need to elaborate 'call a method and do a joins on it' makes little sense
<savagecroc> it's probably not a ruby problem.. but i'm trying to pipe in a file which has about 10k characters and somethings making it break
<savagecroc> which Shellwords.escape should take care of
<savagecroc> but it doesn't
<savagecroc> so rather than trying to fix Shellwords.escape(content)
toretore has joined #ruby-lang
<savagecroc> maybe i can try and dump the text some other way
megha has quit [Quit: WeeChat 0.4.0]
sandbags has quit [Remote host closed the connection]
<mars777> never mind i think i got it
<mars777> Thanks anyway
setmeaway has joined #ruby-lang
mars777 has quit [Quit: mars777]
maxmanders has joined #ruby-lang
maxmanders has quit [Remote host closed the connection]
judofyr has joined #ruby-lang
<savagecroc> hmmm
<savagecroc> this uploading files thing is being a pain
<savagecroc> ok i have a few ideas...
<savagecroc> 1. dump the string to a local file in /tmp/somerandomstring
<savagecroc> 2. execute scp `scp /tmp/somerandomstring server:~/tmp`
<savagecroc> 3. run "mv ~/tmp/somerandomstring /to/where/its/supposed/to/go"
<savagecroc> that's the only thing i can think of
<savagecroc> no way i can directly dump the string from memory?
<judofyr> savagecroc: not sure. have you tried Net::SSH?
<judofyr> savagecroc: you could also shell out to `ssh`
<judofyr> do something similar to: ssh server 'cat > foobar'
charliesome has joined #ruby-lang
<savagecroc> judofry: yeah i can't use > because it de-elevates privliges
<savagecroc> oh yeah.. i see what you mean
<judofyr> savagecroc: r,w=IO.pipe; pid=Process.spawn("ssh", "server", "cat > foobar", :in => r); w << "hello"; w.close; Process.waitpid(pid)
<savagecroc> haha niceeeee
KA_ has quit [Quit: KA_]
tbuehlmann has quit [Read error: Connection reset by peer]
swav has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
blacktulip has joined #ruby-lang
Criztian has joined #ruby-lang
glebm has joined #ruby-lang
vgoff has quit [Quit: ZNC - http://znc.sourceforge.net]
zmack has joined #ruby-lang
vgoff has joined #ruby-lang
gnufied has joined #ruby-lang
bradland_ has joined #ruby-lang
bradland has quit [Read error: Connection reset by peer]
bradland_ is now known as bradland
adambeynon has joined #ruby-lang
swav has joined #ruby-lang
RickHull1 has quit [Read error: Connection reset by peer]
beho has quit [Remote host closed the connection]
<yorickpeterse> Morning
<judofyr> morning!
robotmay has joined #ruby-lang
ryanf has quit [Quit: leaving]
tbuehlmann has joined #ruby-lang
swav has quit [Remote host closed the connection]
dcwu has quit [Quit: Leaving.]
knu has quit [Ping timeout: 256 seconds]
johnnyfive has quit [Ping timeout: 248 seconds]
knu has joined #ruby-lang
agnitio has joined #ruby-lang
johnnyfive has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
wyhaines has quit [Ping timeout: 252 seconds]
wyhaines has joined #ruby-lang
marr has joined #ruby-lang
tbuehlmann has joined #ruby-lang
lun__ has joined #ruby-lang
lun_ has quit [Read error: Connection reset by peer]
brianpWins has quit [Quit: brianpWins]
beho has joined #ruby-lang
poga has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 256 seconds]
s1n4 has joined #ruby-lang
dhruvasagar has joined #ruby-lang
poga has quit [Remote host closed the connection]
swav has joined #ruby-lang
s1n4 has quit [Quit: leaving]
GarethAdams has joined #ruby-lang
skade has joined #ruby-lang
amerine has quit [Quit: Computer has gone to sleep.]
<injekt> hai
<judofyr> oh hai
kcassidy has joined #ruby-lang
<injekt> debugging stdlib yay
<judofyr> nais
<yorickpeterse> alas poor injekt
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby-lang
dhruvasagar has joined #ruby-lang
sush24 has joined #ruby-lang
<injekt> also fu openid
sepp2k has joined #ruby-lang
cultureulterior has joined #ruby-lang
<gnufied> :(
<darix> injekt: why?
<injekt> darix: why what?
<injekt> darix: integrating a rails app into google app marketplace
MaddinXx has joined #ruby-lang
<darix> injekt: could be worse. could be saml?
<injekt> heh
apeiros_ has joined #ruby-lang
<injekt> turns out no-one really does this
<injekt> and i can see why
beho has quit [Remote host closed the connection]
emocakes has joined #ruby-lang
<yorickpeterse> that shit is webscale yo
gnufied1 has joined #ruby-lang
gnufied has quit [Ping timeout: 240 seconds]
zmack has quit [Remote host closed the connection]
madish has joined #ruby-lang
zmack_ has joined #ruby-lang
almost9 has joined #ruby-lang
zmack has joined #ruby-lang
zmack_ has quit [Ping timeout: 276 seconds]
guns has quit [Ping timeout: 248 seconds]
tbuehlmann has quit [Remote host closed the connection]
Eric has joined #ruby-lang
havenn_ has joined #ruby-lang
Eric is now known as Guest74651
<andrewvos> Your moms face is webscale.
cirenyc has quit [Ping timeout: 252 seconds]
<ddfreyne> I didn't know you knew my mom.
<injekt> EVERYONE knows ur mom
thufir_ has quit [Quit: Leaving.]
havenwood has quit [Ping timeout: 252 seconds]
achiu has quit [Read error: Connection reset by peer]
achiu has joined #ruby-lang
mytrile has joined #ruby-lang
almost9 has quit [Remote host closed the connection]
beiter has joined #ruby-lang
spuk_ has quit [Ping timeout: 245 seconds]
hhatch has joined #ruby-lang
<yorickpeterse> she's kind of a big thing
beiter has quit [Quit: beiter]
havenn_ has left #ruby-lang [#ruby-lang]
havenwood has joined #ruby-lang
<injekt> andrewvos: did you watch the game wednesday?
sush24 has quit [Quit: This computer has gone to sleep]
beho has joined #ruby-lang
xcombelle has joined #ruby-lang
carloslopes has joined #ruby-lang
agnitio has quit [Quit: Leaving]
MaddinXx has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 248 seconds]
<andrewvos> nahh
<andrewvos> injekt: what sport we talking about?
<yorickpeterse> exploit lifting
havenwood has quit [Remote host closed the connection]
<injekt> andrewvos: football, i went to wembley (mostly to see brazil)
MaddinXx has joined #ruby-lang
erichmenge has quit [Ping timeout: 248 seconds]
kurko_ has joined #ruby-lang
erichmenge has joined #ruby-lang
stonerfish has joined #ruby-lang
cored has joined #ruby-lang
cored has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
Bearproof has joined #ruby-lang
jxie has joined #ruby-lang
Bearproof has left #ruby-lang [#ruby-lang]
krz has quit [Quit: krz]
77CAAL5XC has quit [Ping timeout: 252 seconds]
chendo_ has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
<andrewvos> injekt: Wow cool. Have fun?
jxie has quit [Quit: leaving]
<injekt> andrewvos: yeah aprt from afterwards trying to squeeze 15k fans into wembley park station :(
noop has quit [Remote host closed the connection]
<andrewvos> haha
glebm has joined #ruby-lang
beiter has joined #ruby-lang
jxie has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
lcdhoffman has joined #ruby-lang
Stilo has joined #ruby-lang
lcdhoffman has quit [Client Quit]
lcdhoffman has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
emmdeeess has quit [Ping timeout: 276 seconds]
banisterfiend has joined #ruby-lang
kurko_ has joined #ruby-lang
intellitech has quit [Quit: intellitech]
lcdhoffman has quit [Quit: lcdhoffman]
<whitequark> yorickpeterse: morning
<yorickpeterse> you're up late
<whitequark> besides.
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
rippa has joined #ruby-lang
<yorickpeterse> pffff
wallerdev has joined #ruby-lang
<whitequark> I've just realized that my homegrown parser compiler might in fact be better suited for parsing ruby than ragel+racc or whatever
<whitequark> let me explain with an example
<yorickpeterse> oh?
<yorickpeterse> Is it webscale>?
<whitequark> I currently have the following grammar: decl ::= name datatype; name ::= (\w+)\s*; datatype ::= int | bool;
<whitequark> grammars like this pose a significant problem to traditional 2-phase parsers, as `int' would indeed be parsed as a reserved word, and the nonterminal `decl' won't match
<whitequark> while writing a lexer for ruby, you'll face this problem and probably solve it by making the lexer only one step ahead of parser and adding state (bareword|keyword) to it
<whitequark> which is complicated and error-prone
<whitequark> I simply have regular expressions for terminals, and my LALR compiler 1) has a well-defined order in which rules are applied 2) only looks at the grammar with the resolution of a single terminal
<whitequark> i.e. it doesn't look inside terminals
<yorickpeterse> hmm
<whitequark> so, it seems to me that this approach allows for a much simpler parser, except for some whitespace weirdness.
Criztian has joined #ruby-lang
<whitequark> also the complete ruby source for the parser is 350 LOC, and it doesn't require code generation. OTOH, it is a recursive descent parser, and might exhaust system stack space on pathological inputs.
<yorickpeterse> only 350 LOC? what the hell
<whitequark> yorickpeterse: 1/3 of them is for error handling neatness :)
kuja has quit [Quit: ZNC - http://znc.sourceforge.net]
<whitequark> it is also somewhat more powerful than bison, i.e. it can lookahead inside choices which do not require shifting
heftig has joined #ruby-lang
<whitequark> like "a ::= b | c; d ::= a | foo;"
<whitequark> (if b and c are terminals)
<yorickpeterse> And this generates Ruby code in the end?
<yorickpeterse> (similar to ragel)
<whitequark> nah, it just caches lookahead stuff as a few ruby objects
kuja has joined #ruby-lang
mistym_ has joined #ruby-lang
stonerfish has quit [Ping timeout: 276 seconds]
rippa has quit [Ping timeout: 240 seconds]
rippa has joined #ruby-lang
scottschecter has quit [Quit: WeeChat 0.4.0]
MartynKe- has quit [Excess Flood]
scottschecter has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
MartynKeigher2 has joined #ruby-lang
MartynKeigher has joined #ruby-lang
MartynKeigher2 has quit [Client Quit]
MartynKeigher has quit [Excess Flood]
therod has joined #ruby-lang
<whitequark> yorickpeterse: whaddayathink?
Guest74651 has quit [Quit: Linkinus - http://linkinus.com]
wallerdev has quit [Quit: wallerdev]
emmdeeess has joined #ruby-lang
<yorickpeterse> eh let me take a look, internet is a cunt here
scottschecter has quit [Quit: WeeChat 0.4.0]
<yorickpeterse> Oh shit it's working again, better start buffering some music before the router kills itself again
<yorickpeterse> whitequark: looking at that code I have no idea what it does (assuming you didn't explain it)
savagecroc has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 260 seconds]
cirenyc has joined #ruby-lang
cirenyc has quit [Client Quit]
scottschecter has joined #ruby-lang
<yorickpeterse> At least with Ragel and the likes I know the grammar and what it does
<whitequark> yorickpeterse: I'm going to annotate it with rocco
<yorickpeterse> ugh, rocco
<whitequark> well, it's not the grammar
<whitequark> I doubt you would know what racc internals do, without knowing it's racc ;)
<whitequark> the grammar is somewhat more self-descriptive. but without refinements, the DSL sucks
<yorickpeterse> How does this compare to Ragel performance wise?
<whitequark> r([ r(/re/) { action }, r(:re) ]), etc
MartynKeigher has joined #ruby-lang
<whitequark> yorickpeterse: much faster. ragel only operates on symbol codes and does that in ruby
<whitequark> whereas oniguruma is much faster and can actually work on characters
<whitequark> which is important as 1.9 can have unicode identifiers
<yorickpeterse> nice
MartynKe- has joined #ruby-lang
<whitequark> I also wonder how much I would lose to racc due to not compiling shift/reduce rules to an FSM
<whitequark> or if I would lose anything at all
tomzx_mac has joined #ruby-lang
srbaker has joined #ruby-lang
scottschecter has quit [Quit: WeeChat 0.4.0]
scottschecter has joined #ruby-lang
wallerdev has joined #ruby-lang
nXqd has quit [Remote host closed the connection]
tomzx_mac has quit [Read error: Operation timed out]
mistym_ has quit [Remote host closed the connection]
rins has joined #ruby-lang
malev has joined #ruby-lang
malev_ has joined #ruby-lang
rsl has joined #ruby-lang
malev_ has quit [Read error: Connection reset by peer]
glebm has quit [Quit: Computer has gone to sleep.]
scottschecter has quit [Quit: WeeChat 0.4.0]
gnufied1 has quit [Quit: Leaving.]
davidbalber|away is now known as davidbalbert
mistym is now known as mistym_meeting
neocoin has quit [Remote host closed the connection]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
lcdhoffman has joined #ruby-lang
beho has quit [Ping timeout: 276 seconds]
gustavnils has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 255 seconds]
stonerfish has joined #ruby-lang
JoelMcCracken has joined #ruby-lang
scottschecter has joined #ruby-lang
antbody has joined #ruby-lang
__BigO__ has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby-lang
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
rolfb has quit [Quit: Leaving...]
carloslopes has joined #ruby-lang
gnufied has joined #ruby-lang
asdfqwer has joined #ruby-lang
KA_ has joined #ruby-lang
jxie has quit [Ping timeout: 245 seconds]
antbody has quit [Read error: Operation timed out]
beiter has quit [Quit: beiter]
<injekt> yay 400 migration files
rtinker has joined #ruby-lang
sush24 has joined #ruby-lang
xcombelle has quit [Remote host closed the connection]
rtinker has quit [Remote host closed the connection]
djwonk has quit []
intellitech has joined #ruby-lang
postmodern has quit [Quit: Leaving]
stonerfish has quit [Ping timeout: 276 seconds]
Rarrikins_a_w has quit [Ping timeout: 240 seconds]
Rarrikins_a_w has joined #ruby-lang
JMcAfreak has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
carloslopes has joined #ruby-lang
methods has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
gnufied has quit [Quit: Leaving.]
antbody has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
gnufied has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby-lang
davidbalbert is now known as davidbalber|away
mytrile has quit [Remote host closed the connection]
techlife has quit [Ping timeout: 276 seconds]
ruskie has quit [Excess Flood]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
madish has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby-lang
ruskie has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby-lang
bin7me has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
zhul_mechanos has joined #ruby-lang
GarethAdams has quit [Quit: Leaving...]
carloslopes has joined #ruby-lang
sullenel has joined #ruby-lang
jonahR has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
carloslopes has joined #ruby-lang
maxmanders has joined #ruby-lang
techlife has quit [Ping timeout: 252 seconds]
<darix> injekt: make more! :p
JohnBat26 has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
tjadc has quit [Read error: Connection reset by peer]
Bearproof has joined #ruby-lang
Bearproof has left #ruby-lang [#ruby-lang]
Fretta has joined #ruby-lang
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
dr_bob has quit [Quit: Leaving.]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby-lang
havenwood has joined #ruby-lang
Rarrikins_a_w_r has joined #ruby-lang
Rarrikins_a_w has quit [Ping timeout: 244 seconds]
tylersmith has joined #ruby-lang
rins has quit [Ping timeout: 246 seconds]
baba has joined #ruby-lang
Rarrikins_a_w_r_ has joined #ruby-lang
rins has joined #ruby-lang
Rarrikins_a_w_r has quit [Ping timeout: 255 seconds]
techlife has quit [Ping timeout: 255 seconds]
Bearproof1 has joined #ruby-lang
Bearproof1 has left #ruby-lang [#ruby-lang]
krohrbaugh has joined #ruby-lang
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
wmoxam has joined #ruby-lang
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
kogent has quit [Quit: kogent]
beiter has joined #ruby-lang
techlife has joined #ruby-lang
ddfreyne has quit [Excess Flood]
kcassidy has left #ruby-lang [#ruby-lang]
<emmdeeess> how can i get this equation to work? percent_up = ((total_count - total_down) / total_count) * 100
ddfreyne has joined #ruby-lang
<emmdeeess> it keeps returning 0
<apeiros_> emmdeeess: because you do integer math
<apeiros_> use fdiv instead of /
<apeiros_> 1/2 == 0
<apeiros_> 1.fdiv 2 == 0.5
<apeiros_> well, =~ 0.5 (floats…)
<emmdeeess> ah hah
<emmdeeess> now how can i shorten the result to 2 decimal places?
gnufied has quit [Quit: Leaving.]
<apeiros_> round
<apeiros_> if you want zeros always printed, you're talking about representation, i.e. String, and in that case, sprintf/String#%
<emmdeeess> so percent_up.round 2
<emmdeeess> ?
<emmdeeess> works perfect, thank you much
agile has quit [Remote host closed the connection]
joevandyk has joined #ruby-lang
GarethAdams has joined #ruby-lang
GarethAdams has quit [Client Quit]
dbussink has quit [Quit: bye]
dbussink has joined #ruby-lang
mytrile has joined #ruby-lang
mistym_meeting is now known as mistym
Technodrome has joined #ruby-lang
<Technodrome> whats thats html builder in ruby called? i forget, i think its pretty old
skade has quit [Quit: Computer has gone to sleep.]
carloslopes has quit [Remote host closed the connection]
<Mon_Ouie> There's a gem called builder
<Mon_Ouie> You can also use Nokogiri
sullenel has quit [Quit: sullenel]
<Technodrome> that wasn't the name of it
<Technodrome> hmm
<Technodrome> it had a different name
<Technodrome> http://markaby.rubyforge.org this was it , found it
josh0x0 has joined #ruby-lang
zmack has quit [Remote host closed the connection]
<josh0x0> Hi! I'm trying to install 1.9.3 to osx and getting compile errors that I can't make sense of. Mind taking a look? Thanks https://gist.github.com/joshm1/4740572
techlife has quit [Ping timeout: 255 seconds]
dhruvasagar has joined #ruby-lang
<havenwood> josh0x0: Have you installed any dependencies listed under?: rvm requirements
KA_ has quit [Quit: KA_]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
KA_ has joined #ruby-lang
<josh0x0> @havenwood i just found out about that. and no, it seems the change to clang was the issue. thanks for taking a look
maxmanders has quit [Quit: Computer has gone to sleep.]
techlife has joined #ruby-lang
<havenwood> josh0x0: np, happy hacking!
sush24 has quit [Quit: This computer has gone to sleep]
pbjorklund has quit [Read error: Operation timed out]
amerine has joined #ruby-lang
KA_ has quit [Quit: KA_]
cordax has joined #ruby-lang
alvaro_o has joined #ruby-lang
cordax has quit [Client Quit]
krohrbaugh has quit [Read error: Connection reset by peer]
krohrbaugh1 has joined #ruby-lang
beiter has quit [Quit: beiter]
mrsolo has joined #ruby-lang
cout is now known as Avogadro
pbjorklund has joined #ruby-lang
Technodrome has left #ruby-lang [#ruby-lang]
francisfish has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 256 seconds]
sush24 has joined #ruby-lang
brianpWins has joined #ruby-lang
Bearproof has joined #ruby-lang
Uranio has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Bearproof has quit [Client Quit]
lele|w has quit [Read error: No route to host]
lele|w has joined #ruby-lang
poga has joined #ruby-lang
Aiur has joined #ruby-lang
swav has quit [Remote host closed the connection]
geopet has joined #ruby-lang
jgv has joined #ruby-lang
Bearproof has joined #ruby-lang
Bearproof has left #ruby-lang [#ruby-lang]
mytrile has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 276 seconds]
almost9 has joined #ruby-lang
davidbalber|away is now known as davidbalbert
badeball has quit [Ping timeout: 245 seconds]
badeball has joined #ruby-lang
therod has quit [Quit: Leaving...]
apeiros_ has quit [Remote host closed the connection]
djwonk has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 276 seconds]
almost9 has quit [Remote host closed the connection]
joevandyk has quit [Quit: joevandyk]
techlife has quit [Ping timeout: 260 seconds]
SoAwesomeMan has joined #ruby-lang
misunnelig has joined #ruby-lang
hexreel has quit [Remote host closed the connection]
JMcAfreak has quit [Ping timeout: 255 seconds]
techlife has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
innohero has quit [Ping timeout: 260 seconds]
innohero has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
djwonk has quit []
djwonk has joined #ruby-lang
drbrain has joined #ruby-lang
xcombelle has joined #ruby-lang
kogent has joined #ruby-lang
carloslopes has joined #ruby-lang
mephux has quit [Excess Flood]
apeiros_ has joined #ruby-lang
mephux has joined #ruby-lang
neocoin has joined #ruby-lang
poga has quit [Remote host closed the connection]
lun__ has quit [Remote host closed the connection]
<andrewvos> New vulnerability?
<andrewvos> The hell is going on?
lun_ has joined #ruby-lang
jonahR has quit [Quit: jonahR]
krohrbaugh has joined #ruby-lang
krohrbaugh1 has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby-lang
agile has joined #ruby-lang
JMcAfreak has joined #ruby-lang
__butch__ has joined #ruby-lang
__butch__ has left #ruby-lang [#ruby-lang]
Rarrikins_a_w_r_ has quit [Ping timeout: 276 seconds]
sn0wb1rd has joined #ruby-lang
Rarrikins_a_w has joined #ruby-lang
dams has quit [Read error: Operation timed out]
dams has joined #ruby-lang
gregmoreno has joined #ruby-lang
asdfqwer has quit [Ping timeout: 252 seconds]
antbody has quit [Quit: leaving]
cultureulterior has quit [Quit: cultureulterior]
drbrain has quit [Remote host closed the connection]
macmartine has joined #ruby-lang
jgv has quit [Ping timeout: 264 seconds]
joevandyk has joined #ruby-lang
lun_ has quit [Remote host closed the connection]
sush24 has quit [Quit: This computer has gone to sleep]
joevandyk has quit [Read error: Connection reset by peer]
joevandyk has joined #ruby-lang
baba has quit [Quit: WeeChat 0.4.0]
djwonk has quit []
tenderlove has joined #ruby-lang
ahf has quit [Ping timeout: 276 seconds]
ahf has joined #ruby-lang
ahf has quit [Changing host]
ahf has joined #ruby-lang
djwonk has joined #ruby-lang
tsou has quit [Ping timeout: 255 seconds]
tsou has joined #ruby-lang
jonahR has joined #ruby-lang
bluepojo has joined #ruby-lang
<zzak> zenspider: nice!
hahuang65 has joined #ruby-lang
hahuang65 has quit [Remote host closed the connection]
__butch__ has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
Guest1029 has joined #ruby-lang
djwonk has quit []
djwonk has joined #ruby-lang
Bearproof has joined #ruby-lang
Bearproof has left #ruby-lang [#ruby-lang]
<reactormonk> andrewvos, well, after the yaml fun with rails, all people were looking through insecure data formats
djwonk has quit [Client Quit]
djwonk has joined #ruby-lang
davidbalbert is now known as davidbalber|away
__butch__ has quit [Ping timeout: 245 seconds]
Guest1029 has left #ruby-lang [#ruby-lang]
totallymike has joined #ruby-lang
totallymike is now known as Guest22120
Guest22120 has left #ruby-lang [#ruby-lang]
totallymike has joined #ruby-lang
MartynKeigher has quit [Ping timeout: 248 seconds]
MartynKeigher has joined #ruby-lang
lun_ has joined #ruby-lang
djwonk has quit []
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
s0ber_ has joined #ruby-lang
djwonk has joined #ruby-lang
mercwithamouth has joined #ruby-lang
s0ber has quit [Ping timeout: 240 seconds]
s0ber_ is now known as s0ber
SoAwesomeMan has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
tenderlove has quit [Remote host closed the connection]
JohnBat26 has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
krohrbaugh has joined #ruby-lang
djwonk has quit []
mercwithamouth has quit [Ping timeout: 264 seconds]
rsl has quit [Ping timeout: 252 seconds]
mercwithamouth has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
__BigO__ has quit [Remote host closed the connection]
rsl has joined #ruby-lang
xcombelle has quit [Remote host closed the connection]
krohrbaugh has quit [Quit: Leaving.]
lcdhoffman has joined #ruby-lang
krohrbaugh has joined #ruby-lang
krohrbaugh has quit [Client Quit]
banisterfiend has joined #ruby-lang
krohrbaugh has joined #ruby-lang
AndChat| has joined #ruby-lang
joevandyk has quit [Ping timeout: 276 seconds]
Banistergalaxy has quit [Ping timeout: 276 seconds]
carloslopes has quit [Remote host closed the connection]
FiXato has quit [Quit: good night everyone]
robbyoconnor has joined #ruby-lang
chudler has joined #ruby-lang
kurko_ has quit [Ping timeout: 255 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
<chudler> Random question: can this be accomplished without the ar variable? https://gist.github.com/anonymous/4741902
solars has quit [Ping timeout: 276 seconds]
malev has quit [Read error: Connection reset by peer]
<chudler> I'm also wondering if someone knows a language supporting that, say: %w[spring summer fall winter].zip(_myself)
islander has joined #ruby-lang
Uranio has quit [Quit: while you reading this, a kitty dies]
davidbalber|away is now known as davidbalbert
sepp2k has quit [Remote host closed the connection]
<injekt> ar.map { |x| [x, x] }
<injekt> scala and groovy both use _
<islander> Hi, I have a really newbie question. Is there any way I can shorten or set a directory default for irb to load .rb files instead of typing the entire dir path every time?
<injekt> islander: add Dir.chdir('path/to/dir') in .irbrc and it'll move there every time you start irb
<chudler> injekt: thanks! I forgot I had tested that
sandbags has joined #ruby-lang
<islander> injekt: Is irbrc only for Rails?
<injekt> no
<injekt> its for irb
JoelMcCracken has quit [Ping timeout: 252 seconds]
Uranio has joined #ruby-lang
<islander> Oh okay, thank you!
<Uranio> darix: hi, remember the yesterday problem? posting for a site, resolved with restclient
brian__ has joined #ruby-lang
davidbalbert is now known as davidbalber|away
Rarrikins_a_w has quit [Read error: Connection reset by peer]
adambeynon has joined #ruby-lang
Rarrikins_a_w has joined #ruby-lang
Rarrikins_a_w_d has joined #ruby-lang
Guest__ has joined #ruby-lang
davidbalber|away is now known as davidbalbert
lcdhoffman has quit [Quit: lcdhoffman]
tenderlove has joined #ruby-lang
francisfish has joined #ruby-lang
Rarrikins_a_w has quit [Ping timeout: 255 seconds]
drbrain has joined #ruby-lang
rking has quit [Quit: WeeChat 0.4.0-rc1]
GarethAdams has joined #ruby-lang
joevandyk has joined #ruby-lang
workmad3 has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
tenderlove has quit [Read error: Connection reset by peer]
MaddinXx has quit [Remote host closed the connection]
Guest__ has left #ruby-lang [#ruby-lang]
G________ has joined #ruby-lang
G________ has quit [Client Quit]
<Uranio> irb(main):001:0> puts RUBY_VERSION
<Uranio> 2.0.0
<Uranio> UUUH YEAH! :D
djwonk has joined #ruby-lang
JohnBat26 has quit [Ping timeout: 248 seconds]
davidbalbert is now known as davidbalber|away
joevandyk has quit [Read error: Connection reset by peer]
joevandyk has joined #ruby-lang
<yorickpeterse> Final release should be in about two weeks if all goes well
<Uranio> unable to convert "\x89" from ASCII-8BIT to UTF-8 for lib/sinatra/images/404.png, skipping
<Uranio> :D
<Uranio> the world is a better place
<yorickpeterse> I had a nice encoding issue today
<yorickpeterse> I passed a nil value to Prawn::Document and it said that the specified string was not a valid UTF-8 encoded string
<firefux> now for all the nice gems to support 2.0
ryanf has joined #ruby-lang
joevandyk has quit [Ping timeout: 256 seconds]
joevandyk has joined #ruby-lang
<yorickpeterse> brixen: out of curiosity (and maybe this is not the right place), is there an estimate of when the new melbourne parsers will become available?
MaddinXx has joined #ruby-lang
<brixen> yorickpeterse: I've got a couple items to do first but hopefully in the next few weeks
<yorickpeterse> brixen: awesome, can Melbourne run on non Rbx environments or is it going to depend on it?
<banisterfiend> brixen: word on the street is you changed your last name to your wife's after marriage (rather than the other way round), is this just a weird rumor? :D
joevandyk has quit [Client Quit]
<brixen> yorickpeterse: right now they depend on a C-API, not anything rbx specific
<brixen> banisterfiend: hah, word really gets around on those streets
<yorickpeterse> brixen: is that going to stay that way? The reason for asking is because right now I'm using Ripper but yeah, I'm not very happy with it
<yorickpeterse> it's....special
<brixen> yorickpeterse: well, ripper gives you access to some lexer events, iirc
<yorickpeterse> Correct, it's fairly low level and gives you access to quite a bit. However, the API is not very pleasant to work with and it's not cross-implementation
<yorickpeterse> jruby is working on supporting it but that's probably going to take a while
<brixen> yorickpeterse: do you need lexer events?
<yorickpeterse> And right now I'm more working around its quirks instead of actually enjoying using it
<yorickpeterse> For the time being, no. I'm only using the sexp processing API at the moment
francisfish has quit [Remote host closed the connection]
<yorickpeterse> Not sure if I'll ever need it either
krohrbaugh has quit [Quit: Leaving.]
krohrbaugh has joined #ruby-lang
<yorickpeterse> It's for a linter and looking at things currently the only reason for me using the lexer API would be to extract comments. This is something I don't plan on dealing with any time soon.
<brixen> yorickpeterse: ok, cool
<brixen> yorickpeterse: ideally, I will add column info to nodes and whitespace nodes someday
<yorickpeterse> hm, column information would be crucial. The lack of this is by far the biggest reason I can't use ruby_parser
<yorickpeterse> Saying something like "undefined variable on line 1" when there's 200 characters on a line isn't going to help developers a lot
emmdeeess has quit [Ping timeout: 252 seconds]
davidbalber|away is now known as davidbalbert
geopet has quit [Quit: geopet]
krohrbaugh has quit [Quit: Leaving.]
joevandyk has joined #ruby-lang
ryanf has quit [Read error: Connection reset by peer]
adambeynon has quit [Quit: Computer has gone to sleep.]
ryanf has joined #ruby-lang
<brixen> yeah
mephux has quit [Excess Flood]
<banisterfiend> brixen: oh i found something pretty weird
<banisterfiend> brixen: module A; end; module B; include A; end; when i do that i get a method called __module_init__ inside B whose source_location points to the 'include' line
<brixen> yorickpeterse: a lot of that you can do by processing that specific line of text
<banisterfiend> brixen: what's that about?
<brixen> banisterfiend: all execution contexts in rbx are compiled code instances
<brixen> so module Foo has a __module_init__ that is the module body
<brixen> similar for class
<brixen> __script__ for script
<banisterfiend> hm
mephux has joined #ruby-lang
<brixen> banisterfiend: you know how to show bytecode from the rbx compiler?
ryanf has quit [Read error: Connection reset by peer]
<banisterfiend> brixen: no
<brixen> banisterfiend: eg https://gist.github.com/brixen/4742392
<yorickpeterse> brixen: correct, but having to resort to regular expressions (or similar) would most likely be a rather fragile solution.
<yorickpeterse> At least knowing myself I'd probably spend a great deal of time fixing it
<brixen> banisterfiend: line 39 of that gist is actually the __class_init__ method
<brixen> yorickpeterse: definitely sub-optimal, yes
ryanf has joined #ruby-lang
<banisterfiend> brixen: it's pretty handy as it enables us to do this: http://showterm.io/d6abe199cc12820339490
<brixen> banisterfiend: whoa, showterm.io is awesome
<brixen> never seen that
<banisterfiend> yeah it's really sweet
<banisterfiend> really easy to use too
lcdhoffman has joined #ruby-lang
RickHull has joined #ruby-lang
RickHull has quit [Changing host]
RickHull has joined #ruby-lang
<yorickpeterse> gah, I think I've reached this area called "refactor hell"
<brixen> banisterfiend: got time to chat in #rubinius ?
Mon_Ouie has quit [Quit: WeeChat 0.4.0]
<RickHull> "parsing" bigip.conf using perl today. haven't used perl in over 5 years. do not like
<banisterfiend> brixen: sure
<RickHull> brain damaged hashes, brain damaged Array#include?
therod has joined #ruby-lang
KA__ has joined #ruby-lang
stonerfish has joined #ruby-lang
bin7me has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 244 seconds]
krohrbaugh has joined #ruby-lang
jacktrick has joined #ruby-lang
krohrbaugh has quit [Client Quit]
Uranio has quit [Ping timeout: 246 seconds]
lun_ has quit [Remote host closed the connection]
cupakromer has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
joevandyk has quit [Ping timeout: 252 seconds]
gustavnils has quit [Quit: Textual IRC Client: www.textualapp.com]
gregmoreno has joined #ruby-lang
<yorickpeterse> damn it, I need to find myself a proper rubber duck
<yorickpeterse> the one I have now is not big enough
islander has quit [Remote host closed the connection]
drbrain has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
drbrain has joined #ruby-lang
MartynKeigher has quit [Quit: Nettalk6 - www.ntalk.de]
blacktulip has joined #ruby-lang
thufir_ has joined #ruby-lang
Bearproof has joined #ruby-lang
Liquid has joined #ruby-lang
Liquid is now known as Guest6228
brian__ has left #ruby-lang [#ruby-lang]
Bearproof has quit [Client Quit]
MaddinXx has quit [Remote host closed the connection]
jets has joined #ruby-lang
<jets> hey buddy
blacktulip has quit [Remote host closed the connection]
zhul_mechanos has quit [Quit: zhul_mechanos]
Guest6228 has quit [Client Quit]
Liquid-ness-mons has joined #ruby-lang
KA__ has quit [Quit: KA__]
kogent has quit [Ping timeout: 248 seconds]
<yorickpeterse> banisterfiend: oh btw, are you coming to the Ruby hack night on the 19th?
jonahR has quit [Quit: jonahR]
<banisterfiend> yorickpeterse: high chance i think
<yorickpeterse> nice
<yorickpeterse> we should wear Pry swag to be proper nerds
<banisterfiend> haha, speaking of that we probably need a t-shirt redesign, im not sure our current one is cool enough
<banisterfiend> stickers are cool though
<zenspider> RickHull: don't you just love perl?!?!
<yorickpeterse> banisterfiend: heh, my laptop has one of them on it
<yorickpeterse> Gotta do something to make thinkpads less ugly
<RickHull> in my mind, it was similar to ruby
<RickHull> so i figured, hey I'll just use perl
<RickHull> now, 2 problems
<zenspider> haha
<banisterfiend> yorickpeterse: you prefer a thinkpad to an MBA?
<yorickpeterse> banisterfiend: for running Linux they are *so* much easier
<yorickpeterse> plus Macbooks get more and more locked down, I don't like that
<banisterfiend> hehe i just run linux in a VM :)
<banisterfiend> with 8 gigs of ram i can just full screen it and pretend it's proper linux system
<yorickpeterse> pff, wannabe
<banisterfiend> i prefer linux when messing with C extensions and MRI
<yorickpeterse> Thinkpads are tanks though
<yorickpeterse> If you ever face off a burglar your best bet is to beat him with a Thinkpad
<yorickpeterse> And it will still run afterwards
mistym has quit [Remote host closed the connection]
emmdeeess has joined #ruby-lang
<banisterfiend> yorickpeterse: do you have an SSD in it?
<banisterfiend> i guess not if it's really that heavy
Liquid-ness-mons has quit [Ping timeout: 245 seconds]
<yorickpeterse> No not yet, I really should but I just can't be fucked
<yorickpeterse> mostly because I have to create a 1:1 copy of the disk, put it back, hope it works, etc
idkazuma has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
<zenspider> sooo worth it
<yorickpeterse> Yeah, but first I need to change Linux distro on my $WORK Macbook
<yorickpeterse> Because fuck trying to keep Xubuntu running on a Macbook
idkazuma has quit [Ping timeout: 248 seconds]
rsl has quit [Quit: Computer has gone to sleep.]
josh0x0 has quit [Quit: josh0x0]
josh0x0 has joined #ruby-lang
RickHull has quit [Quit: Leaving.]
bluepojo has quit [Remote host closed the connection]
kurko_ has joined #ruby-lang
havenwood has joined #ruby-lang
reppard has joined #ruby-lang
jashank has quit [Changing host]
jashank has joined #ruby-lang
zmack has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
zmack has quit [Ping timeout: 245 seconds]
therod has quit [Quit: Leaving...]
dustint has quit [Quit: Leaving]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
psyanid3 has joined #ruby-lang
cupakromer has quit []
KA__ has joined #ruby-lang
<naquad> is there some kind of pure-ruby bit torrent client? maybe event machine or kind of based
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby-lang
mrsolo has quit [Quit: Leaving]