Topic for #ruby is now Ruby programming language || ruby-lang.org || RUBY SUMMER OF CODE! rubysoc.org/ || Paste >3 lines of text in http://pastie.org || Para a nossa audiencia em portugues http://ruby-br.org/
<lantins> heh =)
rpowell [rpowell!~rpowell@CPE-58-164-72-158.lns1.ken.bigpond.net.au] has joined #ruby
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
apok [apok!~apok@c-107-3-149-167.hsd1.ca.comcast.net] has joined #ruby
axl_ [axl_!~axl@75-149-152-225-Minnesota.hfc.comcastbusiness.net] has joined #ruby
syamajala [syamajala!~syamajala@c-75-68-106-118.hsd1.ma.comcast.net] has joined #ruby
vraa [vraa!~vraa@99-20-202-44.lightspeed.hstntx.sbcglobal.net] has joined #ruby
albedoa [albedoa!~albedoa@ip68-108-106-30.lv.lv.cox.net] has joined #ruby
toy_battery [toy_battery!~choldbroo@216.101.134.148] has joined #ruby
* tnk1 is away: Gone away for now
* tnk1 is back.
SterNiX [SterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
andrewhl [andrewhl!~andrew@24-246-15-43.cable.teksavvy.com] has joined #ruby
<davidcelis> cool story
<any-key> that's not annoying
<davidcelis> certainly not
emacsen [emacsen!~serge@static-71-166-241-209.washdc.east.verizon.net] has joined #ruby
manizzle [manizzle!~manizzle@pcp046687pcs.pcv.reshall.calpoly.edu] has joined #ruby
<shevy> lantins you were the python guy?
friskd [friskd!~friskd@71-95-209-242.static.mtpk.ca.charter.com] has joined #ruby
Greed [Greed!~Greed@pool-71-251-229-136.rcmdva.fios.verizon.net] has quit ["A plus tard, le meunier!"]
randym [randym!~randym@113x33x226x118.ap113.ftth.ucom.ne.jp] has joined #ruby
colint_ [colint_!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
<lantins> shevy: depends on how much street cred I get for saying 'yes' ;)
dv310p3r [dv310p3r!~dv310p3r@adsl-65-3-161-18.mia.bellsouth.net] has joined #ruby
<lantins> shevy: no, I've never really used python at all, so I can't be 'the python guy' =)
* tnk1 is away: Gone away for now
* tnk1 is back.
eddsteel [eddsteel!~edd@ec2-184-72-38-42.us-west-1.compute.amazonaws.com] has joined #ruby
<davidcelis> tnk1: Stop
dv310p3r [dv310p3r!~dv310p3r@adsl-65-3-161-18.mia.bellsouth.net] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
Profit [Profit!~p@c83-254-248-138.bredband.comhem.se] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
<shevy> ah ok lantins I think I confuse you with ... led... len... someone else hehe
<lantins> shevy: i got a feeling your thinking of progrium / Jeff Lindsay?
axilla_2 [axilla_2!~axilla@c-71-234-169-157.hsd1.vt.comcast.net] has joined #ruby
axilla_2 [axilla_2!~axilla@c-71-234-169-157.hsd1.vt.comcast.net] has quit [#ruby]
<slide> Does anyone know how to fix this error im on a mac "dyld: lazy symbol binding failed: Symbol not found _SSL_library_init"
<shevy> lantins not sure, some guy here on #ruby who was wanting to learn ruby, coming from python
apok [apok!~apok@c-107-3-149-167.hsd1.ca.comcast.net] has joined #ruby
<shevy> could be that name yea
<lantins> shevy: ah okay, it prob isn't who im thinking of, but i had some crazy logic going on in my mind to come up with that anyhow...
<lantins> slide: iirc... last time I had an issue like that I had installed a gem's c dependency from source... I had to play around with my DYLD_FALLBACK_LIBRARY_PATH env setting
<slide> ah thanks lantins finally someone offering some help :D
<lantins> slide: I make no prommises it will actually help heh
logic [logic!logic@unaffiliated/bitch333z] has joined #ruby
<slide> well, that alone is some where to go (of which i had no idea heh)
<lantins> slide: did you install openssl via macports etc. or source?
<slide> yes, via brew, but mac has a built in copy of openssl already
<lantins> do you need to use a spesific version for a gem? or do you not mind?
<slide> im not aware of any version specific requirements
<shevy> slide I'd offer to help too but I have no idea about that. it seems as if you have some library which lacks a symbol. perhaps it was not compiled into that library
<lantins> slide: okay, where does brew install things to? i've never used it before to be honest. I'd try adding that to your DYLD_FALLBACK_LIBRARY_PATH
<slide> it should be standard in libssl
dv310p3r [dv310p3r!~dv310p3r@adsl-65-3-161-18.mia.bellsouth.net] has joined #ruby
<lantins> export DYLD_FALLBACK_LIBRARY_PATH=/path/where/brew/installs/to/lib:$DYLD_FALLBACK_LIBRARY_PATH
<slide> lantins, yea, this is my first experience with it too. It doesn't actually install libssl to anywhere because macos expects the old built in version
Carmivore [Carmivore!~carmivmor@ec2-50-19-203-12.compute-1.amazonaws.com] has joined #ruby
<slide> in my env i dont even have a DYLD_FALLBACK_LIBRARY_BACK or even a DYLD_LIBRARY_PATH var
offby1 [offby1!~user@pdpc/supporter/monthlybyte/offby1] has joined #ruby
ferbass [ferbass!~ferbass@177.35.204.136] has joined #ruby
<shevy> just try to set it to see if that makes any difference?
<shevy> though I should be quiet. I know nothing about DYLD*
<slide> i set it to /usr/local/Cellar/openssl/0.9.8r/lib but it didnt help
cjs [cjs!~cjs@41.98.156.220.st.bbexcite.jp] has joined #ruby
<lantins> I have to admit, how libs work in os x has always screwed with me... I've no problem with linux however.
<slide> is dylib the same as so? b/c there is no so
<lantins> slide: it seems different to me, you dont have a ld.conf or ldd realted tools, or something equivlant, or not that ive ever found
<offby1> hi folks. Ruby nuby here. http://pastie.org/3121939 shows that when I try to use "testrb", from test-unit, to invoke a file whose name ends in ".tu", it fails, whereas the same file with an extension of .rb works fine. I suspect the problem is due to test-unit using "require" rather than "load" to load the file-under-test ... my question: is there an easy way to get test-unit to load my file, without changing its name?
<ReinH> offby1: why do you want to name it wrong?
<ReinH> an easier solution would be to name it properly
<offby1> ReinH: well, that's not an option.
<ReinH> what
<ReinH> how on earth can naming your files correctly not be an option?
thomascioppettin [thomascioppettin!~thomascio@cpe-071-071-047-213.triad.res.rr.com] has joined #ruby
<ReinH> if you're doing it wrong, don't be surprised if it doesn't work
<offby1> because to me ".tu" is the correct name. We have lots of tests in different languages, and we name them based not on the language they're written in, which isn't interesting; but instead by the style oof output they emit.
<slide> well thanks for yalls help so far :) ill keep trying hehe
<lantins> slide: good luck!
<ReinH> offby1: you're wrong.
<ReinH> they should be named .rb
<ReinH> Part of speaking a language is accepting that its conventions may be different from other langauges you are used to
<offby1> that's a shame.
<ReinH> whatever
<ReinH> I'll go with the entire ruby community over you
* tnk1 is away: Gone away for now
<slide> yea actually, i can use nm -gU /usr/lib/openssl.dylib | grep _SSL_library_init and it in fact does contain that symbol
* tnk1 is back.
<slide> so its definitely failing to load the actually lib it seems
<lantins> thats awesome ReinH, but that totally doesn't help offby1 does it
andyl [andyl!~andy@c-98-207-232-251.hsd1.ca.comcast.net] has joined #ruby
<ReinH> lantins: nothing can help him do something broken
<ReinH> the best advice I can give him is to do it not broken
<ReinH> if that's not acceptable to him
<ReinH> I just have to move on
<lantins> I'd name it .rb MYSELF, but its not like its an impossible problem for him to get around?
<ReinH> yes, it is
<ReinH> unless he wants to rewrite ruby
<ReinH> require and load have different semantics
<offby1> I realize that.
<ReinH> the semantics of require are incompatible with naming his file .tu
<offby1> I realize that too.
<ReinH> the semantics of load are incompatible with running his file for test/unit
<offby1> that, I didn't realize.
<ReinH> load will load a file whether or not it has been loaded before
<ReinH> that is undesireable
<ReinH> so unless you want to track loaded files yourself out-of-band, which would require at least a rewrite of test/unit
<ReinH> you need to name your files .rb
pen [pen!~pen@wlan32.cc.ntu.edu.tw] has joined #ruby
andyl [andyl!~andy@c-98-207-232-251.hsd1.ca.comcast.net] has joined #ruby
<ReinH> I mean, or you could just use the convention that every other ruby developer in the entire world has used for over a decade
<ReinH> besides, why on earth would you name a file based on *what it outputs* instead of what it contains?
<workmad3> ReinH: insanity?
<offby1> because that's useful?
andyl [andyl!~andy@c-98-207-232-251.hsd1.ca.comcast.net] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@adsl-65-3-161-18.mia.bellsouth.net] has joined #ruby
<ReinH> offby1: it's ridiculous
<offby1> if you say so
<ReinH> imagine if every file were named that way
<banisterfiend> offby1: wow, you're in #ruby, that's cute
aantix [aantix!~jjones@50.0.102.2] has joined #ruby
<offby1> banisterfiend: and it's not been a very pleasant experience so far, I'll tell you that :-|
<banisterfiend> offby1: hehehe, forced to learn it at work?
<offby1> ayup
<ReinH> I don't have much patience for special flowers
<banisterfiend> offby1: it coudl be worse, you could be asked to program php
<ReinH> I said "why don't you do the thing that every other ruby developer in the entire world does"
<ReinH> and he said that it's *impossible"
<ReinH> not that he didn't want to do it
<ReinH> but that he *couldn't*
<ReinH> and he is expecting *me* to be reasonable?
Seisatsu [Seisatsu!~seisatsu@2001:5c0:1000:a::30b] has joined #ruby
<lantins> offby1: im guessing you've got some kind of external test runner that runs tests for multiple languages?
<offby1> lantins: that's the plan.
<offby1> actually, I take that back
<offby1> the plan is: each test script has a shebang line at the top that allows it to be run by simply typing the script's name.
<slide> huzaah!!
<lantins> offby1: okay, well if you only wany to run 1 test file at a time that's named .tu then there will be a way to do this... aslong as the ruby files there trying to 'require' all have .rb extensions rather then something else
<slide> i got it! :D
<lantins> slide: w00t!
<ReinH> then why not make the shebang something like #!/usr/bin/testrunner --format=TestUnit
<slide> DL::dlopen('/usr/lib/libssl.dylib');
<offby1> lantins: I assume they only require files whose names end with ".rb".
<slide> heh
<workmad3> offby1: are you using minitest's autorun capability? :)
<offby1> workmad3: no. Should I be?
colint [colint!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
<offby1> workmad3: although to be sure I _think_ I'm using Test::Unit::Autorun, indirectly.
<workmad3> offby1: hmm, that probably is the minitest autorun stuff if you're on 1.9.2 :)
<offby1> could be.
<workmad3> offby1: it just makes it nice and easy to run the file standalone... I'm not quite sure why you're using .tu instead of .rb though
<workmad3> offby1: would .tu.rb be acceptable?
<offby1> perhaps.
<offby1> the plan was to have test files indicate, by their names, which flavor of output they produced.
<offby1> so ... I guess .tu.rb will work.
rpowell [rpowell!~rpowell@CPE-58-164-72-158.lns1.ken.bigpond.net.au] has joined #ruby
linoj [linoj!~linoj@68-114-184-254.static.davl.vt.charter.com] has joined #ruby
<offby1> At which point I'm gonna try to find a way to compile it and generate a .tu.rb.o file :)
<workmad3> offby1: compile it to a .o? that'll be a 'fun' challenge :)
<banisterfiend> lulz
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
<offby1> workmad3: it was a joke.
jbw [jbw!~jbw@dsl-044-084.cust.imagine.ie] has joined #ruby
* offby1 rolls eyes
<lantins> heh
<workmad3> offby1: given some of the people in here, I wouldn't have put it beyond a serious suggestion :P
<offby1> heh
<offby1> anyway, .tu.rb will have to do for now, I guess.
<offby1> thanks.
offby1 [offby1!~user@pdpc/supporter/monthlybyte/offby1] has quit ["ERC Version 5.3 (IRC client for Emacs)"]
SterNiX [SterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
araujo [araujo!~araujo@gentoo/developer/araujo] has joined #ruby
freenodiz [freenodiz!~IceChat77@unaffiliated/freenodiz] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
<freenodiz> hello,i'm wondering how powerfull is a server running a rails or sinatra app, that have unicorn and nginx as aproxy.Roughly, how many hits/day ou think it could support?repeat,roughly..
<lantins> freenodiz: thats a far too open-ended question to really answer. your application its self will effect how many requests per second a setup could perform
<workmad3> freenodiz: can't really answer that... what bandwidth do you have, what speed is it, how many unicorn processes have you spawned, how heavy is the app?
<shevy> he spawned 18 baby unicorns
<workmad3> shevy: awesome :) that makes the world 18 unicorns more awesome
<lantins> hah
<freenodiz> is a linode account,and the app would be like a spree shop,with about 1000 ,roughly
<freenodiz> not sure how many works tough,still learning,i managed to set a basic install of nginx and unicorn,basic,following bates
rook_flood [rook_flood!~textual@c-68-50-111-251.hsd1.dc.comcast.net] has joined #ruby
<freenodiz> 1000 products*
<freenodiz> how many workers*
apok_ [apok_!~apok@c-107-3-149-167.hsd1.ca.comcast.net] has joined #ruby
<freenodiz> i just wanted to know the "weapon" i have installed ,lol
<evilgeenius> Is there a way to convert a string that could be in any encoding into a utf8 string?
<freenodiz> cmon gus,not enough info for a rough answer?
<freenodiz> gus*
<freenodiz> guys*
jessemc [jessemc!~jessemc@S01060018396a08f6.ed.shawcable.net] has joined #ruby
<shevy> hey i have no idea about unicorn freenodiz
<freenodiz> :(
igotnolegs [igotnolegs!~igotnoleg@75-162-83-166.slkc.qwest.net] has joined #ruby
<lantins> freenodiz: same here. best thing would be to do some kind of load testing to really figure out if it will provide the performance you need
<freenodiz> shevy,nvm,i know that i have a super bomb in my hands,i just don't know how powerfull it is...i will do some tests
<freenodiz> lantins,yes,i will do some tests,ty
<freenodiz> bwtter,understand unicorn process before,lol
<freenodiz> i feel like inside a ferrari learning how to drive...i'm comic
LiquidInsect [LiquidInsect!~billabney@173-228-63-32.dsl.static.sonic.net] has joined #ruby
jessemc [jessemc!~jessemc@S01060018396a08f6.ed.shawcable.net] has joined #ruby
linusoleander [linusoleander!~linus@h130n2c1o1042.bredband.skanova.com] has joined #ruby
<banisterfiend> freenodiz: lulz did u name yourself after the IRC network?
<freenodiz> errr.....nope,lol
<banisterfiend> freenodiz: irc network is freenode
<banisterfiend> freenodiz: what does freenodiz mean then
<freenodiz> ohhh.reallyy?
<freenodiz> lol
<freenodiz> freenodiz is the guy that comes far too much to freenode,bingo
<freenodiz> it seems they don't mind,as i got even a cloak by the staff
<freenodiz> do you like it?or you think is stupid ?
<freenodiz> banisterfiend
<banisterfiend> freenodiz: it's pretty weird to be honest
<freenodiz> au rite,ty :)
<banisterfiend> freenodiz: but that also makes it interesting
<banisterfiend> freenodiz: so i suggest u keep it
<freenodiz> yes,i was thinking to change...but i'm using for about 6 months...ppl know me already
<freenodiz> i feel just a bit not original,that's all
rramsden [rramsden!~rramsden@p102130.nanpool.mala.bc.ca] has joined #ruby
<freenodiz> your is very wierd,fiend
<freenodiz> is like a demon,or somenthing?
<freenodiz> lol
akem [akem!~akem@unaffiliated/akem] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
<freenodiz> banisterfiend sounds like Ban this Ramster Fiend
<banisterfiend> freenodiz: what country are you from ?
<freenodiz> jamaica
<freenodiz> you?
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
syamajala [syamajala!~syamajala@c-75-68-106-118.hsd1.ma.comcast.net] has joined #ruby
<banisterfiend> freenodiz: do you like jerk chicken
<freenodiz> sure i do!my favorite,lol...and ganjaaaaa
Carmivore [Carmivore!~carmivmor@ec2-50-19-44-249.compute-1.amazonaws.com] has joined #ruby
<banisterfiend> freenodiz: cook me some jerk chicken
milkpost_ [milkpost_!~dec@173-28-195-157.client.mchsi.com] has joined #ruby
<banisterfiend> :D
<freenodiz> hehe,then i send you trough email?
<shevy> lol
<shevy> here be intellectual battles again
<freenodiz> what?chicken?battle?ganja?wtf?lol
<banisterfiend> freenodiz: dont u think ganja is bad for your brain
<freenodiz> no.ganja is religious for us
<freenodiz> makes you contact god
<freenodiz> rastafari
<Okasu> ninja makes you contact god
<Okasu> not ganja
<freenodiz> ninja?
<Okasu> ganja?
<freenodiz> apples?
<freenodiz> cmon guys,don't tell me you write code without a big joint by your side...i just couldn't do it
<freenodiz> a joint and bob marley playing...chilling out...
sbanwart_ [sbanwart_!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
<freenodiz> peace
bnewton [bnewton!~bnewton@cpe-66-68-94-56.austin.res.rr.com] has joined #ruby
<freenodiz> lol
<freenodiz> ROFL
<freenodiz> what would you do with that then...just open and enjoy the smell?
<banisterfiend> freenodiz: put it into jerk chicken recipe
burgestrand [burgestrand!~burgestra@81-229-85-235-no66.tbcn.telia.com] has joined #ruby
Tachyx [Tachyx!tach@tachnb.kolej.mff.cuni.cz] has joined #ruby
<freenodiz> au rite...i send b email..all togheter
linusoleander [linusoleander!~linus@h246n3c1o1042.bredband.skanova.com] has joined #ruby
sbanwart_ [sbanwart_!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
dyer [dyer!~dyer@108.193.172.174] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
manizzle [manizzle!~manizzle@pcp072138pcs.wireless.calpoly.edu] has joined #ruby
burgestrand1 [burgestrand1!~burgestra@81-229-85-235-no66.tbcn.telia.com] has joined #ruby
csmrfx [csmrfx!csmr@hilla.kapsi.fi] has joined #ruby
j3r0m3 [j3r0m3!~j3r0m3@50-0-128-97.dsl.dynamic.sonic.net] has joined #ruby
burgestrand [burgestrand!~burgestra@81-229-85-235-no66.tbcn.telia.com] has joined #ruby
j3r0m3 [j3r0m3!~j3r0m3@50-0-128-97.dsl.dynamic.sonic.net] has joined #ruby
j3r0m3 [j3r0m3!~j3r0m3@50-0-128-97.dsl.dynamic.sonic.net] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
tshauck [tshauck!~tshauck@98.156.55.148] has joined #ruby
skrewler [skrewler!~skrewler@209.213.206.58] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby
ly- [ly-!~ly-@unaffiliated/ly-] has joined #ruby
looopy [looopy!~looopy@static-71-166-232-207.washdc.east.verizon.net] has joined #ruby
ngng [ngng!~ng@c-98-210-117-31.hsd1.ca.comcast.net] has joined #ruby
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
jay_zawrotny [jay_zawrotny!~Jay@c-68-43-28-43.hsd1.mi.comcast.net] has joined #ruby
esparkman [esparkman!~esparkman@unaffiliated/esparkman] has joined #ruby
jessemc [jessemc!~jessemc@S01060018396a08f6.ed.shawcable.net] has joined #ruby
druonysuse [druonysuse!~drew@static-71-177-221-143.lsanca.fios.verizon.net] has joined #ruby
<Okasu> how can i in rubygtk make text of Gtk::Dialog selectable?
jimmyy111 [jimmyy111!jimmy@112.237.26.89] has joined #ruby
<Okasu> Gtk::Label*
druonysuse [druonysuse!~drew@static-71-177-221-143.lsanca.fios.verizon.net] has quit ["Konversation terminated!"]
jessemc [jessemc!~jessemc@S01060018396a08f6.ed.shawcable.net] has joined #ruby
billy_ran_away [billy_ran_away!~billy_ran@pool-173-69-211-31.bltmmd.fios.verizon.net] has joined #ruby
quest88 [quest88!~quest88@ppp-70-254-37-241.dsl.lgvwtx.swbell.net] has joined #ruby
<shevy> Okasu can you ask the question again? I am not sure what you want to do
<Okasu> i whant to get text from dialog window but i can't select it http://pastie.org/3122313
<Okasu> so how to make text selectable?
<shevy> you need to somehow access that label
<shevy> I am not sure about the method for it, something like dialog.widget or dialog.label
<shevy> once you have the label widget, you can query it for its text
<shevy> label_widget.label
fender21111 [fender21111!~Adium@199.115.190.206] has joined #ruby
jbhewitt [jbhewitt!~jbhewitt@c122-108-214-224.rochd4.qld.optusnet.com.au] has joined #ruby
burgestrand1 [burgestrand1!~burgestra@81-229-85-235-no66.tbcn.telia.com] has joined #ruby
burgestrand2 [burgestrand2!~burgestra@81-229-85-235-no66.tbcn.telia.com] has joined #ruby
burgestrand [burgestrand!~burgestra@81-229-85-235-no66.tbcn.telia.com] has joined #ruby
<Okasu> label.selectable = true
pietro [pietro!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
<Okasu> do the trick
<shevy> cool
v0n [v0n!~v4n@bas1-montreal19-1177820429.dsl.bell.ca] has joined #ruby
manizzle [manizzle!~manizzle@pcp046687pcs.pcv.reshall.calpoly.edu] has joined #ruby
<v0n> hi
<v0n> What's the point of defining a module inside a class?
<v0n> I tried in irb and it doesn't work, I mean module function aren't available to class
Boohbah [Boohbah!boohbah@gateway/shell/anapnea.net/x-ntowsizfebcmjddm] has joined #ruby
<shevy> v0n it is just a namespace
<shevy> ChunkyPNG::Canvas::Operations
<v0n> shevy, yep, but what's the goal?
<v0n> why not declaring the module outside the class and make the class include it?
<csmrfx> no, u
toy_battery [toy_battery!~choldbroo@216.101.134.195] has joined #ruby
tk_ [tk_!~tk@p252198.doubleroute.jp] has joined #ruby
pabloh [pabloh!~pablo@186.22.82.39] has joined #ruby
<v0n> shevy, why Foo#hello isn't available in http://fpaste.org/vbFQ/ ?
<ReinH> v0n: you don't define Foo#hello
<ReinH> you define hello in the module Bar
<ReinH> you don't do anything to include it in Foo
syamajala [syamajala!~syamajala@c-75-68-106-118.hsd1.ma.comcast.net] has joined #ruby
<ReinH> in the module Foo::Bar to use its fully qualified name
<ReinH> v0n: the point is namespacing
<ReinH> defining a module inside a class doesn't automatically include it
<ReinH> it just puts it inside the other module's namespace
<ReinH> other module/other class
akem [akem!~akem@unaffiliated/akem] has joined #ruby
<ReinH> I don't see any difference
<v0n> ReinH, for instance, ChunkyPNG::Image#grayscale! is available
<ReinH> Canvas includes Operations
<ReinH> Image is a subclass of Canvas
ryh [ryh!~ryh@174.45.125.160] has joined #ruby
<v0n> ho ok, I didn't see that inclusion in Canvas. Ok that really just for namespacing... ty ReinH, shevy
<ReinH> np
<v0n> do you like this kind of namespacing?
orospakr [orospakr!~orospakr@mobotropolis.orospakr.ca] has joined #ruby
<csmrfx> well good questions
toy_battery [toy_battery!~choldbroo@216.101.134.195] has quit [#ruby]
<csmrfx> I suppose it's part style, part trying to keep source ordered
pen [pen!~pen@wlan73.cc.ntu.edu.tw] has joined #ruby
<shevy> v0n it is needed to avoid clashing with same-names
<shevy> or overloading that
<shevy> def foo
<shevy> vs
<shevy> module Bla
<shevy> def foo
burgestrand1 [burgestrand1!~burgestra@81-229-85-235-no66.tbcn.telia.com] has joined #ruby
<shevy> module Yah
<shevy> def foo
<shevy> hmm, or class, instead of module
<shevy> I find class vs. module distinction a bit annoying :/
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby
<csmrfx> class does magics
burgestrand2 [burgestrand2!~burgestra@81-229-85-235-no66.tbcn.telia.com] has joined #ruby
<shevy> sure, it is more useful than module. would be even more useful if it could be used like a module and define functionality into other classes
apok [apok!~apok@96.24.67.22] has joined #ruby
ryh_ [ryh_!~ryh@174.45.125.160] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
QleeX [QleeX!c3175443@gateway/web/freenode/ip.195.23.84.67] has joined #ruby
<QleeX> I am looking for a web developer to help launch the next version of a tournament\league\ladder website. PM me if you are interested and want further informations
pen [pen!~pen@wlan5.cc.ntu.edu.tw] has joined #ruby
<csmrfx> shevy: lol you mean inheritance
<shevy> from class to class sure. classes are really the powersource of ruby
pencilcheck [pencilcheck!~pen@140.112.30.131] has joined #ruby
<shevy> does java have something like modules?
<csmrfx> java uses multiple inheritance
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
<csmrfx> um, class based
<csmrfx> not that I've touched the language in almost a decade
<zaargy> java has singular inheritance
Natch| [Natch|!~natch@178.73.217.171] has joined #ruby
<csmrfx> lol so that figures!
<zaargy> java doesn't really have anything like ruby's modules
<zaargy> well inheritance is evil anyway
<banisterfiend> csmrfx: hey carl
<zaargy> that's not core java but yeah
<zaargy> that's similar to ruby's modules
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
radic_ [radic_!~radic@dslb-094-216-232-102.pools.arcor-ip.net] has joined #ruby
ryanf [ryanf!~revfitz@50.0.160.40] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
<shevy> cool
<shevy> seems java's evolution these days is to try and take innovation from other languages
<shevy> :D
<csmrfx> hm, imo, java was never ment to be that innovative
<v0n> or Interface, pretty much just here to add methods declarations. Pretty much useless as well :/
<csmrfx> more like "suitably clunky for these enterprise types"
jimmyy111 [jimmyy111!jimmy@112.237.26.89] has joined #ruby
andyl [andyl!~andy@c-98-207-232-251.hsd1.ca.comcast.net] has joined #ruby
kjs3 [kjs3!~kseefried@c-24-99-80-255.hsd1.ga.comcast.net] has joined #ruby
seivan [seivan!~seivan@c-db4171d5.1510-2-64736c10.cust.bredbandsbolaget.se] has joined #ruby
x0F__ [x0F__!~x0F@unaffiliated/x0f] has joined #ruby
dasfugufish [dasfugufish!~Adium@68-170-39-205.mammothnetworks.com] has joined #ruby
xpot [xpot!~xpot@166-70-100-198.ip.xmission.com] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@2001:5c0:1000:a::5bd] has joined #ruby
kjs31 [kjs31!~kseefried@174.47.62.3] has joined #ruby
jessemc [jessemc!~jessemc@S010678cd8e6f175f.ed.shawcable.net] has joined #ruby
syamajal_ [syamajal_!~syamajala@c-75-68-106-118.hsd1.ma.comcast.net] has joined #ruby
skrewler [skrewler!~skrewler@70-36-139-140.dsl.dynamic.sonic.net] has joined #ruby
<burgestrand2> banisterfiend: where’s the code in pry that waits for user input?
<banisterfiend> burgestrand2: Pry#r in pry_instance.rb
<banisterfiend> burgestrand: i guess Pry#readline
<banisterfiend> burgestrand: why? what you working on?
<burgestrand> banisterfiend: I’ve noticed it blocks the rest of the ruby interpeter while waiting for input
<banisterfiend> burgestrand: that's a problem in libedit on osx
colint_ [colint_!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
<banisterfiend> burgestrand: it doesnt do that if you use the real Readline, this issue is documented in the FAQ
<banisterfiend> it's kind of annoying
jimmyy111 [jimmyy111!jimmy@112.237.26.89] has joined #ruby
<burgestrand> banisterfiend: so Readline#readline?
<banisterfiend> Yeah
davidcelis [davidcelis!~david@c-76-115-58-79.hsd1.or.comcast.net] has joined #ruby
<banisterfiend> burgestrand: is that the issue you were having?
<burgestrand> banisterfiend: yeah, pretty much, it’s not really an issue, but like you said a bit annoying :p
n8ji [n8ji!~n8ji@c-76-105-192-7.hsd1.or.comcast.net] has joined #ruby
<banisterfiend> Yeah
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby
<burgestrand> banisterfiend: wondering if I could patch the readline in ruby
<banisterfiend> burgestrand: apparently this issue doesnt exist on linux
<burgestrand> banisterfiend: yeah, I’m wondering if it’s the fault of the readline on os x or just bad assumptions of the author of the readline ruby extension
<banisterfiend> burgestrand: the guy who posted that FAQ item apparently researched it and originally had a kind of patch he'd written pasted in there
<banisterfiend> burgestrand: maybe if u go back through FAQ history u could find it
Natch| [Natch|!~natch@178.73.216.150] has joined #ruby
<burgestrand> banisterfiend: looking at ext/readline in ruby source the fix looks like a one-liner, I must be missing something
<banisterfiend> burgestrand: awesome
<banisterfiend> burgestrand: make the commit and add that "ruby core committer" to your resume
<banisterfiend> ;)
<burgestrand> banisterfiend: :p
ryh [ryh!~ryh@174.45.125.160] has joined #ruby
fender21111 [fender21111!~Adium@199.115.190.206] has quit [#ruby]
s_much [s_much!~butt_hurt@c-68-36-123-133.hsd1.nj.comcast.net] has quit [#ruby]
crankycoder [crankycoder!~crankycod@24-246-44-226.cable.teksavvy.com] has joined #ruby
colint [colint!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
<burgestrand> banisterfiend: looks like an issue was opened for it… and closed about 24 hours ago
bhavesh_a_p [bhavesh_a_p!~bhavesh_a@122.170.115.202] has quit ["Leaving"]
<banisterfiend> burgestrand: bad luck that sucks
<banisterfiend> burgestrand: was their fix the same as yours
<burgestrand> banisterfiend: by looking at the name it’s the same guy that brought the issue up that wrote it on the wiki
<banisterfiend> hehe
<banisterfiend> burgestrand: did you see his fix?
<burgestrand> banisterfiend: yeah, was the same thing I was thinking; the fix they discussed in his issue though I have no idea how that’ll change anything, but if it does fix the issue I’m happy :d
<sj26> any quick way to squash an array of numbers and ranges into non-overlapping numbers and ranges in ruby?
<burgestrand> if I understand this correctly perhaps it’ll come in some patch-level of 1.9.3
<sj26> so [1, 2..5, 4] => [1..5]
<sj26> or [1, 2..5, 4, 8, 12, 13, 14] => [1..5, 8, 12..14]
<banisterfiend> sj26: looks like an interesting problem you should have fun solving it ;)
<burgestrand> banisterfiend: http://bugs.ruby-lang.org/issues/5539
<sj26> banisterfiend: but i want to be laaaazy :P
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
<banisterfiend> sj26: first step (imo) turn everything into a range => [1..1, 2..5, 4..4, 8..8] etc
<banisterfiend> then iterate through checking range.begin and range.end
<banisterfiend> and coalesing
btanaka [btanaka!~textual@173-228-34-51.dsl.dynamic.sonic.net] has joined #ruby
andrewhl [andrewhl!~andrew@24-246-15-43.cable.teksavvy.com] has joined #ruby
andrewhl [andrewhl!~andrew@24-246-15-43.cable.teksavvy.com] has joined #ruby
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
stringoO [stringoO!~JLstring@CPE001346cbe31b-CM00111ae502a8.cpe.net.cable.rogers.com] has joined #ruby
afex [afex!~kthornhil@wsip-68-225-20-130.oc.oc.cox.net] has quit [#ruby]
<Okasu> any japaneese here?
ksinkar [ksinkar!~ksinkar@117.195.107.159] has joined #ruby
conor_ireland [conor_ireland!~conor_ire@89.100.121.49] has joined #ruby
Skaag [Skaag!~Skaag@cpe-67-247-51-89.nyc.res.rr.com] has joined #ruby
marcuspat [marcuspat!~marcuspat@c-76-105-213-37.hsd1.or.comcast.net] has joined #ruby
<ReinH> if the range is enumerable, you can do something like this to create an array:
Natch| [Natch|!~natch@178.73.216.150] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
colint [colint!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
<ReinH> [1..4, 6..9].map(&:to_a).reduce(:+) #=> [1, 2, 3, 4, 6, 7, 8, 9]
MUILTR [MUILTR!~MLINTH@adsl-98-80-221-224.mcn.bellsouth.net] has joined #ruby
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
CodyLinux [CodyLinux!~cody@80.249.82.205] has joined #ruby
<mitchty> think i'd prefer flatten over reduce in this case like so: 1..4,6..9].map(&:to_a).flatten
CodyLinux [CodyLinux!~cody@80.249.82.205] has joined #ruby
al3xnull [al3xnull!~al3xnull@cpe-76-188-178-7.neo.res.rr.com] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
BrianJ [BrianJ!~textual@64.134.224.236] has joined #ruby
CodyLinux [CodyLinux!~cody@80.249.82.205] has joined #ruby
vikramverma [vikramverma!~vikramver@110.92.102.47] has joined #ruby
CodyLinux [CodyLinux!~cody@80.249.82.205] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
CodyLinux [CodyLinux!~cody@80.249.82.205] has joined #ruby
Cody1 [Cody1!~cody@80.249.82.205] has joined #ruby
CodyMaverick [CodyMaverick!~cody@80.249.82.205] has joined #ruby
<Okasu> class_eval nice
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
<Okasu> it's funny that class_eval defines instance methods and instance_eval defines class methods
<Okasu> s/funny/sick/
Marco [Marco!~marco@Marco-2.Kiewit.Dartmouth.EDU] has joined #ruby
<Okasu> can yoive me some examples of class_exec with args?
tonini [tonini!~zastav@edge.garaio.com] has joined #ruby
vmatiyko [vmatiyko!~vmatiyko@178.120.67.145] has joined #ruby
ef [ef!~E.F@183.14.52.125] has joined #ruby
burgestrand1 [burgestrand1!~burgestra@81-229-85-235-no66.tbcn.telia.com] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
scotte1 [scotte1!~E.F@183.14.52.125] has joined #ruby
<Okasu> i can't get
<Okasu> .class_exec transfers args into block, right?
scotte1 [scotte1!~E.F@183.14.52.125] has quit [#ruby]
wjw [wjw!~JackWaugh@c-68-49-254-13.hsd1.va.comcast.net] has joined #ruby
wjw [wjw!~JackWaugh@c-68-49-254-13.hsd1.va.comcast.net] has quit ["Leaving"]
isaacs [isaacs!~isaacs@c-24-130-255-107.hsd1.ca.comcast.net] has joined #ruby
<isaacs> hey
<isaacs> anyone here super familiar with ruby's Dir.glob stuff?
djdb [djdb!~digitalbo@linux.minsk.tutby.com] has joined #ruby
andyl [andyl!~andy@c-98-207-232-251.hsd1.ca.comcast.net] has joined #ruby
<isaacs> it seems to say in the code that Dir["**.js"] should be like **/*.js
<isaacs> but it desn't seem to be.
<sj26> fyi, this is what I came up with for sorting and merging a set of numbers and ranges: https://gist.github.com/1558727
<isaacs> it'd be great if someone could tell me that i'm just misreading the docs, becasue that'd mean that i don't have to implement this behavior in miniglob ;)
yxhuvud [yxhuvud!mongo@h-17-181.a149.priv.bahnhof.se] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
m2querd [m2querd!~m2querd@41.183.20.202] has joined #ruby
benwoody [benwoody!~ben@ln.benwoodall.com] has quit [#ruby]
achiu [achiu!~Adium@ip68-5-18-17.oc.oc.cox.net] has joined #ruby
<Okasu> why it doesn't transfer arg to block?
Cervajz [Cervajz!~Cervajz@opensuse/member/Cervajz] has joined #ruby
gianlucadv [gianlucadv!~gianlucad@host175-49-dynamic.1-79-r.retail.telecomitalia.it] has joined #ruby
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
ly- [ly-!~ly-@unaffiliated/ly-] has joined #ruby
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
ChampS_ [ChampS_!~ChampS@141.32.27.50] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
pen [pen!~pen@140.112.30.131] has joined #ruby
djdb [djdb!~digitalbo@linux.minsk.tutby.com] has joined #ruby
kuranai [kuranai!~kuranai@e177095183.adsl.alicedsl.de] has joined #ruby
arthurlockhart [arthurlockhart!~cinch@60-242-128-8.static.tpgi.com.au] has joined #ruby
ChampS_ [ChampS_!~ChampS@141.32.27.50] has joined #ruby
StevenMcD [StevenMcD!~Miranda@196-215-118-114.dynamic.isadsl.co.za] has joined #ruby
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby
mdel_ [mdel_!~mdel@pool-71-175-17-16.phlapa.fios.verizon.net] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
tobyo [tobyo!~tobyo@cpe-24-165-22-166.san.res.rr.com] has joined #ruby
sandelius [sandelius!~textual@90-231-202-62-no214.tbcn.telia.com] has joined #ruby
xpot [xpot!~xpot@166-70-100-198.ip.xmission.com] has joined #ruby
<tobyo> l
kennethreitz [kennethreitz!~kennethre@c-24-127-96-129.hsd1.va.comcast.net] has joined #ruby
<Okasu> https://ideone.com/ehKrn when i use it like class_eval it works fine
<Okasu> but when i use args it's fails
pencilcheck [pencilcheck!~pen@2001:288:1001:28:8102:57f4:39c5:13d7] has joined #ruby
isaacs [isaacs!~isaacs@c-24-130-255-107.hsd1.ca.comcast.net] has joined #ruby
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
thone_ [thone_!~thone@g225087199.adsl.alicedsl.de] has joined #ruby
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby
zommi [zommi!quassel@nat/ibm/x-ecchprlsimuwszyo] has joined #ruby
senny [senny!~senny@edge.garaio.com] has joined #ruby
PANBing [PANBing!~PANBing@2001:250:3000:2b30:9040:32ac:84ac:2da8] has joined #ruby
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
kaneda_ [kaneda_!~kaneda@5acb1c98.bb.sky.com] has joined #ruby
mafolz [mafolz!~mafolz@dhcp50-210.start.uni-saarland.de] has joined #ruby
otakutomo [otakutomo!~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has joined #ruby
<Okasu> got it, x not in hi's scope
ph^ [ph^!~ph^@79.135.7.162] has joined #ruby
eighty4 [eighty4!~eighty4@unaffiliated/eighty4] has joined #ruby
Helius [Helius!~Adium@109.117.154.10] has joined #ruby
isaacs [isaacs!~isaacs@c-24-130-255-107.hsd1.ca.comcast.net] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
tilde` [tilde`!~tilde@host226-185-dynamic.23-79-r.retail.telecomitalia.it] has joined #ruby
crankyco_ [crankyco_!~crankycod@24-246-44-226.cable.teksavvy.com] has joined #ruby
Doppp [Doppp!~Doppp@unaffiliated/doppp] has joined #ruby
rpowell [rpowell!~rpowell@CPE-58-164-72-158.lns1.ken.bigpond.net.au] has joined #ruby
ly- [ly-!~ly-@unaffiliated/ly-] has joined #ruby
Sliker [Sliker!~ponies@46.208.206.144] has joined #ruby
mdel_ [mdel_!~mdel@pool-71-175-17-16.phlapa.fios.verizon.net] has joined #ruby
batlock666 [batlock666!~quassel@bvderbau.ugent.be] has joined #ruby
polysics [polysics!~polysics@host202-154-dynamic.7-79-r.retail.telecomitalia.it] has joined #ruby
polysics [polysics!~polysics@host202-154-dynamic.7-79-r.retail.telecomitalia.it] has quit [#ruby]
ChampS_ [ChampS_!~ChampS@141.32.27.50] has joined #ruby
eldariof [eldariof!~CLD@79.126.104.178] has joined #ruby
bigkm [bigkm!~bigkm@123-243-191-137.static.tpgi.com.au] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
p1d [p1d!~p1d@ns1.vonaffenfels.de] has joined #ruby
aknagi [aknagi!~aknagi@cpc7-dals14-2-0-cust243.hari.cable.virginmedia.com] has joined #ruby
xec [xec!~xec@2a00:10b0:1:1002:5ab0:35ff:fef8:6a01] has joined #ruby
pietro_ [pietro_!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
Spockz [Spockz!~Spockz@095-097-113-150.static.chello.nl] has joined #ruby
cyri_ [cyri_!~cyri_@236.200.72.86.rev.sfr.net] has joined #ruby
shevy [shevy!~shevy@194-166-100-13.adsl.highway.telekom.at] has joined #ruby
Deiu [Deiu!~deiu@unaffiliated/deiu] has joined #ruby
pi3r [pi3r!~pi3r@LSt-Amand-152-32-39-189.w80-11.abo.wanadoo.fr] has joined #ruby
rpowell [rpowell!~rpowell@CPE-124-184-112-16.lns14.cht.bigpond.net.au] has joined #ruby
Helius [Helius!~Adium@212.31.227.18] has joined #ruby
WiiW [WiiW!~sevkzh@unaffiliated/sevkme] has joined #ruby
<WiiW> hello
<WiiW> how to read a large file's pos at 2000000 ?
<Okasu> WiiW: split it
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
<WiiW> Okasu: why not use File.seek(200000)
marcuspat [marcuspat!~marcuspat@c-76-105-213-37.hsd1.or.comcast.net] has joined #ruby
abstrusenick [abstrusenick!~abstrusen@bb116-15-214-58.singnet.com.sg] has joined #ruby
rpowell [rpowell!~rpowell@CPE-124-179-28-148.lns6.ken.bigpond.net.au] has joined #ruby
abstrusenick [abstrusenick!~abstrusen@bb116-15-214-58.singnet.com.sg] has joined #ruby
<Okasu> WiiW: you can seek faster with minor files than with one large, i think
isaacs [isaacs!~isaacs@c-24-130-255-107.hsd1.ca.comcast.net] has quit [#ruby]
dekroning [dekroning!~dekroning@541B931D.cm-5-4c.dynamic.ziggo.nl] has joined #ruby
Manhose [Manhose!~Manhose@dial-b1-238-132.telepac.pt] has joined #ruby
ephemerian [ephemerian!~ian@82-69-1-248.dsl.in-addr.zen.co.uk] has joined #ruby
aantix [aantix!~jjones@70-36-141-115.dsl.dynamic.sonic.net] has joined #ruby
daglees [daglees!~belvedere@unaffiliated/daglees] has joined #ruby
conor_ireland_ [conor_ireland_!~conor_ire@89.100.121.49] has joined #ruby
Ammar01 [Ammar01!~hassaa10@gatej.mh.bbc.co.uk] has joined #ruby
Asher [Asher!~asher@98.158.127.150] has joined #ruby
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby
CodeZombie [CodeZombie!~CodeZombi@65.19.245.153] has joined #ruby
<CodeZombie> shouldn't this find the hello method? https://gist.github.com/244c8ef625060d5aa567
Drakx [Drakx!~dunno@unaffiliated/drakx] has joined #ruby
Locke23rus [Locke23rus!~quassel@128-70-109-104.broadband.corbina.ru] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
tvo [tvo!~tvo@katapult/developer/tvo] has joined #ruby
<CodeZombie> nvm, class vs instance method issue
Emmanuel_Chanel [Emmanuel_Chanel!star2@ZQ128170.ppp.dion.ne.jp] has joined #ruby
<aknagi> CodeZombie: I'm not sure it is a class vs instance method issue. I think line 3 should be 'include MobileAdminApi::Processors::Log'.
<CodeZombie> aknagi: I did give that a try, however I got the same response
<aknagi> CodeZombie: Weird - it works here. Let me try again ...
<CodeZombie> that's a simpler class I was testing with
<CodeZombie> calling Demo::Response.hello_world causes an error, but Demo::Response.hello("name") works
<aknagi> OK - sorry to bother you. I think I need to brush up on this.
<CodeZombie> no worries, thanks for taking a look :)
polysics [polysics!~polysics@host202-154-dynamic.7-79-r.retail.telecomitalia.it] has joined #ruby
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby
geaif [geaif!~geaif@AToulouse-554-1-40-57.w92-149.abo.wanadoo.fr] has joined #ruby
hzlocky [hzlocky!~me@dynamic-vpdn-93-125-16-28.telecom.by] has joined #ruby
wedtm [wedtm!~wedtm@173-12-163-78-oregon.hfc.comcastbusiness.net] has joined #ruby
EddieS [EddieS!~ed@212.59.167.161] has joined #ruby
<hzlocky> Hey, guys.
abstrusenick [abstrusenick!~abstrusen@bb116-15-214-58.singnet.com.sg] has joined #ruby
<hzlocky> I am writting chat bot for twitter, and got a architecture question - I am planning to make an cron job that once per 5 min
<hzlocky> will run rake task
<hzlocky> is it a good idea?
canton7 [canton7!~canton7@95.150.107.113] has joined #ruby
<hzlocky> or there is some better option - like event_machine?
<CodeZombie> not really a ruby question, but has anyone seen this char before? "§"
<CodeZombie> no idea what it is, and it's in some of my server logs
<CodeZombie> not even sure that pasted correctly :/
nicoulaj [nicoulaj!~nicoulaj@V10K2.bull.fr] has joined #ruby
canton8 [canton8!~canton7@95.150.107.113] has joined #ruby
johanhsfy [johanhsfy!~johan@81-225-127-57-no201.tbcn.telia.com] has joined #ruby
gen0cide_ [gen0cide_!~Security@Wilkins3.static.monkeybrains.net] has joined #ruby
puru7 [puru7!~Purusho@ppp-71-139-14-53.dsl.snfc21.pacbell.net] has joined #ruby
omry_ [omry_!~omry@DSL212-235-83-63.bb.netvision.net.il] has joined #ruby
punkrawkR [punkrawkR!~freddiebo@80.68.120.179.karlsborgsenergi.se] has joined #ruby
<aknagi> hzlocky: This used to be the standard way of scheduling tasks on all Heroku deployements, and it is nice and simple. Why does the chat-bot need rake though?
SterNiX [SterNiX!~LessIsMor@2.176.224.148] has joined #ruby
SterNiX [SterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
mengu [mengu!~mengu@95.13.68.170] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
<hzlocky> aknagi: I am not use Heroku anywhere
wilhelmn [wilhelmn!~textual@oyt234.internetdsl.tpnet.pl] has joined #ruby
<hzlocky> aknagi: so, you recomend to use event_machine for twitter, right?
<aknagi> hzlocky: My point is that cron'ing a rake task is not a inherently bad idea in and of itself.
poseid [poseid!52877a23@gateway/web/freenode/ip.82.135.122.35] has joined #ruby
<hzlocky> aknagi: the problem that I would like to send reply to sender asap, croning means that some latency will appear just of definitio
<aknagi> hzlocky: I have never used event_machine, so I don't know anything about it I'm afriad,
<hzlocky> n of croning
<hzlocky> unfortunally heroku is still too expensive for individual using(
<aknagi> hzlocky: Yes - in that case cron'ing seems a bad idea.
<aknagi> How do you get the tweets - through the twitter api?
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
<hzlocky> yes, ( using twitter gem)
segora [segora!~marc@p5793C7F4.dip0.t-ipconnect.de] has joined #ruby
<aknagi> Could you poll for tweets in a loop - or is it more complicated than that?
<hzlocky> eh, better then add event_machine
<aknagi> hzlocky: I don't know, as I've never used event_machine. I guess events are better if you are doing alot of tweets, but if it's less then 100 a day polling is much more simple.
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby
Codif [Codif!~codif@84.120.204.160.dyn.user.ono.com] has joined #ruby
ChampS_ [ChampS_!~ChampS@141.32.27.50] has joined #ruby
tvw [tvw!~tv@e176007235.adsl.alicedsl.de] has joined #ruby
vitoravelino [vitoravelino!~rockhampt@unaffiliated/vtr] has joined #ruby
daglees__ [daglees__!~belvedere@unaffiliated/daglees] has joined #ruby
tilde[afk] [tilde[afk]!~tilde@host135-194-dynamic.13-79-r.retail.telecomitalia.it] has joined #ruby
Locke23rus_ [Locke23rus_!~quassel@128-70-119-37.broadband.corbina.ru] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
RomD [RomD!~Roman@nrbg-4d0774f1.pool.mediaWays.net] has joined #ruby
saltmiser [saltmiser!~chatzilla@70.15.225.198.res-cmts.ovr.ptd.net] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@2001:5c0:1000:a::5e7] has joined #ruby
clockwize [clockwize!~clockwize@81.19.48.130] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby
andyl [andyl!~andy@c-98-207-232-251.hsd1.ca.comcast.net] has joined #ruby
eldariof [eldariof!~CLD@95.84.7.159] has joined #ruby
rpowell [rpowell!~rpowell@CPE-124-179-28-148.lns6.ken.bigpond.net.au] has joined #ruby
marcol [marcol!~marcol@ppp-69-60.26-151.libero.it] has joined #ruby
geaif [geaif!~geaif@AToulouse-554-1-40-57.w92-149.abo.wanadoo.fr] has joined #ruby
j3ll3 [j3ll3!~j3ll3@2001:470:7938:1:805b:ffab:4642:7126] has joined #ruby
jbpros [jbpros!~jbpros@54-178-112-217.dyn.adsl.belcenter.be] has joined #ruby
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
canton7 [canton7!~canton7@95.150.107.113] has joined #ruby
norex [norex!~quassel@41-135-90-67.dsl.mweb.co.za] has joined #ruby
RomD [RomD!~Roman@nrbg-4d0774f1.pool.mediaWays.net] has joined #ruby
namidark [namidark!~namidark@c-98-230-1-143.hsd1.fl.comcast.net] has joined #ruby
sirajperson [sirajperson!~siraj@c-76-111-247-201.hsd1.fl.comcast.net] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
leehambley [leehambley!~leehamble@pd956c64f.dip0.t-ipconnect.de] has joined #ruby
jds [jds!~jds@188-220-60-85.zone11.bethere.co.uk] has joined #ruby
cousine [cousine!~cousine@196.221.242.180] has joined #ruby
hinogi [hinogi!~Stefan@mnsr-4db0a9cb.pool.mediaWays.net] has joined #ruby
hinogi [hinogi!~Stefan@facade/contributor/hinogi] has joined #ruby
provideal_ [provideal_!~hornp@p4FFF8371.dip.t-dialin.net] has joined #ruby
chrismcg [chrismcg!~chrismcg@pdpc/supporter/active/chrismcg] has joined #ruby
pen [pen!~pen@g1pc2n249.g1.ntu.edu.tw] has joined #ruby
unda7V7erse [unda7V7erse!~unda7V7er@sto95-5-78-237-254-52.fbx.proxad.net] has joined #ruby
ChampS_ [ChampS_!~ChampS@wlan1-109.zw.fh-zwickau.de] has joined #ruby
namidark_ [namidark_!~namidark@c-98-230-1-143.hsd1.fl.comcast.net] has joined #ruby
dazoakley [dazoakley!~dazoakley@hocuspokus.vm.bytemark.co.uk] has joined #ruby
palcu [palcu!~alex@89.122.187.223] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
linusoleander [linusoleander!~linus@h246n3c1o1042.bredband.skanova.com] has joined #ruby
tcurdt [tcurdt!~tcurdt@dslb-188-097-009-235.pools.arcor-ip.net] has joined #ruby
bigkm [bigkm!~bigkm@123-243-191-137.static.tpgi.com.au] has joined #ruby
looopy [looopy!~looopy@pool-141-156-46-253.washdc.btas.verizon.net] has joined #ruby
strife25 [strife25!~strife25@cpe-098-026-018-050.nc.res.rr.com] has joined #ruby
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby
vereteran [vereteran!~vereteran@static.88-198-170-117.clients.your-server.de] has joined #ruby
ly- [ly-!~ly-@unaffiliated/ly-] has joined #ruby
tk_ [tk_!~tk@p083027.doubleroute.jp] has joined #ruby
xpot [xpot!~xpot@166-70-100-198.ip.xmission.com] has joined #ruby
daglees___ [daglees___!~belvedere@unaffiliated/daglees] has joined #ruby
dch4pm4n [dch4pm4n!~d@gateway/tor-sasl/dchapman1988] has joined #ruby
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
nanderoo [nanderoo!~nanders@38.124.137.226] has joined #ruby
kapz [kapz!kapz@117.200.201.150] has joined #ruby
kapz [kapz!kapz@117.200.201.150] has quit [#ruby]
tilde` [tilde`!~tilde@host226-185-dynamic.23-79-r.retail.telecomitalia.it] has joined #ruby
bastilian [bastilian!~bastilian@chello213047077012.23.11.vie.surfer.at] has joined #ruby
peterhellberg [peterhellberg!~peterhell@213.115.122.2] has joined #ruby
tk_ [tk_!~tk@p252193.doubleroute.jp] has joined #ruby
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby
Deiu [Deiu!~deiu@lor-8175.int-evry.fr] has joined #ruby
Deiu [Deiu!~deiu@unaffiliated/deiu] has joined #ruby
Deiu [Deiu!~deiu@unaffiliated/deiu] has quit [#ruby]
daglees___ [daglees___!~belvedere@unaffiliated/daglees] has joined #ruby
mengu_ [mengu_!~mengu@unaffiliated/mengu] has joined #ruby
cyri_ [cyri_!~cyri_@236.200.72.86.rev.sfr.net] has joined #ruby
peterhellberg [peterhellberg!~peterhell@213.115.122.2] has joined #ruby
oponder [oponder!~oponder@mail.memocom.nl] has joined #ruby
oponder_ [oponder_!~oponder@mail.memocom.nl] has joined #ruby
oponder_ [oponder_!~oponder@mail.memocom.nl] has joined #ruby
nowthatsamatt [nowthatsamatt!~nowthatsa@adsl-98-85-31-238.mco.bellsouth.net] has joined #ruby
rickmasta [rickmasta!~rickmasta@pool-71-183-247-164.nycmny.fios.verizon.net] has joined #ruby
cek [cek!~cek@crius.pantheon.fused.net] has joined #ruby
<cek> what do you use for background process scheduling?
tomzx [tomzx!~tomzx@dsl-216-221-39-59.aei.ca] has joined #ruby
enroxorz [enroxorz!~enroxorz@65-117-22-130.dia.static.qwest.net] has joined #ruby
enroxorz [enroxorz!~enroxorz@unaffiliated/enroxorz] has joined #ruby
tmiller [tmiller!~tmiller@fw.luckie.net] has joined #ruby
nyuszika7h [nyuszika7h!nyuszika7h@2001:4ba0:cafe:4d8::1] has joined #ruby
`brendan [`brendan!~b@66-208-246-34-ubr02b-waldlk01-mi.hfc.comcastbusiness.net] has joined #ruby
josephwi_ [josephwi_!~josephwil@109.231.237.58] has joined #ruby
josephwilk [josephwilk!~josephwil@109.231.237.58] has joined #ruby
Sliker [Sliker!~ponies@31.185.131.187] has joined #ruby
Synthead [Synthead!~max@mc62c36d0.tmodns.net] has joined #ruby
kakashi__ [kakashi__!~kakashi_@nltk/kakashi] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
flippingbits [flippingbits!~anonymous@ip-81-210-178-39.unitymediagroup.de] has joined #ruby
Pip [Pip!~Pip@host-190-146-66-217.spbmts.ru] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
tesmar [tesmar!~tesmar@rrcs-70-62-109-131.midsouth.biz.rr.com] has joined #ruby
_JSilva [_JSilva!~JSilva@109.80.161.20] has joined #ruby
andyl [andyl!~andy@c-98-207-232-251.hsd1.ca.comcast.net] has joined #ruby
tommyvyo_ [tommyvyo_!~tommyvyo@38.123.129.115] has joined #ruby
tommyvyo [tommyvyo!~tommyvyo@38.123.129.115] has joined #ruby
btanaka [btanaka!~textual@173-228-34-51.dsl.dynamic.sonic.net] has joined #ruby
geaif [geaif!~geaif@AToulouse-554-1-40-57.w92-149.abo.wanadoo.fr] has joined #ruby
fermion [fermion!~fermion@venkman.brightcove.com] has joined #ruby
tcurdt [tcurdt!~tcurdt@dslb-188-097-009-235.pools.arcor-ip.net] has joined #ruby
niklasb [niklasb!~codeslay0@p5B310A49.dip0.t-ipconnect.de] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
ly- [ly-!~ly-@pth-ar-interco.univ-paris1.fr] has joined #ruby
ly- [ly-!~ly-@unaffiliated/ly-] has joined #ruby
Jackneill [Jackneill!~Jackneill@unaffiliated/jackneill] has joined #ruby
gen0cide_ [gen0cide_!~TigerBloo@67-207-96-206.static.wiline.com] has joined #ruby
gen0cide_ [gen0cide_!~TigerBloo@67-207-96-206.static.wiline.com] has joined #ruby
yfeldblum [yfeldblum!~Jay@pool-71-246-76-76.bltmmd.east.verizon.net] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
zommi_ [zommi_!quassel@nat/ibm/x-ribjxczrnubgrjlp] has joined #ruby
crankycoder [crankycoder!~crankycod@out-on-196.wireless.telus.com] has joined #ruby
Cervajz [Cervajz!~Cervajz@opensuse/member/Cervajz] has joined #ruby
bigkm [bigkm!~bigkm@123-243-191-137.static.tpgi.com.au] has joined #ruby
bbttxu [bbttxu!~adam@nt8rsctf1.unt.ad.unt.edu] has joined #ruby
TheNumb [TheNumb!thenumb@gateway/shell/mydevil.net/x-zmodyaaxmhsznhzv] has joined #ruby
jwmann [jwmann!~Adium@modemcable242.110-201-24.mc.videotron.ca] has joined #ruby
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has joined #ruby
logic [logic!~logic@unaffiliated/bitch333z] has joined #ruby
josesaldana [josesaldana!~josesalda@206.132.224.107] has joined #ruby
indstry [indstry!~apple@c-71-238-98-243.hsd1.mi.comcast.net] has joined #ruby
fermion [fermion!~fermion@venkman.brightcove.com] has joined #ruby
philcrissman [philcrissman!~philcriss@206.57.45.116] has joined #ruby
vraa [vraa!~vraa@c-76-30-135-64.hsd1.tx.comcast.net] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@216.199.155.226.nw.nuvox.net] has joined #ruby
bnewton [bnewton!~bnewton@cpe-66-68-94-56.austin.res.rr.com] has joined #ruby
sepp2k [sepp2k!~sexy@g224101025.adsl.alicedsl.de] has joined #ruby
tvw [tvw!~tv@212.79.9.150] has joined #ruby
tmiller [tmiller!~tmiller@fw.luckie.net] has joined #ruby
zalesz [zalesz!~zalesz@user-109-243-95-166.play-internet.pl] has joined #ruby
sbanwart_ [sbanwart_!~sbanwart@66.6.175.18] has joined #ruby
flippingbits [flippingbits!~anonymous@ip-81-210-178-39.unitymediagroup.de] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
cantbeco_ [cantbeco_!~cantbecoo@173-15-164-136-BusName-Philadelphia.hfc.comcastbusiness.net] has joined #ruby
peterhellberg [peterhellberg!~peterhell@213.115.122.2] has joined #ruby
Asher [Asher!~asher@98.158.127.150] has joined #ruby
carlyle [carlyle!~carlyle@rrcs-96-10-255-203.midsouth.biz.rr.com] has joined #ruby
Asher [Asher!~asher@98.158.127.150] has joined #ruby
seii [seii!~sei@user-3c2h3m6.cable.mindspring.com] has joined #ruby
bastilian [bastilian!~bastilian@chello213047077012.23.11.vie.surfer.at] has joined #ruby
llaskin [llaskin!~Leo@c-24-128-198-93.hsd1.ma.comcast.net] has joined #ruby
<llaskin> hi, can someone help me with this gist: https://gist.github.com/1560250 ?
<llaskin> it doesn't seem to output a valid CSV
<llaskin> it just ends up being a series of numbers in the CSV file
peterhel_ [peterhel_!~peterhell@213.115.122.2] has joined #ruby
caveat- [caveat-!hoax@gateway/shell/bshellz.net/x-vjiuetrgdurmbpbc] has joined #ruby
evantravers [evantravers!~textual@fw.luckie.net] has joined #ruby
dexcs [dexcs!~dexcs@HSI-KBW-109-193-252-135.hsi7.kabel-badenwuerttemberg.de] has joined #ruby
asobrasil [asobrasil!~asantioli@palpatine.privatedns.com] has joined #ruby
tilde` [tilde`!~tilde@host135-194-dynamic.13-79-r.retail.telecomitalia.it] has joined #ruby
kf8a [kf8a!~kf8a@user-33c730.user.msu.edu] has joined #ruby
Jakee` [Jakee`!~Jakee`@5ad317fe.bb.sky.com] has joined #ruby
looopy [looopy!~looopy@pool-141-156-46-253.washdc.btas.verizon.net] has joined #ruby
tmiller [tmiller!~tmiller@fw.luckie.net] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
moshee [moshee!~moshee@c-50-135-229-127.hsd1.wa.comcast.net] has joined #ruby
moshee [moshee!~moshee@unaffiliated/moshee] has joined #ruby
conor_ireland [conor_ireland!~conor_ire@89.100.121.49] has joined #ruby
virunga [virunga!~virunga@151.64.15.224] has joined #ruby
dcarper1 [dcarper1!~Adium@50-73-187-102-pennsylvania.hfc.comcastbusiness.net] has joined #ruby
jtrudeau [jtrudeau!~jeff@c-76-127-237-194.hsd1.ma.comcast.net] has joined #ruby
evantravers [evantravers!~textual@fw.luckie.net] has joined #ruby
strife25 [strife25!strife25@nat/ibm/x-cxzquqrrqhtcuoxa] has joined #ruby
enroxorz [enroxorz!~enroxorz@65-117-22-130.dia.static.qwest.net] has joined #ruby
enroxorz [enroxorz!~enroxorz@unaffiliated/enroxorz] has joined #ruby
ryh [ryh!~ryh@host-174-45-115-181.bzm-mt.client.bresnan.net] has joined #ruby
booginga [booginga!~booginga@204-15-4-10-static.webjogger.net] has joined #ruby
janissary [janissary!~user@adsl-98-85-0-232.mco.bellsouth.net] has joined #ruby
frist44 [frist44!~frist44@c-69-253-163-29.hsd1.pa.comcast.net] has joined #ruby
flip_digits [flip_digits!~textual@c-76-122-14-228.hsd1.fl.comcast.net] has joined #ruby
frist44 [frist44!~frist44@c-69-253-163-29.hsd1.pa.comcast.net] has quit [#ruby]
lateau_ [lateau_!~lateau@KD125054233174.ppp-bb.dion.ne.jp] has joined #ruby
frist44 [frist44!~frist44@c-69-253-163-29.hsd1.pa.comcast.net] has joined #ruby
lateau_ [lateau_!~lateau@KD125054233174.ppp-bb.dion.ne.jp] has quit [#ruby]
cousine [cousine!~cousine@196.221.242.180] has joined #ruby
kennethreitz [kennethreitz!~kennethre@c-24-127-96-129.hsd1.va.comcast.net] has joined #ruby
Marco [Marco!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby
Cervajz [Cervajz!~Cervajz@opensuse/member/Cervajz] has joined #ruby
zastav [zastav!~zastav@78-8.61-188.cust.bluewin.ch] has joined #ruby
rohit_help [rohit_help!783eb215@gateway/web/freenode/ip.120.62.178.21] has joined #ruby
canton7 [canton7!~canton7@95.150.107.113] has joined #ruby
<rohit_help> Hello I have a text file with entries like "1 ROHIT
<rohit_help> 2 JAIN"
<rohit_help> and so on
<rohit_help> I want to display only the words
<rohit_help> How should I o about it
<rohit_help> A very basic confusion
zastav [zastav!~zastav@78-8.61-188.cust.bluewin.ch] has joined #ruby
perturbedpanda [perturbedpanda!~perturbed@matthewabrown.com] has joined #ruby
Guest34671 [Guest34671!~LessIsMor@2.176.224.148] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
<shevy> rohit_help are there newlines?
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby
<shevy> anyway, one simple way could be to do .split(' ') and get only the odd entries
anoNxeRo [anoNxeRo!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
<rohit_help> @shevy yes.. there is a newline after each entry .. like after "1 Rohit"
<shevy> yeah... you could also split at \n first, then at ' '
<shevy> or you use a regex
<shevy> but splitting is easier
<rohit_help> and after split.. how do I access individual elements?
<canton7> File.open('file') do |f|; f.readlines.map{ |l| l.split[1] }; end
<shevy> well, you will then have an array
<shevy> and array entries can be accessed via []
<shevy> 1,3,5,7 should have the numbers, 2,4,6,8 etc.. the words
<shevy> oh no
v0n [v0n!~v4n@2607:fad8:4:0:21e:8cff:fe4d:2f7d] has joined #ruby
<shevy> vice versa :)
<shevy> I forgot 0
<S0lign0c> hi, can i do something like [1,2] + [1,3] = [2,5] in ruby ?
llaskin [llaskin!~Leo@c-24-128-198-93.hsd1.ma.comcast.net] has quit [#ruby]
<canton7> oops, words = File.open('file') do |f|; f.each_line.map{ |l| l.split[1] }; end
<shevy> S0lign0c hmm perhaps with Matrix module
<shevy> ah perhaps not :/
<S0lign0c> shevy: okay
<shevy> Matrix[1,2] + Matrix[1,3] # => Matrix[[2, 0, 0, 0], [1, 2, 0, 0]]
<shevy> hehe that would be totally wrong ...
anoNxeRo [anoNxeRo!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
<S0lign0c> yep oO
<rohit_help> @shevy @canton7 thanks
<rohit_help> :)
palcu [palcu!~alex@89.122.187.223] has joined #ruby
<S0lign0c> >> Matrix[[1],[2]] + Matrix[[2],[3]]
<S0lign0c> => Matrix[[3], [5]]
<shevy> ohhhh
<shevy> so I forgot a []
<shevy> good to know :)
<S0lign0c> shevy: the syntax is like octave o/
<shevy> octave?
<shevy> is that the music program?
<S0lign0c> octave the Maths programming languages
<S0lign0c> Version open source of Matlab
<shevy> oh
bostonbenz_ [bostonbenz_!~ben@75-150-71-83-NewEngland.hfc.comcastbusiness.net] has joined #ruby
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
zommi [zommi!quassel@nat/ibm/x-czlrvblkrnoqpgpi] has joined #ruby
<bostonbenz_> Hi all, does anyone know how to make a call to PHP library in a ruby file? I am using Magento(e-commerce) XMLRPC/SOAP API and they have examples for PHP client. I got tons of troubles trying to use Ruby SOAP/XMLRPC libraries instead and got tons of issues. So I am wondering if I can use the php library in my ruby file to get the data I want.
colint [colint!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
andynu_ [andynu_!~andynu@18.157.249.37] has joined #ruby
andynu_ [andynu_!~andynu@18.157.249.37] has joined #ruby
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has joined #ruby
marcuspat [marcuspat!~marcuspat@c-76-105-213-37.hsd1.or.comcast.net] has joined #ruby
pootpoot [pootpoot!~pootpoot@38.108.250.130] has joined #ruby
<bostonbenz_> Hi all, does anyone know how to make a call to PHP library in a ruby file? I am using Magento(e-commerce) XMLRPC/SOAP API and they have examples for PHP client. I got tons of troubles trying to use Ruby SOAP/XMLRPC libraries instead and got tons of issues. So I am wondering if I can use the php library in my ruby file to get the data I want.
ferbass [ferbass!~ferbass@201-048-211-049.static.ctbctelecom.com.br] has joined #ruby
bigkm [bigkm!~bigkm@123-243-191-137.static.tpgi.com.au] has joined #ruby
<v0n> hey,
<v0n> does anyone have a clue on how to compare 2 RGB colors?
<S0lign0c> can I dou [[2], [4]] to [2, 4] ?
<S0lign0c> v0n: no sorrycac
clockwize [clockwize!~clockwize@81.19.48.130] has joined #ruby
antonio21 [antonio21!~tony@93-41-250-17.ip84.fastwebnet.it] has joined #ruby
<antonio21> dsdsd
<v0n> Like color1.almost?(color2) which will say true if they are visually approximative
<shevy> S0lign0c, [[2], [4]].flatten # => [2, 4]
<antonio21> love
<S0lign0c> yes to late
<antonio21> like
antonio21 [antonio21!~tony@93-41-250-17.ip84.fastwebnet.it] has quit [#ruby]
`brendan [`brendan!~b@66-208-246-34-ubr02b-waldlk01-mi.hfc.comcastbusiness.net] has joined #ruby
crankycoder [crankycoder!~crankycod@24-246-44-226.cable.teksavvy.com] has joined #ruby
dasfugufish [dasfugufish!~Adium@68-170-39-205.mammothnetworks.com] has joined #ruby
theRoUS [theRoUS!KenCoar@nat/redhat/x-fnxpmyshadvvmjpj] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
confounds [confounds!~confounds@CPE78cd8e667600-CM78cd8e6675fd.cpe.net.cable.rogers.com] has joined #ruby
mitchty [mitchty!~mitchty@ec2-50-19-41-37.compute-1.amazonaws.com] has joined #ruby
Helius [Helius!~Adium@109.116.214.138] has joined #ruby
phantomfake [phantomfake!~whats_in_@pool-71-190-229-236.nycmny.fios.verizon.net] has joined #ruby
andyl [andyl!~andy@c-98-207-232-251.hsd1.ca.comcast.net] has joined #ruby
elliot_ [elliot_!~elliot@77.125.140.132] has joined #ruby
Asher [Asher!~asher@98.158.127.150] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
elliot_ [elliot_!~elliot@77.125.140.132] has joined #ruby
eddsteel [eddsteel!~edd@ec2-184-72-38-42.us-west-1.compute.amazonaws.com] has quit [#ruby]
dekroning [dekroning!~dekroning@541B931D.cm-5-4c.dynamic.ziggo.nl] has joined #ruby
febxmi [febxmi!~fedel@ppp-69-60.26-151.libero.it] has joined #ruby
strife25 [strife25!strife25@nat/ibm/x-hxjgskebflefpibj] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
Synthead [Synthead!~max@50-76-231-54-static.hfc.comcastbusiness.net] has joined #ruby
Marco [Marco!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby
BradMc_ [BradMc_!brad@rs.n8qq.com] has joined #ruby
kennethreitz [kennethreitz!~kennethre@c-24-127-96-129.hsd1.va.comcast.net] has joined #ruby
Marco__ [Marco__!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
elliot98 [elliot98!~elliot@77.125.140.132] has joined #ruby
elliot98 [elliot98!~elliot@unaffiliated/elliot98] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
andrewhl [andrewhl!~andrew@24-246-15-43.cable.teksavvy.com] has joined #ruby
jsbwnh [jsbwnh!~fedel@adsl-ull-236-198.50-151.net24.it] has joined #ruby
Asher [Asher!~asher@98.158.127.150] has joined #ruby
kenperkins [kenperkins!~textual@174-24-171-37.tukw.qwest.net] has joined #ruby
strife25 [strife25!strife25@nat/ibm/x-azognhaurlkhrgzc] has joined #ruby
akem [akem!~akem@222.144.120.78.rev.sfr.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
ckrailo [ckrailo!~ckrailo@208.86.167.247] has joined #ruby
linoj [linoj!~linoj@sn1-pat-1.m2s.com] has joined #ruby
berserkr [berserkr!~david@212.122.111.205.dyn.user.ono.com] has joined #ruby
catphish [catphish!~catphish@2001:9d8:2005:11:222:15ff:fe88:aae2] has joined #ruby
<catphish> why does gsub not play nice with backslashes?
achiu [achiu!~Adium@ip68-5-18-17.oc.oc.cox.net] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
<catphish> "\\".gsub(BACKSLASH, BACKSLASH*2) => "\\"
<catphish> :(
esparkman [esparkman!~esparkman@unaffiliated/esparkman] has joined #ruby
<catphish> the replacement string is evaluated 'twice', once as a ruby string literal and then again by gsub to look for group refrences
thomascioppettin [thomascioppettin!~thomascio@cpe-071-071-047-213.triad.res.rr.com] has joined #ruby
evantravers [evantravers!~textual@fw.luckie.net] has joined #ruby
lkba [lkba!~AndChat@bpb107.neoplus.adsl.tpnet.pl] has joined #ruby
LiquidInsect [LiquidInsect!~billabney@173-228-63-32.dsl.static.sonic.net] has joined #ruby
daniel_hinojosa [daniel_hinojosa!~danno@67-0-103-21.albq.qwest.net] has joined #ruby
esparkma_ [esparkma_!~esparkman@CPE-76-177-149-91.natcky.res.rr.com] has joined #ruby
<dkr> v0n: just do a numeric comparison of each channel?
apeiros_ [apeiros_!~apeiros@77-58-113-31.dclient.hispeed.ch] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
<v0n> dkr, that's what I did for the moment, but I wasn't sure if it was optimal. Not sure about the tolerance number to use.
<v0n> But I found something interesting here: http://stackoverflow.com/a/3968341
<dkr> ah, weighting based on luminosity. yeah, neat idea
Synthead [Synthead!~max@50-76-231-54-static.hfc.comcastbusiness.net] has joined #ruby
tilde[afk] [tilde[afk]!~tilde@host135-194-dynamic.13-79-r.retail.telecomitalia.it] has joined #ruby
p0y [p0y!~p0y@121.97.55.65] has joined #ruby
youdonotexist [youdonotexist!~youdonote@192.206.158.10] has joined #ruby
Muon [Muon!~muon@unaffiliated/imperion] has joined #ruby
<pietro_> hello
<dkr> I was also thinking 1,5,7 is more similar to 2,6,8 than 2,4,8 even though the absolute number difference is the same(adding or subtracting 1 from each) the ratio of the three differs quite a bit
fedel [fedel!~fedel@adsl-ull-236-198.50-151.net24.it] has joined #ruby
<rohit_help> I have a table created in my database. Have not created any model or anything for it right now. Now I want to access contents of that table. What is the structured approach for such cases so that I can access the table from any controller?
<pietro_> does anyone has some experience on setting up a project on Amazon EC2?
<pietro_> how exactly do I set up the mysql database to run it from the ruby on rails project is what I would liek to know
<pietro_> like
<apeiros_> rohit_help: you want #rubyonrails ?
ferbass_ [ferbass_!~ferbass@201-048-211-049.static.ctbctelecom.com.br] has joined #ruby
<rohit_help> @apeiros
<rohit_help> sorry
<rohit_help> confusion
dyer [dyer!~dyer@108-193-172-174.lightspeed.tukrga.sbcglobal.net] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
Spockz [Spockz!~Spockz@84.245.46.110] has joined #ruby
strife25 [strife25!strife25@nat/ibm/x-rayzcixwbeabfpck] has joined #ruby
jonathanwallace [jonathanwallace!~jonathanw@99-11-165-168.lightspeed.tukrga.sbcglobal.net] has joined #ruby
pantsman [pantsman!~pantsman@2.25.205.27] has joined #ruby
pantsman [pantsman!~pantsman@pdpc/supporter/active/pantsman] has joined #ruby
eignerchris [eignerchris!~eignerchr@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
<pietro_> thanks dkr. But is this related to mysql at all? I am following http://docs.amazonwebservices.com/AWSRubySDK/latest/ but also there it makes no reference to mysql
davidcelis [davidcelis!~david@70-89-180-6-smc-or.hfc.comcastbusiness.net] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
Tuxist [Tuxist!~quassel@dyndsl-085-016-173-176.ewe-ip-backbone.de] has joined #ruby
saltmiser [saltmiser!~chatzilla@70.15.225.198.res-cmts.ovr.ptd.net] has joined #ruby
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has joined #ruby
linoj [linoj!~linoj@sn1-pat-1.m2s.com] has joined #ruby
idoru [idoru!idoru@freenode/utility-bot/ex-server/idoru] has joined #ruby
idoru [idoru!idoru@freenode/utility-bot/ex-server/idoru] has joined #ruby
s_much [s_much!~butt_hurt@static-173-61-113-6.cmdnnj.fios.verizon.net] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
<dkr> I just thought cloud formation could be used to setup stuff like ror and mysql easily. I had that bookmarked, but haven't had a chance to try it myself
ly- [ly-!~ly-@unaffiliated/ly-] has joined #ruby
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby
badabim [badabim!~badabim@17.245.90.194] has joined #ruby
soulcutter [soulcutter!~soulcutte@unaffiliated/soulcutter] has joined #ruby
p1d [p1d!~p1d@ns1.vonaffenfels.de] has joined #ruby
Mahoek [Mahoek!~Mahoek@ip51ceb6d4.adsl-surfen.hetnet.nl] has joined #ruby
eywu [eywu!~Adium@205-170-107-4.dia.static.qwest.net] has joined #ruby
ixti [ixti!~ixti@232.Red-88-23-28.staticIP.rima-tde.net] has joined #ruby
aantix [aantix!~jjones@50.0.102.2] has joined #ruby
perturbedpanda [perturbedpanda!~perturbed@matthewabrown.com] has joined #ruby
bier [bier!~bier@p54A5B6DA.dip.t-dialin.net] has joined #ruby
perturbedpanda [perturbedpanda!~perturbed@matthewabrown.com] has quit [#ruby]
Cervajz_ [Cervajz_!~Cervajz@93.99.93.150] has joined #ruby
<any-key> Is there a max length for ruby stack traces?
<any-key> aka does it cut them off after a certain length?
Spockz_ [Spockz_!~Spockz@84.245.46.110] has joined #ruby
Marco [Marco!~marco@pat160.dartmouth-secure.border2-cfw.Dartmouth.EDU] has joined #ruby
<davidcelis> I don't believe so
<any-key> damn
<davidcelis> ?
<any-key> if it did for some odd reason that would make my life easier :P
Marco_ [Marco_!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby
zitchdog [zitchdog!~textual@159.182.1.4] has joined #ruby
benj_ [benj_!~benj@host238.lshift.net] has quit ["Leaving"]
stephenjudkins [stephenjudkins!~stephen@199.223.122.34] has joined #ruby
symb0l [symb0l!~symb0l@c-50-131-187-183.hsd1.ca.comcast.net] has joined #ruby
crankycoder [crankycoder!~crankycod@out-on-173.wireless.telus.com] has joined #ruby
<workmad3> any-key: you sometimes lose the entire stack trace with stack overflows, but other than that, I don't believe there's a limit
josh__ [josh__!~josh@74-95-43-126-Oregon.hfc.comcastbusiness.net] has joined #ruby
<workmad3> any-key: you could filter the backtrace though
<any-key> my issue is the stack trace from tests I'm running only going through ActiveSupport and not actually showing me where in *my* code the problem is happening
<davidcelis> any-key: gist the stacktrace
<davidcelis> i want to see it
<apeiros_> any-key: some apps/framworks do mess with the stacktrace
<apeiros_> and even some libraries
<any-key> one sec
<apeiros_> IMO bad style and coders doing that should be spanked in public…
<workmad3> any-key: that indicates that none of your code is on the stacktrace at the time... which generally indicates a problem in a callback somewhere :)
<any-key> yeah, it's all good, I have a few leads now
<workmad3> although it could also be a filtered backtrace (rails tends to be reasonable on that though... normally only removes framework cruft)
<gnychis> what's the right way to test a value for Inf?
<apeiros_> gnychis: .infinite?
Spockz [Spockz!~Spockz@84.245.46.110] has joined #ruby
kenichi [kenichi!~kenichi@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
rramsden [rramsden!~rramsden@s64-180-62-209.bc.hsia.telus.net] has joined #ruby
idoru [idoru!idoru@freenode/utility-bot/ex-server/idoru] has joined #ruby
<gnychis> apeiros_: thanks
cylence [cylence!~cylence@64-71-24-18.static.wiline.com] has joined #ruby
_JSilva [_JSilva!~JSilva@109.80.161.20] has joined #ruby
Araxia [Araxia!~Araxia@173-164-68-213-Oregon.hfc.comcastbusiness.net] has joined #ruby
apok [apok!~apok@c-107-3-149-167.hsd1.ca.comcast.net] has joined #ruby
strife25 [strife25!strife25@nat/ibm/x-uinklrhvyryylqhz] has joined #ruby
idoru [idoru!idoru@freenode/utility-bot/ex-server/idoru] has joined #ruby
idoru [idoru!idoru@freenode/utility-bot/ex-server/idoru] has joined #ruby
idoru [idoru!idoru@freenode/utility-bot/ex-server/idoru] has joined #ruby
thomascioppettin [thomascioppettin!~thomascio@cpe-071-071-047-213.triad.res.rr.com] has joined #ruby
Niedar [Niedar!~nnscript@ip68-231-248-182.hr.hr.cox.net] has joined #ruby
n8ji [n8ji!~n8ji@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
idoru [idoru!idoru@freenode/utility-bot/ex-server/idoru] has joined #ruby
idoru [idoru!idoru@freenode/utility-bot/ex-server/idoru] has joined #ruby
dasfugufish [dasfugufish!~Adium@68-170-39-205.mammothnetworks.com] has joined #ruby
fridim_ [fridim_!~fridim@2a01:e35:2ece:f2d0:223:4eff:fe6c:c754] has joined #ruby
linoj [linoj!~linoj@sn1-pat-1.m2s.com] has joined #ruby
<shevy> chuck norris ignores all checks on .infinite?
<apeiros_> infinite is small compared to chuck norris anyway…
<Tasser> (1/0.0).infinite?
stringoO [stringoO!~JLstring@CPE001346cbe31b-CM00111ae502a8.cpe.net.cable.rogers.com] has joined #ruby
<Tasser> => 1
<Tasser> strange check
zooz [zooz!~zooz@host86-163-13-12.range86-163.btcentralplus.com] has joined #ruby
<Tasser> 1.0.infinite?
<zooz> hi people
<Tasser> => nil
<Tasser> wtf.
<Tasser> did someone already file a bug?
<zooz> how do I get a gemspec file for a specific gem?
<apeiros_> Tasser: compare with -inf
<apeiros_> it's 1,nil or -1
achiu [achiu!~Adium@216.174.109.254] has joined #ruby
<shevy> the principle of least matz surprise can sometimes be a surprise
<davidcelis> 1, nil, or -1 makes sense to me
<davidcelis> ∞ and -∞ are, one might say, infinitely different
<apeiros_> maybe they're touching on the other end…
<davidcelis> woah...
<shevy> hmmmm
<shevy> you can't prove that
<shevy> but I think they are holding hands beyond infinity
strife25 [strife25!strife25@nat/ibm/x-qmaudskpiipohnai] has joined #ruby
<shevy> oh
<davidcelis> i was about to say that holding hands is touching
<shevy> do I see the moebius strip there
<davidcelis> but then i remembered that "physical contact" is actually electron repulsion
<davidcelis> so you never truly "touch" anything unless you define "touching" as the repelling of two or more electrons
<Muon> it's all Wolfgang Pauli's fault
<shevy> electrons truly hate one another
<davidcelis> but that hatred fuels the universe, man
zitchdog [zitchdog!~textual@159.182.1.4] has joined #ruby
<shevy> where is the love :(
<soycamo> Bratenberg's Vehicles?
<workmad3> davidcelis: you're mostly empty space anyway
<Muon> shevy: check out nuclei
<davidcelis> workmad3: your mom is mostly empty space
eldariof [eldariof!~CLD@PPPoE-78-29-66-249.san.ru] has joined #ruby
<apeiros_> that's what she said…
<davidcelis> i agree, though. i am most definitely a "the glass is 99.9998% empty" kind of guy
<Muon> so, is the channel this off-topic usually?
<davidcelis> Muon: when there aren't ruby questions being asked, why not?
<workmad3> davidcelis: even when it's full
<shevy> Muon Ruby could one day power the universe
<apeiros_> Muon: sometimes… but I'd not say usually.
<Muon> iiinteresting
<shevy> you need to have visions
<Muon> plural?
<soycamo> Actually, there's been a lot of Ruby questions earlier
<soycamo> speaking of Ruby questions, what is the state of USB stuff in Ruby?
voodoofish430 [voodoofish430!~mtorres@208.76.2.200] has joined #ruby
adamkittelson [adamkittelson!~adamkitte@50.0.132.2] has joined #ruby
moshee [moshee!~moshee@unaffiliated/moshee] has joined #ruby
<zaargy> oh usb stuff? oh yeah just great
<zaargy> it's ruby support for usb stuff that made me fall in love with the language
doc20 [doc20!~doc@97-64-216-2.client.mchsi.com] has joined #ruby
doc20 [doc20!~doc@97-64-216-2.client.mchsi.com] has quit [#ruby]
azbarcea_ [azbarcea_!~quassel@79.114.14.190] has joined #ruby
amerine [amerine!~mturner@67.204.184.82] has joined #ruby
tvo [tvo!~tvo@katapult/developer/tvo] has joined #ruby
theRoUS [theRoUS!KenCoar@nat/redhat/x-poekqszlarlpwdwv] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
<davidcelis> what
aroop [aroop!~aroop@67.139.104.203] has joined #ruby
tilde[afk] [tilde[afk]!~tilde@host226-185-dynamic.23-79-r.retail.telecomitalia.it] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
<soycamo> zaargy can you point to a gem or some example code please?
milkpost [milkpost!~dec@173-28-195-157.client.mchsi.com] has joined #ruby
nowthatsamatt [nowthatsamatt!~nowthatsa@adsl-98-85-31-238.mco.bellsouth.net] has joined #ruby
mikeric [mikeric!~mike@96.49.104.11] has joined #ruby
fermion [fermion!~textual@venkman.brightcove.com] has joined #ruby
atmosx [atmosx!~atmosx@191.116.broadband5.iol.cz] has joined #ruby
<atmosx> hello
crankycoder [crankycoder!~crankycod@24-246-44-226.cable.teksavvy.com] has joined #ruby
<shevy> Muon sure. creative people have many visions
zooz [zooz!~zooz@host86-163-13-12.range86-163.btcentralplus.com] has quit ["Leaving"]
marcuspat [marcuspat!~marcuspat@74-92-164-118-Oregon.hfc.comcastbusiness.net] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
fayimora [fayimora!~fayimora@109.175.187.141] has joined #ruby
axisys_ [axisys_!~axisys@155.70.141.45] has joined #ruby
btanaka [btanaka!~textual@17.245.88.139] has joined #ruby
gf3 [gf3!~gf3@unaffiliated/gf3] has quit [#ruby]
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
paissad [paissad!~paissad@89-92-16-151.hfc.dyn.abo.bbox.fr] has joined #ruby
rsterner [rsterner!~fermion@venkman.brightcove.com] has joined #ruby
t-mart [t-mart!~t-mart@c-174-49-68-22.hsd1.ga.comcast.net] has joined #ruby
Spockz_ [Spockz_!~Spockz@84.245.46.110] has joined #ruby
kirun [kirun!~kirun@78-86-154-194.zone2.bethere.co.uk] has joined #ruby
carlyle [carlyle!~carlyle@216.133.69.20] has joined #ruby
kevinbond [kevinbond!~kevinbond@112.50.204.68.cfl.res.rr.com] has joined #ruby
Amirh [Amirh!~amir@46.21.86.215] has joined #ruby
<Amirh> Amirh: tonight, I heard about _Why for the first time.
nd____ [nd____!~nd@mnhm-4d01927a.pool.mediaWays.net] has joined #ruby
Jay_Levitt [Jay_Levitt!~Jay_Levit@c-24-63-250-125.hsd1.ma.comcast.net] has joined #ruby
nonotza [nonotza!~nonotza@66.246.94.130] has joined #ruby
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
dasfugufish1 [dasfugufish1!~Adium@208-38-194-110.mammothnetworks.com] has joined #ruby
Bela-Lugosi [Bela-Lugosi!~enroxorz@65-117-22-130.dia.static.qwest.net] has joined #ruby
Bela-Lugosi [Bela-Lugosi!~enroxorz@unaffiliated/enroxorz] has joined #ruby
Marco [Marco!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby
dasfugufish2 [dasfugufish2!~Adium@208-38-192-20.mammothnetworks.com] has joined #ruby
dasfugufish [dasfugufish!~Adium@208-38-192-20.mammothnetworks.com] has joined #ruby
cyri_ [cyri_!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby
Nanuq [Nanuq!~nanuq@cave45.ecks.ca] has joined #ruby
Spockz [Spockz!~Spockz@84.245.46.110] has joined #ruby
DrShoggoth [DrShoggoth!~prakwtf@12.116.104.118] has joined #ruby
dbernar1 [dbernar1!~dbernar1@205-200-13-84.static.mtsallstream.net] has joined #ruby
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
<dbernar1> Hi. I'm looking for confirmation, or otherwise, for HighLine as the library of choice for command-line interaction with users. Any opinions?
<dbernar1> / alternatives
axl_ [axl_!~axl@173-11-52-113-Minnesota.hfc.comcastbusiness.net] has joined #ruby
axl_ [axl_!~axl@75-149-152-225-Minnesota.hfc.comcastbusiness.net] has joined #ruby
Azure [Azure!~azt@unaffiliated/azure] has joined #ruby
`Smuttpuppy [`Smuttpuppy!~Guest@88-109-5-189.dynamic.dsl.as9105.com] has joined #ruby
axl_ [axl_!~axl@75-149-152-225-Minnesota.hfc.comcastbusiness.net] has joined #ruby
`Smuttpuppy [`Smuttpuppy!~Guest@88-109-5-189.dynamic.dsl.as9105.com] has quit [#ruby]
strife25 [strife25!strife25@nat/ibm/x-wqzssnfftazxrqjq] has joined #ruby
Spockz [Spockz!~Spockz@84.245.46.110] has joined #ruby
Jakee` [Jakee`!~Jakee`@5ad317fe.bb.sky.com] has joined #ruby
<any-key> I cannot for the life of me figure out why my RVM installation of 1.9.2 is missing rake_test_loader.rb
<any-key> anyone ever have issues with this?
adeponte_ [adeponte_!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
Spockz [Spockz!~Spockz@84.245.46.110] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
trivol [trivol!~aurelien@gra94-1-81-57-175-179.fbx.proxad.net] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
Lon-Chaney-Jr [Lon-Chaney-Jr!~enroxorz@65-117-22-130.dia.static.qwest.net] has joined #ruby
Lon-Chaney-Jr [Lon-Chaney-Jr!~enroxorz@unaffiliated/enroxorz] has joined #ruby
stkowski [stkowski!~stkowski@ns25.8x8.com] has joined #ruby
omry_ [omry_!~omry@DSL212-235-83-63.bb.netvision.net.il] has joined #ruby
Helius [Helius!~Adium@109.112.239.34] has joined #ruby
evantravers [evantravers!~textual@fw.luckie.net] has joined #ruby
Marco_ [Marco_!~marco@129.170.93.139] has joined #ruby
conor_ireland_ [conor_ireland_!~conor_ire@89.100.121.49] has joined #ruby
Sailias [Sailias!~jonathan@s72-38-77-178.static.comm.cgocable.net] has joined #ruby
achiu [achiu!~Adium@216.174.109.254] has joined #ruby
Shamgar [Shamgar!~mbainter@sourcemage/mage/Shamgar] has joined #ruby
pietro_ [pietro_!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
phantomfake [phantomfake!~whats_in_@pool-71-190-229-236.nycmny.fios.verizon.net] has joined #ruby
polygon-pusher [polygon-pusher!~josh@24-217-76-179.dhcp.stls.mo.charter.com] has joined #ruby
<polygon-pusher> any one care to spend a little time helping me get my debug set up correctly?
<polygon-pusher> I'm using apatana and I installed rdebug but I now get errors
<polygon-pusher> I get an error right a way in the console found here http://pastebin.com/pDLnx9JC
<polygon-pusher> then a moment later I get a pop up error saying An internal error occurred during: "Launching test.rb".
<polygon-pusher> Could not connect to debugger on port 48563
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
slant [slant!~cylence@64-71-24-18.static.wiline.com] has joined #ruby
Sliker [Sliker!~ponies@31.185.131.187] has joined #ruby
indstry [indstry!~apple@c-71-238-98-243.hsd1.mi.comcast.net] has joined #ruby
buschhardt [buschhardt!~buschhard@p57AA2A53.dip.t-dialin.net] has joined #ruby
bigkm [bigkm!~bigkm@123-243-191-137.static.tpgi.com.au] has joined #ruby
<polygon-pusher> is this the right place to talks about ruby?
<buschhardt> :) lol
<buschhardt> aehm yes
jensn_ [jensn_!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
Kopion [Kopion!~kopion@ppp-70-242-138-129.dsl.stlsmo.swbell.net] has joined #ruby
s_much [s_much!~butt_hurt@static-173-61-113-6.cmdnnj.fios.verizon.net] has quit [#ruby]
adamkittelson [adamkittelson!~adamkitte@50.0.132.2] has joined #ruby
pigdude [pigdude!~tallen@li61-243.members.linode.com] has joined #ruby
pigdude [pigdude!~tallen@li61-243.members.linode.com] has quit [#ruby]
albemuth [albemuth!~albemuth@201.198.78.18] has joined #ruby
philcrissman_ [philcrissman_!~philcriss@206.57.45.116] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
logic [logic!~logic@unaffiliated/bitch333z] has joined #ruby
fermion [fermion!~textual@venkman.brightcove.com] has joined #ruby
<shevy> polygon-pusher sure, but not many use or know aptana + rdebug
crankycoder [crankycoder!~crankycod@24-246-44-226.cable.teksavvy.com] has joined #ruby
<polygon-pusher> what is the most common IDE for ruby + rails?
Indian [Indian!~Indian@0x573dafdd.boanqu1.dynamic.dsl.tele.dk] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
moted [moted!~ryan@c-98-246-106-150.hsd1.or.comcast.net] has joined #ruby
senny [senny!~senny@77-56-67-120.dclient.hispeed.ch] has joined #ruby
Aristata [Aristata!~Adium@adsl-75-22-28-181.dsl.chcgil.sbcglobal.net] has joined #ruby
indstry [indstry!~apple@c-71-238-98-243.hsd1.mi.comcast.net] has joined #ruby
Codif [Codif!~codif@84.120.204.160.dyn.user.ono.com] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
mrevil [mrevil!~mrevil@173-228-88-7.dsl.dynamic.sonic.net] has joined #ruby
<mrevil> how do I pass a class method to Array#map ?
<apeiros_> mrevil: errr? you don't pass methods to Array#map…
<Aristata> How do you mean pass it?
<Aristata> You should have access to all the methods inside of map for the objects
<mrevil> I want to do something like [1].map(&SomeClass.method)
<soycamo> [1,2,3].map { |n| Class.class_method(n)}
<shevy> polygon-pusher most won't use an IDE. many use vim. If you need an IDE to write ruby then I think you may be doing something wrong
<mrevil> i was wondering if there was a way to do it without the {|n| Class.class_method(n)}
<apeiros_> mrevil: even there you're not passing it a method, you pass it a block
<shevy> I dont think you can pass arguments via the (&:bla) thing
<apeiros_> Klass.method(:meth_name)
<mrevil> you can
jds [jds!~jds@188-220-60-85.zone11.bethere.co.uk] has joined #ruby
<mrevil> for functions
<shevy> how?
<apeiros_> gives you a Method instance, which can be converted to a proc, using the & syntax.
havenn [havenn!~skipper@pool-71-189-126-188.lsanca.fios.verizon.net] has joined #ruby
<CannedCorn> is 1.9.3 the first ruby to compile with clang?
<polygon-pusher> there is something nice about managing files for a project in eclipse, regardless I dont thinks its fair to say I'm doing something wrong when I'm only trying to learn plus I'm sure many people use and IDE too
<mrevil> what apeiros_ said ^^
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
<shevy> not sure how that answered it
BrianE [BrianE!~brian@181.93.125.91.rb4.adsl.brightview.com] has joined #ruby
<apeiros_> shevy: meth(&expr) <-- this passes expr as a block
czepluch [czepluch!~czepluch@56349133.rev.stofanet.dk] has joined #ruby
<Sailias> &:expr ?
<Mon_Ouie> That doesn't say anything about passing arguments to the method though
<apeiros_> when expr is a Symbol, as in &:foo is just a special case
<apeiros_> or rather, a single case
<soycamo> polygon-pusher: I've never used an IDE, and I'm kind of a noob. I use api.rubyonrails.org or guess :)
<soycamo> oftentimes your guess is right.
<Sailias> aperios_: lol quick answer to my correction
<apeiros_> expr can be *anything* that responds to to_proc, or is already an instance of Proc
<shevy> apeiros_ sure, but arguments?
toy_battery [toy_battery!~toy_batte@216.101.134.221] has joined #ruby
<Mon_Ouie> with &:foo, the first block argument is the receiver, and the next ones are the arguments passed to the method
<apeiros_> shevy: same as with the block
<Sailias> &expr => (to_proc) is amazing. Makes me happy all the time.
<apeiros_> all arguments that get yielded to the block get passed to the proc
<Mon_Ouie> with &foo.method(bar), the arguments are just passed to the method
<apeiros_> Sailias: tab-completion for nicks btw.
<apeiros_> avoids typos :-p
ChampS_ [ChampS_!~ChampS@p54B4CA30.dip.t-dialin.net] has joined #ruby
mrsolo [mrsolo!~mrsolo@64.125.181.73] has joined #ruby
arthurlockhart [arthurlockhart!~cinch@60-242-128-8.static.tpgi.com.au] has joined #ruby
jensn_ [jensn_!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
<czepluch> What is the best way to learn ruby if you have about half a year of java experience?
<toy_battery> pick up a book
<czepluch> what book? :D
<Sailias> apeiros_, your name is confusing and requires tab completion. Although mine may not be much better
<toy_battery> the pickaxe book probably
<apeiros_> czepluch: forget java and start from scratch. I'm serious.
<toy_battery> i started with that one
<shevy> czepluch convert some small java app into a ruby app
<robert_> sup shevy :D
<apeiros_> trying to apply java knowledge to ruby will only result in mishap pattern abuse
<shevy> hi robert_
<toy_battery> oh yeah that's another good way to learn
<robert_> hi
<apeiros_> Sailias: mine is only confusing if you're not used to greek words…
<toy_battery> i'm with apeiros_ on that one
<robert_> shevy: do you know of any SOAP-like frameworks that just "drop-in" to a web framework like padrino?
<shevy> robert_ I do not know
<robert_> okay.
<robert_> fair enough
<czepluch> thanks guys. i have found the pickaxe book and have been reading it for a day or two now. Love ruby compared to java so far.
<yxhuvud> a rack based soap server would be pretty slick now and then.
<robert_> yeah
<Sailias> apeiros_, my greek and arabic are about as good as my COBOL
<robert_> I'm looking to better integrate ruby with lighty
iskren [iskren!~iskren@94.26.24.78] has joined #ruby
jasdeepjaitla [jasdeepjaitla!~jasdeepja@c-98-207-73-250.hsd1.ca.comcast.net] has joined #ruby
<apeiros_> Sailias: your mother tongue not using many greek loanwords?
<apeiros_> most do… I mean it's the origin of many words… I'd assume anybody with a good education has had a fair exposure to greek words…
<robert_> (read: I'm looking into start/stop web services using lighty's proxy stuff.)
<Sailias> apeiros_, my mother tongue is a bastardized version of many languages.
<Sailias> apeiros_, the fact it has a word like bastardized speaks for itself
<apeiros_> english?
<Sailias> correct
<toy_battery> english is a fun language :P
Spockz_ [Spockz_!~Spockz@84.245.46.110] has joined #ruby
statarb3 [statarb3!~CoreD@546A56AA.cm-12-3b.dynamic.ziggo.nl] has joined #ruby
statarb3 [statarb3!~CoreD@unaffiliated/statarb3] has joined #ruby
s_much [s_much!~butt_hurt@c-68-36-123-133.hsd1.nj.comcast.net] has joined #ruby
<toy_battery> if i'm building a dsl, how should instance_eval be handled
s_much [s_much!~butt_hurt@c-68-36-123-133.hsd1.nj.comcast.net] has quit [#ruby]
<shevy> ewww eval
<robert_> toy_battery: indeed, English is fun. :D
<toy_battery> should it go in the initialize block of the new object or proxied through something else?
josephwilk [josephwilk!~josephwil@109.231.237.58] has joined #ruby
<toy_battery> what's wrong with eval?
indeterminate [indeterminate!~sei@user-3c2h3m6.cable.mindspring.com] has joined #ruby
<toy_battery> isn't that what powers most of the dsl's out there?
arthurlockhart [arthurlockhart!~cinch@60-242-128-8.static.tpgi.com.au] has joined #ruby
jbpros [jbpros!~jbpros@213-177-112-217.dyn.adsl.belcenter.be] has joined #ruby
CoverSli1e [CoverSli1e!~richard@216.2.249.50] has joined #ruby
<shevy> I find all evals way too hard to understand
<toy_battery> really?
<toy_battery> what's hard about it?
<czepluch> what cloud storage service(s) do you guys use? I have been using dropbox for a long time, but recently discovered minus.com, and thought that you guys maybe knew an even better service?
tommyvyo[cloud] [tommyvyo[cloud]!u5016@gateway/web/irccloud.com/x-uwnanltvjazczhek] has joined #ruby
<toy_battery> dropbox is all i need
<shevy> toy_battery that you see them and can't instantly understand what they are used for
<toy_battery> i can agree with that
<toy_battery> isntance_eval though is pretty easy to understand though
<toy_battery> your just executing code in the context of an object
<shevy> or that I can't remember the difference between instance_eval class_eval module_eval and normal eval
CoverSlide [CoverSlide!~richard@216.2.249.50] has joined #ruby
jay_zawrotny [jay_zawrotny!~Jay@c-68-43-28-43.hsd1.mi.comcast.net] has joined #ruby
j3ll3 [j3ll3!~jelle@2001:470:7938:1:fc2c:ad9e:68c0:6a7f] has joined #ruby
<toy_battery> i'm just thinking in terms of building a dsl
<toy_battery> some_method 'foo' do ....
<toy_battery> vs
<toy_battery> some_method 'foo" do |m|
<shevy> ok and where is the eval :D
<toy_battery> in the first case you'd be using instance_eval
<toy_battery> in the second you'd probably do something like yield self
<shevy> aha
cc26 [cc26!567bc958@gateway/web/freenode/ip.86.123.201.88] has joined #ruby
GreaseMonkey [GreaseMonkey!~gm@unaffiliated/greasemonkey] has joined #ruby
kakashi__ [kakashi__!~kakashi_@nltk/kakashi] has joined #ruby
cc26 [cc26!567bc958@gateway/web/freenode/ip.86.123.201.88] has quit [#ruby]
apok [apok!~apok@c-107-3-149-167.hsd1.ca.comcast.net] has joined #ruby
<banisterfiend> toy_battery: think about whether the user would expect/want to use helper methods/ivars from the surrounding scope
<banisterfiend> if they do, then probbably use yield, if not, you might be able to get away with instance_eval
<toy_battery> that's the issue i noticed
<toy_battery> but i've also left it open to so it doesn't force the user to use the dsl if they don't want to
Nanuq [Nanuq!~nanuq@cave45.ecks.ca] has joined #ruby
Boadie [Boadie!~boadie@ppp167-208-138.static.internode.on.net] has joined #ruby
<toy_battery> although i don't think you can "force" anyone to do anything in ruby
Spockz [Spockz!~Spockz@84.245.46.110] has joined #ruby
j3ll3 [j3ll3!~jelle@2001:470:7938:1:fc2c:ad9e:68c0:6a7f] has quit ["Linkinus - http://linkinus.com"]
<banisterfiend> toy_battery: you could allow both options, by checking the arity of the block
Clooth [Clooth!~Clooth@GGGMMMDCCCXXI.gprs.sl-laajakaista.fi] has joined #ruby
<toy_battery> what does that do?
My_Hearing [My_Hearing!~Mon_Ouie@subtle/user/MonOuie] has joined #ruby
<banisterfiend> toy_battery: if block.arity > 0 then yield(var); else instance_eval(&block)
crankycoder [crankycoder!~crankycod@24-246-44-226.cable.teksavvy.com] has joined #ruby
beakerman [beakerman!~beakerman@c-76-118-172-173.hsd1.nh.comcast.net] has joined #ruby
<toy_battery> i like that
<toy_battery> so the arity is the number of args right?
<banisterfiend> yeah
<toy_battery> nice
charlenopires [charlenopires!~quassel@186.194.13.186] has joined #ruby
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby
mikeric [mikeric!~mike@96.53.33.22] has joined #ruby
skrewler [skrewler!~skrewler@209.213.206.58] has joined #ruby
nicoulaj_ [nicoulaj_!~nicoulaj@V10K2.bull.fr] has joined #ruby
sandelius [sandelius!~textual@90-231-202-62-no214.tbcn.telia.com] has joined #ruby
snearch [snearch!~snearch@e178123159.adsl.alicedsl.de] has joined #ruby
perturbedpanda [perturbedpanda!~perturbed@matthewabrown.com] has joined #ruby
pigdude [pigdude!~tallen@li61-243.members.linode.com] has joined #ruby
crodas [crodas!~crodas@git.crodas.org] has joined #ruby
<pigdude> if s = :x , how do i use that value to call x()? I forgot :^((
<davidcelis> is x and instance method? or just a method?
<davidcelis> an*
<toy_battery> send?
<toy_battery> send(s)
<davidcelis> does send work when it isn't called on an object?
<toy_battery> yeah
<toy_battery> it calls it on Main
<davidcelis> ah, nice
<davidcelis> good to know
<toy_battery> send :puts, 'hello' #=> hello
<toy_battery> send :foo #=> NoMethodError: undefined method `foo' for main:Object
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby
snearch [snearch!~snearch@e178123159.adsl.alicedsl.de] has joined #ruby
<toy_battery> davidcelis: if you do obj.send(s) then obj should have an instance method 'x'
<davidcelis> right
<davidcelis> i just didn't realize send would get called on main:Object
<toy_battery> err sorry i meant that for pigdude
<davidcelis> thought that makes sense
<davidcelis> though*
<davidcelis> ah
snearch [snearch!~snearch@e178123159.adsl.alicedsl.de] has joined #ruby
<toy_battery> i'm not sure where send is defined though
<pigdude> thanks toy_battery
<toy_battery> pry + interactive_editor = awesomeness
<banisterfiend> toy_battery: what does interactive_editor give you?
<toy_battery> it lets you call vim, mvim, emacs, mate, etc from inside irb or pry
<toy_battery> you write code in your editor and when you quit it's automatically evaluated
<banisterfiend> toy_battery: pry lets you do that anyway by default
<toy_battery> how
drewrm [drewrm!~user@nbncom1.lnk.telstra.net] has joined #ruby
<toy_battery> oh yeah
<toy_battery> does it evaluate the code immediately after the editor is closed though?
<banisterfiend> toy_battery: Yeah
<toy_battery> oh cool, didn't know that
<banisterfiend> toy_battery: you can even edit code half-way through an expression, so you're typing a multiline expressin out, and you find it's getting to ocomplicated/unwieldy, just type 'edit' and it dumps that code into an editor
p1d [p1d!~p1d@dslb-088-065-169-159.pools.arcor-ip.net] has joined #ruby
<banisterfiend> toy_battery: you can edit past input by typing edit -i NUM where NUM is the number in brackets beside the expression [2] for example
<banisterfiend> or methods, using edit-method Blah#my_method (even if that method is simply defined ini the repl, and not in a file)
<toy_battery> damn that's cool
<toy_battery> ok i'm gonna start using that cause that's sweet
<banisterfiend> nice:)
nanderoo [nanderoo!~nanders@38.124.137.226] has quit [#ruby]
skrewler [skrewler!~skrewler@209.213.206.58] has joined #ruby
alfism [alfism!~alfism@2620:149:4:1201:15a5:76d1:89e7:6552] has joined #ruby
skrewler [skrewler!~skrewler@209.213.206.58] has joined #ruby
milkpost [milkpost!~dec@173-28-195-157.client.mchsi.com] has joined #ruby
<Okasu> banisterfiend: where i can find docs about pry?
<Okasu> for what it?
<Okasu> find it already
<Okasu> found*
<gheegh> hey all.. question. anyone know of a good library to do bit comparisons? i have a bunch of documents with minhash/simhashes, and i need to find the documents that are the closest bit matches to each document (if it's less than a particular threshold). I can do hamming distance, but then i have to access each document o^2 times (10k to 100k docs). So, a linear time search would be better. Anyone have any thoughts?
Cervajz [Cervajz!~Cervajz@opensuse/member/Cervajz] has joined #ruby
fermion [fermion!~textual@pool-108-7-224-176.bstnma.fios.verizon.net] has joined #ruby
Clooth [Clooth!~Clooth@193-64-22-236-nat.elisa-mobile.fi] has joined #ruby
mikeric [mikeric!~mike@96.53.33.22] has joined #ruby
dyer [dyer!~dyer@108-193-172-174.lightspeed.tukrga.sbcglobal.net] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
<gheegh> so, i scared everyone? :-)
eignerchris [eignerchris!~eignerchr@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
kenichi [kenichi!~kenichi@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
byronb [byronb!~byron@c-24-18-227-118.hsd1.wa.comcast.net] has joined #ruby
n8ji [n8ji!~n8ji@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
bigkm [bigkm!~bigkm@123-243-191-137.static.tpgi.com.au] has joined #ruby
jensn_ [jensn_!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
tuxuser [tuxuser!~tuxuser@libxenon.org] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
logic [logic!~logic@unaffiliated/bitch333z] has joined #ruby
lofic [lofic!~lofic@85-170-253-195.rev.numericable.fr] has joined #ruby
Russell^^ [Russell^^!~Russell^^@88.97.51.87] has joined #ruby
<lofic> is there a better way for :
<lofic> foo = bar ? bar : 'baz'
<lofic> (to avoid repeating bar)
<tuxuser> hey everybody
<tuxuser> is there a documentation / info about all possible files which export rvm paths?
<tuxuser> cant locate all exports... after some messed up installations (as normal user/superuser/via apt-get)
Jakee` [Jakee`!~Jakee`@5ad317fe.bb.sky.com] has joined #ruby
rafacv [rafacv!~rafacv@189.74.161.172] has joined #ruby
rpowell [rpowell!~rpowell@CPE-124-179-28-148.lns6.ken.bigpond.net.au] has joined #ruby
enroxorz [enroxorz!~enroxorz@65-117-22-130.dia.static.qwest.net] has joined #ruby
enroxorz [enroxorz!~enroxorz@unaffiliated/enroxorz] has joined #ruby
burgestrand [burgestrand!~burgestra@81-229-85-235-no66.tbcn.telia.com] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
naeg [naeg!~naeg@194.208.239.170] has joined #ruby
canton8 [canton8!~canton7@95.150.107.113] has joined #ruby
fayimora [fayimora!~fayimora@95.175.159.21] has joined #ruby
linusoleander [linusoleander!~linus@c-2ec2c0f3-74736162.cust.telenor.se] has joined #ruby
<tuxuser> $whereis rvm
<tuxuser> rvm: /usr/local/rvm even if its uninstalled...
mengu [mengu!~mengu@95.13.68.170] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
<tuxuser> nvm, thats just the empty dir
mikeycgto [mikeycgto!~mikeycgto@pdpc/supporter/active/mikeycgto] has joined #ruby
DFectuoso [DFectuoso!~DFectuoso@fixed-203-141-49.iusacell.net] has joined #ruby
LittleBill902 [LittleBill902!~smith@c-71-197-102-219.hsd1.ca.comcast.net] has joined #ruby
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
tuxuser [tuxuser!~tuxuser@libxenon.org] has quit ["Verlassend"]
soycamo [soycamo!~camo@198.202.31.180] has quit [#ruby]
confounds [confounds!~confounds@199.243.188.2] has joined #ruby
LittleBill902 [LittleBill902!~smith@c-71-197-102-219.hsd1.ca.comcast.net] has joined #ruby
jonatha__ [jonatha__!~jonathanw@99-11-165-168.lightspeed.tukrga.sbcglobal.net] has joined #ruby
<CannedCorn> is there a way to print out what compiler compiled your ruby
RomD [RomD!~Roman@nrbg-4d0774f1.pool.mediaWays.net] has joined #ruby
<burgestrand> CannedCorn: ruby is an interpreted language, not compiled
ipsifendus [ipsifendus!~edward@173-8-205-65-Oregon.hfc.comcastbusiness.net] has joined #ruby
<v0n> what variable contains the temp directory? i.e. /tmp on Linux/Unix
s_much [s_much!~butt_hurt@c-68-36-123-133.hsd1.nj.comcast.net] has joined #ruby
fayimora [fayimora!~fayimora@95.175.159.21] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
GoogleGuy [GoogleGuy!ChromeOS@unaffiliated/googleguy] has joined #ruby
lofic [lofic!~lofic@85-170-253-195.rev.numericable.fr] has quit ["Quitte"]
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
cjs226 [cjs226!~cjs226@99-61-65-242.lightspeed.austtx.sbcglobal.net] has joined #ruby
<nobitanobi> I've a question: why this method http://pastie.org/3127659 --> changes the value of the argument that is being passed?
<nobitanobi> (out of the method scope)
<workmad3> nobitanobi: because you're passing a reference to the string
<nobitanobi> but if I do def changeString(mystring) mystring = "string changed" end
<nobitanobi> and I pass mystring = "normal string"
<nobitanobi> it doesn't get changed
<nobitanobi> what is the difference?
<workmad3> nobitanobi: no... because then you are changing what object the variable is referencing, whereas in your pastie, you are altering the referenced object
LiquidInsect [LiquidInsect!~billabney@173-228-63-32.dsl.static.sonic.net] has joined #ruby
<nobitanobi> when do I alter the object?
<nobitanobi> when applying methods to it?
<burgestrand> nobitanobi: it depends on the method you call on the object
<workmad3> nobitanobi: err... because that's what those methods do?
Synthead [Synthead!~max@mff2c36d0.tmodns.net] has joined #ruby
<burgestrand> nobitanobi: in the case of string, String#[]= modifies the string in place
<burgestrand> nobitanobi: ruby strings are mutable, as you’ve here witnessed
<nobitanobi> I see. I thought mystring = "whatever change" was also considered an altering of the object
<workmad3> nobitanobi: no, that's just altering what the variable 'mystring' is referencing
<nobitanobi> perfect, now I understand
<nobitanobi> thanks a lot guys
<burgestrand> nobitanobi: variables never "contain" their objects, they point to them
<nobitanobi> ok
<nobitanobi> good sentence for a newbie burgestrand
<nobitanobi> I will remember it
s_much [s_much!~butt_hurt@c-68-36-123-133.hsd1.nj.comcast.net] has quit [#ruby]
<workmad3> burgestrand: but.. but... what about the value objects? :P
fermion [fermion!~textual@pool-108-7-224-176.bstnma.fios.verizon.net] has joined #ruby
<workmad3> (I'm now being annoying, ignore me :) )
<Okasu> why when i pry -r
<Okasu> i get /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- metaprog.rb (LoadError)
<Okasu> require 'pry' and binding.pry exist in file
<v0n> nobody for my tmp dir? ;D
<zaargy> /tmp is /tmp
<zaargy> use tempfile
ephemerian [ephemerian!~ian@82-71-51-229.dsl.in-addr.zen.co.uk] has joined #ruby
Clooth [Clooth!~Clooth@193-64-22-236-nat.elisa-mobile.fi] has joined #ruby
Pip_ [Pip_!~Pip@unaffiliated/pip] has joined #ruby
dasfugufish [dasfugufish!~Adium@208-38-192-20.mammothnetworks.com] has joined #ruby
Animawish [Animawish!~Adium@63-228-196-162.slkc.qwest.net] has joined #ruby
pootpoot [pootpoot!~pootpoot@38.108.250.130] has quit [#ruby]
Animawish [Animawish!~Adium@63-228-196-162.slkc.qwest.net] has quit [#ruby]
<nobitanobi> what's the best way to find out what a method does in ruby console?
<nobitanobi> for example, if I want to know what the method gsub does?
thomascioppettin [thomascioppettin!~thomascio@cpe-071-071-047-213.triad.res.rr.com] has joined #ruby
<Okasu> ri gsub
aroop [aroop!~aroop@67.139.104.203] has joined #ruby
<Okasu> show-doc gsub in pry
cableray [cableray!~cableray@75-145-121-174-Colorado.hfc.comcastbusiness.net] has joined #ruby
<nobitanobi> thanks Okasu
uatecuk [uatecuk!~uatecuk@82.132.139.140] has joined #ruby
<cableray> so i'm trying to setup the github hook plugin for redmine, and was wondering how I should setup my ssh keys for the redmine server (passenger).
tesmar [tesmar!~tesmar@rrcs-70-62-109-131.midsouth.biz.rr.com] has joined #ruby
tvw [tvw!~tv@e176007235.adsl.alicedsl.de] has joined #ruby
aces1up [aces1up!~aces1up@ip70-173-232-11.lv.lv.cox.net] has joined #ruby
<cableray> anyone have any ideas?
<aces1up> i need a way of generating a code via a string, kinda like sha1 or crc.. so i can tell if a string was duplicated... what it the fastest encoding for this? i have heard of rot, sha, crc..
Spockz [Spockz!~Spockz@84.245.46.110] has joined #ruby
colint [colint!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
<cableray> aces1up: what are you trying to do? Check for duplicates?
artOfWar [artOfWar!~artofwar@nat/yahoo/x-bsdkoytkuggphsqc] has joined #ruby
<cableray> I guess what my question boils down to is: what user does passenger run 'system' commands as?
<workmad3> cableray: passenger runs the rails or rack process as the user that owns the app code
<aces1up> cableray yes, but in a special way, i want to assign a unique code on a string so i can check that code in a dbase
<aces1up> instead of checking the whole string.
logic [logic!~logic@unaffiliated/bitch333z] has joined #ruby
mdel [mdel!~mdel@pool-71-175-17-16.phlapa.fios.verizon.net] has joined #ruby
<cableray> aces1up: ok, you want a hashtable.
<workmad3> aces1up: how important is uniqueness?
<cableray> you could just put a unique index on the string you want to check in the database.
<workmad3> aces1up: and are you using this for uniqueness checks, or just for some reference?
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
<aces1up> uniqueness checks and reference.
<cableray> yeah, hashtables don't guarantee uniqueness for all strings.
<cableray> but they do allow you to store less data.
yfeldblum [yfeldblum!~Jay@c-98-218-48-253.hsd1.md.comcast.net] has joined #ruby
<aces1up> there is a dbase column, :code -- this will hold the string code (whatever i plan to use) then when i load in via a text file i can check via encoding the string from the text file, and check that against dbase code
ryh [ryh!~ryh@host-174-45-115-181.bzm-mt.client.bresnan.net] has joined #ruby
<workmad3> aces1up: right, so the same string should hash to the same value, not an arbitrary value
<aces1up> i'm only doing this as the table in question will have 1million plus rows, thinking this will be a faster search dunno.
<workmad3> aces1up: index the column
symb0l [symb0l!~symb0l@c-50-131-187-183.hsd1.ca.comcast.net] has joined #ruby
<workmad3> aces1up: and make it a unique index ;)
_debo [_debo!~marco.deb@cpc18-enfi16-2-0-cust743.hari.cable.virginmedia.com] has joined #ruby
colint [colint!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
<cableray> workmad3: which file specifically does passenger use to determine user and group?
<workmad3> cableray: I don't know... at a guess, probably the owner of the root directory
RomD` [RomD`!~Roman@nrbg-4dbe2cb5.pool.mediaWays.net] has joined #ruby
<cableray> workmad3: or environment.rb would be another option. but yours seems more likely
<workmad3> cableray: passenger can run arbitrary rack apps :)
vraa [vraa!~vraa@99-20-202-44.lightspeed.hstntx.sbcglobal.net] has joined #ruby
<cableray> oh, yea, so then evenmore likely to be the root.
atmosx [atmosx!~atmosx@191.116.broadband5.iol.cz] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
janissary [janissary!462ee56a@gateway/web/freenode/ip.70.46.229.106] has joined #ruby
<aces1up> workmad3 so if i have 1 million rows, with that indexing deal your talking about would i just be able to use a large string in the column for indexing?
mikeric [mikeric!~mike@96.53.33.22] has joined #ruby
happosade [happosade!happosade@lakka.kapsi.fi] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
kakashi__ [kakashi__!~kakashi_@nltk/kakashi] has joined #ruby
<workmad3> aces1up: you'd add a database unique index to that column in the table
jbhewitt [jbhewitt!~jbhewitt@c122-108-214-224.rochd4.qld.optusnet.com.au] has joined #ruby
<workmad3> aces1up: which means your DBMS is responsible for organising the data to ensure uniqueness and maintaining an index to speed up searching
fungoat [fungoat!~fungoat@230.163.91.184.cfl.res.rr.com] has joined #ruby
<aces1up> so on the index with the code for the string i would make that unique a unique index for searching essentially?
<happosade> https://gist.github.com/1559516 what to do with this..?
<v0n> happosade, reinstall the rails gem?
saltmiser [saltmiser!~chatzilla@70.15.225.198.res-cmts.ovr.ptd.net] has joined #ruby
thoraxe [thoraxe!~thoraxe@50-73-95-6-static.hfc.comcastbusiness.net] has joined #ruby
jergason [jergason!~jergason@208.97.56.66] has joined #ruby
<happosade> v0n: how to remove/reinstall :F (I am a total newbie at this)
Marco [Marco!~marco@Marco-2.Kiewit.dartmouth.edu] has joined #ruby
<v0n> happosade, `gem install rails`
tomzx [tomzx!~tomzx@dsl-216-221-39-59.aei.ca] has joined #ruby
sepp2k [sepp2k!~sexy@g231141146.adsl.alicedsl.de] has joined #ruby
<happosade> v0n: didn't do the trick, still getting this. Also every time when I am doing something with gem
asobrasil [asobrasil!~asantioli@palpatine.privatedns.com] has quit [#ruby]
mikeric [mikeric!~mike@96.53.33.22] has joined #ruby
mlue [mlue!~mlue@unaffiliated/mlue] has joined #ruby
<saltmiser> is rubysoc happening this summer?
froy [froy!~troy@manuel.dublan.net] has joined #ruby
<adeponte> anyone know off hand in ruby how to get the uid of a user given the name of a user?
<adeponte> or if that is necessary? I really just want to be able to seteuid and setuid given the name of the user account rather than having to have the actual integer uid
andrewhl [andrewhl!~andrew@24-246-15-43.cable.teksavvy.com] has joined #ruby
jrist [jrist!~jrist@71-212-214-169.hlrn.qwest.net] has joined #ruby
<adeponte> saltmiser: no, all those require integer uid/gid. I think I found it just now though, in http://www.ruby-doc.org/stdlib-1.9.2/libdoc/etc/rdoc/Etc.html#method-c-getpwnam
<saltmiser> oh you wanted the string username, not the integer uid. sorry ;D