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/
cmasseraf_ [cmasseraf_!~ColdFusio@187.106.195.233] has joined #ruby
ilyam [ilyam!~ilyam@eng.nat.mtv.ooyala.com] has joined #ruby
<fayimora> hello guys i want to write a double clickable ruby script that would help run a jar file for me. How do i go about this?
akem [akem!~akem@253.195.84.79.rev.sfr.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
Myx [Myx!~myx@c-24-62-75-50.hsd1.nh.comcast.net] has joined #ruby
Gekz [Gekz!~gekz@159.253.5.25] has joined #ruby
Gekz [Gekz!~gekz@unaffiliated/gekz] has joined #ruby
<wallerdev> fayimora: what platform?
<fayimora> cross platform if possible
<waxjar> can't you click .jar files anyway?
<waxjar> *double-click
<wallerdev> I'm guessing he wants to send flags to it or something
<wallerdev> but yeah you can double click jars
alem0lars [alem0lars!~alem0lars@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
djr [djr!~djr@dsl-208-196.madisontelco.com] has joined #ruby
stringoO [stringoO!~JLstring@bas1-toronto42-1279599335.dsl.bell.ca] has joined #ruby
mztriz [mztriz!~mztriz@74-136-75-114.dhcp.insightbb.com] has joined #ruby
mztriz [mztriz!~mztriz@74-136-75-114.dhcp.insightbb.com] has quit [#ruby]
idarkside [idarkside!~YourNick@5e0e912d.bb.sky.com] has joined #ruby
S2kx [S2kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby
mztriz [mztriz!~mztriz@74-136-75-114.dhcp.insightbb.com] has joined #ruby
h4mz1d [h4mz1d!~hamfz@130.160.249.68] has joined #ruby
tomzx [tomzx!~tomzx@dsl-156-68.aei.ca] has joined #ruby
randym [randym!~randym@113x33x226x118.ap113.ftth.ucom.ne.jp] has joined #ruby
beakerman [beakerman!~beakerman@c-76-118-172-173.hsd1.nh.comcast.net] has joined #ruby
dekoms [dekoms!~dekom@c-71-206-247-100.hsd1.pa.comcast.net] has joined #ruby
c0rn [c0rn!~c0rn@adsl-69-110-7-189.dsl.pltn13.pacbell.net] has joined #ruby
cyri__ [cyri__!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@67.139.75.158] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
bennett_ [bennett_!~bennett@75-101-96-184.dsl.static.sonic.net] has joined #ruby
theRoUS [theRoUS!~KenCoar@apache/committer/coar] has joined #ruby
milktrader [milktrader!~milktrade@67-197-46-225.dsl.comporium.net] has joined #ruby
<milktrader> erb question: I want to print contents of a file to a web page but <%= File.open('data/tweets.csv', 'r') do |f| ; while line = f.gets ; puts line; end; end; %> doesn't work
sarpanch [sarpanch!~sarpanch@host-207-68-241-37.vista-express.com] has joined #ruby
<td123> milktrader: how about <%= File.read 'data/tweets.csv' %> ?
axilla [axilla!~fluffhead@c-71-234-169-157.hsd1.vt.comcast.net] has joined #ruby
<axilla> can anyone recommend a good gem for creating GUI's
<milktrader> let me try it
<td123> axilla: maybe qtruby ? I've never used qt on ruby, but in other langs (c++, python) I enjoyed using it and its tools
<milktrader> td123 it works, thanks
zulax [zulax!~radarwork@99-120-232-161.lightspeed.iplsin.sbcglobal.net] has joined #ruby
<Hanmac> axilla: what kind of guis? window-guis or more ingame-guis?
Targen [Targen!~iguana@190.39.181.108] has joined #ruby
destructure [destructure!~mu@couchdb/user/destructure] has joined #ruby
PaciFisT [PaciFisT!~PeaCE@CPE0023be436752-CM0023be436750.cpe.net.cable.rogers.com] has joined #ruby
KindOne [KindOne!~KindOne@colchester-lug/silly-fool/donut] has joined #ruby
carlyle [carlyle!~carlyle@99-127-240-24.lightspeed.rlghnc.sbcglobal.net] has joined #ruby
milktrader [milktrader!~milktrade@67-197-46-225.dsl.comporium.net] has quit [#ruby]
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
GreaseMonkey [GreaseMonkey!~gm@unaffiliated/greasemonkey] has joined #ruby
banister`sleep [banister`sleep!~baniseter@118.82.185.158] has joined #ruby
<td123> have a question
albemuth [albemuth!~albemuth@201.198.78.18] has joined #ruby
<td123> in my home directory, I do Dir.glob(File.join("**", "*conf"))
<td123> and I get back []
<td123> shouldn't this return all files in my home directory that end in conf?
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
cjs [cjs!~cjs@41.98.156.220.st.bbexcite.jp] has joined #ruby
cmasseraf [cmasseraf!~ColdFusio@187.106.195.233] has joined #ruby
kpshek [kpshek!~kpshek@98.156.71.29] has joined #ruby
thomasdebenning [thomasdebenning!~thomasdeb@c-69-181-139-137.hsd1.ca.comcast.net] has joined #ruby
CreativeEmbassy [CreativeEmbassy!~CreativeE@pool-71-162-37-136.altnpa.east.verizon.net] has joined #ruby
[RHQme]stringo0 [[RHQme]stringo0!~JLstring@bas1-toronto42-1279728836.dsl.bell.ca] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
cableray [cableray!~cableray@wl-dhcp181-224.Mines.EDU] has joined #ruby
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
dankest [dankest!~dankest@ip184-187-165-135.sb.sd.cox.net] has joined #ruby
dasfugufish [dasfugufish!~Adium@64-184-237-212.mammothnetworks.com] has joined #ruby
raincole__ [raincole__!~raincole@140.112.239.113] has joined #ruby
Sailias [Sailias!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby
iamjarvo [iamjarvo!~Adium@c-71-230-13-201.hsd1.nj.comcast.net] has joined #ruby
hSATAC [hSATAC!~cat@221.169.252.14] has joined #ruby
freelanceful [freelanceful!~jamesfend@239.sub-174-252-157.myvzw.com] has joined #ruby
banister`sleep [banister`sleep!~baniseter@122.63.137.223] has joined #ruby
robyurkowski [robyurkowski!~robyurkow@205.233.80.139] has joined #ruby
jergason [jergason!~jergason@c-67-182-209-164.hsd1.ut.comcast.net] has joined #ruby
tar_ [tar_!~tar@209-6-37-203.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #ruby
kenyabob [kenyabob!~andy@c-76-115-128-127.hsd1.or.comcast.net] has joined #ruby
<kenyabob> Im trying to get this to work, but I get an error of an undefined method
<kenyabob> v
modder [modder!modder@79.133.201.85] has joined #ruby
shadoi [shadoi!~Adium@c-71-202-122-8.hsd1.ca.comcast.net] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
gen0cide_ [gen0cide_!~TigerBloo@c-76-126-176-33.hsd1.ca.comcast.net] has joined #ruby
vraa [vraa!~vraa@99-20-202-44.lightspeed.hstntx.sbcglobal.net] has joined #ruby
Hanmac1 [Hanmac1!~hanmac@p5084553A.dip0.t-ipconnect.de] has joined #ruby
<kenyabob> Does that work for anyone else
TheNumb [TheNumb!thenumb@gateway/shell/mydevil.net/x-faddzcuzmajodieq] has joined #ruby
<dagnachewa> plz help am a bit confused , is bad to install gems globaly ?
<dagnachewa> exemple I install nokogiri globaly , my rails app and my oustside_rails app could accesit right
bsdbandit [bsdbandit!~unixgeek@ip98-166-14-40.hr.hr.cox.net] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
dasfugufish [dasfugufish!~Adium@64-184-237-212.mammothnetworks.com] has joined #ruby
<bsdbandit> im in thinking mode right now i code in python i use python mainly for systems administration now im trying to get into web development im torn between php and ruby
<shadoi> bsdbandit: totally depends on what you want to build.
nerded [nerded!~nerded@c-98-218-53-235.hsd1.md.comcast.net] has joined #ruby
<bsdbandit> well im looking at building a basic dynamic website
<shadoi> you're going to end up trying it in all of them. :)
<shadoi> Just do it.
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
<shadoi> you can do it easily in any of them basically.
<shadoi> even python has simplistic web frameworks
<bsdbandit> oh ok cool
<shadoi> my recommendation for ruby is sinatra or padrino, depending on how fancy you need it.
justfielding [justfielding!~justfield@ip70-178-131-208.ks.ks.cox.net] has joined #ruby
jmcphers [jmcphers!jmcphers@nat/nokia/x-profbtkqowdfqfxb] has joined #ruby
mrmist [mrmist!~mrmist@freenode/staff/pdpc.active.mrmist] has joined #ruby
emocakes [emocakes!~om@189-11-46-97.mganm703.dsl.brasiltelecom.net.br] has joined #ruby
cableray [cableray!~cableray@wl-dhcp156-158.Mines.EDU] has joined #ruby
mxbtty [mxbtty!~mxbtty@216-75-224-242.static.wiline.com] has quit [#ruby]
<Axsuul> Is there any way to detect if a block argument was given? i.e. .foo { |s| .. } vs. .foo { ... }
<Axsuul> from within the method foo
<banisterfiend> Axsuul: yes, check the arity of the block
<banisterfiend> Axsuul: def hello(&block); if block.arity > 0 then ...
<banisterfiend> Axsuul: though if you want to support both 1.8 and 1.9 you'll need to do some gymnastics
<banisterfiend> in 1.8 i also think that foo { } is indistinguisable from foo { |*args| }
<Axsuul> thank you
<banisterfiend> Axsuul: i hope you're in 1.9 :)
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
al3xnull [al3xnull!~al3xnull@cpe-76-188-178-7.neo.res.rr.com] has joined #ruby
iamjarvo [iamjarvo!~Adium@c-71-230-13-201.hsd1.nj.comcast.net] has joined #ruby
<Axsuul> yep, 1.9.3 =)
<Axsuul> its a web app so no need to support 1.8, thanks again
<Seppman> Will there be Ruby on Parrot soon?
<shevy> Parrot?
<shevy> isn't that perl 6 in 2020?
<shevy> and 2022 is the year of desktop GNU Hurd
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby
counterbeing [counterbeing!~textual@c-24-4-206-189.hsd1.ca.comcast.net] has joined #ruby
<Seppman> exactly, thats the parrot i mean. There where some rumors some years ago that there will be parrot THE machine for upcuming ruby 2.0
rfloriano [rfloriano!~rfloriano@189.115.115.229.dynamic.adsl.gvt.net.br] has joined #ruby
<shevy> hmm I think parrot was not needed
<shevy> there is YARV ... rubinius ... not sure I am missing out something here
<Seppman> i always thought parrot is the best ever invented, but i never used it. Its like pepsi is the best cola
bitops [bitops!~user@ac.playsecond.com] has joined #ruby
Norrin [Norrin!~Norrin@c-67-160-193-132.hsd1.ca.comcast.net] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@c-98-203-41-91.hsd1.fl.comcast.net] has joined #ruby
<Seppman> isnt it?
<Seppman> there was speaking of RITE some time ago, too
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
ap3mantus [ap3mantus!~ap3mantus@c-98-217-179-108.hsd1.ma.comcast.net] has joined #ruby
ferbass [ferbass!~ferbass@177.80.253.128] has joined #ruby
Doppp [Doppp!Doppp@unaffiliated/doppp] has joined #ruby
<Seppman> so there are no parrot-ambitions any more, am i getting ths right?
rfloriano [rfloriano!~rfloriano@189.115.115.229.dynamic.adsl.gvt.net.br] has joined #ruby
cableray [cableray!~cableray@wl-dhcp156-158.Mines.EDU] has joined #ruby
rfloriano [rfloriano!~rfloriano@189.115.115.229.dynamic.adsl.gvt.net.br] has joined #ruby
beakerma_ [beakerma_!~beakerman@c-76-118-172-173.hsd1.nh.comcast.net] has joined #ruby
<banisterfiend> Seppman: why dont you google or join #perl or something
jlogsdon [jlogsdon!~jlogsdon@c-67-169-79-114.hsd1.ca.comcast.net] has joined #ruby
josefig [josefig!~joseph@unaffiliated/josefig] has joined #ruby
jerikl [jerikl!~justin@cpe-76-183-135-152.tx.res.rr.com] has joined #ruby
<v0n> hi
Norrin [Norrin!~Norrin@c-67-160-193-132.hsd1.ca.comcast.net] has quit [#ruby]
maletor [maletor!~maletor@187.146.209.50] has joined #ruby
<Seppman> banisterfiend: because i'm interested in ruby, not in perl 6
jergason [jergason!~jergason@c-67-182-209-164.hsd1.ut.comcast.net] has joined #ruby
<banisterfiend> Seppman: afaik rakudo has pretty much ceased development
deltree_ [deltree_!~chatzilla@97.104.16.141] has joined #ruby
<Seppman> :-( sad to hear that
<banisterfiend> Seppman: not really, perl6 and parrot have become a bit of a duke nukem forever
<banisterfiend> Seppman: rubinius is a more interesting implementation IMO
<Seppman> output("Its done when its done! I've got balls of steel!")
<Seppman> its cause i always thought parrot will be the holy grail of VMs
ferbass [ferbass!~ferbass@177.80.253.128] has joined #ruby
paulv [paulv!~paulv@unaffiliated/paulv] has quit [#ruby]
m0nki3 [m0nki3!~c0wCr@gateway/tor-sasl/m4tastati] has joined #ruby
kristopolous [kristopolous!~chris@204.154.109.20] has joined #ruby
<kristopolous> so I have a class with some constants, I want to look up some string and return the constant associated with it ... but I can't seem to return the symbol, only the evaluated string itself
<kristopolous> so if I do Klass::constants then I get an array of strings that I can do Klass::const_get() on
<kristopolous> that's fine
<kristopolous> but I can't get the actual object
<kristopolous> I'm thinking that to_enum has the magic I need, but I really don't know
<kristopolous> no no no, this looks all wrong;
<kristopolous> arghhh!
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
Azure [Azure!~azt@unaffiliated/azure] has joined #ruby
belak51 [belak51!~belak@encoded/developer/belak] has joined #ruby
<belak51> What books would be recommended for learning ruby, and eventually rails?
<aces1up> does it mean something in particular when a variable starts with __ ex.. @__view ???
redwinter [redwinter!~mike@host-137-214-107-208.midco.net] has joined #ruby
kapowaz [kapowaz!u546@gateway/web/irccloud.com/x-fjtlwzmmlmmiowdj] has joined #ruby
banisterfiend [banisterfiend!~baniseter@122.63.139.117] has joined #ruby
notbrent [notbrent!u5121@gateway/web/irccloud.com/x-ofdpiiltxmssaotr] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
jameshyde [jameshyde!~haiwu@c-98-213-109-128.hsd1.il.comcast.net] has joined #ruby
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-pdwibkanslaqqhhj] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@46-64-51-175.zone15.bethere.co.uk] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
cableray [cableray!~cableray@wl-dhcp156-158.Mines.EDU] has joined #ruby
amar_key [amar_key!u2605@gateway/web/irccloud.com/x-flhsfzknrcnutthq] has joined #ruby
<guns> aces1up: It means somebody is trying to avoid namespace clashes
becom33 [becom33!~becom33@112.135.203.18] has joined #ruby
dasfugufish [dasfugufish!~Adium@64-184-237-212.mammothnetworks.com] has joined #ruby
<becom33> http://pastebin.com/zxzcGVmH i wanna remove everythin between /*begin*/ and /*end*/
davidboy [davidboy!u3228@gateway/web/irccloud.com/x-yhevlehfmshguaoc] has joined #ruby
m0nki3 [m0nki3!~c0wCr@gateway/tor-sasl/m4tastati] has quit ["Leaving"]
shaatar [shaatar!u648@gateway/web/irccloud.com/x-aaadmpxkckfvsfod] has joined #ruby
patricksroberts [patricksroberts!u3278@gateway/web/irccloud.com/x-ickukoilfkoekmxt] has joined #ruby
<becom33> i know im doing wrong , help please
SeanTAllen [SeanTAllen!u4855@gateway/web/irccloud.com/x-dgcnmuvopwwuxtkb] has joined #ruby
cableray [cableray!~cableray@wl-dhcp156-158.Mines.EDU] has joined #ruby
dkannan [dkannan!u480@gateway/web/irccloud.com/x-idhaxclrfdcfwhfe] has joined #ruby
pooja [pooja!u4977@gateway/web/irccloud.com/x-gfmhcewgesubmfgs] has joined #ruby
cjs [cjs!~cjs@41.98.156.220.st.bbexcite.jp] has quit ["Leaving"]
vicapow [vicapow!~vicapow@c-24-23-122-34.hsd1.pa.comcast.net] has joined #ruby
djr [djr!~djr@dsl-208-196.madisontelco.com] has joined #ruby
vicapow [vicapow!~vicapow@c-24-23-122-34.hsd1.pa.comcast.net] has quit [#ruby]
counterbeing [counterbeing!~textual@c-24-4-206-189.hsd1.ca.comcast.net] has joined #ruby
kennethreitz [kennethreitz!~kennethre@c-24-127-96-129.hsd1.va.comcast.net] has joined #ruby
kenperkins [kenperkins!~textual@50-47-18-37.evrt.wa.frontiernet.net] has joined #ruby
MetaCosm [MetaCosm!u514@gateway/web/irccloud.com/x-rupfisqiomsizkgi] has joined #ruby
relix [relix!u2146@gateway/web/irccloud.com/x-eizwusijoedehnvz] has joined #ruby
denysonique_ [denysonique_!u484@gateway/web/irccloud.com/x-htzfsidmwndkwidm] has joined #ruby
albemuth [albemuth!~albemuth@201.198.78.18] has joined #ruby
x0F_ [x0F_!~x0F@unaffiliated/x0f] has joined #ruby
kennethreitz [kennethreitz!~kennethre@c-24-127-96-129.hsd1.va.comcast.net] has joined #ruby
achiu [achiu!~Adium@99.32.241.179] has joined #ruby
robyurkowski [robyurkowski!~robyurkow@205.233.80.139] has joined #ruby
kapowaz [kapowaz!u546@gateway/web/irccloud.com/x-fktcianwhxvcmtvk] has joined #ruby
fcoury [fcoury!u2238@gateway/web/irccloud.com/x-rbnwrkmmmyjsfmfq] has joined #ruby
_GazD [_GazD!~GazD@c-98-247-110-81.hsd1.wa.comcast.net] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
MeanOne [MeanOne!~KindOne@colchester-lug/silly-fool/donut] has joined #ruby
mxweas [mxweas!~max@c-24-7-45-147.hsd1.ca.comcast.net] has joined #ruby
acts_as_david [acts_as_david!~acts_as_d@c-71-202-155-161.hsd1.ca.comcast.net] has joined #ruby
<epitron> okay, so first of all, you need to be using a regular expression
<epitron> see http://rubular.com/
<epitron> next: that's basically it
<epitron> :D
djr [djr!~djr@dsl-208-196.madisontelco.com] has joined #ruby
akem [akem!~akem@253.195.84.79.rev.sfr.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
moeSeth [moeSeth!u1029@gateway/web/irccloud.com/x-wxuiptzqoedxobxs] has joined #ruby
ghosTM55 [ghosTM55!~user@222.65.168.45] has joined #ruby
josefig [josefig!~joseph@unaffiliated/josefig] has joined #ruby
thomasdebenning [thomasdebenning!~thomasdeb@c-69-181-139-137.hsd1.ca.comcast.net] has joined #ruby
Skaag [Skaag!~Skaag@cpe-67-247-51-89.nyc.res.rr.com] has joined #ruby
kennethreitz [kennethreitz!~kennethre@c-24-127-96-129.hsd1.va.comcast.net] has joined #ruby
redwinter [redwinter!~mike@host-137-214-107-208.midco.net] has joined #ruby
rippa [rippa!~splitta@85.158.54.234] has joined #ruby
stringoO [stringoO!~JLstring@bas1-toronto42-1279728836.dsl.bell.ca] has joined #ruby
[RHQme]stringo0 [[RHQme]stringo0!~JLstring@bas1-toronto42-1279599319.dsl.bell.ca] has joined #ruby
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
becom33 [becom33!~becom33@112.135.212.161] has joined #ruby
thomasdebenning [thomasdebenning!~thomasdeb@c-69-181-139-137.hsd1.ca.comcast.net] has joined #ruby
nari [nari!~nari@2001:268:306:3:6680:99ff:fe23:576c] has joined #ruby
dankest [dankest!~dankest@ip184-187-165-135.sb.sd.cox.net] has joined #ruby
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.40] has joined #ruby
AlecTaylor [AlecTaylor!alectaylor@unaffiliated/alectaylor] has joined #ruby
<AlecTaylor> I hear Ruby 1.9.* is catching up to Python...
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
jrun [jrun!~jtb@CPE-24-209-176-79.wi.res.rr.com] has joined #ruby
ksinkar [ksinkar!~ksinkar@117.195.112.174] has joined #ruby
xsdg [xsdg!~xsdg@SIPB-VM-99.MIT.EDU] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-98-246-229-6.hsd1.or.comcast.net] has joined #ruby
Pip [Pip!~Pip@host-88-156-66-217.spbmts.ru] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
<davidcelis> in what respect
<davidcelis> being awesome? already happened
<ghosTM55> LOL
Guest1251255 [Guest1251255!~Adium@71-212-21-45.tukw.qwest.net] has joined #ruby
Guest1251255 [Guest1251255!~Adium@71-212-21-45.tukw.qwest.net] has quit [#ruby]
<AlecTaylor> davidcelis: Number processing with complex scientific algorithms
<davidcelis> well that's pretty specific
Pip [Pip!~Pip@host-88-156-66-217.spbmts.ru] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby
Pip [Pip!~Pip@host-88-156-66-217.spbmts.ru] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
centipedefarmer [centipedefarmer!~centipede@71-34-161-120.desm.qwest.net] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
redwinter [redwinter!~mike@host-137-214-107-208.midco.net] has joined #ruby
jrun [jrun!~jtb@CPE-24-209-176-79.wi.res.rr.com] has quit ["WeeChat 0.3.5"]
gianlucadv [gianlucadv!~gianlucad@host32-80-dynamic.44-79-r.retail.telecomitalia.it] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has quit [#ruby]
thomasdebenning [thomasdebenning!~thomasdeb@c-69-181-139-137.hsd1.ca.comcast.net] has joined #ruby
ap3mantus [ap3mantus!~ap3mantus@c-98-217-179-108.hsd1.ma.comcast.net] has joined #ruby
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
kenperkins [kenperkins!~textual@50-47-18-37.evrt.wa.frontiernet.net] has joined #ruby
achiu [achiu!~Adium@99.32.241.179] has joined #ruby
Azure|netbook [Azure|netbook!~azt@unaffiliated/azure] has joined #ruby
apeiros_ [apeiros_!~apeiros@77-58-113-31.dclient.hispeed.ch] has joined #ruby
tomhsx [tomhsx!~tomhsx@c-76-109-166-123.hsd1.fl.comcast.net] has joined #ruby
mark_azevedo [mark_azevedo!~mark_azev@c-67-180-48-38.hsd1.ca.comcast.net] has joined #ruby
fayimora [fayimora!~fayimora@95.175.159.37] has joined #ruby
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
bluOxigen [bluOxigen!ssf@unaffiliated/bluOxigen] has joined #ruby
becom33 [becom33!~becom33@112.135.212.161] has quit [#ruby]
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby
ksinkar [ksinkar!~ksinkar@123.201.117.198] has joined #ruby
djdb [djdb!~digitalbo@linux.minsk.tutby.com] has joined #ruby
Evixion [Evixion!Evixion@tn-67-236-5-224.dhcp.embarqhsd.net] has joined #ruby
nonotza [nonotza!~nonotza@cpe-72-225-173-7.nyc.res.rr.com] has joined #ruby
amerine [amerine!~mturner@206.205.72.226] has joined #ruby
achiu [achiu!~Adium@ip68-5-18-17.oc.oc.cox.net] has joined #ruby
jbhewitt [jbhewitt!~jbhewitt@mail.neradatea.com.au] has joined #ruby
tonini [tonini!~zastav@edge.garaio.com] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
JohnBat26 [JohnBat26!~Eugene@89.175.77.79] has joined #ruby
badabim [badabim!~badabim@c-98-207-235-20.hsd1.ca.comcast.net] has joined #ruby
trivol [trivol!~aurelien@ip-178.net-89-2-84.rev.numericable.fr] has joined #ruby
abstrusenick [abstrusenick!~abstrusen@bb220-255-53-87.singnet.com.sg] has joined #ruby
juarlex_alt [juarlex_alt!~juarlex@201.124.160.19] has joined #ruby
Locke23rus [Locke23rus!~quassel@128-70-1-227.broadband.corbina.ru] has joined #ruby
alem0lars [alem0lars!~alem0lars@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
yxhuvud [yxhuvud!mongo@h-85-82.a212.priv.bahnhof.se] has joined #ruby
FND [FND!~FND@p57B396F3.dip.t-dialin.net] has joined #ruby
dnjaramba_ [dnjaramba_!~dnjaramba@41.72.193.86] has joined #ruby
amerine_ [amerine_!~mturner@206.205.72.226] has joined #ruby
maletor [maletor!~maletor@187.146.209.50] has joined #ruby
AlecTaylor [AlecTaylor!~alectaylo@unaffiliated/alectaylor] has joined #ruby
stringoO [stringoO!~JLstring@bas1-toronto42-1279599144.dsl.bell.ca] has joined #ruby
GoBin [GoBin!~GoBin@193.175.11.148] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
looopy [looopy!~looopy@pool-141-156-47-23.washdc.btas.verizon.net] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
fridim_ [fridim_!~fridim@2a01:e35:2ece:f2d0:223:4eff:fe6c:c754] has joined #ruby
trivol [trivol!~aurelien@81.57.175.21] has joined #ruby
thone [thone!~thone@g226034114.adsl.alicedsl.de] has joined #ruby
zommi [zommi!quassel@nat/ibm/x-rhidxmqcmqpupwpt] has joined #ruby
prtksxna [prtksxna!~prtksxna@27.7.18.120] has joined #ruby
volter [volter!~volker@85-127-135-38.dynamic.xdsl-line.inode.at] has joined #ruby
<volter> Hello!
<volter> I'm packaging a piece of software that has Ruby bindings.
<volter> The modules are shared objects.
<volter> Therefore, I have to install them in: ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]'
<volter> This evaluates to /usr/lib64/ruby/site_ruby/1.8/x86_64-linux on my system.
<volter> How'd you import such a module?
stoffus [stoffus!~stoffus@2001:9b0:1:dead:129a:ddff:fe58:6835] has joined #ruby
senny [senny!~senny@edge.garaio.com] has joined #ruby
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby
wedtm [wedtm!~wedtm@173-12-163-78-oregon.hfc.comcastbusiness.net] has joined #ruby
<Hanmac> volter: sitearch is not perfect ... i think vendor_dir is better ... i thought that because vendor is the place there debian-gem-packages go
<volter> Hanmac: I took that from our guidelines:
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
<Hanmac> hm ok maybe fedora has other rules then debian
* volter doesn't know anything about Ruby
<volter> In the meantime, I discovered $LOAD_PATH, that answers my question to some extent.
<volter> It fails on one of my systems though. Looks like I messed things up.
<volter> Thanks!
<volter> Hanmac: Are different modules usually within one directory?
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
<Hanmac> normaly ... bigger stuff should go to extra dirs
wenbert [wenbert!~wenbert@222.127.160.66] has joined #ruby
ph^ [ph^!~ph^@79.135.7.162] has joined #ruby
mafolz [mafolz!~mafolz@dhcp50-203.start.uni-saarland.de] has joined #ruby
ksinkar [ksinkar!~ksinkar@123.201.117.198] has joined #ruby
dazoakley [dazoakley!~dazoakley@hocuspokus.vm.bytemark.co.uk] has joined #ruby
Sliker [Sliker!~ponies@46.208.59.243] has joined #ruby
jlogsdon_ [jlogsdon_!~jlogsdon@c-67-169-79-114.hsd1.ca.comcast.net] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
D3V1OU5 [D3V1OU5!~D3V1OU5@2001:470:1f08:945::10] has joined #ruby
AlecTaylor [AlecTaylor!~alectaylo@unaffiliated/alectaylor] has joined #ruby
Sigma00 [Sigma00!~freenode@thankyouforhelpingushelpyouhelpusall.net] has joined #ruby
a_a_g [a_a_g!~a_a_g@ec2-107-20-9-103.compute-1.amazonaws.com] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
artOfWar [artOfWar!~artofwar@108-205-201-30.lightspeed.sntcca.sbcglobal.net] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
dhs227 [dhs227!~dhs227@180.115.250.78] has joined #ruby
shaatar [shaatar!u648@gateway/web/irccloud.com/x-hxjttirzutiusnvg] has joined #ruby
pvh [pvh!u717@gateway/web/irccloud.com/x-xlsseyliqkwjxyxz] has joined #ruby
<dhs227> Hi guys. I want to ask, what is the typical and decent way to connect to MSSQL 2008? The client run MS-windows 7.
<dhs227> I have tried several ways but all failed. Such as WIN32OLE.new('ADODB.Connection') and open with connection string
pooja [pooja!u4977@gateway/web/irccloud.com/x-wbjnozwgtqkytuer] has joined #ruby
kapowaz [kapowaz!u546@gateway/web/irccloud.com/x-rwcphslmitlvlyoy] has joined #ruby
davidboy [davidboy!u3228@gateway/web/irccloud.com/x-qojuvqbwsneknfuq] has joined #ruby
FND [FND!~FND@p57B396F3.dip.t-dialin.net] has quit [#ruby]
<dhs227> the server is running on the same machine, so I tried to connect to (local)
cyri_ [cyri_!~cyri_@236.200.72.86.rev.sfr.net] has joined #ruby
artOfWar [artOfWar!~artofwar@nat/yahoo/x-lxujfjwabezurvcl] has joined #ruby
ksinkar_ [ksinkar_!~ksinkar@219.64.193.21] has joined #ruby
pi3r [pi3r!~pi3r@LSt-Amand-152-32-39-189.w80-11.abo.wanadoo.fr] has joined #ruby
wobr [wobr!~william.o@87-194-166-48.bethere.co.uk] has joined #ruby
<dhs227> error message "OLE error code:80004005 in Microsoft OLE DB Provider for SQL Server, [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied."
MetaCosm [MetaCosm!u514@gateway/web/irccloud.com/x-cphaajkqsxdcjddf] has joined #ruby
<dhs227> connectionstring is "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=da;password=123456;Initial Catalog=mydb;Data Source=(local);Network Library=dbmssocn"
<Hanmac> maybe MSSQL Server does not allow local access?
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
geaif [geaif!~geaif@7-239.62-188.cust.bluewin.ch] has joined #ruby
<dhs227> it allows. I use sql management console to login sucessfully on the same machine that I run ruby.
p1d [p1d!~p1d@ns1.vonaffenfels.de] has joined #ruby
geef [geef!~king@108-215-232-154.lightspeed.hstntx.sbcglobal.net] has joined #ruby
<geef> is there anything you need parens in ruby to do?
<geef> like if parens keys fell off my keyboard, what part of the language would i not be able to use?
<geef> i can only thing of ranges
<Hanmac> geef: what parens keys??
<Hanmac> ... but i whould say an complete keyboard is better then a broken
fcoury [fcoury!u2238@gateway/web/irccloud.com/x-umrqzjkxmzfkjhbf] has joined #ruby
denysonique_ [denysonique_!u484@gateway/web/irccloud.com/x-tdnnbcictvcubtzh] has joined #ruby
pvh [pvh!u717@gateway/web/irccloud.com/x-vaurowimsuxsmogb] has joined #ruby
<Hanmac> dhs227: sorry but i cant help you ... i am windows free since 2006
burgestrand [burgestrand!~burgestra@host.62.65.124.23.bitcom.se] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
bastilian [bastilian!~bastilian@chello213047077012.23.11.vie.surfer.at] has joined #ruby
ksinkar__ [ksinkar__!~ksinkar@123.201.117.198] has joined #ruby
nd______ [nd______!~nd@mnhm-5f74c61a.pool.mediaWays.net] has joined #ruby
deeno [deeno!~frank@pool-96-233-74-49.bstnma.fios.verizon.net] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
MetaCosm [MetaCosm!u514@gateway/web/irccloud.com/x-iagfhjxngvpprgwd] has joined #ruby
relix [relix!u2146@gateway/web/irccloud.com/x-zwycllevhpjmzpij] has joined #ruby
nd__ [nd__!~nd@mnhm-590e5d2c.pool.mediaWays.net] has joined #ruby
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-wokazkpwigunygff] has joined #ruby
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
Nss [Nss!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
pietro_ [pietro_!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
davidboy [davidboy!u3228@gateway/web/irccloud.com/x-hythialojostkjki] has joined #ruby
pooja [pooja!u4977@gateway/web/irccloud.com/x-cxjqanapmikfzwxz] has joined #ruby
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
SeanTAllen [SeanTAllen!u4855@gateway/web/irccloud.com/x-pizzwddkylvotsvj] has joined #ruby
patricksroberts [patricksroberts!u3278@gateway/web/irccloud.com/x-lverbofrblmsmrsi] has joined #ruby
notbrent [notbrent!u5121@gateway/web/irccloud.com/x-cwbmnlxrkajcvhze] has joined #ruby
dkannan [dkannan!u480@gateway/web/irccloud.com/x-bcayifkgqfwlzsuj] has joined #ruby
LMolr [LMolr!~quassel@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
claudio [claudio!~claudioc@unaffiliated/claudio] has joined #ruby
claudio [claudio!~claudioc@unaffiliated/claudio] has quit ["Leaving"]
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
xec [xec!~xec@188.95.241.142] has joined #ruby
kapowaz [kapowaz!u546@gateway/web/irccloud.com/x-cztiytozwpzggwdr] has joined #ruby
trivol [trivol!~aurelien@gra94-1-81-57-175-179.fbx.proxad.net] has joined #ruby
<nlko> dhs227: you sure the username is right?
probst [probst!~probst@bumblebee.cl.cam.ac.uk] has joined #ruby
<nlko> 'sa' is default, you not made a typo?
sstrandberg [sstrandberg!~Sebastian@a91-153-112-224.elisa-laajakaista.fi] has joined #ruby
Spockz [Spockz!~Spockz@095-097-113-150.static.chello.nl] has joined #ruby
<sstrandberg> oh goodness, quite a lot of people in here
raincole_ [raincole_!~raincole@140.112.239.113] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
<banisterfiend> sstrandberg: they're all ghosts
mjording [mjording!~mjording@50.14.144.33] has joined #ruby
ephemerian [ephemerian!~ian@82-69-1-248.dsl.in-addr.zen.co.uk] has joined #ruby
burgestrand [burgestrand!~burgestra@host.62.65.124.23.bitcom.se] has joined #ruby
<dhs227> nlko, yes I am pretty sure the username is okay. because i use the same userid and pass to sucessfully login
Ammar01 [Ammar01!~hassaa10@gatej.thls.bbc.co.uk] has joined #ruby
<dhs227> with sql server management studio 2008.
havenn [havenn!~skipper@ip-69-33-241-138.lax.megapath.net] has joined #ruby
canton7 [canton7!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
shevy [shevy!~shevy@178-191-62-216.adsl.highway.telekom.at] has joined #ruby
fayimora [fayimora!~fayimora@lt38-201.eecs.qmul.ac.uk] has joined #ruby
moeSeth [moeSeth!u1029@gateway/web/irccloud.com/x-wnpludfvyqgotree] has joined #ruby
flippingbits [flippingbits!~anonymous@port-212-202-126-63.static.qsc.de] has joined #ruby
jbpros [jbpros!~jbpros@d515285E6.access.telenet.be] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
<dhs227> god helps....
<dhs227> Nobody here exactly know how to let ruby connect to sql server 2008?
<Hanmac> use linux xD
<sstrandberg> sorry if i'm being super-dim here (i just looked at ruby code for the first time ever in an attempt to modify a dice bot), but does ruby care about whitespace?
<Hanmac> nope you can use tabs if you prefer them
<canton7> slightly. You can have ambiguity around things like question marks and brackets
<canton7> e.g. class.method? "test" is not the same as class.method ? "test"
<sstrandberg> i wanted to put an if statement inside of an array.each{} thing
<sstrandberg> and put the if on a new line
<canton7> sstrandberg, pastebin it?
<canton7> (also, semicolons aren't required -- and rarely used -- so newlines can be important)
<sstrandberg> yeah, i noticed that
<sstrandberg> oh what
<sstrandberg> undefined method >
<canton7> sstrandberg, convention was say use do...end for multi-line blocks: http://pastie.org/3200247
<canton7> sstrandberg, ah, what data type is r?
<sstrandberg> aha
<sstrandberg> apparently not an int
<canton7> p results
<canton7> * p results[0].class
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
<canton7> (and no, ruby doesn't have ++. It's something to do with ints being immutable)
<Hanmac> #new Lession: if modifer: results.each{|r| total +=1 if r > 3 }
<sstrandberg> ooh
amar_key [amar_key!u2605@gateway/web/irccloud.com/x-xsitinbfzcwoxjnv] has joined #ruby
<canton7> those statement modifiers are one of my favourite bits of ruby :)
<sstrandberg> alright, lets see if it still doesn't work
vitoravelino [vitoravelino!~vitor@dev.vitoravelino.net] has joined #ruby
vitoravelino [vitoravelino!~vitor@unaffiliated/vtr] has joined #ruby
Araxia_ [Araxia_!~Araxia@c-24-22-63-1.hsd1.or.comcast.net] has joined #ruby
<sstrandberg> oh no, apparently when it catches an error the message it send to IRC is [username], I don't understand...
<canton7> sstrandberg, you can also try "p results[0]" or "puts results[0].inspect" if you want more info on the data type of r...
<sstrandberg> which gives the horrible impression that i'm messing about in its brain, doing irreperable damage
<canton7> haha!
ikaros [ikaros!~ikaros@dslb-188-107-220-229.pools.arcor-ip.net] has joined #ruby
gary_r [gary_r!~gary@193.1.209.220] has joined #ruby
kaneda_ [kaneda_!~kaneda@5adcef2c.bb.sky.com] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@host81-130-92-39.in-addr.btopenworld.com] has joined #ruby
<banisterfiend> rippa: i expected something more pornographic from a japanese comic
tatsuya_o [tatsuya_o!~tatsuya_o@host81-130-92-39.in-addr.btopenworld.com] has joined #ruby
vikhyat [vikhyat!~vikhyat@117.213.237.77] has joined #ruby
letsgojuno [letsgojuno!~mmathews8@host217-34-228-202.in-addr.btopenworld.com] has joined #ruby
r3drevenge [r3drevenge!~r3dr3v3ng@cpe-67-243-40-168.nyc.res.rr.com] has joined #ruby
gary_r [gary_r!~gary@193.1.209.220] has quit ["WeeChat 0.3.0"]
Seisatsu [Seisatsu!~seisatsu@adsl-99-35-225-92.dsl.pltn13.sbcglobal.net] has joined #ruby
<letsgojuno> hi, when dividing numbers like ( 537/100 ) how can i use the correct result, not just the whole number?
<rippa> 537.fdiv 100
<rippa> 537 / 100.0
tvo [tvo!~tvo@wlan-145-94-190-175.wlan.tudelft.nl] has joined #ruby
tvo [tvo!~tvo@katapult/developer/tvo] has joined #ruby
<letsgojuno> cheers rippa
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
<sstrandberg> !
<sstrandberg> i got it working!
<sstrandberg> huzzah
jensn [jensn!~Jens@ip233-65.wireless.lu.se] has joined #ruby
tatsuya__ [tatsuya__!~tatsuya_o@213.152.255.138] has joined #ruby
Dreamer3 [Dreamer3!~Dreamer3@74-134-34-116.dhcp.insightbb.com] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
<banisterfiend> rippa: can you recommend some anime
skurt [skurt!~Benz@ip-84-42-231-134.net.upcbroadband.cz] has joined #ruby
<rippa> have you watched gurren lagann?
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
<skurt> Hello
<banisterfiend> no
<rippa> watch it
<banisterfiend> rippa: link
<sstrandberg> banisterfiend: flcl
<Hanmac> YEAH flcl rocks! XD
<banisterfiend> wat is flcl
<skurt> Im parsing a webpage which is encoded in windows1250 and Im saving it into utf8 file...there are some crazy characters. Is there any easy way to convert those...I cant google anything :(
sinuc [sinuc!~sinuc@unaffiliated/sinuc] has joined #ruby
<sstrandberg> FLCL is a short (6 episode) series about a boy growing up
<sstrandberg> and robots and space aliens
<sstrandberg> it's very surreal
<sstrandberg> and filled with layers of metaphors
<sstrandberg> and has a soundtrack by The Pillows
nicoulaj [nicoulaj!~nicoulaj@pas38-5-82-244-59-208.fbx.proxad.net] has joined #ruby
<Hanmac> sstrandberg: have you seen Dennou Coil?
<banisterfiend> sstrandberg: "Giant Robots from Medical Mechanica have been coming out of Naota's head and cause more problems for Naota. Haruko is using Naota for her search for the Pirate King, Atomsk, because Naota's head is the only one that can create a passageway for the robots."
<banisterfiend> sstrandberg: it sounds ridiculous!
<rippa> banisterfiend: flcl is cool too
<rippa> and by same studio
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
<sstrandberg> it's ridiculous but also kind of grounded
<Hanmac> it is funny when a skycraper-size large robot comes out of the head of a little boy XD
<rippa> he wasn't that big
<banisterfiend> rippa: how big was it rippa
<Hanmac> the last one was (the big hand)
<rippa> hand maybe was
<rippa> I need to rewatch it
<Hanmac> but the NO-Channel is an very interesting way to travel :P
<Hanmac> its like a stargate ... inside your head XD
<Hanmac> ARGGG!!! fuck you GEMA " Leider ist dieses Video, das Musik von SME enthält, in Deutschland nicht verfügbar. Die GEMA hat die Verlagsrechte hieran nicht eingeräumt. "
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
<banisterfiend> Hanmac: how does it get out of the head, through the ear/mouth? and does it stretch an orifice or make its own one and leave an open wound?
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
GazD [GazD!~GazD@c-98-247-110-81.hsd1.wa.comcast.net] has joined #ruby
faber [faber!~faber@ppp-188-12.26-151.libero.it] has joined #ruby
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.45] has joined #ruby
<Hanmac> like a very big pimples :P (without wound)
<Hanmac> rippa: have you seen Dennou Coil?
<banisterfiend> Hanmac: which is your fave studio ghibli animation?
<rippa> Hanmac: only 1st episode so far
<Hanmac> ugh ... i think all what ghibli produced is GREAT ... mononoke is good as sample
<Hanmac> rippa: then you have leaves the best: the cyberworld is reinteracting with the real one :P
<banisterfiend> Hanmac: did you see borrower arriety
BrianE [BrianE!~brian@188-220-10-235.zone11.bethere.co.uk] has joined #ruby
Lord-Harlot [Lord-Harlot!~Serenity@adsl-77-86-68-193.karoo.KCOM.COM] has joined #ruby
<Hanmac> yeah i did it is also good ...
<Hanmac> i have seen a good 3D anime called "Haruka und der Zauberspiegel" ... but i found no infos on wikipedia for you :/
Skaag [Skaag!~Skaag@cpe-67-247-51-89.nyc.res.rr.com] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby
ChampS666 [ChampS666!~ChampS@141.32.27.21] has joined #ruby
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
<banisterfiend> is there a way to generate a subhash from a hash providing certain keys? i.e { :a => 1, :b => 2, :c => 3, :d => 4 }.subhash(:a, :c) #=> { :a => 1, :c => 3}
<banisterfiend> ?
amitprakash [amitprakash!~amitpraka@117.198.130.12] has joined #ruby
<amitprakash> How can I run gems I've installed?
amitprakash_ [amitprakash_!~amitpraka@182.68.213.249] has joined #ruby
<rippa> Hash[hsh.select {|k, v| [:a, :c].include? k}]
<rippa> inorite
tvw [tvw!~tv@212.79.9.150] has joined #ruby
<rippa> Hash[[:a, :c].map {|k| [k, hsh[k]]]
<Hanmac> hm nice ... on 1.9 hash.select returns an hash :P
<rippa> even better
<Hanmac> but not on 1.8 ... *IMO 1.8 should die !faster!*
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
AlecTaylor [AlecTaylor!~alectaylo@CPE-58-164-16-161.lnse5.ken.bigpond.net.au] has joined #ruby
AlecTaylor [AlecTaylor!~alectaylo@unaffiliated/alectaylor] has joined #ruby
<banisterfiend> Hanmac: g-man give me your solution, und!
heftig [heftig!~Jan@archlinux/developer/heftig] has joined #ruby
geaif [geaif!~geaif@7-239.62-188.cust.bluewin.ch] has joined #ruby
<rippa> another one
<rippa> [:a, :c].each_with_object({}) {|k, h| h.merge!({k => hsh[k]})}
trapni [trapni!~trapni@gentoo/developer/trapni] has joined #ruby
fermion [fermion!~textual@venkman.brightcove.com] has joined #ruby
Dreamer3 [Dreamer3!~Dreamer3@74-134-34-116.dhcp.insightbb.com] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
punkrawkR [punkrawkR!~freddiebo@h-9-122.a328.priv.bahnhof.se] has joined #ruby
koala_man [koala_man!vidar@unaffiliated/koala-man/x-2491903] has joined #ruby
<koala_man> how can I run a script in irb and then get a repl for inspecting the set variables?
<banisterfiend> koala_man: use this instead: http://pry.github.com
robotmay [robotmay!~robotmay@94.30.13.228] has joined #ruby
thecreators [thecreators!~rskagy@cpe-65-27-201-150.cinci.res.rr.com] has joined #ruby
berserkr [berserkr!~david@212.122.111.205.dyn.user.ono.com] has joined #ruby
raincole_ [raincole_!~raincole@220-134-147-126.HINET-IP.hinet.net] has joined #ruby
<koala_man> banisterfiend: I installed it, but I have no 'pry' command
ConstantineXVI [ConstantineXVI!~constanti@216-24-48-34.ip.win.net] has joined #ruby
pen [pen!~pen@g1pc2n249.g1.ntu.edu.tw] has joined #ruby
<banisterfiend> koala_man: do you use rvm?
<koala_man> no
<banisterfiend> no idea, sorry
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
<banisterfiend> koala_man: i recommend you use rvm, the distro versions are often out of date and messed up in other ways
<koala_man> doesn't gem have its own repo?
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby
<heftig> banisterfiend: arch's is rather sane
<heftig> by the way, is it possible to change the location where gem drops binaries?
josephwilk [josephwilk!~josephwil@109.231.237.58] has joined #ruby
skurt [skurt!~Benz@nat.wosa.cz] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
robert__ [robert__!~hellspawn@static-96-254-212-18.tampfl.fios.verizon.net] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
benlangfeld [benlangfeld!~ben@unaffiliated/benlangfeld] has joined #ruby
nari [nari!~nari@p42fa56.totrnt01.ap.so-net.ne.jp] has joined #ruby
becom33 [becom33!~becom33@112.135.168.78] has joined #ruby
<becom33> I wanna convert a string in a hex , I went trought the next but all explnations they have is confused , hlp ?
sstrandberg [sstrandberg!~Sebastian@a91-153-112-224.elisa-laajakaista.fi] has quit [#ruby]
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
<heftig> becom33: Array#pack
<becom33> umm heftig ??
<heftig> ah, sorry. other way around
<heftig> String#unpack
<heftig> "abc\xFF\xF0abc".unpack("H*").first
<becom33> puts "test".unpack("H*").first I dont get anything as a result
<heftig> outputs 74657374 here
TheTFEF [TheTFEF!JS@unaffiliated/thetfef] has joined #ruby
<becom33> hay sorry it was my fault , thanks it works
<becom33> :)
S3kx [S3kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.42] has joined #ruby
Guest55437 [Guest55437!~d_roge@97.107.137.179] has joined #ruby
cratchit [cratchit!~cratchit_@li89-229.members.linode.com] has joined #ruby
mksm [mksm!~ramorim@li168-21.members.linode.com] has joined #ruby
<shevy> hmm
plustwo [plustwo!~quassel@unaffiliated/plustwo] has joined #ruby
<shevy> how many other languages have blocks? like def foo; ... foo {} ?
cooper [cooper!~mitchell@unaffiliated/furryfishy] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
chilversc_ [chilversc_!~chris@about/csharp/regular/KeeperOfTheSoul] has joined #ruby
madgraphics [madgraphics!~madgraphi@LMontsouris-156-26-2-94.w80-14.abo.wanadoo.fr] has joined #ruby
Sigma00 [Sigma00!~freenode@thankyouforhelpingushelpyouhelpusall.net] has joined #ruby
Corey_ [Corey_!~Corey@freenode/staff/corey] has joined #ruby
gentz [gentz!ilab@ancient.webfoundation.net] has joined #ruby
akl [akl!~akl@easternmostcoy.simulacrums.net] has joined #ruby
akl [akl!~akl@unaffiliated/akl-] has joined #ruby
DefV [DefV!~Jan@node-hahmcop4no4a1ruk1w.ipv6.as30961.net] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
sinuc [sinuc!~sinuc@irssi.sinuc.boxnet.eu] has joined #ruby
sinuc [sinuc!~sinuc@unaffiliated/sinuc] has joined #ruby
mpereira [mpereira!~mpereira@ec2-50-16-8-218.compute-1.amazonaws.com] has joined #ruby
examancer [examancer!~carl@carlzulauf.xen.prgmr.com] has joined #ruby
nicksmith [nicksmith!~nick@173.214.173.94] has joined #ruby
SirFunk [SirFunk!SirFunk@2600:3c03::f03c:91ff:fe93:11b3] has joined #ruby
dv_ [dv_!~quassel@chello080108009040.14.11.vie.surfer.at] has joined #ruby
hrwath [hrwath!slonik@ruby.hell.edu.pl] has joined #ruby
SpitfireWP [SpitfireWP!spitfire@wikipedia/spitfire] has joined #ruby
CodyMaverick [CodyMaverick!~cody@80.249.82.205] has joined #ruby
QaDeS [QaDeS!~mklaus@frbg-4d029576.pool.mediaWays.net] has joined #ruby
dv_ [dv_!~quassel@chello080108009040.14.11.vie.surfer.at] has joined #ruby
atmosx [atmosx!~atmosx@191.116.broadband5.iol.cz] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
josemota [josemota!~jose@213-205-89-58.net.novis.pt] has joined #ruby
Ttech [Ttech!ttech@botters/staff/ttech] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
jbpros [jbpros!~jbpros@d515285E6.access.telenet.be] has joined #ruby
ChampS666 [ChampS666!~ChampS@wlan1-18.zw.fh-zwickau.de] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
nari_ [nari_!~nari@p42fa56.totrnt01.ap.so-net.ne.jp] has joined #ruby
Sliker [Sliker!~ponies@46.208.59.243] has joined #ruby
Sliker [Sliker!~ponies@46.208.59.243] has joined #ruby
burgestrand [burgestrand!~burgestra@dhcp-188018.eduroam.chalmers.se] has joined #ruby
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
tk_ [tk_!~tk@p083005.doubleroute.jp] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
madgraphic [madgraphic!~madgraphi@LMontsouris-156-26-2-94.w80-14.abo.wanadoo.fr] has joined #ruby
madgraphics [madgraphics!~madgraphi@LMontsouris-156-26-2-94.w80-14.abo.wanadoo.fr] has joined #ruby
benlangfeld [benlangfeld!~ben@unaffiliated/benlangfeld] has joined #ruby
wobr [wobr!~william.o@87-194-166-48.bethere.co.uk] has joined #ruby
pietro [pietro!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
wenbert [wenbert!~wenbert@120.28.216.245] has joined #ruby
strife25 [strife25!~strife25@cpe-098-026-018-050.nc.res.rr.com] has joined #ruby
batlock666 [batlock666!~quassel@bvderbau.ugent.be] has joined #ruby
madgraphic [madgraphic!~madgraphi@LMontsouris-156-26-2-94.w80-14.abo.wanadoo.fr] has joined #ruby
Mittty [Mittty!736e0874@gateway/web/freenode/ip.115.110.8.116] has joined #ruby
<Mittty> hai friends
<Mittty> I am a started in ruby just had a small doubt...
mjording [mjording!~mjording@107.56.156.114] has joined #ruby
<Mittty> if i want to write a private method in ruby to be written in a rails controller...
<Mittty> will I have to write private first and then in the next line the method def ?
bastilian [bastilian!~bastilian@chello213047077012.23.11.vie.surfer.at] has joined #ruby
<Mittty> if that is the case will all the methods written after Private keyword become private
<Mittty> ????
<rippa> yes
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
<rippa> private is actually a method
<rippa> not a keyword
<Mittty> <rippa> so i should be writing all my public methods before from where i start private or else after the private methods i will again have to use the keyword public!! is it?
axilla [axilla!~axilla@c-71-234-169-157.hsd1.vt.comcast.net] has joined #ruby
<Mittty> i mean method public ?
<rippa> yes
<Mittty> and so if in the application helper file i write a private method will that be not accessible to methods in any of the controllers in the entire app? I mean what essentially would be the limitation of the private methoods?
<rippa> I'm not sure about rails, never used it
<Mittty> <rippa> ok rippa thanks for your help... :)
<rippa> private methods can only be used by object of that class
<rippa> or inherited from it
<Mittty> <rippa> ok so essentially in my case when if i define a private method in applicaiton helper.rb then tat method will only be available in that module alone
<Mittty> got it :)
<Mittty> <rippa> where do you think ruby stands in the run compared to java ??
manizzle [manizzle!~manizzle@pcp046692pcs.pcv.reshall.calpoly.edu] has joined #ruby
prtksxna [prtksxna!~prtksxna@27.7.18.120] has joined #ruby
<Mittty> <rippa> especially considering the job market ?
<rippa> no idea
<Mittty> <rippa> ok rippa thank you
CodyMaverick [CodyMaverick!~cody@80.249.82.205] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
ikaros [ikaros!~ikaros@studpool-wlan-74-3.fs.fbi.h-da.de] has joined #ruby
ferbass [ferbass!~ferbass@189.120.69.136] has joined #ruby
icrazyhack [icrazyhack!~horieyui@183.93.198.23] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
burgestrand [burgestrand!~burgestra@dhcp-187042.eduroam.chalmers.se] has joined #ruby
runeb [runeb!~runeb@77.40.155.28] has joined #ruby
fortysixandtwo [fortysixandtwo!~fortysixa@77.40.186.166] has joined #ruby
burgestrand [burgestrand!~burgestra@dhcp-187042.eduroam.chalmers.se] has joined #ruby
<shevy> what reads nicer for you:
<shevy> li { a 'Google', :href => 'http://google.com/' }
<shevy> li { ahref 'Google: http://google.com/' }
pi3r [pi3r!~pi3r@LSt-Amand-152-32-39-189.w80-11.abo.wanadoo.fr] has joined #ruby
runeb [runeb!~runeb@77.40.155.28] has joined #ruby
kvyn [kvyn!~kvyn@w0109-49-134-213-166.uqwimax.jp] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
<JonnieCa1he> the first one
<JonnieCa1he> because it looks more like normal ruby
madgraphics [madgraphics!~madgraphi@LMontsouris-156-26-2-94.w80-14.abo.wanadoo.fr] has joined #ruby
thecreators [thecreators!~rskagy@cpe-65-27-201-150.cinci.res.rr.com] has joined #ruby
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
dariat [dariat!~Dariat@ip-141-31-188-43.nat.selfnet.de] has joined #ruby
<dariat> I installed Ruby on Win XP using the Ruby installer, but I can't seem to execute the scripts in cmd.exe. What could be wrong?
Pip [Pip!~Pip@host-191-146-66-217.spbmts.ru] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
mztriz [mztriz!~mztriz@74-136-75-114.dhcp.insightbb.com] has joined #ruby
ferbass [ferbass!~ferbass@189.120.69.136] has joined #ruby
<shevy> dariat if you are in cmd.exe can you type "irb" and it works?
`brendan [`brendan!~b@66-208-246-34-ubr02b-waldlk01-mi.hfc.comcastbusiness.net] has joined #ruby
codefriar [codefriar!~codefriar@ip-200.it.rdu.bandwidth.com] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
<dariat> shevy: no
<shevy> dariat hmm works for me when I am on windows. I am not sure what you did, where did you install ruby on winxp?
<shevy> I think something may be incorrect with the PATH
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
<rippa> POLICE LINE DO NOT CROSS
* shevy crosses!
canton7 [canton7!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
ferbass [ferbass!~ferbass@189.120.69.136] has joined #ruby
<dariat> I got it to work.
pen [pen!~pen@g1pc2n249.g1.ntu.edu.tw] has joined #ruby
newellista [newellista!~snewell@71-213-16-226.slkc.qwest.net] has joined #ruby
iamjarvo [iamjarvo!~Adium@c-71-230-13-201.hsd1.nj.comcast.net] has joined #ruby
jtrudeau [jtrudeau!~jeff@75-150-71-83-NewEngland.hfc.comcastbusiness.net] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
mklappstuhl [mklappstuhl!~mklappstu@p4FC3E7DC.dip.t-dialin.net] has joined #ruby
semflg [semflg!~flg@91.194.158.21] has joined #ruby
dekoms [dekoms!~dekom@static-151-201-141-172.pitt.east.verizon.net] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
Sliker [Sliker!~ponies@46.208.59.243] has joined #ruby
akem [akem!~akem@253.195.84.79.rev.sfr.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
ferbass [ferbass!~ferbass@189.120.69.136] has joined #ruby
senny_ [senny_!~senny@edge.garaio.com] has joined #ruby
31NAAPNB6 [31NAAPNB6!~sahli@41.224.36.130] has joined #ruby
rickmasta [rickmasta!~rickmasta@pool-71-183-247-164.nycmny.fios.verizon.net] has joined #ruby
Barakas [Barakas!~v@77.242.201.52] has joined #ruby
burgestrand [burgestrand!~burgestra@dhcp-191046.eduroam.chalmers.se] has joined #ruby
madgraphics [madgraphics!~madgraphi@LMontsouris-156-26-2-94.w80-14.abo.wanadoo.fr] has joined #ruby
centipedefarmer [centipedefarmer!~centipede@71-34-161-120.desm.qwest.net] has joined #ruby
Nss_ [Nss_!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
vraa [vraa!~vraa@h224.68.89.75.dynamic.ip.windstream.net] has joined #ruby
Nss__ [Nss__!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
Nss [Nss!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
emocakes [emocakes!~om@189-11-46-97.mganm703.dsl.brasiltelecom.net.br] has joined #ruby
carlyle [carlyle!~carlyle@216.133.69.20] has joined #ruby
phantomfake [phantomfake!~whats_in_@pool-71-190-229-236.nycmny.fios.verizon.net] has joined #ruby
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
dankest [dankest!~dankest@ip184-187-165-135.sb.sd.cox.net] has joined #ruby
ferbass [ferbass!~ferbass@189.120.69.136] has joined #ruby
yfeldblum [yfeldblum!~Jay@pool-71-246-76-76.bltmmd.east.verizon.net] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@host-208-68-238-122.biznesshosting.net] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
Locke23rus_ [Locke23rus_!~quassel@128-70-13-32.broadband.corbina.ru] has joined #ruby
jgarvey [jgarvey!~jgarvey@cpe-174-097-248-211.nc.res.rr.com] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
thecreators [thecreators!~rskagy@cpe-65-27-201-150.cinci.res.rr.com] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
bbttxu [bbttxu!~adam@nt8rsctf1.unt.ad.unt.edu] has joined #ruby
bbttxu [bbttxu!~adam@nt8rsctf1.unt.ad.unt.edu] has joined #ruby
norex [norex!~quassel@41-133-238-44.dsl.mweb.co.za] has joined #ruby
evantravers [evantravers!~textual@fw.luckie.net] has joined #ruby
mikespokefire [mikespokefire!~mikespoke@94-193-81-39.zone7.bethere.co.uk] has joined #ruby
nooodl [nooodl!~nooodl@91.177.187.83] has joined #ruby
Nss [Nss!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
nanderoo [nanderoo!~nanders@38.124.137.226] has joined #ruby
josefig [josefig!~joseph@unaffiliated/josefig] has joined #ruby
amerine [amerine!~mturner@206.205.72.226] has joined #ruby
philcrissman [philcrissman!~philcriss@206.57.45.116] has joined #ruby
centipedefarmer [centipedefarmer!~centipede@71-34-161-120.desm.qwest.net] has joined #ruby
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
csavola [csavola!~csavola@76-10-149-67.dsl.teksavvy.com] has joined #ruby
tesmar [tesmar!~tesmar@rrcs-70-62-109-131.midsouth.biz.rr.com] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
ChampS666 [ChampS666!~ChampS@141.32.23.204] has joined #ruby
kerframil [kerframil!~kerframil@gentoo/user/kerframil] has joined #ruby
burgestrand [burgestrand!~burgestra@host.62.65.124.23.bitcom.se] has joined #ruby
tobym [tobym!~tobym@pool-173-56-80-136.nycmny.fios.verizon.net] has joined #ruby
rippa [rippa!~rippa@93-181-232-63.adsl.yaroslavl.ru] has joined #ruby
Sailias [Sailias!~jonathan@s72-38-77-178.static.comm.cgocable.net] has joined #ruby
polysics [polysics!~luca@host211-72-dynamic.245-95-r.retail.telecomitalia.it] has joined #ruby
<polysics> hello
mkscrg [mkscrg!~mkscrg@pool-108-41-134-165.nycmny.fios.verizon.net] has joined #ruby
<polysics> i am feeling a tad stupid today
<polysics> i would like to have a value that is a module class variable, to act as a configuration
juarlex [juarlex!~juarlex@201.124.160.19] has joined #ruby
dhs227 [dhs227!~dhs227@124.77.7.153] has joined #ruby
<polysics> ie. module is called Loquacious, i would like to have Loquacious.prefix available for writing and reading
<polysics> attr_accessor inside class << self works
<polysics> but how do i set the default?
gianlucadv [gianlucadv!~gianlucad@st-dellaved.statistica.unimib.it] has joined #ruby
<polysics> using @env_prefix = "smt" inside class << self, after the accessors, does not do what i though it would
Ankhers [Ankhers!~user@76-10-149-67.dsl.teksavvy.com] has joined #ruby
<dhs227> Ruby interpreter crash everytime I run. The codepiece as simple as only two lines:
<dhs227> require 'tiny_tds'
<dhs227> client = TinyTds::Client.new(:username => 'da', :password => '123456', :dataserver => '(local)')
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
ap3mantus [ap3mantus!~ap3mantus@c-98-217-179-108.hsd1.ma.comcast.net] has joined #ruby
axl_ [axl_!~axl@75-149-152-225-Minnesota.hfc.comcastbusiness.net] has joined #ruby
gcds [gcds!~gcds@78-57-203-174.static.zebra.lt] has joined #ruby
<dhs227> the crash output as below:
<dhs227> tds_init_winsock: WSAEnumProtocols failed with 10055 (WSAENOBUFS: No buffer space available.)
<dhs227> C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/tiny_tds-0.5.0-x86-mingw32/lib/tiny_tds/client.rb:67: [BUG] Segmentation fault
<dhs227> ruby 1.9.2p290 (2011-07-09) [i386-mingw32]
<gcds> hi guys
gen0cide_ [gen0cide_!~TigerBloo@c-76-126-176-33.hsd1.ca.comcast.net] has joined #ruby
dasfugufish [dasfugufish!~Adium@64-184-237-212.mammothnetworks.com] has joined #ruby
gen0cide_ [gen0cide_!~TigerBloo@c-76-126-176-33.hsd1.ca.comcast.net] has joined #ruby
<mlue> oh boy
<mlue> ming
gen0cide_ [gen0cide_!~TigerBloo@c-76-126-176-33.hsd1.ca.comcast.net] has joined #ruby
tomzx [tomzx!~tomzx@dsl-156-68.aei.ca] has joined #ruby
<gcds> maybe someone knows library which could parse a text and replace things on text based on certain grammar? For e.g. text "cat" replace with value from Animals::Cat function return value?
raincole_ [raincole_!~raincole@140.112.239.113] has joined #ruby
<rippa> String#gsub
RoUS [RoUS!KenCoar@apache/committer/coar] has joined #ruby
AlecTaylor [AlecTaylor!~alectaylo@unaffiliated/alectaylor] has joined #ruby
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has joined #ruby
<dhs227> help on that?
Nss [Nss!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@213.152.255.138] has joined #ruby
CreativeEmbassy [CreativeEmbassy!~CreativeE@h142.127.232.68.dynamic.ip.windstream.net] has joined #ruby
maletor [maletor!~maletor@187.146.209.50] has joined #ruby
<AlecTaylor> Where is the dependency file located from "bundle install"?
tbrock [tbrock!~tbrock@74.113.160.178] has joined #ruby
<tbrock> hey guys, does anyone know what the tryruby.org website was made with?
<tbrock> like how they got the REPL to work, is there a JS library that everyone uses to do that sort of thing
<tbrock> any info on it would be greatly appreciated
nuba [nuba!~nuba@pauleira.com] has joined #ruby
dekroning [dekroning!~dekroning@217.166.122.42] has joined #ruby
Raynes [Raynes!~macro@unaffiliated/raynes] has quit ["Textual IRC Client: http://www.textualapp.com/"]
jackerran [jackerran!~jackerran@fw.luckie.net] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby
x77686d [x77686d!~whm@vecta.cs.arizona.edu] has joined #ruby
maasha [maasha!535c4c84@gateway/web/freenode/ip.83.92.76.132] has joined #ruby
beakerman [beakerman!~beakerman@c-76-118-172-173.hsd1.nh.comcast.net] has joined #ruby
<maasha> I am terrible with Threads. This hangs and I am trying to figure out why? http://pastie.org/3201776
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has joined #ruby
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has joined #ruby
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has joined #ruby
letsgojuno [letsgojuno!~mmathews8@host217-34-228-202.in-addr.btopenworld.com] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
letsgojuno [letsgojuno!~mmathews8@host217-34-228-202.in-addr.btopenworld.com] has joined #ruby
btanaka [btanaka!~textual@c-98-207-235-20.hsd1.ca.comcast.net] has joined #ruby
theRoUS [theRoUS!KenCoar@nat/redhat/x-vtkvxhweesqiqsbv] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
kpshek [kpshek!~kpshek@159.140.254.109] has joined #ruby
geaif [geaif!~geaif@xdsl-188-155-129-176.adslplus.ch] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@adsl-99-35-225-92.dsl.pltn13.sbcglobal.net] has joined #ruby
jbpros [jbpros!~jbpros@d515285E6.access.telenet.be] has joined #ruby
ap3mantus [ap3mantus!~ap3mantus@c-98-217-187-172.hsd1.ma.comcast.net] has joined #ruby
<JonnieCa1he> tbrock: i think they use emscripten to compile mri to js
<JonnieCa1he> look at repl.it
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
Liothen [Liothen!~liothen@pdpc/supporter/professional/liothen] has joined #ruby
caiges [caiges!~caiges@wsip-68-14-249-226.ph.ph.cox.net] has joined #ruby
jmorton_ [jmorton_!~jmorton@CUSTOMINK-L.ipcolo2.Washington1.Level3.net] has joined #ruby
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
Taylor [Taylor!~alectaylo@CPE-58-164-16-161.lnse5.ken.bigpond.net.au] has joined #ruby
rfloriano [rfloriano!~rfloriano@189.115.113.203.dynamic.adsl.gvt.net.br] has joined #ruby
michael_mbp [michael_mbp!~Marin@31.203.10.218] has joined #ruby
_musee [_musee!~musee@unaffiliated/musee] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
brngardner [brngardner!~brngardne@c-98-192-3-166.hsd1.ga.comcast.net] has joined #ruby
albemuth [albemuth!~albemuth@201.198.78.18] has joined #ruby
KindOne [KindOne!~KindOne@colchester-lug/silly-fool/donut] has joined #ruby
robyurkowski [robyurkowski!~robyurkow@64.254.250.82] has joined #ruby
kenperkins [kenperkins!~textual@50-47-18-37.evrt.wa.frontiernet.net] has joined #ruby
caiges_ [caiges_!~caiges@wsip-68-14-249-226.ph.ph.cox.net] has joined #ruby
indstry [indstry!~apple@c-71-238-98-243.hsd1.mi.comcast.net] has joined #ruby
strife25 [strife25!strife25@nat/ibm/x-ybevdhwoikdxsthl] has joined #ruby
burgestrand [burgestrand!~burgestra@host.62.65.124.23.bitcom.se] has joined #ruby
skaczor [skaczor!~quassel@mail.prognosoft.biz] has joined #ruby
senny [senny!~senny@edge.garaio.com] has joined #ruby
ferbass [ferbass!~ferbass@189.102.51.45] has joined #ruby
pietro [pietro!~pietro@dynamic-adsl-94-37-159-11.clienti.tiscali.it] has joined #ruby
thomasdebenning [thomasdebenning!~thomasdeb@c-69-181-139-137.hsd1.ca.comcast.net] has joined #ruby
ChampS666 [ChampS666!~ChampS@wlan1-18.zw.fh-zwickau.de] has joined #ruby
ckrailo [ckrailo!~ckrailo@208.86.167.247] has joined #ruby
pootpoot [pootpoot!~pootpoot@38.108.250.130] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
ferbass [ferbass!~ferbass@189.102.51.45] has joined #ruby
gcds [gcds!~gcds@78-57-203-174.static.zebra.lt] has joined #ruby
charlenopires [charlenopires!~quassel@186.194.13.186] has joined #ruby
jbpros [jbpros!~jbpros@d515285E6.access.telenet.be] has joined #ruby
austinbv [austinbv!~austinbv@65-134.127-70.tampabay.res.rr.com] has joined #ruby
<austinbv> I am trying to fid a way to package a little ruby app up unto a bin so people dont have to have bundler and all that crap to use it/ Is that possible
rflorianobr [rflorianobr!~rfloriano@189.115.113.203.dynamic.adsl.gvt.net.br] has joined #ruby
axl_ [axl_!~axl@173-11-52-113-Minnesota.hfc.comcastbusiness.net] has joined #ruby
alex__c2022 [alex__c2022!~alex@207.239.64.154] has joined #ruby
Nss_ [Nss_!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
pietro__ [pietro__!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
<C0deMaver1ck> austinbv: so you basically want to compile it?
<austinbv> yeah with all gems and deps
<austinbv> http://www.erikveen.dds.nl/rubyscript2exe/ is the best I found but windows is not what I am looking for
kf8a [kf8a!~kf8a@user-33c730.user.msu.edu] has joined #ruby
caiges [caiges!~caiges@wsip-68-14-249-226.ph.ph.cox.net] has joined #ruby
becom33 [becom33!~becom33@112.135.199.245] has joined #ruby
crankycoder [crankycoder!~crankycod@2620:101:8003:200:197d:31f3:45bf:4dba] has joined #ruby
nooodl [nooodl!~nooodl@91.177.187.83] has joined #ruby
heftig [heftig!~Jan@archlinux/developer/heftig] has joined #ruby
Nss [Nss!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
Nss [Nss!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby
palcu [palcu!~alex@89.122.187.223] has joined #ruby
Planet_EN [Planet_EN!~nkhan@87.200.52.125] has joined #ruby
xec [xec!~xec@188.95.241.142] has joined #ruby
vraa_ [vraa_!~vraa@c-76-30-135-64.hsd1.tx.comcast.net] has joined #ruby
LiquidInsect [LiquidInsect!~billabney@173.228.117.162] has joined #ruby
blueadept [blueadept!~blueadept@pool-96-251-83-184.lsanca.dsl-w.verizon.net] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
noize_hioki [noize_hioki!~noize_hio@ai126194000253.1.tss.access-internet.ne.jp] has joined #ruby
stayarrr [stayarrr!~olivererx@dslb-178-009-059-241.pools.arcor-ip.net] has joined #ruby
ryanrolds [ryanrolds!ryanrolds@c-67-171-212-61.hsd1.or.comcast.net] has joined #ruby
ryanrolds [ryanrolds!ryanrolds@c-67-171-212-61.hsd1.or.comcast.net] has quit [#ruby]
D3V1OU5 [D3V1OU5!Zephro@2001:470:1f08:945::10] has joined #ruby
D3V1OU5 [D3V1OU5!Zephro@2001:470:1f08:945::10] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
v0n [v0n!~v4n@2607:fad8:4:0:21e:8cff:fe4d:2f7d] has joined #ruby
dasfugufish [dasfugufish!~Adium@174-27-233-214.slkc.qwest.net] has joined #ruby
robert__ [robert__!~hellspawn@objectx/robert] has joined #ruby
D3V1OU5 [D3V1OU5!Zephro@2001:470:1f08:945::10] has joined #ruby
_GazD [_GazD!~GazD@c-98-247-110-81.hsd1.wa.comcast.net] has quit ["Closing Window"]
artOfWar [artOfWar!~artofwar@108-205-201-30.lightspeed.sntcca.sbcglobal.net] has joined #ruby
C0deMaver1ck [C0deMaver1ck!~C0deMaver@adsl-98-95-53-2.jan.bellsouth.net] has joined #ruby
p0y [p0y!~p0y@121.97.55.118] has joined #ruby
cynosure [cynosure!~cynosure@centrumnet.hu] has joined #ruby
runeb [runeb!~runeb@77.40.155.28] has joined #ruby
runeb [runeb!~runeb@77.40.155.28] has joined #ruby
stringoO [stringoO!~JLstring@bas1-toronto42-1279599144.dsl.bell.ca] has joined #ruby
runeb [runeb!~runeb@77.40.155.28] has joined #ruby
p0y_ [p0y_!~p0y@112.210.99.238] has joined #ruby
artOfWar [artOfWar!~artofwar@nat/yahoo/x-rnjusmmpjldavadc] has joined #ruby
adamkittelson [adamkittelson!~adamkitte@c-24-23-252-19.hsd1.ca.comcast.net] has joined #ruby
iamjarvo [iamjarvo!~Adium@c-71-230-13-201.hsd1.nj.comcast.net] has joined #ruby
mk03 [mk03!~mk03@61.245.119.34.er.eaccess.ne.jp] has joined #ruby
headius [headius!~headius@71-210-154-45.mpls.qwest.net] has joined #ruby
Guest99054 [Guest99054!~LessIsMor@2.176.231.220] has joined #ruby
jergason [jergason!~jergason@208.97.56.66] has joined #ruby
tobym [tobym!~tobym@pool-173-56-80-136.nycmny.fios.verizon.net] has joined #ruby
kenperkins [kenperkins!~textual@174-24-171-37.tukw.qwest.net] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
cli654 [cli654!~cli654@unaffiliated/firippu] has joined #ruby
<becom33> http://pastebin.com/ve52CvHV why cant I send spaces in requests ?
<becom33> I know its in localhost but try it some other page . still I get the space error , and the error is their in the paste
berserkr [berserkr!~david@212.122.111.205.dyn.user.ono.com] has joined #ruby
* becom33 anyone >?
hasrb [hasrb!~hasrb@108-85-134-26.lightspeed.austtx.sbcglobal.net] has joined #ruby
brngardner [brngardner!~brngardne@lawn-143-215-118-65.lawn.gatech.edu] has joined #ruby
rippa [rippa!~rippa@93-181-232-63.adsl.yaroslavl.ru] has joined #ruby
janissary [janissary!~user@nmd.sbx08279.wintefl.wayport.net] has joined #ruby
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby
anoNxeRo [anoNxeRo!~LessIsMor@2.176.231.220] has joined #ruby
anoNxeRo [anoNxeRo!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
niklasb [niklasb!~codeslay0@p5B31098D.dip0.t-ipconnect.de] has joined #ruby
<koala_man> I have an object whose .class is REXML::Element. I can call object.attributes and get a hash, but when I look at http://www.ruby-doc.org/stdlib-1.8.6/libdoc/rexml/rdoc/REXML/Elements.html there is no such thing. why is this? is the documentation just lacking?
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
<wmoxam> becom33: your code for ensuring query is a string is weird :p
<wmoxam> becom33: you could remove the if statement and just do: url = url_in + query.to_s
ferbass_ [ferbass_!~ferbass@189.102.51.45] has joined #ruby
<wmoxam> becom33: also, you want to use URI.parse
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has quit [#ruby]
ferbass [ferbass!~ferbass@189.102.51.45] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
dotnull [dotnull!~dot_null@office.t8webware.com] has joined #ruby
Indian_ [Indian_!~Indian@unaffiliated/londonmet050] has joined #ruby
gianlucadv [gianlucadv!~gianlucad@109.53.188.130] has joined #ruby
C0deMaver1ck [C0deMaver1ck!~C0deMaver@adsl-98-95-53-2.jan.bellsouth.net] has quit ["Leaving..."]
supergiantrobot [supergiantrobot!~supergian@cpe-174-097-169-208.nc.res.rr.com] has joined #ruby
crankycoder [crankycoder!~crankycod@nat/mozilla/x-zltpfikhtxglnszn] has joined #ruby
SegFaultAX|work [SegFaultAX|work!~mkbernard@173.228.45.162] has joined #ruby
MrKeuner [MrKeuner!~MrKeuner@unaffiliated/mrkeuner] has joined #ruby
eldariof [eldariof!~CLD@81.200.24.47] has joined #ruby
<MrKeuner> hello, not a ruby developer... I have scripts that "puts" irrevelant string to stdout as well as errors. how can I send error output to stderr in ruby?
<wmoxam> STDERR.puts
<MrKeuner> wmoxam, thanks
kinofcain [kinofcain!~KinOfCain@72.244.116.58] has joined #ruby
adeponte [adeponte!~adeponte@67.110.253.162.ptr.us.xo.net] has joined #ruby
zenergi [zenergi!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
mark_azevedo [mark_azevedo!~mark_azev@adsl-76-228-82-246.dsl.pltn13.sbcglobal.net] has joined #ruby
jrun [jrun!~jtb@rrcs-98-100-206-130.central.biz.rr.com] has joined #ruby
daniel_hinojosa [daniel_hinojosa!~danno@67-0-117-93.albq.qwest.net] has joined #ruby
runeb [runeb!~runeb@cm-84.215.181.150.getinternet.no] has joined #ruby
fridim_ [fridim_!~fridim@2a01:e35:2ece:f2d0:223:4eff:fe6c:c754] has joined #ruby
madgraphics [madgraphics!~madgraphi@80.214.0.81] has joined #ruby
ferbass [ferbass!~ferbass@189.102.51.45] has joined #ruby
bier [bier!~bier@p54A5AF1D.dip.t-dialin.net] has joined #ruby
eignerchris [eignerchris!~eignerchr@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
dankest [dankest!~dankest@wsip-174-75-64-190.sb.sd.cox.net] has joined #ruby
sonkei [sonkei!~sonkei@d14-69-26-171.try.wideopenwest.com] has joined #ruby
Araxia_ [Araxia_!~Araxia@173-164-68-213-Oregon.hfc.comcastbusiness.net] has joined #ruby
MasterIdler [MasterIdler!~MasterIdl@76-10-135-156.dsl.teksavvy.com] has joined #ruby
sonkei [sonkei!~sonkei@d14-69-26-171.try.wideopenwest.com] has joined #ruby
mrsolo [mrsolo!~mrsolo@64.125.181.73] has joined #ruby
apeiros_ [apeiros_!~apeiros@77-58-113-31.dclient.hispeed.ch] has joined #ruby
Targen [Targen!~iguana@159.90.11.250] has joined #ruby
Russell^^ [Russell^^!~Russell^^@88.97.51.87] has joined #ruby
Asher [Asher!~asher@98.158.127.150] has joined #ruby
becom33 [becom33!~becom33@112.135.199.245] has quit [#ruby]
carlyle [carlyle!~carlyle@rrcs-96-10-255-203.midsouth.biz.rr.com] has joined #ruby
quest88 [quest88!~quest88@12.181.53.123] has joined #ruby
cynosure [cynosure!~cynosure@centrumnet.hu] has joined #ruby
volter [volter!~volker@85-127-135-38.dynamic.xdsl-line.inode.at] has joined #ruby
josh__ [josh__!~josh@74-95-43-126-Oregon.hfc.comcastbusiness.net] has joined #ruby
DFectuoso [DFectuoso!~DFectuoso@189.169.212.239] has joined #ruby
virunga [virunga!~virunga@151.64.7.45] has joined #ruby
bluOxigen [bluOxigen!ssf@unaffiliated/bluOxigen] has joined #ruby
sonkei [sonkei!~sonkei@d14-69-26-171.try.wideopenwest.com] has joined #ruby
adamkittelson [adamkittelson!~adamkitte@50.0.132.2] has joined #ruby
crankycoder [crankycoder!~crankycod@nat/mozilla/x-vqleyqttpeoavvwf] has joined #ruby
cousine [cousine!~cousine@196.218.42.9] has joined #ruby
mioukyyy [mioukyyy!~mioukyyy@ip-213-49-238-223.dsl.scarlet.be] has joined #ruby
kenichi [kenichi!~kenichi@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
amerine [amerine!~mturner@66.153.72.177] has joined #ruby
tvo [tvo!~tvo@katapult/developer/tvo] has joined #ruby
adamkittelson [adamkittelson!~adamkitte@50.0.132.2] has joined #ruby
badabim [badabim!~badabim@17.212.166.215] has joined #ruby
cyri_ [cyri_!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby
LMolr [LMolr!~quassel@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
KindTwo [KindTwo!KindOne@gateway/shell/trekweb.org/x-kygpyzamevztczsa] has joined #ruby
ephemerian [ephemerian!~ian@82-69-1-248.dsl.in-addr.zen.co.uk] has quit [#ruby]
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
alfism [alfism!~alfism@2620:149:4:1201:acc5:f6cd:7880:7fa9] has joined #ruby
KindTwo [KindTwo!KindOne@colchester-lug/silly-fool/donut] has joined #ruby
pxjorge [pxjorge!~pxjorge@a79-169-113-23.cpe.netcabo.pt] has joined #ruby
jerikl [jerikl!~justin@rrcs-64-183-231-122.sw.biz.rr.com] has joined #ruby
fridim_ [fridim_!~fridim@2a01:e35:2ece:f2d0:223:4eff:fe6c:c754] has joined #ruby
ikaros [ikaros!~ikaros@dslb-188-107-220-229.pools.arcor-ip.net] has joined #ruby
baroquebobcat [baroquebobcat!~nick@70-90-113-174-co.denver.hfc.comcastbusiness.net] has joined #ruby
btanaka [btanaka!~textual@17.245.91.170] has joined #ruby
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
KindOne [KindOne!KindOne@colchester-lug/silly-fool/donut] has quit [#ruby]
voodoofish430 [voodoofish430!~mtorres@208.76.2.200] has joined #ruby
mars2686 [mars2686!8360d1e9@gateway/web/freenode/ip.131.96.209.233] has joined #ruby
<mars2686> korean is not working in ruby
<mars2686> this line of code is giving me issues
<mars2686> words << " 것 | A thing or an object"
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby
<mars2686> does anyone know how to resolve this? I did some research and read that you can require 'unicode'
<mars2686> but it's not helping
<mars2686> I get this error: taxi.rb:8: invalid multibyte char (US-ASCII)
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby
<apeiros_> mars2686: add `# encoding: utf-8` to the top of your file
<apeiros_> your file is assumed to be ASCII without it, and 것 is not valid in ascii.
RomD [RomD!~Roman@nrbg-4d0760c5.pool.mediaWays.net] has joined #ruby
lorandi [lorandi!~lorandi@32.104.18.200] has joined #ruby
S1kx [S1kx!~S1kx@pdpc/supporter/monthlybyte/s1kx] has joined #ruby
nobitanobi1 [nobitanobi1!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
theRoUS [theRoUS!KenCoar@nat/redhat/x-cjtppknukisueoyv] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
daniel_hinojosa [daniel_hinojosa!~danno@67-0-117-93.albq.qwest.net] has joined #ruby
fayimora [fayimora!~fayimora@109.175.187.219] has joined #ruby
amerine [amerine!~mturner@66.153.72.177] has joined #ruby
Squarepy [Squarepy!~Squarepy@ip82-139-118-42.lijbrandt.net] has joined #ruby
Squarepy [Squarepy!~Squarepy@unaffiliated/squarepy] has joined #ruby
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
counterbeing [counterbeing!~textual@173-228-44-170.dsl.static.sonic.net] has joined #ruby
QKO_ [QKO_!~reaVer@banzai.speedxs.nl] has joined #ruby
kenichi [kenichi!~kenichi@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
i8igmac [i8igmac!~bigmac@c-67-185-190-112.hsd1.wa.comcast.net] has joined #ruby
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
<davidcelis> 것_것
savage-__ [savage-__!~savage-@209.118.197.220] has joined #ruby
<i8igmac> i have this small include function, i cant get this to stop print ,nil
<i8igmac> im in irb
jlogsdon [jlogsdon!~jlogsdon@50.0.84.226] has joined #ruby
<i8igmac> meh, it only prints in irb
sixpoint8 [sixpoint8!~jaykub@ip68-12-204-131.ok.ok.cox.net] has joined #ruby
<JonnieCache> irb will always print what is returned to the toplevel
<JonnieCache> im guessing .gsub is returning nil
paissad [paissad!~paissad@89-92-16-151.hfc.dyn.abo.bbox.fr] has joined #ruby
<JonnieCache> thats just how irb works
<davidcelis> its probably not finding your string
jasdeepjaitla [jasdeepjaitla!~jasdeepja@64.134.238.143] has joined #ruby
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby
hasrb [hasrb!~hasrb@108-85-134-26.lightspeed.austtx.sbcglobal.net] has joined #ruby
<i8igmac> i just have to execute the script from ruby
davidpk [davidpk!~r00t@212.183.140.26] has joined #ruby
<apeiros_> or change the last evaluated statement…
<apeiros_> e.g. with `;0`
charlenopires_ [charlenopires_!~quassel@186.194.13.186] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby
brngardner [brngardner!~brngardne@lawn-143-215-118-65.lawn.gatech.edu] has joined #ruby
n8ji [n8ji!~n8ji@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
QaDeS [QaDeS!~mklaus@frbg-4d029576.pool.mediaWays.net] has joined #ruby
luxurymode [luxurymode!~luxurymod@rrcs-184-75-21-21.nyc.biz.rr.com] has joined #ruby
<mars2686> apeiros_: Thanks a lot. that fixed it!
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
pigdude [pigdude!~tallen@li61-243.members.linode.com] has joined #ruby
michael_mbp [michael_mbp!~Marin@31.203.43.196] has joined #ruby
nerded_ [nerded_!~nerded@70-88-134-198-newtowson.md.bad.hfc.comcastbusiness.net] has joined #ruby
mvangala_ [mvangala_!~mvangala@134.192.133.190] has joined #ruby
zastaph [zastaph!zastaph@unaffiliated/zastaph] has joined #ruby
<apeiros_> mars2686: yw
moinkers [moinkers!~m@pool-96-248-222-222.nrflva.fios.verizon.net] has joined #ruby
mvangala_ [mvangala_!~mvangala@134.192.133.190] has quit [#ruby]
pantsman [pantsman!~pantsman@pdpc/supporter/active/pantsman] has joined #ruby
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby
<michael_mbp> lo
<michael_mbp> how can I install a gem from local source
<michael_mbp> I don't want it to fetch from remote
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby
<michael_mbp> i.e. it shouldn't be doing Fetching: showoff-0.7.0.gem (100%)
DFectuoso [DFectuoso!~DFectuoso@189.169.212.239] has joined #ruby
<apeiros_> michael_mbp: gem install -l /path/to/gem.gem
<theRoUS> working with openssl and subjectKeyIdentifier cert extension. after parsing the cert, i get the extension object, and ext.value gives me a 'xx:xx:xx...' value for the SKI. so far so good.
<Boohbah> hi, does anyone speak swedish?
<michael_mbp> thanks apeiros, it's not a gem yet though?
<michael_mbp> just the source
<michael_mbp> I need to package it to a .gem first ?
<michael_mbp> gem build?
<theRoUS> however, when i disassemble the cert with 'openssl asn1parse' the value has a prefix of '0482031E'. 031e is the size of the data, but how do i get this prefix from the openssl lib?
<apeiros_> michael_mbp: errr… "michael_mbp: how can I install a gem from local source" - either it is a gem or it is not a gem…
<michael_mbp> gem bundle did the trick
<apeiros_> if it is not a gem, then yes, build a gem first, in order to install a gem…
<michael_mbp> it created the .gem from the source
<michael_mbp> so every time one changes the code, the .gem has to be rebuild
<michael_mbp> *rebuilt and reinstalled
<apeiros_> yes
<michael_mbp> isn't there a better development workflow?
<michael_mbp> or does one resort to scripting the whole process?
<apeiros_> you can add it to your load path
<michael_mbp> go on.
strife25 [strife25!strife25@nat/ibm/x-qtfqiquddtekjyjd] has joined #ruby
<apeiros_> $LOAD_PATH, an array of dirs. you can add directories to it (push/unshift)
<apeiros_> require will check in all of them for the required file.
<michael_mbp> hmm
<apeiros_> alternatively you can just write your gem without errors :-p
<apeiros_> (unit tests…)
<michael_mbp> mmm yeah I know that approach at least with rails
<michael_mbp> but here I'm looking to fix an issue with showoff
josephwilk [josephwilk!~josephwil@109.231.237.58] has joined #ruby
peterhil [peterhil!~peterhil@xdsl-77-86-196-131.nebulazone.fi] has joined #ruby
<michael_mbp> how do you pass off $LOAD_PATH to a gem set, or does it automatically grab the env var?
<michael_mbp> using RVM btw.
runeb__ [runeb__!~runeb@46.67.149.44.tmi.telenormobil.no] has joined #ruby
thepix [thepix!~pix@as3-16.starogard.dialup.inetia.pl] has joined #ruby
<apeiros_> $LOAD_PATH has nothing to do with gemsets
austinbv [austinbv!~austinbv@rrcs-24-73-203-202.se.biz.rr.com] has joined #ruby
<apeiros_> its a global variable available at runtime. it can be set using the -I flag (both, ruby and irb) or you can manipulate it within your code.
<apeiros_> it's
thepix [thepix!~pix@as3-16.starogard.dialup.inetia.pl] has joined #ruby
<michael_mbp> right… reading up on it. thanks
<michael_mbp> aye, it is a globar var.
stephenjudkins [stephenjudkins!~stephen@68.178.19.17] has joined #ruby
<michael_mbp> http://guides.rubygems.org/patterns/#loading-code i seem to have read that a while back…. ha thanks!
Yu\2 [Yu\2!~Yu@ubi-1-50-54.zif.uni-bielefeld.de] has joined #ruby
jbw [jbw!~jbw@dsl-044-084.cust.imagine.ie] has joined #ruby
kpshek [kpshek!~kpshek@159.140.254.109] has joined #ruby
LiquidInsect [LiquidInsect!~billabney@173.228.117.162] has joined #ruby
theRoUS [theRoUS!KenCoar@nat/redhat/x-jymxeqbngutomwkm] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
rudyl313 [rudyl313!4c4f51a2@gateway/web/freenode/ip.76.79.81.162] has joined #ruby
<michael_mbp> HA I fixed it!
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
<rudyl313> I wan't to allow my custom class to have methods like "each", "map", "each_with_index", "first", "last" ... do I use the enumerable mixin for that?
<rudyl313> I noticed that Enumerable also implements max and min
<apeiros_> rudyl313: you have to implement #each yourself
PaciFisT [PaciFisT!~PeaCE@76-10-149-67.dsl.teksavvy.com] has joined #ruby
<rudyl313> but those don't make sense in my context
<apeiros_> and if you have that, then when you include Enumerable, you get the other methods for free
<rudyl313> apeiros_: yeah I know.. but worried about max and min
<apeiros_> why? you fear somebody might use them?
<rudyl313> yes exactly
<apeiros_> how's that your problem?
<rudyl313> and they don't make sense in my class
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby
<rudyl313> since my class is not comparable
jerikl_ [jerikl_!~justin@rrcs-64-183-231-122.sw.biz.rr.com] has joined #ruby
<apeiros_> again, how's it your problem if somebody shoots himself in the foot?
<rudyl313> so I don't want to expose public methods that will just fail
<matled> rudyl313: note that not your class has to be comparable but the set of objects your #each yields
<apeiros_> rudyl313: also, min/max don't *need* the receiver to be enumerable
<rudyl313> matled: thats what I meant
<apeiros_> err, comparable
<rudyl313> they require <=> right?
<apeiros_> no
<apeiros_> you can use them with a block and compare whatever you want
<rudyl313> from docs: "If Enumerable#max, min, or sort is used, the objects in the collection must also implement a meaningful <=> operator, as these methods rely on an ordering between members of the collection."
<matled> rudyl313: if you really want to let go of it you can probably do class Foo; include Enumerable; undef :max; undef :min; end
<rudyl313> matlead: thanks for the tip
<apeiros_> rudyl313: the docs should probably be changed to "should implement", instead of "must implement"
fantazo [fantazo!~fantazo@85-127-156-169.dynamic.xdsl-line.inode.at] has joined #ruby
<rudyl313> matlead: do I have to put the undef statements after the include of the mixin or can they go before.. or should they be at the end of the class def
<apeiros_> rudyl313: e.g. a class RGB for color might not provide <=> itself (since there's no universally meaningful sorting for them), but you may very well sort an array of colors, e.g. by amount of red, by hue, or whatever…
<apeiros_> rudyl313: also, you're aware that it's about the yielded elements, not the one responding to each, yes?
<rudyl313> apeiros_: not following
<apeiros_> as in: Array#sort will sort its items, so its items should be comparable
<apeiros_> not Array itself
<rudyl313> yes yes, of course
* theRoUS tries to deduce the significance of the ASN.1 prefix
<theRoUS> 0000_0100_1000_0010_0000_0011_0001_1110
<rudyl313> I'm still fuzzy on how you can do max without having <=>
<matled> rudyl313: it has to come after the include
<theRoUS> ^ tag ^ (octet-string)
<michael_mbp> fantastic thanks apeiros_
<apeiros_> rudyl313: colors.max { |color_a, color_b| color_a.red <=> color_b.red }
<apeiros_> there, RGB does not need <=>.
<hasrb> Working on using rmagick to convert a page of a pdf to an image but the antialiasing around the text is terrible, any tips?
<apeiros_> yet I can use .max.
<theRoUS> ^ length ^
letsgojuno [letsgojuno!~mmathews8@188.220.153.25] has joined #ruby
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
<hasrb> antialias is set to true by default, tried it with and without though
Spockz [Spockz!~Spockz@21pc198.sshunet.nl] has joined #ruby
<apeiros_> rudyl313: anyway, lets cut this short: stop. worrying. srsly.
<apeiros_> Hash was Enumerable before it retained order. it had .first and it didn't make any sense. nobody died.
<rudyl313> apeiros_: gotcha
<rudyl313> I will use undef
<apeiros_> no, don't.
<rudyl313> why not
<apeiros_> Array has #sort and #max - yet it can't possibly know whether its items will be comparable
<apeiros_> rudyl313: you think you know how people will use your code. you don't.
<apeiros_> stop assuming you would.
<csavola> rudyl313: by using undef you are breaking the contract of Enumerable
mark_azevedo [mark_azevedo!~mark_azev@adsl-76-228-82-246.dsl.pltn13.sbcglobal.net] has joined #ruby
<apeiros_> also that.
<rudyl313> point taken
ephemerian [ephemerian!~ian@82-71-51-229.dsl.in-addr.zen.co.uk] has joined #ruby
<rudyl313> thanks guys
nerded_ [nerded_!~nerded@70-88-134-198-newtowson.md.bad.hfc.comcastbusiness.net] has joined #ruby
LiquidInsect [LiquidInsect!~billabney@173.228.117.162] has joined #ruby
nerded_ [nerded_!~nerded@70-88-134-198-newtowson.md.bad.hfc.comcastbusiness.net] has joined #ruby
shadoi [shadoi!~Adium@c-71-202-122-8.hsd1.ca.comcast.net] has joined #ruby
thomasdebenning [thomasdebenning!~thomasdeb@c-69-181-139-137.hsd1.ca.comcast.net] has joined #ruby
hackeron [hackeron!~hackeron@gentoo/user/hackeron] has joined #ruby
geaif [geaif!~geaif@xdsl-188-155-129-176.adslplus.ch] has joined #ruby
mark_azevedo [mark_azevedo!~mark_azev@adsl-76-228-82-246.dsl.pltn13.sbcglobal.net] has joined #ruby
zommi [zommi!~quassel@HSI-KBW-078-042-009-093.hsi3.kabel-badenwuerttemberg.de] has joined #ruby
nerded_ [nerded_!~nerded@70-88-134-198-newtowson.md.bad.hfc.comcastbusiness.net] has joined #ruby
BrianE [BrianE!~brian@87.112.149.96] has joined #ruby
maletor [maletor!~maletor@187.146.209.50] has joined #ruby
td123 [td123!~tom@archlinux/trusteduser/td123] has joined #ruby
jrist [jrist!~jrist@184-96-201-86.hlrn.qwest.net] has joined #ruby
<td123> if I require a file which opens an already existing class and adds a method, will all classes be affected after the require?
<apeiros_> you mean "will all instances be affected"? yes.
<rippa> no, only changed class
<apeiros_> class X; end; x = X.new; class X; def bar; "bar!"; end; x.bar # => "bar!"
<td123> yes, I meant instances
<apeiros_> 1. open irb, 2. try stuff, 3. profit!
<td123> ok thanks :)
<rippa> def bar; "barf!"; end
<td123> I'm just unsure of the require behavior
<apeiros_> my X'es are well-behaved. they don't barf.
<td123> heh
<apeiros_> td123: require just evaluates code.
<apeiros_> no magic incantations there.
<td123> apeiros_: ok thanks
sahli [sahli!~sahli@197.2.88.197] has joined #ruby
luke-- [luke--!~luke--@dslb-092-072-006-019.pools.arcor-ip.net] has joined #ruby
pietro [pietro!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
cjs226 [cjs226!~cjs226@rrcs-71-40-79-154.sw.biz.rr.com] has joined #ruby
<michael_mbp> apeiros_: you on twitter/g+ ?
<michael_mbp> thanks again!
<michael_mbp> http://bit.ly/xuymqP :)
<apeiros_> michael_mbp: twitter. @apeiros
<michael_mbp> cool :)
Ontolog [Ontolog!~ontolog@38.98.50.98] has joined #ruby
<michael_mbp> you in CH? lucky....!
<michael_mbp> I love Geneve
<Ontolog> if I open up a class to redefine a method, how can I call the original method i'm redefining?
nowthatsamatt [nowthatsamatt!~nowthatsa@rrcs-71-43-23-18.se.biz.rr.com] has joined #ruby
<michael_mbp> def foo; end ?
<michael_mbp> that should override the method in question
looopy [looopy!~looopy@pool-141-156-47-167.washdc.btas.verizon.net] has joined #ruby
gianlucadv [gianlucadv!~gianlucad@host32-80-dynamic.44-79-r.retail.telecomitalia.it] has joined #ruby
<savage-> Ontolog: if you're just opening up the class, then just use Module#alias_method to alias the old definition
<Hanmac> michael_mbp, use alias_method
h4mz1d [h4mz1d!~hamfz@130.160.40.63] has joined #ruby
conor_ireland [conor_ireland!~conor_ire@89.100.121.49] has joined #ruby
<michael_mbp> ah
<v0n> hi all
<michael_mbp> thanks for the tip
p1d [p1d!~p1d@dslb-088-064-157-106.pools.arcor-ip.net] has joined #ruby
<v0n> what is the convention for license? should every file contain the license text on top of it? and/or Should it be a LICENSE file in the project root dir?
nerded_ [nerded_!~nerded@70-88-134-198-newtowson.md.bad.hfc.comcastbusiness.net] has joined #ruby
dekoms [dekoms!~dekom@static-151-201-141-172.pitt.east.verizon.net] has joined #ruby
<pigdude> lol rvm modifies /etc/profile
<pigdude> who writes this crap??
<pigdude> and it modifies it to source a file without checking its existence
<pigdude> and _that_ file runs a command without checking that it is defined
jasdeepjaitla [jasdeepjaitla!~jasdeepja@75-25-112-44.lightspeed.brlnca.sbcglobal.net] has joined #ruby
<canton7> v0n, iirc, most licenses require you include a copy of the license. I'd refrain from including the license text in the header of each file (unless you're writing a single-file app, and even then...), and at a most I'd put a "License: whatever" line at the top of each file
<apeiros_> pigdude: sure about what you say? I ask because there's nothing in my /etc/profile from rvm…
jmorton_ [jmorton_!~jmorton@CUSTOMINK-L.ipcolo2.Washington1.Level3.net] has joined #ruby
<canton7> When I installed, it just advised me that I needed to stick a line somewhere
<pigdude> apeiros_, certainly on macs an install (that i did a few days ago) does this
<ReinH> v0n: going by common practice, I would say the latter
<canton7> Did you install through gem, or using a package manager
ryan0x2 [ryan0x2!~ryan0x2@c-75-70-78-223.hsd1.co.comcast.net] has joined #ruby
<apeiros_> pigdude: I have a mac.
<pigdude> well you do the gem install which, of all things, has you source a bash file over http
<pigdude> (tells you to do so)
<pigdude> i presume that script now does this
My_Hearing [My_Hearing!~Mon_Ouie@subtle/user/MonOuie] has joined #ruby
<pigdude> because i certainly never edited /etc/profile myself
<apeiros_> pigdude: o0
dzhulk [dzhulk!~dzhulk@88.201.230.6] has joined #ruby
ByteCrunch [ByteCrunch!bytecrunch@ich.schepper.dich.um.auf.dem.fuse-board.de] has joined #ruby
<apeiros_> "the gem install"?
<pigdude> apeiros_, gem install rvm installs the libraries
<pigdude> apeiros_, then it asks you to do something like ash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
<pigdude> *bash
<apeiros_> pigdude: I install rvm the way its described on the website, not using the gem
<apeiros_> lets check who wrote the gem…
<pigdude> the gem i don't believe modifies /etc/profile
<pigdude> anyway, however it happened, it's certainly a WTF
<v0n> canton7, ReinH yep, so often a simple LICENSE file will be quite enough, no need to pollute the source code, especially for a not that big project
<apeiros_> seems to be from wayne too
<pigdude> i went to clean up this machine before i turned it in and found bash errors after deleting rvm stuff
<pigdude> for all users
<ReinH> pigdude: protip: install using the installation instructions
<pigdude> because /etc/profile was modified
<apeiros_> maybe an older rvm did that…
<apeiros_> I'm pretty sure newers don't, as there's no modification on my machine…
<pigdude> apeiros_, it's still in the install docs
<apeiros_> you may want to ask in #rvm
<pigdude> apeiros_, The rvm function will be automatically configured for every user on the system if you install as root. This is accomplished by loading /etc/profile.d/rvm.sh on login. Most Linux distributions default to parsing /etc/profile which contains the logic to load all files residing in the /etc/profile.d/ directory. Once you have added the users you want to be able to use RVM to the rvm group, those users MUST log out and back in to gain rvm gr
td123 [td123!~tom@archlinux/trusteduser/td123] has quit ["WeeChat 0.3.6"]
<apeiros_> ok, if you install as root…
<pigdude> loading rvm.sh is so intuitively accomplished by ... modified /etc/profile
<apeiros_> but then /etc/profile is actually the way to go
<apeiros_> or do you have a better suggestion?
<ReinH> pigdude: are you aware of #rvm?
<pigdude> ReinH, nope
<pigdude> ReinH, now i am
<ReinH> seems good
<pigdude> apeiros_, [[ -r /etc/profile.d/rvm.sh ]] && . /etc/profile.d/rvm.sh
<pigdude> apeiros_, instead it's a naked source line
S2kx [S2kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby
<apeiros_> ok, that part, agreed.
<pigdude> and rvm.sh shouldn't be using commands that might not be present IMO
<pigdude> unless testing for them by using hash, etc
<apeiros_> though personally I prefer if stuff bombs instead of silently not working…
<ReinH> installing rvm for all users is usually not a good idea
<pigdude> (the culprit is __rvm_add_to_path)
<pigdude> ReinH, that much i know now :^)
<pigdude> it was just one of those things that took me aback!
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
g0bl1n [g0bl1n!~prokter@a213-22-27-14.cpe.netcabo.pt] has joined #ruby
josefig [josefig!~joseph@unaffiliated/josefig] has joined #ruby
counterbeing [counterbeing!~textual@173-228-44-170.dsl.static.sonic.net] has joined #ruby
LMolr [LMolr!~quassel@adsl-ull-242-226.42-151.net24.it] has joined #ruby
rippa [rippa!~rippa@93-181-232-63.adsl.yaroslavl.ru] has joined #ruby
brngardner [brngardner!~brngardne@lawn-143-215-118-65.lawn.gatech.edu] has joined #ruby
janissary [janissary!~user@nmd.sbx08279.wintefl.wayport.net] has joined #ruby
<CannedCorn> hey guys, when you have a gem installed how do you get require to prefer the cwd over the gem, i thought prefixing the require string with "./" so that it was "./file" would do it but apparently not
<shadoi> works for me… 1.9.2
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
<apeiros_> CannedCorn: add cwd to $LOAD_PATH
<apeiros_> load path always has precedence over gems
<apeiros_> also, do yourself a favor and add the expanded cwd
jmorton__ [jmorton__!~jmorton@CUSTOMINK-L.ipcolo2.Washington1.Level3.net] has joined #ruby
<shadoi> $: << File.expand_path('.')
* apeiros_ prefers $LOAD_PATH over $:
sepp2k [sepp2k!~sexy@g230249099.adsl.alicedsl.de] has joined #ruby
<shadoi> yeah, much more clear.
<CannedCorn> ok great guys
jeremy_ross [jeremy_ross!~jeremy_ro@cpe-76-186-157-98.tx.res.rr.com] has joined #ruby
<v0n> CannedCorn, shadoi $: << File.expand_path('.') will differ from where you execute the code, no?
<apeiros_> v0n: of course
<apeiros_> which is why . was removed from $LOAD_PATH in the first place
<v0n> I'd write $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__))
<apeiros_> v0n: that's not what CannedCorn asked for, though
<CannedCorn> how do i tell which one was loaded
<shadoi> v0n: I hate the unshift method name :)
<apeiros_> v0n: also File.expand_path('../', __FILE__)
<shadoi> probably the worst possible name for "add something to this"
<v0n> apeiros_, ho right, I misunderstood what he asked
<apeiros_> CannedCorn: if you can't tell, why do you want to load one over the other? :)
<CannedCorn> well i made changes
<CannedCorn> hahah
<apeiros_> so I'd say you answered your own question.
<CannedCorn> but i want to make sure, now that cwd is in the path, that it loaded the one i wanted
<v0n> CannedCorn, why not running manually `ruby -I lib bin/your_script` for instance?
<apeiros_> puts "yippy, loaded ME!"
<apeiros_> add that to your file
<CannedCorn> v0n: yep, that would work
jbpros [jbpros!~jbpros@88-178-112-217.dyn.adsl.belcenter.be] has joined #ruby
<apeiros_> ruby -I ++
<CannedCorn> but isn't there a way to tell after the fact?
<CannedCorn> or not really
ckrailo [ckrailo!~ckrailo@208.86.167.247] has joined #ruby
<apeiros_> it might be that $LOADED_FEATURES now has expanded paths
<apeiros_> never checked
<v0n> CannedCorn, that usually what you do when your writing a gem or something and want to run it
austinbv [austinbv!~austinbv@rrcs-24-73-203-202.se.biz.rr.com] has joined #ruby
mengu [mengu!~mengu@85.96.105.202] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
<CannedCorn> how would you do it in irb?
Spockz [Spockz!~Spockz@21pc198.sshunet.nl] has joined #ruby
<CannedCorn> -r
Spockz` [Spockz`!~Spockz@21pc198.sshunet.nl] has joined #ruby
cespare [cespare!~cespare@eng.nat.mtv.ooyala.com] has joined #ruby
strife25 [strife25!~strife25@cpe-098-026-018-050.nc.res.rr.com] has joined #ruby
stephans [stephans!~stephans@209.66.114.6] has joined #ruby
mark_azevedo [mark_azevedo!~mark_azev@adsl-76-228-82-246.dsl.pltn13.sbcglobal.net] has joined #ruby
<apeiros_> same, -I
<apeiros_> -r is require, for both, ruby and irb.
<CannedCorn> thats what i want though right? require
<v0n> CannedCorn, when I test a custom gem in IRB, just run `irb -I lib -r my_gem` from the root dir
bwlang [bwlang!~anonymous@70-91-134-14-ma-ne.hfc.comcastbusiness.net] has joined #ruby
<CannedCorn> v0n: ok so the problem with r is that it requires my file and then the rest are loaded from the installed gem, so -l will prevent that i guess
csherin [csherin!~csherin@61.17.32.83] has joined #ruby
axl_ [axl_!~axl@75-149-152-225-Minnesota.hfc.comcastbusiness.net] has joined #ruby
<apeiros_> CannedCorn: -I, not -l
<CannedCorn> I as in 'eye' right?
<apeiros_> use a font where you can distinguish those. especially on a programming channel. srsly.
<apeiros_> I as in uppercase i
<CannedCorn> that worked, perfect guys!
<CannedCorn> thanks
<v0n> lol
<v0n> iIlL xD
imsplitbit [imsplitbit!~imsplitbi@64.39.5.119] has joined #ruby
cousine [cousine!~cousine@196.221.78.101] has joined #ruby
ByteCrunch [ByteCrunch!bytecrunch@ich.schepper.dich.um.auf.dem.fuse-board.de] has joined #ruby
LMolr [LMolr!~quassel@adsl-ull-242-226.42-151.net24.it] has joined #ruby
minijupe [minijupe!~benlieb@adsl-74-243-170-217.ard.bellsouth.net] has joined #ruby
Chaazd [Chaazd!522c1532@gateway/web/freenode/ip.82.44.21.50] has joined #ruby
<Chaazd> Why will this not work? http://pastebin.com/43GPrhJY Everything in terms of file structure is fine.
Azure [Azure!~azt@unaffiliated/azure] has joined #ruby
codefriar [codefriar!~codefriar@ip-200.it.rdu.bandwidth.com] has quit ["Linkinus - http://linkinus.com"]
<heftig> Chaazd: require 'fileutils'
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
ap3mantus [ap3mantus!~ap3mantus@c-98-217-187-172.hsd1.ma.comcast.net] has joined #ruby
jlogsdon [jlogsdon!~jlogsdon@50.0.84.226] has joined #ruby
brngardner [brngardner!~brngardne@lawn-143-215-118-65.lawn.gatech.edu] has joined #ruby
volter [volter!~volker@85-127-135-38.dynamic.xdsl-line.inode.at] has joined #ruby
emocakes [emocakes!~om@189-11-46-97.mganm703.dsl.brasiltelecom.net.br] has joined #ruby
kirun [kirun!~kirun@78-86-154-194.zone2.bethere.co.uk] has joined #ruby
<Chaazd> That's not the error
<Chaazd> It's giving me an invalid argument for mkdir
jbhewitt [jbhewitt!~jbhewitt@c122-108-214-224.rochd4.qld.optusnet.com.au] has joined #ruby
<Chaazd> from fileutils
<v0n> Chaazd, what OS?
<Chaazd> Windows -_-
<v0n> Chaazd, '/' is on Unix systems.
<Chaazd> Aah
<v0n> Use File.join("dir1", "dir2") to join
<Chaazd> Thanks
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
<Chaazd> But what if I wanna make it go to a directory within a directory, like I attempted to do
<v0n> btw it doesn't complained about require 'FileUtils', because Windows doesn't not care if it is case sensitive
favor212 [favor212!~favor212@user218-213.wireless.utoronto.ca] has joined #ruby
<v0n> Chaazd, Dir.chdir File.join("dir1", "dir2") { }
<v0n> Chaazd, but if you don't need your code to be portable, just write uri as Windows style, something like "dir1\dir2" I guess
LMolr [LMolr!~quassel@adsl-ull-242-226.42-151.net24.it] has joined #ruby
Y_Ichiro [Y_Ichiro!~ichiro101@S0106d8a25e7ab2c0.ed.shawcable.net] has joined #ruby
Y_Ichiro [Y_Ichiro!~ichiro101@wikipedia/Yamamoto-Ichiro] has joined #ruby
<Chaazd> Okay
Skaag [Skaag!~Skaag@cpe-67-247-51-89.nyc.res.rr.com] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
trivol [trivol!~aurelien@ip-178.net-89-2-84.rev.numericable.fr] has joined #ruby
<v0n> Chaazd, File.join is just like ["dir1", "dir2"].join(File::SEPARATOR)
Hanmac [Hanmac!~hanmac@p5084553A.dip0.t-ipconnect.de] has quit [#ruby]
PaciFisT [PaciFisT!~PeaCE@76-10-149-67.dsl.teksavvy.com] has joined #ruby
Hanmac [Hanmac!~hanmac@p5084553A.dip0.t-ipconnect.de] has joined #ruby
Targen [Targen!~iguana@159.90.11.250] has joined #ruby
ryanf [ryanf!~rfitz@ec2-50-18-158-149.us-west-1.compute.amazonaws.com] has joined #ruby
maletor [maletor!~maletor@187.146.209.50] has joined #ruby
csherin [csherin!~csherin@61.17.32.83] has joined #ruby
mensch [mensch!~mensch@blade71.cs.umb.edu] has joined #ruby
hubub [hubub!~hubub@85.13.231.79] has joined #ruby
jerikl [jerikl!~justin@rrcs-64-183-231-122.sw.biz.rr.com] has joined #ruby
juiceman5000 [juiceman5000!~jleclair@blackholewan-gw-136.iexposure.com] has joined #ruby
dmn001 [dmn001!~dav3@vserver-z74f52vm3.autovps.net] has joined #ruby
sahli_ [sahli_!~sahli@197.2.88.197] has joined #ruby
azbarcea_ [azbarcea_!~quassel@79.114.16.71] has joined #ruby
<juiceman5000> I have a variable, foo_meta, which is equal to the symbol :foo_function (foo_meta = :foo_function). I want to call foo_function(), or any other function who's name is equal to the foo_meta symbol. How do I do that?
mark_azevedo [mark_azevedo!~mark_azev@c-67-180-48-38.hsd1.ca.comcast.net] has joined #ruby
<heftig> send(foo_meta)
<juiceman5000> what if foo_meta has input (foo_meta(input)
<heftig> send(foo_meta(input))
<juiceman5000> derp
<juiceman5000> ok ty dude!
vraa [vraa!~vraa@c-76-30-135-64.hsd1.tx.comcast.net] has joined #ruby
<apeiros_> o0
<apeiros_> send(foo_meta, input)
<apeiros_> __send__ if you don't know the receiver.
<heftig> ah, yes, sorry
<voodoofish430> thats what I thought too apeiros_
<juiceman5000> oh, ok. i've used send on methods
<juiceman5000> i shoulda thunk it
<heftig> juiceman5000: there are no functions, only methods.
nd______ [nd______!~nd@mnhm-4d00e499.pool.mediaWays.net] has joined #ruby
<juiceman5000> yeah. i come from C. I keep forgetting that
hzlocky [hzlocky!~me@dynamic-vpdn-93-125-116-140.telecom.by] has joined #ruby
brngardner [brngardner!~brngardne@lawn-143-215-118-65.lawn.gatech.edu] has joined #ruby
calfeld [calfeld!~calfeld@108-198-115-46.lightspeed.mdsnwi.sbcglobal.net] has joined #ruby
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
fridim_ [fridim_!~fridim@2a01:e35:2ece:f2d0:223:4eff:fe6c:c754] has joined #ruby
kenperkins [kenperkins!~textual@50-47-18-37.evrt.wa.frontiernet.net] has joined #ruby
s0ber_ [s0ber_!~s0ber@114-36-239-67.dynamic.hinet.net] has joined #ruby
y3llow_ [y3llow_!~y3llow@114-36-239-67.dynamic.hinet.net] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
davidpk [davidpk!~r00t@5adc8e56.bb.sky.com] has joined #ruby
axl_ [axl_!~axl@173-11-52-113-Minnesota.hfc.comcastbusiness.net] has joined #ruby
y3llow [y3llow!~y3llow@114-36-239-67.dynamic.hinet.net] has joined #ruby
dmn002 [dmn002!~a@ec2-107-21-186-30.compute-1.amazonaws.com] has joined #ruby
letsgojuno [letsgojuno!~mmathews8@188.220.153.25] has joined #ruby
y3llow [y3llow!~y3llow@114-36-239-67.dynamic.hinet.net] has joined #ruby
looopy [looopy!~looopy@pool-141-156-47-167.washdc.btas.verizon.net] has joined #ruby
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
mvangala_ [mvangala_!~mvangala@134.192.135.254] has joined #ruby
y3llow [y3llow!~y3llow@114-36-239-67.dynamic.hinet.net] has joined #ruby
thepix [thepix!~pix@as3-16.starogard.dialup.inetia.pl] has joined #ruby
jasdeepjaitla [jasdeepjaitla!~jasdeepja@c-98-207-73-250.hsd1.ca.comcast.net] has joined #ruby
liquidproof [liquidproof!~liquidpro@213-216-251-97.bb.dnainternet.fi] has joined #ruby
punkrawkR [punkrawkR!~freddiebo@h-9-122.a328.priv.bahnhof.se] has joined #ruby
Jay_Levitt [Jay_Levitt!~Jay_Levit@c-24-63-250-125.hsd1.ma.comcast.net] has joined #ruby
web0 [web0!~webster@2607:f060:100:a:c539:c4fd:117c:2f95] has joined #ruby
juiceman5000 [juiceman5000!~jleclair@blackholewan-gw-136.iexposure.com] has quit [#ruby]
anoNxeRo [anoNxeRo!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
geaif [geaif!~geaif@7-239.62-188.cust.bluewin.ch] has joined #ruby
ByteCrunch [ByteCrunch!bytecrunch@ich.schepper.dich.um.auf.dem.fuse-board.de] has joined #ruby
DFectuoso [DFectuoso!~DFectuoso@189.169.212.239] has joined #ruby
My_Hearing [My_Hearing!~Mon_Ouie@subtle/user/MonOuie] has joined #ruby
rfloriano [rfloriano!~rfloriano@189.115.115.229.dynamic.adsl.gvt.net.br] has joined #ruby
<shadoi> So.. currently I'm using stuff like: caller.any? {|c| c =~ /block in state/} to switch behavior based on where I'm being called from. Any big drawbacks to this? Seems slightly ugly, but I can't think of a much better way to go about it…
Seisatsu [Seisatsu!~seisatsu@adsl-99-35-225-92.dsl.pltn13.sbcglobal.net] has joined #ruby
brngardner [brngardner!~brngardne@c-98-192-3-166.hsd1.ga.comcast.net] has joined #ruby
<calfeld> caller.grep(/block in state/)
ByteCrunch [ByteCrunch!bytecrunch@ich.schepper.dich.um.auf.dem.fuse-board.de] has joined #ruby
<shadoi> yeah, slightly nicer, I guess I mean the premise of it.. is it bad?
ferbass [ferbass!~ferbass@189.102.51.45] has joined #ruby
<apeiros_> yes
<apeiros_> breaks encapsulation
<shadoi> Is there a pattern for this sort of thing I should follow?
GSpotAssassin [GSpotAssassin!u4086@gateway/web/irccloud.com/x-hcgalwxuqnmtsvro] has joined #ruby
<shadoi> For example, switching display output based on being called via CLI vs being called in a library...
<apeiros_> that switch should be in the part that handles output
<heftig> shadoi: not portable
<apeiros_> and should be set by e.g. an accessor
<heftig> it's really only for backtraces
<heftig> or debugging
rfloriano [rfloriano!~rfloriano@200.146.44.90.dynamic.adsl.gvt.net.br] has joined #ruby
<shadoi> heftig: so… like jruby or rubinius would be hosed?
<shadoi> I haven't tried it
<heftig> hrm, actually no, the output is identical
<heftig> but i don't think it's documented, so may be subject to change
<shadoi> Hmm.. Maybe I'll just do a check if my CLI model is defined?
<shadoi> heftig: fair enough
<shadoi> s/model/module/
<heftig> oh, it is documented
<heftig> never mind then :p
<shadoi> heftig: I suppose the exact message output I'm checking for could change, so.. point taken.
<heftig> still, code smells
<shadoi> yeah
ferbass [ferbass!~ferbass@189.102.51.45] has joined #ruby
<shadoi> I'll switch to checking for constants
<shadoi> less ugly
<heftig> uh, what?
<shadoi> if I'm being called from the CLI, the CLI module will be defined
<shadoi> should handle most of the cases I have.
<calfeld> the problem is not how your are determining the context but that you function cares.
<calfeld> if you have, say, CLI and GUI modes, you should have different functions for each. Code that doesn't care about which mode it is can use a base class to access either code.
<shadoi> well.. I have a function called "displaying?"
<shadoi> which I base all this off of, which is in my base class
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby
nerded_ [nerded_!~nerded@70-88-134-198-newtowson.md.bad.hfc.comcastbusiness.net] has joined #ruby
kenyabob [kenyabob!~andy@c-76-115-128-127.hsd1.or.comcast.net] has joined #ruby
<kenyabob> When I run this code, I get an error undefined method. Can someone else run this and see if they run into the same issue?
dmn001_ [dmn001_!~a@ec2-107-21-186-30.compute-1.amazonaws.com] has joined #ruby
<calfeld> age_in_days is not defined
<kenyabob> crap, that was an error in my part, line 31, I switch the var names
<calfeld> you probably mean age
<kenyabob> are you running 1.9 then?
<kenyabob> this is breaking for me in 1.8
favor212 [favor212!~favor212@user218-213.wireless.utoronto.ca] has joined #ruby
<heftig> kenyabob: which undefined method?
<shadoi> I get NoMethodError: undefined method `year' for 1:Fixnum
<shadoi> from (irb):10:in `block in time_diff_in_natural_language'
<calfeld> 1.send(interval) turns into 1.year
<kenyabob> Untitled.rb:10:in `send': undefined method `year' for 1:Fixnum (NoMethodError)
<shadoi> 1.9.2
<calfeld> I believe that's an ActiveSupport thing
<shadoi> yeah
eywu [eywu!~Adium@205-170-107-4.dia.static.qwest.net] has joined #ruby
<calfeld> yes, require 'active_support' and it works fine
j3r0m3 [j3r0m3!~j3r0m3@76-217-192-160.lightspeed.frokca.sbcglobal.net] has joined #ruby
<calfeld> if you have RoR installed
<kenyabob> this is in sinatra, but I think there is an active_support gem
j3r0m3 [j3r0m3!~j3r0m3@76-217-192-160.lightspeed.frokca.sbcglobal.net] has joined #ruby
<shadoi> yes
<calfeld> yes, there is an active support gem
<calfeld> and it should play fine with sinatra
<GSpotAssassin> Is there a process available that will let me control the CPU utilization of a subprocess? Say I want this master process to only give the subprocess full CPU if the total CPU utilization has been < 10% for a certain amount of time
j3r0m3 [j3r0m3!~j3r0m3@76-217-192-160.lightspeed.frokca.sbcglobal.net] has joined #ruby
sleepwalker__ [sleepwalker__!~sleepwalk@178.176.131.235] has joined #ruby
norex [norex!~quassel@41-133-238-44.dsl.mweb.co.za] has joined #ruby
adamkitt_ [adamkitt_!~adamkitte@50.0.132.2] has joined #ruby
<heftig> GSpotAssassin: just nice it
<heftig> or make it SCHED_IDLE
dekoms [dekoms!~dekom@c-71-206-247-100.hsd1.pa.comcast.net] has joined #ruby
<shadoi> GSpotAssassin: you can control most of that in the Process module,
<kenyabob> hmm, even with the active_support, I get an error.
<shadoi> For more fine-grained control you'd want to look into platform specifics, like on Linux you'd go with cgroups.
<calfeld> what error?
<heftig> require 'active_support/all'
<kenyabob> shadoi does it work for you with active_support required
<shadoi> I don't have it installed :)
<kenyabob> dang!
<GSpotAssassin> heftig: I can nice it but that doesn't give me ongoing control of it
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby
<GSpotAssassin> shadoi: really. i'll have to look at its API
<GSpotAssassin> shadoi: i'm on OS X. I can see if there's an analog to the cgroups thing
Squarepy [Squarepy!~Squarepy@ip82-139-118-42.lijbrandt.net] has joined #ruby
<shadoi> GSpotAssassin: maybe something in the jail code
<shadoi> haven't messed with it at all
dmn001_ [dmn001_!~a@ec2-107-21-186-30.compute-1.amazonaws.com] has joined #ruby
dmn001_ [dmn001_!~a@ec2-107-21-186-30.compute-1.amazonaws.com] has quit [#ruby]
favor212 [favor212!~favor212@user218-213.wireless.utoronto.ca] has joined #ruby
<shadoi> ah, nevermind, jails aren't in OS X
<shadoi> lame.
Squarepy [Squarepy!~Squarepy@unaffiliated/squarepy] has joined #ruby
<shadoi> try "man sandbox"
<shadoi> doesn't look very configurable
austinbv [austinbv!~austinbv@216.146.183.56] has joined #ruby
dmn001 [dmn001!~a@ec2-107-21-186-30.compute-1.amazonaws.com] has joined #ruby
favor212 [favor212!~favor212@user218-213.wireless.utoronto.ca] has joined #ruby
kenyabob [kenyabob!~andy@c-76-115-128-127.hsd1.or.comcast.net] has quit [#ruby]
cespare [cespare!~cespare@eng.nat.mtv.ooyala.com] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@70-90-135-66-BusName-wa.bverton.hfc.comcastbusiness.net] has joined #ruby
charlenopires [charlenopires!~quassel@186.194.13.186] has joined #ruby
autojack [autojack!~owen@mail2.nerdnetworks.org] has joined #ruby
<autojack> I asked this in #bundler, but no answer so far. maybe someone here knows: in some of our code we're still using bundler 0.7, and on our build system we run 'gem bundle --cached' before creating a package, and all our code just does a require 'gems/environment' so that the machines we deploy to don't necessarily have to have a bundler gem on them. it looks like bundler 1 has no equivalent of this. QUESTION: is that correct? we need to move toward puttin
<shadoi> autojack: it moved to creating a functional bundler inside the 'cache'
alex__c2022 [alex__c2022!~alex@207.239.64.154] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@70-90-135-66-BusName-wa.bverton.hfc.comcastbusiness.net] has joined #ruby
<shadoi> using --standalone
<autojack> oh, I see that in the 1.1 docs.
<shadoi> yup
<autojack> is it not in 1.0?
<shadoi> nope
<autojack> OK.
<shadoi> 1.1 is about 300X faster also. :)
<BrianE> 1.1's faster? :O
<autojack> nice
<BrianE> What about the intial rubygems.org search?
<shadoi> literally many orders of magnitude faster.
<BrianE> :O
<BrianE> Is it in Rubygems?
<shadoi> yeah, use --pre
<BrianE> Awesome
<autojack> so 1.1 is not final yet?
<shadoi> rc7
<autojack> OK.
<autojack> thanks, this is very helpful :)
<BrianE> Cool
<BrianE> Just tried it out
<BrianE> It's noticbly faster, though I wouldn't say "orders of magnitude"
<shadoi> yeah, exaggeration. :)
<BrianE> :P
<BrianE> Good stuff :)
<shadoi> although on one app we have that's got about 80 dependencies it was a huge difference.
<autojack> you said literally!
<autojack> ;)
<shadoi> I think as you added more dependencies < 1.1 got slower and slower.
cook1es [cook1es!~chatzilla@c83-248-93-185.bredband.comhem.se] has joined #ruby
j3r0m3 [j3r0m3!~j3r0m3@76-217-192-160.lightspeed.frokca.sbcglobal.net] has quit ["Leaving"]
<shadoi> and 1.9.2 requires are super slow also, 1.9.3 improves that a lot.
j3r0m3 [j3r0m3!~j3r0m3@76-217-192-160.lightspeed.frokca.sbcglobal.net] has joined #ruby
j3r0m3 [j3r0m3!~j3r0m3@76-217-192-160.lightspeed.frokca.sbcglobal.net] has joined #ruby
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has quit [#ruby]
j3r0m3 [j3r0m3!~j3r0m3@76-217-192-160.lightspeed.frokca.sbcglobal.net] has joined #ruby
Squarepy_ [Squarepy_!~Squarepy@vpn-144-53.vpn.uva.nl] has joined #ruby
dmn001_ [dmn001_!~a@ec2-107-21-186-30.compute-1.amazonaws.com] has joined #ruby
jmccune [jmccune!~jeff@puppetlabs/ps/jmccune] has joined #ruby
<davidcelis> Out of curiosity, what thoughts do you guys have on eval?
spyvsspy [spyvsspy!~nonenone@209.145.177.162] has joined #ruby
<banisterfiend> davidcelis: i use it all the time
<BrianE> davidcelis: For what purpose?
<davidcelis> BrianE: Well, I just used it to dynamically define some spec tests based on a set of controller actions and their HTTP methods.
<BrianE> davidcelis: Paste the code?
<davidcelis> I needed similar tests for each action, so I built up the actual request and eval'd it.
<davidcelis> one sec
<shadoi> davidcelis: as long as the input doesn't come from any outside source, it's fine. Sometimes it's uglier than alternatives...
<banisterfiend> davidcelis: u probably dont need eval for that:
<wmoxam> davidcelis: I never use it, but sometimes use instance_eval (and often use .send)
Squarepy_ [Squarepy_!~Squarepy@unaffiliated/squarepy] has joined #ruby
headius [headius!~headius@71-210-154-45.mpls.qwest.net] has joined #ruby
<shadoi> I prefer .send / .__send__ in almost all cases also.
<BrianE> davidcelis: I'd be very surprised if you couldn't just use define_method and friends
<davidcelis> banisterfiend: Well, the method to call differs because RSpec uses the HTTP method as the actual method call (`post :create`, `get :edit`, etc)
adamkittelson [adamkittelson!~adamkitte@50.0.132.2] has joined #ruby
kstephens [kstephens!~kstephens@173-15-46-105-Illinois.hfc.comcastbusiness.net] has joined #ruby
<burgestrand> send(http_verb, action)
<shadoi> ^^
<davidcelis> god i feel stupid now.
<davidcelis> ive even used send before
dmn001__ [dmn001__!~dav3@vserver-z74f52vm3.autovps.net] has quit [#ruby]
<davidcelis> that is definitely a better alternative
<davidcelis> tanks!
davidpk [davidpk!~r00t@5adc8e56.bb.sky.com] has joined #ruby
adman65 [adman65!~adman65@li74-160.members.linode.com] has joined #ruby
peterhellberg [peterhellberg!~peterhell@c-dad4e455.01-84-73746f2.cust.bredbandsbolaget.se] has joined #ruby
peterhellberg [peterhellberg!~peterhell@c-dad4e455.01-84-73746f2.cust.bredbandsbolaget.se] has joined #ruby
My_Hearing [My_Hearing!~Mon_Ouie@subtle/user/MonOuie] has joined #ruby
DFectuoso [DFectuoso!~DFectuoso@189.169.212.239] has joined #ruby
dankest [dankest!~dankest@wsip-174-75-64-190.sb.sd.cox.net] has joined #ruby
<autojack> shadoi: nice, I just tried out --standalone. so it looks like I would just require vendor/bundle/bundler/setup.rb if I use that method?
<shadoi> yup
<autojack> neat.
<autojack> thanks, that's very helpful!~
<shadoi> welcome
cespare [cespare!~cespare@eng.nat.mtv.ooyala.com] has joined #ruby
<shadoi> thank wycats though. ;)
<autojack> hehe
<autojack> how come that didn't make it into 1.0? just a neglected use case?
<shadoi> yeah, I think it was assumed it would always be a system gem.
dmn001 [dmn001!~a@ec2-107-21-186-30.compute-1.amazonaws.com] has joined #ruby
<autojack> nod
<autojack> my problem is that since we have stuff that still uses 0.7, I can't use 1.0 in newer projects on the same box unless I use rvm.
<autojack> it gets messy.
evenix [evenix!~evenix@149-169-127-83.nat.asu.edu] has joined #ruby
<autojack> (we need to work on upgrading, but...)
<shadoi> yeah
axilla [axilla!~axilla@c-71-234-169-157.hsd1.vt.comcast.net] has joined #ruby
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
<autojack> we're still using 1.8.7 a lot of places though.
<autojack> so... we suck at upgrading ;)
havenn [havenn!~skipper@pool-71-189-127-140.lsanca.fios.verizon.net] has joined #ruby
<shadoi> Took me 2 hours to move from 1.8.7 -> 1.9.2 across 8 apps, around 10k lines of code.
<shadoi> Just had to force myself to do it and test it.
<shadoi> Annoying but not hard.
<ale`> is there anything like private module methods?
<heftig> ale`: for what purpose?
<autojack> yeah, we're just lazy. I think.
<autojack> (not my code, not my problem)
<ale`> heftig: I would like some methods to be callable as Mymodule.somemethod, and some others that I want to call inside somemethod but don't want callable outside
stephenjudkins [stephenjudkins!~stephen@70-90-135-66-BusName-wa.bverton.hfc.comcastbusiness.net] has joined #ruby
<shadoi> ale`: you can achieve it with namespacing, but even private methods are callable from anywhere with send.
<shadoi> there's no "real" private methods.
<heftig> class << Mymodule; private; def foo; :bar; end; end
tesmar [tesmar!~tesmar@184.76.224.211] has joined #ruby
<heftig> or a bit more elaborate,
kvyn [kvyn!~kvyn@w0109-49-134-213-166.uqwimax.jp] has joined #ruby
matled- [matled-!~matled@85.131.246.184] has joined #ruby
alex__c2022 [alex__c2022!~alex@207.239.64.154] has joined #ruby
<shadoi> has most of the possible ways.
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
<heftig> module Mymodule; def Mymodule.baz; foo; end; class << self; def qux; foo; end; private; def foo; :bar; end; end; end
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
<heftig> puts Mymodule.baz; puts Mymodule.qux; Mymodule.foo
badabim_ [badabim_!~badabim@17.212.166.202] has joined #ruby
vraa [vraa!~vraa@99-20-202-44.lightspeed.hstntx.sbcglobal.net] has joined #ruby
dekoms [dekoms!~dekom@c-71-206-247-100.hsd1.pa.comcast.net] has joined #ruby
<ale`> heftig: thanks :-)
<Hanmac> PS: send ignores private and protected .. :P
nerded [nerded!~nerded@c-98-218-53-235.hsd1.md.comcast.net] has joined #ruby
bbttxu [bbttxu!~adam@pool-71-96-208-205.dfw.dsl-w.verizon.net] has joined #ruby
autojack [autojack!~owen@mail2.nerdnetworks.org] has quit [#ruby]
ignis [ignis!~bordjukov@95.111.20.244] has joined #ruby
sdwrage [sdwrage!~sdwrage@cpe-184-57-123-50.columbus.res.rr.com] has joined #ruby
<shevy> hmm
<shevy> is private and protected really that useful in ruby?
geaif [geaif!~geaif@7-239.62-188.cust.bluewin.ch] has joined #ruby
crescendo [crescendo!~eric@unaffiliated/crescendo] has joined #ruby
<canton7> guidelines?
<heftig> "pls don't call this, internal and may change without warning"
<shadoi> shevy: in my experience it's only useful for documentation. :)
kvyn [kvyn!~kvyn@w0109-49-134-213-166.uqwimax.jp] has joined #ruby
<shadoi> and expressing intent.
<LiquidInsect> also if you have to jump through hoops and use send to call a method, you really tend to think twice about calling it
<LiquidInsect> ...at least I would hope so
<shadoi> Unless metaprogramming, then all sanity flies out the window
<LiquidInsect> shadoi: well yeah... send is the first step in going meta and losing your mind
<LiquidInsect> object.send(:method_missing, "ow", "my", "brain", "hurts")
<shadoi> stack level too deep.
ap3mantus [ap3mantus!~ap3mantus@c-98-217-179-108.hsd1.ma.comcast.net] has joined #ruby
<heftig> ArgumentError: no id given
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
adeponte [adeponte!~adeponte@67.110.253.162.ptr.us.xo.net] has joined #ruby
tobyo [tobyo!~tobyo@cpe-24-165-22-166.san.res.rr.com] has joined #ruby
pootpoot [pootpoot!~pootpoot@38.108.250.130] has quit [#ruby]
patricksroberts [patricksroberts!u3278@gateway/web/irccloud.com/x-yezaifonotcbmzfc] has joined #ruby
Gekz [Gekz!~gekz@159.253.5.25] has joined #ruby
Gekz [Gekz!~gekz@unaffiliated/gekz] has joined #ruby
adman65 [adman65!~adman65@cs181188119.pp.htv.fi] has joined #ruby
stringoO [stringoO!~JLstring@bas1-toronto42-1279599144.dsl.bell.ca] has joined #ruby
nerded [nerded!~nerded@c-98-218-53-235.hsd1.md.comcast.net] has quit [#ruby]
axilla [axilla!~axilla@c-71-234-169-157.hsd1.vt.comcast.net] has joined #ruby
geaif [geaif!~geaif@7-239.62-188.cust.bluewin.ch] has joined #ruby
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-frrdtanyuiaygmnn] has joined #ruby
rubynewb [rubynewb!46b0ae49@gateway/web/freenode/ip.70.176.174.73] has joined #ruby
<ale`> where do I find the documentation for `module_function'?
<rubynewb> I have a set that I want to iterate over and keep only the largest value, what is the simplest block code I could use in ruby to do that?
artOfWar [artOfWar!~artofwar@108-205-201-30.lightspeed.sntcca.sbcglobal.net] has joined #ruby
wedtm [wedtm!~wedtm@173-12-163-78-oregon.hfc.comcastbusiness.net] has joined #ruby
<ale`> rubynewb: there's no doc for module_function
<ale`> in that page I mean
<rubynewb> what is the context, what are you actually looking for?
[RHQme]stringo0 [[RHQme]stringo0!~JLstring@bas1-toronto42-1279600552.dsl.bell.ca] has joined #ruby
amar_key [amar_key!u2605@gateway/web/irccloud.com/x-xrgptqyllhbzdegn] has joined #ruby
notbrent [notbrent!u5121@gateway/web/irccloud.com/x-czkezmypvtrdxeiw] has joined #ruby
SeanTAllen [SeanTAllen!u4855@gateway/web/irccloud.com/x-upghczqulezajrsm] has joined #ruby
<Hanmac> ale` can you use "ri"?
moeSeth [moeSeth!u1029@gateway/web/irccloud.com/x-zskzcipafiogsqwm] has joined #ruby
<ale`> Hanmac: I'm a real noob with ruby, so I don't really know how to use it
beilabs_ [beilabs_!~jonathan@ppp59-167-171-134.static.internode.on.net] has joined #ruby
<rubynewb> ri is command line tool to lookup ruby info
<rubynewb> if you have ruby installed you should have it
<Hanmac> ri is the local documentation... try ri module_function
<rubynewb> just type "ri module_function" into the command line
<shevy> he is right
<shevy> "(See Module#module_function)"
<shevy> but where is it!
<shadoi> rubynewb: if your array contents include Comparable, you can just do ary.sort.last… or define your sort specifically.
<Hanmac> even shorter ... dosnt Enumerable have the function .max ?
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
<ale`> rubynewb: no info about it, I tried $ ri 'nil?' at the prompt, but it doesn't give me any info even for that one.
<ale`> probably I didn't build the docs when I installed ruby -_-'
<shadoi> Hanmac: yup, nice
<rubynewb> I think I found what I want .max_by
<rubynewb> are you on linux, mac or windows?
<Hanmac> ale` : no not nil, try "ri module_function"
<ale`> Hanmac: with "no info about it", I meant "ri module_function" didn't return any answer :-)
<rubynewb> ale` from ri module_function http://pastebin.com/3ep3WfQL
<shevy> the onlline docu lies!
<shevy> *online rather
<ale`> how do I build ri documentation? (I'm using rvm, if that matters)
geekbri [geekbri!~geekbri@208.252.10.190] has joined #ruby
<Hanmac> ale` why? your documentation is installed ...
pooja [pooja!u4977@gateway/web/irccloud.com/x-nbsylsxnvjwvjvsp] has joined #ruby
yfeldblum [yfeldblum!~Jay@c-98-218-48-253.hsd1.md.comcast.net] has joined #ruby
dwon [dwon!~dwon@75-119-251-37.dsl.teksavvy.com] has joined #ruby
fetimo [fetimo!~fetimo@027ba53b.bb.sky.com] has joined #ruby
fetimo [fetimo!~fetimo@027ba53b.bb.sky.com] has joined #ruby
<ale`> Hanmac: the output of 'ri module_function' is 'Nothing known about module_function'
<ale`> s/about mod/about .mod/
<Hanmac> hm then your ruby is a little bit broken ... but i dont think rvm is the cause ... :(
artOfWar [artOfWar!~artofwar@nat/yahoo/x-zniuswtdkgusshba] has joined #ruby