Topic for #ruby-lang is now Ruby 1.9.3p0: http://ruby-lang.org | Paste >3 Lines of Text on http://pastie.org
<zenspider> heh. well maybe rvm fucks rdoc up too :)
<injekt> generate-docs or something
<zenspider> there ya go
<optikalmouse> fuck I wish I could just use apt-get ;p
<injekt> fuck knows, rvm does what it likes with that, I manage it myself because fuck rvm controlling it
<zenspider> makes sense if you're gonna install umpteen impls
<zenspider> but it should generate doco on the first install imo
<injekt> I dunno, ri sure
<optikalmouse> thats fracking weird
<optikalmouse> ;/
<optikalmouse> I tried the docs command in rvm and it says it won't run :|
<injekt> it says 'sorry, i wont run' ?
<injekt> helpful
<optikalmouse> it says it won't run on non-rvm rubies. the ONLY ruby I have was installed via rvm! :|
<injekt> and you're using it by default?
<injekt> ie rvm use 1.9.3 --default
<zenspider> optikalmouse: hop into #rvm... they're responsive and know this shit
<optikalmouse> injekt: but if there's only one ruby installed why isn't it the default -_-' SIGH, that worked thanks ;p
<injekt> :P
<injekt> rvm uses system ruby by default until you tell it not too iirc
<injekt> I dont use rvm anymore so not sure
skiz [skiz!~skiz@c-69-181-211-4.hsd1.ca.comcast.net] has joined #ruby-lang
Heimidal_ [Heimidal_!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
<optikalmouse> it's taking quite a while.
gregf [gregf!~gregf@207.5.168.94] has joined #ruby-lang
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@202.146.7.239] has joined #ruby-lang
corecode [corecode!~2@0x2c.org] has joined #ruby-lang
<WillMarshall> injekt: Solved it! http://pastie.org/3299260
<WillMarshall> In the class method definition on the Module
<injekt> WillMarshall: huh? your code just shows the original method :)
<WillMarshall> injekt: Try http://pastie.org/3299267
<WillMarshall> HealthProduct inherits from Product
<WillMarshall> Product includes Pipes::Pipe
<injekt> ah
<WillMarshall> Pipes::Pipe writes to the inherited(sub) hook, sub is a reference to HealthProduct
<WillMarshall> then I include the appropriate module directly into sub/HealthProduct
<WillMarshall> No longer backwards :)
<WillMarshall> I think I might just be attempting to be a clever dick, however
<injekt> we've all been there
<WillMarshall> I'm refactoring an application from super-clever-dickery to somewhat-clever-dickery
<WillMarshall> So I think it's justified
<WillMarshall> At least the classes aren't being dynamically generated from rows in a DB table anymore >.>
<WillMarshall> Just piced together with macroes and magic
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
slimfit [slimfit!~slimfit@50-76-131-66-static.hfc.comcastbusiness.net] has joined #ruby-lang
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
tomzx [tomzx!~tomzx@ppp-53-5.mtl.contact.net] has joined #ruby-lang
ilyam [ilyam!~ilyam@2620:65:0:281:cda7:2992:9bd9:e3a9] has joined #ruby-lang
<WillMarshall> Hash question! Is there any way I can either have case-insensitive keys, or downcase all my keys easily?
<zenspider> that sounds like a GREAT idea... :/
<injekt> lol
<WillMarshall> Pfft. You people and your "good ideas"
<injekt> he's got a point, it's quite a terrible one
<erikh> eh depending on the use case...
<WillMarshall> Well, I'm trying to represent data from a CSV in a hash, but all the col names are ALLCAPS
<erikh> still won't prevent it from being dog slow
<optikalmouse> you can't hash objects as keys?
<optikalmouse> :|
<injekt> ...
<injekt> optikalmouse: what?
<bougyman> why not?
<injekt> hash objects as keys?
<injekt> bougyman: you understood that?
<erikh> hash keys can be anything
<WillMarshall> But I really want to access the column names either case-insensitively or just downcase them all, so I don't have Ruby code littered with ALLCAPs col references
* injekt must be missing something
<bougyman> injekt: i think so
<bougyman> so did erikh :)
<erikh> anything that implements #hash
<optikalmouse> I'm just reading whatever WillMarshall wrote XD
<injekt> bougyman: he meant hashes as keys?
<injekt> bougyman: like a Hash hash?
<bougyman> who the what?
<erikh> and Object#hash is, IIRC, just a reference to object_id
<injekt> the when?
<WillMarshall> HashWithIndifferentAccess, no less
<optikalmouse> injekt: I meant objects as keys in a hash; myHash[myObject] = whateverMan
<bougyman> like columns.zip(values)
<WillMarshall> {:like => :this}
<injekt> optikalmouse: that's fine
<hagabaka> it's fine to have your code littered with ALLCAPS
<bougyman> injekt: yeah, not he lost me
<bougyman> er now.
<injekt> :D
<injekt> \o/
<erikh> WillMarshall: have you considered lowercasing the column names BEFORE you store them in the hash?
<erikh> it'll be a lot faster
<WillMarshall> \o/ indeed! Incoherent questioning FTW
<WillMarshall> erikh: Yeah, that's the other approach. I suspect it makes more sense
<erikh> considerably.
<injekt> i think you should uppercase them all instead
<injekt> :o
<WillMarshall> ALLCAPS
<WillMarshall> I think I should drink some more coffee
<erikh> that might be a bad idea.
<erikh> :P
<WillMarshall> Bollocks. More drugs is always better than fewer drugs
<injekt> WillMarshall: are you british?
<WillMarshall> injekt: Yesish
<injekt> It shows
<WillMarshall> How's that?
<erikh> injekt: haha like you have any room to talk
<injekt> haha
<injekt> I talk all proper and stuff
<injekt> WillMarshall: 'bollocks' caught me
<erikh> injekt: you talk all proper... you mean like an american?
<injekt> aahaha
<erikh> (see folks, this is the way to ferret out a british man)
<WillMarshall> My BM crew have matching tshirts emblazoned with RANTY SAYS BOLLOCKS
<WillMarshall> It makes more sense in context
<injekt> no proper like anyone who's not american
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
butchanton [butchanton!~butchanto@64.134.221.138] has joined #ruby-lang
MistyM [MistyM!~MistyM@50.72.70.192] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@46.118.230.17] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@subtle/user/kyrylo] has joined #ruby-lang
corecode [corecode!~2@0x2c.org] has joined #ruby-lang
plusk [plusk!~plusk@201-24-167-220.gnace703.dsl.brasiltelecom.net.br] has joined #ruby-lang
magicbeef [magicbeef!~magicbeef@74-95-6-5-SFBA.hfc.comcastbusiness.net] has joined #ruby-lang
neoesque [neoesque!~neoesque@210.59.147.232] has joined #ruby-lang
huxtable [huxtable!~huxtable@108-90-18-133.lightspeed.cicril.sbcglobal.net] has joined #ruby-lang
<shevy> the british will always be famous for monty python
<WillMarshall> Any way I can print out the body of a method on a Class in IRB?
virgo12055 [virgo12055!~virgo1205@adsl-98-64-4-69.mia.bellsouth.net] has joined #ruby-lang
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
<lianj> method_source gem maybe, or use pry which uses that
<virgo12055> hello
<virgo12055> how's everyone? busy nite huh
<virgo12055> wuts da topic of no nite?
<zenspider> pry sounds interesting. I should try it out sometime
<virgo12055> am new here,maybe any one wanna tell me about this chat?
<virgo12055> lik how it works?
<zenspider> you type something interesting... we respond. and vice-versa
<virgo12055> hello? am I alone here?
<virgo12055> awww thats sweet
<virgo12055> kool , interesting like>? dunno wuts interesting to u?
<virgo12055> interesting in wut way?
naz [naz!~n@70.44.2.190.res-cmts.bus.ptd.net] has joined #ruby-lang
<virgo12055> can u specify s lil ?
<virgo12055> are we lik de only ones here?
<virgo12055> at least your nice
<zenspider> virgo12055: this is a channel for the ruby programming language...
<zenspider> so... that's interesting
<virgo12055> ok,, am sorry to ask,but what do u mean by that?
<virgo12055> and how would i get into a reg chat room?
<zenspider> I mean if you're not here to talk about ruby, you should prolly find somewhere else
<virgo12055> doesnt have to b where theres alot of ppl
<zenspider> this entire IRC server, freenode, is dedicated to open-source development... so pretty much every channel will be dedicated to a programming language, or library
<virgo12055> jajajaaaa i dont mean that sillyyy . I meant i dont really know how this works,i am into chat rooms any lontger
<virgo12055> am toooo old for this
<virgo12055> jajaaaaaa
<virgo12055> ohhhhh kool
<virgo12055> so thats out of my league
<virgo12055> thats for smart ppl
<virgo12055> hummm not me definitly,,,, jajajaaa
<virgo12055> but I'll survive. Again,wut is interesting to you? wut do you consider interesting?
<virgo12055> and why am I the only typist here?\
<virgo12055> I guess you would say I talk to much also,right?
<virgo12055> awwww wut a shame in the best part of the conversation. Guess he couldnt handle my geekness
<virgo12055> :p
<virgo12055> why u leave me?
<lianj> type: /part
<virgo12055> huh?
bobbywilson0 [bobbywilson0!~bobbyw@c-67-190-166-159.hsd1.co.comcast.net] has joined #ruby-lang
<virgo12055> I am kinda lost here
<zenspider> we can tell
<virgo12055> gotta see how to dismiss my self from this chat
<erikh> try /part
<zenspider> so again... you're not here to talk about ruby, you should prolly go
<virgo12055> u hurt my feeling,but its ok
<virgo12055> i forgive you
neoesque [neoesque!~neoesque@210.59.147.232] has joined #ruby-lang
virgo12055 [virgo12055!~virgo1205@adsl-98-64-4-69.mia.bellsouth.net] has quit [#ruby-lang]
otertore [otertore!~toretore@crr06-3-82-231-12-81.fbx.proxad.net] has joined #ruby-lang
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
michael_mbp_ [michael_mbp_!~Marin@149.147.215.210] has joined #ruby-lang
michael_mbp [michael_mbp!~Marin@149.147.237.122] has joined #ruby-lang
<zenspider> well that was productive
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
aroop [aroop!~aroop@50.46.157.247] has joined #ruby-lang
newbold [newbold!~adam@2002:4a86:1bda:0:8d9:5069:7174:7ede] has joined #ruby-lang
echoprinter [echoprinter!~j3@unaffiliated/echoprinter] has quit [#ruby-lang]
banister_ [banister_!~baniseter@115.189.37.117] has joined #ruby-lang
fayimora [fayimora!~fayimora@95.175.159.12] has joined #ruby-lang
slimfit [slimfit!~slimfit@c-98-245-122-231.hsd1.co.comcast.net] has joined #ruby-lang
mdel_ [mdel_!~mdel@pool-71-175-17-16.phlapa.fios.verizon.net] has joined #ruby-lang
macmartine [macmartine!~macmartin@c-24-21-112-60.hsd1.or.comcast.net] has joined #ruby-lang
slippyd [slippyd!~slippyd@pool-71-241-153-24.nycmny.fios.verizon.net] has joined #ruby-lang
MistyM [MistyM!~MistyM@50.72.70.192] has joined #ruby-lang
NARKOZ [NARKOZ!~NARKOZ@46.228.177.254] has joined #ruby-lang
maxx- [maxx-!~maxx573@67.207.135.16] has joined #ruby-lang
magicbeef [magicbeef!~magicbeef@74-95-6-5-SFBA.hfc.comcastbusiness.net] has joined #ruby-lang
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
michael_mbp_ [michael_mbp_!~Marin@149.147.222.202] has joined #ruby-lang
heppy_ [heppy_!~heppy@fw.baysidebusinessplaza.com] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@c-98-203-41-91.hsd1.fl.comcast.net] has joined #ruby-lang
datanoise [datanoise!~datanoise@24-145-66-018-dhcp.mia.fl.atlanticbb.net] has joined #ruby-lang
x0F [x0F!~x0F@unaffiliated/x0f] has joined #ruby-lang
<WillMarshall> Is there any way I can get a list of Classes in a Module from that Module?
<banister_> WillMarshall: Yeah
datanoise [datanoise!~datanoise@24-145-66-018-dhcp.mia.fl.atlanticbb.net] has quit [#ruby-lang]
<slyphon> but it's gonna cost ya
<WillMarshall> banister_: What is it?
<banister_> WillMarshall: MyModule.constants.select { |name| MyModule.const_get(name).is_a?(Class) }
<banister_> something like that
<banister_> anyone want to take this for a testdrive? exception_explorer
<Spooner> banister_: Won't compile for me :D
<Spooner> Ah no, worked in 1.9.3, but not in 1.9.2
<banister_> Spooner: what was the error on 1.9.2 ?
<Spooner> 'make' is not recognized as an internal or external command,
<Spooner> Might be an issue with my devkit, but it should be the same one as on 1.9.3
<banister_> hehe, 'make' is pretty fundamental ;)
<banister_> so i guess it's a prob with the devkit
* Spooner tends to agree.
<Spooner> I'm going to bed now, but I would be interested in checking it out.
<banister_> Spooner: oh ok, no problem, thanks anyway :)
fayimora_ [fayimora_!~fayimora@95.175.159.36] has joined #ruby-lang
skiz [skiz!~skiz@c-69-181-211-4.hsd1.ca.comcast.net] has joined #ruby-lang
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
dfr|floridia [dfr|floridia!~dfr|work@ool-18baf7e7.dyn.optonline.net] has joined #ruby-lang
<slyphon> "dynamic constant assignment" ruby's way of telling you "you forgot an 'end' somewhere, dumbass"
<WillMarshall> What is the traditional exception used to notify that a method should be overwriten?
<WillMarshall> For subclassing stuff
<slyphon> NotImplemented
<slyphon> raise NotImplemented, "must be implemented in subclasses"
<slyphon> is what I usually do
<WillMarshall> slyphon: Thanks
<slyphon> sure
spuk [spuk!~spuk@189.6.30.65] has joined #ruby-lang
<WillMarshall> slyphon: NotImplemented doesn't exist
<slyphon> sorry
<slyphon> NotImplementedError
JohnBat26 [JohnBat26!~Eugene@80.251.120.55] has joined #ruby-lang
MistyM [MistyM!~MistyM@50.72.70.192] has joined #ruby-lang
gokul [gokul!~gokulnath@115.111.177.122] has joined #ruby-lang
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
alexeyKolosov [alexeyKolosov!~quassel@mail.zbku.ru] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
corecode [corecode!~2@0x2c.org] has joined #ruby-lang
Katniss [Katniss!~Katniss@24.144.9.150] has joined #ruby-lang
heppy [heppy!~heppy@75-101-31-55.dsl.dynamic.sonic.net] has joined #ruby-lang
magicbeef [magicbeef!~magicbeef@74-95-6-5-SFBA.hfc.comcastbusiness.net] has joined #ruby-lang
plusk [plusk!~plusk@201-24-167-220.gnace703.dsl.brasiltelecom.net.br] has quit ["Leaving"]
gianlucadv [gianlucadv!~gianlucad@host78-84-dynamic.44-79-r.retail.telecomitalia.it] has joined #ruby-lang
take_cheeze [take_cheeze!~Adium@pc06224.anc-tv.ne.jp] has joined #ruby-lang
rippa [rippa!~splitta@85.158.54.234] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@c-67-165-197-126.hsd1.co.comcast.net] has joined #ruby-lang
rpowell [rpowell!~rpowell@CPE-121-216-253-79.lnse3.ken.bigpond.net.au] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@202.146.7.239] has joined #ruby-lang
Katniss_ [Katniss_!~Katniss@24.144.9.150] has joined #ruby-lang
bglusman [bglusman!~bglusman@c-68-80-200-61.hsd1.pa.comcast.net] has joined #ruby-lang
dr0id [dr0id!~andy@unaffiliated/dr0id] has joined #ruby-lang
savage- [savage-!~savage_@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby-lang
huxtable [huxtable!~huxtable@108-90-18-133.lightspeed.cicril.sbcglobal.net] has joined #ruby-lang
michael_mbp_ [michael_mbp_!~Marin@149.147.207.5] has joined #ruby-lang
macmartine [macmartine!~macmartin@c-24-21-112-60.hsd1.or.comcast.net] has joined #ruby-lang
csherin [csherin!~csherin@61.11.47.149] has joined #ruby-lang
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
SuperTa__ [SuperTa__!~supertaz_@38.99.52.59] has joined #ruby-lang
<WillMarshall> Can I ask Ruby where a class has been defined?
priteshjain [priteshjain!~priteshja@115.248.175.50] has joined #ruby-lang
slimfit [slimfit!~slimfit@c-98-245-122-231.hsd1.co.comcast.net] has joined #ruby-lang
fragmachine [fragmachine!~fragmachi@1.124.225.176] has joined #ruby-lang
igotnolegs [igotnolegs!~igotnoleg@75-162-83-166.slkc.qwest.net] has joined #ruby-lang
<raggi> a class could be defined in many places
corecode [corecode!~2@0x2c.org] has joined #ruby-lang
corecode [corecode!~2@0x2c.org] has joined #ruby-lang
kitallis [kitallis!~kitallis@122.172.224.154] has joined #ruby-lang
butchanton [butchanton!~butchanto@c-71-202-131-177.hsd1.ca.comcast.net] has joined #ruby-lang
h4y4shi [h4y4shi!~chatzilla@rrcs-67-79-54-130.sw.biz.rr.com] has joined #ruby-lang
gokul [gokul!~gokulnath@115.111.177.122] has joined #ruby-lang
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
JohnBat26 [JohnBat26!~Eugene@89.175.77.79] has joined #ruby-lang
michael_mbp_ [michael_mbp_!~Marin@31.203.165.249] has joined #ruby-lang
yxhuvud [yxhuvud!mongo@h-85-33.a212.priv.bahnhof.se] has joined #ruby-lang
corecode [corecode!~2@0x2c.org] has joined #ruby-lang
srbaker [srbaker!~srbaker@205-214-231-150.static-ip.telepacific.net] has joined #ruby-lang
fragmachine [fragmachine!~fragmachi@101.170.226.165] has joined #ruby-lang
SuperTaz_work [SuperTaz_work!~supertaz_@38.99.52.59] has joined #ruby-lang
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby-lang
corecode [corecode!~2@0x2c.org] has joined #ruby-lang
gregmoreno [gregmoreno!~gregmoren@173-13-141-62-sfba.hfc.comcastbusiness.net] has joined #ruby-lang
solars [solars!~solars@194.208.132.118] has joined #ruby-lang
WillMarshall [WillMarshall!~willmarsh@ppp121-44-86-68.lns20.syd6.internode.on.net] has joined #ruby-lang
dreinull [dreinull!dreieins@217.18.70.225] has joined #ruby-lang
corecode [corecode!~2@0x2c.org] has joined #ruby-lang
perryh [perryh!~root@unaffiliated/perry753] has joined #ruby-lang
igotnolegs [igotnolegs!~igotnoleg@75-162-83-166.slkc.qwest.net] has joined #ruby-lang
kitallisii [kitallisii!~kitallis@122.172.224.154] has joined #ruby-lang
corecode [corecode!~2@0x2c.org] has joined #ruby-lang
skiz [skiz!~skiz@c-69-181-211-4.hsd1.ca.comcast.net] has joined #ruby-lang
tla [tla!~tla@2a02:108:107:2003:dc54:25e:3450:d5fa] has joined #ruby-lang
jammi [jammi!o@o.bombsquad.org] has joined #ruby-lang
dc5ala [dc5ala!~dc5ala@stgt-4d039a28.pool.mediaWays.net] has joined #ruby-lang
RomyRomy [RomyRomy!~stickycak@cpe-69-203-115-155.nyc.res.rr.com] has joined #ruby-lang
daglees [daglees!~belvedere@unaffiliated/daglees] has joined #ruby-lang
thone [thone!~thone@g230187124.adsl.alicedsl.de] has joined #ruby-lang
ryanf [ryanf!~revfitz@237.sub-174-254-208.myvzw.com] has joined #ruby-lang
butchanton [butchanton!~butchanto@c-71-202-131-177.hsd1.ca.comcast.net] has joined #ruby-lang
krz [krz!~foobar@unaffiliated/krz] has joined #ruby-lang
michael_mbp_ [michael_mbp_!~Marin@212.43.23.242] has joined #ruby-lang
bousquet [bousquet!~bousquet@74.197.255.182] has joined #ruby-lang
<zenspider> holy crap I make tasty food
<shevy> zeninsects
michael_mbp_ [michael_mbp_!~Marin@31.203.57.224] has joined #ruby-lang
<bnagy> zenspider: go on then, what did you make?
<zenspider> common name is chicken in a pot
<zenspider> whole chicken, tons of garlic, potato, onion
frangiz [frangiz!~frangiz@user26.77-105-206.netatonce.net] has joined #ruby-lang
<zenspider> throw everything in a dutch oven, season however, seal the oven shut with a bread seal, throw in the oven at 450
<bnagy> ha, that's my standard 'wife is away' (she is veg) meal :)
<zenspider> so. fucking. good.
<zenspider> went for 2 hours in the oven this time.
michael_mbp_ [michael_mbp_!~Marin@31.203.76.39] has joined #ruby-lang
<zenspider> used sliced potato on the bottom instead of bread to soak up the juices
<zenspider> threw in some acorn squash too
<bnagy> they don't seem to have ovens in nepal, so I make on stovetop with sacrificial potato on the bottom to burn a bit
<bnagy> dammit now I am hungry :|
<zenspider> it's all about the bread seal... essentially makes it a bit of a pressure cooker
michael_mbp_ [michael_mbp_!~Marin@149.147.142.12] has joined #ruby-lang
<bnagy> yeah claypot on the stove takes more like 4-6
gokul [gokul!~gokulnath@115.111.177.122] has joined #ruby-lang
WillMarshall [WillMarshall!~willmarsh@ppp121-44-86-68.lns20.syd6.internode.on.net] has joined #ruby-lang
Z2FyZA [Z2FyZA!~gard@mail.tomra.no] has joined #ruby-lang
<bnagy> so https://github.com/amazonwebservices/aws-sdk-for-ruby I find this code really fricking hard to understand / modify, is it just me or is it oddly put together?
<bnagy> I've been poking at the s3 code
fragmachine [fragmachine!~fragmachi@101.169.17.97] has joined #ruby-lang
<zenspider> too much indirection it seems. everything is an autoload on an autoload on an autoload
<zenspider> not enough doco
<zenspider> can't figure out where to get started
<zenspider> tho maybe they have better doco online?
voker57 [voker57!~voker57@128-70-82-194.broadband.corbina.ru] has joined #ruby-lang
voker57 [voker57!~voker57@kvirc/developer/Voker57] has joined #ruby-lang
<erikh> wow, holy mother of autoload
<erikh> they seem to be using a lot of yard
<bnagy> ok so maybe I'm not a complete retard :/
<zenspider> yeah. that's java programmers for ya
<erikh> dunno. this looks a hell of a lot nicer than right_aws
<erikh> not that the bar is high there
michael_mbp [michael_mbp!~Marin@149.147.142.12] has joined #ruby-lang
<zenspider> crap... robokill 2 is out. there goes 4-8 hours
alexeyKolosov [alexeyKolosov!~quassel@ns1.zbku.ru] has joined #ruby-lang
<zenspider> good timing... I was burning out :)
<erikh> dustforce is fun
<zenspider> holy mother of apple updates
cyri_ [cyri_!~cyri_@232.93.119.80.rev.sfr.net] has joined #ruby-lang
mkirillov [mkirillov!max@nat/nokia/x-lhqybgqzngnrkkhs] has quit [#ruby-lang]
Katniss [Katniss!~Katniss@24.144.9.150] has joined #ruby-lang
bglusman [bglusman!~bglusman@c-68-80-200-61.hsd1.pa.comcast.net] has joined #ruby-lang
gasbakid [gasbakid!~gasbakid@41.96.26.189] has joined #ruby-lang
fritzek [fritzek!~fritzek@p5DDB5B80.dip.t-dialin.net] has joined #ruby-lang
<zenspider> updating lappy and server. bbl
zmack [zmack!~zmack@109.99.235.103] has joined #ruby-lang
<ryanf> I thought everyone was using fog by now
molgrew [molgrew!~bozo20@85.182.139.18] has joined #ruby-lang
JohnBat26 [JohnBat26!~Eugene@89.175.77.79] has joined #ruby-lang
<andrewvos> ryanf: Whoa. I can use fog at work! Clearly not everyone is using it.
<erikh> right_aws is actually documented
<erikh> that's why I prefer it over fog
<ryanf> that's what pry is for :)
<andrewvos> heh
<andrewvos> I tend to agree with both of you
<erikh> I mostly use right_aws from chef
<erikh> I don't have a lot of use for aws tools outside of it -- the java tools suffice
<erikh> ... and some custom tooling we have.
<erikh> that said, the amazon stuff looks pretty but historically it hasn't been well maintained; at least the AMI toolkit is pretty crusty
<erikh> sorry to ramble, the sleep meds are probably starting to kick in.
<erikh> is it common to have a shitload of energy after being sick? I always seem to.
priteshjain [priteshjain!~priteshja@115.248.175.50] has joined #ruby-lang
<shevy> erikh dunno, I usually need some time to recover after being sick. like, I feel a bit weaker afterwards for a day or two
<erikh> hrm. weird.
tla_ [tla_!~tla@toelboell-lund.dk] has joined #ruby-lang
tekin [tekin!~tekin@cpc8-with5-2-0-cust208.1-4.cable.virginmedia.com] has joined #ruby-lang
chendo_ [chendo_!~chendo@unaffiliated/chendo] has joined #ruby-lang
zenspider [zenspider!~user@envy.zenspider.com] has joined #ruby-lang
ryez [ryez!ca4cf01e@gateway/web/freenode/ip.202.76.240.30] has joined #ruby-lang
<ryez> hi, I can't access http://rubyinstaller.org, what's wrong?
<ryez> it's been a while
workmad3 [workmad3!~workmad3@vpn53.its.manchester.ac.uk] has joined #ruby-lang
robotmay [robotmay!~robotmay@94.30.13.228] has joined #ruby-lang
toretore [toretore!~toretore@crr06-3-82-231-12-81.fbx.proxad.net] has joined #ruby-lang
ovnimancer [ovnimancer!~anton@212.59.96.38] has joined #ruby-lang
roolo [roolo!~mailo@customer-79-127-150-214.net.angelnet.cz] has joined #ruby-lang
tbuehlmann [tbuehlmann!Tobias@unaffiliated/tovias] has joined #ruby-lang
shevy [shevy!~shevy@178-191-255-205.adsl.highway.telekom.at] has joined #ruby-lang
Telmo [Telmo!~telmo@c-68-44-135-81.hsd1.pa.comcast.net] has joined #ruby-lang
krz [krz!~foobar@unaffiliated/krz] has joined #ruby-lang
michael_mbp_ [michael_mbp_!~Marin@46.186.229.27] has joined #ruby-lang
<rue> ryez: Firewall, maybe?
michael_mbp__ [michael_mbp__!~Marin@31.203.28.167] has joined #ruby-lang
jamiemill [jamiemill!~jamiemill@87-194-220-111.bethere.co.uk] has joined #ruby-lang
<ryez> rue: thanks, but I'm not sure if it's a firewall issue
<ryez> though I'm actually behind the so called GFW
<erikh> anyone know of a standard array type with fixed boundaries?
<erikh> basically like a C array
naquad [naquad!~vereteran@static.88-198-170-117.clients.your-server.de] has joined #ruby-lang
vereteran [vereteran!~vereteran@static.88-198-170-117.clients.your-server.de] has joined #ruby-lang
vereteran [vereteran!~vereteran@static.88-198-170-117.clients.your-server.de] has joined #ruby-lang
<rue> A C array
<rue> erikh: Elaborate. An array is, definitionwise, fixed-size
<erikh> yes but ruby arrays are not
<rue> Ruby's got dynamic arrays, if we're precise
<erikh> ruby's array type is more of a list type
<erikh> I need a fixed, random access array
<erikh> fixed-width.
vereteran [vereteran!~vereteran@static.88-198-170-117.clients.your-server.de] has joined #ruby-lang
<erikh> I'm using a SizedQueue atm for what it's worth -- which is not ideal as I'm basically recreating the queue every `size` iterations
<erikh> I'd rather just keep an index
<erikh> dunno. sizedqueue works
<rue> I don't recall one
<rue> If you're supplying/controlling the index, you can naturally just use an Array, but I suppose a proper bounds-checking one wouldn't be a bad idea
<rue> But you really only *need* one if external code is accessing it based on its own calculations
<erikh> basically converting SM to a more actor-y model (which I'm still learning so this might not be perfect) with a preallocated number of threads
<erikh> so instead of filling a single queue and let god sort it out, i'm walking the event list, filling queues for individual threads with events to execute, and then letting the thread pull the proc/payload off and execute it
<rue> Hm, doesn't push/pull work with M:N?
<erikh> M:1 if I'm reading your terminology right
<erikh> sorry, I am concurrency dumb, I hope that's not too much of an issue
<erikh> happy to learn but it's a wide topic
<rue> Hm, actually, I think it's either 1:N or M:1. Weird
<erikh> the central idea to this is that there's a core that always maintains a certain known state
at5l [at5l!~at5l@unaffiliated/at5l] has joined #ruby-lang
<erikh> and just spawns off async handling
<erikh> it should make for a fast service management system
roha [roha!~phelot@84-75-49-50.dclient.hispeed.ch] has joined #ruby-lang
<erikh> and the handlers are side-effect free because they can call back to the core just by messaging it
<rue> Is it a stateful response, or self-contained?
<rue> It looks like you could just use inproc PUSH and PULL from the threads
<roha> Hey, I've made a ruby script which logs into a wegpage and checks for updates. I used Hpricot for HTML-parsing together with rubygems. Is there a way to "bundle" the script and the necessary libraries together so that i can send it to a friend and he doesn't have to worry about installing ruby/ruby gems etc. ?
<erikh> yep, that's exactly what i'm doing
<erikh> so PULL sits in the core and each event gets a fresh ::Payload object which contains the message, the client, and the dispatcher
<erikh> the client being a PUSH connected to the dispatcher
<roha> Something like an executable jar in Java
<rue> roha: There used to be a rubyscript2exe, and I think there's a modern counterpart…
<rue> Also, though, I think you could create an actual .jar with JRuby
<roha> Oh and my friend is running OSX
<erikh> the point of the dispatcher being that it's responsible for selecting and delegating based on the state at the time the message received
<roha> Ill have a look ad rubyscript2exe then :) thanks
<rue> erikh: So is the problem with responses, then?
<rue> Wrt. the fixed-size Array?
<erikh> well managing clients in a way that I can quickly isolate dead or unresponsive threads
<erikh> e.g., Enumerable
<erikh> I can dump and reload the queue but that seems ... inelegant I guess.
niklasb [niklasb!~codeslay0@p5B310BC1.dip0.t-ipconnect.de] has joined #ruby-lang
<erikh> hrm
<erikh> I'll just show you the patch when I'm done here
<erikh> might be simplest.
<rue> Okdoke. I'm probably missing some crucial detail
<erikh> nah I'm communicating like shit because I'm new to all this
Mchl [Mchl!~Mchl@h1881165560.rev.rootvps.pl] has joined #ruby-lang
<erikh> ruby -I lib lib/sm/core.rb 0.21s user 0.05s system 20% cpu 1.231 total
<erikh> raggi: love you.
<erikh> was taking ~15s for 5000 messages before
<erikh> yeah, order of magnitude raised it by all of 0.05s
<erikh> rue: i've committed, maybe that helps some
<roha> Hmm no luck yet. Does somebody know of another way besides rubyscript2exe etc to just simply bundle a script and some non-standard-ruby-libraries, so that you don't have to "sudo gem install" every gem on the target machine?
<Muz> Bundler'll do that for you
<roha> and you wouldn't need to install bundler on the target machine?
<Muz> Oh, you will, but it certainly simplifies the process.
<roha> i'll have another look at it :) thanks
<roha> i just wonder that there is no real standard way to do such things, if somebody programs a bigger ruby application and wants to distribute it with all the ruby-things being hidden from the user
<roha> rubyscript2exe would do that, but it seems not that up to date
stanis [stanis!~akhil@115.111.177.122] has joined #ruby-lang
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby-lang
<manveru> roha: jruby?
<roha> manveru, i've googled a bit about using jruby for the task but haven't found anything, i guess i'll do some more searching :)
kyrylo [kyrylo!~kyrylo@46.118.234.45] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@subtle/user/kyrylo] has joined #ruby-lang
<manveru> something like this
sj26 [sj26!sj26@sj26.com] has joined #ruby-lang
gianlucadv [gianlucadv!~gianlucad@rna.bio.disco.unimib.it] has joined #ruby-lang
<rue> ^
nark-1 [nark-1!~NARKOZ@46.228.177.254] has joined #ruby-lang
gix [gix!~gix@e180018126.adsl.alicedsl.de] has joined #ruby-lang
<roha> manveru: thanks!!
corecode [corecode!~2@0x2c.org] has joined #ruby-lang
corecode [corecode!~2@0x2c.org] has quit [":wq"]
bglusman [bglusman!~bglusman@c-68-80-200-61.hsd1.pa.comcast.net] has joined #ruby-lang
qwert666 [qwert666!~m1d4s@213.241.18.166] has joined #ruby-lang
<qwert666> http://pastie.org/3302003 any regexp ninja ? need to negated Page: | Raport: and grep all other keywords in this case BAR:
<kalleth> qwert666: www.rubular.com helps me with figuring regexes out :)
dr0id [dr0id!~andy@unaffiliated/dr0id] has joined #ruby-lang
<molgrew> just curious, you are hellbent on achieving it just with regular expressions?