Topic for #ruby-lang is now Ruby 1.9.3p0: http://ruby-lang.org | Paste >3 Lines of Text on http://pastie.org
senj [senj!~senj@173-12-176-54-oregon.hfc.comcastbusiness.net] has joined #ruby-lang
mark_azevedo [mark_azevedo!~mark_azev@50-78-101-1-static.hfc.comcastbusiness.net] has joined #ruby-lang
livinded [livinded!~lolwut@pool-108-23-242-132.lsanca.fios.verizon.net] has joined #ruby-lang
naz [naz!~n@70.44.2.190.res-cmts.bus.ptd.net] has joined #ruby-lang
livinded_ [livinded_!~lolwut@pool-108-23-242-132.lsanca.fios.verizon.net] has joined #ruby-lang
spleeze [spleeze!~Spleeze@173-15-131-114-BusName-Philadelphia.hfc.comcastbusiness.net] has joined #ruby-lang
jredville [jredville!~james.dev@c-66-235-23-17.sea.wa.customer.broadstripe.net] has joined #ruby-lang
hahuang65 [hahuang65!~hahuang65@c-24-23-128-23.hsd1.ca.comcast.net] has joined #ruby-lang
twittard_ [twittard_!~twittard@wc.lax.truecarcorp.com] has joined #ruby-lang
dous [dous!~dous@unaffiliated/dous] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
dejongge [dejongge!~jonke@pD9E0DD32.dip0.t-ipconnect.de] has joined #ruby-lang
<zenspider> I like %r%...% because % still has / in it :P
<andrewvos> That went right over my head
<andrewvos> .
takaokouji [takaokouji!~takaokouj@2001:268:306:1:225:bcff:fedc:e1fe] has joined #ruby-lang
yfeldblum [yfeldblum!~Jay@c-98-218-48-253.hsd1.md.comcast.net] has joined #ruby-lang
<andrewvos> rue:
<andrewvos> if(this)
<andrewvos> {
<andrewvos> this
<andrewvos> }
<erikh> damn straight
outoftime [outoftime!~mat@ip-160-79-101-2.autorev.intellispace.net] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
zwevans [zwevans!~zwevans@99-127-40-79.lightspeed.rlghnc.sbcglobal.net] has joined #ruby-lang
MistyM [MistyM!~MistyM@50.72.70.192] has joined #ruby-lang
Carnage\ [Carnage\!~carnage@84-75-163-211.dclient.hispeed.ch] has joined #ruby-lang
neoesque [neoesque!~neoesque@210.59.147.232] has joined #ruby-lang
voker57 [voker57!~voker57@kvirc/developer/Voker57] has joined #ruby-lang
Marco [Marco!~marco@Marco-2.Kiewit.Dartmouth.EDU] has joined #ruby-lang
postmodern_ [postmodern_!~postmoder@c-71-237-178-98.hsd1.or.comcast.net] has joined #ruby-lang
<zenspider> rdoc_osx_dictionary 2.0.1 released
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.46] has joined #ruby-lang
hagabaka [hagabaka!~hagabaka@unaffiliated/hagabaka] has joined #ruby-lang
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.42] has joined #ruby-lang
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
spleeze [spleeze!~Spleeze@173-15-131-114-BusName-Philadelphia.hfc.comcastbusiness.net] has joined #ruby-lang
havenn [havenn!~skipper@216.3.99.206] has joined #ruby-lang
dbernar1 [dbernar1!~dbernar1@S0106c03f0ed8678b.wp.shawcable.net] has joined #ruby-lang
<dbernar1> I have a method with this signature: def initialize( domain_name )
<dbernar1> WHen I run WordPressInstaller.new 'www.example.com'
<dbernar1> I get ArgumentError: wrong number of arguments (0 for 1)
<dbernar1> Why?
<injekt> dbernar1: can I see the exact code you're running?
<dbernar1> Which part?
<dbernar1> I did irb:
<dbernar1> require, WordPressInstaller.new 'www.example.com'
<dbernar1> That's the whole driver
darkf_ [darkf_!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
<dbernar1> Actually, that is not true
<injekt> right, except that exact line would be a syntax error
<injekt> so what exactly did you do?
<dbernar1> So I'll paste the irb interaction
<dbernar1> Maybe it is cause I am including the Mom module into the global Object
<dbernar1> Nah, I tried without that
<injekt> the error isn't with your code
<injekt> it's in the gem you're using
<injekt> from /home/dbernar1/.rvm/gems/ruby-1.9.2-p290@mom-0.0.1/gems/mom-0.0.9/lib/mom/word_press_installer.rb:119:in `compose_username_for_domain'
<dbernar1> OMG, I'm an idiot
<dbernar1> Yeah, just noticed that the trace is longer there
<injekt> the first item in the stack trace is the first place you should look
<dbernar1> Thank you
SuperTaz_work [SuperTaz_work!~supertaz_@38.99.52.59] has joined #ruby-lang
arooni-mobile [arooni-mobile!~arooni-mo@187.150.37.38] has joined #ruby-lang
<dbernar1> Cucumber doesn't spit out the whole trace, I think
<injekt> yuck cucumber
<dbernar1> Not too bad on sushi
<injekt> :)
<injekt> I'd certainly much rather eat it than write it
<dbernar1> Do you do automated testing?
<injekt> I write all my tests with minitest/unit and minitest/autorun runs them all for me
<dbernar1> I'll give it a shot if I get a chance, thanks.
MistyM [MistyM!~MistyM@50.72.70.192] has joined #ruby-lang
13WAAJ28K [13WAAJ28K!~replore@203.152.213.161.static.zoot.jp] has joined #ruby-lang
tomzx [tomzx!~tomzx@dsl-156-68.aei.ca] has joined #ruby-lang
RomyEatsDrupal [RomyEatsDrupal!~stickycak@pool-74-101-80-179.nycmny.east.verizon.net] has joined #ruby-lang
bglusman [bglusman!~bglusman@c-68-80-200-61.hsd1.pa.comcast.net] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@c-67-165-197-126.hsd1.co.comcast.net] has joined #ruby-lang
arooni-mobile [arooni-mobile!~arooni-mo@187.150.37.38] has joined #ruby-lang
RomyEatsDrupal [RomyEatsDrupal!~stickycak@pool-74-101-80-179.nycmny.east.verizon.net] has joined #ruby-lang
mdel [mdel!~mdel@pool-71-175-17-16.phlapa.fios.verizon.net] has joined #ruby-lang
RomyEatsDrupal [RomyEatsDrupal!~stickycak@pool-74-101-80-179.nycmny.east.verizon.net] has joined #ruby-lang
arooni-mobile [arooni-mobile!~arooni-mo@187.150.37.38] has joined #ruby-lang
bglusman_ [bglusman_!~bglusman@50.128.74.90] has joined #ruby-lang
RomyEatsDrupal [RomyEatsDrupal!~stickycak@pool-74-101-80-179.nycmny.east.verizon.net] has joined #ruby-lang
imperator [imperator!~Daniel@63-225-247-192.hlrn.qwest.net] has quit ["Leaving"]
bglusman [bglusman!~bglusman@50.128.74.90] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
twittard [twittard!~twittard@wc.lax.truecarcorp.com] has joined #ruby-lang
wingless2434 [wingless2434!~chris@c-174-61-224-227.hsd1.wa.comcast.net] has joined #ruby-lang
wingless2434 [wingless2434!~chris@c-174-61-224-227.hsd1.wa.comcast.net] has joined #ruby-lang
jbwiv__ [jbwiv__!~jb@cpe-098-026-172-101.triad.res.rr.com] has joined #ruby-lang
<jbwiv__> guys, if I understand Dir's docs correctly, Dir.glob("**", File::FNM_DOTMATCH) should slurp all directories recursively, but it doesn't seem to work on my end unless I change "**" to "**/*". what am I misunderstanding?
dejongge [dejongge!~jonke@pD9E0DD32.dip0.t-ipconnect.de] has joined #ruby-lang
dejongge [dejongge!~jonke@pD9E0DD32.dip0.t-ipconnect.de] has joined #ruby-lang
arooni-mobile__ [arooni-mobile__!~arooni-mo@187.150.43.91] has joined #ruby-lang
Oloryn_lt1 [Oloryn_lt1!~Oloryn@home.benshome.net] has joined #ruby-lang
brianpWins [brianpWins!~brianpWin@S01060014bf8930ea.vc.shawcable.net] has joined #ruby-lang
RomyEatsDrupal [RomyEatsDrupal!~stickycak@pool-74-101-80-179.nycmny.east.verizon.net] has joined #ruby-lang
dfr|mac [dfr|mac!~dfr|work@ool-18baf7e7.dyn.optonline.net] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@c-98-203-41-91.hsd1.fl.comcast.net] has joined #ruby-lang
bglusman [bglusman!~bglusman@c-71-224-192-35.hsd1.pa.comcast.net] has joined #ruby-lang
krz [krz!~foobar@unaffiliated/krz] has joined #ruby-lang
dejongge [dejongge!~jonke@pD9E0DD32.dip0.t-ipconnect.de] has joined #ruby-lang
jbwiv__ [jbwiv__!~jb@cpe-098-026-172-101.triad.res.rr.com] has joined #ruby-lang
<jbwiv__> anyone know if there's a way to get Dir.glob to return results before the entire directory is parsed?
<darkf> why?
mkscrg [mkscrg!~mkscrg@ool-18e4f9d6.dyn.optonline.net] has joined #ruby-lang
diegoviola [diegoviola!~diego@host-1-211.b15.cvc.com.py] has joined #ruby-lang
mdel [mdel!~mdel@pool-71-175-17-16.phlapa.fios.verizon.net] has joined #ruby-lang
<Cool_Fire> I would guess so he can start processing results asynchronously.
hagabaka [hagabaka!~hagabaka@cblmdm24-53-178-92.buckeyecom.net] has joined #ruby-lang
hagabaka [hagabaka!~hagabaka@unaffiliated/hagabaka] has joined #ruby-lang
ujihisa [ujihisa!~ujihisa@64-46-24-16.dyn.novuscom.net] has joined #ruby-lang
CamonZ [CamonZ!~CamonZ@200.82.166.49] has joined #ruby-lang
<jbwiv__> Cool_Fire, darkf : exactly. the directory has 16,000,000 files in it. I'd rather not wait for ruby to crawl the entire directory before starting processing
<Cool_Fire> I suspect you'll have to do it manually though
<Cool_Fire> Fire off threads for each subdirectory
<Cool_Fire> Or something to that effect
<Cool_Fire> Or for files a* trough e* and then f* trough j* or something
flip_digits [flip_digits!~textual@c-76-122-14-228.hsd1.fl.comcast.net] has joined #ruby-lang
<Cool_Fire> I'm not too familiar with Dir.* though
<jbwiv__> Cool_Fire, ok, thanks
twittard [twittard!~twittard@cpe-76-169-74-39.socal.res.rr.com] has joined #ruby-lang
x0F__ [x0F__!~x0F@unaffiliated/x0f] has joined #ruby-lang
whatasunnyday [whatasunnyday!~sunny@c-24-130-81-47.hsd1.ca.comcast.net] has joined #ruby-lang
corsican [corsican!corsican@50-79-33-41-static.hfc.comcastbusiness.net] has joined #ruby-lang
hexo [hexo!hexo@hackerspace.base48.tk] has joined #ruby-lang
takaokouji [takaokouji!~takaokouj@2001:268:306:1:225:bcff:fedc:e1fe] has joined #ruby-lang
RomyEatsDrupal [RomyEatsDrupal!~stickycak@64.134.242.47] has joined #ruby-lang
rippa [rippa!~splitta@85.158.54.234] has joined #ruby-lang
RomyEatsDrupal [RomyEatsDrupal!~stickycak@64.134.242.47] has joined #ruby-lang
<jbwiv__> I'm trying to write a script to open 16M files at once to test system limits. I'm looking through a dir with 16M files, calling File.open on each and appending the returned object. I do not issue a close, nor do I pass a block to open. I thought this would keep the file open until the script was finished, but it appears that ruby is automatically closing them in some way (I'm on linux, so I'm monitoring the open file count in /proc/sy
<jbwiv__> s/fs/file-nr). anyone know how I can prevent this autoclose?
m0nki3 [m0nki3!~c0wCr@gateway/tor-sasl/m4tastati] has joined #ruby-lang
Weems [Weems!~the@nat.resnet.mc.edu] has joined #ruby-lang
Weems [Weems!~the@unaffiliated/weems] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
andrewhl [andrewhl!~andrew@24.246.14.26] has joined #ruby-lang
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
rushed [rushed!~rushed@cpe-70-116-11-35.austin.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
<lsegal> jbwiv__ you want your OS to hand you 16M file handles? i don't even know if that's possible
<jbwiv__> lsegal, yep, sure do ;-)
<jbwiv__> from what i understand it's a matter of setting the appropriate limits on the filesystem and the kernel
<lsegal> and how many are being used at peak of your script?
<jbwiv__> lsegal, it only gets up to around 4000 or so. however, I changed to using tempfile (require 'tempfile') and it seems to work
<jbwiv__> not sure why, but it dos
<jbwiv__> does
<lsegal> interesting
igotnolegs [igotnolegs!~igotnoleg@75-162-83-166.slkc.qwest.net] has joined #ruby-lang
<jbwiv__> lsegal, oh well. I'll battle it tomorrow. Off to bed. thank for your help
<lsegal> didn't really help, but night :)
Pip [Pip!~Pip@176.214.13.82] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
RomyEatsDrupal [RomyEatsDrupal!~stickycak@64.134.242.47] has joined #ruby-lang
mkscrg [mkscrg!~mkscrg@ool-18e4f9d6.dyn.optonline.net] has joined #ruby-lang
hallucinations [hallucinations!~hallucina@59.144.55.130] has joined #ruby-lang
hallucinations [hallucinations!~hallucina@111.93.148.118] has joined #ruby-lang
dfr|mac_ [dfr|mac_!dfr|work@nat/google/x-bqcctfxzjhrrrevp] has joined #ruby-lang
pritesh [pritesh!~pritesh@115.248.175.50] has joined #ruby-lang
darkf [darkf!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
priteshjain [priteshjain!~priteshja@115.248.175.50] has joined #ruby-lang
Sailias__ [Sailias__!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby-lang
muzone [muzone!~holla@84-16-208.227.3p.ntebredband.no] has quit [#ruby-lang]
muzone [muzone!~holla@84-16-208.227.3p.ntebredband.no] has joined #ruby-lang
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby-lang
gianlucadv [gianlucadv!~gianlucad@109.53.144.254] has joined #ruby-lang
mdel__ [mdel__!~mdel@pool-71-175-17-16.phlapa.fios.verizon.net] has joined #ruby-lang
dreinull [dreinull!~dreinull@ip-78-94-220-161.unitymediagroup.de] has joined #ruby-lang
indeterminate [indeterminate!~sei@user-3c2h3m6.cable.mindspring.com] has joined #ruby-lang
RomyEatsDrupal [RomyEatsDrupal!~stickycak@cpe-69-203-115-155.nyc.res.rr.com] has joined #ruby-lang
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
werwolf [werwolf!~llakey@174-127-47-94.static-ip.telepacific.net] has joined #ruby-lang
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
darkf_ [darkf_!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
dfr|mac [dfr|mac!~dfr|work@ool-18baf7e7.dyn.optonline.net] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby-lang
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.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
|Vargas| [|Vargas|!~luke@host17-129-dynamic.54-79-r.retail.telecomitalia.it] has joined #ruby-lang
|Vargas| [|Vargas|!~luke@pdpc/supporter/profesional/vargas] has joined #ruby-lang
tomzx [tomzx!~tomzx@dsl-156-68.aei.ca] has joined #ruby-lang
lsegal` [lsegal`!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
artOfWar [artOfWar!~artofwar@108-205-201-30.lightspeed.sntcca.sbcglobal.net] has joined #ruby-lang
jorgenpt [jorgenpt!~jorgenpt@arachnophobia.daxnet.org] has joined #ruby-lang
<shevy> how to check the permissions of a file in ruby?
<epitron_> mode?
<shevy> oh yeah, thanks
yumike [yumike!~yumike@213.154.168.130] has joined #ruby-lang
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
JohnBat26 [JohnBat26!~Eugene@89.175.77.79] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@host.62.65.124.23.bitcom.se] has joined #ruby-lang
artOfWar [artOfWar!~artofwar@108.205.201.30] has joined #ruby-lang
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.44] has joined #ruby-lang
thone_ [thone_!~thone@g230185109.adsl.alicedsl.de] has joined #ruby-lang
burgestrand1 [burgestrand1!~burgestra@host.62.65.124.23.bitcom.se] has joined #ruby-lang
ujihisa [ujihisa!~ujihisa@64-46-24-16.dyn.novuscom.net] has joined #ruby-lang
solars [solars!~solars@clnet-kmu02-090.ikbnet.co.at] has joined #ruby-lang
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby-lang
heftig [heftig!~Jan@archlinux/developer/heftig] has joined #ruby-lang
eban [eban!~eban@www2371u.sakura.ne.jp] has joined #ruby-lang
jxie [jxie!~jxie@115.197.89.123] has joined #ruby-lang
dc5ala [dc5ala!~dc5ala@stgt-5f709949.pool.mediaWays.net] has joined #ruby-lang
ujihisa [ujihisa!~ujihisa@64-46-24-16.dyn.novuscom.net] has joined #ruby-lang
Locke23rus [Locke23rus!~quassel@188.162.162.83] has joined #ruby-lang
roadkith [roadkith!~kith@217.5.145.2] has joined #ruby-lang
roadkith [roadkith!~kith@unaffiliated/kith] has joined #ruby-lang
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@2.66.233.221.mobile.tre.se] has joined #ruby-lang
thrcka [thrcka!thrcka@nat/redhat/x-ipchnafsndwnlwjs] has joined #ruby-lang
cylence [cylence!~cylence@c-98-248-41-184.hsd1.ca.comcast.net] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@124-168-218-42.dyn.iinet.net.au] has joined #ruby-lang
frangiz [frangiz!~frangiz@user26.77-105-206.netatonce.net] has joined #ruby-lang
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
thrcka [thrcka!thrcka@nat/redhat/x-uhjiqtfrkdograuv] has joined #ruby-lang
molgrew [molgrew!~bozo20@85.182.139.18] has joined #ruby-lang
saLOUt [saLOUt!~rriemann@naqasl.physik.hu-berlin.de] has joined #ruby-lang
<rue> andrewvos: Sorry, that's false
xjonc [xjonc!~xjonc@afqa105.neoplus.adsl.tpnet.pl] has joined #ruby-lang
shevy [shevy!~shevy@178-191-248-227.adsl.highway.telekom.at] has joined #ruby-lang
zmack [zmack!~zmack@89.120.101.51] has joined #ruby-lang
davidw [davidw!~davidw@host228-251-static.95-94-b.business.telecomitalia.it] has joined #ruby-lang
gnufied [gnufied!~gnufied@122.172.224.153] has joined #ruby-lang
|Vargas| [|Vargas|!~luke@pdpc/supporter/profesional/vargas] has joined #ruby-lang
cyri_ [cyri_!~cyri_@236.200.72.86.rev.sfr.net] has joined #ruby-lang
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby-lang
yxhuvud [yxhuvud!mongo@h-49-97.a212.priv.bahnhof.se] has joined #ruby-lang
beiter [beiter!~beiter@manz-5f74a3dc.pool.mediaWays.net] has joined #ruby-lang
zmack_ [zmack_!~zmack@89.120.101.51] has joined #ruby-lang
gokulnath [gokulnath!~gokulnath@115.111.177.122] has joined #ruby-lang
zmack [zmack!~zmack@213.233.85.1] has joined #ruby-lang
tcurdt [tcurdt!~tcurdt@p5B03DD21.dip.t-dialin.net] has joined #ruby-lang
krz [krz!~foobar@unaffiliated/krz] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
turboladen [turboladen!~kvirc@12.104.144.2] has joined #ruby-lang
jxie [jxie!~jxie@115.197.81.76] has joined #ruby-lang
jxie [jxie!~jxie@115.198.161.223] has joined #ruby-lang
<andrewvos> rue: False.
gianlucadv [gianlucadv!~gianlucad@st-dellaved.statistica.unimib.it] has joined #ruby-lang
michael_mbp [michael_mbp!~Marin@62.215.214.4] has joined #ruby-lang
tekin [tekin!~tekin@cpc8-with5-2-0-cust208.1-4.cable.virginmedia.com] has joined #ruby-lang
jwollert [jwollert!~jwollert@rkh.im] has joined #ruby-lang
jayeola [jayeola!~jmaclean@ldn-office.youdevise.com] has joined #ruby-lang
coderrr [coderrr!~steve@li335-154.members.linode.com] has joined #ruby-lang
<coderrr> who wants to see a bug
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby-lang
<molgrew> a humorous one?
<heftig> an edible one?
<andrewvos> A REAL one?
jwollert [jwollert!~jwollert@rkh.im] has joined #ruby-lang
Sailias__ [Sailias__!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby-lang
lorenzo_ [lorenzo_!~quassel@217.33.106.3] has joined #ruby-lang
voker57_ [voker57_!~voker57@128-70-59-42.broadband.corbina.ru] has joined #ruby-lang
lake [lake!~lake@li71-228.members.linode.com] has joined #ruby-lang
yxhuvud [yxhuvud!mongo@h-49-97.a212.priv.bahnhof.se] has joined #ruby-lang
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby-lang
dave_miles [dave_miles!~davemiles@gatek.thls.bbc.co.uk] has joined #ruby-lang
davidw [davidw!~davidw@apache/committer/davidw] has joined #ruby-lang
charper [charper!u1691@gateway/web/irccloud.com/x-dartfulqbeinhyct] has joined #ruby-lang
mantono [mantono!~mantono@83.251.126.234] has joined #ruby-lang
dkannan [dkannan!u480@gateway/web/irccloud.com/x-apckxkefweksftpg] has joined #ruby-lang
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.47] has joined #ruby-lang
<dkannan> had a question on arrays
<dkannan> there is an array with four elements
<dkannan> arr[4,0] returns a blank array but arr[5.0] is nil
heftig [heftig!~Jan@gw-2s00.inf.fh-bonn-rhein-sieg.de] has joined #ruby-lang
<molgrew> what is the question?
<kalleth> dkannan: i don't see a question, i see as intended array logic
<dkannan> kalleth: where is it defined in the rubyspec
<kalleth> dkannan: [1,2,3,4] , arr[0] = 1, arr[1] = 2, arr[2] = 3, arr[3] = 4
<dkannan> also arr[4] and arr[5] is both nil
<kalleth> thats because arr doesn't have an index 4 or 5
<kalleth> it has indexes 0, 1, 2, 3
tekin [tekin!~tekin@cpc8-with5-2-0-cust208.1-4.cable.virginmedia.com] has joined #ruby-lang
<dkannan> kalleth: ok. but arr[4,0] is [] but arr[5,0] is nil
<dkannan> kalleth: in that case arr[4,0] should also be nil ?
dous_ [dous_!~dous@cm171.sigma67.maxonline.com.sg] has joined #ruby-lang
<molgrew> those can't be indexes then
<dkannan> molgrew: 4 and 5 are both invalid indexes
<molgrew> yes
<kalleth> ok, i see his point, molgrew, I don't know the answer though
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
<dkannan> molgrew: but arr[4,0] gives an empty array but arr[5,0] gives nil
<kalleth> molgrew: http://pastie.org/3171709
<kalleth> he's asking what is the difference between line 5 and line 7
<kalleth> in that passing arr[4] (invalid index) returns nil, but passing arr[4,0] returns []
<kalleth> but arr[5,0] (just another invalid index) does return nil
<molgrew> the 4 is treated as an index to a spot where array elements can go in one case, and in the other case it's treated as something else
<kalleth> ah, ok
<dkannan> molgrew: guard variable ?
<kalleth> so because [4] is the next element in the array an index can go into, it is still 'looked at' for the purposes of a x,len
<molgrew> the right of the last array spot
<molgrew> just before the end of the array
<molgrew> like with a fence [ 1 | 2 | 3 <this space> ]
zmack [zmack!~zmack@89.120.101.51] has joined #ruby-lang
<molgrew> the inbetweens
gix [gix!~gix@e180006200.adsl.alicedsl.de] has joined #ruby-lang
<dkannan> :-)
<dkannan> ok makes sense
<dkannan> but why not have nil
<molgrew> I would guess some other language did it like this before
<dkannan> then i can use while(false)
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
<dkannan> coderrr: works for me on 1.9.2-p180
<coderrr> dkannan, i dont think you looked closely enough at the bug
<coderrr> there are different ruby versions
<dkannan> oh ok
sush24 [sush24!~suhas@59.96.205.111] has joined #ruby-lang
<sush24> hi... is there a way I can store objects in a sqlite db or something and easily invoke it back when I need it?
<sush24> library perhaps?
jasiek [jasiek!~jps@sanepid.org] has joined #ruby-lang
mhi^ [mhi^!~mhi@dslb-178-008-044-235.pools.arcor-ip.net] has joined #ruby-lang
mhi^_ [mhi^_!~mhi@dslb-188-102-166-235.pools.arcor-ip.net] has joined #ruby-lang
sush24 [sush24!~suhas@59.96.43.154] has joined #ruby-lang
<rue> andrewvos: :D
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
heftig [heftig!~Jan@archlinux/developer/heftig] has joined #ruby-lang
malev [malev!~malev@190.210.138.237] has joined #ruby-lang
uniqanomaly [uniqanomaly!~ua@dynamic-78-8-81-252.ssp.dialog.net.pl] has joined #ruby-lang
dbernar1 [dbernar1!~dbernar1@S0106c03f0ed8678b.wp.shawcable.net] has joined #ruby-lang
tomzx [tomzx!~tomzx@dsl-156-68.aei.ca] has joined #ruby-lang
dkingofpa [dkingofpa!~Adium@chihiro.xforty.com] has joined #ruby-lang
tommyvyo [tommyvyo!~tommyvyo@38.123.129.115] has joined #ruby-lang
<shevy> hmm say I have 10 .rb files with 10 classes. I want to find out the source code of a method called "foobar" (def foobar;puts 'test';end) - other than grepping, is there some way to do that kind of introspection?
<shevy> they are all part of the same module namespace
<heftig> shevy: method(:foobar).source_location
<shevy> heftig cool thanks
jensn [jensn!~Jens@io.fysik.lu.se] has joined #ruby-lang
Foxmaster [Foxmaster!~root@c-83-219-199-232.cust.bredband2.com] has joined #ruby-lang
boodle [boodle!~boodle@174.46.129.34] has joined #ruby-lang
yfeldblum [yfeldblum!~Jay@pool-71-246-76-76.bltmmd.east.verizon.net] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@host-208-68-238-122.biznesshosting.net] has joined #ruby-lang
<vereteran> is there any memoization modules in standard library? i know there are couple of gems, but i don't really need it that much to add more deps
robbrit [robbrit!~rob@38.108.76.250] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
cjs226 [cjs226!~cjs226@rrcs-71-40-79-154.sw.biz.rr.com] has joined #ruby-lang
ascarter [ascarter!~ascarter@68.166.55.114] has joined #ruby-lang
chrismcg [chrismcg!~chrismcg@pdpc/supporter/active/chrismcg] has joined #ruby-lang
RomD [RomD!~Roman@nrbg-4d076392.pool.mediaWays.net] has joined #ruby-lang
<injekt> vereteran: no, it's pretty easy to add yourself though, depending on the situation
<vereteran> injekt, yeah, already implemented dead simple memoization myself
<injekt> lots of ||= :)
<andrewvos> rue: :|
bglusman [bglusman!~bglusman@c-68-80-200-61.hsd1.pa.comcast.net] has joined #ruby-lang
dejongge [dejongge!~jonke@pD9E0DD32.dip0.t-ipconnect.de] has joined #ruby-lang
tcurdt [tcurdt!~tcurdt@p5B03DD21.dip.t-dialin.net] has quit [#ruby-lang]
<andrewvos> Can't believe this was closed https://github.com/rue/onetruebracestyle.com/pull/1
<injekt> haha
<injekt> yuck @ line breaks
eggman2001 [eggman2001!~shig@user-387hpcb.cable.mindspring.com] has joined #ruby-lang
<eggman2001> hello, what's the syntax if I want to do something 10 times?
<injekt> 10.times { ... }
<eggman2001> ah okay, thanks
rushed [rushed!~rushed@99-73-225-9.lightspeed.austtx.sbcglobal.net] has joined #ruby-lang
toretore [toretore!~toretore@crr06-3-82-231-12-81.fbx.proxad.net] has joined #ruby-lang
niklasb [niklasb!~codeslay0@p5B3109C8.dip0.t-ipconnect.de] has joined #ruby-lang
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby-lang
igaiga [igaiga!~igaiga@softbank126015088017.bbtec.net] has joined #ruby-lang
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby-lang
empity [empity!~user@mail2.xype.com] has joined #ruby-lang
slyphon [slyphon!~weechat@pool-96-224-232-158.nycmny.fios.verizon.net] has joined #ruby-lang
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
dfr|mac [dfr|mac!~dfr|work@ool-18baf7e7.dyn.optonline.net] has joined #ruby-lang
JEG2 [JEG2!~JEG2@ip72-198-103-217.ok.ok.cox.net] has joined #ruby-lang
MistyM [MistyM!~mistym@50.museumforhumanrights.com] has joined #ruby-lang
sora_h [sora_h!~sora_h@mayfield.privs.net] has joined #ruby-lang
Marco [Marco!~marco@Marco-2.Kiewit.Dartmouth.EDU] has joined #ruby-lang
S1kx [S1kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby-lang
S1kx [S1kx!~S1kx@pdpc/supporter/monthlybyte/s1kx] has joined #ruby-lang
alessio_rocco [alessio_rocco!~alessio@176.32.21.35] has joined #ruby-lang
leonL [leonL!~leonl@CPE0024a5b652a3-CM000f21205d86.cpe.net.cable.rogers.com] has joined #ruby-lang
outoftime [outoftime!~mat@ip-160-79-101-2.autorev.intellispace.net] has joined #ruby-lang
rippa [rippa!~rippa@93-181-216-59.adsl.yaroslavl.ru] has joined #ruby-lang
zmack_ [zmack_!~zmack@89.120.101.51] has joined #ruby-lang
dr0id [dr0id!~andy@unaffiliated/dr0id] has joined #ruby-lang
slyphon_ [slyphon_!~weechat@unaffiliated/slyphon] has joined #ruby-lang
Sailias__ [Sailias__!~jonathan@bas8-toronto01-1177860301.dsl.bell.ca] has joined #ruby-lang
<shevy> my classes tend to become too big :(
confounds [confounds!~confounds@CPE78cd8e667600-CM78cd8e6675fd.cpe.net.cable.rogers.com] has joined #ruby-lang
<Cool_Fire> shevy: how big is too big?
<shevy> Cool_Fire hmm... the class in question, including comments and newlines, has 330 lines
<Cool_Fire> That's not too big imo
<Cool_Fire> A class is as big as it needs to be. If it requires 1000 lines to make it do what it's supposed to, then that's what it is
<Cool_Fire> It's far more important that it contains stuff that is logical
<Cool_Fire> logical as in it makes sense in the class
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
tekin [tekin!~tekin@host-78-151-24-9.as13285.net] has joined #ruby-lang
<Cool_Fire> I've not done projects where classes became that big in Ruby, but I have in Java
<injekt> shevy: 330 lines is fine
<injekt> that's not too big
<Cool_Fire> For example a class for a 3D model + all the functions for all it's transformations etc.
<Cool_Fire> Turned out at something like 10k lines of code for the class
<injekt> and if you're including documentation/comments and your classes is still only 300 lines, maybe you dont have enough documentation, or your class is tiny
<shevy> hmm
<Cool_Fire> But as long as it makes sense, and you keep your functions labeled and documented etc, there's no reason why it needs to be a problem
<injekt> methods*
* injekt hides
<Cool_Fire> lol
judofyr [judofyr!~judofyr@195.159.219.65] has joined #ruby-lang
iRue [iRue!~iRue@ZKCMLXXXVI.gprs.sl-laajakaista.fi] has joined #ruby-lang
tekin [tekin!~tekin@host-78-151-24-9.as13285.net] has joined #ruby-lang
takaokouji [takaokouji!~takaokouj@nat35.mable.ne.jp] has joined #ruby-lang
Spooner [Spooner!~Miranda@host-78-144-139-130.as13285.net] has joined #ruby-lang
alessio__ [alessio__!~alessio@94.165.143.33] has joined #ruby-lang
gianlucadv [gianlucadv!~gianlucad@2.197.157.34] has joined #ruby-lang
alessio_rocco [alessio_rocco!~alessio@176.32.21.35] has joined #ruby-lang
imajes [imajes!~imajes@is.imaj.es] has joined #ruby-lang
mhi^ [mhi^!~mhi@dslb-188-102-166-235.pools.arcor-ip.net] has quit [#ruby-lang]
cremes [cremes!~cremes@76.8.86.186] has joined #ruby-lang
headius [headius!~headius@mobile-166-147-102-208.mycingular.net] has joined #ruby-lang
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
internet_user [internet_user!~internet_@abe.cul.columbia.edu] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@host.62.65.124.23.bitcom.se] has joined #ruby-lang
darkf [darkf!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
robotmay [robotmay!~robotmay@94.30.13.228] has joined #ruby-lang
ujihisa [ujihisa!~ujihisa@64-46-24-16.dyn.novuscom.net] has joined #ruby-lang
tekin [tekin!~tekin@host-78-151-24-9.as13285.net] has joined #ruby-lang
Codif [Codif!~codif@84.120.204.160.dyn.user.ono.com] has joined #ruby-lang
dkingofpa [dkingofpa!~Adium@chihiro.xforty.com] has quit [#ruby-lang]
robotmay [robotmay!~robotmay@94.30.13.228] has joined #ruby-lang
internet_user [internet_user!~internet_@abe.cul.columbia.edu] has joined #ruby-lang
bryanl [bryanl!~bryanl@li362-49.members.linode.com] has joined #ruby-lang
<zzak> soggy socks
eggman2001 [eggman2001!~shig@user-387hpcb.cable.mindspring.com] has joined #ruby-lang
CoverSlide [CoverSlide!~richard@216.2.249.50] has joined #ruby-lang
jacobwg [jacobwg!~jacobwg@157.sub-75-222-119.myvzw.com] has joined #ruby-lang
zzak [zzak!~zzak@ec2-107-20-68-16.compute-1.amazonaws.com] has joined #ruby-lang
zzak [zzak!~zzak@ec2-107-20-68-16.compute-1.amazonaws.com] has joined #ruby-lang
mark_locklear [mark_locklear!~jlocklear@ab-tech-lan-to-ab-tech-gw.ncren.net] has joined #ruby-lang
gianlucadv [gianlucadv!~gianlucad@109.53.99.71] has joined #ruby-lang
cylence [cylence!~cylence@64-71-24-18.static.wiline.com] has joined #ruby-lang
bryanl [bryanl!~bryanl@li362-49.members.linode.com] has joined #ruby-lang
gentz [gentz!ilab@72.20.41.70] has joined #ruby-lang
guns [guns!~guns@c-98-228-72-208.hsd1.il.comcast.net] has joined #ruby-lang
jMCg [jMCg!~hiro@apache/committer/igalic] has joined #ruby-lang
SuperTaz_work [SuperTaz_work!~supertaz_@38.99.52.59] has joined #ruby-lang
tbuehlmann [tbuehlmann!~Tobias@unaffiliated/tovias] has joined #ruby-lang
ujihisa [ujihisa!~ujihisa@64-46-24-16.dyn.novuscom.net] has joined #ruby-lang
thrcka [thrcka!~thrcka@ip-89-102-34-33.net.upcbroadband.cz] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby-lang
butchanton [butchanton!~butchanto@vpn-sanfran.exacttarget.com] has joined #ruby-lang
Spooner [Spooner!~Miranda@host-78-144-139-130.as13285.net] has joined #ruby-lang
macmartine [macmartine!~macmartin@069-064-227-254.pdx.net] has joined #ruby-lang
<akahn> I'm attempting to extract line 1 of a file, and then write the rest of the file, lines 2-n, to disk. here is my implementation: https://gist.github.com/50404befabb1b9417c2d . what might be a better way to implement this?
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby-lang
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
mark_azevedo [mark_azevedo!~mark_azev@12.249.184.226] has joined #ruby-lang
tekin [tekin!~tekin@host-78-151-24-9.as13285.net] has joined #ruby-lang
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby-lang
nofxx [nofxx!~nofxx@177.106.59.23] has joined #ruby-lang
nofxx [nofxx!~nofxx@unaffiliated/nofxx] has joined #ruby-lang
iRue [iRue!~iRue@ZKCMLXXXVI.gprs.sl-laajakaista.fi] has joined #ruby-lang
tla [tla!~tla@toelboell-lund.dk] has joined #ruby-lang
savage- [savage-!~savage-@209.118.197.220] has joined #ruby-lang
savage- [savage-!~savage-@209.118.197.220] has joined #ruby-lang
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
spleeze [spleeze!~Spleeze@173-15-131-114-BusName-Philadelphia.hfc.comcastbusiness.net] has joined #ruby-lang
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
michael_mbp [michael_mbp!~Marin@31.203.161.103] has joined #ruby-lang
michael_mbp [michael_mbp!~Marin@31.203.161.103] has quit [#ruby-lang]
michael_mbp [michael_mbp!~Marin@31.203.161.103] has joined #ruby-lang
livinded [livinded!~lolwut@pool-108-23-242-132.lsanca.fios.verizon.net] has joined #ruby-lang
<Spooner> akahn: https://gist.github.com/278b563aa473c5c26994 (not a lot better, but nesting the opens is a bit cleaner).
<Spooner> If it matters though, these methods will add a newline at the end of the file if it doesn't end in one.
dejongge [dejongge!~jonke@pD9E0DD32.dip0.t-ipconnect.de] has joined #ruby-lang
jmontross [jmontross!~Adium@static-96-236-65-137.snfcca.dsl-w.verizon.net] has joined #ruby-lang
apeiros_ [apeiros_!~apeiros@77-58-113-31.dclient.hispeed.ch] has joined #ruby-lang
batasrki [batasrki!~batasrki@CPE602ad0913fd2-CM602ad0913fcf.cpe.net.cable.rogers.com] has joined #ruby-lang
gianlucadv [gianlucadv!~gianlucad@host61-81-dynamic.245-95-r.retail.telecomitalia.it] has joined #ruby-lang
kith [kith!~kith@port-92-193-6-250.dynamic.qsc.de] has joined #ruby-lang
kith [kith!~kith@unaffiliated/kith] has joined #ruby-lang
kyrylo_ [kyrylo_!~kyrylo@46.118.229.0] has joined #ruby-lang
scampbell [scampbell!~scampbell@c-98-224-240-62.hsd1.mi.comcast.net] has joined #ruby-lang
blake [blake!~blake@host-167-84-111-24.midco.net] has joined #ruby-lang
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
alessio_rocco [alessio_rocco!~alessio@176.32.21.35] has joined #ruby-lang
outoftime [outoftime!~mat@ip-160-79-101-2.autorev.intellispace.net] has joined #ruby-lang
ryez [ryez!b49d0926@gateway/web/freenode/ip.180.157.9.38] has joined #ruby-lang
<ryez> guys, how to make a sorted array disordered?
solars [solars!~solars@194.208.132.118] has joined #ruby-lang
<rippa> class Array; alias unsort shuffle; end
apeiros_ [apeiros_!~apeiros@77-58-113-31.dclient.hispeed.ch] has joined #ruby-lang
<ryez> thank you batasrki, exactly what I need
<ryez> and rippa, I like that alias, it would be great if it's available by default
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby-lang
indstry [indstry!~apple@c-71-238-98-243.hsd1.mi.comcast.net] has joined #ruby-lang
<Cool_Fire> gems: how do they work D:
<Cool_Fire> I did a gem install bcrypt-ruby
<batasrki> Cool_Fire: well, they package some code, get published, you may download them and then they break your system. Why do you ask? :p
<Cool_Fire> but it still gives me a LoadError when I try to require 'bcrypt'
jmontross [jmontross!~Adium@static-96-236-65-137.snfcca.dsl-w.verizon.net] has joined #ruby-lang
<apeiros_> Cool_Fire: what ruby version?
<Cool_Fire> 1.8.7, 1.9.1, 1.9.2, 1.9.3 and 2.0.0
hagabaka [hagabaka!~hagabaka@unaffiliated/hagabaka] has joined #ruby-lang
<apeiros_> …
<apeiros_> in 1.8.7 you must require 'rubygems' first
<apeiros_> also, gem install only installs for the ruby currently in use
<apeiros_> so if you install it for 1.9.2, it won't necessarily be installed for your other rubies.
<Cool_Fire> It doesn't seem to work any way I try
kyrylo [kyrylo!~kyrylo@46.118.229.0] has joined #ruby-lang
<Cool_Fire> I've tried though the OS provided ruby and gems
<Cool_Fire> and trough rvm
<apeiros_> just make sure you require it in the same ruby you install it for
<apeiros_> and make sure with 1.8.7 that you require rubygems first
<Cool_Fire> I'm sure it's something simple, but I don't know what
<apeiros_> if it doesn't work, you most likely fail at one of these two
<apeiros_> works as simple as pie
<apeiros_> also, you sure your installation was successful?
<drbrain> also, does `gem list bcrypt-ruby` show the gem, and if so, does the RUBY EXECUTABLE from `gem env` match `which ruby` and `which irb` ?
<Cool_Fire> It seems to work for the system provided ruby/gem now
alessio_rocco [alessio_rocco!~alessio@176.32.21.35] has joined #ruby-lang
<Cool_Fire> But still I can't get it to work in the rvm installed versions
brianpWins [brianpWins!~brianpWin@S01060024369f54ba.vn.shawcable.net] has joined #ruby-lang
<Cool_Fire> Never mind, I'm doing something incredibly weird instead of installing gems
alessio_rocco [alessio_rocco!~alessio@176.32.21.35] has joined #ruby-lang
<Cool_Fire> Ah, I'm now installing them, but I still can't load them properly
tla [tla!~tla@toelboell-lund.dk] has joined #ruby-lang
cyri_ [cyri_!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby-lang
<Cool_Fire> There it is!
<Cool_Fire> I take it you need to restart a ruby app in order to get access to any newly installed gems too?
<apeiros_> um, no
<apeiros_> I'm pretty sure you don't have to restart e.g. irb
<apeiros_> of course, if you do the require before it's there, it'll fail and it won't magically retry for you
kyrylo [kyrylo!~kyrylo@46.118.229.0] has joined #ruby-lang
<Cool_Fire> Yeah, ofc
<apeiros_> seems you have to
<apeiros_> just tried. maybe that changed. probably optimizations.
<robbrit> you can use Kernel.load to load in a file
<robbrit> require won't reload a file that's already loaded
<apeiros_> robbrit: it's about files that haven't been loaded
<robbrit> ah oops
<Cool_Fire> cannot load such file -- bcrypt <- :sadface:
<Cool_Fire> it works on the same version when I start a new script though
batasrki [batasrki!~batasrki@CPE602ad0913fd2-CM602ad0913fcf.cpe.net.cable.rogers.com] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@46.118.236.196] has joined #ruby-lang
alessio_rocco [alessio_rocco!~alessio@176.32.21.35] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@subtle/user/kyrylo] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@46.118.236.196] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@subtle/user/kyrylo] has joined #ruby-lang
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby-lang
cremes [cremes!~cremes@76.8.86.186] has quit [#ruby-lang]
pabs [pabs!~pabs@ip68-98-175-235.dc.dc.cox.net] has joined #ruby-lang
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby-lang
eggman2001 [eggman2001!~shig@user-387hpcb.cable.mindspring.com] has joined #ruby-lang
postmodern [postmodern!~postmoder@c-71-237-178-98.hsd1.or.comcast.net] has joined #ruby-lang
dep3ndant [dep3ndant!~default@186.206.182.6] has joined #ruby-lang
outoftime [outoftime!~mat@ip-160-79-101-2.autorev.intellispace.net] has joined #ruby-lang
c0_stawberryy [c0_stawberryy!~micael_go@208.92.248.11] has joined #ruby-lang
CE_BISPAK_SMG [CE_BISPAK_SMG!~Guest3380@208.92.248.11] has joined #ruby-lang
Emo_Princezz [Emo_Princezz!~cO_emm@79.171.123.242] has joined #ruby-lang
woww [woww!~cew_jojob@85.31.187.54] has joined #ruby-lang
artihidup [artihidup!~^nica^@58.96.134.22] has joined #ruby-lang
[[Nanda_sweet]] [[[Nanda_sweet]]!~^co_phone@61.153.16.162] has joined #ruby-lang
sair_ah [sair_ah!~kardel@41.86.229.79] has joined #ruby-lang
ce_bg02_an [ce_bg02_an!~BRAM30HBW@58.242.248.15] has joined #ruby-lang
ce_MuTz [ce_MuTz!~OneNighSt@125.210.188.36] has joined #ruby-lang
Cewe_sexI_cantIk [Cewe_sexI_cantIk!~GiSSeLLa@pa7-84-91-189-194.netvisao.pt] has joined #ruby-lang
phil\ [phil\!~Missie49@182.53.2.209] has joined #ruby-lang
DimaS40 [DimaS40!~Jipeng@cpe-72-184-215-250.tampabay.res.rr.com] has joined #ruby-lang
PEJANTAN_TANGGU [PEJANTAN_TANGGU!~boy_fb@186.215.182.112] has joined #ruby-lang
rise_up [rise_up!~d_flay@41.86.229.79] has joined #ruby-lang
loneguy [loneguy!~d_holmes@58.96.134.22] has joined #ruby-lang
Gordy [Gordy!~ce_basah_@46.19.136.221] has joined #ruby-lang
dimana [dimana!~Jipeng@58.242.248.15] has joined #ruby-lang
COWOK_MANADO [COWOK_MANADO!~prjonzy87@124.40.254.178] has joined #ruby-lang
citronade03 [citronade03!~Delicius@125.210.227.168] has joined #ruby-lang
Cwo_caRi_tmen [Cwo_caRi_tmen!~doel@115.178.50.36] has joined #ruby-lang
cew_juaal_haandp [cew_juaal_haandp!~ce_lagi_t@222.124.173.250] has joined #ruby-lang
CIBUBUR_CR_TEMAN [CIBUBUR_CR_TEMAN!~cwo_zaja@58.96.134.22] has joined #ruby-lang
co_jkt_27_chn_ [co_jkt_27_chn_!~Hpii_cHat@200.223.17.205] has joined #ruby-lang
Black_Boss [Black_Boss!~CE_KULIAH@200.11.138.106] has joined #ruby-lang
exmud_bthceww_4f [exmud_bthceww_4f!~naughty@177.20.230.2] has joined #ruby-lang
Op-Gaul-Game [Op-Gaul-Game!~utauu@200.93.131.2] has joined #ruby-lang
BigEars [BigEars!~CO_PINGIN@lmail.easybill.co.in] has joined #ruby-lang
Hiicham [Hiicham!~ticca@41.35.48.159] has joined #ruby-lang
JustinJ [JustinJ!~^C0-Kerja@118.97.75.226] has joined #ruby-lang
kept [kept!~co_kluarm@125.210.188.36] has joined #ruby-lang
Rhei [Rhei!~Emo_Princ@85.31.187.54] has joined #ruby-lang
tasikcrew [tasikcrew!~jrockstar@58.242.248.15] has joined #ruby-lang
eno_ce_loencha [eno_ce_loencha!~sSiSy_giR@212.62.97.20] has joined #ruby-lang
co`jomblo`esia [co`jomblo`esia!~co_pngn_k@85.31.187.54] has joined #ruby-lang
zZzZ_bOys [zZzZ_bOys!~tara_aja@82.138.32.189] has joined #ruby-lang
wanita_dewasa_bt [wanita_dewasa_bt!~cew_SMP@58.242.248.15] has joined #ruby-lang
LeD|oC [LeD|oC!~C0_0nl@208.92.248.11] has joined #ruby-lang
stiffmeister [stiffmeister!~aRaLe@85.31.187.54] has joined #ruby-lang
wolf31r-s [wolf31r-s!~co_nyante@222.124.25.74] has joined #ruby-lang
cari_agen [cari_agen!~hadimtp@115.178.50.36] has joined #ruby-lang
PRIA^DEWASA [PRIA^DEWASA!~ftv@222.124.173.250] has joined #ruby-lang
ce-debate [ce-debate!~Cari_IM2_@aicw6kuq.emirates.net.ae] has joined #ruby-lang
WAPPO [WAPPO!~Co_Jomlo_@host86.190-230-53.telecom.net.ar] has joined #ruby-lang
deep_ [deep_!~ervina_16@cpe-72-184-215-250.tampabay.res.rr.com] has joined #ruby-lang
harry [harry!~DavidB__@202.152.31.226] has joined #ruby-lang
c0_fb [c0_fb!~victorize@92.87.18.254] has joined #ruby-lang
Faisal_36 [Faisal_36!~martin303@200.181.109.18] has joined #ruby-lang
AanG___ [AanG___!~unixcode@58.96.134.22] has joined #ruby-lang
cwokK-pngen-susu [cwokK-pngen-susu!~Jim101@41.35.48.159] has joined #ruby-lang
CEWE_NDUTZ_BOUKE [CEWE_NDUTZ_BOUKE!~m2masahis@109.74.239.42] has joined #ruby-lang
c0_baek [c0_baek!~binou@200.223.17.205] has joined #ruby-lang
co_mw_ML [co_mw_ML!~BANTUIN@host124.190-136-216.telecom.net.ar] has joined #ruby-lang
cow_t4_curhat [cow_t4_curhat!~cew_chuby@host86.190-230-53.telecom.net.ar] has joined #ruby-lang
Oki_jie [Oki_jie!~Imut_holm@77.104.106.42] has joined #ruby-lang
Chn_Co_JKt_LIke_ [Chn_Co_JKt_LIke_!~louis_43@125.210.188.36] has joined #ruby-lang
man_romantic [man_romantic!~Co_baek-b@109.74.239.42] has joined #ruby-lang
yuke_07 [yuke_07!~RiE_aLOnE@77.104.106.42] has joined #ruby-lang
StePH[G] [StePH[G]!~DhimmEr@cpe-72-184-215-250.tampabay.res.rr.com] has joined #ruby-lang
Aimen [Aimen!~co_gres@200.223.17.205] has joined #ruby-lang
beaublack [beaublack!~co_jelekx@lmail.easybill.co.in] has joined #ruby-lang
co_kes3p1an [co_kes3p1an!~doejer@host124.190-136-216.telecom.net.ar] has joined #ruby-lang
RiE_aLOnE [RiE_aLOnE!~duda-jkt-@cpe-72-184-215-250.tampabay.res.rr.com] has joined #ruby-lang
joetherich [joetherich!~teh@c-68-56-37-210.hsd1.fl.comcast.net] has joined #ruby-lang
easly [easly!~boy_o@cpe-72-184-215-250.tampabay.res.rr.com] has joined #ruby-lang
KlausFuchs [KlausFuchs!~^C0-Kerja@aicw6kuq.emirates.net.ae] has joined #ruby-lang
Ce_H1N1 [Ce_H1N1!~ce_seksi@95.80.219.37] has joined #ruby-lang
MarcAndreQc [MarcAndreQc!~CAPT_Fahd@208.88.176.200] has joined #ruby-lang
cari_ce-eksibisi [cari_ce-eksibisi!~co_intima@200.45.236.50] has joined #ruby-lang
AnakAyam [AnakAyam!~abcdeco@ip68-226-250-16.lf.br.cox.net] has joined #ruby-lang
co_co_co [co_co_co!~co_OL_YM_@95.80.219.37] has joined #ruby-lang
CoWw__Cr__tmnCE [CoWw__Cr__tmnCE!~C0_TiNgGi@222.124.25.74] has joined #ruby-lang
rHya3 [rHya3!~Co-AloNe@101.108.13.108] has joined #ruby-lang
seSha [seSha!~co_in_her@180.246.205.60] has joined #ruby-lang
ekki [ekki!~DavidB__@cpe-72-184-215-250.tampabay.res.rr.com] has joined #ruby-lang
Bluey_RoSe [Bluey_RoSe!~Penelope2@125.167.24.184] has joined #ruby-lang
cO_gOgilzzz [cO_gOgilzzz!~Ryuk24@200.181.109.18] has joined #ruby-lang
NoHoper [NoHoper!~Rhei@182.53.2.209] has joined #ruby-lang
buns0til_25 [buns0til_25!~bushwacke@host124.190-136-216.telecom.net.ar] has joined #ruby-lang
Fun_jkp [Fun_jkp!~slipped@200.45.236.50] has joined #ruby-lang
IcHanTiQue [IcHanTiQue!~sithaaa@200.45.236.50] has joined #ruby-lang
cow_suka_cow [cow_suka_cow!~fida_jele@202.152.31.226] has joined #ruby-lang
PijatSensualUtkW [PijatSensualUtkW!~ZCode@200.93.131.2] has joined #ruby-lang
Adiib [Adiib!~Edras@200.35.52.10] has joined #ruby-lang
Aldana_32Cal [Aldana_32Cal!~sam0715@212.62.97.20] has joined #ruby-lang
aaderaai [aaderaai!~CE_CR_KER@lmail.easybill.co.in] has joined #ruby-lang
georges70 [georges70!~slipped@77.104.106.42] has joined #ruby-lang
steven28t [steven28t!~reigga@222.124.25.74] has joined #ruby-lang
Cwok_dws_ajak [Cwok_dws_ajak!~MikoMaLta@58.59.9.126] has joined #ruby-lang
mitchty [mitchty!~mitchty@ec2-50-19-41-37.compute-1.amazonaws.com] has joined #ruby-lang
nurse_akbeth [nurse_akbeth!~Co_PeMaLu@186.219.25.226] has joined #ruby-lang
Assuradda [Assuradda!~s4ndy_k@95.80.219.37] has joined #ruby-lang
cwo_ngajak_Nonto [cwo_ngajak_Nonto!~miLan_03@41.86.229.79] has joined #ruby-lang
andreas_mks [andreas_mks!~cwo_penge@41.35.47.105] has joined #ruby-lang
muthia [muthia!~cwo_imud@41.86.229.79] has joined #ruby-lang
sallyna [sallyna!~HpOuRfMtL@114.255.122.16] has joined #ruby-lang
co_cakepz_sby [co_cakepz_sby!~fruity-gi@200.7.199.24] has joined #ruby-lang
moccacino [moccacino!~cwo_imud@190.85.37.92] has joined #ruby-lang
DinDa_aZa [DinDa_aZa!~Hm_NOIR__@c-68-56-37-210.hsd1.fl.comcast.net] has joined #ruby-lang
yuga [yuga!~cwoPplngs@202.154.4.23] has joined #ruby-lang
satria_pingit [satria_pingit!~^cochn_si@nat.bolimow.net] has joined #ruby-lang
jancok [jancok!~CodeX@41.35.47.144] has joined #ruby-lang
CIBUBUR_CR_TEMAN [CIBUBUR_CR_TEMAN!~BOLERO`Ko@186.212.230.213] has joined #ruby-lang
Pryde [Pryde!~assayu02@95.80.219.37] has joined #ruby-lang
LfcGirl [LfcGirl!~BRAM30HBW@cpe-72-184-215-250.tampabay.res.rr.com] has joined #ruby-lang
gund [gund!~cowok_18@82.138.32.189] has joined #ruby-lang
prjonzy87 [prjonzy87!~MoonLiteG@208.92.248.11] has joined #ruby-lang
pretty_Nice [pretty_Nice!~Andree@222.124.25.74] has joined #ruby-lang
BOLIHUANGGA [BOLIHUANGGA!~marc654@cpe-72-184-215-250.tampabay.res.rr.com] has joined #ruby-lang
naq [naq!~plume``@cpe-74-78-71-225.maine.res.rr.com] has joined #ruby-lang
Cow_kece [Cow_kece!~JoLiEfLeU@124.40.254.178] has joined #ruby-lang
junky[\[a] [junky[\[a]!~ce_lezzcs@186.219.25.226] has joined #ruby-lang
cE_imOoet [cE_imOoet!~Twistedsh@186.219.25.226] has joined #ruby-lang
louis_43 [louis_43!~c0-gebleg@ip68-226-250-16.lf.br.cox.net] has joined #ruby-lang
Co__cr__serius [Co__cr__serius!~F_no_mone@186.212.230.213] has joined #ruby-lang
Guest89457 [Guest89457!~aziezah_s@186.96.253.81] has joined #ruby-lang
Hot_Date [Hot_Date!~co_stemca@125.210.227.168] has joined #ruby-lang
pim [pim!~cew^72alo@88.207.151.249] has joined #ruby-lang
tara_aja [tara_aja!~cinta_17@aicw6kuq.emirates.net.ae] has joined #ruby-lang
shady_777 [shady_777!~Dominik35@182.53.1.44] has joined #ruby-lang
siNgLeLady79 [siNgLeLady79!~vithz@88.85.107.121] has joined #ruby-lang
maria_dpk [maria_dpk!~bushwacke@186.153.11.29] has joined #ruby-lang
joni_adams [joni_adams!~KingBong@118.96.94.252] has joined #ruby-lang
sukroo [sukroo!~DA13@182.16.254.42] has joined #ruby-lang
ZOE`S [ZOE`S!~Ria^Canti@110.139.118.95] has joined #ruby-lang
Bnt_aBohaa [Bnt_aBohaa!~JustinJ@203.154.134.27] has joined #ruby-lang
cr_cewk [cr_cewk!~beaublack@201.75.125.52] has joined #ruby-lang
DoGGy_StyLe^ [DoGGy_StyLe^!~marilyn-t@ip174-75-122-36.br.br.cox.net] has joined #ruby-lang
Adi_jogja [Adi_jogja!~smg_binan@186.96.253.81] has joined #ruby-lang
GOODFatheR7 [GOODFatheR7!~assayu02@c-68-81-116-181.hsd1.pa.comcast.net] has joined #ruby-lang
Leo_Lee [Leo_Lee!~cowo_mega@88.85.107.121] has joined #ruby-lang
nee_a [nee_a!~LoNDoNBab@203.154.134.27] has joined #ruby-lang
meLL_InBndung_ju [meLL_InBndung_ju!~cow_t4_cu@111.67.74.178] has joined #ruby-lang
Sushmita [Sushmita!~cO_gOgilz@190.105.161.208] has joined #ruby-lang
Invierno [Invierno!~co_leo@200.7.199.24] has joined #ruby-lang
dirka [dirka!~Emo_Princ@58.59.9.126] has joined #ruby-lang
cantikz_maniz_im [cantikz_maniz_im!~mlman@41.35.46.176] has joined #ruby-lang
agas [agas!~loneguy@202.152.31.226] has joined #ruby-lang
h26 [h26!~aryo799@180.251.8.92] has joined #ruby-lang
co_cr_kepuasan [co_cr_kepuasan!~naq@208.88.176.200] has joined #ruby-lang
caleb32 [caleb32!~DoctorX29@187.112.175.218] has joined #ruby-lang
msosa_mssw [msosa_mssw!~miguel@shop.monetra.com] has joined #ruby-lang
squ1z5 [squ1z5!~loenk@85.31.187.54] has joined #ruby-lang
cO_TebInK_pEngEn [cO_TebInK_pEngEn!~BANTUIN@200.181.109.18] has joined #ruby-lang
cochn29 [cochn29!~andrei_ma@ip72-193-37-60.lv.lv.cox.net] has joined #ruby-lang
galnk [galnk!~WaRBrOThE@ool-45760f37.dyn.optonline.net] has joined #ruby-lang
putra_yg_lagi_pu [putra_yg_lagi_pu!~alonso_mo@187.35.83.132] has joined #ruby-lang
and1k4 [and1k4!proxy@190.204.69.208] has joined #ruby-lang
F^i^r^s^t [F^i^r^s^t!~boy_28_jk@cblmdm72-241-213-227.buckeyecom.net] has joined #ruby-lang
co_in_here [co_in_here!~PRIA^DEWA@187.112.175.218] has joined #ruby-lang
aryo799 [aryo799!~Guest4135@c-98-224-241-49.hsd1.mi.comcast.net] has joined #ruby-lang
zibeon [zibeon!~BOLERO`Ko@190.223.133.86] has joined #ruby-lang
Zyrcov [Zyrcov!~ly^ndsie@cpc11-lanc7-2-0-cust126.3-3.cable.virginmedia.com] has joined #ruby-lang
_Reptyl_ [_Reptyl_!~cwoq_cri@182.53.1.44] has joined #ruby-lang
zie [zie!~cO26jkt@200.75.51.149] has joined #ruby-lang
MeCindy [MeCindy!~dragon23@125.167.24.184] has joined #ruby-lang
amie [amie!~JUAL_MOBI@186.212.230.213] has joined #ruby-lang
polarman [polarman!~co_cr_ce_@88.207.151.249] has joined #ruby-lang
Oddity [Oddity!~CO_PINGIN@aicw6kuq.emirates.net.ae] has joined #ruby-lang
eric [eric!~and1k4@41.35.45.214] has joined #ruby-lang
Fedotenko [Fedotenko!~co_brondo@180.246.205.60] has joined #ruby-lang
LNI_communityFOR [LNI_communityFOR!~co_alvin@71-15-109-100.static.ftwo.tx.charter.com] has joined #ruby-lang
^pHoLLene^ [^pHoLLene^!~shine`@78.31.200.90] has joined #ruby-lang
PrAyInG^EyEs [PrAyInG^EyEs!~loenk@82.138.32.189] has joined #ruby-lang
The_Rev [The_Rev!~Helo38@85.31.187.54] has joined #ruby-lang
CO_LG_NGCOK_KONT [CO_LG_NGCOK_KONT!~h26@222.124.25.74] has joined #ruby-lang
poelon [poelon!~v_q@88.207.151.249] has joined #ruby-lang
micael_go [micael_go!~COWO_KERJ@222.124.25.74] has joined #ruby-lang
boy_boring [boy_boring!~Om_Bayar_@180.251.8.92] has joined #ruby-lang
MarocSlave [MarocSlave!~LfcGirl@71-15-109-100.static.ftwo.tx.charter.com] has joined #ruby-lang
ikki_jie [ikki_jie!~Co_cr_ce_@aicw6kuq.emirates.net.ae] has joined #ruby-lang
c0_aL [c0_aL!~mBendol@202.152.31.226] has joined #ruby-lang
Mr-Lonely [Mr-Lonely!~utauu@186.219.25.226] has joined #ruby-lang
maya^k}ar8in [maya^k}ar8in!~InteRmezO@186.212.230.213] has joined #ruby-lang
co_pengen_ML_ma_ [co_pengen_ML_ma_!~ce_300now@200.93.131.2] has joined #ruby-lang
Jake232 [Jake232!~textual@5e0e64ca.bb.sky.com] has joined #ruby-lang
and1k4 [and1k4!~jakkie@186.96.253.81] has joined #ruby-lang
[iMMoRtaL] [[iMMoRtaL]!~Wine@aicw6kuq.emirates.net.ae] has joined #ruby-lang
JoLiEfLeUr20 [JoLiEfLeUr20!~rendang@cpc11-lanc7-2-0-cust126.3-3.cable.virginmedia.com] has joined #ruby-lang
A7EB_ALsadaqa [A7EB_ALsadaqa!~latino071@ip68-226-250-16.lf.br.cox.net] has joined #ruby-lang
^co_biasa_aja [^co_biasa_aja!~CO-PER@202.53.255.67] has joined #ruby-lang
co_MKS [co_MKS!~JEeKAaRAa@125.167.24.184] has joined #ruby-lang
Sapi [Sapi!~oss2@189.111.174.81] has joined #ruby-lang
Cow_santai [Cow_santai!~co_in_her@95.80.219.37] has joined #ruby-lang
aRaLe [aRaLe!~LAGI_NAPS@186.219.25.226] has joined #ruby-lang
mitchty [mitchty!~mitchty@ec2-50-19-41-37.compute-1.amazonaws.com] has joined #ruby-lang
E3FeeNi [E3FeeNi!~plume``@58.59.9.126] has joined #ruby-lang
davidw [davidw!~davidw@adsl-ull-122-110.51-151.net24.it] has joined #ruby-lang
Penguin_Gab [Penguin_Gab!~Penguin_G@bb119-74-101-54.singnet.com.sg] has joined #ruby-lang
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby-lang
<Penguin_Gab> hi all why is ruby good over php?
<bougyman> i don't know, is there a punchline coming?
<Penguin_Gab> no
<Penguin_Gab> curious
<rue> Penguin_Gab: R > P
AlHafoudh [AlHafoudh!~textual@dsl-static-173.212-5-200.telecom.sk] has joined #ruby-lang
<hrnt> P == R
<hrnt> (if P is in cyrillic alphabet)
<rue> In Sovie Russia…
<Spooner> Penguin_Gab: For someone who is just into web dev, it is Ruby+Rails > Php+whateverwebframework, not RubyvsPHP.
<rue> Spooner: Maybe they want to use PHP as a general-purpose language
<robgleeson> yeah, riiiiiiight...
<Spooner> Yes, but in that case you wouldn't compare it to PHP, which isn't. You'd compare it to Python or something else.
<Penguin_Gab> lol
<rue> Spooner: Is too
<Penguin_Gab> so Ruby < PHP, but Ruby+Rails > PHP+(whateverframework Codeigniter, zend etc) ??
<robgleeson> I've never heard of *anybody* using PHP as a general purpose programming language, actually a close friend is a PHP programmer and he reaches for Python to do general programming
<Spooner> But yes, Perl or language-I-knocked-up-in-my-shed-last-night is better than PHP as a general purpose language :D
<Penguin_Gab> php is a web scripting language
<corsican> haha Spooner
<wmoxam> Penguin_Gab: it can be used for general scripting
<rue> #!/usr/bin/php
<robgleeson> yeah it's possible
<Penguin_Gab> i tried using PHP to do projecteuler.net and nearly vomitted blood
<robgleeson> but wtf uses it for that?
<robgleeson> no one
Asher [Asher!~asher@98.158.127.150] has joined #ruby-lang
<wmoxam> it even has scripts in the Great Language Shootout
<robgleeson> not even PHP programmers
<robgleeson> so point is moot
<corsican> I know a guy who wrote an irc bot in php
<rue> robgleeson: It's too powerful, like Haskell or Lisp
<Penguin_Gab> lol
<corsican> unsurprisingly, it didn't work too well
<Penguin_Gab> lol
<wmoxam> robgleeson: some do
DONIEE [DONIEE!~Pline@208.88.176.200] has joined #ruby-lang
<rue> So only the truly awesome really grok it
<rue> I usually do most of my system scripting in PHP
DhimmEr [DhimmEr!~AL7Up@124.40.254.178] has joined #ruby-lang
Ronin`[CRF] [Ronin`[CRF]!~F_no_mone@cpe-72-184-215-250.tampabay.res.rr.com] has joined #ruby-lang
<robgleeson> I write operating systems in PHP
<rue> Now you're just being silly
<corsican> robgleeson: I wrote a kernel in TCL
<corsican> all the drivers are in ircII
<jmontross> system scripting in php? it has advnatages over ruby for sys admins things?
<wmoxam> robgleeson: sounds just as silly if you replace 'php' with 'ruby'
<Penguin_Gab> lol
<robgleeson> wmoxam: it was a troll
<robgleeson> my point was, using a language for something that it isn't really designed for
<robgleeson> but apparently that point was lost
[David]KS[Lee] [[David]KS[Lee]!~KlCityQui@101.108.29.210] has joined #ruby-lang
<wmoxam> robgleeson: php wasn't designed at all
<wmoxam> ;P
<Penguin_Gab> i use php to create GUI applications
<Penguin_Gab> on Windows
<jmontross> php reacted to what was needed. no?
<Penguin_Gab> php created Chuck Norris
empity [empity!~user@cpc1-aztw16-0-0-cust938.aztw.cable.virginmedia.com] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby-lang
tychobrailleur [tychobrailleur!~sebastien@176.61.72.130] has joined #ruby-lang
muzone [muzone!~holla@84-16-208.227.3p.ntebredband.no] has joined #ruby-lang
jadams|work [jadams|work!~jadams@rrcs-24-73-187-202.se.biz.rr.com] has joined #ruby-lang
esufan [esufan!~nekid@c-24-6-170-1.hsd1.ca.comcast.net] has joined #ruby-lang
virunga [virunga!~virunga@151.64.44.17] has joined #ruby-lang
<rue> Chuck Norris is such a loser.
<Penguin_Gab> Chuck Norris gave birth to Python and Perl
musl [musl!~mike@li44-23.members.linode.com] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@216.199.155.226.nw.nuvox.net] has joined #ruby-lang
simon_weber [simon_weber!u4119@gateway/web/irccloud.com/x-stmuktomnqxnouxz] has joined #ruby-lang
<shevy> hmmm
<shevy> so he failed twice
flebel [flebel!~flebel@unaffiliated/flebel] has joined #ruby-lang
<shevy> well, nevermind the mistakes
<shevy> he counted to Infinity
<shevy> twice
confounds [confounds!~confounds@208.113.48.180] has joined #ruby-lang
<apeiros_> and back!
<Penguin_Gab> lol
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
robbrit [robbrit!~rob@38.108.76.250] has quit [#ruby-lang]
jacobwg [jacobwg!~jacobwg@157.sub-75-222-119.myvzw.com] has joined #ruby-lang
livinded [livinded!~lolwut@s042n230.csun.edu] has joined #ruby-lang
<rue> Chuck Norris doesn't have good time management skills
RomyEatsDrupal [RomyEatsDrupal!~stickycak@pool-108-54-62-155.nycmny.east.verizon.net] has joined #ruby-lang
melter [melter!~Melter@2001:4930:116:0:21c:c0ff:feef:eaf5] has joined #ruby-lang
<apeiros_> you can tell him that when he's finished counting to infinite for the third time…
<apeiros_> (that's when he takes a short break before counting back down)
slyphon_ [slyphon_!~weechat@unaffiliated/slyphon] has joined #ruby-lang
<shevy> hehe
<apeiros_> *infinity
<Penguin_Gab> Chuck Norris created Ruby on Rails
<livinded> lulz at githire
<livinded> apparently I'm in the top 2%
* livinded awaits job offers
<Penguin_Gab> whats githire
<Penguin_Gab> whats ur git username
benanne [benanne!~rijdier@ip-213-49-87-140.dsl.scarlet.be] has joined #ruby-lang
<rue> I'm going to hire Why Mirror
<livinded> jrozner
<rue> I'm top 2% too. õ.o
<wmoxam> I'm only in the top 10%
<wmoxam> :/
<robgleeson> how do you find out
<shevy> what
<apeiros_> funny, apparently I've 5+ years C++ experience
<livinded> apparently I have 5+ years of VimL experience
<livinded> and python
<robgleeson> its algorithm sounds fucked lol
<Penguin_Gab> very good
<Penguin_Gab> cool
<shevy> wow apeiros_
<rue> I've got 3-5 years of Python. Very handy sometimes
<Penguin_Gab> I am Matz
<shevy> lol
<drbrain> I have only three to five years of Ruby experience
dv310p3r [dv310p3r!~dv310p3r@host-208-68-238-122.biznesshosting.net] has joined #ruby-lang
<rue> Hm. 5+ years of CoffeeScript experience. Beat that.
<livinded> lmfao
<shevy> OH MY GOD
<drbrain> apparently it doesn't know about orgs
<shevy> I searched for "Ruby"
<shevy> and it is showing me PYTHON GUYS :(
<robgleeson> drbrain: I would guess it ignored orgs purposefully
<drbrain> robgleeson: so it's completely missing my experience on rdoc and rubygems
<apeiros_> given my current lack of activity on github, I'd say I have to be grateful to those 98% of people who're even more lame than I :D
<robgleeson> yeah
<robgleeson> i'm not saying it is good that it does
<robgleeson> but it probably skips them
tekin [tekin!~tekin@cpc8-with5-2-0-cust208.1-4.cable.virginmedia.com] has joined #ruby-lang
<rue> drbrain: I'll vouch for you if someone asks.
<Penguin_Gab> lol
<drbrain> rue: thanks!
<rue> Sure thing
cylence [cylence!~cylence@64-71-24-18.static.wiline.com] has joined #ruby-lang
<Penguin_Gab> how long have u all been doing ruby and programming in general??
<drbrain> Penguin_Gab: over a decade
<apeiros_> ~7y ruby, >20y overall
<Penguin_Gab> how long for a newbie to become dangerous in programming?
<Penguin_Gab> omg..
davidw [davidw!~davidw@apache/committer/davidw] has joined #ruby-lang
<apeiros_> dangerous? 1 day
<Penguin_Gab> omg cool
<Penguin_Gab> lol
<confounds> Penguin_Gab ruby since the 60s
<apeiros_> confounds: lol
<Penguin_Gab> lol
<apeiros_> are you that chrononaut?
<confounds> apeiros_ i wish i were
<rue> apeiros_ is oooold
<apeiros_> =(
<Penguin_Gab> i wrote a time travelling software in PHP code, you run it by using win32 command line and hook it up via USB to a toaster
<apeiros_> rue: you're older!!!
<rue> apeiros_: Doubleplusyoung?
<Penguin_Gab> you time travel by sticking your tongue in the toaster
<apeiros_> rue: only plusyoung
<rue> Hmm
<drbrain> awesome, rubygems only has 3-5 years of ruby experience
<Penguin_Gab> lol
<rue> drbrain: I'm pretty sure they're discounting the period when setup.rb was still significant.
<apeiros_> drbrain: yeah, and he totally lacks any C knowledge. lame.
<rue> I mean, they have an algorithm and stuff.
<drbrain> but JavaScript!
<apeiros_> javascript is a kiddy language! it counts *against* you!
<apeiros_> js is the new php
<apeiros_> damit, I *am* old :(
<yorickpeterse> JS the new PHP? Fuck no, at least JS gets things such as parameter order right
<yorickpeterse> Or stupid shit like "Can't use write method in return context" or some bollocks like that
sora_h [sora_h!~sora_h@mayfield.privs.net] has joined #ruby-lang
<drbrain> or \ as a namespace separator
<yorickpeterse> Oh, and JS actually uses objects for strings and such
<drbrain> (… it's still the namespace separator, right?)
<yorickpeterse> Yes
<yorickpeterse> disclaimer: I sadly work with PHP 5 days a week :[
<yorickpeterse> and Javascript but that isn't too bad as long as I don't have to deal with my co-workers, even the guy that claims to know JS writes horrendous code
<Penguin_Gab> how much do u earn annually yorickpeterse?
<apeiros_> yorickpeterse: it doesn't have goto either
<apeiros_> and I was kidding of course. I don't particularly like javascript. but I don't consider it - by far - not as bad as php.
<yorickpeterse> Penguin_Gab: Eh anually, let me calculate
<apeiros_> though there's one thing php did better than js - it has real integers.
<rue> When writing PHP, you earn anually.
<yorickpeterse> Penguin_Gab: around 23k USD
<yorickpeterse> Still quite young so sadly it's not more
<yorickpeterse> but it's enough so I'm happy with it
<drbrain> ruby has goto!
<drbrain> you have to enable it at compile-time though
<apeiros_> OO
<yorickpeterse> apeiros_: how does JS not have real integers?
<apeiros_> yorickpeterse: by not having them
<apeiros_> yorickpeterse: all in js is float. there's no such thing as an integer.
<drbrain> yorickpeterse: everything is a float
<drbrain> or double
<yorickpeterse> Oh?
<apeiros_> yeah, technically double, maybe even more precise.
srbartlett [srbartlett!~srbartlet@202.146.7.239] has joined #ruby-lang
<yorickpeterse> If so, that's kind of weird indeed
<apeiros_> if it was only weird…
<rue> Yus. They fake it
<apeiros_> it's annoying and makes a couple of things needlessly hard.
<yorickpeterse> apeiros_: well, more precision is a good thing but it isn't always needed
<Penguin_Gab> yorickpeterse do u think it'll be more if u did ruby for a living instead
<yorickpeterse> It would mean I'd have to do full time Rails most likely
<apeiros_> yorickpeterse: you don't get it, do you?
<yorickpeterse> Not a huge fan of that
<yorickpeterse> apeiros_: not entirely
<apeiros_> floats have horrible intrinsics for a couple of things
<apeiros_> there's a reason everybody shouts and screams at you if you use floats for monetary stuff
<confounds> you can always use an array, use the size of it as your integer ;)
<yorickpeterse> Well, I suppose that it depends on how floats are handled by the language and how you use them
<confounds> or create strings and use their length
<rue> Float == IEEE float here
<rue> Or in general discussion
<yorickpeterse> right
<yorickpeterse> Then again I'm not sure if it's a huge plus that PHP has it, PHP isn't the best language for math related processing anyway
<apeiros_> I didn't say it was a huge plus
mark_azevedo [mark_azevedo!~mark_azev@12.249.184.226] has joined #ruby-lang
<yorickpeterse> I know that :)
<apeiros_> I only said it was one thing it does better.
<confounds> yorickpeterse php isn't the best language for anything
<yorickpeterse> I have to slightly disagree. It works fine for a lot of websites that don't need a lot of complexity or "out of the box" logic
<yorickpeterse> If you look at the inner workins then yes, it's a fat and ugly pig
<confounds> fair enough
<confounds> though working fine != best language :)
<yorickpeterse> But as much as I hate it, it gets the job done. Sadly, when you develop more complex applications that require you to go beyond the basic functions/constructs/etc you'll quickly bump into the issue of the inner workings
<yorickpeterse> Common examples are the parameter orders (stristr vs in_array for example), the return context nonsense, stupid warnings (E_PAMAAYUM_SOMETHING), a rubbish GC, and the list goes on
<yorickpeterse> One thing I did notice is that the GC seems to release memory back to the OS during runtime, though I'm not sure if that's the case
<apeiros_> ruby doesn't exactly shine in the GC question…
<yorickpeterse> True, but it's more stable
<drbrain> yorickpeterse: it depends in part on the allocator
<yorickpeterse> If you keep PHP scripts running for a while and create simple objects it can grow very qucikly
<yorickpeterse> * quickly
savage- [savage-!~savage-@209.118.197.220] has joined #ruby-lang
<drbrain> yorickpeterse: if the allocator only uses sbrk() then the OS can't reclaim memory if you've got an allocation out near the end
<drbrain> it can reclaim unused pages, though
<yorickpeterse> Hm
<drbrain> Virtual vs Resident
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby-lang
<yorickpeterse> Pretty sure I measured residential memory but it was a while back so I might be mistaken
<drbrain> you're probably not
<yorickpeterse> :)
<drbrain> the nature of ruby's allocation patterns make it difficult to reclaim pages
<drbrain> they'll be sprinkled around randomly and are not page aligned or sized
<drbrain> bitmap marking is landing in trunk (or just landed?)
<drbrain> which will help
<drbrain> also, 1.9 stores short strings and arrays directly in the object
<yorickpeterse> "the object" as in the particular instance you just created?
<drbrain> in 1.8 a string object was composed of the object struct (struct RString) and the string data in the C heap
<drbrain> in 1.9, if your string is short (23 bytes on 64 bit platforms) there's no allocation in the C heap
<drbrain> having fewer allocations will help reduce fragmentation
<yorickpeterse> Yeah, read that
<yorickpeterse> But how would you tackle that for applications with large amounts of text (e.g. a blog)? Those are bound to have strings longer than 23 characters
<yorickpeterse> Other than "just deal with it" :)
<drbrain> they get regular allocations like 1.8
<drbrain> it's a speed and fragmentation help for short strings
<yorickpeterse> ah
brianpWins [brianpWins!~brianpWin@S01060024369f54ba.vn.shawcable.net] has joined #ruby-lang
<apeiros_> drbrain: how big can arrays be and still store the values in the struct itself?
<drbrain> I would guess 3
<drbrain> let me look
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
<drbrain> #define RARRAY_EMBED_LEN_MAX 3
<apeiros_> hm, I can see value in embedded strings of size 23
<apeiros_> but arrays with 3 or less items? is that something that occurs often? o0
<drbrain> no idea
<apeiros_> ah, hm, actually… if you've lots of tuples, it makes sense
<drbrain> yeah, it's probably application sensitive
<apeiros_> had that just recently when I tested an algorithm. Hoped to keep the ruby implementation. sadly it took ~600MB of RAM in ruby :-/
<drbrain> … clever, to store the embedded array length they use flags
<yorickpeterse> apeiros_: yeah, sadly Ruby isn't the most efficient language out there
<yorickpeterse> memory wise that is
<drbrain> I think it's better than PHP
<yorickpeterse> Oh hell yes
<drbrain> heh, there are no embedded regexps
gnufied [gnufied!~gnufied@122.172.224.153] has joined #ruby-lang
<drbrain> you'd be limited to 8 bytes (on 64 bit), so it's not worth it
robbyoconnor [robbyoconnor!~wakawaka@cpe-68-174-55-169.hvc.res.rr.com] has joined #ruby-lang
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby-lang
* apeiros_ gotta get some sleep
<apeiros_> n8
<apeiros_> and thanks for the info @ drbrain
<drbrain> any time!
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby-lang
<robgleeson> blah
<robgleeson> optimizing for a specific implementation of ruby sucks
<yorickpeterse> Which one?
<robgleeson> any
<drbrain> any of them
<yorickpeterse> heh
<yorickpeterse> Shitty example but it does show the huge difference in memory usage between PHP and Ruby: https://gist.github.com/1603531
zubyist [zubyist!~webs@lev92-2-82-66-108-42.fbx.proxad.net] has joined #ruby-lang
<drbrain> I read a full analysis on an array of PHP strings
<drbrain> I was really confused by all the extra pointers involved
<yorickpeterse> Yeah, arrays are pretty in-efficient
looopy [looopy!~looopy@pool-141-156-50-23.washdc.btas.verizon.net] has joined #ruby-lang
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
zuby [zuby!~webs@2a01:e35:2426:c2a0:3c92:ba29:9344:918f] has joined #ruby-lang
<zzak> is there an exception catch-all?
<whitequark> rescue Exception
<drbrain> rescue Exception
<drbrain> which grabs everything except fatal
<zzak> without begin/end?
<whitequark> drbrain: I wonder if you can technically raise a non-Exception object
<drbrain> whitequark: you can raise any object that responds to #exception
<whitequark> yes, but that converts it to an Exception descendant
<drbrain> and #exception must return an Exception subclass
<zzak> unexpected keyword_rescue, expecting $end
<whitequark> zzak: you either need begin/end or use rescue as a postfix statement
<whitequark> err, I was wrong
<zzak> thats what i thought
<whitequark> you need begin/end all the time.
<zzak> begin has to wrap what you plan on rescue'ing though, right?
<whitequark> yes
<zzak> i can't just begin;rescue Exception;end; for no reason
<zzak> but that's exactly what i want, haha
Jake232 [Jake232!~textual@5e0e64ca.bb.sky.com] has joined #ruby-lang
<zzak> catch, any and all, exceptions in the process
<whitequark> zzak: that's a valid statement (check it in irb), through it does not do anythgin
<zzak> Process#rescue?
<whitequark> I don't think this is possible
<zzak> would at_exit suffice?
<drbrain> zzak: there's at_exit
<whitequark> you can get the last exception (the one which was fatal to the process) within an at_exit block
<whitequark> it'll be aliased as $!
<drbrain> $! will be set if an exception was raised
<whitequark> but you cannot catch it there
<whitequark> i.e. the process will terminate anyway
<drbrain> you can delay process termination in an at_exit just fine
<drbrain> you can even register another at_exit to catch the next error
<shevy> hmm
<whitequark> yes. and if that's a daemon, you can use "exec __FILE__" to restart itself
<shevy> does at_exit work on a per-class basis? or is it global
<whitequark> shevy: global, and it's equivalent to END{} block AFAIK
<drbrain> why would you need to restart if you haven't exited?
<shevy> :(
<drbrain> just re-enter your control loop
<zzak> Kernel#at_exit right?
<drbrain> yeah
<zzak> thanks!
<whitequark> drbrain: to reset your internal state
<whitequark> including things like file descriptors and such
<drbrain> whitequark: if you have global state you didn't clean up when the exception was raised you're doing it wrong
<whitequark> drbrain: what about a file descriptor in a weird state?
<drbrain> which one?
<drbrain> the one you didn't close or restore in an ensure block?
<whitequark> oh, there are some possibilites. for example, a permanent iowait happens in some cases with removable devices
<whitequark> or serial ports
<whitequark> or I've encountered that with sockets once, through in the latter case I think I've missed something
<rue> So… what if you had a Process.rescue, which wrapped the entire program in a rescue block and exec'd that?
<whitequark> (not permanent iowait, but a weird half-closed state which you could not do anything with)
<zzak> rue: i'd be a happy man
<rue> I very much doubt that
<whitequark> drbrain: also, I'm not entirely sure what'll happen if you repeat your at_exit trick like 2000 times
<rue> zzak: But you could try
<drbrain> what is Process.rescue ?
<drbrain> whitequark: it just loops
<drbrain> I've just run 3 million
<whitequark> drbrain: yeah, I've checked it too
<drbrain> ruby -e '$a = 0; def register() $a += 1; p $a; at_exit { register } end; register'
petercooper [petercooper!~petercoop@82.144.254.2] has joined #ruby-lang
<whitequark> drbrain: by the way, I remember your nick from somewhere, but I can't quite recall it exactly
<drbrain> I've been using this nick for years
<whitequark> ah, you're Eric Hodel, and I at least follow you at twitter. sure.
<drbrain> yeah
jmontross [jmontross!~Adium@static-96-236-65-137.snfcca.dsl-w.verizon.net] has quit [#ruby-lang]
<petercooper> Castle of Dr Brain
<petercooper> I really liked that game. Being a dork and all that.
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby-lang
yfeldblum [yfeldblum!~Jay@c-98-218-48-253.hsd1.md.comcast.net] has joined #ruby-lang
lake [lake!~lake@li71-228.members.linode.com] has joined #ruby-lang
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby-lang
<drbrain> I never played it
mdel_ [mdel_!~mdel@pool-71-175-17-16.phlapa.fios.verizon.net] has joined #ruby-lang
confounds [confounds!~confounds@208.113.48.180] has joined #ruby-lang
darkf_ [darkf_!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
<rue> Heh
<zzak> works for me
butchanton [butchanton!~butchanto@vpn-sanfran.exacttarget.com] has joined #ruby-lang
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
wingless2434 [wingless2434!~chris@c-174-61-224-227.hsd1.wa.comcast.net] has joined #ruby-lang
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
eggman2001 [eggman2001!~shig@user-387hpcb.cable.mindspring.com] has quit [#ruby-lang]
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
abentspoon [abentspoon!~micah@173.247.201.130] has joined #ruby-lang
RomD` [RomD`!~Roman@nrbg-4d070207.pool.mediaWays.net] has joined #ruby-lang
empity [empity!~user@cpc1-aztw16-0-0-cust938.aztw.cable.virginmedia.com] has joined #ruby-lang
RomyEatsDrupal [RomyEatsDrupal!~stickycak@64.134.70.200] has joined #ruby-lang
<any-key> tdmackey: and here
<tdmackey> :p
Mchl [Mchl!~Mchl@h1881165560.rev.rootvps.pl] has joined #ruby-lang
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
cjs226 [cjs226!~cjs226@99-61-65-242.lightspeed.austtx.sbcglobal.net] has joined #ruby-lang
rushed [rushed!~rushed@cpe-70-116-11-35.austin.res.rr.com] has joined #ruby-lang
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has quit [#ruby-lang]
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
Carnage\ [Carnage\!~carnage@84-75-163-211.dclient.hispeed.ch] has joined #ruby-lang
darkf_ [darkf_!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
andrewhl [andrewhl!~andrew@24.246.14.26] has joined #ruby-lang