apeiros_ changed the topic of #ruby-lang to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
<drbrain> maek: it's not as efficient as other ways, and it costs rubygems money for gems you probably won't ever need
<zenspider> that seems like MASSIVE overkill
<drbrain> such as rake-0.4.8
<maek> drbrain: yeah good point.
banister`sleep has joined #ruby-lang
<zenspider> pssh I used rake 0.4.8 just yesterday
<maek> with ruby 1.8.7
<maek> retro
<zenspider> bah... 1.8.6
<zenspider> ruby classicâ„¢
srbaker has joined #ruby-lang
<maek> i lol'ed
benanne has quit [Quit: kbai]
rwk1 has joined #ruby-lang
* zenspider hits srbaker with a stick
<srbaker> zenspider: sup
spuk has joined #ruby-lang
<zenspider> a short stick at that... not much needed for you, tiny. :P
havenwood has quit [Remote host closed the connection]
<zenspider> srbaker: GO LOOK AT MY FUZZY MATCHER IN FLAY!
snafoo_ has joined #ruby-lang
<srbaker> zenspider: ALREADY DID AND ITS FUCKING GLORIOUS
<srbaker> zenspider: you're my mofucking hero
<zenspider> OMG THANK YOU
havenwood has joined #ruby-lang
<zenspider> damn skippy
<srbaker> we have 50kloc rails codebase that i ran it against some parts of
gregmoreno has quit [Ping timeout: 260 seconds]
<srbaker> i intend to run flay in different config variants and measure the differences.
<zenspider> yes please
<srbaker> because on one set of files, it looked like fuzzy matching caught about 30% more duplication
<zenspider> I keep switching the output to be unnumbered so I can diff better...
<srbaker> but i didn't officially measure. just ran it twice
<srbaker> and looked
<zenspider> *nod*
<srbaker> but yeah, we've got some good code bases for this
<maek> mistym, drbrain: ty for the help
<zenspider> lemme go add -#
<maek> postmodern: ty again for the link.
maek has left #ruby-lang [#ruby-lang]
snafoo has quit [Ping timeout: 240 seconds]
rwk1 has quit [Ping timeout: 264 seconds]
<jMCg> is there a way to this here more gracefully: plugin = line.keys.first or line
havenwood has quit [Ping timeout: 264 seconds]
<jMCg> That is, without a fatal exceptino?
<canton7> what's the exception?
<zenspider> rescue line ?
<zenspider> prolly a NoMethodError
<zenspider> jMCg: mixing types like that is a bad way to go in general
<srbaker> jMCg: #keys should return an empty list
<jMCg> zenspider: yeah, I figured as much, but I'm having a really hard time designing a configuration for this which is sane.
<srbaker> that should never NME
<canton7> apaste.info seems not to want to load here
<jMCg> canton7: that's bad :S
<jMCg> canton7: where is here?
<canton7> uk
<jMCg> Did uk implement a Great Fire Wall recently?
<zenspider> jMCg: you can start with the fact thta you have a variable named line which is clearly NOT a line
<canton7> hardly :P
<zenspider> that
<jMCg> zenspider: for better or worse it is: It's a configuration line. I try to find out what exactly it is oh fuck me.
<zenspider> Detail: undefined method `keys' for "stats_over_http.so":String
<jMCg> I just realized this config can have more than one argument, and right now, I'm only accounting for one, and even that, poorly.
<zenspider> so... maybe it is a line :P
<jMCg> context: I'm transforming a puppet config via an Erb into something that augeas munges into a traffic server config.
<jMCg> Every single step, I appear to be doing poorely.
<jMCg> Let's back-track: plugin.config (the trafficserver config) has the following format: fooo.so, or foo.so followed by any number of arguments
<zenspider> done
bin7me|2 has joined #ruby-lang
<jMCg> in my puppet config I'm representing that as array of hashes
<zenspider> srbaker: now you can do flay -# blah blah > before; flay -# -otheropts blah blah > after; diff -u before after
<srbaker> nice
<zenspider> jMCg: why an array of hashes?
<jMCg> zenspider: because order can be important in plugin.config, but in Hashes order is not guaranteed.
<zenspider> either have an array of strings or use real objects. don't be a perler in ruby-land
<zenspider> in 1.9 hashes are ordered
<zenspider> not so in 1.8
<zenspider> it offends my sensibilities, but there you have it
* jMCg throws away ALL the arrays
<zenspider> "sensibilities"
agarie has joined #ruby-lang
emocakes has quit [Quit: emocakes]
bin7me has quit [Ping timeout: 264 seconds]
<jMCg> http://apaste.info/5pg9 << now, even so, this only works for one arg, not more than that, I'd have to do:
<jMCg> http://apaste.info/BItj or something else equally offensive.
<canton7> I'm assuming that embedded hash is actually an array?
wallerdev has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
<jMCg> hrm.. actually, you're right.
<canton7> also that outermost hash is a strange mix of hash and array
<jMCg> Yeah, that works in PHP, not so much here.
<jMCg> Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not parse for environment production: Syntax error at ','; expected '}' at /etc/puppet/manifests/profiles.pp:125 on node test-lb01.esat
<canton7> I don't know puppet config at all... are you allowed custom objects?
havenwood has joined #ruby-lang
<Boohbah> hi, using nokogiri to parse a web page, how do i remove text nodes containing parenthesis, and all nodes between them, but keep a href nodes containing parenthesis?
<Boohbah> i'm removing these other nodes like this:
<Boohbah> %w[.//table .//span .//sup .//i].map {|s| doc.xpath(s).map(&:remove) }
emocakes has joined #ruby-lang
<jMCg> zenspider: whoa.. this is simplifying my code *soo* much.
<mistym> zenspider: Ha, I've been regularly use 1.8.2 these days </slow>
<andrewvos> canton7: yes
bin7me|2 has quit [Read error: Connection reset by peer]
<Boohbah> the problem with my current approach is that i'm removing parens inside hrefs when i don't want to
<Boohbah> and there must be a better way than converting the Nokogiri::XML::Element to text and back again
Gaelan has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
<andrewvos> Boohbah: if node.tag == "a"
Gaelan has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
<andrewvos> (I have no idea if the tag method exists)
<canton7> node.name - close enough
lcdhoffman has quit [Quit: lcdhoffman]
<zenspider> mistym: why?
lcdhoffman has joined #ruby-lang
<mistym> zenspider: It's the Ruby that comes with OS X Tiger, and I have a fork of Homebrew that runs on Tiger/PPC Macs.
<zenspider> hah
<zenspider> nice
ykk has quit [Read error: Connection reset by peer]
lcdhoffman has quit [Client Quit]
ykk has joined #ruby-lang
stonerfish has joined #ruby-lang
soknee has joined #ruby-lang
ndch has quit [Remote host closed the connection]
lsegal has joined #ruby-lang
<amerine> heh, someone can't let go of their 12" Powerbook ;-)
Gaelan has quit [Remote host closed the connection]
<zenspider> dude... that's STILL in my top 3 laptops of all time list
<zenspider> can't hold a candle to my current 13" air... but that's really about the SSD more than anything
soknee has quit [Client Quit]
<zenspider> tho the performance doubled too over the previous air w/ ssd
<mistym> Some interesting stuff in there, like Pathname's hilariously bad symlink handling
Gaelan has joined #ruby-lang
<mistym> amerine: I <3 my 15" PowerBook G4! Still a great machine.
<lianj> loved my 12" powerbook
<lianj> sold it after 2-3 year for only 50 euro less than i bought it for
rwk1 has joined #ruby-lang
<srbaker> zenspider: as far as i know, my dad still uses your old PowerBook 12" that i got from you
stonerfish has quit [Quit: Leaving.]
<srbaker> he definitely did a year ago
<amerine> I gave my 12" to my youngest sister when the first 15" MBPs shipped. Last I heard she still had it.
<srbaker> great machine.
<amerine> It's odd how quickly we get accustomed to the speed of newer machines. Going back and using older boxes is an exercise in annoyance.
<lianj> at work i used to put the 12" into target mode (firewire) and use its home folder on their G5
<amerine> Ahh, good old target disc mode. I haven't used that in forever.
<amerine> Fun fact: You can also boot xserv's into target disc mode and recover data when the OS wont' boot ;-)
<jMCg> zenspider: interesting experience: Once you.. no: Once I stopped trying to coerce Perl-like datastructures into puppet, puppet, being all Ruby, stopped being confused -- and confusing.
yxhuvud has quit [Quit: Nettalk6 - www.ntalk.de]
<lianj> amerine: yep, great feature
<amerine> jMCg: Ahh, so you figure out 'undefined local variable or method `my'' and 'undefined local variable or method `our'' errors ;-)
<jMCg> >_o
<jMCg> amerine: I think I'm above that level..
<amerine> jMCg: Of course, of course I was only kidding.
<jMCg> Which reminds me, if anyone of you would like to program perl like it's 2013, not 1985, take a look at perl5i
<jMCg> schwern who's the author, gives a 20min talk in blazing speed at auconf (if reading the readme is too much of a hassle ;)
djwonk has joined #ruby-lang
<zenspider> srbaker: hah
<zenspider> jMCg: yay
<jMCg> amerine: sorry.. sarcastometer died about three months ago, and the replace won't be delivered until after I can afford vacation.
<jMCg> (I can't even tell if I'm being sarcastic myself anymore :C
<amerine> jMCg: Yeah, those meters get used pretty hard on the tubes.
soknee has joined #ruby-lang
spuk has quit [Ping timeout: 264 seconds]
spuk has joined #ruby-lang
stevechiagozie has joined #ruby-lang
emocakes has quit [Quit: emocakes]
agarie has quit [Ping timeout: 260 seconds]
soknee has quit [Client Quit]
fosky has joined #ruby-lang
tylersmith has quit [Quit: tylersmith]
emocakes has joined #ruby-lang
ykk has quit [Read error: Connection reset by peer]
MehLaptop has joined #ruby-lang
ykk has joined #ruby-lang
emocakes has quit [Client Quit]
Gaelan has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
dhruvasagar has joined #ruby-lang
pr0ton has quit [Ping timeout: 255 seconds]
soknee has joined #ruby-lang
pr0ton has joined #ruby-lang
ndch has joined #ruby-lang
soknee has quit [Quit: Leaving.]
Domon has joined #ruby-lang
XxBlakeFailxX has quit [Read error: Connection reset by peer]
XxBlakeFailxX has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
skade has joined #ruby-lang
MehLaptop has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
tcopp has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
yfeldblum has quit [Ping timeout: 255 seconds]
agarie has joined #ruby-lang
mistym has quit [Remote host closed the connection]
rwk1 has quit [Remote host closed the connection]
agarie has quit [Remote host closed the connection]
agarie has joined #ruby-lang
agarie has quit [Ping timeout: 260 seconds]
soknee has joined #ruby-lang
tylersmith has joined #ruby-lang
bzalasky has joined #ruby-lang
agarie has joined #ruby-lang
soknee has quit [Quit: Leaving.]
tylersmith has quit [Ping timeout: 255 seconds]
<charliesome> whitequark: yo
havenwood has quit [Remote host closed the connection]
soknee has joined #ruby-lang
soknee has quit [Client Quit]
srbaker has quit [Quit: Computer has gone to sleep.]
tsion has quit [Quit: Leaving]
chrismar035 has joined #ruby-lang
io_syl has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby-lang
rwk1 has joined #ruby-lang
rwk1 has quit [Ping timeout: 260 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
agarie has quit [Remote host closed the connection]
agarie has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
skade has quit [Ping timeout: 264 seconds]
glebm has quit [Quit: Computer has gone to sleep.]
agarie has quit [Ping timeout: 264 seconds]
lcdhoffman has joined #ruby-lang
lcdhoffman has quit [Client Quit]
agarie has joined #ruby-lang
hakunin_ is now known as hakunin
bzalasky has quit [Remote host closed the connection]
wmoxam has joined #ruby-lang
Gaelan has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
rwk1 has quit [Ping timeout: 255 seconds]
Nisstyre-laptop has joined #ruby-lang
wallclockbuilder has joined #ruby-lang
wmoxam has quit [Ping timeout: 264 seconds]
security has joined #ruby-lang
megha has quit [Ping timeout: 248 seconds]
sandbags has quit [Remote host closed the connection]
chrismar035 has quit [Ping timeout: 248 seconds]
Averna has joined #ruby-lang
Gaelan has joined #ruby-lang
<soahccc> What is a good solution for fast recurring tasks? They should run as quickly as possible (so I guess a preloaded env). Is Sidekiq the way to go? Or should I go with a threaded self crafted handler process?
<bnagy> depends?
io_syl has joined #ruby-lang
<soahccc> on what exactly? I know it more of the perspective of a web application where it is goal no. 1 to save the users time but now I'm confronted with "fast as possible" execution.
ykk has quit [Remote host closed the connection]
ryanf has quit [Quit: leaving]
<soahccc> They will contain a lot of http requests so I guess MRI's threads might be fast enough for this. wouldn't scale well though
Gaelan has quit [Remote host closed the connection]
emocakes has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
<bnagy> MRI threads are fine for IO bound stuff
tonni has joined #ruby-lang
<bnagy> afaik sidekiq is basically a threaded work queue, and if you're using it for a webapp it's probably a fine choice
Gaelan has joined #ruby-lang
<soahccc> hmm sidekiq serializes so it might need to reinitiate the env...
<drbrain> soahccc: a) write it b) see if it is slow c) profile d) fix the slow parts
<soahccc> drbrain: yeah so basically roll your own :)
<drbrain> soahccc: no
<bnagy> rolling your own threaded work queue is shitty death
<bnagy> having done so multiple times :/
<drbrain> soahccc: use libraries and whatnot
<soahccc> Maybe I directly give jruby a try but I'm kinda overwhelmed with the locking thing
<bnagy> I don't see what the interpreter really has to do with this
<drbrain> jruby won't save you from locking
<bnagy> if it's outgoing http requests they are going to be IO bound
<bnagy> not that I don't love jruby, I use it on all my prod
<bnagy> I'm more worried about the part where you think your jobs won't serialize cleanly
<bnagy> that smells like a design problem
<soahccc> well it's making a request and doing something with the output which itself will doing something with a database so I don't know if the IO part is the biggest part
dhruvasagar has quit [Ping timeout: 264 seconds]
<soahccc> I don't worry about serialization in general but I can't imagine how it can run the job in the environment without loading it each time
dhruvasagar has joined #ruby-lang
<bnagy> what 'environment' ?
<soahccc> well gems, and all that library stuff, things you only need to load once
<bnagy> workers are usually persistent, and they just process work units
<bnagy> whether you fork or spin a thread, all you libs and gems etc are still loaded
<soahccc> I think I give sidekiq a try and if I structure it well I should be able to replace the actual backend easily
Boohbah has quit [Ping timeout: 256 seconds]
Boohbah has joined #ruby-lang
Boohbah is now known as Guest91682
zerokarmaleft has joined #ruby-lang
rwk1 has joined #ruby-lang
bzalasky has joined #ruby-lang
kgrz has joined #ruby-lang
rwk1 has quit [Ping timeout: 260 seconds]
Kuukunen has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
Kuukunen has joined #ruby-lang
kvs has quit [Ping timeout: 256 seconds]
kvs has joined #ruby-lang
Kuukunen has quit [Ping timeout: 255 seconds]
tonni_ has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
Kuukunen has joined #ruby-lang
hahuang65 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Gaelan has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
Gaelan has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
ryanf has joined #ruby-lang
rwk1 has quit [Ping timeout: 264 seconds]
pkrnj has joined #ruby-lang
firefux has left #ruby-lang [#ruby-lang]
security is now known as fire
amerine has quit [Ping timeout: 264 seconds]
emocakes has quit [Quit: emocakes]
amerine has joined #ruby-lang
ykk has joined #ruby-lang
ykk has quit [Ping timeout: 260 seconds]
znz_v0 has quit [Quit: kill -QUIT $$]
znz_v has joined #ruby-lang
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
bzalasky has joined #ruby-lang
tonni has joined #ruby-lang
tonni_ has quit [Read error: Connection reset by peer]
cored has quit [Ping timeout: 256 seconds]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
wallclockbuilder has quit [Remote host closed the connection]
maxwell has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 256 seconds]
maxwell has quit [Client Quit]
brianpWins has joined #ruby-lang
agarie has quit [Remote host closed the connection]
crynix has quit [Remote host closed the connection]
maxwell has joined #ruby-lang
maxwell has quit [Quit: leaving]
emocakes has joined #ruby-lang
stevechiagozie has quit [Quit: Computer has gone to sleep.]
bzalasky has quit [Remote host closed the connection]
r0bgleeson has quit [Ping timeout: 252 seconds]
agarie has joined #ruby-lang
rippa has joined #ruby-lang
rwk1 has joined #ruby-lang
rwk1 has quit [Ping timeout: 258 seconds]
Bosox20051 has joined #ruby-lang
dkannan has joined #ruby-lang
kgrz has quit [Ping timeout: 260 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
wallclockbuilder has joined #ruby-lang
dhruvasagar has joined #ruby-lang
maxmanders has joined #ruby-lang
swav has joined #ruby-lang
Nuru has joined #ruby-lang
<Nuru> What's the convention to avoid conflicts between names and global functions?
maxmande_ has joined #ruby-lang
fosky has quit [Remote host closed the connection]
maxmanders has quit [Ping timeout: 260 seconds]
soahccc has quit [Ping timeout: 276 seconds]
maxmande_ has quit [Quit: Computer has gone to sleep.]
kgrz has joined #ruby-lang
ezkl has joined #ruby-lang
Bosox20051 has quit [Quit: Leaving]
Mon_Ouie has joined #ruby-lang
Polish has joined #ruby-lang
agarie has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
agarie has joined #ruby-lang
ryanf has quit [Quit: leaving]
kgrz has quit [Ping timeout: 264 seconds]
Polish has quit [Quit: Leaving]
tcopp has quit [Ping timeout: 248 seconds]
kgrz has joined #ruby-lang
Wardrop has joined #ruby-lang
axcint has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
ndch has quit [Remote host closed the connection]
axcint has quit [Quit: Leaving]
kgrz has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby-lang
Nuru has quit [Quit: Bye bye]
agarie has quit [Remote host closed the connection]
fosky has joined #ruby-lang
io_syl has quit [Quit: Computer has gone to sleep.]
brianpWins has quit [Quit: brianpWins]
yxhuvud has joined #ruby-lang
wallclockbuilder has quit [Remote host closed the connection]
chendo has joined #ruby-lang
aj_acevedo has joined #ruby-lang
solars has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby-lang
aj_acevedo has quit [Client Quit]
hramrach has joined #ruby-lang
faces has quit [Ping timeout: 272 seconds]
lewis1711 has joined #ruby-lang
wallclockbuilder has joined #ruby-lang
fire has quit [Quit: WeeChat 0.4.0]
chendo has quit [Ping timeout: 264 seconds]
chendo has joined #ruby-lang
kgrz has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby-lang
<lewis1711> that feeling when you come in here to solve a problem then you solve it yourself
<injekt> :)
<apeiros_> that's called "thinking about your problem" :-p
alessio_rocco has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
face has joined #ruby-lang
kgrz has joined #ruby-lang
<lewis1711> you'd be surprised how long I can spend thinking about a stupid problem without solving it
<apeiros_> just pretend you explain it to somebody
<apeiros_> it's surprising how people can think about a problem without actually thinking about it :) (no kidding)
<injekt> I think about thinking about it whilst im trying to think about it and then I have a headache
<lewis1711> yes I often end up figuring something out when I try and put it in a format that can help other people understand the problem. tends to bring out false assumptions
<apeiros_> it also forces you to think of all parts of the problems
<apeiros_> -s
<apeiros_> which is often helpful
thebastl has joined #ruby-lang
thebastl has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
JohnBat26 has joined #ruby-lang
zmack has joined #ruby-lang
MaddinXx has joined #ruby-lang
<bnagy> hey, #jruby is dead-ish, anyone care to help me speculate about what looks like a memory leak in DRb on windows under jruby?
<bnagy> can't really test with MRI, because x64
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
maxmanders has joined #ruby-lang
thebastl has joined #ruby-lang
techlife has quit [Ping timeout: 256 seconds]
techlife has joined #ruby-lang
soknee has joined #ruby-lang
fire has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
<yorickpeterse> morning
dhruvasagar has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_st__ has joined #ruby-lang
vlad_sta_ has quit [Ping timeout: 258 seconds]
rwk1 has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
vlad_st__ has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
tsion has joined #ruby-lang
<whitequark> moo
MaddinXx has quit [Remote host closed the connection]
<bnagy> ok, this is definitely a drb related leak. Somehow.
<whitequark> bnagy: #jruby shouldn't be dead
<bnagy> seems to be :) not sure it's jruby related, tbh
<bnagy> I definitely suspect Threads, though
<bnagy> I refactored a lot of other code to avoid killing Threads that use objects that create internal Threads
<bnagy> but I am not all that keen to start tinkering with InvokeMethod in drb
<bnagy> don't suppose there's any new RPC hotness that could replace DRb?
<yorickpeterse> whitequark: ha wtf, see this: https://github.com/whitequark/ruby_parser/tree/ragel/lib
<yorickpeterse> Last commit: 3 months ago
<yorickpeterse> yet the individual files show 18 hours ago
<whitequark> yorickpeterse: rebase.
<whitequark> changes modtime of the file but not the commit
<whitequark> this even kinda makes sense
<whitequark> because you don't want to rebase an empty commit and get a commit with a different sha1
<yorickpeterse> right
<yorickpeterse> so I had this idea last night:
<yorickpeterse> how about the parser itself (the bison crap) doesn't actually emit AST nodes but instead just fires events? That way you could do the AST building in pure Ruby (that's not mixed with Bison crap)
Ridders24 has joined #ruby-lang
<yorickpeterse> (unless this is the way to do things, in that case disregard)
<yorickpeterse> This would make it easier to maintain the AST generation part as people could contribute to it without having to know anything about the Bison syntax
<whitequark> yorickpeterse: that is a possible approach, but wrong reason
<whitequark> if people know nothing about the Bison syntax, they should not maintain a parse.
<whitequark> *parser.
<Ridders24> hows the best way to create a user input for somthing like " time + message + ID + source" each of those representing data to be output in that order?
<whitequark> seriously, *reading* Bison stuff isn't hard. writing it is, mainly because LR(1) is kind of a puzzle
<yorickpeterse> whitequark: correct, but I prefer to keep the .y file as sane as possible
<yorickpeterse> There's another reason to do it in a separate bit of code (=class): makes it possible to customize it
<whitequark> yorickpeterse: right now, it is halfway there. most of the AST-generating methods longer than a line or two are in the RubyParserExtras
Haibin has joined #ruby-lang
<yorickpeterse> So you'd end up with something like RubyLexer, RubyParser and RubyASTBuilder
<whitequark> yorickpeterse: why do you want to customize it?
<whitequark> convention over configuration, dude.
<yorickpeterse> whitequark: for example, for ruby-lint my AST nodes carry some extra methods
vlad_sta_ has joined #ruby-lang
gnufied has joined #ruby-lang
<yorickpeterse> The traditional way of dealing with this would be to iterate over the AST and replace nodes with your own *or* monkey patch them
<whitequark> yorickpeterse: hrm
<yorickpeterse> It would be nicer to say "Use this class for nodes" instead
<yorickpeterse> It's by no means a common use case, but it would be nice
glebm has joined #ruby-lang
<whitequark> I guess you could simply subclass the Parser::Ruby and override the s() method
<whitequark> yours is a valid use case but it should not warrant a method of changing the entire AST structure
<yorickpeterse> hmm
tbuehlmann has joined #ruby-lang
<yorickpeterse> subclassing the parser could also work, didn't think of that
<yorickpeterse> but yeah, it would require something like a `create_node` method
<whitequark> yorickpeterse: it's `s`.
<yorickpeterse> instead of all the classes being hardcoded in each node type callback
<yorickpeterse> whitequark: oh, that global s() method?
<yorickpeterse> hmpf
<whitequark> yorickpeterse: who said global? I moved it to a mixin
<yorickpeterse> Oh nice
<whitequark> in Furnace
<whitequark> also I'm going to split Furnace to several gems, furnace and furnace-ast for now
<yorickpeterse> Yes, but didn't RP have one as well? Or did you remove it?
<whitequark> yorickpeterse: I will, together with moving it to the Furnace Sexps
<yorickpeterse> sweet
vlad_starkov has quit [Ping timeout: 264 seconds]
Haibin has quit [Quit: leaving]
chendo has quit [Quit: Computer has gone to sleep.]
Haibin has joined #ruby-lang
<Ridders24> hows the best way to create a user input for somthing like " time + message + ID + source" each of those representing data to be output in that order?
emocakes has quit [Quit: emocakes]
<yorickpeterse> whitequark: to give you an example, I have stuff like this in my nodes: https://github.com/YorickPeterse/ruby-lint/blob/develop/lib/ruby-lint/node.rb#L85
rwk1 has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
<whitequark> yorickpeterse: the #name is ewww
mrfelix has joined #ruby-lang
kvs has quit [Ping timeout: 246 seconds]
<yorickpeterse> yeah it's a bit of a hit and miss
<yorickpeterse> same goes with #value
kvs has joined #ruby-lang
<whitequark> actually most of that file is
<yorickpeterse> I used to have this code in other places but that was a PITA to work with
<whitequark> also, `or'? seriously? in a linter which is supposed to have good code?
<yorickpeterse> `or`?
mrfelix has quit [Client Quit]
<yorickpeterse> using || there makes no difference
<yorickpeterse> The whole thing needs a cleanup though
<whitequark> yorickpeterse: there, yes.
mrfelix has joined #ruby-lang
<whitequark> but if you decide to slap `and` at the end, it suddenly becomes dangerously invalid
<whitequark> (because or and and have the same priority.
<whitequark> oooooh
<yorickpeterse> Correct, I do use && and || in other places where it does actually matter
<yorickpeterse> I just generally prefer and/or for readability
rwk1 has quit [Ping timeout: 260 seconds]
<whitequark> yorickpeterse: (readability) correctness > speed. correctness > readability. (let's put aside I do not consider `and` any more readable.)
<whitequark> so
<whitequark> I just thought of a reason one could want a SAX-style parser, or maybe even something lower-level
<whitequark> with the DOM-style parser, you cannot distinguish between `||' and `or'
Ridders24 has quit [Quit: Leaving]
<whitequark> yes, your idea is definitely a keeper. I'll make it possible to override AST generation.
<yorickpeterse> eh, how not?
kvs has quit [Ping timeout: 246 seconds]
<yorickpeterse> Isn't that a matter of assigning different lexer/parser names for the token?
<whitequark> yorickpeterse: no, it isn't
<whitequark> AST is called "abstract" for a reason
<whitequark> it represents semantics of the code, not particular source code forms
<yorickpeterse> But how would using a SAX parser solve that?
<whitequark> all the "", %{}, and even <<-END are squashed into s(:string), too.
<whitequark> yorickpeterse: I should've called it "SAX"
<whitequark> because it gets called with a particular token, which you can then analyze and decide to emit a different node
<yorickpeterse> ah right
<whitequark> see, this is twofold
<whitequark> first there's kAND and tANDOP
<whitequark> different token names
<whitequark> but there is also stuff like heredocs. do you want to detect in your linter if someone, for example, accidentally put #{} in '' ?
<whitequark> so you would want to snoop at the tSTRING_BEG and look at the particular opening token
kvs has joined #ruby-lang
burgestrand has joined #ruby-lang
Haibin has quit [Quit: leaving]
mixandgo has joined #ruby-lang
fosky has quit [Remote host closed the connection]
mixandgo_ has joined #ruby-lang
gnufied1 has joined #ruby-lang
mixandgo has quit [Ping timeout: 264 seconds]
mixandgo_ is now known as mixandgo
skade has joined #ruby-lang
sepp2k has joined #ruby-lang
gnufied has quit [Ping timeout: 255 seconds]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
JohnBat26 has quit [Read error: Connection reset by peer]
vlad_sta_ has quit [Ping timeout: 246 seconds]
mrfelix has quit [Quit: Computer has gone to sleep.]
mrfelix has joined #ruby-lang
<lewis1711> yorickpeterse: are you the fellow behind the aspell bindings?
mrfelix has quit [Client Quit]
<yorickpeterse> The FFI one?
<yorickpeterse> If so, yes.
<yorickpeterse> I didn't write the C binding though
holgerno has joined #ruby-lang
tcopp has joined #ruby-lang
Nisstyre-laptop has quit [Ping timeout: 264 seconds]
xxaM has joined #ruby-lang
soknee has quit [Quit: Leaving.]
<yorickpeterse> lewis1711: how so?
vlad_starkov has joined #ruby-lang
soknee has joined #ruby-lang
soknee has quit [Client Quit]
<lewis1711> I had need of such a lib, and thought the name on the github was familiar.
<lewis1711> just curious
<yorickpeterse> Ah, I hope it's useful
MaddinXx has joined #ruby-lang
fallenhitokiri has joined #ruby-lang
ykk has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 258 seconds]
vlad_starkov has joined #ruby-lang
voker57 has quit [Ping timeout: 260 seconds]
kvs has quit [Ping timeout: 246 seconds]
kvs has joined #ruby-lang
ykk has quit [Ping timeout: 255 seconds]
gnufied1 has quit [Quit: Leaving.]
tcopp has quit [Ping timeout: 255 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
postmodern has quit [Quit: Leaving]
dhruvasagar has joined #ruby-lang
zmack has quit [Remote host closed the connection]
kvs has quit [Ping timeout: 246 seconds]
thone has joined #ruby-lang
thone_ has quit [Ping timeout: 258 seconds]
Domon has quit [Remote host closed the connection]
Domon has joined #ruby-lang
gnufied has joined #ruby-lang
Domon has quit [Ping timeout: 255 seconds]
kvs has joined #ruby-lang
baba has joined #ruby-lang
fire has quit [Ping timeout: 264 seconds]
tomzx_mac has joined #ruby-lang
kvs has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
GarethAdams has joined #ruby-lang
dhruvasagar has joined #ruby-lang
mytrile has joined #ruby-lang
GarethAdams has quit [Quit: Linkinus - http://linkinus.com]
wallclockbuilder has quit [Remote host closed the connection]
wallclockbuilder has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 246 seconds]
ykk has joined #ruby-lang
Wildhoney has joined #ruby-lang
setmeaway has joined #ruby-lang
wallclockbuilder has quit [Remote host closed the connection]
JohnBat26 has joined #ruby-lang
kgrz has joined #ruby-lang
devoper has joined #ruby-lang
Wardrop has quit [Quit: Wardrop]
kvs has joined #ruby-lang
dkannan has quit [Quit: dkannan]
soknee has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 240 seconds]
glebm has joined #ruby-lang
dhruvasagar has joined #ruby-lang
holgerno has quit [Read error: Connection reset by peer]
runeb has joined #ruby-lang
Averna has quit [Quit: Leaving.]
stevechiagozie has joined #ruby-lang
<zzak> good morning!
jMCg has quit [Ping timeout: 255 seconds]
vlad_sta_ has quit [Ping timeout: 264 seconds]
kvs has quit [Ping timeout: 246 seconds]
sailias has joined #ruby-lang
vlad_starkov has joined #ruby-lang
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
tomzx_mac has quit [Read error: Operation timed out]
jxpx777 has quit [Quit: Leaving...]
breakingthings has joined #ruby-lang
stevechiagozie has quit [Quit: Computer has gone to sleep.]
stevechiagozie has joined #ruby-lang
stevechiagozie has quit [Client Quit]
gnufied has quit [Quit: Leaving.]
<charliesome> zzak: morning
<whitequark> >> 1
jxpx777 has joined #ruby-lang
<whitequark> charliesome: why can't you put the bot on whitequark.org?
<whitequark> we do miss it
<charliesome> whitequark: it's non trivial to get running
<charliesome> the evaluator bit requires a 32 bit 2.6 kernel
<whitequark> $ uname -a
<whitequark> Linux fehu 3.7.10-linode49 #2 SMP Wed Feb 27 14:15:25 EST 2013 i686 GNU/Linux
<charliesome> >2.6
<whitequark> 32-bit but 3.7.x
<whitequark> why do you need 2.6.x? that sounds like a wtf
<charliesome> i use a ptrace sandbox that does a lot of stuff that is very kernel version dependent
<charliesome> i've tried it on recent stuff and it doesn't work
<charliesome> anyway i'm still having networking lols
gnufied has joined #ruby-lang
<whitequark> charliesome: I can get a machine on 2.6.x if that'll help you
gnufied has quit [Client Quit]
<charliesome> it'll be back soon i promise
<whitequark> sigh. ok...
<charliesome> sorry :(
<charliesome> this pains me as much as you
<charliesome> i miss having a working server
marcostoledo has joined #ruby-lang
<zzak> charliesome: :D
marcostoledo has quit [Client Quit]
<charliesome> whitequark: as soon as i get permission from the owner of another vm on the same host to reboot it, i'll compare pcap dumps to see why my server's networking is so flakey
chrismar035 has joined #ruby-lang
runeb has quit [Remote host closed the connection]
rockpapergoat has joined #ruby-lang
<yorickpeterse> charliesome: what the fuck, why?
<yorickpeterse> oh right
mytrile has quit [Remote host closed the connection]
<charliesome> yorickpeterse: hm?
<whitequark> charliesome: so you own a physical host with multiple vms on it, of which not all are owned by you?
yfeldblum has quit [Ping timeout: 248 seconds]
<charliesome> whitequark: correct
<charliesome> i pay half, the other guy pays the other half
davejlong has joined #ruby-lang
rolfb has joined #ruby-lang
r0bgleeson has joined #ruby-lang
jMCg has joined #ruby-lang
chendo has joined #ruby-lang
wminor has joined #ruby-lang
holgerno has joined #ruby-lang
holgerno has quit [Changing host]
holgerno has joined #ruby-lang
Gaelan has joined #ruby-lang
stevechiagozie has joined #ruby-lang
<yorickpeterse> haha, I just wrote some ugly code
<yorickpeterse> given a list of CSS selectors, get rid of the matching lines in another file
* yorickpeterse sits in a corner
kvs has joined #ruby-lang
DT|Vinni has joined #ruby-lang
DT|Vinni has left #ruby-lang [#ruby-lang]
<yorickpeterse> fffff, of course it fucks up the CSS
<yorickpeterse> damn it
rockpapergoat has quit [Remote host closed the connection]
davejlong has quit [Quit: Leaving.]
davejlong has joined #ruby-lang
davejlong has quit [Client Quit]
Gaelan has quit [Remote host closed the connection]
nertzy2 has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby-lang
chendo has quit [Ping timeout: 255 seconds]
Gaelan has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
runeb has joined #ruby-lang
kgrz has quit [Ping timeout: 256 seconds]
runeb has quit [Read error: Connection reset by peer]
Gaelan has quit [Ping timeout: 258 seconds]
noop has quit [Quit: Leaving]
kgrz has joined #ruby-lang
Rhy0lite has joined #ruby-lang
<Rhy0lite> What is the relationship among the various CI websites for Ruby? rubyci.org, ci.rubyinstaller.org, etc.?
outoftime has joined #ruby-lang
idkazuma has joined #ruby-lang
<Rhy0lite> Anyone who can provide information about Ruby CI systems and builtbots?
stef_204 has joined #ruby-lang
amerine has quit [Ping timeout: 256 seconds]
rockpapergoat has joined #ruby-lang
retro|cz has joined #ruby-lang
<charliesome> whitequark: tentatively saying my network issues are resolved
<whitequark> charliesome: awesome
<ykk> hey can someone please explain why ruby returns 3 for 10/3
<breakingthings> because integers
<charliesome> ykk: integer divided by integer returns an integer answer
<breakingthings> 10/3.to_f
rippa has joined #ruby-lang
<breakingthings> for a float answer
<apeiros_> 10.fdiv(3)
<breakingthings> or that
<ykk> hmm
<charliesome> ykk: there are good arguments for whether ruby should or shouldn't have this behaviour, but this is the way it is in ruby
<ykk> ok so i'm doing an excersise that will print if a number is divisible by 2, 3 or 5
<apeiros_> modulo
dhruvasagar has quit [Ping timeout: 258 seconds]
<breakingthings> puts "#{number} is divisible by 2" if number % 2 == 0
<ykk> oh it's the % operator
<apeiros_> yes, % is modulo
<ykk> oh
<ykk> modulo, ok got it. i'll read up on it now
<ykk> thank you
<apeiros_> also number.modulo(2)
<ykk> 1.+(2)
<apeiros_> it returns the remainder of an integer division
<ykk> it's a method got it
<apeiros_> well, actually even of a float division
<tsion> What do you guys (the regulars) think of having a Ruby eval bot in here? So we could do live demonstrations of little code examples like above.
<apeiros_> the regulars think we wait for charliesome fix his eval-in :)
<charliesome> apeiros_: almost!
Ridders24 has joined #ruby-lang
<charliesome> so as it turns out
<charliesome> with hetzner, you get what you pay for in terms of servers that actually work properly
<charliesome> my networking issues seem to have been resolved by lots of rebooting and requesting new mac addresses from them
<Ridders24> how would I go about reading user input with multiple values, that each value does somthing for example: name + date + message - ID for example, each would output a result?
Rhy0lite has left #ruby-lang ["Leaving"]
<apeiros_> charliesome: hetzner? the german one?
<charliesome> apeiros_: yeah
<charliesome> thems be the one
<apeiros_> interesting - but you aren't german, or are you? o0
<whitequark> charliesome: they're kinda well known for that
<charliesome> apeiros_: nope
<charliesome> whitequark: YES BUT CHEAP HARDWARE ;)
<whitequark> apeiros_: hetzner usage is widespread in russia either
<apeiros_> didn't know they were that big
<charliesome> also it seems i accidentally blew away my iptables rules that let the eval slave talk to the web app while fucking with networking
<ykk> tsion: that sounds like a smart project, but would you have the bot setup for visitors of the channel to be able to use the triggers?
kvs has quit [Ping timeout: 246 seconds]
<ykk> that can get annoying =\
<tsion> It's my friend's bot, actually. Currently it would let anyone use it.
<ykk> unless it gave the answers in private message
<breakingthings> we already have a bot for that. It's just broken right now.
<breakingthings> which is what apeiros was saying.
kvs has joined #ruby-lang
io_syl has joined #ruby-lang
d3vic3 has joined #ruby-lang
holgerno has quit [Quit: Linkinus - http://linkinus.com]
kvs has quit [Ping timeout: 246 seconds]
d3vic3 has quit [Client Quit]
chendo has joined #ruby-lang
Gaelan has joined #ruby-lang
Gaelan has quit [Remote host closed the connection]
chendo has quit [Client Quit]
kvs has joined #ruby-lang
MaddinXx_ has joined #ruby-lang
tdy_ has quit [Ping timeout: 258 seconds]
robbyoconnor has quit [Ping timeout: 264 seconds]
eval-in has joined #ruby-lang
adam12_ has quit [Ping timeout: 240 seconds]
<charliesome> >> "krauqetihw _soriepa".reverse
<eval-in> charliesome => "apeiros_ whitequark" (http://eval.in/13830)
tylersmith has joined #ruby-lang
willdrew has joined #ruby-lang
<yorickpeterse> >> "yay"
<eval-in> yorickpeterse => "yay" (http://eval.in/13831)
ndch has joined #ruby-lang
ykk has quit [Remote host closed the connection]
<lianj> >> :yay
<eval-in> lianj => :yay (http://eval.in/13832)
dhruvasagar has joined #ruby-lang
<lewis1711> what's with the URLs?
<yorickpeterse> it allows you to view the paste on the website?
<charliesome> >> Random.new(1798999).bytes(3)
<eval-in> charliesome => "yay" (http://eval.in/13833)
havenwood has joined #ruby-lang
adam12 has joined #ruby-lang
bzalasky has joined #ruby-lang
<yorickpeterse> >> "charlie sucks at devops" # :>
<eval-in> yorickpeterse => "charlie sucks at devops" (http://eval.in/13834)
ykk has joined #ruby-lang
<yorickpeterse> ok that's enough for now
<charliesome> >> !()
kgrz has quit [Read error: Connection reset by peer]
<eval-in> charliesome => true (http://eval.in/13836)
willdrew has quit [Remote host closed the connection]
idkazuma has quit [Remote host closed the connection]
<whitequark> 19>> !()
<eval-in> whitequark => true (http://eval.in/13841)
<charliesome> the trick is that () == nil
<whitequark> charliesome: I know that :3
<whitequark> also I know this...
<whitequark> >> m () {}
<eval-in> whitequark => /tmp/execpad-7c5d497b1d92/source-7c5d497b1d92:2:in `<main>': undefined method `m' for main:Object (NoMethodError) (http://eval.in/13842)
<whitequark> 19>> m () {}
<eval-in> whitequark => /tmp/execpad-566ed003541d/source-566ed003541d:2: syntax error, unexpected ')' ... (http://eval.in/13843)
<charliesome> lolz nice
emocakes has joined #ruby-lang
thinkdevcode has joined #ruby-lang
<charliesome> also i know this
<whitequark> charliesome: hehe
<whitequark> too much parse.y hacking
<charliesome> aww the hax i knew doesn't work on the version of 1.9.3 eval.in has
<charliesome> wait it does i typo'd
rolfb has quit [Quit: Leaving...]
ndch has quit [Remote host closed the connection]
wallclockbuilder has joined #ruby-lang
<charliesome> ok this is what i know
<charliesome> >> Module.instance_method(:initialize_copy).bind(Numeric).call(Class.new(String)); Fixnum.ancestors
<eval-in> charliesome => /tmp/execpad-b3695fae5118/source-b3695fae5118:2:in `initialize_copy': already initialized class (TypeError) ... (http://eval.in/13847)
<charliesome> fuck what
mrfelix has joined #ruby-lang
<charliesome> oh
<charliesome> 19>> Module.instance_method(:initialize_copy).bind(Numeric).call(Class.new(String)); Fixnum.ancestors
<eval-in> charliesome => [Fixnum, Integer, Numeric, String, Comparable, Object, Kernel, BasicObject] (http://eval.in/13852)
<charliesome> whitequark ^
emocakes has quit [Quit: emocakes]
Ridders24 has quit [Ping timeout: 246 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Ridders24 has joined #ruby-lang
sush24 has joined #ruby-lang
wyhaines has joined #ruby-lang
tdy_ has joined #ruby-lang
<whitequark> charliesome: wat...
<charliesome> whitequark: initialize_copy exists so dup worksa
<charliesome> whitequark: the sanity checks are in Class#initialize_copy, the actual superclass copying and other fun stuff are in Module#initialize_copy
<whitequark> neat
brianpWins has joined #ruby-lang
ben has joined #ruby-lang
wmoxam has joined #ruby-lang
<charliesome> anyway, night!
<whitequark> night
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<ben> What do I read if I have a passable idea of how to write things in ruby, but want to learn about ruby/stdlib semantics in detail? Some sort of anti-tutorial? Any recommendations?
<whitequark> ben: http://ruby.runpaint.org/
<whitequark> it says "very early draft" but it's actually quite complete.
<ben> Thank you!
havenwood has quit [Remote host closed the connection]
tylersmith has quit [Quit: tylersmith]
bin7me has joined #ruby-lang
Gaelan has joined #ruby-lang
srbaker has joined #ruby-lang
solars has quit [Ping timeout: 240 seconds]
bin7me has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
bin7me has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 256 seconds]
bzalasky has quit [Remote host closed the connection]
Gaelan has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Ping timeout: 258 seconds]
ykk has quit [Remote host closed the connection]
soahccc has joined #ruby-lang
nertzy has joined #ruby-lang
havenwood has joined #ruby-lang
ezkl has quit [Quit: Textual IRC Client: www.textualapp.com]
anonymuse has joined #ruby-lang
kgrz has joined #ruby-lang
<zzak> corundum: botsnack
<corundum> zzak: ta :)
bin7me has quit [Quit: Verlassend]
bin7me has joined #ruby-lang
<whitequark> corundum: botsnack
<corundum> whitequark: cheers
<whitequark> what does it do?
<zzak> feeds the bot for being good
robbyoconnor has joined #ruby-lang
Ridders24 has quit [Quit: Leaving]
<zzak> bots have to eat too
skade has joined #ruby-lang
Yu\2 has joined #ruby-lang
<whitequark> zzak: no, the bot overall
tonni has quit [Read error: Connection reset by peer]
tonni has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
<zzak> corundum: help
<corundum> help topics: core, auth [10 plugins: autorejoin, gem, karmastats|karma, keyword|forget|tell, lh|lighthouse, nickserv, opme, remind, ri|msgri, seen] (help <topic> for more info)
bin7me has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<whitequark> corundum: opme
<corundum> insufficient "opme" auth (have 10, need 40)
<whitequark> corundum: karmastats
<corundum> 387 items. Best: C (1303); Worst: < (-336)
<whitequark> wat
<zzak> corundum: core
<zzak> corundum: help core
<corundum> Core help topics: quit, restart, config, join, part, hide, save, rescan, nick, say, action, topic, quiet, talk, version, botsnack, hello
rockpapergoat has quit [Remote host closed the connection]
<zzak> corundum: talk
<corundum> aight
<zzak> corundum: book?
<corundum> book is see pickaxe
<whitequark> corundum: help botsnack
<corundum> no help for topic botsnack
<whitequark> corundum: version
<corundum> I'm a v. 0.9.10 rubybot, (c) Tom Gilbert - http://linuxbrit.co.uk/rbot/
<zzak> corundum: whats ri?
<corundum> no idea
mrfelix has quit [Quit: Computer has gone to sleep.]
bin7me has joined #ruby-lang
jxpx777 has quit [Quit: Leaving...]
wmoxam has quit [Ping timeout: 264 seconds]
alessio_rocco has quit [Remote host closed the connection]
havenwood has quit [Read error: Connection reset by peer]
tomzx_mac has joined #ruby-lang
havenwood has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
rwk1 has joined #ruby-lang
ykk has joined #ruby-lang
robbyoconnor has quit [Remote host closed the connection]
runeb has joined #ruby-lang
tylersmith has joined #ruby-lang
quazimodo has quit [Ping timeout: 240 seconds]
rippa has joined #ruby-lang
rippa has quit [Client Quit]
rippa has joined #ruby-lang
__butch__ has joined #ruby-lang
notwen_ has quit [Changing host]
notwen_ has joined #ruby-lang
notwen_ is now known as notwen
mrfelix has joined #ruby-lang
quazimodo has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
rippa has joined #ruby-lang
rippa has quit [Client Quit]
srbaker has quit [Quit: Computer has gone to sleep.]
devoper has quit [Ping timeout: 260 seconds]
beiter has joined #ruby-lang
bin7me has quit [Quit: Verlassend]
wallcloc_ has joined #ruby-lang
djwonk has quit []
wallclockbuilder has quit [Ping timeout: 260 seconds]
rippa has joined #ruby-lang
chrismar035 has quit [Ping timeout: 264 seconds]
chrismar035 has joined #ruby-lang
mrfelix has quit [Quit: Computer has gone to sleep.]
pr0ton has joined #ruby-lang
mrsolo has joined #ruby-lang
djwonk has joined #ruby-lang
mistym has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
jxpx777 has joined #ruby-lang
pr0ton has joined #ruby-lang
runeb has quit [Ping timeout: 255 seconds]
runeb has joined #ruby-lang
pr0ton has quit [Client Quit]
willdrew has joined #ruby-lang
pr0ton has joined #ruby-lang
beiter has quit [Ping timeout: 256 seconds]
rockpapergoat has joined #ruby-lang
hramrach has quit [Ping timeout: 276 seconds]
hramrach has joined #ruby-lang
thebastl has quit [Remote host closed the connection]
Asher has quit [Read error: Connection reset by peer]
ykk has quit [Remote host closed the connection]
breakingthings has quit []
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
Mon_Ouie has quit [Ping timeout: 260 seconds]
pr0ton has quit [Quit: pr0ton]
ryanf has joined #ruby-lang
wallcloc_ has quit [Remote host closed the connection]
adambeynon has joined #ruby-lang
<yorickpeterse> this channel needs more bots
<yorickpeterse> also, what the fuck does the bot actually do that is useful for this channel?
djwonk has quit []
retro|cz has quit [Ping timeout: 258 seconds]
mrfelix has joined #ruby-lang
<havenwood> Kill. The. Bot.
maxmanders has quit [Quit: Computer has gone to sleep.]
rwk1 has quit [Remote host closed the connection]
djwonk has joined #ruby-lang
pr0ton has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
<zzak> corundum has been here for ages
<zzak> corundum: seen corundum
<corundum> corundum was last seen 764 days, 19 hours, 37 minutes and 6 seconds ago, quitting IRC (*.net *.split)
skade has joined #ruby-lang
<havenwood> corundum: search rails
ParkQ has joined #ruby-lang
ykk has joined #ruby-lang
willdrew_ has joined #ruby-lang
brianpWins has joined #ruby-lang
JohnBat26 has joined #ruby-lang
mrfelix has quit [Quit: Computer has gone to sleep.]
willdrew has quit [Ping timeout: 245 seconds]
alessio_rocco has joined #ruby-lang
ykk has quit [Ping timeout: 252 seconds]
JohnBat26 has quit [Client Quit]
gabito has joined #ruby-lang
thinkdevcode has quit [Remote host closed the connection]
runeb has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
Axsuul has joined #ruby-lang
breakingthings has joined #ruby-lang
ryanf has quit [Quit: leaving]
glebm has quit [Quit: Computer has gone to sleep.]
ryanf has joined #ruby-lang
rwk1 has quit [Ping timeout: 245 seconds]
gabito has quit [Remote host closed the connection]
rockpapergoat has quit [Remote host closed the connection]
glebm has joined #ruby-lang
intellitech has quit [Quit: intellitech]
kgrz has quit [Read error: Connection reset by peer]
remi has quit [Quit: leaving]
ParkQ has quit [Remote host closed the connection]
willdrew_ has quit [Ping timeout: 240 seconds]
r0bgleeson has quit [Quit: WeeChat 0.3.8]
r0bgleeson has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
spuk has joined #ruby-lang
ritek has quit [Ping timeout: 260 seconds]
Ridders24 has joined #ruby-lang
<Ridders24> how would I out the data for "user"=>{"id" from the twitter api? as the other data can be called just by for example "text", but the user info seems to sit behind that "user"=> attribute. Any ideas?
Mon_Ouie has joined #ruby-lang
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<rippa> Ridders24: user.id ?
<rippa> data["user"]["id"] ?
rwk1 has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
pr0ton has quit [Ping timeout: 245 seconds]
prochlo has joined #ruby-lang
rwk1 has quit [Ping timeout: 257 seconds]
Nisstyre-laptop has joined #ruby-lang
ritek has joined #ruby-lang
hramrach has quit [Remote host closed the connection]
srbaker has joined #ruby-lang
hramrach has joined #ruby-lang
sepp2k has quit [Quit: Leaving.]
Asher has joined #ruby-lang
kith has quit [Read error: Connection reset by peer]
sush24 has quit [Quit: This computer has gone to sleep]
ndch has joined #ruby-lang
sush24 has joined #ruby-lang
amerine has joined #ruby-lang
skade has joined #ruby-lang
kith has joined #ruby-lang
<r0bgleeson> Ridders24: what rippa said.
pr0ton has joined #ruby-lang
symm- has joined #ruby-lang
baba has quit [Ping timeout: 246 seconds]
<rue> 2/5 rubyists agree
ruby-lang945 has joined #ruby-lang
runeb has joined #ruby-lang
alessio_1occo has joined #ruby-lang
<yorickpeterse> so you mean 0? :>
<whitequark> :D
alessio_rocco has quit [Ping timeout: 260 seconds]
tonni_ has joined #ruby-lang
reactormonk has quit [Ping timeout: 264 seconds]
tonni has quit [Ping timeout: 256 seconds]
chrismar035 has quit [Quit: chrismar035]
sepp2k has joined #ruby-lang
runeb has quit [Read error: Connection reset by peer]
baba has joined #ruby-lang
mwjcomputing has joined #ruby-lang
ruby-lang945 has quit [Ping timeout: 245 seconds]
jmeeuwen has quit [Ping timeout: 264 seconds]
mytrile has joined #ruby-lang
thebastl has joined #ruby-lang
swav has quit [Remote host closed the connection]
jmeeuwen has joined #ruby-lang
rockpapergoat has joined #ruby-lang
stevechiagozie has quit [Quit: Computer has gone to sleep.]
ParkQ has joined #ruby-lang
ykk has joined #ruby-lang
ndch has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
mrsolo has quit [Quit: This computer has gone to sleep]
burgestrand has quit [Quit: Leaving.]
mrsolo has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
brianpWins has quit [Quit: brianpWins]
rwk1 has quit [Ping timeout: 252 seconds]
alessio_1occo has quit [Quit: Lost terminal]
ParkQ has quit [Ping timeout: 255 seconds]
ros3bud has joined #ruby-lang
dingus_khan has joined #ruby-lang
<yorickpeterse> whitequark: from a parsing perspective, what defines a class method call?
<yorickpeterse> inb4 "a method called on a constant", that would be wrong
<yorickpeterse> Right now my code assumes that a method call with a receiver is a class method call, which is obviously wrong
<whitequark> yorickpeterse: nothing
<yorickpeterse> hm
<whitequark> a class method call is not different from an ordinary method call.
<yorickpeterse> god damn it, that means I have to differentiate between definition "classes" and instances
<whitequark> it is not possible to distinguish these without some form of partial evaluation
<whitequark> of course.
<yorickpeterse> What would be a good name for an attribute containing a value to differentiate between the two? "instance_type" would be one, but I have my doubts
<yorickpeterse> (where instance_type would either be :class or :instance)
<whitequark> obj.is_a?(LinterClass)
<yorickpeterse> Won't really work since the definitions (basically ruby-lint's objects) are already instances
<whitequark> meh I've no idea how your linter works
<yorickpeterse> it's magic
<whitequark> unicorns?
<yorickpeterse> on crack
<whitequark> is friendship involved?
<yorickpeterse> fuck no
<yorickpeterse> I'm no brony
<whitequark> my boss suggested to call the parser gem "friendship"
Mon_Ouie has quit [Quit: WeeChat 0.4.0]
<yorickpeterse> tl;dr: I use definition lists/lookup tables (whatever you'd like to call them) for storing information about objects and such (e.g. RubyLint::Definition::RubyObject.new(:type => :constant, :name => 'String'))
<whitequark> there's some subtle irony in that :D
<whitequark> wat
<whitequark> a constant is not an object
<yorickpeterse> I could probably return a new definition that inherits (safe copying data around) and sets an attribute
sush24 has quit [Quit: This computer has gone to sleep]
<yorickpeterse> * safes
stevechiagozie has joined #ruby-lang
<yorickpeterse> The object system of the linter is something I need to take another look at some time in the future. So far it has served me well but it is a bit confusing at times
<yorickpeterse> Mostly due to naming
rippa has quit [Ping timeout: 240 seconds]
<whitequark> ok
<yorickpeterse> whitequark: if you want a good Friday "duuuuuddeee wtff", take a look at this:
chrismar035 has joined #ruby-lang
rippa has joined #ruby-lang
dillyjay has joined #ruby-lang
<yorickpeterse> hm, some of the docs are also broken
<dillyjay> new to ruby, and having some issues with dependency mgmt. i'm using bundler to manage deps. my project includes chef 11.4 and vagrant 1.1. i want to include the test-kitchen gem. the current test-kitchen on rubygems.org is v0.7.0, and has a dependency on the (now-deprecated) vagrant gem. so calling bundle installs the vagrant gem and breaks vagrant
<whitequark> yorickpeterse: it isn't wtf
<dillyjay> my current approach is to set :git => 'test-kitchen-repo' in the gemfile
<yorickpeterse> whitequark: oh?
<yorickpeterse> well, that's a first
<drbrain> dillyjay: you'll need to file a bug against test-kitchen
<injekt> evenin'
<whitequark> yorickpeterse: but I think that you're wrong in conflating path-based lookup with identity-based lookup
ReinH_ is now known as ReinH
<dillyjay> drbrain: v1.0 fixes it, so i doubt they'll do anything about it, as vagrant 1.1 is relatively new
kain has quit [Quit: exit]
<yorickpeterse> whitequark: oh?
kain has joined #ruby-lang
cirenyc has joined #ruby-lang
<whitequark> or maybe not
<whitequark> I'm tired
<yorickpeterse> heh
<whitequark> nevermind that
<dillyjay> the `:git` thing prevents the vagrant gem from being installed, but it doesn't "feel" right. i'm concerned about updating that file all the time, and if there could be conflicts that `bundle` usually handles which will be overlooked bc of the :git directive
sush24 has joined #ruby-lang
<whitequark> still not really wtf.
<dillyjay> is there an established best practice for this sort of thing, or does anyone have a better idea?
<yorickpeterse> gah, I need to clear my head before I write some gross hack for this. bbl
rwk1 has joined #ruby-lang
sepp2k has quit [Quit: Leaving.]
sepp2k has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
rwk1 has quit [Ping timeout: 255 seconds]
MaddinXx_ has quit [Remote host closed the connection]
rockpapergoat has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
dingus_khan has quit [Quit: Leaving]
rippa has quit [Ping timeout: 240 seconds]
glebm has quit [Ping timeout: 252 seconds]
tyler has left #ruby-lang [#ruby-lang]
pr0ton has quit [Ping timeout: 245 seconds]
glebm has joined #ruby-lang
pr0ton has joined #ruby-lang
dillyjay has quit [Quit: dillyjay]
cirenyc has quit [Quit: Linkinus - http://linkinus.com]
justinmcp has quit [Quit: No Ping reply in 180 seconds.]
justinmcp has joined #ruby-lang
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
pkrnj has joined #ruby-lang
soypirate has quit [Quit: Leaving]
jmeeuwen has joined #ruby-lang
gynna has joined #ruby-lang
gynna has quit [Client Quit]
jmeeuwen has quit [Ping timeout: 252 seconds]
Rhyolite has joined #ruby-lang
<Rhyolite> Can anyone provide some information about the Ruby CI testers?
dhruvasagar has quit [Ping timeout: 245 seconds]
jmeeuwen has joined #ruby-lang
mistym has quit [Remote host closed the connection]
postmodern has joined #ruby-lang
Rhyolite has left #ruby-lang ["Leaving"]
outoftime has quit [Quit: Leaving]
dhruvasagar has joined #ruby-lang
flexd has quit [Ping timeout: 245 seconds]
<Paradox> wat
gspederson has joined #ruby-lang
<gspederson> Hi all, I'm wondering if anyone has any ideas I can solicit? I've been asked for me to create a csv file that shows double quotes around some string values, but the problem is that I seem to only be able to get values with no quotes, single quotes or three outer quotes.
<gspederson> I've tried:
<gspederson> "'test'" and get: irb: "'test'", TextEdit: 'test' - Single Quotes
<gspederson> "\"test\"" and get: irb: ""test"", TextEdit: """test""" = Triple Quotes
<gspederson> "test" and get the following values irb: "test", TextEdit: test - No Quotes
<gspederson> %["test"] and get: irb: ""test"", TextEdit: """test""" = Triple Quotes
<gspederson> The only way double quotes are displayed in TextEdit is with and empty string.
<r0bgleeson> gspederson: IRB calls inspect on the object, so "\"foo\"" is right...
solars has joined #ruby-lang
<r0bgleeson> the string itself is actually "foo"
intellitech has joined #ruby-lang
<apeiros_> note @ triple quotes, """foo""" is actually "" "foo" ""
<apeiros_> i.e., empty string, followed by the string "foo", followed by empty string
<apeiros_> and ruby concatenates subsequent dquoted strings
<apeiros_> >> x = "foo" "bar" "baz"; x
<eval-in> apeiros_ => "foobarbaz" (http://eval.in/13891)
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
<r0bgleeson> hm, I like the >> syntax.
<apeiros_> in other words, you don't really have triple quoted strings.
<gspederson> thanks r0bgleeson and apeiros
<apeiros_> with regards to quoting, I like %{} for strings which contain single and/or double quotes
<gspederson> apeiros the triple quoted version is what is in the csv file that is generated when viewing with textedit
<gspederson> the request given to me is to show something like "value" in the file
yfeldblum has quit [Ping timeout: 246 seconds]
thebastl has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
rwk1 has quit [Ping timeout: 245 seconds]
mixandgo has quit [Quit: mixandgo]
MaddinXx has joined #ruby-lang
agarie has joined #ruby-lang
soknee has quit [Quit: Leaving.]
MaddinXx has quit [Remote host closed the connection]
mixandgo has joined #ruby-lang
breakingthings has quit []
stevechiagozie has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby-lang
Guest91682 has joined #ruby-lang
Guest91682 has joined #ruby-lang
Guest91682 has quit [Changing host]
Guest91682 is now known as Boohbah
mwjcomputing has quit [Ping timeout: 255 seconds]
rwk1 has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
rwk1 has quit [Ping timeout: 260 seconds]
<Ridders24> rippa: i've tried that and it does not work
<Ridders24> if I do just "user" i get all the user info, such as location, ID, followers, following, etc but all in one entry
gspederson has left #ruby-lang [#ruby-lang]
<Ridders24> r0bgleeson:if I do just "user" i get all the user info, such as location, ID, followers, following, etc but all in one entry
Wildhoney has quit [Ping timeout: 255 seconds]
arooni-mobile has joined #ruby-lang
idkazuma has joined #ruby-lang
Ridders24 has quit [Ping timeout: 245 seconds]
flexd has joined #ruby-lang
thebastl has joined #ruby-lang
breakingthings has joined #ruby-lang
musl has quit [Remote host closed the connection]
musl has joined #ruby-lang
prochlo has quit [Ping timeout: 245 seconds]
wyhaines has quit [Read error: No route to host]
mytrile has quit [Remote host closed the connection]
solars has quit [Quit: WeeChat 0.3.7]
solars has joined #ruby-lang
KM|3 has quit [Ping timeout: 276 seconds]
rockpapergoat has joined #ruby-lang
musl has quit [Quit: WeeChat 0.4.0]
wyhaines has joined #ruby-lang
rockpapergoat has quit [Remote host closed the connection]
dillyjay has joined #ruby-lang
lsegal has joined #ruby-lang
dillyjay has quit [Client Quit]
pib1902 has joined #ruby-lang
pib1902 has quit [Max SendQ exceeded]
pib1981 has joined #ruby-lang
mixandgo has quit [Quit: mixandgo]
pib1981 has quit [Max SendQ exceeded]
zavier has quit [Quit: WeeChat 0.3.8]
chrismar035 has quit [Quit: chrismar035]
zavier has joined #ruby-lang
pib1951 has joined #ruby-lang
bigwillystyle has joined #ruby-lang
musl has joined #ruby-lang
pkrnj has quit [Quit: Computer has gone to sleep.]
rwk1 has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
tonni_ has quit [Read error: Connection reset by peer]
tonni has joined #ruby-lang
symm- has quit [Read error: Connection reset by peer]
symm- has joined #ruby-lang
rwk1 has quit [Ping timeout: 245 seconds]
anonymuse has quit [Quit: Leaving...]
tbuehlmann has joined #ruby-lang
benanne has joined #ruby-lang
solars has quit [Ping timeout: 246 seconds]
mytrile has joined #ruby-lang
thebastl has quit [Remote host closed the connection]
cored has quit [Ping timeout: 264 seconds]
nazty has quit [Read error: Connection reset by peer]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
mistym has joined #ruby-lang
rwk1 has joined #ruby-lang
banister`sleep has quit [Ping timeout: 255 seconds]
mytrile has quit [Read error: Connection reset by peer]
tbuehlmann has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
Nisstyre-laptop has quit [Quit: Leaving]
Yu\2 has quit [Quit: Leaving]
rwk1 has quit [Ping timeout: 240 seconds]
mrsolo has quit [Quit: Leaving]
fosky has joined #ruby-lang
emocakes has joined #ruby-lang
chendo has joined #ruby-lang