Topic for #ruby-lang is now Ruby 1.9.3p0: http://ruby-lang.org | Paste >3 Lines of Text on http://pastie.org
whatasunnyday [whatasunnyday!~sunny@adsl-99-35-225-68.dsl.pltn13.sbcglobal.net] has joined #ruby-lang
<erikh> like a database API layer
<erikh> or a package installer
* erikh ahem
<shevy> hehe
<shevy> well the really interesting thing lies in the C! :(
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
fayimora [fayimora!~fayimora@95.175.159.42] has joined #ruby-lang
<whatasunnyday> dumb question, what is the equivalent of i++ to increase i by 1?
<whatasunnyday> for ruyb
<whatasunnyday> ruby*
<lianj> i+=1
replore [replore!~replore@203.152.213.161.static.zoot.jp] has joined #ruby-lang
<whatasunnyday> thanks
<imperator> coulda had that in ruby, but no
* imperator just watched The Troll Hunter and liked it
<injekt> hmm
tenderlo_ [tenderlo_!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
tenderlo_ [tenderlo_!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
ConstantineXVI [ConstantineXVI!~constanti@74-138-221-74.dhcp.insightbb.com] has joined #ruby-lang
takaokouji [takaokouji!~takaokouj@2001:268:306:1:225:bcff:fedc:e1fe] has joined #ruby-lang
Constant_ [Constant_!~constanti@74-138-221-74.dhcp.insightbb.com] has joined #ruby-lang
<zenspider> imperator: the pseudo documentary in norway one?
snuxoll [snuxoll!~stefan@63.227.129.124] has joined #ruby-lang
<imperator> zenspider, yeah
<zenspider> I should add that to my queue... the cover looked ridiculous
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
jmontross [jmontross!~Adium@static-96-236-65-137.snfcca.dsl-w.verizon.net] has joined #ruby-lang
ConstantineXVI [ConstantineXVI!~constanti@74-138-221-74.dhcp.insightbb.com] has joined #ruby-lang
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby-lang
<postmodern> can anyone recommend a good Ruby code-linter?
neoesque [neoesque!~neoesque@210.59.147.232] has joined #ruby-lang
amerine [amerine!~mturner@209.118.237.69] has joined #ruby-lang
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
<zenspider> postmodern: there isn't really such a thing.
<zenspider> reek prolly comes the closest
<zenspider> then there was a project my UMD that was more of a static type checker type thing...
<postmodern> zenspider, looking for someone to find bone-head mistakes
<zenspider> prolly reek
<postmodern> zenspider, s/someone/something/g
<postmodern> ok will give it a go
confounds [confounds!~confounds@CPE78cd8e667600-CM78cd8e6675fd.cpe.net.cable.rogers.com] has joined #ruby-lang
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
confounds [confounds!~confounds@CPE78cd8e667600-CM78cd8e6675fd.cpe.net.cable.rogers.com] has joined #ruby-lang
confounds [confounds!~confounds@CPE78cd8e667600-CM78cd8e6675fd.cpe.net.cable.rogers.com] has joined #ruby-lang
confounds [confounds!~confounds@CPE78cd8e667600-CM78cd8e6675fd.cpe.net.cable.rogers.com] has joined #ruby-lang
fayimora [fayimora!~fayimora@95.175.159.42] has joined #ruby-lang
<imperator> gem search -r lint shows a few things, no idea as to their quality
whatasunnyday [whatasunnyday!~sunny@c-24-130-81-47.hsd1.ca.comcast.net] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
<queequeg1> does anybody read the core documentation on their kindle?
<zenspider> even if I had a kindle I'd answer no
<zenspider> I could do it on my ipad... still no
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
RomyEatsDrupal [RomyEatsDrupal!~stickycak@67.217.136.82] has joined #ruby-lang
enebo [enebo!~enebo@75-168-50-253.mpls.qwest.net] has joined #ruby-lang
ryanf_ [ryanf_!~revfitz@50.0.160.40] has joined #ruby-lang
macmartine [macmartine!~macmartin@c-24-21-112-60.hsd1.or.comcast.net] has joined #ruby-lang
<jmontross> haha
<jmontross> core doc on kindle?
Marco [Marco!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby-lang
Marco_ [Marco_!~marco@vtelinet-216-66-104-3.vermontel.net] has joined #ruby-lang
xsdg [xsdg!~xsdg@SIPB-VM-99.MIT.EDU] has joined #ruby-lang
mkscrg [mkscrg!~mkscrg@ool-18e4f9d6.dyn.optonline.net] has joined #ruby-lang
SuperTa__ [SuperTa__!~supertaz_@vpn.lax.truecarcorp.com] has joined #ruby-lang
replore [replore!~replore@203.152.213.161.static.zoot.jp] has joined #ruby-lang
looopy [looopy!~looopy@pool-141-156-60-133.washdc.btas.verizon.net] has joined #ruby-lang
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
DRCALKIN [DRCALKIN!~DROOL_AND@cpe-66-69-208-144.austin.res.rr.com] has joined #ruby-lang
jmcphers [jmcphers!jmcphers@nat/nokia/x-uxffooiittrxhpru] has joined #ruby-lang
arooni-mobile [arooni-mobile!~arooni-mo@189.131.32.148] has joined #ruby-lang
naz [naz!~n@70.44.2.190.res-cmts.bus.ptd.net] has joined #ruby-lang
looopy [looopy!~looopy@pool-141-156-60-133.washdc.btas.verizon.net] has joined #ruby-lang
dfr|mac [dfr|mac!~dfr|work@ool-18baf7e7.dyn.optonline.net] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@c-67-165-197-126.hsd1.co.comcast.net] has joined #ruby-lang
Marco [Marco!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
RomyEatsDrupal [RomyEatsDrupal!~stickycak@static-70-107-237-35.ny325.east.verizon.net] has joined #ruby-lang
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby-lang
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
<tjgillies> anyone know of any yEnc encodings?
* tjgillies is tired
<tjgillies> yEnc libraries
<tjgillies> rubygems.org returns zero results
srbartlett [srbartlett!~srbartlet@202.146.7.239] has joined #ruby-lang
MistyM [MistyM!~MistyM@50.72.70.192] has joined #ruby-lang
<drbrain> I have never even heard of yEnc
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
<drbrain> tjgillies: it's got a spec, looks like it shouldn't take more than a day or so to implement
<erikh> drbrain: it's what is used for usenet
ConstantineXVI [ConstantineXVI!~constanti@74-138-221-74.dhcp.insightbb.com] has joined #ruby-lang
<erikh> anyhow time to TOR
bglusman [bglusman!~bglusman@c-71-224-192-35.hsd1.pa.comcast.net] has joined #ruby-lang
<tjgillies> might implement it, was just looking for something with lower overheard than base64
<tjgillies> overhead
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby-lang
Weems [Weems!~the@nat.resnet.mc.edu] has joined #ruby-lang
Weems [Weems!~the@unaffiliated/weems] has joined #ruby-lang
esufan [esufan!~nekid@c-24-6-170-1.hsd1.ca.comcast.net] has joined #ruby-lang
twittard [twittard!~twittard@cpe-76-169-74-39.socal.res.rr.com] has joined #ruby-lang
perryh [perryh!~perryh@unaffiliated/perry753] has joined #ruby-lang
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby-lang
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@c-98-203-41-91.hsd1.fl.comcast.net] has joined #ruby-lang
ksinkar [ksinkar!~ksinkar@115.241.202.178] has joined #ruby-lang
brianpWins [brianpWins!~brianpWin@S01060014bf8930ea.vc.shawcable.net] has joined #ruby-lang
[1]Kichael [[1]Kichael!~Kichael@70-36-49-167.dyn.novuscom.net] has joined #ruby-lang
<WillMarshall> I am including a module into a class. Is there a good way for me to include if the module exists, do nothing if it does not?
<WillMarshall> something like if defined?(modulename) include modulename
<drbrain> include Module if defined?(Module)
krz [krz!~foobar@unaffiliated/krz] has joined #ruby-lang
ttilley [ttilley!~ttilley@unaffiliated/lv] has joined #ruby-lang
x0F_ [x0F_!~x0F@unaffiliated/x0f] has joined #ruby-lang
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
stoor [stoor!~stoor@ip4da85716.direct-adsl.nl] has joined #ruby-lang
Pip [Pip!~Pip@176.214.13.82] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
xsdg [xsdg!~xsdg@SIPB-VM-99.MIT.EDU] has joined #ruby-lang
mkscrg [mkscrg!~mkscrg@ool-18e4f9d6.dyn.optonline.net] has joined #ruby-lang
rippa [rippa!~splitta@85.158.54.234] has joined #ruby-lang
timbleck [timbleck!u3835@gateway/web/irccloud.com/x-wqhkmuzptspcnhtz] has joined #ruby-lang
joseph_ [joseph_!~joseph@46.33.34.36] has joined #ruby-lang
arooni-mobile [arooni-mobile!~arooni-mo@189.131.32.148] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
charper [charper!u1691@gateway/web/irccloud.com/x-sylnybrjmvmvrsqm] has joined #ruby-lang
codelol [codelol!u3386@gateway/web/irccloud.com/x-wmoqcdslqwwjtyfz] has joined #ruby-lang
denysonique_ [denysonique_!u484@gateway/web/irccloud.com/x-auuosopbincjrwcv] has joined #ruby-lang
beawesomeinstead [beawesomeinstead!u1643@gateway/web/irccloud.com/x-fovcjfmjolxusggr] has joined #ruby-lang
necromancer [necromancer!u4538@gateway/web/irccloud.com/x-qrtupgvayvnqvuen] has joined #ruby-lang
pritesh [pritesh!~pritesh@115.248.175.50] has joined #ruby-lang
abuiles [abuiles!u1641@gateway/web/irccloud.com/x-ygvqmdlgownhnlrp] has joined #ruby-lang
akahn [akahn!u2243@gateway/web/irccloud.com/x-wpqrtmzifbvajuln] has joined #ruby-lang
mkscrg [mkscrg!~mkscrg@ool-18e4f9d6.dyn.optonline.net] has joined #ruby-lang
_inc [_inc!~inc@unaffiliated/-inc/x-0498339] has joined #ruby-lang
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby-lang
cylence [cylence!~cylence@68.25.78.77] has joined #ruby-lang
mrchrisadams [mrchrisadams!u1367@gateway/web/irccloud.com/x-gabqedtslfqaxbva] has joined #ruby-lang
cesario [cesario!u2444@gateway/web/irccloud.com/x-knjaabmemxavizej] has joined #ruby-lang
kitallis-cloud [kitallis-cloud!u358@gateway/web/irccloud.com/x-oiywewwmnxygieus] has joined #ruby-lang
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby-lang
cylence [cylence!~cylence@68.25.78.77] has joined #ruby-lang
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-qxcnrjijzwqfxqxs] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
agib [agib!u781@gateway/web/irccloud.com/x-lnbfbozcqoqosdqv] has joined #ruby-lang
jxie_ [jxie_!~jxie@115.197.81.7] has joined #ruby-lang
epitron_ [epitron_!~epi@bito.ponzo.net] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
epitron_ [epitron_!~epi@unaffiliated/epitron] has joined #ruby-lang
cldwalker [cldwalker!u2984@gateway/web/irccloud.com/x-nradsbelyhotizbd] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
kitallis [kitallis!~kitallis@122.172.248.47] has joined #ruby-lang
looopy [looopy!~looopy@pool-141-156-60-133.washdc.btas.verizon.net] has joined #ruby-lang
necromancer [necromancer!u4538@gateway/web/irccloud.com/x-splednoiqleyxect] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
codelol [codelol!u3386@gateway/web/irccloud.com/x-bpqunimoxoomvewb] has joined #ruby-lang
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-humtfveehojkewhc] has joined #ruby-lang
codelol [codelol!u3386@gateway/web/irccloud.com/x-mdpidllrmamnwgaz] has joined #ruby-lang
beawesomeinstead [beawesomeinstead!u1643@gateway/web/irccloud.com/x-fftvsjdcmeswhusp] has joined #ruby-lang
necromancer [necromancer!u4538@gateway/web/irccloud.com/x-yeabpjyhvxpqpgrp] has joined #ruby-lang
neology [neology!~neology@115.119.250.230] has joined #ruby-lang
timbleck [timbleck!u3835@gateway/web/irccloud.com/x-jhscgtpfuzjlvlco] has joined #ruby-lang
cylence [cylence!~cylence@c-98-248-41-184.hsd1.ca.comcast.net] has joined #ruby-lang
hallucinations [hallucinations!~hallucina@115.249.98.157] has joined #ruby-lang
mccraig [mccraig!u574@gateway/web/irccloud.com/x-bpajqaljpajpxbkh] has joined #ruby-lang
whoops [whoops!u549@gateway/web/irccloud.com/x-qqtgffyajsylfafg] has joined #ruby-lang
abuiles [abuiles!u1641@gateway/web/irccloud.com/x-bcvqfefxcvghbumo] has joined #ruby-lang
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby-lang
agib [agib!u781@gateway/web/irccloud.com/x-xllgoktbkxhufjsv] has joined #ruby-lang
cesario [cesario!u2444@gateway/web/irccloud.com/x-btndjthlemseeqhn] has joined #ruby-lang
esufan [esufan!~nekid@c-24-6-170-1.hsd1.ca.comcast.net] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
livinded [livinded!~lolwut@pool-108-23-242-132.lsanca.fios.verizon.net] has joined #ruby-lang
looopy [looopy!~looopy@pool-141-156-60-133.washdc.btas.verizon.net] has joined #ruby-lang
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
denysonique_ [denysonique_!u484@gateway/web/irccloud.com/x-zctcwkazdntggqsj] has joined #ruby-lang
bglusman_ [bglusman_!~bglusman@c-71-224-192-35.hsd1.pa.comcast.net] has joined #ruby-lang
whatasunnyday [whatasunnyday!~sunny@209.10.211.114] has joined #ruby-lang
Gekz [Gekz!~gekz@159.253.5.25] has joined #ruby-lang
Gekz [Gekz!~gekz@unaffiliated/gekz] has joined #ruby-lang
<whatasunnyday> I have a pretty simple loop issue. I'm trying to separate an array into chunks of 20. Can someone take a quick look at my code?
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby-lang
<bnagy> whatasunnyday: ary.each_slice(20).to_a
dreinull [dreinull!~dreinull@ip-78-94-220-161.unitymediagroup.de] has joined #ruby-lang
<whatasunnyday> you are beautiful bnaggy
<whatasunnyday> any idea how to do it the way i wanted?
<bnagy> didn't even look
<whatasunnyday> fair enough
<whatasunnyday> to hell with it
dreinull [dreinull!~dreinull@ip-78-94-220-161.unitymediagroup.de] has joined #ruby-lang
akahn [akahn!u2243@gateway/web/irccloud.com/x-cndcvpllvprrnwje] has joined #ruby-lang
yxhuvud [yxhuvud!mongo@h-209-13.a212.priv.bahnhof.se] has joined #ruby-lang
aaaaaa123345 [aaaaaa123345!~Shubhkarm@S0106602ad07157ee.wp.shawcable.net] has joined #ruby-lang
<aaaaaa123345> ....
aaaaaa123345 [aaaaaa123345!~Shubhkarm@S0106602ad07157ee.wp.shawcable.net] has quit [#ruby-lang]
envygeeks [envygeeks!~envygeeks@pdpc/supporter/professional/envygeeks] has joined #ruby-lang
arthurlockhart [arthurlockhart!~cinch@60-242-128-8.static.tpgi.com.au] has joined #ruby-lang
kitallis-cloud [kitallis-cloud!u358@gateway/web/irccloud.com/x-mmvammyerlfkpqmg] has joined #ruby-lang
cldwalker [cldwalker!u2984@gateway/web/irccloud.com/x-hognoweibimqgkqc] has joined #ruby-lang
mrchrisadams [mrchrisadams!u1367@gateway/web/irccloud.com/x-pnufkannjadrmvtn] has joined #ruby-lang
injekt [injekt!~injekt@178.79.149.144] has joined #ruby-lang
tomb [tomb!~tomb@hubot.tomb.io] has joined #ruby-lang
VGoff [VGoff!~kotp@li272-234.members.linode.com] has joined #ruby-lang
stoor [stoor!~stoor@ip4da85716.direct-adsl.nl] has joined #ruby-lang
|Vargas| [|Vargas|!~luke@pdpc/supporter/profesional/vargas] has joined #ruby-lang
RomyEatsDrupal [RomyEatsDrupal!~stickycak@cpe-74-64-122-182.nyc.res.rr.com] has joined #ruby-lang
<whatasunnyday> another dumb question, once i create a new CSV, how do I save it? so if data = ["some","array"], CSV.new(data)
<whatasunnyday> how do i write CSV.new(data) to my hard drive?
<ddfreyne> does #to_s not give you a string representation?
<ddfreyne> not sure what the api is there
<whatasunnyday> it does?
<ddfreyne> actually, scratch that… http://ruby-doc.org/stdlib-1.9.2/libdoc/csv/rdoc/CSV.html explains it
<whatasunnyday> i've read it a few times
<ddfreyne> afk
<whatasunnyday> i don't get how to save the csv
<ddfreyne> whatasunnyday: then you should have seen that CSV.new(data) is not the way to use it
<ddfreyne> whatasunnyday: the documentation even has examples
<ddfreyne> anyway, i have to go, afk
envygeeks [envygeeks!~envygeeks@pdpc/supporter/professional/envygeeks] has quit ["PONG :holmes.freenode.net"]
artOfWar [artOfWar!~artofwar@108-205-201-30.lightspeed.sntcca.sbcglobal.net] has joined #ruby-lang
<whatasunnyday> i guess i'm not understanding the documentation at all...
heftig [heftig!~Jan@archlinux/developer/heftig] has joined #ruby-lang
<bnagy> Which bit of the "writing to a file" example is giving to trouble?
twittard [twittard!~twittard@cpe-76-169-74-39.socal.res.rr.com] has joined #ruby-lang
<whatasunnyday> i guess i am kind of confused
<whatasunnyday> how do you a create new csv
<whatasunnyday> i know know how to open an existing csv
<whatasunnyday> and write to it
<whatasunnyday> but, i don't know how to create a new csv and write to it
<whatasunnyday> like, if i wanted to create a hello.csv in the same directory and just have the first cell say "hello", how could i go about doing it?
<bnagy> CSV.open('hello.csv','wb+') {|csv| csv << ["hello"]} # will destroy any existing file with that name
<bnagy> not tested, btw
<whatasunnyday> what if there is no hello.csv?
kaiwren [kaiwren!~KaiWren@122.172.248.47] has joined #ruby-lang
<bnagy> it will create it
<whatasunnyday> you're kidding
<whatasunnyday> ughh
<whatasunnyday> i am sorry
<bnagy> in fact it will kill any existing file if you keep the '+' there
<whatasunnyday> thanks a lot of for your help
<rippa> it will kill file without + too
<whatasunnyday> what does wb and + stand for?
<rippa> w is write mode
<rippa> b is binary
<bnagy> check the file create options in the quickref or elsewhere
<rippa> + means you can read too
<whatasunnyday> ah
<whatasunnyday> i see
<bnagy> obviously I shoudl re-read them too :>
<whatasunnyday> thanks very much
<whatasunnyday> bookmarking and reading now
<bnagy> read the whole quickref, again and again. It's good for you, like prunes.
<whatasunnyday> yummy
neoesque [neoesque!~neoesque@210.59.147.232] has joined #ruby-lang
kitallis [kitallis!~kitallis@122.172.248.47] has joined #ruby-lang
frangiz [frangiz!~frangiz@user26.77-105-206.netatonce.net] has joined #ruby-lang
Locke23rus [Locke23rus!~quassel@188.162.162.83] has joined #ruby-lang
neology [neology!~neology@115.119.250.230] has joined #ruby-lang
ksinkar [ksinkar!~ksinkar@123.201.117.198] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
thone [thone!~thone@g225087026.adsl.alicedsl.de] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
esufan [esufan!~nekid@c-24-6-170-1.hsd1.ca.comcast.net] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
dc5ala [dc5ala!~dc5ala@stgt-4d038ae3.pool.mediaWays.net] has joined #ruby-lang
brushbox [brushbox!~brushbox@174.24.233.220.static.exetel.com.au] has joined #ruby-lang
whatasunnyday [whatasunnyday!~sunny@209.10.211.114] has joined #ruby-lang
apeiros_ [apeiros_!~apeiros@194.209.75.58] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
kaiwren [kaiwren!~KaiWren@122.172.248.47] has joined #ruby-lang
esufan [esufan!~nekid@c-24-6-170-1.hsd1.ca.comcast.net] has joined #ruby-lang
solars [solars!~solars@clnet-kmu02-090.ikbnet.co.at] has joined #ruby-lang
gnufied [gnufied!~gnufied@122.172.224.153] has joined #ruby-lang
mytrile [mytrile!~mytrile@94.26.28.135] has joined #ruby-lang
<heftig> ri Encoding.default_external says: File data written to disk will be transcoded to the default external encoding when written.
<heftig> that doesn't actually seem to be the case? Files have no external encoding by default
cyri_ [cyri_!~cyri_@236.200.72.86.rev.sfr.net] has joined #ruby-lang
roadkith [roadkith!~kith@unaffiliated/kith] has joined #ruby-lang
neology [neology!~neology@115.119.250.230] has joined #ruby-lang
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby-lang
Weems [Weems!~the@nat.resnet.mc.edu] has joined #ruby-lang
Weems [Weems!~the@unaffiliated/weems] has joined #ruby-lang
WillMarshall [WillMarshall!~willmarsh@ppp121-44-40-197.lns20.syd6.internode.on.net] has joined #ruby-lang
retro|cz [retro|cz!~retro@106.142.broadband6.iol.cz] has joined #ruby-lang
JohnBat26 [JohnBat26!~Eugene@89.175.77.79] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
JoL1hAHN [JoL1hAHN!~nrk@unaffiliated/jol1hahn] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@124-168-218-42.dyn.iinet.net.au] has joined #ruby-lang
gokulnath [gokulnath!~gokulnath@115.111.177.122] has joined #ruby-lang
molgrew [molgrew!~bozo20@85.182.139.18] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
Pip [Pip!~Pip@176.214.13.82] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
judofyr [judofyr!~judofyr@195.159.219.65] has joined #ruby-lang
<judofyr> hey folks
<erikh> ohio
shevy [shevy!~shevy@93-82-139-90.adsl.highway.telekom.at] has joined #ruby-lang
predator117 [predator117!~markus@p508050B3.dip.t-dialin.net] has joined #ruby-lang
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
predator117 [predator117!~markus@p508050B3.dip.t-dialin.net] has quit [#ruby-lang]
<rippa> wow
<rippa> Enumerator#feed
<rippa> I didn't even know
roha [roha!~phelot@84-75-49-50.dclient.hispeed.ch] has joined #ruby-lang
Guest17613 [Guest17613!~davidw@host228-251-static.95-94-b.business.telecomitalia.it] has joined #ruby-lang
<rue> Hm
<rue> I wonder which use case prompted that
<rue> WTF, where is m buffer playback?
<rue> Fucking znc
TheRealmccoy [TheRealmccoy!~ABHISHEK@114.143.28.60] has joined #ruby-lang
isale-eko [isale-eko!~chatzilla@cpc1-benw3-0-0-cust717.gate.cable.virginmedia.com] has joined #ruby-lang
saLOUt [saLOUt!~rriemann@77.245.32.179] has joined #ruby-lang
tcurdt [tcurdt!~tcurdt@p5B03DADF.dip.t-dialin.net] has joined #ruby-lang
thrcka [thrcka!~thrcka@ip-89-102-34-33.net.upcbroadband.cz] has joined #ruby-lang
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
zmack [zmack!~zmack@78.97.129.175] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
jondot_ [jondot_!~jondot@217.65.39.4] has joined #ruby-lang
<jondot_> hi all. looking for differences in using open-uri and Net::HTTP.. anyone wondered about that ?
<andrewvos> jondot_: What?
whatasunnyday [whatasunnyday!~sunny@209.10.211.114] has quit ["Leaving"]
<jondot_> andrewvos, i want to make a simple get. shoud i use open-uri or Net::HTTP ? (not sure about the tradeoffs)
<andrewvos> jondot_: You should use HTTParty.
<jondot_> andrewvos, sorry, i'd also need no external deps
<andrewvos> jondot_: Why?
<jondot_> im creating a new rack middleware, and i'd like it if people wouldn't be bothered with having many external deps other than rack itself.
<andrewvos> jondot_: Meh
<andrewvos> jondot_: Well I don't know if open-uri is better than Net::HTTP. I do know the latter is completely fucking irritating to use.
empity [empity!~user@mail2.xype.com] has joined #ruby-lang
TheRealmccoy [TheRealmccoy!~ABHISHEK@114.143.28.60] has quit [#ruby-lang]
solars [solars!~solars@clnet-kmu02-090.ikbnet.co.at] has joined #ruby-lang
hbs [hbs!~hbs@port-239.pppoe.wtnet.de] has joined #ruby-lang
<rue> jondot_: open-uri uses Net::HTTP? It's just a convenience
<jondot_> yep, thats what i was trying to validate
<rue> If you can't do what you need to using open-uri, you need to drop down to Net::HTTP (or another abstraction like HTTParty or Faraday)
beiter [beiter!~beiter@manz-590f00ad.pool.mediaWays.net] has joined #ruby-lang
<robgleeson> I like Net::HTTP, but it has too many APIs to do one thing.
<robgleeson> I stick to Net::HTTP.start(…)
hbs [hbs!~hbs@port-239.pppoe.wtnet.de] has quit [#ruby-lang]
kryl99 [kryl99!~kryl99@124-148-185-228.dyn.iinet.net.au] has joined #ruby-lang
davidw [davidw!~davidw@apache/committer/davidw] has joined #ruby-lang
rippa [rippa!~splitta@85.158.54.234] has joined #ruby-lang
<erikh> rue: you gotta set it up
<erikh> /msg *admin set user keepbuffer 1000
<erikh> or something like that.
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
hrnt [hrnt!hrnt@wintermute.hrnt.net] has joined #ruby-lang
kryl99 [kryl99!~kryl99@124-148-185-228.dyn.iinet.net.au] has joined #ruby-lang
kryl99 [kryl99!~kryl99@124-148-185-228.dyn.iinet.net.au] has joined #ruby-lang
dave_miles [dave_miles!~davemiles@gatej.thls.bbc.co.uk] has joined #ruby-lang
kryl99 [kryl99!~kryl99@124-148-185-228.dyn.iinet.net.au] has joined #ruby-lang
tekin [tekin!~tekin@cpc8-with5-2-0-cust208.1-4.cable.virginmedia.com] has joined #ruby-lang
snuxoll [snuxoll!~stefan@63.227.129.124] has quit [#ruby-lang]
kryl99 [kryl99!~kryl99@124-148-185-228.dyn.iinet.net.au] has joined #ruby-lang
gianlucadv [gianlucadv!~gianlucad@host61-81-dynamic.245-95-r.retail.telecomitalia.it] has joined #ruby-lang
<jondot_> is there an easy way to mount rack middleware at a certain path from a config.ru (Rack builder)?
<jondot_> ack. n/m
gix [gix!~gix@e180023178.adsl.alicedsl.de] has joined #ruby-lang
jondot_ [jondot_!~jondot@217.65.39.4] has joined #ruby-lang
zmack [zmack!~zmack@89.120.101.51] has joined #ruby-lang
<jondot_> running on Thin, i'm wondering - can my app code make an HTTP request to another endpoint (the same app) ?
<jondot_> i'm assuming that locks the process
roha [roha!~phelot@84-75-49-50.dclient.hispeed.ch] has joined #ruby-lang
Weems [Weems!~the@unaffiliated/weems] has joined #ruby-lang
joseph_ [joseph_!~joseph@46.33.34.36] has joined #ruby-lang
[1]Kichael [[1]Kichael!~Kichael@70-36-49-167.dyn.novuscom.net] has joined #ruby-lang
abentspoon [abentspoon!~micah@173.247.201.130] has joined #ruby-lang
a3li [a3li!~alex@gentoo/developer/a3li] has joined #ruby-lang
kain [kain!~kain@151.64.233.209] has joined #ruby-lang
mortice [mortice!~Tom@li300-55.members.linode.com] has joined #ruby-lang
troubleman [troubleman!~torbjorn@84-16-208.227.3p.ntebredband.no] has joined #ruby-lang
Keltia [Keltia!roberto@aran.keltia.net] has joined #ruby-lang
schroedinbug [schroedinbug!~schroedin@71-212-191-172.hlrn.qwest.net] has joined #ruby-lang
jalljo [jalljo!jalljo@unaffiliated/jalljo] has joined #ruby-lang
Mchl [Mchl!~Mchl@h1881165560.rev.rootvps.pl] has joined #ruby-lang
spectra [spectra!~spectra@debian/developer/spectra] has joined #ruby-lang
mitchty [mitchty!~mitchty@ec2-50-19-41-37.compute-1.amazonaws.com] has joined #ruby-lang
heftig [heftig!~Jan@archlinux/developer/heftig] has joined #ruby-lang
replore_ [replore_!~replore@ntkngw298122.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #ruby-lang
igaiga [igaiga!~igaiga@softbank126126155190.bbtec.net] has joined #ruby-lang
Pip [Pip!~Pip@176.214.13.82] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
dous_ [dous_!~dous@cm171.sigma67.maxonline.com.sg] has joined #ruby-lang
ConstantineXVI [ConstantineXVI!~constanti@74-138-221-74.dhcp.insightbb.com] has joined #ruby-lang
jensn [jensn!~Jens@167-244-96-87.cust.blixtvik.se] has joined #ruby-lang
replore_ [replore_!~replore@ntkngw298122.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@46.118.222.184] has joined #ruby-lang
thrcka [thrcka!~thrcka@ip-89-102-34-33.net.upcbroadband.cz] has joined #ruby-lang
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby-lang
kaiwren [kaiwren!~KaiWren@122.172.248.47] has joined #ruby-lang
jordan` [jordan`!~gromit@2001:660:3302:2826:225:90ff:fe20:d9a8] has joined #ruby-lang
esufan [esufan!~nekid@c-24-6-170-1.hsd1.ca.comcast.net] has joined #ruby-lang
mark_locklear [mark_locklear!~jlocklear@ab-tech-lan-to-ab-tech-gw.ncren.net] has joined #ruby-lang
<darix> jondot_: why not just call that ruby code instead of going through http locally?
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
roha [roha!~phelot@84-75-49-50.dclient.hispeed.ch] has joined #ruby-lang
<jondot_> darix, i do that too
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
<shevy> hmm
boodle [boodle!~boodle@174.46.129.34] has joined #ruby-lang
<shevy> is it possible to learn C via Ruby-C
_rane [_rane!rane@theorycraft.org] has joined #ruby-lang
<erikh> probably not a good idea
denysonique_ [denysonique_!u484@gateway/web/irccloud.com/x-lmjiznelifmdxajf] has joined #ruby-lang
<esufan> which linux environment of ubuntu shuold i install
<erikh> what version of ubuntu?
<robgleeson> what's Ruby-C, shevy?
<esufan> ubuntu, xubuntu, kubuntu, or mythbuntu; 11.10
<erikh> robgleeson: oh, I presumed he meant the MRI source
<esufan> windows installer
<robgleeson> oh ok
<erikh> esufan: whatever you want; this is a ruby channel, not an ubuntu one
<erikh> I think #ubuntu exists thoug
Weems [Weems!~the@nat.resnet.mc.edu] has joined #ruby-lang
Weems [Weems!~the@unaffiliated/weems] has joined #ruby-lang
<darix> esufan: opensuse
jondot_ [jondot_!~jondot@217.65.39.4] has joined #ruby-lang
hexo [hexo!hexo@hackerspace.base48.tk] has joined #ruby-lang
<erikh> bias
<esufan> if i want to use a one of those buntu's for ruby
<esufan> which should I? because I still want to use a windows installer
<erikh> esufan: this is not a linux channel
huugsy [huugsy!~huug@ip-83-134-136-197.dsl.scarlet.be] has joined #ruby-lang
<robgleeson> silverlight seems to use way less CPU
<erikh> on mac?
<robgleeson> ya
<erikh> that's .... pretty much fail by adobe
<erikh> flash has always been bad on mac
<robgleeson> yeah, drains battery like a mofo
<robgleeson> netflix are using it to stream video
<erikh> yeah.
<erikh> man, netflix's ops team is amazing
<erikh> I'd give a testicle to work with them for a few months
<robgleeson> haha yeah I bet
jasox_ [jasox_!~jasox@178.239.26.139] has joined #ruby-lang
<robgleeson> It launched in Ireland a few days ago
<robgleeson> loving it so far
<erikh> they have this service called the chaos monkey that just randomly terminates hosts
<erikh> the idea being that they need to add more resilience if it trips any monitors
<erikh> I mean, being at that level with ops is pretty f'n amazing
<robgleeson> for sure
<robgleeson> i think building stress tools would be a awesome thing to do
malev [malev!~malev@190.210.138.237] has joined #ruby-lang
<erikh> oh yeah, I get to write a lot of tooling for work, but nothing at that level
<shevy> robgleeson yeah MRI things... I am reading through ancient things again like http://onlamp.com/pub/a/onlamp/2004/11/18/extending_ruby.html and wonder whether I shouldn't learn C properly the hard way, but then again I also am not super-motivated either :( Ruby-C alone seems like more fun
tommyvyo [tommyvyo!~tommyvyo@38.123.129.115] has joined #ruby-lang
<erikh> maybe just write a small C program?
hallucinations [hallucinations!~hallucina@59.144.55.130] has joined #ruby-lang
<shevy> hmm yeah
<shevy> one that I can perhaps extend over a longer time
<erikh> if you're going to extend a scripting language, lua has a much, much simpler C api
<erikh> lua's C api is downright sexy
<erikh> like in the girl next door way
<erikh> you know, the kind where you know what the game is but you certainly aren't gonna risk digging underneath the hood to find out
tomzx [tomzx!~tomzx@dsl-156-68.aei.ca] has joined #ruby-lang
<rue> …Sounds like you had some weird people next door.
<erikh> yeah
<erikh> sleep has been at a premium the last month or so
<erikh> starting to wear on me
tekin [tekin!~tekin@88-96-65-166.dsl.zen.co.uk] has joined #ruby-lang
niklasb [niklasb!~codeslay0@p5B310CDC.dip0.t-ipconnect.de] has joined #ruby-lang
<rue> You should remedy the situation
<erikh> it's getting better
<molgrew> wear eyeball glasses
<erikh> heh
uncle_billy [uncle_billy!~Adium@static-224.service.govdelivery.com] has joined #ruby-lang
toretore [toretore!~toretore@crr06-3-82-231-12-81.fbx.proxad.net] has joined #ruby-lang
MistyM [MistyM!~MistyM@50.72.70.192] has joined #ruby-lang
indstry [indstry!~apple@c-71-238-98-243.hsd1.mi.comcast.net] has joined #ruby-lang
yfeldblum [yfeldblum!~Jay@pool-71-246-76-76.bltmmd.east.verizon.net] has joined #ruby-lang
thrcka [thrcka!~thrcka@ip-89-102-34-33.net.upcbroadband.cz] has joined #ruby-lang
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
crankharder [crankharder!~crankhard@ip68-100-194-214.dc.dc.cox.net] has joined #ruby-lang
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby-lang
bglusman [bglusman!~bglusman@c-68-80-200-61.hsd1.pa.comcast.net] has joined #ruby-lang
rushed [rushed!~rushed@99-73-225-9.lightspeed.austtx.sbcglobal.net] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@host-208-68-238-122.biznesshosting.net] has joined #ruby-lang
cek [cek!~cek@crius.pantheon.fused.net] has joined #ruby-lang
<cek> module Mod; def meth; end; end; Mod.method(:meth) doesn't work
<cek> how do I get ref to meth so I can pass it as proc?
<andrewvos> def meth; "not even once"; end
<andrewvos> cek: If you just want to call the method you can store the object and the method name.
<andrewvos> cek: Then object.send("meth".to_sym)
Heimidal [Heimidal!~heimidal@c-67-165-197-126.hsd1.co.comcast.net] has joined #ruby-lang
<cek> well, yeah, but i want to be concise
<andrewvos> Hmm
<andrewvos> I can't remember the syntax
<andrewvos> meth = Proc.new { object.meth }
<andrewvos> cek: Then meth.call
<cek> too long, and doesn't account for args
<andrewvos> cek: It sounds like you know the anser?
<cek> and should actually be lambda instead of proc
<andrewvos> answer*
<cek> yea, i just can't get a ref to the module class method
jbsan [jbsan!~jbsan@c80-216-213-130.bredband.comhem.se] has joined #ruby-lang
roha [roha!~phelot@84-75-49-50.dclient.hispeed.ch] has joined #ruby-lang
<erikh> module Mod; def self.meth; end; end; Mod.method(:meth) # probably works
<erikh> be mindful of what's receiving your messages
<cek> yeah, made it a module function at once
<cek> forgot instance methods are non existent in module context per se as mods can't be instantiated
<cek> though could unbind it and bind to the class that included the mod, but didn't test and that's too complex
<erikh> that... yeah
<erikh> don't do that :)
<erikh> I'm not entirely sure why you need Mod.method with that code
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
malev [malev!~malev@190.210.138.237] has joined #ruby-lang
enebo [enebo!~enebo@75-168-50-253.mpls.qwest.net] has joined #ruby-lang
takaokouji [takaokouji!~takaokouj@nat35.mable.ne.jp] has joined #ruby-lang
<rue> Aaargh HTML
<rue> Can't even get a pre block to actually format right :>
<andrewvos> rue: What?
<andrewvos> rue: Use HAML
<rue> This HTML page is like 100 bytes
<andrewvos> rue: HTML is for people that still try to justify Javascript vs Coffeescript
<andrewvos> rue: But on a more serious note, I liked that article you commented on on Twitter about Facebook privacy etc.
<rue> Oh, the Moglen rant?
spleeze [spleeze!~Spleeze@173-15-131-114-BusName-Philadelphia.hfc.comcastbusiness.net] has joined #ruby-lang
<andrewvos> rue: Yes
<andrewvos> rue: I agree with a lot of it.
<andrewvos> rue: We just let our governments cross the line more and more and it starts to seem normal what they do.
<apeiros_> andrewvos: so for everybody who's right? :)
<andrewvos> apeiros_: Not sure what part you mean?
<andrewvos> The privacy rant or Coffeescript?
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
<pigdude> coffeescript lol
<Tasser> javascript lulz
<apeiros_> andrewvos: html & js of course :)
robotmay [robotmay!~robotmay@94.30.13.228] has joined #ruby-lang
<Tasser> apeiros_, no coffee?
<apeiros_> real man don't need no coffee…
<apeiros_> *men
<Tasser> I'd take coffeescript over coffee any time ;-)
<pigdude> i like my shit without additional layers of shit thank you very much
Spooner [Spooner!~Miranda@host-78-144-139-130.as13285.net] has joined #ruby-lang
<Tasser> pigdude, ah well, it's still shit, it just collects how shit is usually done and puts that in a bucket...
<Tasser> s/shit/javascript/
dejongge [dejongge!~jonke@pD9E0C04D.dip0.t-ipconnect.de] has joined #ruby-lang
<rue> andrewvos: HAML doesn't work so great for trying to get preformatted text out :/
<rue> But, really, I just don't understand where plain old regular HTML is getting this extra whitespace
<Spooner> rue: It is fine if you run it in ugly mode.
dazoakley [dazoakley!~dazoakley@hocuspokus.vm.bytemark.co.uk] has joined #ruby-lang
dazoakley [dazoakley!~dazoakley@hocuspokus.vm.bytemark.co.uk] has quit [#ruby-lang]
<rue> Is it?
nougad [nougad!~feitel@z750d.pia.fu-berlin.de] has joined #ruby-lang
<nougad> Hi, does anyone know if UDPSocket#send is threadsafe? (1.8.7 & 1.9.3)
rippa [rippa!~rippa@109-161-72-133.pppoe.yaroslavl.ru] has joined #ruby-lang
mhi^ [mhi^!~mhi@home.zedat.fu-berlin.de] has joined #ruby-lang
<Spooner> rue: I have found it so (for code blocks). It removes all haml indentation in the output and so any indentation you have past where you in haml is preserved. If that makes any sense :D
<andrewvos> rue: Yeah it can be irritating. I like using markdown for content type stuff. Like blogging for example. Markdown is perfect for that.
Okasu [Okasu!~okasu@s094127069016.m.truevds.ru] has joined #ruby-lang
outoftime [outoftime!~mat@ip-160-79-101-2.autorev.intellispace.net] has joined #ruby-lang
roha [roha!~phelot@84-75-49-50.dclient.hispeed.ch] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
tcurdt [tcurdt!~tcurdt@p5B03DD21.dip.t-dialin.net] has joined #ruby-lang
Cool_Fire [Cool_Fire!~coolfire@145.116.233.201] has joined #ruby-lang
<Cool_Fire> Morning
<Cool_Fire> I need to implement a hashing algorithm that requires the use of an unsigned int. Any ideas how I can do this?
<judofyr> Cool_Fire: what? in Ruby?
<Cool_Fire> Yes
<Tasser> I can't remember ruby having unsigned ints
<Cool_Fire> Normally it's dynamically typed
<judofyr> Cool_Fire: you don't need anything special to deal with "unsigned ints"
<judofyr> Ruby handles all types of ints dynamically
<Cool_Fire> But how does it know I want unsigned rather than signed?
<Cool_Fire> Because if it uses a signed int, the hash won't be correct
<judofyr> you can't decide that
<judofyr> ehm
<judofyr> then you can't implement it in Ruby
<judofyr> Ruby doesn't have integer overflow
<Cool_Fire> Well that's a bit of a kick in the balls :\
<Tasser> Cool_Fire, there's a C api
<judofyr> you can usually fake it with modulo: %
<Cool_Fire> Tasser: can't use it. It needs to run on sketchup's ruby console
<Cool_Fire> The hashing algorithm is part of a plugin I need to write a specific file format
<Tasser> Cool_Fire, you compile and require c api stuff
RomyEatsDrupal [RomyEatsDrupal!~stickycak@cpe-74-64-122-182.nyc.res.rr.com] has joined #ruby-lang
RomD` [RomD`!~Roman@nrbg-4d076eac.pool.mediaWays.net] has joined #ruby-lang
<codatory> Yep; I don't see a way to do it without at least writing a C plugin to give you an unsigned_int data type
<Cool_Fire> Tasser: at that point I then might as well write it in C and just execute it as a subroutine
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
uncle_billy [uncle_billy!~Adium@static-224.service.govdelivery.com] has quit [#ruby-lang]
MistyM [MistyM!~mistym@50.museumforhumanrights.com] has joined #ruby-lang
ksinkar [ksinkar!~ksinkar@115.242.94.74] has joined #ruby-lang
<codatory> There's a method at least in Ruby Trunk for a experimental API to get unsigned integers
ltd [ltd!~z@zx.io] has joined #ruby-lang
<pigdude> do you think collect or map, select or filter, are more idiomatic? i usually see collect, select
<pigdude> actually i'm silly there is no filter
<pigdude> but collect <=> map?
<codatory> collect is an alias to map
<pigdude> yes i am aware
cynosure [cynosure!~cynosure@centrumnet.hu] has joined #ruby-lang
<codatory> I use Collect when I'm collecting a single data type, and Map when re-mapping data to fit a new structure for whatever needs I might have (like a dropdown menu)
JEG2 [JEG2!~JEG2@ip72-198-103-217.ok.ok.cox.net] has joined #ruby-lang
<codatory> bars = foos.collect(&:bar)
<codatory> bars = foos.map{|f| [f.bin, f.baz]}
<pigdude> that makes sense
<pigdude> what is &:bar? does that invoke bar of each in foo?
<codatory> Symbol to proc, it expands to {|i| i.bar}
<pigdude> ok
<pigdude> thanks codatory
<codatory> n/p
<pigdude> my goal is to find a use for Array::combination :^)
<pigdude> * #combination
<codatory> I can't think of anything except chunking operations...
Caius [Caius!~Caius@about/apple/macbookpro/Caius] has joined #ruby-lang
<pigdude> i start ruby job next week and refreshing myself w/ api doc, esp for 1.9 as i've only used 1.8.7 professionally before :^)
zmack [zmack!~zmack@89.120.101.51] has joined #ruby-lang
<pigdude> after two years of wandering in the php/python wilderness :^)
<apeiros_> codatory: isn't it &:bar --> { |i,*a| i.bar(*a) } ?
<codatory> pigdude: Here's all I can think of for array.combination http://paste.codatory.com/view/58448810
<codatory> apeiros_: In theory, though I never have luck passing things in
<pigdude> codatory, haha "FOR SPEED"
<Cool_Fire> <codatory> There's a method at least in Ruby Trunk for a experimental API to get unsigned integers <- I need it in the sketchup Ruby console :(
<codatory> I guess that's basically the opposite of find_each
confounds [confounds!~confounds@CPE78cd8e667600-CM78cd8e6675fd.cpe.net.cable.rogers.com] has joined #ruby-lang
imperator [imperator!~Daniel@63-225-247-192.hlrn.qwest.net] has joined #ruby-lang
Marco [Marco!~marco@Marco-2.Kiewit.Dartmouth.EDU] has joined #ruby-lang
saLOUt [saLOUt!~rriemann@naqasl.physik.hu-berlin.de] has joined #ruby-lang
<Spooner> codatory: you should use #each_slice(5) (#combination will actually run through the same elements many times)
mksm [mksm!~mksm@200-185-227-52.user.ajato.com.br] has joined #ruby-lang
dreinull [dreinull!~dreinull@ip-78-94-220-161.unitymediagroup.de] has joined #ruby-lang
<codatory> Spooner: Dang, so I still didn't come up with something I could actually use combinations for ;-)
<codatory> Of course honestly I'd probably use a Queue for that so I could use it across threads
<Spooner> codatory: anagrams, but then they'd be better with #permutation. *shrugs*
saLOUt [saLOUt!~rriemann@naqasl.physik.hu-berlin.de] has joined #ruby-lang
<codatory> Cool_Fire: Check out String#unpack http://www.ruby-doc.org/core-1.9.2/String.html#method-i-unpack
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby-lang
roha [roha!~phelot@84-75-49-50.dclient.hispeed.ch] has joined #ruby-lang
<codatory> Seems to be able to give unsigned ints for strings, no idea if they're what you're looking for
* Cool_Fire reads
enebo [enebo!~enebo@75-168-50-253.mpls.qwest.net] has joined #ruby-lang
<codatory> Something like this http://tinyurl.com/8ykkgu5
saLOUt_ [saLOUt_!~rriemann@naqasl.physik.hu-berlin.de] has joined #ruby-lang
looopy [looopy!~looopy@pool-141-156-60-133.washdc.btas.verizon.net] has joined #ruby-lang
* Cool_Fire ponders
<Cool_Fire> Could work I suppose
<codatory> May not be the most performant thing in the world, but heck, you're using Ruby you can't be that worried about speed ;-)
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
<Cool_Fire> Well, I am always a little. But it's a small enough part of the script that it won't cause any significant impact anyway
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby-lang
Sailias [Sailias!~jonathan@s72-38-77-178.static.comm.cgocable.net] has joined #ruby-lang
Marco [Marco!~marco@dhcp-210-147.cs.dartmouth.edu] has joined #ruby-lang
mksm_ [mksm_!~mksm@200-185-227-52.user.ajato.com.br] has joined #ruby-lang
solars [solars!~solars@mk089144206222.a1.net] has joined #ruby-lang
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby-lang
dfr|mac [dfr|mac!~dfr|work@ool-18baf7e7.dyn.optonline.net] has joined #ruby-lang
ksinkar_ [ksinkar_!~ksinkar@115.241.137.39] has joined #ruby-lang
Faris [Faris!~amnay@41.250.238.83] has joined #ruby-lang
Guest37669 [Guest37669!Guest37669@200-185-227-52.user.ajato.com.br] has joined #ruby-lang
SuperTaz_work [SuperTaz_work!~supertaz_@38.99.52.59] has joined #ruby-lang
Guest37669 [Guest37669!~mksm@200-185-227-52.user.ajato.com.br] has joined #ruby-lang
jacobwg [jacobwg!~jacobwg@215.sub-75-224-198.myvzw.com] has joined #ruby-lang
artOfWar [artOfWar!~artofwar@108-205-201-30.lightspeed.sntcca.sbcglobal.net] has joined #ruby-lang
jbwiv [jbwiv!~wellsj@world.timcogso.com] has joined #ruby-lang
Defusal [Defusal!DeFi@196-209-51-239.dynamic.isadsl.co.za] has joined #ruby-lang
Defusal [Defusal!DeFi@unaffiliated/ecnerifed] has joined #ruby-lang
<masterkorp> funny fact is that the ruby symbol is cutted like a diamon :p
Xzyx987X [Xzyx987X!~Xzyx987X@c-75-72-121-187.hsd1.mn.comcast.net] has joined #ruby-lang
Guest37669 [Guest37669!Guest37669@200-185-227-52.user.ajato.com.br] has joined #ruby-lang
darkf [darkf!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
<Cool_Fire> Rubies sometimes are
<Cool_Fire> Admittedly, not often
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby-lang
cylence [cylence!~cylence@68.25.78.77] has joined #ruby-lang
tbuehlmann [tbuehlmann!~Tobias@unaffiliated/tovias] has joined #ruby-lang
zmack_ [zmack_!~zmack@89.120.101.51] has joined #ruby-lang
anjen [anjen!~anjen@99-29-152-246.lightspeed.bcvloh.sbcglobal.net] has joined #ruby-lang
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby-lang
savage- [savage-!~savage-@209.118.197.220] has joined #ruby-lang
malev [malev!~malev@190.210.138.237] has joined #ruby-lang
mrsolo [mrsolo!~mrsolo@64.125.181.73] has joined #ruby-lang
cylence [cylence!~cylence@68-25-78-77.pools.static.spcsdns.net] has joined #ruby-lang
fabio_smith [fabio_smith!~104042433@cpc3-sgyl32-2-0-cust785.sgyl.cable.virginmedia.com] has joined #ruby-lang
ascarter_ [ascarter_!~ascarter@209.119.253.66] has joined #ruby-lang
looopy [looopy!~looopy@pool-141-156-60-133.washdc.btas.verizon.net] has joined #ruby-lang
Faris [Faris!~amnay@41.250.238.83] has joined #ruby-lang
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
kitallis [kitallis!~kitallis@122.172.248.47] has joined #ruby-lang
Marco [Marco!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby-lang
Gunnar_ [Gunnar_!~Gunnar@gunnar.xs4all.nl] has joined #ruby-lang
twittard [twittard!~twittard@vpn.lax.truecarcorp.com] has joined #ruby-lang
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby-lang
queequeg1 [queequeg1!~chatzilla@c-71-202-152-67.hsd1.ca.comcast.net] has joined #ruby-lang
zmack [zmack!~zmack@89.120.101.51] has joined #ruby-lang
butchanton [butchanton!~butchanto@vpn-sanfran.exacttarget.com] has joined #ruby-lang
cylence [cylence!~cylence@70-89-66-138-ca.sfba.hfc.comcastbusiness.net] has joined #ruby-lang
twittard_ [twittard_!~twittard@cpe-76-169-74-39.socal.res.rr.com] has joined #ruby-lang
Pip [Pip!~Pip@176.214.13.82] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
cylence [cylence!~cylence@70-89-66-138-ca.sfba.hfc.comcastbusiness.net] has joined #ruby-lang
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby-lang
dfr|mac [dfr|mac!dfr|work@nat/google/x-amzmlylfyhxsfkxw] has joined #ruby-lang
kaiwren [kaiwren!~KaiWren@122.172.37.161] has joined #ruby-lang
savage- [savage-!~savage-@209.118.197.220] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
amrav_ [amrav_!cb6ef6e6@gateway/web/freenode/ip.203.110.246.230] has joined #ruby-lang
<shevy> I like sapphires
wmoxam [wmoxam!~wmoxam@69-196-130-209.dsl.teksavvy.com] has joined #ruby-lang
jmontross [jmontross!~Adium@68-233-216-82.static-ip.telepacific.net] has joined #ruby-lang
priteshjain [priteshjain!~priteshja@113.193.63.103] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
Marco [Marco!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
looopy [looopy!~looopy@pool-141-156-60-133.washdc.btas.verizon.net] has joined #ruby-lang
<Cool_Fire> Ruby keeps making my variables into other classes I don't want it to D:
frangiz [frangiz!~frangiz@user26.77-105-206.netatonce.net] has joined #ruby-lang
<wmoxam> O.o
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
<Cool_Fire> I'm bitshifting, but rather than discarding the bits shifted out the left, Ruby just keeps making bigger variables to fit it in
davidw [davidw!~davidw@adsl-ull-196-118.51-151.net24.it] has joined #ruby-lang
Weems [Weems!~the@unaffiliated/weems] has joined #ruby-lang
ilyam [ilyam!~ilyam@2620:65:0:281:7c06:a05e:627e:d936] has joined #ruby-lang
<Spooner> Cool_Fire: Yeah, that is Ruby for you :) Expecting it to be as dumb as C isn't going to get you anywhere :)
<Cool_Fire> Too bad it makes it near impossible to implement most hashing algorithms
Keva161 [Keva161!~Keva161@78.32.156.143] has joined #ruby-lang
<hrnt> not really, you can mask the result after the shift operations, for example
<Spooner> Or use a bitarray-simulator like https://github.com/ingramj/bitarray
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby-lang
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby-lang
<Spooner> Cool_Fire: Problem with DIY is that if I want a hash value for something, I just use #hash in Ruby. Presumably you are doing something for fun or is it to be compatible with a hashing system that is on a remote server or something?
<Guest37669> its amazing how pre-1.9.3 Date performance sucks compared to 1.9.3
mksm [mksm!Guest37669@pdpc/supporter/professional/mksm] has joined #ruby-lang
beiter [beiter!~beiter@manz-590f00ad.pool.mediaWays.net] has joined #ruby-lang
looopy [looopy!~looopy@pool-141-156-60-133.washdc.btas.verizon.net] has joined #ruby-lang
TheDracle [TheDracle!~jthomas@206.71.84.68] has joined #ruby-lang
brianpWins [brianpWins!~brianpWin@S01060014bf8930ea.vc.shawcable.net] has joined #ruby-lang
<Cool_Fire> Spooner: jenkins on at a time hash for writing a specific file 3D model format
<TheDracle> I'm using gems to install the 'watir' gem on linux, but for some reason it's trying to install the win32-api gem.
<TheDracle> Any suggestions?
<Spooner> TheDracle: "Watir is a Ruby library that works with Internet Explorer on Windows." implies it isn't supposed to work on Linux.
<TheDracle> Spooner, http://watir.com/
<TheDracle> Spooner, Strangely they have this 'Cross Platform' logo on their site.
<TheDracle> Lol.
<TheDracle> Maybe they only support windows though.
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
<Spooner> Well, do the win32-gems break when you install them? Probably just doesn't use them except on Windows, but they didn't want to release platform-specific gems?
<Spooner> Ah, " Whilst Watir supports only Internet Explorer on Windows, Watir-WebDriver supports Chrome, Firefox, Internet Explorer, Opera and also running in headless mode (HTMLUnit)." - try that version instead? (Watir-WebDriver)
ConstantineXVI [ConstantineXVI!~constanti@216-24-48-34.ip.win.net] has joined #ruby-lang
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
<Cool_Fire> href: Excellent suggestion. Completely forgot that
<href> thanks. but wasn't me.
<Spooner> IRC auto-complete on names hates us all.
<href> :)
<TheDracle> Spooner, I'll check it out, thanks :)
<Spooner> Tasser: Oh right, yeah, that makes it clearish I think.
Marco [Marco!~marco@vtelinet-216-66-104-4.vermontel.net] has joined #ruby-lang
<Cool_Fire> s/href/hrnt/
<Cool_Fire> sorry :p
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby-lang
Faris [Faris!~amnay@41.248.199.45] has joined #ruby-lang
leonL [leonL!~leonl@CPE0024a5b652a3-CM000f21205d86.cpe.net.cable.rogers.com] has joined #ruby-lang
frangiz [frangiz!~frangiz@user26.77-105-206.netatonce.net] has joined #ruby-lang
<jorgenpt> Anyone know a way to get a string describing the relative time of a Time?
<jorgenpt> Something like "4 hours ago"
<jorgenpt> Could even do rounding, just something to get a sense of how old an event is
<jorgenpt> Found a mention of time_ago_in_words on Google, but that seems to be ActiveView etc and not ActiveSupport?
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby-lang
<Cool_Fire> there's s function "uptime" in there, which might be of some help?
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby-lang
frangiz_ [frangiz_!~frangiz@user26.77-105-206.netatonce.net] has joined #ruby-lang
<imperator> jorgenpt, there's chronic or one of the rails modules (that can be downloaded separately I think)
<imperator> actionpack or something
savage- [savage-!~savage-@209.118.197.220] has joined #ruby-lang
<imperator> Cool_Fire, gem install sys-uptime
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby-lang
mark_azevedo [mark_azevedo!~mark_azev@50-78-101-2-static.hfc.comcastbusiness.net] has joined #ruby-lang
<jorgenpt> imperator: Isn't chronic the other way? (To parse natural language dates)
<jorgenpt> Bah, having to depend on the whole AP just to get *one* helper method :p
<Cool_Fire> imperator: That specific bit of code is aimed at minimizing dependencies.
<jorgenpt> Cool_Fire: That's more accurate then I care about, but thanks :-)
<jorgenpt> Cool_Fire: I'm fine with "1 hour 4 seconds" being "1 hour"
<jorgenpt> Maybe I should write my own
<jorgenpt> Probably just steal it from https://github.com/rails/rails/blob/master/actionpack/lib/action_view/helpers/date_helper.rb - seems pretty independent.
hagabaka [hagabaka!~hagabaka@unaffiliated/hagabaka] has joined #ruby-lang
<imperator> jorgenpt, so what? you low on disk space?
<jorgenpt> Haha, I guess not ;-)
frangiz [frangiz!~frangiz@user26.77-105-206.netatonce.net] has joined #ruby-lang
<jorgenpt> It does add 10-15MB of dependencies just for that one method, though
mkscrg [mkscrg!~mkscrg@ool-18e4f9d6.dyn.optonline.net] has joined #ruby-lang
<imperator> ok. and?
<imperator> you'll have it for all the other stuff it offers if you ever need it, too
frangiz [frangiz!~frangiz@user26.77-105-206.netatonce.net] has joined #ruby-lang
<muzone> test
<jorgenpt> tset
<pigdude> hm how do i make a hash from an array? i have some values i'm mapping
<mksm> Hash[*[a,b]]
<jorgenpt> pigdude: What's your array like? [[key, value], [key, value], ...]?
<erikh> Hash[*ary]
<pigdude> i could splat
<pigdude> let's say i have {:a=>'a', :b=>'b'} that i want to change to {:a=>'aa', :b=>'ab'}
<pigdude> Hash[*h.map { ... }.flatten] ?
<erikh> eh what
<erikh> that's not an array
<pigdude> right but i realize this will be more natural if i use a hash. and hash.map returns array
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby-lang
<erikh> yes, but you could just walk over the hash and make the modifications that way
<erikh> it'd probably be a lot faster
<pigdude> performance not a concern here
<jorgenpt> Hash[*h.map { .. }] should work, but also h.each_pair do |key, value| h[key] = 'a' + value ; end
<pigdude> i just want to say DIRS = { :sym => 'dir', :sym2 => 'dir2' } ... applying File.join(Dir.pwd, f) to each
<jorgenpt> Or something
nofxx [nofxx!~nofxx@unaffiliated/nofxx] has joined #ruby-lang
<rippa> h[key].replace "a#{value}"
<pigdude> hm this is not working
cyri_ [cyri_!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby-lang
<pigdude> how do i make a hash using Hash.new with an old hash.map, so they two are the same? I end up with weird keys if i just map
<pigdude> Hash[*{ :a => 'a', :b => 'b' }.map] => {[:a, "a"]=>[:b, "b"]}
<pigdude> oh ok i do need the flatten
<pigdude> works now
<jorgenpt> rippa: Interesting.
<jorgenpt> h.each_value do |value| value.replace "a#{value}"; end
<lianj> jorgenpt: works for strings
<jorgenpt> Yup :-)
<pigdude> Hash[*{ :a => 'a', :b => 'b' }.map { |k, v| [k, "a#{v}"] }.flatten]
<rippa> arrays and hashes have #replace too
<rippa> fun method
<pigdude> rippa, :^)
kaiwren [kaiwren!~KaiWren@122.172.37.161] has joined #ruby-lang
<pigdude> i'm working on a program called `rbsh` :^)
<pigdude> hopefully it isn't rubbish
RomyEatsDrupal [RomyEatsDrupal!~stickycak@cpe-74-64-122-182.nyc.res.rr.com] has joined #ruby-lang
* imperator makes his annual call for hashslices
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
twittard [twittard!~twittard@wc.lax.truecarcorp.com] has joined #ruby-lang
<imperator> require 'hashslice'; hash[:a, :b] = ['aa', 'bb']
<rippa> what is that sorcery
<erikh> it's a perl dinosaur feature
<erikh> nothing to see here
<imperator> erikh, bah! it's one of things i like about perl!
* erikh waves rails and pixie dust around
<erikh> imperator: :P
<rippa> is this the same as
<rippa> Hash[[:a, :b].zip ['aa', 'bb']]
<rippa> huh
<ReinH> ewwwwwww
jredville [jredville!~james.dev@c-66-235-23-17.sea.wa.customer.broadstripe.net] has joined #ruby-lang
<erikh> seriously?
<erikh> ewww?
<ReinH> like ick
<ReinH> eww
* erikh sighs
<ReinH> :)
<imperator> what?
<erikh> it's a useful feature that imo ruby should already have
<imperator> YOU WILL LOVE HASH SLICES
<erikh> or I will annoy you until you do
<imperator> erikh, i tried to get it into core, but they were busy with unicode or something
<erikh> more like funicode
<erikh> fuuuuuunicode
<erikh> hrm, ok, bbl
leonL [leonL!~leonl@CPE0024a5b652a3-CM000f21205d86.cpe.net.cable.rogers.com] has joined #ruby-lang
thrcka [thrcka!~thrcka@ip-89-102-34-33.net.upcbroadband.cz] has joined #ruby-lang
<pigdude> hm, what am i doing wrong here? http://paste.pocoo.org/show/533469/
<pigdude> oh nevermind :^(
<pigdude> i got it
whatasunnyday [whatasunnyday!~sunny@64.175.137.28] has joined #ruby-lang
darkf [darkf!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@46.118.229.0] has joined #ruby-lang
darkf_ [darkf_!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
<pigdude> this is where i'm developing `rbsh` :^) https://github.com/tmallen/rbsh
<kyrylo> No offense, but it sounds like "rubbish" to me :p
<pigdude> kyrylo, that's OK
<pigdude> kyrylo, it's a fun project. the idea of a shell you can customize with ruby sounds nice to me (i know bash very well and don't particularly like it)
<pigdude> kyrylo, and i couldn't locate a similar project
<mksm> there was rash
<mksm> or ruby-bash
<kyrylo> pigdude, what I meant to say is that it's not the best name for a project. And yes, "Ruby Shell" is really sensible name, but definitely not the best (in your case).
<shevy> pigdude only valid ruby syntax is accepted for it?
<pigdude> shevy, i'm still thinking about that. i'll probably parse as ruby except for input/output redirection, pipe, etc that people are used to
<pigdude> shevy, so bitwise OR would be \|
<pigdude> this is somewhat similar but is pure environment, also untouched for a couple years :^\ https://github.com/adamwiggins/rush
<rippa> sounds like a pain in the posterior
<pigdude> rippa, maybe. but i think i can make it simple enough
<rippa> not a pure ruby, not a bash
<rippa> some kind of twisted monstrosity
<rippa> jk
<shevy> hmm no
<pigdude> rippa, well, for instance, `cd` should be `cd` unless you have def cd
<shevy> if it would have bash-like syntax then it would be convenient
<pigdude> rippa, just like bash really
<shevy> well, you can use plenty aliases of course
<pigdude> yea
<shevy> but how to put something into background?
<shevy> in bash you append &
<pigdude> i see no reason to not replicate that
<shevy> ahhh :D
<pigdude> basically bash with ruby as scripting language :^)
<pigdude> it's a big undertaking, i'm sure i'll fail ^^
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby-lang
<shevy> well
<shevy> you'll succeed when it works on windows
<shevy> because even a crappy shell would beat cmd.exe
<mksm> cmd is awesome ... you can "cd" and "dir" ... it has it all
<mksm> :D
<shevy> what the heck is "dir" :P
<shevy> pigdude, a replacement for microsoft powershell in ruby would be nice
<rippa> dir is kinda like ls
<mksm> dir /w was the best thing in DOS
<shevy> what's the /w doing? red flash warnings?
<shevy> hmm I liked DOS back then... I could start games... ultima.exe !!!
<rippa> wide list format
<rippa> loadhigh mouse.com
<shevy> hehe
<rippa> device=c:\dos\emm386.exe ram
<rippa> dos=high,umb
<shevy> POWERFUL DOS MAGIC
<rippa> dos-fu
<rippa> aikidos
<mksm> qemm.exe!
<erikh> desqview
<erikh> ran a bbs on that and os/2
<rippa> stop stimulating my nostalgia glands
<erikh> they tingle
* imperator remembers qemm, had to have it for gaming
<pigdude> hehe cmd.exe
<pigdude> it's been years since i was stuck on Windows, but I recall Console2 was not too shabby, esp. when coupled w/ cygwin
<pigdude> i know nothing about PowerShell though
<shevy> it's a cool idea!
<pigdude> :^)
<mksm> imperator, you sure did but i have no idea what it did
<shevy> but you'd probably need an object oriented pipe in your shell
<pigdude> i'm going to make all builtins objects
<erikh> put your objects in the pipe and smoke it
<pigdude> hehe
Marco [Marco!~marco@Marco-2.Kiewit.Dartmouth.EDU] has joined #ruby-lang
codatory [codatory!~codatory@IP-216-37-19-2.nframe.net] has quit ["Bye!"]
outoftime [outoftime!~mat@ip-160-79-101-2.autorev.intellispace.net] has joined #ruby-lang
<imperator> mksm, used it to tweak memory settings mainly
ryanf [ryanf!~ryanf@5.sub-174-253-241.myvzw.com] has joined #ruby-lang
Jake232 [Jake232!~textual@5e0e5331.bb.sky.com] has joined #ruby-lang
troublem1n [troublem1n!~torbjorn@84-16-208.227.3p.ntebredband.no] has joined #ruby-lang
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
dkingofpa1 [dkingofpa1!~Adium@chihiro.xforty.com] has joined #ruby-lang
<dkingofpa1> How do I keep rdoc from automatically linking a url in a README.rdoc file?
darkf [darkf!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
benanne [benanne!~rijdier@ip-213-49-87-109.dsl.scarlet.be] has joined #ruby-lang
outoftime [outoftime!~mat@ip-160-79-101-2.autorev.intellispace.net] has joined #ruby-lang
<dreinull> how do I let a method fail on respond_to? but still execute it?
<Cool_Fire> If it fails on respond_to, that's usually an indication that you can't
<Cool_Fire> You should still be able to try and call it normally, but you'll end up with a NoMethodError
<dreinull> in that case I still want it
<Cool_Fire> Why can't you just call it normally then?
<Cool_Fire> I mean, what's stopping you from just doing object.method()
<mksm> I'm using rspec. I have for method foo and i want to run the same tests for method bar
<dreinull> ah, respond_to_missing should do
<mksm> *have tests for
<mksm> is it possible to "call" a set of tests from within a test?
Clordio [Clordio!~textual@c-174-52-72-79.hsd1.ut.comcast.net] has joined #ruby-lang
cjs226 [cjs226!~cjs226@99-61-65-242.lightspeed.austtx.sbcglobal.net] has joined #ruby-lang
<dkingofpa1> Does anybody use rdoc for README documentation? Or should I be using something else?
<shevy> dkingofpa1 dunno, I kinda keep my READMEs as "README" without any special extra formatting inside and less than 80 chars per line
<shevy> quite some use... I think README.md
<dkingofpa1> shevy: Do people use rdoc for anything?
naz [naz!~n@70.44.2.190.res-cmts.bus.ptd.net] has joined #ruby-lang
<shevy> dkingofpa1 guess so ... in other people's ruby code I often see things like
<shevy> # :nodoc:
<shevy> or like that
<shevy> :)
<dkingofpa1> shevy: So it's common to use rdoc for code, but markdown for README files? Just trying to figure out what I should be using…ruby newbie.
<burgestrand> I use YARD for documenting my code, markdown for writing articles, readmes and similar.
<burgestrand> dkingofpa1: ^
<shevy> dkingofpa1 dunno, I like markdown. I dont really use rdoc for anything though... for some reason I grew fond of writing documentation in a tutorial style
<dkingofpa1> shevy, burgestrand: thanks guys, that info helps
<Foxmaster> hi all I have a problem changing the content of a xml file, what I would like to do is set variables in the xml and use puts and write a new file where the variables is replaced with the right valus
<manveru> Foxmaster: nokogiri
skryking [skryking!~skryking@76-245-244-209.lightspeed.cicril.sbcglobal.net] has joined #ruby-lang
<Foxmaster> yeah I look at it but I simply don't understand how to do it
<shevy> my brain is not working right now
<shevy> how do I pass a block from one method to the next? http://pastie.org/3168433
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby-lang
<rue> Capture it
macmartine [macmartine!~macmartin@069-064-227-254.pdx.net] has joined #ruby-lang
<shevy> hmm
<lianj> shevy: &blk
<shevy> ok!
<manveru> Foxmaster: well, if you provide an example input and what you'd like to change, maybe we can help you :)
RomyEatsDrupal [RomyEatsDrupal!~stickycak@cpe-69-203-115-155.nyc.res.rr.com] has joined #ruby-lang
benanne [benanne!~rijdier@ip-213-49-87-140.dsl.scarlet.be] has joined #ruby-lang
<manveru> doc = Nokogiri::XML('<xml><sucks><hard>yay!</hard></sucks></xml>'); doc.at('/xml/sucks/hard').inner_html = 'boo!'; puts doc
cylence [cylence!~cylence@68.25.78.77] has joined #ruby-lang
imperator [imperator!~Daniel@63-225-247-192.hlrn.qwest.net] has quit ["Leaving"]
<shevy> seems to work now http://pastie.org/3168433
Mchl [Mchl!~Mchl@h1881165560.rev.rootvps.pl] has joined #ruby-lang
virunga [virunga!~virunga@151.64.57.94] has joined #ruby-lang
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
headius [headius!~headius@75.107.48.100] has joined #ruby-lang
<shevy> hmmmm or perhaps not
<shevy> oh no, it does
<shevy> I was calling the same method recursively in other code. :/ fixed that by using ::
spleeze [spleeze!~Spleeze@173-15-131-114-BusName-Philadelphia.hfc.comcastbusiness.net] has joined #ruby-lang
arooni-mobile [arooni-mobile!~arooni-mo@187.150.37.38] has joined #ruby-lang
jmontross [jmontross!~Adium@68-233-216-82.static-ip.telepacific.net] has joined #ruby-lang
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby-lang
confounds [confounds!~confounds@216.209.34.66] has joined #ruby-lang
Clordio [Clordio!~textual@c-174-52-72-79.hsd1.ut.comcast.net] has joined #ruby-lang
boxmo [boxmo!~box@177.106.59.23] has joined #ruby-lang
twittard [twittard!~twittard@wc.lax.truecarcorp.com] has joined #ruby-lang
darkf_ [darkf_!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
arooni-mobile [arooni-mobile!~arooni-mo@187.150.37.38] has joined #ruby-lang
solars [solars!~solars@mk089144206222.a1.net] has joined #ruby-lang
s0ber [s0ber!~s0ber@114-36-230-145.dynamic.hinet.net] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-230-145.dynamic.hinet.net] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-230-145.dynamic.hinet.net] has joined #ruby-lang
Heimidal_ [Heimidal_!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-230-145.dynamic.hinet.net] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-230-145.dynamic.hinet.net] has joined #ruby-lang
davidw [davidw!~davidw@apache/committer/davidw] has joined #ruby-lang
headius [headius!~headius@mobile-166-147-100-097.mycingular.net] has joined #ruby-lang
dkingofpa [dkingofpa!~Adium@pool-74-99-175-91.hrbgpa.fios.verizon.net] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
dejongge [dejongge!~jonke@pD9E0C04D.dip0.t-ipconnect.de] has joined #ruby-lang
tenderlo_ [tenderlo_!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
apeiros_ [apeiros_!~apeiros@77-58-113-31.dclient.hispeed.ch] has joined #ruby-lang
tekin [tekin!~tekin@cpc8-with5-2-0-cust208.1-4.cable.virginmedia.com] has joined #ruby-lang
butchanton [butchanton!~butchanto@vpn-sanfran.exacttarget.com] has joined #ruby-lang
jmontross [jmontross!~Adium@static-96-236-65-137.snfcca.dsl-w.verizon.net] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@202.146.7.239] has joined #ruby-lang
Sailias_ [Sailias_!~jonathan@70.25.1.87] has joined #ruby-lang
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
Sailias__ [Sailias__!~jonathan@s72-38-77-178.static.comm.cgocable.net] has joined #ruby-lang
alessio_rocco [alessio_rocco!~alessio@94.165.143.33] has joined #ruby-lang
Carmivore [Carmivore!~carmivmor@ec2-174-129-65-235.compute-1.amazonaws.com] has joined #ruby-lang
saLOUt_ [saLOUt_!~rriemann@91-65-223-29-dynip.superkabel.de] has joined #ruby-lang
postmodern [postmodern!~postmoder@c-71-237-178-98.hsd1.or.comcast.net] has joined #ruby-lang
nofxx [nofxx!~nofxx@177.106.59.23] has joined #ruby-lang
nofxx [nofxx!~nofxx@unaffiliated/nofxx] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
jmontross [jmontross!~Adium@static-96-236-65-137.snfcca.dsl-w.verizon.net] has joined #ruby-lang
<zenspider> sup my bitches?
<Cool_Fire> Writing some Ruby.
Carmivore [Carmivore!~carmivmor@ec2-107-22-137-12.compute-1.amazonaws.com] has joined #ruby-lang
uniqanomaly [uniqanomaly!~ua@dynamic-78-8-84-65.ssp.dialog.net.pl] has joined #ruby-lang
Carmivore [Carmivore!~carmivmor@ec2-50-19-167-157.compute-1.amazonaws.com] has joined #ruby-lang
mztriz [mztriz!~mztriz@nkugateway.nku.edu] has joined #ruby-lang
<manveru> writing some ruby that writes me some xml.
igaiga [igaiga!~igaiga@softbank126114222116.bbtec.net] has joined #ruby-lang
<zenspider> writing some ruby that writes some ruby
spuk [spuk!~spuk@187.65.179.45] has joined #ruby-lang
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
<shevy> writing a robot that writes ruby instead of me
<zenspider> I'd pay good money for one of those
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
igaiga_ [igaiga_!~igaiga@softbank126114126236.bbtec.net] has joined #ruby-lang
uniqanomaly_ [uniqanomaly_!~ua@dynamic-78-8-83-218.ssp.dialog.net.pl] has joined #ruby-lang
<mksm> shevy: if the robot starts writing another robot, its time to head for the bunker
dreinull [dreinull!~dreinull@ip-78-94-220-161.unitymediagroup.de] has joined #ruby-lang
Weems [Weems!~the@nat.resnet.mc.edu] has joined #ruby-lang
Weems [Weems!~the@unaffiliated/weems] has joined #ruby-lang
cynosure [cynosure!~cynosure@centrumnet.hu] has joined #ruby-lang
Sailias__ [Sailias__!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby-lang
imperator [imperator!~Daniel@63-225-247-192.hlrn.qwest.net] has joined #ruby-lang
RomD`` [RomD``!~Roman@nrbg-4d076392.pool.mediaWays.net] has joined #ruby-lang
<shevy> yeah mksm
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
darkf [darkf!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
mdel__ [mdel__!~mdel@pool-71-175-17-16.phlapa.fios.verizon.net] has joined #ruby-lang
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
darkf_ [darkf_!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
uniqanomaly_ [uniqanomaly_!~ua@dynamic-78-8-81-252.ssp.dialog.net.pl] has joined #ruby-lang
<shevy> when you have many '/' in a regex, and you don't want to type \/ many times in the regex, what was the other way to denote this?
<drbrain> %r%a/b/c%m
<shevy> cool thanks!
toretore [toretore!~toretore@crr06-3-82-231-12-81.fbx.proxad.net] has joined #ruby-lang
jmontross [jmontross!~Adium@static-96-236-65-137.snfcca.dsl-w.verizon.net] has joined #ruby-lang