apeiros changed the topic of #ruby-lang to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
mdedetrich has joined #ruby-lang
benanne has quit [Quit: kbai]
jacktrick has joined #ruby-lang
VegetableSpoon has quit [Quit: Leaving]
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rakko has joined #ruby-lang
iliketurtles has joined #ruby-lang
iliketurtles has quit [Client Quit]
<hagabaka> I have a project that opens the same class twice and has documentation in both places, and rdoc only shows the documentation from one. Is there a way to fix this?
<hagabaka> oh, never mind that
<erikh> check out what Singleton does
bradsmith has joined #ruby-lang
JasonA has joined #ruby-lang
bradsmith has quit [Ping timeout: 245 seconds]
jacktrick has quit [Quit: Leaving]
marr has quit [Ping timeout: 240 seconds]
kurko_ has quit [Quit: Computer has gone to sleep.]
<hagabaka> I'm using \ before line breaks in the documentation, and rdoc strips those and joins the lines in the output :/
<hagabaka> or maybe the syntax highlighter it uses
joshuawscott has joined #ruby-lang
iliketurtles has joined #ruby-lang
iliketurtles has quit [Max SendQ exceeded]
iliketurtles has joined #ruby-lang
iliketurtles has quit [Client Quit]
joshuawscott has quit [Quit: Leaving.]
JasonA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joshuawscott has joined #ruby-lang
tkuchiki has joined #ruby-lang
Rakko has quit [Quit: leaving]
ssb123 has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
Senjai has joined #ruby-lang
Senjai has quit [Changing host]
Senjai has joined #ruby-lang
spuk has joined #ruby-lang
_jpb__ has joined #ruby-lang
joshuawscott has quit [Quit: Leaving.]
_jpb__ has quit [Ping timeout: 240 seconds]
Nisstyre has quit [Quit: Leaving]
io_syl has joined #ruby-lang
bradsmith has joined #ruby-lang
malev has joined #ruby-lang
bradsmith has quit [Ping timeout: 256 seconds]
iliketurtles has joined #ruby-lang
Domon has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
Domon has quit [Remote host closed the connection]
_jpb__ has joined #ruby-lang
Austin__ has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spuk has quit [Read error: Connection reset by peer]
tylergillies_ has joined #ruby-lang
pr0ton has joined #ruby-lang
_jpb__ has quit [Ping timeout: 240 seconds]
toretore has quit [Quit: Leaving]
dhruvasagar has joined #ruby-lang
iliketurtles has quit [Ping timeout: 264 seconds]
Domon has joined #ruby-lang
iliketurtles has joined #ruby-lang
<xuser> rubygems.org should have better stats :)
<erikh> patches welcomd
Austin__ has quit [Quit: Leaving.]
charliesome has joined #ruby-lang
<xuser> looks like it runs on rails :/
siberia has quit [Quit: siberia]
Nisstyre-laptop is now known as Nisstyre
bradsmith has joined #ruby-lang
cads has joined #ruby-lang
spuk has joined #ruby-lang
_helloworld_ has quit [Remote host closed the connection]
scottschulthess has quit [Quit: scottschulthess]
Fraibert has joined #ruby-lang
bradsmith has quit [Remote host closed the connection]
bradsmith has joined #ruby-lang
bradsmith has quit [Ping timeout: 248 seconds]
pr0ton_ has joined #ruby-lang
pr0ton has quit [Ping timeout: 245 seconds]
pr0ton_ is now known as pr0ton
thmzlt has quit [Quit: Textual IRC Client: www.textualapp.com]
Bosox20051 has quit [Ping timeout: 276 seconds]
hahuang61 has joined #ruby-lang
nertzy2 has joined #ruby-lang
Bosox20051 has joined #ruby-lang
Bosox20051 has joined #ruby-lang
Bosox20051 has quit [Excess Flood]
Bosox20051 has joined #ruby-lang
Bosox20051 has quit [Excess Flood]
amerine has quit [Ping timeout: 276 seconds]
nertzy has quit [Ping timeout: 264 seconds]
amerine has joined #ruby-lang
nlv has joined #ruby-lang
vlad_starkov has joined #ruby-lang
_helloworld_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 264 seconds]
concernedcitizen has joined #ruby-lang
ryanf has quit [Quit: leaving]
ryanf has joined #ruby-lang
dhruvasagar has quit [Read error: Operation timed out]
henrikhodne has quit [Ping timeout: 264 seconds]
thmzlt has joined #ruby-lang
wmoxam_ has joined #ruby-lang
dhruvasagar has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
_helloworld_ has quit [Remote host closed the connection]
wmoxam_ has quit [Ping timeout: 260 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
iliketurtles has quit [Quit: zzzzz…..]
_jpb__ has joined #ruby-lang
torrieri has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
henrikhodne has joined #ruby-lang
bradsmith has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
ndrst has joined #ruby-lang
bradsmith has quit [Ping timeout: 260 seconds]
shinnya has quit [Ping timeout: 240 seconds]
henrikhodne has quit [Quit: leaving]
tkuchiki has joined #ruby-lang
_jpb__ has quit [Ping timeout: 264 seconds]
|2yan has joined #ruby-lang
slimmah has quit [Ping timeout: 276 seconds]
retro|cz has quit [Ping timeout: 264 seconds]
|2yan has quit [Ping timeout: 245 seconds]
yatish27 has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
Nisstyre has quit [Quit: Leaving]
retro|cz has joined #ruby-lang
djinni` has quit [Ping timeout: 241 seconds]
woollyams has joined #ruby-lang
pr0ton has quit [Ping timeout: 264 seconds]
Domon has quit [Remote host closed the connection]
Domon has joined #ruby-lang
nneko001__ has joined #ruby-lang
mistym has joined #ruby-lang
pr0ton has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
bradsmith has joined #ruby-lang
Domon has quit [Remote host closed the connection]
djinni` has joined #ruby-lang
torrieri has joined #ruby-lang
bradsmith has quit [Ping timeout: 276 seconds]
rails_smith has quit [Quit: Leaving.]
torrieri has quit [Client Quit]
torrieri has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
thepumpkin has quit [Remote host closed the connection]
macmartine has joined #ruby-lang
joshuawscott has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
hahuang61 has quit [Ping timeout: 248 seconds]
jonahR has quit [Quit: jonahR]
Fraibert has quit [Ping timeout: 257 seconds]
rails_smith has joined #ruby-lang
apeiros has quit [Ping timeout: 276 seconds]
dhruvasagar has joined #ruby-lang
vlad_starkov has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
torrieri has joined #ruby-lang
gja has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 260 seconds]
macmartine has quit [Quit: Computer has gone to sleep.]
rails_smith has quit [Quit: Leaving.]
iliketurtles has joined #ruby-lang
Andrevan has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
rikai_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 245 seconds]
rikai_ has joined #ruby-lang
rikai_ has quit [Changing host]
rikai_ has joined #ruby-lang
Domon has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
_jpb__ has joined #ruby-lang
pr0ton has quit [Ping timeout: 245 seconds]
_jpb__ has quit [Ping timeout: 260 seconds]
bradsmith has joined #ruby-lang
bradsmith has quit [Ping timeout: 245 seconds]
arBmind has joined #ruby-lang
relix has joined #ruby-lang
vmoravec has joined #ruby-lang
thmzlt has quit [Quit: Textual IRC Client: www.textualapp.com]
apeiros has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joshuawscott has quit [Quit: Leaving.]
charliesome has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 276 seconds]
fsvehla has joined #ruby-lang
chimkan has quit [Read error: Connection reset by peer]
fsvehla has quit [Client Quit]
hahuang61 has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
chimkan has joined #ruby-lang
flip_digits has quit [Remote host closed the connection]
<bnagy> hey guys!
<bnagy> http://pastie.org/8207298 <- from #ruby ... is accepted by the parser
<bnagy> o_0
hahuang61 has quit [Ping timeout: 245 seconds]
gja has joined #ruby-lang
nlv has quit [Remote host closed the connection]
aef has quit [Ping timeout: 264 seconds]
<whitequark> bnagy: gem install parser --pre; ruby-parse -e '["foo" => "bar"]'
aef has joined #ruby-lang
<bnagy> well that should just be a hash in an array, shouldn't it?
* whitequark nods
<whitequark> then why does it surprise you?
<gnufied> ^
<bnagy> I'm worried about the for x in questions |input; key|
<whitequark> oh
<whitequark> well, feed it to parser :)
<bnagy> work on jruby?
<whitequark> yea
dagobah has joined #ruby-lang
<bnagy> ok.. now what am I looking at? :)
<whitequark> AST
<whitequark> you may want to only feed the for loop to the parser: less noise
charliesome has quit [Ping timeout: 248 seconds]
<whitequark> so the relevant parts are
<whitequark> (send
<whitequark> (send nil :questions) :|
<whitequark> (send nil :input))
<whitequark> and (send
<whitequark> (send nil :key) :|
<whitequark> (if
<whitequark> as you can see, |x;x| gets interpreted as two | operators separated by a semicolon, which acts as a statement delimiter
<bnagy> I see the args to |.. but why is it not complaining that it never gets anything it can use with for?
<ryanf> bnagy: it does
<ryanf> it's for x in (questions | input)
<whitequark> for x in (questions | input); key | (if ... ); end
<ryanf> so that would be valid if questions and input were arrays
<bnagy> ah!
<bnagy> and for doesn't need something to start the block?
<bnagy> seems not
<bnagy> >> for x in [1,2,3];x;end
<eval-in> bnagy => [1, 2, 3] (https://eval.in/40652)
<bnagy> well then. TIL. :/
vlad_starkov has joined #ruby-lang
benlovell has joined #ruby-lang
bradsmith has joined #ruby-lang
rippa has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
bradsmith has quit [Ping timeout: 264 seconds]
saarinen has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
saarinen has quit [Client Quit]
saarinen has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
io_syl has quit [Quit: io_syl]
concernedcitizen has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
hahuang61 has joined #ruby-lang
hahuang61 has quit [Ping timeout: 264 seconds]
apeiros has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
arBmind has quit [Quit: Leaving.]
wallerdev has quit [Quit: wallerdev]
siberia has joined #ruby-lang
x0f has quit [Ping timeout: 276 seconds]
x0f has joined #ruby-lang
mbj has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
gja has joined #ruby-lang
x0f has quit [Ping timeout: 264 seconds]
x0f has joined #ruby-lang
firstdayonthejob has quit [Quit: WeeChat 0.4.1]
maxmanders has joined #ruby-lang
fosky has joined #ruby-lang
elia has joined #ruby-lang
x0f has quit [Ping timeout: 245 seconds]
arBmind has joined #ruby-lang
x0f has joined #ruby-lang
bradsmith has joined #ruby-lang
charliesome has joined #ruby-lang
bradsmith has quit [Ping timeout: 245 seconds]
marr has joined #ruby-lang
<charliesome> whitequark: yo
<whitequark> charliesome: hi
<charliesome> whitequark: so i had a good idea
<charliesome> whitequark: what do you reckon about extending eval-in so you can say 'parse>> ruby code'
<charliesome> and it dumps a sexp from your parser gem
<whitequark> charliesome: you'll bump into freenode limit very quickly
<Andrevan> ahaha, is this in response to the for x in foo guy from earlier
<charliesome> Andrevan: i saw some parsing discussion earlier :p
<charliesome> whitequark: what's the line length limit?
<charliesome> i guess i can always cut it off and link to eval.in like i currently do
<charliesome> like this
<charliesome> v
<charliesome> >> "x"*9999
<Andrevan> yeah this guy's sexps would be just nonsense and parentheses
<eval-in> charliesome => "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ... (https://eval.in/40661)
shireesh has joined #ruby-lang
cads has quit [Ping timeout: 245 seconds]
rails_smith has joined #ruby-lang
Domon has quit [Remote host closed the connection]
solars has joined #ruby-lang
vlad_starkov has joined #ruby-lang
joshuawscott has joined #ruby-lang
mistym has quit [Remote host closed the connection]
siberia has quit [Quit: siberia]
vlad_starkov has quit [Ping timeout: 248 seconds]
Domon has joined #ruby-lang
hahuang61 has joined #ruby-lang
GeissT has joined #ruby-lang
<maloik> Hmm, the vendorificator project... didn't someone mention that in here ?
<maloik> as in, the author
hahuang61 has quit [Ping timeout: 256 seconds]
cschneid has quit [Ping timeout: 245 seconds]
<whitequark> charliesome: I think it's not as much line length limit as message limit
rails_smith has quit [Quit: Leaving.]
<whitequark> I mean, it's not really cool to dump sexps in one line
<whitequark> it'd just be a mess
<charliesome> yeah fair point
<whitequark> and for several lines, you annoy people and throttling is on 5 messages
rails_smith has joined #ruby-lang
joshuawscott has quit [Quit: Leaving.]
Nss has joined #ruby-lang
anonymuse has joined #ruby-lang
saarinen has quit [Quit: saarinen]
gja has quit [Quit: This computer has gone to sleep]
yatish27 has joined #ruby-lang
Senjai has quit [Quit: No Ping reply in 180 seconds.]
Senjai has joined #ruby-lang
<yorickpeterse> morning
rails_smith has quit [Read error: Connection reset by peer]
rails_smith has joined #ruby-lang
glebm has joined #ruby-lang
anonymuse has quit [Remote host closed the connection]
<yorickpeterse> lololol Feedly claims HTTPS is a paid-only option until they can fund it for the free users too
<yorickpeterse> I'm done with this service
<lianj> yorickpeterse: yea, just said the same in another room
chimkan has quit [Read error: Connection reset by peer]
chimkan has joined #ruby-lang
<yorickpeterse> now I just need to find myself an alternative
<yorickpeterse> tbh I wanted that anyway, Feedly has been pretty buggy
ra0zsojsg8 has joined #ruby-lang
ra0zsojsg8 has quit [Client Quit]
ra0zsojsg8 has joined #ruby-lang
<lianj> yorickpeterse: i have a nice domain and some half finished app but yea :|
ra0zsojsg8 has quit [Client Quit]
gja has joined #ruby-lang
gja has joined #ruby-lang
gja has quit [Changing host]
siberia has joined #ruby-lang
face has joined #ruby-lang
faces has quit [Ping timeout: 264 seconds]
shireesh has quit [Quit: Leaving]
<yorickpeterse> Hm, might just use something CLI based
<maloik> I dont see the problem with paying though
<maloik> how else do you expect a business to not go out of business
<yorickpeterse> security should not be a paid-only option
<lianj> true, but its too shitty for now
<yorickpeterse> I don't mind a paid plan, but HTTPS should be the norm, not an extra
<lianj> yorickpeterse: yea that too
<maloik> maybe yea..
<maloik> ive been using digg reader, quite like it so far
bradsmith has joined #ruby-lang
<maloik> and a colleague uses a selfhosted sinatra project (but I forgot the name), seemed to work quite well as well
<lianj> i like the shared feed fetching vs self hosted / local readers
<yorickpeterse> Biggest gripe with Feedly so far is that I've been using HTTPS just fine for 2 months now
<yorickpeterse> and now suddenly they have this BS argument of "We can't fund it for free users"
<yorickpeterse> which is bullshit, you don't pay per user when it comes to SSL certs
<yorickpeterse> and if you do you're being ripped off
stestagg has joined #ruby-lang
bradsmith has quit [Ping timeout: 240 seconds]
<stestagg> Hi, I think I've found a bug (https://gist.github.com/stestagg/6154353) where's the best/place to report or discuss it?
FastJack has quit [Ping timeout: 245 seconds]
<yorickpeterse> That's not a bug
<yorickpeterse> but let me verify that before I say anything silly
<stestagg> I can't find any documentation that explains it
<stestagg> just updated the gist with some explanation
<yorickpeterse> generally on class level you'll want *_instance_methods
<yorickpeterse> since the *_methods family return class methods
<yorickpeterse> also
<yorickpeterse> Passing `false` will only include the methods directly defined in the class
<yorickpeterse> excluding whatever it inherits, either by parent class or mixins
<stestagg> In my case, I want class methods defined only on that object
<stestagg> right, so why does the A.foo public method show up in B's public method list
<yorickpeterse> Hm, might be that it behaves differently when it comes to class methods, lets see
<yorickpeterse> >> class First; def self.testing; end; end; class Second < First; end; Second.public_methods(false)
<eval-in> yorickpeterse => [:testing, :allocate, :new, :superclass] (https://eval.in/40662)
<yorickpeterse> >> class First; def self.testing; end; def instance_method_test; end; end; class Second < First; end; Second.public_instance_methods(false)
<eval-in> yorickpeterse => [] (https://eval.in/40663)
<yorickpeterse> appears to be the case
<yorickpeterse> So I suppose it falls in the category of "This could be clarified better"
judofyr has joined #ruby-lang
vlad_starkov has joined #ruby-lang
cschneid has joined #ruby-lang
<yorickpeterse> lets see what the only spec, rubyspec, has to say
minivan has joined #ruby-lang
skade has joined #ruby-lang
glebm has quit [Ping timeout: 260 seconds]
<stestagg> Well, thanks, actually, you've given me the bug link, I'll file it and see what people say
glebm has joined #ruby-lang
<yorickpeterse> You might want to just send it to ruby-core first
<yorickpeterse> as a general question opposed to a bug
stef_204 has joined #ruby-lang
<yorickpeterse> The response rate (at least to me) seems a bit higher in general
rails_smith has quit [Quit: Leaving.]
<yorickpeterse> in unrelated news, I'm looking at Qt as a source of inspiration for a layout system for rendering PDFs
<yorickpeterse> I think I just went full retard
<yorickpeterse> (ignoring that I did so 21 years ago already)
Nss has quit [Quit: Sto andando via]
adambeynon has joined #ruby-lang
hahuang61 has joined #ruby-lang
kstuart has joined #ruby-lang
flip_digits has joined #ruby-lang
<whitequark> Qt is awesome
mdedetrich has quit [Quit: Computer has gone to sleep.]
<yorickpeterse> It has really decent docs so far, much better than Gtk
<yorickpeterse> It's just a shame you have to write C++ for it
<yorickpeterse> (qtbindings doesn't work on non MRI sadly)
<stestagg> yorickpeterse: thanks, for this
<stestagg> I'll do taht
Mon_Ouie has joined #ruby-lang
stestagg has quit [Quit: stestagg]
_jpb__ has joined #ruby-lang
hahuang61 has quit [Ping timeout: 245 seconds]
torrieri has quit [Quit: Leaving...]
flip_digits has quit [Ping timeout: 240 seconds]
torrieri has joined #ruby-lang
torrieri has quit [Client Quit]
sepp2k has joined #ruby-lang
_jpb__ has quit [Ping timeout: 240 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
mitchty has quit [Ping timeout: 240 seconds]
mitchty has joined #ruby-lang
sascha_d has quit [Quit: obai]
dc5ala has joined #ruby-lang
coffeejunk has quit [Remote host closed the connection]
Andrevan has quit []
coffeejunk has joined #ruby-lang
hashkey has quit [Quit: Leaving]
atmosx has joined #ruby-lang
coffeejunk has quit [Ping timeout: 256 seconds]
nirix has joined #ruby-lang
coffeejunk has joined #ruby-lang
x0f has quit [Ping timeout: 248 seconds]
x0f has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
hashkey has joined #ruby-lang
coffeejunk has quit [Ping timeout: 264 seconds]
nirix has quit [Quit: ZNC - http://znc.in]
nirix has joined #ruby-lang
mdedetrich has joined #ruby-lang
chimkan has quit [Read error: Connection reset by peer]
coffeejunk has joined #ruby-lang
bradsmith has joined #ruby-lang
chimkan has joined #ruby-lang
nirix has quit [Client Quit]
nirix has joined #ruby-lang
sush24 has joined #ruby-lang
bradsmith has quit [Ping timeout: 264 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
GeissT has quit [Ping timeout: 276 seconds]
barttenbrinke has joined #ruby-lang
rails_smith has joined #ruby-lang
mbj has quit [Quit: leaving]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<maloik> ljarvis: did Daan find that hotel ?
scmx has joined #ruby-lang
barttenbrinke has quit [Ping timeout: 264 seconds]
sepp2k1 has joined #ruby-lang
hahuang61 has joined #ruby-lang
sepp2k has quit [Ping timeout: 260 seconds]
sepp2k has joined #ruby-lang
sepp2k has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby-lang
sepp2k1 has quit [Ping timeout: 248 seconds]
hahuang61 has quit [Ping timeout: 276 seconds]
MaddinXx has joined #ruby-lang
Pupeno has joined #ruby-lang
Pupeno has quit [Changing host]
Pupeno has joined #ruby-lang
tmi has joined #ruby-lang
Pupeno has quit [Remote host closed the connection]
tmi has quit [Client Quit]
tmi has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
FastJack has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
<ljarvis> maloik: He tweeted it to me yeah
sepp2k has joined #ruby-lang
<ljarvis> maloik: I emailed them though because their latest check-in is 10pm.. I'm gonna arrive later than that
<maloik> I doubt it but if it does become a problem let me know
<ljarvis> thanks :)
siberia has quit [Quit: siberia]
barttenbrinke has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
heftig has joined #ruby-lang
postmodern has quit [Quit: Leaving]
Domon has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
guns has joined #ruby-lang
Domon has joined #ruby-lang
bradsmith has joined #ruby-lang
mitchty has quit [Ping timeout: 240 seconds]
faces has joined #ruby-lang
spuk_ has joined #ruby-lang
x0f_ has joined #ruby-lang
x0f has quit [Ping timeout: 240 seconds]
face has quit [Remote host closed the connection]
priodev has quit [Ping timeout: 240 seconds]
Y_Ichiro has quit [Quit: No Ping reply in 180 seconds.]
threedaymonk has quit [Ping timeout: 240 seconds]
Y_Ichiro has joined #ruby-lang
spuk has quit [Read error: Connection reset by peer]
mitchty has joined #ruby-lang
threeday1onk has joined #ruby-lang
Y_Ichiro has quit [Changing host]
Y_Ichiro has joined #ruby-lang
priodev has joined #ruby-lang
bradsmith has quit [Ping timeout: 267 seconds]
duphus has joined #ruby-lang
duphus has quit [Client Quit]
barttenbrinke has quit [Ping timeout: 245 seconds]
vbatts has quit [Ping timeout: 248 seconds]
fosky has quit [Ping timeout: 260 seconds]
arBmind1 has joined #ruby-lang
x0f_ has quit [Ping timeout: 264 seconds]
heftig has quit [Quit: Quitting]
duphus has joined #ruby-lang
x0f has joined #ruby-lang
arBmind has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
vbatts has joined #ruby-lang
<gnufied> Qt is pretty good. except it looks shite on osx
<yorickpeterse> I don't care for OS X
<yorickpeterse> anything but either Wx or Cocoa looks like shite on OS X anyway
<gnufied> Wx as well doesn't look good
<gnufied> they use native underneath yes, but Wx and native OSX conventions vary
<Nilium> Wx is mostly dead.
<gnufied> and mostly dead, yes
<Nilium> From a development standpoint, I mean.
barttenbrinke has joined #ruby-lang
<Nilium> People still use it, of course.
mdedetrich has joined #ruby-lang
<Nilium> Also, Qt adherents don't believe me when I tell them that Qt apps on OS X have a weird uncanny valley effect going on.
<yorickpeterse> I personally don't care much for Qt vs Gtk+ vs X, I just want something that works
<yorickpeterse> Sadly most of them don't unless you like writing piles of horrendous C++
<yorickpeterse> And Ruby's GTK/Qt bindings only work on MRI and generally do a lot of crazy macro-ception
<Nilium> I just use Cocoa. I'd probably use GTK if I had the option, but I don't.
<yorickpeterse> If you're targeting OS X then GTK makes no sense
<Nilium> Indeed, what with its dependency on having an X server.
<Nilium> There is a Cocoa port -- or maybe Carbon, can't remember -- but it's dead in the water.
<yorickpeterse> GTK in general looks the best on Linux (at least to me), but the docs are absolute shit
<Nilium> I occasionally toy with the idea of rebooting the effort, but it seems like a waste of time given that I've lost any hope of cross platform GUIs working outside of a browser window.
<yorickpeterse> It's just some unreadable bunch of API docs. If they had a banner at the top saying "lol fuck you" it would at least make sense
<Nilium> They do, but it's in the comments.
<Nilium> It's also got ASCII art of two turtles fucking.
<yorickpeterse> wat
glebm has quit [Ping timeout: 248 seconds]
<yorickpeterse> Exhibit A:
<yorickpeterse> With the former I still have no fucking clue what this is all about
<yorickpeterse> the latter at least gives me a small introduction
<yorickpeterse> grrrr gtk
<Nilium> Looking at the list of containers, I feel sad that I actually know what they all mean. It's actually very reminiscent of Android's layout containers.. maybe Android got it from GTK.
Domon has quit [Remote host closed the connection]
<Nilium> Actually, I take that back: GtkBox is weirdly out of place.
<Nilium> Box sounds like what Fixed is, but then it's not, so maybe it's an AspectFrame with an aspect of 1?
<yorickpeterse> There are a lot of these weird widgets in Gtk of which the name makes little sense
<Nilium> Looking at the docs for it, it seems to be like Fixed but only in size. And maybe not actually fixed.
<yorickpeterse> "GtkX...but it actually does Y!"
ruby-lang168 has joined #ruby-lang
hahuang61 has joined #ruby-lang
<yorickpeterse> I still hate them for not documenting their closure system properly
<yorickpeterse> I had to resort digging through the actual source code to see how it was used
<yorickpeterse> (in other projects)
<Nilium> Yeah, looks like GtkBox gets to decide if it wants width or height fixed, but not both.
<Nilium> In other words, horizontal/vertical packing/stacking.
<Nilium> Meaning it's a thing meant to be used as a childthing for other bigthings.
robbyoconnor has joined #ruby-lang
<Nilium> API seems alright from the layout containers so far, anyway.
ruby-lang168 has quit [Client Quit]
r0bby_ has quit [Read error: No route to host]
whaworth has joined #ruby-lang
<Nilium> GtkPaned is made of stupid.
<yorickpeterse> It gets really confusing once you go a bit more low-level
atmosx has quit [Quit: And so the story goes…]
hahuang61 has quit [Ping timeout: 248 seconds]
<Nilium> Probably. I've no experience with it, so I'm only basing this on the tiny bit of documentation I'm looking at.
glebm has joined #ruby-lang
whaworth has quit [Client Quit]
ruby-lang172 has joined #ruby-lang
<yorickpeterse> https://github.com/YorickPeterse/ruby-gtk3/blob/master/ext/gtk3/closure.c to get to this point took, what, 3 weeks?
<yorickpeterse> Not because of C, but because I had to dig through the gtk2 bindings for Ruby to find out how the hell to use closures effectively
<yorickpeterse> as well as some other GTK projects
ruby-lang172 has quit [Client Quit]
<whitequark> oh
<whitequark> so you wrote the ruby-gtk3 binding?
<whitequark> cool
wayne__ has joined #ruby-lang
<yorickpeterse> No, I wrote an initial setup which then got taken over
wayne__ has quit [Client Quit]
<yorickpeterse> the gtk2 people finally decided to support gtk3 and they took over the name
<yorickpeterse> They use some crazy pre-generated setup using macros on top of macros
waynehaworth1234 has joined #ruby-lang
waynehaworth1234 has quit [Client Quit]
<Nilium> I'd just be glad you didn't have to write one for each individual callback function. I hope.
<yorickpeterse> From what I remember you'd have to use them quite heavily
<yorickpeterse> in order to get something done in non C land
<gnufied> not worse that MOC framework of Qt.
minivan has quit [Ping timeout: 245 seconds]
<gnufied> than*
sepp2k has quit [Quit: Leaving.]
sepp2k has joined #ruby-lang
minivan has joined #ruby-lang
realDAB has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
heftig has joined #ruby-lang
ledestin has joined #ruby-lang
yfeldblum has joined #ruby-lang
<yorickpeterse> damn it, it seems I'm stuck in some kind of YouTube recommended videos loop where it keeps suggesting the same stuff
<maloik> for music ?
<yorickpeterse> Yeah
<maloik> do you know youtube disco ?
<yorickpeterse> Yeah and it usually doesn't work for me
<maloik> oh
<yorickpeterse> it will end up giving the same artists over and over
<yorickpeterse> lets see if that's still the case though
<maloik> yea was just gonna say that, it usually gives you the same artist
<yorickpeterse> lol yup
<maloik> at least back when I used it
<yorickpeterse> just gives me a playlist I've been listening to for the past few weeks already
<maloik> but then... spotify (and spotify radio)
<maloik> <3
<yorickpeterse> fuckit, I'll just listen to rin' again
ldnunes has joined #ruby-lang
<maloik> rin ?
thepumpkin has joined #ruby-lang
toretore has joined #ruby-lang
bradsmith has joined #ruby-lang
guns has quit [Quit: guns]
mdedetrich has joined #ruby-lang
waynehaworth_rub has joined #ruby-lang
alda has joined #ruby-lang
bradsmith has quit [Ping timeout: 264 seconds]
waynehaworth_rub has left #ruby-lang [#ruby-lang]
waynehaworth_rub has joined #ruby-lang
<waynehaworth_rub> hey chaps
alda has left #ruby-lang [#ruby-lang]
<judofyr> hey waynehaworth_rub
<waynehaworth_rub> I am pulling my hair out atm :(
<waynehaworth_rub> my first opportunity to write a little ruby program and I am getting a crazy error: https://gist.github.com/WayneHaworth/6155354
<waynehaworth_rub> it is just a simple 3 line file rename script
<realDAB> waynehaworth_rub: if gsub! doesn't change anything, it returns nil
arBmind has joined #ruby-lang
<waynehaworth_rub> hmmm
<realDAB> waynehaworth_rub: i would just use gsub
<canton7> please, please, people - don't use bang methods unless you actually need them!
<waynehaworth_rub> if I run the file change outside of the loop, it renames the file just fine
<canton7> they're got a damn exclamation mark on them for a reason
<canton7> *they've
arBmind1 has quit [Read error: Operation timed out]
<waynehaworth_rub> you sound cross :(
<realDAB> canton7: +1
<canton7> I see this too much
x0f has quit [Ping timeout: 245 seconds]
<canton7> bar.map!{}.gsub!().reverse! etc
tkuchiki has quit [Ping timeout: 245 seconds]
tkuchiki_ has joined #ruby-lang
<realDAB> waynehaworth_rub: i bet you $0.05 that you've got a filename that doesn't change when you do the gsub! on it
<canton7> same
<waynehaworth_rub> error: Invalid argument - (., .) (Errno::EINVAL)
<realDAB> waynehaworth_rub: possible . or .. :-)
<waynehaworth_rub> on the rename function
<realDAB> s/ble/bly/
x0f has joined #ruby-lang
<realDAB> canton7: for your reading pleasure, on this topic: http://dablog.rubypal.com/2007/8/15/bang-methods-or-danger-will-rubyist
* realDAB really needs to go back to blogging
<canton7> waynehaworth_rub, Dir.foreach has picked on up '.', the name of the current directory
<canton7> waynehaworth_rub, first check to see whether the thing you're renaming is a file - next unless File.file?(filename)
<yorickpeterse> waynehaworth_rub: rule of thumb is that bang! methods generally don't return a value
<yorickpeterse> or at least not reliably
<yorickpeterse> and d
<yorickpeterse> fak
sush24 has joined #ruby-lang
<yorickpeterse> oh, canton7 beat me to what I wanted to say
<canton7> :)
<waynehaworth_rub> so can someone tell me what is wrong with this?
<waynehaworth_rub> Dir.foreach(Dir.getwd) do |filename|
<waynehaworth_rub> end
<waynehaworth_rub> File.rename(filename, filename.gsub(/[^a-zA-Z0-9.]/i, '_'))
<waynehaworth_rub> If I run File.rename on it's own, outside of the loop it works fine
<canton7> have a look at the ouput of Dir.foreach(Dir.getwd).to_a
<waynehaworth_rub> ahhh
<waynehaworth_rub> String
<canton7> no?
<canton7> [".", "..", <other files and folders>]
<canton7> hence my last suggestion to make sure you're only trying to rename files
<waynehaworth_rub> ah yes, I could see how bad things could happen
<canton7> which is why File was complaining that it couldn't rename '.' to '.'
<waynehaworth_rub> maybe I should test for a file extention
<yorickpeterse> File.rename(..., ...) if File.file?(...)
<canton7> waynehaworth_rub, there are much more reliable way to see if something is a file or directory - File.file?(...) and File.directory?(...)
<canton7> directories can have extensions of them too, you know :) and files don't have to have an extension
<canton7> s/of'on
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
hahuang61 has joined #ruby-lang
<waynehaworth_rub> ok cool, I will have a play, don't tell me anything, I want to figure it out from the Docs
<canton7> we're already told you. two different ways, too ;)
<waynehaworth_rub> yea but I don't understand any of it!
<canton7> argh typing fail. we've
<waynehaworth_rub> I have been using Ruby for about 1 hour so far, so gimmi a break :)
<canton7> heh righto :)
<realDAB> waynehaworth_rub: welcome to ruby!
<waynehaworth_rub> Thanks :)
<waynehaworth_rub> basically someone at work will be dropping loads of excel reports unto a dropbox folder. The reporting software will be spitting these out with terrible filenames
<waynehaworth_rub> I would like to have some kind of background process pick these up and change the name automatically
<waynehaworth_rub> so, baby steps to start with.
dhruvasagar has quit [Ping timeout: 248 seconds]
hahuang61 has quit [Ping timeout: 245 seconds]
mucker has joined #ruby-lang
<waynehaworth_rub> actually, I can probably run a Hazel script to do the monitoring.
gja has joined #ruby-lang
cored has joined #ruby-lang
ledestin has quit [Quit: ledestin]
G________ has joined #ruby-lang
G________ has quit [Client Quit]
breakingthings has joined #ruby-lang
_whitelogger has joined #ruby-lang
jinie has joined #ruby-lang
anonymuse has joined #ruby-lang
khaase_ has joined #ruby-lang
thepumpkin has quit [Remote host closed the connection]
wmoxam has joined #ruby-lang
pipework has quit [Remote host closed the connection]
sebroeder has quit [Quit: sebroeder]
sebroeder has joined #ruby-lang
bradsmith has joined #ruby-lang
scmx has quit [Ping timeout: 240 seconds]
realDAB has quit [Quit: realDAB]
siberia has joined #ruby-lang
rshetty has joined #ruby-lang
_jpb__ has joined #ruby-lang
bradsmith has quit [Ping timeout: 264 seconds]
kurko_ has joined #ruby-lang
_jpb__ has quit [Ping timeout: 276 seconds]
tkuchiki_ has quit [Remote host closed the connection]
malev has quit [Remote host closed the connection]
<yorickpeterse> whitequark: HEY CHECK THIS OUT
sascha_d has joined #ruby-lang
<yorickpeterse> >> if nil; false; elese; 'haha wtf'; end
<eval-in> yorickpeterse => nil (https://eval.in/40706)
<yorickpeterse> Y U NO SYNTAX ERROR, OR METHOD ERROR?
gja has quit [Quit: This computer has gone to sleep]
yalue has joined #ruby-lang
realDAB has joined #ruby-lang
tomzx_mac has joined #ruby-lang
hashkey_ has joined #ruby-lang
jvrmaia has joined #ruby-lang
realDAB has quit [Client Quit]
tomzx_mac_ has joined #ruby-lang
sebroeder has quit [Quit: sebroeder]
hashkey has quit [Ping timeout: 245 seconds]
wudofyr has quit [Remote host closed the connection]
wudofyr has joined #ruby-lang
rshetty has quit [Quit: Sleeping]
tomzx_mac has quit [Ping timeout: 248 seconds]
<yorickpeterse> ok disregard that I suck cock
<gnufied> so does %0x and %0X suppose to change anything other than uppercase?
<whitequark> yorickpeterse: what's the problem ?
<whitequark> gnufied: no
<gnufied> using %0x in stead of %0X seems to generating entirely new value
<yorickpeterse> whitequark: like I said, disregard it
<yorickpeterse> I'm being dumb
<whitequark> ok
wudofyr has quit [Remote host closed the connection]
<gnufied> whitequark: apparently there is. I am missing something here
wudofyr has joined #ruby-lang
dagobah_ has joined #ruby-lang
<canton7> gnufied, example?
dagobah has quit [Read error: Connection reset by peer]
<whitequark> >> "%0x" % [0xdeadfeed]
<eval-in> whitequark => "deadfeed" (https://eval.in/40708)
<whitequark> >> "%0X" % [0xdeadfeed]
<eval-in> whitequark => "DEADFEED" (https://eval.in/40709)
<gnufied> think, I am being dumb
realDAB has joined #ruby-lang
<apeiros> yorickpeterse: so why did it not raise a syntax error?
<apeiros> ah
<apeiros> because it never enters the if
w00x has joined #ruby-lang
<gnufied> yep.
<gnufied> btw, I had a ran() somewhere in expression that I was using with "str%x" % 434
<gnufied> rand()
realDAB has quit [Client Quit]
<gnufied> and hence different values. :-)
bgant has joined #ruby-lang
<judofyr> gnufied: I know how to fix that: def rand(*); srand(1); super end
<gnufied> good plan. But I was suppose to be generating unique mac addresses
siberia has quit [Quit: siberia]
bradsmith has joined #ruby-lang
thepumpkin has joined #ruby-lang
nevill has joined #ruby-lang
<gnufied> judofyr: btw, I am still going on with SAT solver, bit slowly. but I have a branch on bundler, where I have extracted resolver algorithm and made it replacable
realDAB has joined #ruby-lang
<judofyr> gnufied: cool, how did you solve the "prefer newer versions"?
<judofyr> gnufied: also, using MiniSAT?
<gnufied> for now.
GarethAdams has quit [Ping timeout: 264 seconds]
<gnufied> finding newer versions falls under pseudo boolean optimization problem.
<judofyr> thanks
<gnufied> also, I was talking to the guy who wrote - https://github.com/openSUSE/libsolv
<judofyr> I've been trying to figure out what that's called
rippa has joined #ruby-lang
<gnufied> there is a paper I have. I can forward you, if you want
<judofyr> gnufied: appreciated. judofyr@gmail.com
nevill has quit [Remote host closed the connection]
nevill has joined #ruby-lang
<gnufied> Another update, whitequark's >100 dependecy triggers individual gemspec download because at some point bundler-api guys decided if you have >100 you are better off downloading them individually
bradsmith has quit [Ping timeout: 245 seconds]
<judofyr> …
<judofyr> does it still matter?
<gnufied> we had lots of performance problems with bundler-api
relix has joined #ruby-lang
<gnufied> probably not. but I did not probe further. :-)
GarethAdams has joined #ruby-lang
chimkan has quit [Ping timeout: 245 seconds]
chimkan_ has joined #ruby-lang
realDAB has quit [Quit: realDAB]
dhruvasagar has joined #ruby-lang
<yorickpeterse> apeiros: yah
<yorickpeterse> typical monday derps
flip_digits has joined #ruby-lang
Austin__ has joined #ruby-lang
pipework has joined #ruby-lang
tmi has quit [Quit: tmi]
ssb123 has joined #ruby-lang
ssb123 has quit [Remote host closed the connection]
ssb123 has joined #ruby-lang
benlovell has quit [Ping timeout: 256 seconds]
yatish27 has quit [Remote host closed the connection]
tomzx_mac_ has quit [Ping timeout: 245 seconds]
ssb123 has quit [Remote host closed the connection]
ssb123 has joined #ruby-lang
benlovell has joined #ruby-lang
yatish27 has joined #ruby-lang
pskosinski has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
Austin__ has quit [Quit: Leaving.]
dhruvasagar has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby-lang
dhruvasagar has joined #ruby-lang
killthe|wknd is now known as killtheliterate
sush24_ has joined #ruby-lang
sush24 has quit [Ping timeout: 264 seconds]
JasonA has joined #ruby-lang
thmzlt has joined #ruby-lang
nathanstitt has joined #ruby-lang
_helloworld_ has joined #ruby-lang
_helloworld_ has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
joast has quit [Quit: Leaving.]
jbwiv_ has quit [Remote host closed the connection]
LauraE has quit [Remote host closed the connection]
bradsmith has joined #ruby-lang
io_syl has joined #ruby-lang
ssb123 has quit [Remote host closed the connection]
realDAB has joined #ruby-lang
ssb123 has joined #ruby-lang
haowei has joined #ruby-lang
haowei has quit [Client Quit]
nevill has quit [Quit: nevill]
thmzlt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chimkan has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
chimkan_ has quit [Ping timeout: 245 seconds]
pipework is now known as grumpwork
JasonA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thmzlt has joined #ruby-lang
hashkey_ is now known as hashkey
soahccc has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 264 seconds]
rickruby has joined #ruby-lang
<chris2> bougyman: ever used unicorn with runit/runsv?
Austin__ has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
Austin__ has left #ruby-lang [#ruby-lang]
ssb123 has quit [Remote host closed the connection]
shinnya has joined #ruby-lang
<judofyr> oh no, what is happening to me. I'm making a two-way data binding framework for JS.
rickruby has quit [Ping timeout: 264 seconds]
<bougyman> chris2: doing so now, yes.
<bougyman> one sec, run script otw
<chris2> do you use this cargo-culted script or have something sane? :)
skade has quit [Quit: Computer has gone to sleep.]
<bougyman> super simple
<bougyman> export RAILS_ENV=dev
<bougyman> exec setuidgid sonian-deploy bundle exec unicorn_rails -c config/unicorn.rb 2>&1
<bougyman> iirc, unicorn.rb tells it not to fork.
<chris2> hm
<chris2> but doesnt unicorn have to fork for reloading?
joast has joined #ruby-lang
<bougyman> not that I know of.
<bougyman> USR2 reloads this just fine.
<bougyman> why woould it default to not forking, otherwise?
<bougyman> it's -D that makes it fork.
<bougyman> we've been running this in prod for a couple months, no probs thus far.
<bougyman> under upstart we had crazy issues.
ssb123 has joined #ruby-lang
<bougyman> but upstart was daemonizing it.
<judofyr> doesn't it always fork, but doesn't always daemonize?
<bougyman> \_ runsv website_unicorn
<bougyman> daemon 22940 0.0 0.0 184 12 ? S Feb27 0:05 \_ svlogd -t ./main
<bougyman> 888 13451 0.0 9.4 386340 164144 ? S Aug02 0:15 \_ unicorn_rails master -c config/unicorn.rb
<bougyman> that tells me no.
<bougyman> else it wouldn't be under runsv, there.
chaos_ has joined #ruby-lang
chaos_ has left #ruby-lang [#ruby-lang]
soahccc has joined #ruby-lang
wallerdev has joined #ruby-lang
bradsmith has quit [Remote host closed the connection]
<bougyman> that's our dev webserver, so it restarts quite often.
<whitequark> why would it need to fork to daemonize?
<whitequark> exec is sufficient
<whitequark> er, to reload
Fraibert has joined #ruby-lang
<spike|spiegel> master needs to
<spike|spiegel> otherwise if new code blows up on load, you are dead in the water
sstrickl has quit [Quit: sstrickl]
<spike|spiegel> new master when happen signals the old one to die
<spike|spiegel> happen -> happy
vmoravec has quit [Ping timeout: 276 seconds]
<chris2> i just wonder how people come up with this mess: https://gist.github.com/brentkirby/1039720
io_syl has quit [Quit: io_syl]
<spike|spiegel> never been a fan of molesting the env with rvm
s_s_l has joined #ruby-lang
<andrewvos> hahaha
<chris2> rvm is the least problem of this script...
<andrewvos> molesting the env
realDAB has quit [Quit: realDAB]
realDAB has joined #ruby-lang
<yorickpeterse> that shouldn't be needed if the unicorn master doesn't fork
<yorickpeterse> since you can just run it directly under runsv
<chris2> so there is a process inbetween, yes?
bradsmith has joined #ruby-lang
<chris2> and that forks the actual workers?
benlovell has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby-lang
<spike|spiegel> rule 1. unicorn master is itself a 'process watcher/manager' it doesn't neeed anther process to baby sit it
benlovell has joined #ruby-lang
mbj has joined #ruby-lang
pskosinski has quit [Quit: Til rivido Idisti!]
<chris2> sure does, else *this* can not be restarted reliably
<chris2> but all in all, it makes sense
saarinen has joined #ruby-lang
<chris2> i just wonder why people come up with such stuff
barttenbrinke has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 256 seconds]
waynehaworth_rub has quit [Ping timeout: 256 seconds]
<spike|spiegel> chris2: you mean unicorn master needs babysitter? who will babysit the babysitter?
apeiros has joined #ruby-lang
<chris2> spike|spiegel: runsv is babysit by runsvdir, which is babysit by runit, which is pid 1
<spike|spiegel> which distro is runit?
<chris2> any you install it on :P
<chris2> i use it on Arch, ymmv
<spike|spiegel> Arch: not on production I assume
<chris2> i dont do production
<spike|spiegel> phew
Soilent has quit [Read error: Connection reset by peer]
Soilent has joined #ruby-lang
* chris2 decides not to scare spike|spiegel with gentoo-in-production stories :P
<spike|spiegel> start the compilers!
JasonA has joined #ruby-lang
eightygrit has joined #ruby-lang
sstrickl has joined #ruby-lang
sstrickl has joined #ruby-lang
sstrickl has quit [Changing host]
<erikh> I've used engineyard before
<erikh> no need to tell me
<erikh> it's ok I just mentally replace spike with me
<yorickpeterse> arch in production, not even once anymore
<erikh> anymore?
<erikh> haha
<yorickpeterse> I run Debian now in $PROD. This means that instead of 6 years ahead I'm 6 years behind updates
<erikh> although, I'd love arch's packager on ubuntu or RHEL
<chris2> hehe
<judofyr> I think elliottcable ran Arch in prod somewhere
<erikh> that's not particularly surprising
<chris2> and i'd like if debian didnt patch the fuck out of everything
<erikh> redhat does it too
<chris2> and enabled services upon installing
<erikh> just built a new box at work, actually
<erikh> fatcache machine!
<erikh> 72G, 2.4T of SSD, 16 cores of xeon love
<chris2> judofyr: nice, reminds me of coreos
rickruby has joined #ruby-lang
<hagabaka> how do I pack an array of bits into a string? for example [0, 0, 0, 0, 0, 0, 0, 1] * 2 into "\x01\x01"
Nisstyre has joined #ruby-lang
<yorickpeterse> I also don't like systemd
<apeiros> hagabaka: join + pack B* (or b*?)
<yorickpeterse> systemctl is ok, journalctl can fuck off already
<chris2> yorickpeterse: high five
<hagabaka> join the arrays?
<judofyr> >> ([0, 0, 0, 0, 0, 0, 0, 1] * 2).pack('B*')
<eval-in> judofyr => no implicit conversion of Fixnum into String (TypeError) ... (https://eval.in/40724)
<judofyr> >> ([0, 0, 0, 0, 0, 0, 0, 1] * 2).pack('b*')
<eval-in> judofyr => no implicit conversion of Fixnum into String (TypeError) ... (https://eval.in/40725)
<yorickpeterse> journalctl --since="1 hour ago" # enjoy waiting a good few minutes
<judofyr> noe
<hagabaka> yeah I tried that one
<apeiros> it's Array#pack, guys :-p
<apeiros> >> [[0, 0, 0, 0, 0, 0, 0, 1] * 2 * ""].pack("B*")
<eval-in> apeiros => "\x01\x01" (https://eval.in/40726)
<chris2> oh. the AMI stuff is 4 years old :(
<apeiros> and B* was correct
<hagabaka> ahh
<judofyr> right, bit string
<hagabaka> >> [0, 0, 0, 0, 0, 0, 0, 1] * 2 * ""
<eval-in> hagabaka => "0000000100000001" (https://eval.in/40727)
<hagabaka> hmm
<apeiros> * is join
<apeiros> well, * with a string arg
<judofyr> don't use it for join in real code though
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
realDAB has quit [Quit: realDAB]
<hagabaka> thanks
<apeiros> judofyr: u sez my codez was not reel? I'll duel u!!!
<yorickpeterse> Anybody have any experience with/opinions on typhoeus?
probst has joined #ruby-lang
<apeiros> is it maintained again?
<yorickpeterse> It wasn't?
<apeiros> I think it once was looking for a maintainer
enebo has joined #ruby-lang
<yorickpeterse> Commit wise it looks active
<chris2> hm, that's a thing i wanted to have
<apeiros> might be confusing projects, though
<yorickpeterse> We're looking into decent HTTP clients after we found out that our baby (httpclient) is actually pretty terrible
<chris2> something reliable is hard to find imo... :>
<chris2> but i looked a few years ago last time
judofyr has quit [Remote host closed the connection]
<apeiros> "our"?
joshuawscott has joined #ruby-lang
<yorickpeterse> apeiros: $WORK
joshuawscott has quit [Read error: Connection reset by peer]
joshuawscott1 has joined #ruby-lang
<apeiros> you mean httpclient was created in your workplace?
<yorickpeterse> No, we use it
<yorickpeterse> And we liked it, until we found out it does some wack things
<apeiros> what does it do?
<yorickpeterse> sec
<apeiros> and out of curiosity - what's wrong with net/http?
jsullivandigs has joined #ruby-lang
<hagabaka> is there a way to print a string with only \x format, even for ascii characters?
<yorickpeterse> net/http's api isn't very developer friendly
<yorickpeterse> the API is, meh
<apeiros> hagabaka: sure, write a method for it
yalue has quit [Ping timeout: 250 seconds]
joshuawscott1 has quit [Client Quit]
<chris2> does net/http have keepalive etc?
saarinen has quit [Quit: saarinen]
<yorickpeterse> apeiros: https://github.com/nahi/httpclient/blob/master/lib/httpclient/cookie.rb#L225-L226 clears method/constant cache on every single call
<yorickpeterse> (as in, every HTTP request)
<yorickpeterse> there's another one, lets see if I can find it again
<chris2> -.-
<chris2> he should know better...
<apeiros> hagabaka: unpack("H*") and gsub should make it relatively easy
<apeiros> chris2: didn't drbrain add keepalive?
<apeiros> or somebody else in this channel…
<chris2> i'm out of the loop, what do i know :D
<erikh> that's -persistent, iirc
<yorickpeterse> erikh: that too but there was some other weird shit it did
<chris2> ah, nice
<yorickpeterse> Hm, can't find it but I recall it called something in OpenURI which also extended objects during runtime
<yorickpeterse> which again clears the caches
<gnufied> hmm
<yorickpeterse> it's also not really maintained anymore by the looks of it
<erikh> send a patch?
<yorickpeterse> erikh: PRs aren't accepted, last actual commit was almost 6 months ago
<chris2> fork it! :D
<erikh> heh, that was what I was going to say next
<yorickpeterse> I have zero interest in maintaining an HTTP client myself
skade has joined #ruby-lang
<chris2> :D
<gnufied> there is https://github.com/geemus/excon also
<yorickpeterse> Hmm
<yorickpeterse> Hm, streaming responses is nice
<apeiros> yorickpeterse: oh, Object#extend - well, I'd actually say that's ruby which does bad things. but I understand.
<erikh> pewp
<chris2> http 1.0 means it doesnt know host headers? :P
<chris2> also which libraries support sni etc? :P
realDAB has joined #ruby-lang
<yorickpeterse> httpclient doesn't
<erikh> doesn't know most of the stuff on that list if it's http 1.0
<zzak> 6 months without a patch? must not be maintained
realDAB has quit [Client Quit]
<zzak> or its just really stable
<yorickpeterse> zzak: take a look at the issue tracker, see for yourself
<chris2> :)
solars has quit [Ping timeout: 245 seconds]
<yorickpeterse> plenty of open PRs for a long time with actual bugs, useful features, etc
JasonA has quit [Quit: Textual IRC Client: www.textualapp.com]
<zzak> i only see 7 issues in the tracker and 1 pr
<zzak> thought you meant persistent
<yorickpeterse> Nah
<gnufied> nahi
<erikh> net/http has an ookie api apparently
<yorickpeterse> Hm, Excon at least doesn't use any locks by the looks of it
<zzak> nahi is incredibly busy
<yorickpeterse> zzak: I'm not blaming anybody, it just means I'd be less inclined to use it
<zzak> you should offer to help with the httpclient bugs
<yorickpeterse> yeah if I had the time
<yorickpeterse> I don't mind helping out at all, but in between $WORK and the things I already do on the side there's not much room for other stuff
_elia has joined #ruby-lang
<erikh> ^ this
<erikh> I get it.
<yorickpeterse> I'm actually trying to keep things at a small scale so I don't get lost in this pile of "OH MY GOD TOO MUCH OPEN SAUCE"
<erikh> ah, I work all the damn time just not on anything but my own stuff these days
<erikh> pull requests are too frustrating
<chris2> :)
elia has quit [Read error: Connection reset by peer]
<chris2> so true
<zzak> maintaining open source takes a lot of time and dedication, contributing only takes persistence
<yorickpeterse> and now I shall ride home into the sunset using the wonderful train system of dear motherland
<yorickpeterse> toodles
<yorickpeterse> zzak: bullshit
<yorickpeterse> it takes time and effort too
<erikh> zzak: I love you sir but it takes a lot of handshaking as well
<yorickpeterse> Unless it's some small fix like a typo
<erikh> and I'll leave it at that
<yorickpeterse> Getting used to a foreign codebase alone can easily take a day
<yorickpeterse> if not more
<yorickpeterse> now toodles, I need to run
sstrickl has quit [Quit: sstrickl]
poga has joined #ruby-lang
s_s_l has quit [Remote host closed the connection]
realDAB has joined #ruby-lang
realDAB has quit [Client Quit]
<apeiros> chris2: what's sni?
<gnufied> making meaningful contribution to a biggish project takes weeks
<gnufied> :-)
<lupine> sometimes yes, sometimes no
<lupine> incidentally, how often do you other rubyists find yourselves in C ?
dagobah_ has quit [Remote host closed the connection]
<chris2> C is always my second language
<lupine> technically we're a ruby shop, but I've spent the last 30 days or so pretty much exclusively in C
<chris2> the first one changes continuously :P
<lupine> including for a personal side project
<apeiros> gnufied: thx
<lupine> I'm honestly enjoying it. I even know how to use libev now
_jpb__ has joined #ruby-lang
<gnufied> apeiros: first came across SNI when I worked on, http://brightbox.com/blog/2012/04/18/port-translation/
<gnufied> sorry for blog spam, but may be relevant to the topic
pskosinski has joined #ruby-lang
anonymuse has quit [Ping timeout: 248 seconds]
pothibo has joined #ruby-lang
cads has joined #ruby-lang
chimkan has quit [Read error: Connection reset by peer]
chimkan has joined #ruby-lang
efrainolivares has joined #ruby-lang
kstuart has quit [Ping timeout: 245 seconds]
<ddfreyne> Somebody mentioned me a few days ago, irssi says, but the scrollback doesn't go far enough
<ddfreyne> WHO WAS IT
<ddfreyne> REVEAL YOURSELF
<apeiros> it was your evil twin!
<Mon_Ouie> <gnufied> ddfreyne: hello
<Mon_Ouie> Days ago though
__butch__ has joined #ruby-lang
realDAB has joined #ruby-lang
realDAB has quit [Client Quit]
Rylai has quit [Excess Flood]
Rylai has joined #ruby-lang
mbj has left #ruby-lang [#ruby-lang]
Rylai has quit [Changing host]
Rylai has joined #ruby-lang
io_syl has joined #ruby-lang
minivan has quit [Ping timeout: 264 seconds]
_elia has quit [Ping timeout: 264 seconds]
<yorickpeterse> toot toot
musl has joined #ruby-lang
<yorickpeterse> man codeclimate, I like your tool but your "Grand total complexity" indicator is just BS
<yorickpeterse> at least show me what exactly is considered to be complex
<yorickpeterse> (code wise, it has a silly label that just gives a very short summary)
vlad_starkov has joined #ruby-lang
probst has quit [Quit: probst]
joshuawscott has joined #ruby-lang
iliketurtles has joined #ruby-lang
joshuawscott has quit [Ping timeout: 240 seconds]
solars has joined #ruby-lang
ssb123 has quit [Remote host closed the connection]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
iliketurtles has quit [Quit: zzzzz…..]
krohrbaugh has joined #ruby-lang
iliketurtles has joined #ruby-lang
solars has quit [Ping timeout: 264 seconds]
ssb123 has joined #ruby-lang
duphus has quit [Quit: Leaving.]
solars has joined #ruby-lang
mrsolo has joined #ruby-lang
mrsolo has quit [Remote host closed the connection]
mrsolo has joined #ruby-lang
mucker has quit [Remote host closed the connection]
anonymuse has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
sstrickl has joined #ruby-lang
sstrickl has joined #ruby-lang
sstrickl has quit [Changing host]
<darix> o64
havenwood has joined #ruby-lang
skinny_much has quit [Quit: ZNC - http://znc.sourceforge.net]
_jpb_ has quit [Quit: leaving]
musl has quit [Quit: WeeChat 0.4.1]
musl has joined #ruby-lang
ssb123 has quit [Remote host closed the connection]
_jpb_ has joined #ruby-lang
_jpb_ has quit [Client Quit]
_jpb_ has joined #ruby-lang
jonahR has joined #ruby-lang
_jpb_ has quit [Quit: leaving]
_jpb_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
rickruby has quit [Remote host closed the connection]
efrainolivares has quit [Quit: efrainolivares]
krohrbaugh has quit [Quit: Leaving.]
ssb123 has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
_jpb__ has quit [Quit: Lost terminal]
<yorickpeterse> $HOME sweet $HOME
iliketurtles has joined #ruby-lang
pskosinski has quit [Quit: Til rivido Idisti!]
arBmind has quit [Quit: Leaving.]
<lianj> ~\o_
<tubbo> ~ sweet ~
<joevandyk> is it normal for 64-bit ruby apps to take up almost 2x memory?
<tubbo> i'm gonna stay right $PWD
efrainolivares has joined #ruby-lang
<yorickpeterse> joevandyk: 2x, no
<yorickpeterse> tubbo: you mean you're sitting inside a directory?
<yorickpeterse> that must be uncomfortable
<joevandyk> yorickpeterse: i'm seeing significantly more being used, haven't measured exactly though.
<joevandyk> thinking of running 32 bit ruby on a 64 bit OS instead
<joevandyk> that just a matter of setting the CFLAGS?
<joevandyk> when building ruby?
<yorickpeterse> That's like saying you'd rather use a 100 year old card because of some weird problem you're not even sure is related to the actual architecture
<tubbo> yorickpeterse: o/` sittin on the dir of the bay o/`
<yorickpeterse> * car
<yorickpeterse> There are exactly zero reasons why you want to run 32bit today unless you're restricted to <512MB of RAM
<yorickpeterse> even then it doesn't even make that much sense anymore
rmyers has joined #ruby-lang
<yorickpeterse> haha that reminds me of this wonderful fix a co-worker at my previous job once made
<yorickpeterse> He was running 32bit windows and had some issues with floating points. Instead of fixing his setup he just casted the value to a string
<yorickpeterse> "LOL FIXED IT BRA"
<yorickpeterse> interesting enough it would be casted back to a float later on anyway
<yorickpeterse> (PHP)
krohrbaugh has joined #ruby-lang
joshuawscott has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
joshuawscott has quit [Ping timeout: 245 seconds]
rickruby has joined #ruby-lang
skinny_much has joined #ruby-lang
nickgal has joined #ruby-lang
banisterfiend has joined #ruby-lang
duphus has joined #ruby-lang
milesforrest is now known as milesforrest|afk
rickruby has quit [Ping timeout: 240 seconds]
patrikf has joined #ruby-lang
<apeiros> so yes, if you have tons of small objects which fit into VALUE itself, your memory usage might nearly double
<apeiros> yorickpeterse, joevandyk: VALUE on 64bit systems is 8byte compared to 32bit ruby's 4byte
<joevandyk> yorickpeterse: i'm running rails apps on ec2. i'm memory constrained usually. i don't want to have to have 50% more instances if i don't need to
jinie has quit [Ping timeout: 246 seconds]
_whitelogger_ has joined #ruby-lang
efrainolivares has quit [Quit: efrainolivares]
maxmanders has joined #ruby-lang
_whitelogger_ has joined #ruby-lang
<yorickpeterse> We ran 32bit too for a while and we've yet to see an increase in memory now that we run 64bit (thank god)
<yorickpeterse> but what apeiros said is interesting
duphus has quit [Quit: Leaving.]
thmzlt has joined #ruby-lang
brixen has joined #ruby-lang
cored has quit [Ping timeout: 256 seconds]
<spike|spiegel> well, 64bit also on the other hand should speed up the interpreter
cored has joined #ruby-lang
cored has joined #ruby-lang
dereckrx has joined #ruby-lang
<yorickpeterse> joevandyk: what instance are you running on, micro or small?
efrainolivares has joined #ruby-lang
dereckrx has left #ruby-lang [#ruby-lang]
jonahR has quit [Quit: jonahR]
mistym has joined #ruby-lang
retro|cz has quit [Ping timeout: 276 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
<hagabaka> I'm using the bindata gem which "registers" classes you define if their superclasses are registered. I'm trying to dynamically define classes, and when I use module_eval with a string, bindata finds the classes correctly, but when I use a block, it doesn't. How can I use a block without detectable difference?
<yorickpeterse> Why not define the classes like you normally do?
<yorickpeterse> Doing this king of stuff wrecks Ruby's performance
<yorickpeterse> either way, the module_eval should not be needed
benanne has joined #ruby-lang
<hagabaka> I need to define a bunch of classes with a common template
Andrevan has joined #ruby-lang
Andrevan has quit [Changing host]
Andrevan has joined #ruby-lang
<hagabaka> I tried without module_eval around the block too
<yorickpeterse> A better pattern in that case is a base class and extend that
<banisterfiend> hagabaka: what object are you calilng the module_eval on?
<hagabaka> the bunch of classes already have a common base class
<hagabaka> it's just a module
<banisterfiend> hagabaka: and what kind of error are you getting, you just said 'it doesnt work', do you have anything more specific? :)
<hagabaka> well it's specific to bindata, 'unknown type'
joshuawscott has joined #ruby-lang
<hagabaka> I can try to find the code where it does that
cads has quit [Read error: Operation timed out]
<hagabaka> but is there a detectable difference between the two ways of creating a class dynamically?
joshuawscott has quit [Ping timeout: 240 seconds]
<hagabaka> maybe it's because it registers the class name in inherited(), but at that time the class doesn't have a name yet when I use Class.new?
anonymuse has quit [Remote host closed the connection]
postmodern has joined #ruby-lang
<hagabaka> is there a way to solve that without using string eval?
vlad_starkov has joined #ruby-lang
jonahR has joined #ruby-lang
rickruby has joined #ruby-lang
maxmanders has joined #ruby-lang
mbj has joined #ruby-lang
anonymuse has joined #ruby-lang
efrainolivares has quit [Quit: efrainolivares]
kstuart has joined #ruby-lang
hahuang61 has joined #ruby-lang
rickruby has quit [Ping timeout: 256 seconds]
<hagabaka> ok, I've simplified my question https://gist.github.com/6158560
torrieri has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
bradsmith has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
torrieri has quit [Quit: Leaving...]
havenwood has joined #ruby-lang
skade has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby-lang
efrainolivares has joined #ruby-lang
tbuehlmann has joined #ruby-lang
thepumpkin has quit [Remote host closed the connection]
Mon_Ouie has quit [Read error: Connection reset by peer]
nickgal has left #ruby-lang [#ruby-lang]
sush24_ has quit [Quit: This computer has gone to sleep]
hahuang61 has quit [Ping timeout: 241 seconds]
torrieri has joined #ruby-lang
firstdayonthejob has joined #ruby-lang
thepumpkin has joined #ruby-lang
nickgal has joined #ruby-lang
DEac- has quit [Ping timeout: 240 seconds]
Nisstyre has quit [Quit: Leaving]
sepp2k1 has joined #ruby-lang
ssb123 has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 264 seconds]
bradsmith has joined #ruby-lang
ssb123 has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby-lang
joshuawscott has joined #ruby-lang
drexter has joined #ruby-lang
realDAB has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
bradsmith has quit [Ping timeout: 256 seconds]
joshuawscott has quit [Ping timeout: 245 seconds]
r0bby has joined #ruby-lang
efrainolivares has quit [Quit: efrainolivares]
rickruby has joined #ruby-lang
yfeldblum has joined #ruby-lang
rickruby has quit [Ping timeout: 240 seconds]
elia has joined #ruby-lang
realDAB has quit [Quit: realDAB]
torrieri has quit [Quit: Leaving...]
vlad_starkov has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby-lang
efrainolivares has joined #ruby-lang
torrieri has joined #ruby-lang
sstrickl has joined #ruby-lang
sstrickl has joined #ruby-lang
Andrevan has quit []
<joevandyk> yorickpeterse: c1.medium usually
<yorickpeterse> joevandyk: what's the memory usage now?
pothibo has quit [Quit: pothibo]
<joevandyk> yorickpeterse: on a ubuntu VM, this rails app usually takes up 100MB on 32 bit. With 64, it's closer to 180.
<yorickpeterse> oh, that's a pretty normal amount for Rails apps
hashkey has quit [Quit: Leaving]
<yorickpeterse> (180)
<joevandyk> I run about 9 instances per EC2. I wouldn't really be able to do that on 64 bit
<joevandyk> err, 9 rails apps per EC2 instance.
<joevandyk> just because of the increased memory usage
<yorickpeterse> bike shedding: EC2 probably isn't the best choice for a shared hosting like environment
<yorickpeterse> because of the fairly high costs for more decent resources
<yorickpeterse> either way, you could probably lower the memory by profiling your app. Otherwise stick with 32bit if it's that much of an issue
<joevandyk> yorickpeterse: it's been working great for four years. no reason to change.
mbj has left #ruby-lang [#ruby-lang]
<erikh> you consider going to an m-class box?
<erikh> memory > cpu for most rails apps
<erikh> since most of your time is in iowait
<joevandyk> erikh: most of my time is spent compiling partials :(
<joevandyk> that can't be cached easily
<erikh> you have no idatabase?
<yorickpeterse> get a better template engine :>
x0f has quit [Ping timeout: 264 seconds]
<yorickpeterse> and there might be your problem: Strings
<joevandyk> erikh: i do, but the database isn't the bottleneck for most things.
<erikh> that's not really what I'm saying -- have you sat down with strace -c or something like that?
<erikh> you could probably get more bang for your buck with like a m1.large or something
mistym has quit [Remote host closed the connection]
<lianj> yorickpeterse: that would be a fun rails pull request
<yorickpeterse> lianj: what, replace HAML with something less fucked up?
<yorickpeterse> or get rid of all Strings?
<yorickpeterse> should use Symbols for everything for speed :>
x0f has joined #ruby-lang
<yorickpeterse> memory is cheap anyway!
<lianj> that god we don't use haml in our app
<yorickpeterse> just restart your app every 10 minutes!
<yorickpeterse> we still do :<
<lianj> *thank
MaddinXx has quit [Remote host closed the connection]
<yorickpeterse> but we started looking into Slim
<yorickpeterse> (so far it looks ok)
bradsmith has joined #ruby-lang
mistym has joined #ruby-lang
maxmanders has joined #ruby-lang
<yorickpeterse> Related, I still find it bizarre how Rails can easily gobble up 200MB without really doing anything interesting
joshuawscott has joined #ruby-lang
<yorickpeterse> it's basically a memory leak as a service
nathanstitt has quit [Quit: I growing sleepy]
mistym has quit [Remote host closed the connection]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
bradsmith has quit [Ping timeout: 246 seconds]
x0f has quit [Ping timeout: 260 seconds]
x0f has joined #ruby-lang
thmzlt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
efrainolivares has left #ruby-lang [#ruby-lang]
joshuawscott has quit [Ping timeout: 256 seconds]
hashkey has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
breakingthings has quit [Quit: breakingthings]
mbj has joined #ruby-lang
efrainolivares has joined #ruby-lang
jonahR has quit [Quit: jonahR]
thepumpkin has quit [Remote host closed the connection]
sepp2k1 has quit [Read error: Connection reset by peer]
mbj has quit [Quit: leaving]
grumpwork has quit [Remote host closed the connection]
thepumpkin has joined #ruby-lang
LauraE has joined #ruby-lang
charliesome has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 268 seconds]
<yorickpeterse> whitequark: we've discussed this in the past, but I still think (block (send)) is retarded
<yorickpeterse> when dealing with scoping based on the nodes it introduces annoying cases when it comes to determining where to inherit data from
<yorickpeterse> I also still believe it's fundamentally wrong since a block is passed to a method, yet this AST would indicate the exact opposite
x0f has quit [Read error: Operation timed out]
jsullivandigs has quit [Remote host closed the connection]
bgant has quit [Quit: Leaving.]
jsullivandigs has joined #ruby-lang
elia has quit [Read error: Connection reset by peer]
x0f has joined #ruby-lang
elia has joined #ruby-lang
ssb123 has quit [Remote host closed the connection]
tbuehlmann has quit [Remote host closed the connection]
jsullivandigs has quit [Ping timeout: 245 seconds]
relix has joined #ruby-lang
adambeynon has joined #ruby-lang
relix has quit [Client Quit]
charliesome has quit [Ping timeout: 260 seconds]
bradsmith has joined #ruby-lang
w00x has quit [Read error: Operation timed out]
bradsmith has quit [Ping timeout: 240 seconds]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
_helloworld_ has joined #ruby-lang
jvrmaia has quit [Quit: Leaving]
retro|cz has joined #ruby-lang
enebo has quit [Quit: enebo]
havenwood has quit [Ping timeout: 256 seconds]
bradsmith has joined #ruby-lang
pothibo has joined #ruby-lang
anonymuse has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
thepumpkin has quit [Remote host closed the connection]
thepumpkin has joined #ruby-lang
anonymuse has joined #ruby-lang
firstdayonthejob has quit [Ping timeout: 260 seconds]
havenwood has joined #ruby-lang
tomzx_mac has joined #ruby-lang
pr0ton has joined #ruby-lang
firstdayonthejob has joined #ruby-lang
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
solars has quit [Ping timeout: 245 seconds]
Kabaka has quit [Ping timeout: 240 seconds]
nneko001__ has quit [Quit: Konversation terminated!]
Kabaka has joined #ruby-lang
eightygrit has quit [Quit: eightygrit]
anonymuse has quit [Remote host closed the connection]
SCRIPT_KITTEH has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
__butch__ has quit [Quit: Leaving.]
apeiros has quit [Remote host closed the connection]
SCRIPT_KITTEH has left #ruby-lang [#ruby-lang]
apeiros has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
erichmenge has quit [Ping timeout: 245 seconds]
erichmenge has joined #ruby-lang
malev has joined #ruby-lang
davidbalz has quit [Ping timeout: 245 seconds]
davidbalber|away has joined #ruby-lang
_helloworld_ has quit [Remote host closed the connection]
tubbo has quit [Ping timeout: 245 seconds]
Rubennn has quit [Ping timeout: 245 seconds]
thmzlt has joined #ruby-lang
glebm has quit [Quit: Textual IRC Client: www.textualapp.com]
Rubennn has joined #ruby-lang
tubbo has joined #ruby-lang
pothibo has quit [Quit: pothibo]
thmzlt has quit [Client Quit]
scottschulthess has joined #ruby-lang
sstrickl has quit [Quit: sstrickl]
thmzlt has joined #ruby-lang
efrainolivares has quit [Quit: efrainolivares]
dik_dak has joined #ruby-lang
nickgal has quit [Read error: Connection reset by peer]
<crankharder> so i'm on the google, looking for a ruby DSL to spit out iptables rules.
scottschulthess has quit [Quit: scottschulthess]
<crankharder> and I find this (gisted for convenience) https://gist.github.com/crankharder/c4f915453a6830ee1122
nickgal has joined #ruby-lang
<crankharder> english readable parser for iptables rules
<zenspider> worst setup method, evar
daturkel has joined #ruby-lang
<crankharder> lol
efrainolivares has joined #ruby-lang
thmzlt has quit [Quit: Textual IRC Client: www.textualapp.com]
<zenspider> really
<daturkel> beginner question: i have a module that only needs to be extended to *some* instantiations of a class. should i give the class's initialize function a parameter to trigger extending it, or is it best to do extension outside of the class?
<daturkel> here's an illustration of the latter option in the above: https://gist.github.com/daturkel/34010a50e55ad5194fce
cdmnsr has joined #ruby-lang
cdmnsr has left #ruby-lang [#ruby-lang]
<crankharder> daturkel: can't you just subclass it and give the module to the subclass?
<daturkel> that's very possible, i've never done any subclass/class inheritance before
scottschulthess has joined #ruby-lang
<crankharder> class MyModdedClass < ParentClass ; include MahModule ; end
scottschulthess has quit [Client Quit]
<zenspider> he said SOME
<daturkel> do i then call MyModdedClass.new when using that?
<crankharder> yea, but he also said the trigger could be determined at instantiation
<crankharder> in which case he can pick which of the two to use
<zenspider> well, subclassing is certainly a better option (in which case it could be argued no module is needed at all)
<daturkel> yeah, whether you need the module or not is known as soon as i'm making the object
<zenspider> extending instances blows the method caches
<crankharder> yea, also that
<daturkel> yeah i could probably cut out the module this way
<daturkel> cool, thanks guys. i'll give this a shot
<zenspider> in the case of that gist, yeah. no module needed
<daturkel> so i take it the real use of modules comes when you might want to include/extend several different classes with it?
<daturkel> *the real powerful use at least
nathanstitt has joined #ruby-lang
jsullivandigs has joined #ruby-lang
<zenspider> eh... there are too many uses for/of modules
realDAB has joined #ruby-lang
<daturkel> i've also been using them to compartmentalize a set of related methods (which are defined `def ModuleName.method_name`, not `def method_name`) but i'm not sure if that's considered good usage
<crankharder> I primarily use them to make my code harder to follow
<crankharder> job security homie
<daturkel> hehe
<zenspider> daturkel: do def self.method_name instead. you'll thank me later
<daturkel> for which case?
<zenspider> def ModuleName.method_name -> def self.method_name
realDAB has quit [Client Quit]
<daturkel> is that just for ease in refactoring?
<zenspider> yeah. and readability imho
iliketurtles has quit [Quit: zzzzz…..]
havenwood has quit [Remote host closed the connection]
<daturkel> does a subclass get initialized as its parent class and then again via its own initialize method?
<zenspider> depends on if initialize is defined and if/where it calls super
<zenspider> and ... you mean instance, not subclass
<zenspider> which get initialized also... but I don't think it is what you meant
<daturkel> I want SubClass.new to do both SuperClass' initialize function as well as its own one
<x0f> than you should call super in the subclass initialize-method with the appropriate parameters for initializing an instance of the parent class
<daturkel> ok that makes sense
benanne has quit [Quit: kbai]
kstuart has quit [Read error: Operation timed out]
<daturkel> x0f: is that not the case is the subclass doesn't have an initialize function?
iliketurtles has joined #ruby-lang
<daturkel> seems like if subclass doesn't have initialize, then SubClass.new just passes its arguments to SuperClass.new
Taranis has joined #ruby-lang
<x0f> daturkel, oh, is missunderstood you then, i presumed you have attributes on your subclass instance which need to be initialized. yes, if no initialize-method is present is passes all arguments to super of the parent-class initialize-method
<x0f> eh... it just passes it to the parent class initialize-method.. kind sleepy here.
priodev has quit [Ping timeout: 240 seconds]
<daturkel> gotcha, i understand. just wanted to make sure i understood both cases.
priodev has joined #ruby-lang
nickgal has quit [Quit: nickgal]
<x0f> daturkel, i recommend using a r
<daturkel> ?
<x0f> ..repl for testing this, or even better, write a small test-file for testing your expectations.
<daturkel> i've never written testfiles before, is there a decent resource for me to see how to best do this?
Nisstyre has joined #ruby-lang
efrainolivares has quit [Quit: efrainolivares]
efrainolivares has joined #ruby-lang
<x0f> daturkel, well, there are many testing frameworks out there, ruby itself should "ship" with test-unit. it's solid, but not fancy.