Topic for #ruby is now Ruby programming language || ruby-lang.org || RUBY SUMMER OF CODE! rubysoc.org/ || Paste >3 lines of text in http://pastie.org || Para a nossa audiencia em portugues http://ruby-br.org/
senj [senj!~senj@173-12-176-54-oregon.hfc.comcastbusiness.net] has joined #ruby
FiestaSmash [FiestaSmash!~thisisfak@c-24-30-117-33.hsd1.ga.comcast.net] has joined #ruby
MasterIdler__ [MasterIdler__!~MasterIdl@static-66-225-153-161.ptr.terago.net] has joined #ruby
mark_azevedo [mark_azevedo!~mark_azev@50-78-101-1-static.hfc.comcastbusiness.net] has joined #ruby
<FiestaSmash> Specific question for ruby on rails, say I wanted to send a specialized request to my application, would I have to contact the webmaster of my hosting to find the port to send to, or is it 3000 on most hosting servers?
strife25 [strife25!~strife25@cpe-098-026-018-050.nc.res.rr.com] has joined #ruby
<FiestaSmash> Remakably, it's free hosting, so there isnt much specific documentation for devving ruby applications on such samaritan hosts
<FiestaSmash> And I can't send directly to the server's IP
sorin [sorin!~sorin@66-168-185-16.dhcp.gwnt.ga.charter.com] has joined #ruby
<arex\> hum, i get a ThreadError as soon as I try to make a thread inside a file.each_line block, even though the thread does nothing at all
akem [akem!~akem@unaffiliated/akem] has joined #ruby
beilabs [beilabs!~jonathan@ppp59-167-171-134.static.internode.on.net] has joined #ruby
mikeycgto [mikeycgto!~mikeycgto@pdpc/supporter/active/mikeycgto] has joined #ruby
michaelh [michaelh!~Michael@c-98-213-112-209.hsd1.il.comcast.net] has joined #ruby
frostbytten [frostbytten!~frostbytt@design.abe.ufl.edu] has joined #ruby
<frostbytten> Is it possible to change the line endings that File.puts uses?
hadees [hadees!~hadees@72-48-91-73.dyn.grandenetworks.net] has joined #ruby
aantix [aantix!~jjones@70-36-141-115.dsl.dynamic.sonic.net] has joined #ruby
geaif [geaif!~geaif@7-239.62-188.cust.bluewin.ch] has joined #ruby
milktrader [milktrader!~milktrade@67-197-46-225.dsl.comporium.net] has joined #ruby
<canton7> frostbytten, set $\, then use print?
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
<shevy> whoa
djr [djr!~djr@dsl-208-196.madisontelco.com] has joined #ruby
<shevy> does that really work?
djr_ [djr_!~djr@dsl-208-196.madisontelco.com] has joined #ruby
<frostbytten> I dunno, trying to figure it out. Hasn't worked yet.
bigkm [bigkm!~bigkm@203-206-185-71.perm.iinet.net.au] has joined #ruby
<canton7> seemed to work for me when I gave it a quick test run
<canton7> that was to stdout though, not file
SamWhited [SamWhited!~SamWhited@c-71-56-64-198.hsd1.ga.comcast.net] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
randym [randym!~randym@113x33x226x118.ap113.ftth.ucom.ne.jp] has joined #ruby
vraa [vraa!~vraa@99-20-202-44.lightspeed.hstntx.sbcglobal.net] has joined #ruby
yfeldblum [yfeldblum!~Jay@c-98-218-48-253.hsd1.md.comcast.net] has joined #ruby
carlyle [carlyle!~carlyle@99-127-240-24.lightspeed.rlghnc.sbcglobal.net] has joined #ruby
<frostbytten> canton7: can you pastie your quick sample, I could be messing it up.
<frostbytten> I was researching it, in 1.9 it's easier (crlf_newline: true) but I have to be 1.8.7 compat
<canton7> $\ = "hi"; print "hello" => "hellohi". I was assuming that would do the same if $\ was \r\n or \n
<canton7> ah, backport of crlf_newline maybe?
Norrin [Norrin!~Norrin@c-67-160-193-132.hsd1.ca.comcast.net] has quit [#ruby]
<frostbytten> If I can get the $\ to work, I'll be happy.
<frostbytten> I wonder… let me check something out.
<frostbytten> Yep… doesn't work. But I'll figure something out (maybe back port)
counterbeing [counterbeing!~textual@c-98-248-176-29.hsd1.ca.comcast.net] has joined #ruby
<frostbytten> Or I could always print("something\r\n")
zenergi_ [zenergi_!~zenergi@137.110.38.117] has joined #ruby
zenergi_ [zenergi_!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
<frostbytten> not exactly what I'd like, but it will work for now
m0nki3 [m0nki3!~c0wCr@gateway/tor-sasl/m4tastati] has joined #ruby
* hkhalid slaps frostbytten around a bit with a large trout
* frostbytten eats trout
tobym [tobym!~tobym@pool-173-56-80-136.nycmny.fios.verizon.net] has joined #ruby
<hkhalid> lol
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
<frostbytten> because of the simple solution?
<frostbytten> :D
jrist-afk [jrist-afk!~jrist@184-96-228-247.hlrn.qwest.net] has joined #ruby
abstrusenick [abstrusenick!~abstrusen@bb220-255-53-87.singnet.com.sg] has joined #ruby
<frostbytten> Thanks for the slap though, I deserved that one. And thanks canton7 for the help, I wasn't googling what I wanted correctly apparently.
milktrader [milktrader!~milktrade@67-197-46-225.dsl.comporium.net] has joined #ruby
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
Targen [Targen!~iguana@190.39.181.108] has joined #ruby
`brendan [`brendan!~b@64-121-18-195.c3-0.upd-ubr1.trpr-upd.pa.cable.rcn.com] has joined #ruby
John_P [John_P!~john@cpc3-reig5-2-0-cust795.6-3.cable.virginmedia.com] has joined #ruby
jtmengel [jtmengel!~slm@c-67-176-116-43.hsd1.co.comcast.net] has joined #ruby
cjs [cjs!~cjs@41.98.156.220.st.bbexcite.jp] has joined #ruby
tuppy [tuppy!~quassel@ip68-231-151-143.tc.ph.cox.net] has joined #ruby
otakutomo [otakutomo!~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has joined #ruby
philcrissman [philcrissman!~philcriss@c-174-53-217-149.hsd1.mn.comcast.net] has joined #ruby
h4mz1d [h4mz1d!~hamfz@DHCP-206-206.resnet.ua.edu] has joined #ruby
j3r0m3 [j3r0m3!~j3r0m3@50-0-128-97.dsl.dynamic.sonic.net] has joined #ruby
djbkd [djbkd!d06d1e6f@gateway/web/freenode/ip.208.109.30.111] has joined #ruby
philcrissman [philcrissman!~philcriss@c-174-53-217-149.hsd1.mn.comcast.net] has joined #ruby
sdwrage [sdwrage!~sdwrage@cpe-184-57-123-50.columbus.res.rr.com] has joined #ruby
FxMasta [FxMasta!guru@41.251.43.76] has joined #ruby
Marco [Marco!~marco@Marco-2.Kiewit.Dartmouth.EDU] has joined #ruby
FxMasta [FxMasta!guru@41.251.43.76] has quit [#ruby]
tekknolagi [tekknolagi!~tekknolag@c-67-180-21-25.hsd1.ca.comcast.net] has joined #ruby
gillstein [gillstein!~jgill@cpe-98-14-249-94.nyc.res.rr.com] has joined #ruby
jbw [jbw!~jbw@dsl-044-084.cust.imagine.ie] has joined #ruby
crassus [crassus!~crassus@unaffiliated/crassus] has joined #ruby
<Boohbah> h = { name: "Apple", value: 0, name: "Orange", value: 0, name: "Banana", value: 0 }; h.each {|key, value| puts "#{key} is #{value}" }
<Boohbah> why does it only puts the last key/value pair?
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
<heftig> Boohbah: because you're overwriting earlier entries in the hash with the later ones
<Boohbah> ahh, deprecated syntax in 1.9
<Boohbah> oh?
<heftig> :name is a key and :value is a key
<heftig> { name: "Apple", name: "Orange" } first associates :name => "Apple", but then overwrites it with :name => "Orange"
<Boohbah> heftig: yes, i have confused my syntax, thank you
<heftig> you probably want { "Apple" => 0, "Orange" => 0, "Banana" => 0 }
<Boohbah> h = { "Apple" => 0, "Orange" => 0, "Banana" => 0 }; h.each {|key, value| puts "#{key} is #{value}" }
philcrissman [philcrissman!~philcriss@c-174-53-217-149.hsd1.mn.comcast.net] has joined #ruby
<Boohbah> works much better, thanks heftig
redgetan [redgetan!~reg@user227-168.wireless.utoronto.ca] has joined #ruby
redgetan [redgetan!~reg@user227-168.wireless.utoronto.ca] has quit [#ruby]
pacman23 [pacman23!~pacman23@user227-168.wireless.utoronto.ca] has joined #ruby
zenergi_ [zenergi_!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
dasfugufish [dasfugufish!~Adium@208-38-192-20.mammothnetworks.com] has joined #ruby
ipsifendus [ipsifendus!~ipsifendu@c-67-169-223-202.hsd1.or.comcast.net] has joined #ruby
h4mz1d [h4mz1d!~hamfz@130.160.249.68] has joined #ruby
<arex\> Why do the output get truncated (to width=80chars) when I do ruby.exe script.rb > file.txt?
<arex\> But when I just run it without redirecting to a file, the output shows up normally
clouder`grr [clouder`grr!nospam@cpe-24-242-30-84.elp.res.rr.com] has joined #ruby
<jlogsdon> arex\: that's very strange, but I unfortunately don't know anything about how Windows handles redirection
<jlogsdon> it could just be horribly bad at it, because who does that on windows, right?
kennyd [kennyd!~kennyd@93-138-234-20.adsl.net.t-com.hr] has quit [#ruby]
<clouder`grr> is Base64.encode64 supposed to give me a different result for the same image on windows and ubuntu? both 1.9.2p290?
<heftig> clouder`grr: ensure you read the image in binary mode
<arex\> jlogsdon: so it doesn't work the same way on Linux?
<clouder`grr> I can encode and decode and get the same image back on linux, but on windows it's munging half of it for some reason
<jlogsdon> nope
<arex\> jlogsdon: but if i do type file.txt > file2.txt long lines are not a problem
<arex\> so it must be ruby on windows
<jlogsdon> i dunno man. like i said, it's strange but i don't know how those things work on windows :)
<jlogsdon> and yes, must be. but i've never seen that happen
<heftig> clouder`grr: i.e. add a "b" to the modestring
<heftig> clouder`grr: does nothing on linux, prevents conversion of lineendings on windows
<clouder`grr> heftig, ok lemme give it a shot
<heftig> (do the same when you write the file)
pac1 [pac1!~pac1@pool-96-233-75-235.bstnma.fios.verizon.net] has joined #ruby
nari [nari!~nari@2001:268:306:1:f2de:f1ff:fe55:2de0] has joined #ruby
Azure [Azure!~azt@unaffiliated/azure] has joined #ruby
pacman23 [pacman23!~pacman23@user227-168.wireless.utoronto.ca] has joined #ruby
Guest98222 [Guest98222!~LessIsMor@2.176.141.26] has joined #ruby
<clouder`grr> heftig, thanks
ckrailo [ckrailo!~ckrailo@pool-71-97-77-8.dfw.dsl-w.verizon.net] has joined #ruby
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
FiestaSmash [FiestaSmash!~thisisfak@c-24-30-117-33.hsd1.ga.comcast.net] has quit [#ruby]
leex [leex!~leex@tvag.tvk.RWTH-Aachen.DE] has joined #ruby
banisterfiend [banisterfiend!~baniseter@115.189.205.227] has joined #ruby
anoNxeRo [anoNxeRo!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
havenn [havenn!~skipper@216.3.99.206] has joined #ruby
redgetan [redgetan!~reg@user227-168.wireless.utoronto.ca] has joined #ruby
<sgronblo> Anyone been able to use ruby-debug with 1.9?
Hanmac1 [Hanmac1!~hanmac@p50845366.dip0.t-ipconnect.de] has joined #ruby
diamonds [diamonds!~diamonds@c-67-186-134-22.hsd1.ma.comcast.net] has joined #ruby
diamonds [diamonds!~diamonds@unaffiliated/t0nic] has joined #ruby
13WAAJ28K [13WAAJ28K!~replore@203.152.213.161.static.zoot.jp] has joined #ruby
<diamonds> so I want to publish a jekyll blog to github but I want to compile the stuff locally so I can use plugins
<diamonds> has anyone done this?
<diamonds> basically I just need to figure out how to get the posts (or at least index.html) at the top of the repo so github will serve it properly
<diamonds> I know you can use github pages or whatever but then github compiles it and you have to use vanilla jekyll
counterbeing [counterbeing!~textual@c-24-4-206-189.hsd1.ca.comcast.net] has joined #ruby
Jarred [Jarred!Jarred@c-71-198-139-210.hsd1.ca.comcast.net] has joined #ruby
`brendan [`brendan!~b@64-121-18-195.c3-0.upd-ubr1.trpr-upd.pa.cable.rcn.com] has joined #ruby
<Jarred> Does Shoes make it difficult to make beautiful cross-platform desktop applications?
caveat- [caveat-!hoax@gateway/shell/bshellz.net/x-ewmyyqernxckhddb] has joined #ruby
nonotza [nonotza!~nonotza@cpe-72-225-173-7.nyc.res.rr.com] has joined #ruby
milktrader [milktrader!~milktrade@67-197-46-225.dsl.comporium.net] has joined #ruby
tomzx [tomzx!~tomzx@dsl-156-68.aei.ca] has joined #ruby
janissary [janissary!~user@nmd.sbx08279.wintefl.wayport.net] has joined #ruby
h4mz1d [h4mz1d!~hamfz@99-0-57-199.lightspeed.tsclal.sbcglobal.net] has joined #ruby
PragCypher [PragCypher!~kapone@208.157.149.45] has joined #ruby
<shevy> I think Shoes is dead
cableray [cableray!~cableray@wl-dhcp158-125.Mines.EDU] has joined #ruby
djr [djr!~djr@dsl-208-196.madisontelco.com] has joined #ruby
djr_ [djr_!~djr@dsl-208-196.madisontelco.com] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
carlyle [carlyle!~carlyle@99-127-240-24.lightspeed.rlghnc.sbcglobal.net] has joined #ruby
abstrusenick [abstrusenick!~abstrusen@bb119-74-136-249.singnet.com.sg] has joined #ruby
mdel [mdel!~mdel@pool-71-175-17-16.phlapa.fios.verizon.net] has joined #ruby
<Jarred> Has anyone ever noticed that Why the Lucky Stiff looks a lot like Jack Black?
<banisterfiend> Jarred: Yeah
scribbles [scribbles!~scribbles@babel.sn0wcrash.info] has joined #ruby
adamkittelson [adamkittelson!~adamkitte@c-24-23-252-19.hsd1.ca.comcast.net] has joined #ruby
Behi [Behi!~Behi@203-206-227-95.perm.iinet.net.au] has joined #ruby
<shevy> is jack black the fat guy?
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
<banisterfiend> shevy: you seem to have a fat fetish
nyuszika7h [nyuszika7h!nyuszika7h@unaffiliated/nyuszika7h] has joined #ruby
milktrader_ [milktrader_!~milktrade@67-197-46-225.dsl.comporium.net] has joined #ruby
milktrader [milktrader!~milktrade@67.197.35.103] has joined #ruby
horieyui [horieyui!~horieyui@113.106.212.37] has joined #ruby
Doppp [Doppp!~Doppp@unaffiliated/doppp] has joined #ruby
juarlex [juarlex!~juarlex@201.124.160.19] has joined #ruby
<shevy> banisterfiend just trying to remember who jack black was. the one with the puffed up cheeks like a hamster
achiu [achiu!~Adium@ip68-5-18-17.oc.oc.cox.net] has joined #ruby
rpowell [rpowell!~rpowell@CPE-121-217-0-40.lnse1.cht.bigpond.net.au] has joined #ruby
brngardner [brngardner!~brngardne@c-98-192-3-166.hsd1.ga.comcast.net] has joined #ruby
milktrader [milktrader!~milktrade@67.197.35.103] has quit [#ruby]
Know1edge [Know1edge!~Know1edge@c-69-247-141-247.hsd1.tn.comcast.net] has joined #ruby
davidcelis [davidcelis!~david@c-76-115-58-79.hsd1.or.comcast.net] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@c-98-203-41-91.hsd1.fl.comcast.net] has joined #ruby
achiu [achiu!~Adium@ip68-5-18-17.oc.oc.cox.net] has joined #ruby
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
colint [colint!~ColinT@189.164.82.90] has joined #ruby
randym [randym!~randym@113x33x226x118.ap113.ftth.ucom.ne.jp] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
GreaseMonkey [GreaseMonkey!~gm@unaffiliated/greasemonkey] has joined #ruby
eywu [eywu!~Adium@205-170-107-4.dia.static.qwest.net] has joined #ruby
mdel [mdel!~mdel@pool-71-175-17-16.phlapa.fios.verizon.net] has joined #ruby
minijupe [minijupe!~benlieb@adsl-74-243-178-125.ard.bellsouth.net] has joined #ruby
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
bbttxu [bbttxu!~adam@pool-71-96-208-205.dfw.dsl-w.verizon.net] has quit [#ruby]
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
ujihisa [ujihisa!~ujihisa@64-46-24-16.dyn.novuscom.net] has joined #ruby
MUILTR [MUILTR!~MLINTH@adsl-98-80-206-135.mcn.bellsouth.net] has joined #ruby
janissar` [janissar`!~user@adsl-98-85-0-232.mco.bellsouth.net] has joined #ruby
radic_ [radic_!~radic@dslb-178-002-212-018.pools.arcor-ip.net] has joined #ruby
flip_digits [flip_digits!~textual@c-76-122-14-228.hsd1.fl.comcast.net] has joined #ruby
Kiall [Kiall!~Kiall@kohana/developer/kiall] has joined #ruby
stringoO [stringoO!~JLstring@bas1-toronto42-1279598844.dsl.bell.ca] has joined #ruby
x0F__ [x0F__!~x0F@unaffiliated/x0f] has joined #ruby
artOfWar [artOfWar!~artofwar@c-67-160-220-244.hsd1.ca.comcast.net] has joined #ruby
rms-ict [rms-ict!~rmmsr@tmo-107-53.customers.d1-online.com] has joined #ruby
friskd [friskd!~friskd@cpe-76-172-2-7.socal.res.rr.com] has joined #ruby
rms-ict [rms-ict!~rmmsr@tmo-107-53.customers.d1-online.com] has joined #ruby
emmanuel_ [emmanuel_!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
artOfWar [artOfWar!~artofwar@nat/yahoo/x-semhkilwfbarmfgm] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
rippa [rippa!~splitta@85.158.54.234] has joined #ruby
banister_ [banister_!~baniseter@122.63.135.57] has joined #ruby
albemuth [albemuth!~albemuth@201.198.78.18] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
rms-ict_ [rms-ict_!~rmmsr@78.111.65.70] has joined #ruby
andrewhl [andrewhl!~andrew@24.246.14.26] has joined #ruby
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
rushed [rushed!~rushed@cpe-70-116-11-35.austin.res.rr.com] has joined #ruby
Pip [Pip!~Pip@176.214.13.82] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
somebody_ [somebody_!~notbrent@142.179.34.62] has joined #ruby
statbot [statbot!~nodebot@ec2-50-19-8-171.compute-1.amazonaws.com] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
igotnolegs [igotnolegs!~igotnoleg@75-162-83-166.slkc.qwest.net] has joined #ruby
frozenskater [frozenskater!~chatzilla@rrcs-76-79-225-65.west.biz.rr.com] has joined #ruby
tuppy_ [tuppy_!~quassel@ip68-231-151-143.tc.ph.cox.net] has joined #ruby
banisterfiend [banisterfiend!~baniseter@122.63.135.57] has joined #ruby
<frozenskater> help I'm trying to install redcar(a text eitor) and this happens http://pastie.org/3170427. Rubygems is up to date. what is going wrong
banister_ [banister_!~baniseter@118.82.185.158] has joined #ruby
Pip [Pip!~Pip@176.214.13.82] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
philcrissman [philcrissman!~philcriss@c-174-53-217-149.hsd1.mn.comcast.net] has joined #ruby
artOfWar [artOfWar!~artofwar@nat/yahoo/x-uodwcvdestmftzym] has joined #ruby
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
juarlex [juarlex!~juarlex@201.124.160.19] has joined #ruby
<shevy> frozenskater that command works for me
<shevy> my gem version is 1.8.12
<shevy> what is yours
tuppy [tuppy!~quassel@ip68-231-151-143.tc.ph.cox.net] has joined #ruby
abstrusenick [abstrusenick!~abstrusen@bb119-74-136-249.singnet.com.sg] has joined #ruby
friskd_ [friskd_!~friskd@cpe-76-172-2-7.socal.res.rr.com] has joined #ruby
jlogsdon [jlogsdon!~jlogsdon@c-67-169-79-114.hsd1.ca.comcast.net] has joined #ruby
wassy121 [wassy121!~samuel@pool-96-244-18-74.bltmmd.fios.verizon.net] has joined #ruby
<wassy121> http://pastebin.ca/2102380 - Anyone care to offer a "more ruby" way to do what that code does?
<wassy121> Just searches ENV['PATH'] to see if a file is there. But I know there should be a better way with collect/inject
Sailias__ [Sailias__!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby
<banister_> wassy121: look up Enumerable#select
kawa_xxx [kawa_xxx!~kawa_xxx@w0109-49-133-3-1.uqwimax.jp] has joined #ruby
otakutomo [otakutomo!~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has joined #ruby
fungoat [fungoat!~fungoat@184.91.163.230] has joined #ruby
ckrailo_ [ckrailo_!~ckrailo@208.86.167.247] has joined #ruby
jtmengel [jtmengel!~slm@c-67-176-116-43.hsd1.co.comcast.net] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby
v0n [v0n!~v4n@bas1-montreal19-1177820429.dsl.bell.ca] has joined #ruby
gianlucadv [gianlucadv!~gianlucad@109.53.144.254] has joined #ruby
mdel__ [mdel__!~mdel@pool-71-175-17-16.phlapa.fios.verizon.net] has joined #ruby
statbot [statbot!~nodebot@ec2-50-16-118-40.compute-1.amazonaws.com] has joined #ruby
tonini [tonini!~zastav@edge.garaio.com] has joined #ruby
indeterminate [indeterminate!~sei@user-3c2h3m6.cable.mindspring.com] has joined #ruby
<v0n> is there a special value in an_array[offset, limit] which will return the whole array?
<banister_> v0n: array[0,-1]
<v0n> banister_, actually no
<v0n> array[0..-1] does it, but not with 2 args
<banister_> v0n: ah, array[0, array.size]
<v0n> hum, there's no magic i can use to do that so... I
<v0n> 'I'll have to check the passed value anyway
<v0n> thx
<banister_> v0n: np pig
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
<v0n> banister_, ?
idiocrash [idiocrash!~idiocrash@040.139-78-65.ftth.swbr.surewest.net] has joined #ruby
<idiocrash> hello, what's the best gem for parsing RSS feeds?
<idiocrash> I want to loop through each post in a feed, and insert the different fields into database tables
<v0n> idiocrash, a while ago I used simple-rss gem which worked pretty well
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
shadoi [shadoi!~Adium@c-71-202-122-8.hsd1.ca.comcast.net] has joined #ruby
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby
albemuth [albemuth!~albemuth@201.198.78.18] has joined #ruby
n8ji [n8ji!~n8ji@c-76-105-192-7.hsd1.or.comcast.net] has joined #ruby
knightsamar [knightsamar!75c37246@gateway/web/freenode/ip.117.195.114.70] has joined #ruby
luminare [luminare!~kaneda@5acb1c98.bb.sky.com] has joined #ruby
<knightsamar> hi! i have libruby installed and i still get openssl required when running rake (rvm, ruby 1.8.7, gems 1.4.2, ubuntu 10.10)
<knightsamar> any hints?
djdb [djdb!~digitalbo@linux.minsk.tutby.com] has joined #ruby
ipsifendus [ipsifendus!~ipsifendu@c-67-169-223-202.hsd1.or.comcast.net] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
v0n [v0n!~v4n@vpn.touchtunes.com] has joined #ruby
samuel02 [samuel02!~samuel02@c-46-162-87-154.cust.bredband2.com] has joined #ruby
ckrailo [ckrailo!~ckrailo@208.86.167.247] has joined #ruby
raincole_ [raincole_!~raincole@140.112.239.113] has joined #ruby
looopy [looopy!~looopy@pool-141-156-60-133.washdc.btas.verizon.net] has joined #ruby
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
axl_ [axl_!~axl@173-11-52-113-Minnesota.hfc.comcastbusiness.net] has joined #ruby
tomzx [tomzx!~tomzx@dsl-156-68.aei.ca] has joined #ruby
freelanceful [freelanceful!~jamesfend@c-71-228-225-167.hsd1.tn.comcast.net] has joined #ruby
sdwrage [sdwrage!~sdwrage@cpe-184-57-123-50.columbus.res.rr.com] has quit [#ruby]
senny [senny!~senny@77-56-67-120.dclient.hispeed.ch] has joined #ruby
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
h4mz1d [h4mz1d!~hamfz@c-68-62-113-11.hsd1.al.comcast.net] has joined #ruby
JohnBat26 [JohnBat26!~Eugene@89.175.77.79] has joined #ruby
burgestrand [burgestrand!~burgestra@host.62.65.124.23.bitcom.se] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@adsl-99-35-225-92.dsl.pltn13.sbcglobal.net] has joined #ruby
eighty4 [eighty4!~eighty4@unaffiliated/eighty4] has joined #ruby
ctp [ctp!~ctp@dslc-082-083-142-150.pools.arcor-ip.net] has joined #ruby
thone_ [thone_!~thone@g230185109.adsl.alicedsl.de] has joined #ruby
Gertm [Gertm!~Gertm@dD5768144.access.telenet.be] has joined #ruby
DeadZen [DeadZen!~deadzen@deadzen.com] has joined #ruby
si14 [si14!u2619@gateway/web/irccloud.com/x-zmpwrvflxkyvujnp] has joined #ruby
stoffus [stoffus!~stoffus@2001:9b0:1:dead:129a:ddff:fe58:6835] has joined #ruby
<DeadZen> I demand that ruby include parse transformations!
ion [ion!~ion@heh.fi] has joined #ruby
<si14> DeadZen: +1. it's kinda childish to say "well we have do blocks so please build all your DSLs with that"
<DeadZen> I mean i can't even take ruby seriously if it doesn't have them
<Gertm> Unacceptable without them.
<si14> not really better than Java I suppose.
stoffus [stoffus!~stoffus@2001:9b0:1:dead:129a:ddff:fe58:6835] has quit [#ruby]
stoffus [stoffus!~stoffus@2001:9b0:1:dead:129a:ddff:fe58:6835] has joined #ruby
<Gertm> Well if we don't have parse transformations, atleast java is fast..
frerich [frerich!~frerich@mail.froglogic.com] has joined #ruby
frerich [frerich!~frerich@kde/raabe] has joined #ruby
<si14> I've started to write Lisp instead of Java because of macroses. Than I've discovered Erlang with it's precious parse transformations. And now one of my colleague are pushing RoR to our production — and Ruby doesn't even have PTs
Mahoek [Mahoek!~Mahoek@ip51ceb6d4.adsl-surfen.hetnet.nl] has joined #ruby
<si14> I'm ruined deep inside. Feels really, really bad.
<banister_> si14: ruby has other things
<si14> banister_: like what? how can I modify sources programattically without much pain?
<banister_> si14: you can 'fake' macros very well with blocks, for example. And ruby has a very flexible syntax enabling you to create DSLs
<si14> banister_: si14> DeadZen: +1. it's kinda childish to say "well we have do blocks so please build all your DSLs with that"
floydunn20183 [floydunn20183!~tim@41-133-223-217.dsl.mweb.co.za] has joined #ruby
floydunn20183 [floydunn20183!~tim@41-133-223-217.dsl.mweb.co.za] has quit [#ruby]
<banister_> si14: blocks aren't the only thing enabling DSLs, i said 'flexible syntax'.
<si14> it's a common sense that says that blocks are nothing compared to proper macroses
floydunn20183 [floydunn20183!~tim@41-133-223-217.dsl.mweb.co.za] has joined #ruby
<rippa> but they also work
<DeadZen> but I just want ruby to have parse transforms, I don't understand why it doesn't have them already...
<DeadZen> its not the same!
<rippa> because only erlang has it?
<si14> rippa: lisps has same thingies
<si14> rippa: and Dylan
floydunn20183_ [floydunn20183_!~tim@41.160.186.34] has joined #ruby
<banister_> DeadZen: give me an example of something you can achieve with parse transforms
<banister_> and i'll see if it's possible to do something similar with ruby
<rippa> google only gives erlang on "parse transform"
burgestrand1 [burgestrand1!~burgestra@host.62.65.124.23.bitcom.se] has joined #ruby
<si14> rippa: and even nemerle has something similar
<banister_> si14: mention a mainstream languages, instead of these strange exotica
<si14> rippa: and that's MS shit, it's just a shame to be worse than MS in something
panterax [panterax!~panterax@31.176.150.129] has joined #ruby
<DeadZen> banister_: how bout forcing variable declaration immutability while using a mutable interface
<rippa> si14: explain what a parse transform is
<si14> banister_: compile-time computations?
<rippa> never heard of it
<si14> rippa: operations on AST
<banister_> si14: it's a dyamic language, fucko, there is no such thing as 'compile-time'
<si14> banister_: Lisps are dynamic too
<banister_> si14: ruby is interpreted
Skaag [Skaag!~Skaag@cpe-67-247-51-89.nyc.res.rr.com] has joined #ruby
<banister_> there is no 'compile time'
<si14> banister_: learn some SICP please before speaking about something being dynamic or not
<si14> banister_: so does Scheme
<banister_> i meant interpeted, not dynamic, sorry
<banister_> si14: look, fight with your colleagues about this, i dont actually care if you're upset about your companies choice
<banister_> company's
<DeadZen> fucko is a dynamic language?
<banister_> DeadZen: yeah it's brainfuck's girlfriend
<havenn> DeadZen: Ruby has no use for parse transforms, no compile time.
<havenn> good lord..
<si14> banister_: Scheme is interpreted and has macroses that are applied in a time that is "compile-time" for this particular piece of code
<si14> banister_: so does Common Lisp
floydunn20183 [floydunn20183!~tim@41-133-223-217.dsl.mweb.co.za] has joined #ruby
Gertm [Gertm!~Gertm@dD5768144.access.telenet.be] has quit ["WeeChat 0.3.5"]
<havenn> si14: Ruby doesn't have macros
DeadZen [DeadZen!~deadzen@deadzen.com] has quit ["Leaving"]
<si14> banister_: so please don't bitch about things that you are just ignorant about
Spockz [Spockz!~Spockz@109.37.185.51] has joined #ruby
<si14> havenn: that's the question that has been stated
<rippa> si14: don't bitch about things nobody knows or cares about
<si14> rippa: blahblahblah
<rippa> I still don't know why would I want a "parse transform"
ujihisa [ujihisa!~ujihisa@64-46-24-16.dyn.novuscom.net] has joined #ruby
<si14> rippa: why didn't you write some Java instead of Ruby? no one knows about Ruby, it's some marginal shit compared to Java
<rippa> I don't like java
<rippa> it's not pretty
<havenn> Ruby is friendly, pretty, elegant, concise. Java is mean, ugly, brutish, and crufty.
<si14> Erlang is friendly, pretty, elegant, concise. Java is mean, ugly, brutish, and crufty. And even doesn't have macroses.
mafolz [mafolz!~mafolz@dhcp50-210.start.uni-saarland.de] has joined #ruby
CodyMaverick [CodyMaverick!~cody@80.249.82.205] has joined #ruby
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.44] has joined #ruby
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby
zommi [zommi!quassel@nat/ibm/x-rrptucpmqbmjikda] has joined #ruby
batlock666 [batlock666!~quassel@bvderbau.ugent.be] has joined #ruby
<GreaseMonkey> actually ruby's not particularly obscure
<GreaseMonkey> oh btw people still code in COBOL
<GreaseMonkey> and *FORTRAN* of all languages
heftig [heftig!~Jan@archlinux/developer/heftig] has joined #ruby
tuxaddicted [tuxaddicted!~tuxaddict@202.60.13.34] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
<sgronblo> yay language nerd war!
jbpros [jbpros!~jbpros@100-178-112-217.dyn.adsl.belcenter.be] has joined #ruby
Sliker [Sliker!~ponies@216.66.125.91.rb4.adsl.brightview.com] has joined #ruby
blacktow3x [blacktow3x!~blacktow3@41.249.7.87] has joined #ruby
tuppy_ [tuppy_!~quassel@ip68-231-151-143.tc.ph.cox.net] has joined #ruby
ujihisa [ujihisa!~ujihisa@64-46-24-16.dyn.novuscom.net] has joined #ruby
Locke23rus [Locke23rus!~quassel@188.162.162.83] has joined #ruby
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby
Azure|netbook [Azure|netbook!~azt@unaffiliated/azure] has joined #ruby
burgestrand [burgestrand!~burgestra@2.66.233.221.mobile.tre.se] has joined #ruby
blacktow3x [blacktow3x!~blacktow3@41.249.7.87] has quit ["Quitte"]
trivol [trivol!~aurelien@81.57.175.21] has joined #ruby
maletor [maletor!~maletor@c-69-181-24-86.hsd1.ca.comcast.net] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
<nobitanobi> morning
tranny [tranny!~vbond007@unaffiliated/vagabond007] has joined #ruby
<wallerdev> mroing
ctp [ctp!~ctp@port-87-234-198-134.static.qsc.de] has joined #ruby
axilla [axilla!~axilla@c-71-234-169-157.hsd1.vt.comcast.net] has joined #ruby
<rippa> mirroring
cylence [cylence!~cylence@c-98-248-41-184.hsd1.ca.comcast.net] has joined #ruby
pi3r [pi3r!~pi3r@LSt-Amand-152-32-39-189.w80-11.abo.wanadoo.fr] has joined #ruby
toy_battery [toy_battery!~choldbroo@c-67-181-185-107.hsd1.ca.comcast.net] has joined #ruby
rms-ict [rms-ict!~rmmsr@pd95ce776.dip0.t-ipconnect.de] has joined #ruby
KaCzY [KaCzY!~K@abco157.neoplus.adsl.tpnet.pl] has joined #ruby
achiu [achiu!~Adium@ip68-5-18-17.oc.oc.cox.net] has joined #ruby
stdcall [stdcall!~scriper@181.208.73.94.ip.orionnet.ru] has joined #ruby
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
<rly> GreaseMonkey: Fortran has its uses.
<rly> Elegancy is just not one of them.
John_P [John_P!~john@cpc3-reig5-2-0-cust795.6-3.cable.virginmedia.com] has joined #ruby
<Boohbah> (07:39) ( si14) rippa: why didn't you write some Java instead of Ruby? no one knows about Ruby, it's some marginal shit compared to Java
<rly> si14: and yes, you are right that Common Lisp/Scheme/Smalltalk are 'superior' to Ruby in a sense, but apparently the economic impact of Ruby is larger than of those other languages. Talking about it in a channel with vested interests is not going to get you anywhere.
<Boohbah> this is just not true
<Boohbah> lots of people know about ruby
<rly> Boohbah: if we define marginal as less than 5%, then it is true.
<rly> Perhaps it isn't 'shit', but it isn't exactly a stable platform.
<si14> rly: in fact, I appreciate Ruby and I really love RoR. so it was trolling at 99.9%
<tranny> lol
<Boohbah> si14: glad someone is trying to liven up the discussion in here :)
<si14> btw, did you hear about this one: https://github.com/erlyvideo/rack ?
<rly> I just want software that works; if I have to use Ruby to solve one of my problems, so be it.
<ion> AFAIU someone had complained about Erlang not having Ruby’s do blocks on an Erlang channel/mailin list or something and that inspired some Erlang people to come here to troll about Ruby not having parse transforms. :-P
<si14> basically it's a tool to run rails under Erlang webserver. performance is somewhat close to top-notch servers like nginx, but the thing is that you can seamlessly integrate your mostly static Rails stuff and dynamic Erlang goodness
<havenn> ion: Aha, that explains... hehe.
snearch [snearch!~snearch@g231108120.adsl.alicedsl.de] has joined #ruby
tvo [tvo!~tvo@katapult/developer/tvo] has joined #ruby
<rly> I have rvm installed, I got myself a newer Ruby interpreter. Is that the only thing rvm does?
bbttxu [bbttxu!~adam@pool-71-96-208-205.dfw.dsl-w.verizon.net] has joined #ruby
snearch [snearch!~snearch@g231108120.adsl.alicedsl.de] has joined #ruby
pen [pen!~pen@140.112.30.144] has joined #ruby
Spockz [Spockz!~Spockz@095-097-113-150.static.chello.nl] has joined #ruby
BiHi [BiHi!~bihi@oahulabs-221-158.cnt.nerim.net] has joined #ruby
shevy [shevy!~shevy@178-191-248-227.adsl.highway.telekom.at] has joined #ruby
tranny [tranny!~vbond007@unaffiliated/vagabond007] has quit [#ruby]
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
Barakas [Barakas!~v@77.242.201.52] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@46-64-51-175.zone15.bethere.co.uk] has joined #ruby
freelanceful [freelanceful!~jamesfend@c-71-228-225-167.hsd1.tn.comcast.net] has joined #ruby
dazoakley [dazoakley!~dazoakley@hocuspokus.vm.bytemark.co.uk] has joined #ruby
cyri_ [cyri_!~cyri_@236.200.72.86.rev.sfr.net] has joined #ruby
hemanth [hemanth!~hemanth@121.244.159.130] has joined #ruby
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby
yxhuvud [yxhuvud!mongo@h-49-97.a212.priv.bahnhof.se] has joined #ruby
trivol [trivol!~aurelien@gra94-1-81-57-175-179.fbx.proxad.net] has joined #ruby
canton7 [canton7!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
<rly> Never mind.
caaakeeey [caaakeeey!~caaakeeey@gatekeeper-ext.zeus.com] has joined #ruby
<toy_battery> what do you mean?
jds [jds!~jds@82.132.239.150] has joined #ruby
dekroning [dekroning!~dekroning@541B931D.cm-5-4c.dynamic.ziggo.nl] has joined #ruby
avitzurel [avitzurel!~avitzurel@212.179.244.22] has joined #ruby
friskd [friskd!~friskd@cpe-76-172-2-7.socal.res.rr.com] has joined #ruby
tcurdt [tcurdt!~tcurdt@p5B03DD21.dip.t-dialin.net] has joined #ruby
alem0lars [alem0lars!~quassel@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
gregorg [gregorg!~Greg@78.155.152.6] has joined #ruby
gregorg [gregorg!~Greg@unaffiliated/gregorg] has joined #ruby
josesaldana [josesaldana!~josesalda@186.73.99.124] has joined #ruby
friskd [friskd!~friskd@cpe-76-172-2-7.socal.res.rr.com] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
p1d [p1d!~p1d@ns1.vonaffenfels.de] has joined #ruby
<rly> ri Array
<rly> Nothing known about Array
<rly> Why doesn't that work?
<heftig> no magnets
<heftig> i guess the docs weren't built
tvo [tvo!~tvo@katapult/developer/tvo] has joined #ruby
<rly> Perhaps it is difficult for you to understand such questions. How can it be made to work? I installed ruby in various ways (I have one from my OS and one from rvm, now why can't it just say 'if you want to have the docs, install X')
mk03 [mk03!~mk03@61.245.119.34.er.eaccess.ne.jp] has joined #ruby
<rly> I already answered this question myself too.
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
<rly> Except, how documentation can use 100% of one core is beyond me.
<rly> Who wrote it such that it is that slow?
<rly> Or wth is it doing that is so complicated?
<heftig> what's using 100%?
<heftig> ri?
gianlucadv [gianlucadv!~gianlucad@st-dellaved.statistica.unimib.it] has joined #ruby
<rly> heftig: some ruby process generating 'all documentation'.
<heftig> that's going to take a while
<rly> It wasn't that bad, it took about 15 seconds.
jds [jds!~jds@188-220-60-85.zone11.bethere.co.uk] has joined #ruby
michael_mbp [michael_mbp!~Marin@62.215.214.4] has joined #ruby
<rly> irb > require "rubygems" returns false. How do I make it return true? I am using an rvm version of Ruby.
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
<rly> I suppose the instructions suck/are out of date.
<banister_> rly: a return value of false means it's already required
tessi [tessi!~tessi@pdpc/supporter/student/tessi] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby
pen [pen!~pen@140.112.30.144] has joined #ruby
EddieS [EddieS!~ed@212.59.167.161] has joined #ruby
canton7 [canton7!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
adman65 [adman65!~adman65@cs181188119.pp.htv.fi] has joined #ruby
geaif [geaif!~geaif@7-239.62-188.cust.bluewin.ch] has joined #ruby
nari [nari!~nari@raichu.netlab.jp] has joined #ruby
tessi [tessi!~tessi@pdpc/supporter/student/tessi] has joined #ruby
nicksmith [nicksmith!~nick@173.214.173.94] has joined #ruby
kennethreitz [kennethreitz!~kennethre@173-13-176-158-sfba.hfc.comcastbusiness.net] has joined #ruby
adeponte_ [adeponte_!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
Sailias__ [Sailias__!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby
rpowell [rpowell!~rpowell@CPE-121-217-0-40.lnse1.cht.bigpond.net.au] has joined #ruby
rpowell [rpowell!~rpowell@CPE-121-217-0-40.lnse1.cht.bigpond.net.au] has quit [#ruby]
rpowell [rpowell!~rpowell@CPE-121-217-0-40.lnse1.cht.bigpond.net.au] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
achiu [achiu!~Adium@ip68-5-18-17.oc.oc.cox.net] has joined #ruby
adeponte_ [adeponte_!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
panterax [panterax!~panterax@31.176.182.142] has joined #ruby
lorenzo_ [lorenzo_!~quassel@217.33.106.3] has joined #ruby
lorenzo [lorenzo!~quassel@217.33.106.3] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
adeponte_ [adeponte_!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
adeponte_ [adeponte_!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
crodas [crodas!~crodas@git.crodas.org] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
adeponte_ [adeponte_!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
yxhuvud [yxhuvud!mongo@h-49-97.a212.priv.bahnhof.se] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
<diverdude> I am getting this error: Gem::SourceIndex#add_spec called from /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:127 -> that line containing: add_spec gemspec if gemspec. Do you know how to get rid of that error?
rottenrec1 [rottenrec1!~ADMIN@75-140-8-252.static.rvsd.ca.charter.com] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
adeponte_ [adeponte_!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
rottenrec1 [rottenrec1!~ADMIN@75-140-8-252.static.rvsd.ca.charter.com] has joined #ruby
rottenrecords [rottenrecords!~calvin@pool-74-100-117-52.lsanca.dsl-w.verizon.net] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
<diverdude> anyone?
adeponte_ [adeponte_!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
bsbravo [bsbravo!~BrunoSoar@187.72.55.179] has joined #ruby
<diverdude> The full error is: Gem::SourceIndex#add_spec called from /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:127. NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
leehambley [leehambley!~codebeake@pd956c64f.dip0.t-ipconnect.de] has joined #ruby
<Muz> diverdude: you've given no hint on what you're actually doing that results in that error.
<diverdude> Muz, im running git-daemon from gitorious
<leehambley> how should one ensure when building ruby from source that the 1.9.3-p0 headers are moved into -/include/ruby-1.9.1/ruby-1.9.3-p0
ion [ion!~ion@heh.fi] has quit ["thegame"]
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
adeponte_ [adeponte_!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
xec [xec!~xec@188.95.241.142] has joined #ruby
adeponte_ [adeponte_!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
dkannan [dkannan!u480@gateway/web/irccloud.com/x-apckxkefweksftpg] has joined #ruby
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.47] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
rb2k [rb2k!~rb2k@HSI-KBW-078-042-219-156.hsi3.kabel-badenwuerttemberg.de] has joined #ruby
heftig [heftig!~Jan@gw-2s00.inf.fh-bonn-rhein-sieg.de] has joined #ruby
rottenrec [rottenrec!~calvin@pool-74-100-117-52.lsanca.dsl-w.verizon.net] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
seivan [seivan!~seivan@bb121-6-236-4.singnet.com.sg] has joined #ruby
caveat- [caveat-!hoax@gateway/shell/bshellz.net/x-fdhbzvealthhhhhs] has joined #ruby
senny [senny!~senny@edge.garaio.com] has joined #ruby
faber [faber!~faber@ppp-34-25.26-151.libero.it] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
davidpk [davidpk!~r00t@5e0a2c17.bb.sky.com] has joined #ruby
<davidpk> Is there any way with a regexp match that i can obtain the raw character-range data of the match?
<davidpk> eg. "hello world!".match /hello (.+?)!/ #=> ["hello world!", "world"]
<davidpk> can i instead get something like
<davidpk> "hello world!".match /hello (.+?)!/ #=> [0..11, 6..10]
<rippa> look at MatchData class
impulze [impulze!~impulze@eta-ori.net] has joined #ruby
<rippa> methods such as begin, end, offset
<davidpk> aha, thanks
<impulze> if i want to render a different form (in rails) for the same model, how would i implement that? (i have _form.html.haml and _form_another.html.haml)
FPSDavid [FPSDavid!4c691a84@gateway/web/freenode/ip.76.105.26.132] has joined #ruby
FPSDavid [FPSDavid!4c691a84@gateway/web/freenode/ip.76.105.26.132] has quit [#ruby]
mhi^ [mhi^!~mhi@dslb-178-008-044-235.pools.arcor-ip.net] has joined #ruby
seme [seme!5bd43105@gateway/web/freenode/ip.91.212.49.5] has joined #ruby
<seme> hi guys can anyone tell me why assert_equal [], array[4,1] is true but assert_equal nil, array[5,0] is also true for the array array = [:peanut, :butter, :and, :jelly]... for that array both 4 and 5 are out of range for starting points so I would expect them both to return nil
provideal [provideal!~hornp@p4FFF8371.dip.t-dialin.net] has joined #ruby
<seme> sorry for such a newbie question... I'm reading the kones guide for ruby and this one just stumps me
<banister_> seme: google it
Sliker [Sliker!~ponies@91.125.66.216] has joined #ruby
mhi^_ [mhi^_!~mhi@dslb-188-102-166-235.pools.arcor-ip.net] has joined #ruby
skaczor [skaczor!~quassel@mail.prognosoft.biz] has joined #ruby
cousine [cousine!~cousine@41.32.101.235] has joined #ruby
<provideal> Hey folks, is there a sequence generation mechanism in ruby, as in scala: http://www.scala-lang.org/node/111 ? I know it can be done with ranges, select, map, and so on, but sometimes a shorthand would just be great.
<seme> banister_: thanks.... I did and read the class library docs but it is odd.. they seem to indicate that the slice array[4,1] or array[4,0] should be nil
<seme> thanks banister_ I didn't see that
berkes [berkes!~ber@indebossenvanleusden.xs4all.nl] has joined #ruby
<rippa> provideal: how is it shorter in scala than in ruby?
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
omry_ [omry_!~omry@DSL212-235-83-63.bb.netvision.net.il] has joined #ruby
ephemerian [ephemerian!~ian@82-69-1-248.dsl.in-addr.zen.co.uk] has joined #ruby
skaczor [skaczor!~quassel@mail.prognosoft.biz] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has quit [#ruby]
<seme> banister_: makes sense when you realize that start is not an index ;)
<banister_> provideal: we use enumerators
<seme> the docs could use some clarification... it really doesn't say that even though the behavior is documented
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
<provideal> I just try to construct an compelling example ;)
justfielding [justfielding!~justfield@ip70-178-131-208.ks.ks.cox.net] has joined #ruby
<banister_> provideal: ruby does not have list comprehensions, if that's what u mean
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
<provideal> banister_: OK. So we're done there ;)
<banister_> provideal: Yeah, and Matz explicitly left out list comprehensions. I think the rationale was that while they're good for very simple cases, for more complicated cases they are very hard to read/understand and that using map/select is often a lot clearer
<provideal> OK... I used that a LOT in programming mathematics and enjoyed it in Maple/MuPad/Mathematica -- that's why I ask.
<banister_> provideal: interesting, can you show me a case where you used it
<provideal> well... It's mainly like f(x) $ x in S or f(i) $ i=1..100 or the like. It can of course be written as S.map{|x| f(x)}
<rippa> provideal: S.map(&method(:f))
<rippa> kinda useless but funny-looking
<provideal> rippa: WTF...
<rippa> method(:f) gives you method
<rippa> & converts it to proc
<rippa> which is then called on all elements
<rippa> same as your example
<provideal> rippa: holy shit... yeah. That's advanced syntax ... You can easily confuse people like that.
<rippa> it's like an extension of things like .inject(&:+)
<provideal> I use THAT a lot :)
<rippa> [(1..10).to_a].transpose.inject(:product)
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
<provideal> neat
fortysixandtwo [fortysixandtwo!~fortysixa@77.40.186.166] has joined #ruby
strife25 [strife25!~strife25@cpe-098-026-018-050.nc.res.rr.com] has joined #ruby
Targen [Targen!~iguana@159.90.11.250] has joined #ruby
John_P [John_P!~john@cpc3-reig5-2-0-cust795.6-3.cable.virginmedia.com] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
nari [nari!~nari@p86be1c.totrnt01.ap.so-net.ne.jp] has joined #ruby
alem0lars [alem0lars!~quassel@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
emocakes [emocakes!~om@187.54.14.193] has joined #ruby
berserkr [berserkr!~david@212.122.111.205.dyn.user.ono.com] has joined #ruby
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
nanderoo [nanderoo!~nanders@38.124.137.226] has joined #ruby
Sliker [Sliker!~ponies@216.66.125.91.rb4.adsl.brightview.com] has joined #ruby
amacgregor [amacgregor!~amacgrego@CPE00222dcb0a53-CM00222dcb0a4f.cpe.net.cable.rogers.com] has joined #ruby
<provideal> Is there a better way to write this: http://pastie.org/3172113 -- where condition is not as simple as > 8 or the like
maasha [maasha!82e1d332@gateway/web/freenode/ip.130.225.211.50] has joined #ruby
<maasha> hello
leehambley [leehambley!~codebeake@pd956c64f.dip0.t-ipconnect.de] has joined #ruby
<maasha> I want to multi-thread a list of tasks. Some tasks are tiny (strcmp of 2 lines), some are biggish (strcmp of 1000 lines) and I am trying to figure out if the overhead of Thread will negate the advantage if I create threads for each of the small tasks?
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
`brendan [`brendan!~b@66-208-246-34-ubr02b-waldlk01-mi.hfc.comcastbusiness.net] has joined #ruby
heftig [heftig!~Jan@archlinux/developer/heftig] has joined #ruby
jlogsdon [jlogsdon!~jlogsdon@c-67-169-79-114.hsd1.ca.comcast.net] has joined #ruby
<maasha> O_o
<provideal> maasha: I'd suggest to just do experiments to find the correct threshold. From my experience it's quite reasonable to have not-to-many threads, each computing severals results.
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
impulze [impulze!~impulze@eta-ori.net] has quit ["Leaving"]
<`brendan> morning
bbttxu [bbttxu!~adam@pool-71-96-208-205.dfw.dsl-w.verizon.net] has joined #ruby
p0y [p0y!~p0y@112.198.236.18] has joined #ruby
devians [devians!~devians@li382-136.members.linode.com] has joined #ruby
<devians> hey guys, i'm new to ruby and wondering if theres a good guide to setting up a ruby environment?
<maasha> provideal: yeah. hm, I need to come up with a neat way to divide the tasks into equivalent chunks
<devians> it seems ruby is quite sensitive to versions etc
<maasha> ruby 1.8 should be shot :o)
<provideal> maasha: yeah, that's challenging :) you'll need to have some heuristic based on the average complexity in some "size" metric.
<davidpk> i wonder when Apple will finally switch the stock ruby in os x to 1.9
<davidpk> if ever
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
<maasha> upgrading ruby1.8 to 1.9 on a mac requires a credit card ...
<davidpk> what?
<davidpk> `brew install ruby` does it just fine
<maasha> heh. with mac lion you need xcode from app store.
<maasha> otherwise you cant brew anything.
<davidpk> or if you're fancy, rvm
canton7 [canton7!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
<davidpk> maasha: … xcode is free on the app store
<davidpk> maasha: and it still comes on disc with every mac
<davidpk> maasha: AND if you don't like that thereare third-party compiler packages you can use
<maasha> davidpk: sure, but to get an account they wanted my CC. There should be a work around for that, but I wasted hours trying to find it.
<davidpk> maasha: you don't need a credit card to buy from the itunes store. many people (kids, etc) run their accounts by buying gift cards with cash and typing in the codes
<davidpk> for a free app, you shouldn't even have to do that
<maasha> davidpk: sure, but I failed. No obvious way to deselect the CC requirement. And I suspect Apple just wants your CC so you may accidentially buy something one day.
j0bk [j0bk!bed28bc9@gateway/web/freenode/ip.190.210.139.201] has joined #ruby
<maasha> could be a european issue, but never mind.
<devians> CONSPIRACY THEORIES :P
tomzx [tomzx!~tomzx@dsl-156-68.aei.ca] has joined #ruby
<devians> big old evil apple wants mah moneys! :P
nonotza [nonotza!~nonotza@cpe-72-225-173-7.nyc.res.rr.com] has joined #ruby
kf8a [kf8a!~kf8a@user-33c730.user.msu.edu] has joined #ruby
<maasha> devians: well, look how much $$$ Apple have hoarded and call it a conspiracy theory again ...
<maasha> :o)
<devians> im not sure i follow? they're a successful business by producing items people want and by not treating their customers like crap.
<devians> wheres the conspiracy?
Suzy-Sex-Slave [Suzy-Sex-Slave!~enroxorz@65-117-22-130.dia.static.qwest.net] has joined #ruby
tommyvyo [tommyvyo!~tommyvyo@38.123.129.115] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
<shevy> in my pants
dAnjou [dAnjou!~max@141.45.81.216] has joined #ruby
<shevy> NOONE DARES SAY IT IS A SMALL CONSPIRACY!!!
<dAnjou> hi, i'm using an ubuntu lucid (LTS, pretty old) and i'd like to have the current rubygems release. but i don't want to install it into the system. how can i install it into my home dir so that all paths are set correctly (for commands like 'gem')?
jensn [jensn!~Jens@io.fysik.lu.se] has joined #ruby
jwmann [jwmann!~Adium@modemcable242.110-201-24.mc.videotron.ca] has joined #ruby
josesaldana [josesaldana!~josesalda@206.132.224.107] has joined #ruby
strife25 [strife25!strife25@nat/ibm/x-seefknncqtxmveap] has joined #ruby
albemuth [albemuth!~albemuth@201.198.78.18] has joined #ruby
boodle [boodle!~boodle@174.46.129.34] has joined #ruby
zulax [zulax!~radarwork@199.8.13.240] has joined #ruby
yfeldblum [yfeldblum!~Jay@pool-71-246-76-76.bltmmd.east.verizon.net] has joined #ruby
prs` [prs`!~user@138.82-134-78.bkkb.no] has joined #ruby
<prs`> I have a module Foo that contains a class Bar. Given myBar="Bar" how do I call Foo::mybar.new?
<prs`> not sure if that made any sense
<heftig> prs`: Foo.const_get(mybar).new
geaif [geaif!~geaif@7-239.62-188.cust.bluewin.ch] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@host-208-68-238-122.biznesshosting.net] has joined #ruby
rly [rly!~rly@unaffiliated/rly] has joined #ruby
<prs`> heftig: thanks
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
dida [dida!~dida@5403E808.catv.pool.telekom.hu] has joined #ruby
geaif [geaif!~geaif@7-239.62-188.cust.bluewin.ch] has joined #ruby
strife25 [strife25!strife25@nat/ibm/x-ptforcbbdogqcjkx] has joined #ruby
<rly> How can I have irb run a script and then not exit?
<dida> while true
<rly> dida: such that I can enter additional commands...
<rly> dida: please.
fermion [fermion!~textual@pool-108-7-224-176.bstnma.fios.verizon.net] has joined #ruby
pen [pen!~pen@dhcp1.csie.ntu.edu.tw] has joined #ruby
<dida> i'm new to ruby, but try unless maybe?
<rly> dida: I hope for you that you are a bot.
<maasha> OK, I need inspiration to multi-thread this bit: http://pastie.org/3172452
<dida> rly, i am not :)
<maasha> I reckon a new thread per 1000 members is OK
bbttxu [bbttxu!~adam@nt8rsctf1.unt.ad.unt.edu] has joined #ruby
enroxorz [enroxorz!~enroxorz@unaffiliated/enroxorz] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
cjs226 [cjs226!~cjs226@rrcs-71-40-79-154.sw.biz.rr.com] has joined #ruby
<maasha> But how?
ascarter [ascarter!~ascarter@68.166.55.114] has joined #ruby
vraa [vraa!~vraa@c-76-30-135-64.hsd1.tx.comcast.net] has joined #ruby
dyer [dyer!~dyer@c-174-49-86-106.hsd1.ga.comcast.net] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
<shevy> 10000.times Thread.new
tesmar [tesmar!~tesmar@adsl-98-69-174-20.rmo.bellsouth.net] has joined #ruby
<maasha> Nah
chrismcg [chrismcg!~chrismcg@pdpc/supporter/active/chrismcg] has joined #ruby
rottenrec1 [rottenrec1!~calvin@pool-74-100-117-52.lsanca.dsl-w.verizon.net] has joined #ruby
<JonnieCache> rly: you want a while loop like he said
<JonnieCache> but irb already does that anway...
RomD [RomD!~Roman@nrbg-4d076392.pool.mediaWays.net] has joined #ruby
<JonnieCache> maasha: you can do a new thread by passing a block to Thread.new
<rly> JonnieCache: no, I want to run all the commands in the foo.rb file and then I want to get an irb prompt in which I can call functions which have been defined in the foo.rb code.
<rly> JonnieCache: a while loop doesn't do anything useful.
<rly> It will just waste CPU time and nothing else if there is nothing in the while loop.
<JonnieCache> well you asked how can i have irb run a script and then not exit, which isnt very clear. i didnt mean an empty while loop, rather a while loop that waits for commands, which is what irb does anyway
<banisterfiend> rly: use pry
<JonnieCache> but now you have clarified, the answer is simply to run `irb -r your_script.rb`
<JonnieCache> yeah or pry which also takes the -r switch
<banisterfiend> rly: http://pry.github.com and then put 'binding.pry' where u want the session to start
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has joined #ruby
<JonnieCache> yeah or do that if you want more control i guess
<banisterfiend> that way you also get locals
<JonnieCache> hmm so do you end up in a different scope with irb -r then? didnt know that
<JonnieCache> i guess youre just requiring it so that makes sense
<banisterfiend> JonnieCache: Yeah
<JonnieCache> ive only ever used it to give myself a sinatra console
<JonnieCache> and all my sinatra apps are classes, so yeah it doesnt come up
kakashi__ [kakashi__!~kakashi_@nltk/kakashi] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
<rly> banisterfiend: can't you just give an exact command?
<rly> banisterfiend: the file is called foo.rb
<rly> banisterfiend: I have pry and then what?
<JonnieCache> require 'pry' at the top
<JonnieCache> then call binding.pry wherever you want your prompt
<banisterfiend> it's kind of like setting a break point
<rly> JonnieCache: call it where?
<JonnieCache> thats up to you
<JonnieCache> wherever you want the prompt to happen
<JonnieCache> at the end maybe?
carlyle [carlyle!~carlyle@rrcs-96-10-255-203.midsouth.biz.rr.com] has joined #ruby
<rly> JonnieCache: ok, it works.
tcurdt [tcurdt!~tcurdt@p5B03DD21.dip.t-dialin.net] has quit [#ruby]
<banisterfiend> rly: read up on pry when u get a chance she's quite a powerful little b.
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
<lupine_85> has anyone here ever experienced an interpretor segfault with ruby 1.8.7 + openssl (squeeze versions - p302 / ?) ?
<lupine_85> interpreter*
<JonnieCache> yes. they happen from time to time. nothing is bugree
<lupine_85> I'm trying to track down the causes of one (reported as a double free inside the constructor of a class) but I have minimal information
<JonnieCache> *bugfree
<lupine_85> also no testcase yet :/
vraa [vraa!~vraa@h224.68.89.75.dynamic.ip.windstream.net] has joined #ruby
bwlang [bwlang!~anonymous@70-91-134-14-ma-ne.hfc.comcastbusiness.net] has joined #ruby
rushed [rushed!~rushed@99-73-225-9.lightspeed.austtx.sbcglobal.net] has joined #ruby
chrisja [chrisja!~chris@5ac7d92c.bb.sky.com] has joined #ruby
ikaros [ikaros!~ikaros@dslb-188-107-221-154.pools.arcor-ip.net] has joined #ruby
Spockz [Spockz!~Spockz@095-097-113-150.static.chello.nl] has joined #ruby
kakashi__ [kakashi__!~kakashi_@nltk/kakashi] has joined #ruby
zi [zi!~winvalid@shells.mycrosoft.us] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
<dida> jlogsdon, hey there. not sure if you remember me from yesterday, but can you help me again with the same thing?
niklasb [niklasb!~codeslay0@p5B3109C8.dip0.t-ipconnect.de] has joined #ruby
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
prs` [prs`!~user@138.82-134-78.bkkb.no] has quit ["ERC Version 5.3 (IRC client for Emacs)"]
igaiga [igaiga!~igaiga@softbank126015088017.bbtec.net] has joined #ruby
bluOxigen [bluOxigen!ssf@unaffiliated/bluOxigen] has joined #ruby
tar_ [tar_!~tar@209-6-37-203.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
mafolz_ [mafolz_!~mafolz@dhcp50-210.start.uni-saarland.de] has joined #ruby
zxiest [zxiest!zxiest@213.204.77.180] has joined #ruby
<zxiest> Hello :-)
<zxiest> If we're in a module that's being included, self is the object which class includes the module? if the model is being extended, self is the module?
<shevy> what
<shevy> also what "model"
<zxiest> module*
<shevy> ;P
<zxiest> typo.. sorry =)
tobym [tobym!~tobym@pool-173-56-80-136.nycmny.fios.verizon.net] has joined #ruby
Sliker [Sliker!~ponies@91.125.66.216] has joined #ruby
<shevy> gets your brain all worked up man!
<shevy> settle down, take a breath ...
<shevy> self should not be changeable by any module, I think
canton7 [canton7!~canton7@188-222-105-229.zone13.bethere.co.uk] has joined #ruby
<zxiest> hmm.. let me try
<shevy> if a class is extended by a module, I think the module becomes a full part of that class
super-man [super-man!~man@178.52.215.239] has joined #ruby
<super-man> Hello
csavola [csavola!~csavola@76-10-149-67.dsl.teksavvy.com] has joined #ruby
<zxiest> shevy I see... Let me test a few things :-)
<dida> hey! this "http://pastebin.com/16he0CPF" is a part of my IRC bot. it's a register function that puts data into a file using hashes. yesterday with the help of jlogsdon i managed to start it, but unfortunately it still has some errors in it i can not manage to find.
<dida> can you please take a look at it?
<JonnieCache> zxiest: just sprinkle some `puts __LINE__+' ' +self.inspect` lines around the place
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
<zxiest> JonnieCache will do, thanks :-)
evantravers [evantravers!~textual@fw.luckie.net] has joined #ruby
skaczor [skaczor!~quassel@mail.prognosoft.biz] has joined #ruby
<super-man> I want bot transleation tex arabic and english
<super-man> Can help me
<dida> could anyone look at my script please? ^^
<super-man> Why
<super-man> Can gev me bot
mkscrg [mkscrg!~mkscrg@pool-108-41-134-165.nycmny.fios.verizon.net] has joined #ruby
ivic [ivic!~vikas@pd956fcca.dip0.t-ipconnect.de] has joined #ruby
strife25 [strife25!strife25@nat/ibm/x-tgohpqderdugndmg] has joined #ruby
ozy_work [ozy_work!~chapinj@chapinj-3.its-is.uni.edu] has joined #ruby
pen [pen!~pen@dhcp1.csie.ntu.edu.tw] has joined #ruby
Marco [Marco!~marco@Marco-2.Kiewit.Dartmouth.EDU] has joined #ruby
thomasfedb [thomasfedb!~thomasfed@2607:f358:1:fed5:11:0:1399:1] has joined #ruby
colint [colint!~ColinT@189.164.82.90] has joined #ruby
<ozy_work> I don't suppose it is possible to convert an active record schema.rb file into sql statements, is it? I can find many hits on google going the other way
S1kx [S1kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby
S1kx [S1kx!~S1kx@pdpc/supporter/monthlybyte/s1kx] has joined #ruby
<dida> noone looks at my script? :(
JustinCampbell [JustinCampbell!~justinCam@74-94-59-225-Philadelphia.hfc.comcastbusiness.net] has joined #ruby
provideal [provideal!~hornp@p4FFF8371.dip.t-dialin.net] has quit [#ruby]
froio [froio!~francesco@host182-74-dynamic.55-82-r.retail.telecomitalia.it] has joined #ruby
<froio> how do i check if indicies of a matrix are in the lower tirangualr sied of a square matrix ? and if them are how do i get the symmetric index in the upper side?
<JonnieCache> with some maths
<froio> thanks lol
<froio> :D
aesiamun [aesiamun!~aesiamun@2600:1002:b007:456f:0:10:ba89:1301] has joined #ruby
<JonnieCache> well theres the Matrix class in ruby and it has some simple matrix operations
<JonnieCache> but youd be better off asking on mathoverflow or something
<froio> ffffffff
canton7 [canton7!~canton7@188-222-105-229.zone13.bethere.co.uk] has joined #ruby
<JonnieCache> lol not a fan of mathoverflow?
rippa [rippa!~rippa@93-181-216-59.adsl.yaroslavl.ru] has joined #ruby
<froio> i m but not for those stupid question, i will solve alone
<ozy_work> sounds like homework
<JonnieCache> i have no idea if that question is difficult or not tbh, i havent done any proper maths since age 16
<JonnieCache> and that was hardly proper maths lol
<froio> lol
<froio> it is not
dazoakley [dazoakley!~dazoakley@hocuspokus.vm.bytemark.co.uk] has joined #ruby
<froio> in the lower side you are when i > j if i m not wrong
<froio> i getting the rows and j columns
abstrusenick [abstrusenick!~abstrusen@bb119-74-136-249.singnet.com.sg] has joined #ruby
beakerman [beakerman!~beakerman@c-76-118-172-173.hsd1.nh.comcast.net] has joined #ruby
<froio> yes it is right when i > j you are in the lower side
<froio> and how i should get the other sid
<froio> side
mafolz_ [mafolz_!~mafolz@dhcp50-205.start.uni-saarland.de] has joined #ruby
justfielding [justfielding!~justfield@ip70-178-131-208.ks.ks.cox.net] has quit [#ruby]
snearch [snearch!~snearch@e178056192.adsl.alicedsl.de] has joined #ruby
luxurymode [luxurymode!~luxurymod@rrcs-184-75-21-21.nyc.biz.rr.com] has joined #ruby
axl_ [axl_!~axl@173-11-52-113-Minnesota.hfc.comcastbusiness.net] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
philcrissman [philcrissman!~philcriss@206.57.45.116] has joined #ruby
banisterfiend [banisterfiend!~baniseter@115.189.32.105] has joined #ruby
asobrasil [asobrasil!~asantioli@palpatine.privatedns.com] has joined #ruby
Sailias__ [Sailias__!~jonathan@bas8-toronto01-1177860301.dsl.bell.ca] has joined #ruby
<froio> ok the answer is given i,j -> j,i ..
froio [froio!~francesco@host182-74-dynamic.55-82-r.retail.telecomitalia.it] has quit ["Leaving"]
confounds [confounds!~confounds@CPE78cd8e667600-CM78cd8e6675fd.cpe.net.cable.rogers.com] has joined #ruby
adamjleonard [adamjleonard!~adamjleon@pool-108-9-169-222.tampfl.fios.verizon.net] has joined #ruby
Spockz [Spockz!~Spockz@80.187.222.48] has joined #ruby
nowthatsamatt [nowthatsamatt!~nowthatsa@rrcs-71-43-23-18.se.biz.rr.com] has joined #ruby
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has joined #ruby
LouisJB [LouisJB!~Louis@82.132.238.81] has joined #ruby
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
brngardner [brngardner!~brngardne@c-98-192-3-166.hsd1.ga.comcast.net] has joined #ruby
hello [hello!~hello@abe.cul.columbia.edu] has joined #ruby
hello [hello!~hello@abe.cul.columbia.edu] has joined #ruby
ChampS666 [ChampS666!~ChampS@wlan1-36.zw.fh-zwickau.de] has joined #ruby
alex__c2022 [alex__c2022!~alex@207.239.64.154] has joined #ruby
chrxn [chrxn!chrxn@69.4.233.32] has joined #ruby
hello [hello!~hello@abe.cul.columbia.edu] has joined #ruby
jackerran [jackerran!~jackerran@fw.luckie.net] has joined #ruby
pootpoot [pootpoot!~pootpoot@38.108.250.130] has joined #ruby
Spockz [Spockz!~Spockz@109.33.74.139] has joined #ruby
jtmengel [jtmengel!~slm@c-67-176-116-43.hsd1.co.comcast.net] has joined #ruby
lapas [lapas!dellamon@78-57-158-39.static.zebra.lt] has joined #ruby
* lapas kas 2x2 off
Guest1669 [Guest1669!~winvalid@shells.mycrosoft.us] has quit ["WeeChat 0.3.6-dev"]
pen [pen!~pen@dhcp1.csie.ntu.edu.tw] has joined #ruby
gianlucadv [gianlucadv!~gianlucad@2.197.157.34] has joined #ruby
v0n [v0n!~v4n@2607:fad8:4:0:21e:8cff:fe4d:2f7d] has joined #ruby
mhi^ [mhi^!~mhi@dslb-188-102-166-235.pools.arcor-ip.net] has quit [#ruby]
cremes [cremes!~cremes@76.8.86.186] has joined #ruby
lapas [lapas!dellamon@78-57-158-39.static.zebra.lt] has joined #ruby
emocakes [emocakes!~om@200-96-62-193.mganm703.dsl.brasiltelecom.net.br] has joined #ruby
headius [headius!~headius@mobile-166-147-102-208.mycingular.net] has joined #ruby
geekbri [geekbri!~geekbri@64.119.145.106] has joined #ruby
tilde` [tilde`!~tilde@host43-198-dynamic.12-79-r.retail.telecomitalia.it] has joined #ruby
bsbravo [bsbravo!~BrunoSoar@187.72.55.179] has joined #ruby
yakko [yakko!~quassel@177.17.220.133] has joined #ruby
cmasseraf [cmasseraf!~cmasseraf@187.106.195.233] has joined #ruby
<yakko> there's a ruby command to write pure HTML, you guys remember how to use it?
internet_user [internet_user!~chatzilla@abe.cul.columbia.edu] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
<JonnieCache> what do you mean write pure html
internet_user [internet_user!~chatzilla@abe.cul.columbia.edu] has quit [#ruby]
<shevy> hehe
<shevy> yakko you need to be more specific
internet_user [internet_user!~internet_@abe.cul.columbia.edu] has joined #ruby
skaczor [skaczor!~quassel@mail.prognosoft.biz] has joined #ruby
eldariof [eldariof!~CLD@81.200.24.244] has joined #ruby
cmasseraf [cmasseraf!~cmasseraf@187.106.195.233] has joined #ruby
burgestrand [burgestrand!~burgestra@host.62.65.124.23.bitcom.se] has joined #ruby
ciopte7 [ciopte7!~thomascio@cpe-071-071-047-213.triad.res.rr.com] has joined #ruby
<ozy_work> I'm using active records, and I am getting an error when trying to create a table, because something is being parsed incorrectly -- the first time I see VARCHAR2(255) (or any other tpy declaration) it looks normal, but on subsiquent uses of that same time, the parenthesis are incremented -- so I get VARCHAR2(255)(255) -- any idea what is going on?
robotmay [robotmay!~robotmay@94.30.13.228] has joined #ruby
<JonnieCache> that is weird
<JonnieCache> post your code
ujihisa [ujihisa!~ujihisa@64-46-24-16.dyn.novuscom.net] has joined #ruby
<ozy_work> it's from puppet -- and I am not a ruby programmer, so bear with me
<ozy_work> I assume you want shema.rb? that appears a standard file, right?
<ozy_work> schema*
<JonnieCache> so its bootstrapping the db from a prexisting rails app?
internet_user [internet_user!~internet_@abe.cul.columbia.edu] has joined #ruby
<JonnieCache> yeah post it to pastie or something
slackgen [slackgen!~matt@ip-134-53-244-106.dhcp.muohio.edu] has joined #ruby
helllen [helllen!~helllen@91.102.241.62] has joined #ruby
<helllen> helllo
crankycoder [crankycoder!~crankycod@24-246-44-226.cable.teksavvy.com] has joined #ruby
<JonnieCache> haha hi
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
<helllen> someone knows how to execute sql sentences directly with datamapper?
Codif [Codif!~codif@84.120.204.160.dyn.user.ono.com] has joined #ruby
<shevy> QUERY_WTF_SOMETHING_LIKE_THIS("OK");
youdonotexist [youdonotexist!~youdonote@192.206.158.10] has joined #ruby
<ozy_work> http://pastie.org/3173053 JonnieCache
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
zenergi [zenergi!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
johanhsfy [johanhsfy!~johan@85.235.8.6] has joined #ruby
xec [xec!~xec@188.95.241.142] has joined #ruby
robotmay [robotmay!~robotmay@94.30.13.228] has joined #ruby
<JonnieCache> ozy_work: that all looks fairly legit to me, but i cant comment on the puppet specific stuff
stdcall [stdcall!~scriper@181.208.73.94.ip.orionnet.ru] has joined #ruby
icrazyhack [icrazyhack!~horieyui@112.90.208.33] has joined #ruby
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
<JonnieCache> ozy_work: the only unusual looking bit is the custom index stuff under mysql
<JonnieCache> line 26 etc
<ozy_work> hmm
<ozy_work> ok
<ozy_work> I wonder if it is a bug int he version of things being used
rstacruz [rstacruz!~rsc@121.97.124.205] has joined #ruby
<JonnieCache> well mysql does indeed need a length specified for indexes on text columns
<JonnieCache> but there puppet is doing this with some custom SQL passed into an execute statement
<ozy_work> well, that should not even exec
<ozy_work> I am using Oracle
<ozy_work> oracle_enhanced
<JonnieCache> ahhh for some reason i thought you were using mysql.
<JonnieCache> hmm so nothing in that if block should be executed at all
<slackgen> I am executing several Model.average calls in a row on the same set of data, is there any way to optimize the SQL calls?
<JonnieCache> because its either == "mysql" or != "oracle_enhanced"
consti [consti!~consti@unaffiliated/consti] has joined #ruby
<helllen> someone knows how to execute sql sentences directly with datamapper?
CoverSlide [CoverSlide!~richard@216.2.249.50] has joined #ruby
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
minijupe [minijupe!~benlieb@adsl-74-243-178-125.ard.bellsouth.net] has joined #ruby
<JonnieCache> erm well you should perhaps stop it from sending stdout to /dev/null so you might get a better chance of some useful errors
skaczor [skaczor!~quassel@mail.prognosoft.biz] has joined #ruby
consti [consti!~consti@unaffiliated/consti] has joined #ruby
artOfWar [artOfWar!~artofwar@108-205-201-30.lightspeed.sntcca.sbcglobal.net] has joined #ruby
<slackgen> helllen: have you tried asking in #datamapper ?
jamiejackson [jamiejackson!~jamie@pool-71-127-46-176.washdc.east.verizon.net] has joined #ruby
<helllen> I will
<helllen> thanks
<helllen> I didn't know it exists a datamapper chanel
<helllen> thanks
<helllen> bye
kakashi__ [kakashi__!~kakashi_@nltk/kakashi] has joined #ruby
mando [mando!~mando@66-90-185-121.dyn.grandenetworks.net] has joined #ruby
letsgojuno [letsgojuno!~mmathews8@host217-34-228-202.in-addr.btopenworld.com] has joined #ruby
Lord-Harlot [Lord-Harlot!~Serenity@adsl-83-100-188-80.karoo.KCOM.COM] has joined #ruby
michaelh [michaelh!~Michael@c-98-213-112-209.hsd1.il.comcast.net] has joined #ruby
<Tasser> can I defined my own tab-separated grammar with the csv parser?
colint [colint!~ColinT@189.164.82.90] has joined #ruby
artOfWar [artOfWar!~artofwar@nat/yahoo/x-givlpkxcmzhtxumq] has joined #ruby
Zanacross [Zanacross!~Serenity@adsl-87-102-85-250.karoo.KCOM.COM] has joined #ruby
internet_user [internet_user!~internet_@abe.cul.columbia.edu] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
marcoy [marcoy!~marcoy@cpe-66-65-45-211.nyc.res.rr.com] has joined #ruby
bsbravo_ [bsbravo_!~BrunoSoar@187.72.55.179] has joined #ruby
gianlucadv [gianlucadv!~gianlucad@109.53.99.71] has joined #ruby
wenbert [wenbert!~wenbert@120.28.241.47] has joined #ruby
cylence [cylence!~cylence@64-71-24-18.static.wiline.com] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
eldariof [eldariof!~CLD@95.143.214.130] has joined #ruby
gentz [gentz!ilab@72.20.41.70] has joined #ruby
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
ctp_ [ctp_!~ctp@port-87-234-198-134.static.qsc.de] has joined #ruby
LiquidInsect [LiquidInsect!~billabney@173-228-63-32.dsl.static.sonic.net] has joined #ruby
theRoUS [theRoUS!KenCoar@nat/redhat/x-wxkbqardpadvxmcy] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
guns [guns!~guns@c-98-228-72-208.hsd1.il.comcast.net] has joined #ruby
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
baroquebobcat [baroquebobcat!~nick@70-90-113-174-co.denver.hfc.comcastbusiness.net] has joined #ruby
p0y [p0y!~p0y@121.97.55.217] has joined #ruby
thepix [thepix!~pix@as3-16.starogard.dialup.inetia.pl] has joined #ruby
p0y_ [p0y_!~p0y@112.210.82.108] has joined #ruby
lkba [lkba!~AndChat@eah243.neoplus.adsl.tpnet.pl] has joined #ruby
pen [pen!~pen@g1pc2n249.g1.ntu.edu.tw] has joined #ruby
Lord-Harlot [Lord-Harlot!~Serenity@87.102.3.164] has joined #ruby
brngardner [brngardner!~brngardne@lawn-143-215-116-176.lawn.gatech.edu] has joined #ruby
ujihisa [ujihisa!~ujihisa@64-46-24-16.dyn.novuscom.net] has joined #ruby
AnfernyGay [AnfernyGay!~enroxorz@unaffiliated/enroxorz] has quit [#ruby]
Zanacross [Zanacross!~Serenity@adsl-87-102-117-103.karoo.KCOM.COM] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
zenergi_ [zenergi_!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
dasfugufish [dasfugufish!~Adium@174-27-233-214.slkc.qwest.net] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby
kenichi [kenichi!~kenichi@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
sonkei [sonkei!~sonkei@d14-69-26-171.try.wideopenwest.com] has joined #ruby
Dwight_ [Dwight_!~dwight@swarm.60x.be] has joined #ruby
atmosx [atmosx!~atmosx@191.116.broadband5.iol.cz] has joined #ruby
<atmosx> hello
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
johanhsfy [johanhsfy!~johan@85.235.8.6] has joined #ruby
Lord-Harlot [Lord-Harlot!~Serenity@adsl-77-86-89-97.karoo.kcom.com] has joined #ruby
Targen [Targen!~iguana@159.90.11.250] has joined #ruby
<atmosx> can someone help with this? http://codepad.org/WQN2cYfi#comment-5lrGPpKo
<atmosx> for some reason the begin/rescue/try don't work as they should
akemrir [akemrir!~akemrir@cpe-109-197-96-47.docsis.tczew.net.pl] has joined #ruby
<atmosx> actually they were working, they suddenly stopped
Zanacross [Zanacross!~Serenity@87.102.3.241] has joined #ruby
frogstarr78 [frogstarr78!~frogstarr@lan.viviotech.net] has joined #ruby
macmartine [macmartine!~macmartin@069-064-227-254.pdx.net] has joined #ruby
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
maletor [maletor!~maletor@74.115.25.139] has joined #ruby
kennethreitz [kennethreitz!~kennethre@173-13-176-158-sfba.hfc.comcastbusiness.net] has joined #ruby
Tuxist [Tuxist!~quassel@host-091-097-105-055.ewe-ip-backbone.de] has joined #ruby
bier [bier!~bier@p54A59EA7.dip.t-dialin.net] has joined #ruby
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
colint [colint!~ColinT@189.164.82.90] has joined #ruby
<nobitanobi> afternoon
counterbeing [counterbeing!~textual@c-24-4-206-189.hsd1.ca.comcast.net] has joined #ruby
<nobitanobi> I've a question. If I do this x = 0 if false .. And later I try to do 'x' .. would ruby treat x as a variable? Would it take the assignment into account regardless of the conditional?
<cremes> nobitanobi: no, it won't
<cremes> nobitanobi: you can try simple things like this for yourself in irb
<nobitanobi> I've tried that, and it does
<nobitanobi> and I'm surpirsed it treats like a variable
<Hanmac> its because of the parser
<nobitanobi> I've tried this: http://pastie.org/3173418
<nobitanobi> and the puts x after the line x=0 if false, doesn't call the method, but it returns NIL
<nobitanobi> so I assumed is taking into account the var declaration
adeponte [adeponte!~adeponte@67.110.253.162.ptr.us.xo.net] has joined #ruby
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby
friskd [friskd!~friskd@71-95-209-242.static.mtpk.ca.charter.com] has joined #ruby
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
Lord-Harlot [Lord-Harlot!~Serenity@adsl-87-102-93-36.karoo.KCOM.COM] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
Skaag [Skaag!~Skaag@81.26.147.34] has joined #ruby
<Hanmac> even if "x = 0" is not exceuted, the parser notic that and think x is a variable
<nobitanobi> ok Hanmac , then is what I thought
<nobitanobi> thank you, and thanks cremes: I tried it :P
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
apucacao [apucacao!~apucacao@thelevel.com] has joined #ruby
<cremes> Hanmac: seems like a bug... that mri, jruby and rubinius all have (probably because they share parsers)
<nobitanobi> I've just tried with a constant
Ziioynx [Ziioynx!~nkondra@s207-216-243-126.bc.hsia.telus.net] has joined #ruby
<nobitanobi> well, thanks guys
<Hanmac> hm i dont know if its realy a bug. it is more then a feature ...
friskd [friskd!~friskd@71-95-209-242.static.mtpk.ca.charter.com] has joined #ruby
<JonnieCache> sometimes quirks of the grammar like that are kept for the sake of simplicity
badabim [badabim!~badabim@17.212.166.202] has joined #ruby
ziggles [ziggles!~ziggles@c-24-6-247-92.hsd1.ca.comcast.net] has joined #ruby
mark_azevedo [mark_azevedo!~mark_azev@12.249.184.226] has joined #ruby
<Hanmac> cremes: if the parser did not remember the local variables it would decrease the speed because it must check every time if the varable is a method
kenperkins [kenperkins!~textual@174-24-171-37.tukw.qwest.net] has joined #ruby
<JonnieCache> ruby's grammar is already so complicated compared to other languages
<JonnieCache> so you can see why they are resistant to add more grammatical edge cases to ruby
Skaag_ [Skaag_!~Skaag@cpe-67-247-51-89.nyc.res.rr.com] has joined #ruby
<nobitanobi> so would we say the variable is instantiated?
<nobitanobi> to nil?
<nobitanobi> or...
somebody_ [somebody_!~notbrent@142.179.34.62] has joined #ruby
<nobitanobi> what does the parser do? Just know that 'x' is a variable?
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby
alfism [alfism!~alfism@2620:149:4:1201:fdea:ef20:c826:cc3b] has joined #ruby
FreddieBoi [FreddieBoi!~freddiebo@c83-252-234-115.bredband.comhem.se] has joined #ruby
<Tasser> JonnieCache, probably matz just sucks at implementing parsers? ^^
jay_zawrotny [jay_zawrotny!~Jay@c-71-205-218-131.hsd1.mi.comcast.net] has joined #ruby
<davidpk> JonnieCache: That's a false comparison. Ruby's "complicated" syntax often makes things easier for the programmer
<davidpk> like w/keyword arguments, where you don't need to put {} around the hash
<nobitanobi> how can I know if something is a variable or method? Or how ruby is treating it like? ruby.is_var or something like that?
<davidpk> Tasser: more complicated grammars are more difficult to implement. i'm pretty sure ruby's parser is generated, not hand-written, also
robertjpayne [robertjpayne!~robertjpa@123.100.90.137] has joined #ruby
conor_ireland [conor_ireland!~conor_ire@89.100.121.49] has joined #ruby
<Hanmac> nobitanobi: if "x()" works it is an method, or an argmumentError, if you get an noMethodError it is maybe an variable
Araxia_ [Araxia_!~Araxia@173-164-68-213-Oregon.hfc.comcastbusiness.net] has joined #ruby
<nobitanobi> ok :)
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
<Tasser> davidpk, depends on the parser framework ;-)
<Hanmac> and if then "x" does not work, it is also not an variable
hadees [hadees!~hadees@64.132.24.248] has joined #ruby
philcrissman [philcrissman!~philcriss@206.57.45.116] has joined #ruby
Zephr0 [Zephr0!Zephro@2001:470:1f08:945::10] has joined #ruby
adamkittelson [adamkittelson!~adamkitte@50.0.132.2] has joined #ruby
<davidpk> always pisses me off that Ruby has seperate function and value namespaces every time i try to pass a function to a function. but i guess it wouldn't work any other way, or at least be confusingly ambiguous
Russell^^ [Russell^^!~Russell^^@88.97.51.87] has joined #ruby
<Tasser> davidpk, method namespace: self. local value namespace: binding
jakky [jakky!jakk@motherfucking.ddosking.org] has joined #ruby
Mahoek [Mahoek!~Mahoek@ip51ceb6d4.adsl-surfen.hetnet.nl] has joined #ruby
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
michael_mbp [michael_mbp!~Marin@31.203.161.103] has joined #ruby
BrianE [BrianE!~brian@87.112.206.142] has joined #ruby
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
letsgojuno [letsgojuno!~mmathews8@188.220.153.25] has joined #ruby
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
michael_mbp [michael_mbp!~Marin@31.203.161.103] has quit [#ruby]
michael_mbp [michael_mbp!~Marin@31.203.161.103] has joined #ruby
SegFaultAX|work [SegFaultAX|work!~mkbernard@173.228.45.162] has joined #ruby
Spockz` [Spockz`!~Spockz@21pc198.sshunet.nl] has joined #ruby
ipsifendus [ipsifendus!~ipsifendu@173-8-205-65-Oregon.hfc.comcastbusiness.net] has joined #ruby
apok [apok!~apok@c-107-3-149-167.hsd1.ca.comcast.net] has joined #ruby
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
senny [senny!~senny@77-56-67-120.dclient.hispeed.ch] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
quest88 [quest88!~quest88@12.181.53.123] has joined #ruby
<atmosx> I don't get it. Why would someone want a NoSQL database on which he cannot write a lot and not use it huge amounts of data: https://github.com/Anonyfox/kioku/blob/master/README.rdoc
<atmosx> maybe for experimentation
josh____ [josh____!~josh@74-95-43-126-Oregon.hfc.comcastbusiness.net] has joined #ruby
apeiros_ [apeiros_!~apeiros@77-58-113-31.dclient.hispeed.ch] has joined #ruby
a|i [a|i!~ali@client-86-31-237-182.oxfd.adsl.virginmedia.com] has joined #ruby
a|i [a|i!~ali@unaffiliated/ai/x-9091534] has joined #ruby
<epochwolf|vps> atmosx: flat files are fast?
<a|i> when creating a gem with native extension using rake-compiler, it creates a shared object under lib/. should that shared object be in gitignore, assuming that it will get generated at installation time?
<atmosx> epochwolf|vps: depends I guess
ciopte7 [ciopte7!~thomascio@cpe-071-071-047-213.triad.res.rr.com] has joined #ruby
fantazo [fantazo!~fantazo@85-127-82-38.dynamic.xdsl-line.inode.at] has joined #ruby
<epochwolf|vps> atmosx: if you're doing with a small amount of data that's infrequently updated, like a blog, flat files are probably a good way to go. Of course jekyll's is probably better.
LouisJB [LouisJB!~Louis@82.132.211.240] has joined #ruby
<apok> nosql lulz
johanhsfy [johanhsfy!~johan@c-887471d5.012-52-6c756e10.cust.bredbandsbolaget.se] has joined #ruby
* epochwolf|vps is firmly in the postgres pocket.
<epochwolf|vps> transaction ddls FTW!
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
gianlucadv [gianlucadv!~gianlucad@host61-81-dynamic.245-95-r.retail.telecomitalia.it] has joined #ruby
rb2k [rb2k!~rb2k@p5DE78837.dip.t-dialin.net] has joined #ruby
voodoofish430 [voodoofish430!~mtorres@208.76.2.200] has joined #ruby
achiu [achiu!~Adium@ip68-5-18-17.oc.oc.cox.net] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
nonotza [nonotza!~nonotza@66.246.94.130] has joined #ruby
cousine [cousine!~cousine@196.218.42.9] has joined #ruby
<nobitanobi> Is it recommended to use the token "then" in the 'if' statement? Or it actually doesn't matter?
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
florentg [florentg!~florentg@201.230.69.45] has joined #ruby
jbpros [jbpros!~jbpros@100-178-112-217.dyn.adsl.belcenter.be] has joined #ruby
tesmar [tesmar!~tesmar@adsl-98-69-174-20.rmo.bellsouth.net] has joined #ruby
nadirvardar [nadirvardar!~nadirvard@204.235.122.5] has joined #ruby
<confounds> nobitanobi don't bother
John_P [John_P!~john@cpc3-reig5-2-0-cust795.6-3.cable.virginmedia.com] has joined #ruby
<apeiros_> nobitanobi: it doesn't matter. personally I like it because I find it easier to read with it.
<florentg> hello all! I intend to add documentation to the RbConfig module.
<ElitestFX> nobitanobi, I generally leave it out.
<florentg> rbconfig.rb is generated during the ruby build by mkconfig.rb so I intended to write the documentation in mkconfig.rb.
<confounds> nobitanobi but do use the 'therefore' token
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
<florentg> But I think it would not appear in the RDoc html-based doc. Is there a way to write documentation for RbConfig that can appear in the RDoc html-based doc?
<nobitanobi> ok, I just wanted to make sure it doesn't matter for the parser
<confounds> nope
<nobitanobi> confounds: therefore?
<nobitanobi> are you kidding?
<confounds> nobitanobi yeah :)
<nobitanobi> oh damn it. I'm not an English speaker and I get confused
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
jbw [jbw!~jbw@dsl-044-084.cust.imagine.ie] has joined #ruby
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
aantix [aantix!~jjones@50.0.102.2] has joined #ruby
centipedefarmer_ [centipedefarmer_!~centipede@75-162-51-42.desm.qwest.net] has joined #ruby
<centipedefarmer_> why is CSV::Table#to_a bombing out thusly? https://gist.github.com/1602311
robyurkowski [robyurkowski!~robyurkow@64.254.250.82] has joined #ruby
<centipedefarmer_> it's complaining of no #headers method. I'm not calling any such method, so apparently #to_a is. Am I to believe this standard library is broken?
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
LouisJB_ [LouisJB_!~Louis@82.132.248.167] has joined #ruby
<centipedefarmer_> okay for starters I didn't pass :headers => true to CSV::parse
j3r0m3 [j3r0m3!~j3r0m3@c-24-5-84-1.hsd1.ca.comcast.net] has joined #ruby
<centipedefarmer_> but if I didn't ask for headers (even mistakenly) then that shouldn't break to_a
<centipedefarmer_> should it?
jakky [jakky!jakk@motherfucking.ddosking.org] has joined #ruby
nd_______ [nd_______!~nd@mnhm-5f752261.pool.mediaWays.net] has joined #ruby
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
apeiros_ [apeiros_!~apeiros@77-58-113-31.dclient.hispeed.ch] has joined #ruby
cconstantine [cconstantine!~Adium@173.247.200.5] has quit [#ruby]
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
<wallerdev> centipedefarmer_: thats an odd error, do you have a stack trace? does it happen if you just call to_a without index?
shadoi [shadoi!~Adium@2001:5a8:4:68e0:bdea:241:22d8:4838] has joined #ruby
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
zenergi [zenergi!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
ciopte7 [ciopte7!~thomascio@cpe-071-071-047-213.triad.res.rr.com] has joined #ruby
<centipedefarmer_> same thing happens
<centipedefarmer_> i tried commenting out everything on that line after the to_a
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
<centipedefarmer_> i don't have much of a stack trace apart from that line number then back to the spec
jlogsdon [jlogsdon!~jlogsdon@50.0.84.226] has joined #ruby
<centipedefarmer_> maybe there's an option i can pass minitest to show more stack trace?
adeponte [adeponte!~adeponte@67.110.253.162.ptr.us.xo.net] has joined #ruby
<jlogsdon> nonotza: every style guide i've seen recommends not using "then"
zenergi_ [zenergi_!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
<nonotza> ?
<jlogsdon> sorry
<jlogsdon> the guy i meant to tab to left :V
<jlogsdon> and wait, that's from last night
<jlogsdon> oh god
<jlogsdon> im a failure ;_;
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
indstry [indstry!~apple@c-71-238-98-243.hsd1.mi.comcast.net] has joined #ruby
Scorchin [Scorchin!u1242@gateway/web/irccloud.com/x-jcgasxxapqdicpqk] has joined #ruby
Profit [Profit!~p@c83-254-248-138.bredband.comhem.se] has joined #ruby
achiu [achiu!~Adium@216.174.109.254] has joined #ruby
<Scorchin> If I have a hash stored in another file, e.g. 'conf', how can I require that file and then use the hash labelled 'conf' ?
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
<Scorchin> never mind, figured it out :)
Scorchin [Scorchin!u1242@gateway/web/irccloud.com/x-jcgasxxapqdicpqk] has quit [#ruby]
LouisJB_ [LouisJB_!~Louis@82.132.236.222] has joined #ruby
cpruitt [cpruitt!~cpruitt@72.186.33.153] has joined #ruby
theRoUS [theRoUS!KenCoar@nat/redhat/x-kpjgaykhbbaqvwiw] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
tvo [tvo!~tvo@5354CF57.cm-6-5d.dynamic.ziggo.nl] has joined #ruby
tvo [tvo!~tvo@katapult/developer/tvo] has joined #ruby
banisterfiend [banisterfiend!~baniseter@115.189.32.105] has joined #ruby
ezotrank [ezotrank!~ezotrank@43-81-52-95.baltnet.ru] has joined #ruby
counterbeing [counterbeing!~textual@173-228-44-170.dsl.static.sonic.net] has joined #ruby
c0rn [c0rn!~c0rn@50-0-164-69.dsl.dynamic.sonic.net] has joined #ruby
mafolz [mafolz!~mafolz@dhcp50-205.start.uni-saarland.de] has joined #ruby
djanatyn [djanatyn!~djanatyn@mail.digitalkingdom.org] has joined #ruby
kakashi__ [kakashi__!~kakashi_@nltk/kakashi] has joined #ruby
cyri_ [cyri_!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby
chiel [chiel!~chiel@kunkels.me] has joined #ruby
semperos [semperos!~semperos@50-78-71-53-static.hfc.comcastbusiness.net] has joined #ruby
tesmar [tesmar!~tesmar@cpe-024-163-059-067.nc.res.rr.com] has joined #ruby
<chiel> Hi guys, I've tried asking in #rvm already, but nobody seems to be alive in there. I'm trying to install ruby 1.9.3 in rvm, but it's complaining about the C compiler not working. Any ideas?
<chiel> I'm on OS X Lion, Xcode 4.2.1
btanaka [btanaka!~textual@17.245.88.73] has joined #ruby
<JustinCampbell> chiel: one sec
<JustinCampbell> try
<JustinCampbell> export CC=/usr/bin/gcc-4.2
dankest [dankest!~dankest@wsip-174-75-64-190.sb.sd.cox.net] has joined #ruby
<chiel> JustinCampbell: thanks, apparently I failed to notice I needed to compile with "--with-gcc=clang"
<chiel> It's gotten as far as "compiling" now - fingers crossed
fenix45 [fenix45!~fenix45@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
<JustinCampbell> chiel: i also put this in my .rvmrc sometimes for projects, but its been working without it recently so i dunno https://gist.github.com/1602546
<chiel> JustinCampbell: what exactly does it do?
<JustinCampbell> .rvmrc is evaluated when you cd into a directory
<JustinCampbell> so it sets CC to gcc-4.2, installs the ruby, and creates a gemset
<JustinCampbell> and the last line changes back to your system ruby when you cd out of it
<JustinCampbell> change project to the project name
<chiel> ah k
<chiel> well, I don't care much for the system ruby version really
rboyd [rboyd!~rboyd@216.106.40.113] has joined #ruby
<chiel> I just use rvm because I don't want to screw os x up
<chiel> so I don't want to mess with the 1.8.7 install
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
<chiel> other than that, I'm find with running everything on the same rvm version.
mando [mando!~mando@99-39-117-82.lightspeed.austtx.sbcglobal.net] has joined #ruby
omry_ [omry_!~omry@DSL212-235-83-63.bb.netvision.net.il] has joined #ruby
pantsman [pantsman!~pantsman@2.25.204.8] has joined #ruby
pantsman [pantsman!~pantsman@pdpc/supporter/active/pantsman] has joined #ruby
<JustinCampbell> chiel: well, that also could mean "switch back to the rvm default ruby"
<JustinCampbell> but either way, not stay on the one for that project
<JustinCampbell> if you rvm default 1.9.3, cd into a jruby project, and cd out, by default youll still be on jruby
leifmadsen [leifmadsen!~Leif@asterisk/documenteur-extraordinaire/blitzrage] has joined #ruby
<leifmadsen> afternoon all -- brand new to ruby, but trying to modify an existing script. I have an array with a list of files in it: configfiles = [ "foo", "bar", "etc" ] -- my question is, I have a directory "common" that has several files in it, and I want them listed in this array. Is there a way to do something like "common/*" without having to specify all the files?
<chiel> JustinCampbell: yeah, but I currently only work on one project, so it should be okay :)
<chiel> thanks for the heads-up though
ChampS666 [ChampS666!~ChampS@p54B4DBB5.dip.t-dialin.net] has joined #ruby
<rippa> leifmadsen: Dir#entries
<leifmadsen> rippa: so, for example: configfiles = [ "common#entries", "foo", "bar" ] ?
<rippa> no
<rippa> read documentation
<leifmadsen> ya googling now
<rippa> Dir.entries('common')
<rippa> actually
<rippa> that's Dir.entries
<rippa> not #
<leifmadsen> aha, ok thanks
<leifmadsen> much obliged
<rippa> it's a class method
<leifmadsen> yep just found that, reading the docs, thanks again
<rippa> # is for instance methods
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby
pantsman [pantsman!~pantsman@pdpc/supporter/active/pantsman] has quit ["Leaving"]
jbpros [jbpros!~jbpros@100-178-112-217.dyn.adsl.belcenter.be] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
Jakee` [Jakee`!~Jakee`@5ad317fe.bb.sky.com] has joined #ruby
clockwize [clockwize!~clockwize@81.19.48.130] has joined #ruby
cremes [cremes!~cremes@76.8.86.186] has quit [#ruby]
devdazed [devdazed!~textual@static-96-239-59-191.nycmny.fios.verizon.net] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has quit [#ruby]
redgetan [redgetan!~reg@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
ephemerian [ephemerian!~ian@82-71-51-229.dsl.in-addr.zen.co.uk] has joined #ruby
mickn [mickn!~mickn@unaffiliated/mickn] has joined #ruby
geaif [geaif!~geaif@7-239.62-188.cust.bluewin.ch] has joined #ruby
letsgojuno [letsgojuno!~mmathews8@188.220.153.25] has joined #ruby
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby
<Avi`> any suggestions on idiomatic sayings for trying to control the uncontrollable, like 'herding cats' (but not that one..)
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
luckman212 [luckman212!~irc@pool-108-41-8-176.nycmny.fios.verizon.net] has joined #ruby
brngardner [brngardner!~brngardne@lawn-143-215-116-176.lawn.gatech.edu] has joined #ruby
stephans [stephans!~stephans@209.66.114.6] has joined #ruby
LouisJB [LouisJB!~Louis@louisb.gotadsl.co.uk] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@46-64-51-175.zone15.bethere.co.uk] has joined #ruby
kirun [kirun!~kirun@78-86-154-194.zone2.bethere.co.uk] has joined #ruby
jbpros_ [jbpros_!~jbpros@217-186-112-217.dyn.adsl.belcenter.be] has joined #ruby
axl_ [axl_!~axl@75-149-152-225-Minnesota.hfc.comcastbusiness.net] has joined #ruby
canton7 [canton7!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
jgarvey [jgarvey!~jgarvey@cpe-174-097-248-211.nc.res.rr.com] has joined #ruby
Jake232 [Jake232!~textual@5e0e64ca.bb.sky.com] has joined #ruby
mitchty [mitchty!~mitchty@ec2-50-19-41-37.compute-1.amazonaws.com] has joined #ruby
internet_user [internet_user!~internet_@abe.cul.columbia.edu] has joined #ruby
youdonotexist [youdonotexist!~youdonote@192.206.158.10] has joined #ruby
notbrent [notbrent!u5121@gateway/web/irccloud.com/x-tlucvukehotjvuxb] has joined #ruby
DaniG2k [DaniG2k!~daniele@host28-217-dynamic.17-87-r.retail.telecomitalia.it] has joined #ruby
stkowski [stkowski!~stkowski@12.207.16.130] has joined #ruby
theRoUS [theRoUS!KenCoar@nat/redhat/x-srxbqsdpwemylykg] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
DaniG2k [DaniG2k!~daniele@host28-217-dynamic.17-87-r.retail.telecomitalia.it] has quit [#ruby]
Penguin_Gab [Penguin_Gab!~Penguin_G@bb119-74-101-54.singnet.com.sg] has joined #ruby
internet_user [internet_user!~internet_@abe.cul.columbia.edu] has joined #ruby
<Penguin_Gab> hihi all
user__ [user__!~akem@222.144.120.78.rev.sfr.net] has joined #ruby
<Penguin_Gab> hi all why is ruby good over php?
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby
<canton7> learn it, play with it for a few weeks without touching PHP, then go back to coding PHP
<Penguin_Gab> ok
<Penguin_Gab> thank you
<Penguin_Gab> will i ever go back?
<canton7> I found it painful
nonotza [nonotza!~nonotza@66.246.94.130] has joined #ruby
<chiel> I am forced to code php at work
<chiel> but in my free time, I can escape to ruby :)
rb2k [rb2k!~rb2k@p5DE78837.dip.t-dialin.net] has joined #ruby
jtmengel [jtmengel!~slm@c-67-176-116-43.hsd1.co.comcast.net] has joined #ruby
<canton7> I'd point you to this http://hyperpolyglot.org/scripting but it doesn't really do ruby justice, as it doesn't mention blocks, which are arguably one of ruby's greatest features
<Penguin_Gab> taking a look now canton7, thanks
<Penguin_Gab> im asking because i've been a php developer for over 3+ years and getting increasingly frustrated with it
<Hanmac> "one block to each them all"
<Penguin_Gab> picked up and played with ruby for 2+ days and im seriously thinking of migrating
<Penguin_Gab> not sure if its a good idea
<canton7> I can almost promise you you won't even think about going back (unless you need cheap, ubiquitous hosting, which is about the only thing PHP's good for). At the very least, learn ruby better, then decide
Asher [Asher!~asher@98.158.127.150] has joined #ruby
skaczor [skaczor!~quassel@mail.prognosoft.biz] has joined #ruby
<chiel> and read why's guide :)
<chiel> it is awesome
<Penguin_Gab> ah ok
<Penguin_Gab> thanks guys
<Penguin_Gab> will continue to grok it
<Penguin_Gab> why's poigniant guide is written like he was on drugs or something
<Penguin_Gab> was he?
<wmoxam> Penguin_Gab: yes
<wmoxam> he actually died after he OD'd on chunky bacon
zastaph [zastaph!~uid@unaffiliated/zastaph] has joined #ruby
<Penguin_Gab> !!
<Penguin_Gab> gosh u guys are the wittiest people i've ever met online
<internet_user> Anyone know if why's poigniant guide is ruby 1.9-compatible?
<Penguin_Gab> i should migrate from the PHP community to ruby
<Penguin_Gab> NAO
<internet_user> since I heard there are a lot of changes between 1.8 and 1.9
<Penguin_Gab> php is full of 15 year old idiots
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby
<canton7> yeah, that's PHP's main user-base :S
<wmoxam> Penguin_Gab: ruby is full of 25 year old idiots
<wmoxam> so you'd be movin' on up
<burgestrand> I’m not 25 :(
<wmoxam> olz
kreantos [kreantos!~kreantos@77.119.66.223.wireless.dyn.drei.com] has joined #ruby
<Penguin_Gab> lol
<Penguin_Gab> how old are u guys? i'm 22
<wmoxam> I'm 15
<Penguin_Gab> internet_user yes it is compatible
<Penguin_Gab> serious?
<Penguin_Gab> wow when i was 15 i didn't know how to use the computer other than porn
* epochwolf|vps is 14, and female
<epochwolf|vps> :P
<Penguin_Gab> cool
* epochwolf|vps gets immediately pegged as an fbi agent.
* shevy shoots down epochwolf|vps.
<burgestrand> Naw, you just get the awkward silence
<wmoxam> what's a porn?
<epochwolf|vps> wmoxam: it's awesome
* shevy shoots at wmoxam as well.
esufan [esufan!~nekid@c-24-6-170-1.hsd1.ca.comcast.net] has joined #ruby
<burgestrand> wmoxam: http://notpron.org/notpron/
<shevy> wmoxam it is the foundation of the world wide web
<Penguin_Gab> google 'Two Girls One Cup'
Hanmac [Hanmac!~hanmac@p50845366.dip0.t-ipconnect.de] has joined #ruby
<wmoxam> sounds confusing
<epochwolf|vps> Do not google that
<Penguin_Gab> lol
<shevy> google 'How to get rich with Ruby'
<esufan> 2 girls 10 cups
carlyle [carlyle!~carlyle@216.133.69.20] has joined #ruby
<epochwolf|vps> wmoxam: porn = nekkid people, screwing eachother
virunga [virunga!~virunga@151.64.44.17] has joined #ruby
<shevy> lies!
<apeiros_> epochwolf|vps: they do home improvement?
<wmoxam> epochwolf|vps: oh, my youth pastor isn't going to liek that
<apeiros_> screws n stuff…
<epochwolf|vps> apeiros_: only as a backdrop
<epochwolf|vps> wmoxam: are you catholic?
<epochwolf|vps> if you are, you can ask the father about it and he'll be happy to discuss it with you
<shevy> Penguin_Gab the reason why there are so many young people using php is because (a) PHP is in essence fairly easy to learn and get started quickly (b) you see your results "online" quickly and (c) you get tempted by easy, early money that way!
<Penguin_Gab> lol
<Penguin_Gab> shevy : true that
<shevy> look at ruby before rails
<burgestrand> And it’s easy to find cheap or even free hosts
<esufan> im using ruby so i dont have to be a doctor
<canton7> shevy, also extremely common, cheap shared hosting, and amazing docs
supergiantrobot [supergiantrobot!~supergian@cpe-174-097-169-208.nc.res.rr.com] has joined #ruby
<esufan> my goal
<shevy> a sad sad small group of enthusiastic people
<Penguin_Gab> shevy : but what advantages does ruby have over php in the long run? curious
<shevy> though I think the people using rails are on average older than the average php guy
Azure [Azure!~azt@unaffiliated/azure] has joined #ruby
<Penguin_Gab> the community of php is so bad
<wmoxam> shevy: we weren't "sad"
<Penguin_Gab> ic
<wmoxam> sheesh
<shevy> Penguin_Gab, the language itself has a 10000 superior design in everything
<Penguin_Gab> tons of procedural code
<shevy> I mean ruby has. PHP just stinks
<Penguin_Gab> confusing as hell
<Penguin_Gab> ic
<shevy> everything that can be done in PHP can be done in ruby with less lines of code and clearer
<chiel> gotta love all the functions floating around in global space, as well ;D
<burgestrand> except for default values for instance varialbes
<burgestrand> :p
<Penguin_Gab> how about the killer app - Rails? can u tell me more about it?
<norm> everything you can do i can do better
<Penguin_Gab> lol
<shevy> hmm
<chiel> rails to me is like a bunch of magic, but I don't know enough to actually judge it
<Penguin_Gab> uh huh
<shevy> rails is way too colossal
<chiel> i'm using sinatra at the moment. but once I have time, I would like to dive into Rack itsself
<Hanmac> IMO rails looks sometimes a bit ugly ...
<chiel> thing is, when I started with ruby, I was like... I want to learn ruby, not rails.
<shevy> yeah chiel same here
carlyle__ [carlyle__!~carlyle@70.43.205.70.nw.nuvox.net] has joined #ruby
<burgestrand> chiel: rack is not much to dive into, it’s a proc that takes a hash and returns a triple :p
<Penguin_Gab> hmm
<chiel> sinatra doesn't really coerce you into using a certain mindset
<Hanmac> and users confuse rails with ruby
<shevy> true
nonotza [nonotza!~nonotza@66.246.94.130] has joined #ruby
<canton7> I spent a few weeks playing with rails -- even got the book! My conclusion was that, as long as you want to do what it likes doing, life is extremely easy. Once you start trying to do something which it doesn't like doing, life's hell. Also, the learning curve's fairly steep -- there's probably a dead simple way to achieve what you're trying, but it's not always obvious what that way is
<chiel> whereas with rails kinda does do that, to a degree
<burgestrand> rails is not for beginners any more, but many walk into it thinking the opposite
<canton7> sinatra, on the other hand, is much more like CI or Fuel for PHP -- a set of tools, and the flexibility to do exactly what you want to do
<chiel> burgestrand: yeah, perhaps. but when I started with ruby (coming from php), it was very confusing to me I had to start my own server etc etc
<chiel> and sinatra took care of all of that for me
strife25 [strife25!strife25@nat/ibm/x-tlikorcsoqqgluqi] has joined #ruby
<burgestrand> chiel: yeah I know, had the same thing, all I wanted to do starting ruby is go to localhost/index.rb :p
<chiel> now that I am more used to that frame of mind, it'll be easier to dig into rack, as well.
<chiel> burgestrand: yeah, know that feeling.. :)
<shevy> canton7, I bought two rails book in total
<chiel> so yeah, in that sense, sinatra helped me a lot
<shevy> ended up reading the first up to page ... 97 or something, the other one... to page 16
<canton7> shevy, dedication!
<Penguin_Gab> LOL burgestrand : same here. localhost/ruby.rb
<shevy> I got rid of both years ago
<canton7> haha!
<chiel> since it took that stuff out of the way, and enabled me to focus on learning ruby as a language.
<shevy> way to waste money :(
<Hanmac> i have seen in a bookstore a whole wall full of PHP books ... and only one little over rails, ... and no book for ruby itself
<Penguin_Gab> lol
<chiel> but yeah, Rack is definitely on my list.
<Penguin_Gab> hmm
<burgestrand> Hanmac: same for me, most ruby books you have to order where I live
<shevy> in the past I said php had the better online documentation, but this is no longer true
<Penguin_Gab> so Rack and Sinatra.. let me note that down
musl [musl!~mike@li44-23.members.linode.com] has joined #ruby
<shevy> Penguin_Gab, see, the documentation here is not so bad http://ruby-doc.org/core-1.9.3/Bignum.html
<canton7> there's also padrino, which is MVC on top of sinatra, and Monk, which provides some nice structures for sinatra projects
<chiel> Penguin_Gab: basically, sinatra is a dsl on top of rack
<Penguin_Gab> try going to any PHP forums and ask questions. You will be 'awe-struck'
<chiel> so sinatra does some work for you
<shevy> you could even give hints to other people at "Add New Comment"
<Penguin_Gab> i see
<Penguin_Gab> lol
<chiel> but there's a LOT of projects built on top of rack
dv310p3r [dv310p3r!~dv310p3r@216.199.155.226.nw.nuvox.net] has joined #ruby
<canton7> hmm, I think PHP docs are still better than ruby's, but they *need* to be. I've relied on extensive docs to figure out how to use PHP functions, but ruby's functions are intuitive and just seem to do exactly what you want...
<chiel> yeah, agreed
<shevy> but canton7!!! it's beautiful!
<chiel> i like the way that php has examples with EVERYTHING. :)
rramsden [rramsden!~rramsden@s64-180-62-209.bc.hsia.telus.net] has joined #ruby
<chiel> and user comments are really nice as well over there
<wmoxam> chiel: often they are bad examples
<chiel> usually there's someone that has already done what you are looking for
<chiel> wmoxam: yes, but they give you a starting point
<wmoxam> or even dangerous examples
<canton7> definitely. But then, you often need the comments and examples to figure out how to use the damn thing
<wmoxam> they encourage cargo culting
<chiel> but as canton7 pointed out, with ruby you don't really need all that stuff
<shevy> look at the documentation about "if" in php http://www.php.net/manual/en/control-structures.if.php
<chiel> it's intuitive
<shevy> it's ugly!
vraa [vraa!~vraa@h224.68.89.75.dynamic.ip.windstream.net] has joined #ruby
<chiel> haha, never looked something like that up.. :P
<canton7> I mean, it would be nice if Ruby had that level of docs, for sure. But it isn't needed in the same way that PHP needs it
<shevy> I think python has the best online docu these days
<Penguin_Gab> lol
<shevy> it's like reading a book :)
<wmoxam> heh, the 'if' docs example has the sort of comments I'm talking about
<shevy> ruby should steal that idea
<wmoxam> "Be careful when you chain inline "if" : "
<shevy> yeah wmoxam it's... quite a lot of line noise though, more comments that page content hehe
quest88 [quest88!~quest88@12.181.53.123] has joined #ruby
<shevy> inline if?
<wmoxam> more like "If you ever chain an inline if I'll cut your goddamn throat"
<canton7> compound inline if? :P
<shevy> what is that
<wmoxam> condition ? sopmething : something_else
<shevy> puts 'foo' if 5 > 4
<shevy> ?
<shevy> ah
<canton7> well, it refers to ternary operator: a > b ? 'yes' : 'no'
<wmoxam> canton7: yes
kennethreitz [kennethreitz!~kennethre@204.14.152.118] has joined #ruby
<wmoxam> that's the terminology
<wmoxam> conclusion: "So, if you want to chain inline "if" you have to use parentesis on each test"
<wmoxam> lolololol
<wmoxam> GREAT COMMENT! ++++++ WILL FOLLOW ADVICE
<shevy> hehe
<wmoxam> there's no comment moderation
<wmoxam> so there's no way a newb can seperate good advice from bad
<esufan> whoa i'm installing sinatra
freelanceful [freelanceful!~jamesfend@c-71-228-225-167.hsd1.tn.comcast.net] has joined #ruby
<wmoxam> it's a terrible idea that always gets touted as a php advantage
<shevy> esufan tell me more, how do you feel
confounds [confounds!~confounds@208.113.48.180] has joined #ruby
<esufan> happy that I can click a url and see output
<chiel> wmoxam: yeah, you are right
<chiel> esufan: lol :)
<chiel> when I started with sinatra I had some trouble getting stuff I simply printed to show up :P
<chiel> but now I just directed STDOUT and STDERR to a logfile
<shevy> wmoxam well, in ruby I find it quite simple... the more you write in ruby, the better you get (logically, in anything you do anyway...), but the only way to really learn ruby is to write ruby code anyway (which is also logical, but often newcomers read boring books or online things, and wait for a long time before they write serious ruby code)
<chiel> = problem solved :P
<freelanceful> hey guys... I'm writing out my cucumber tests and have a question on how you normally group em. I have milestones that pretty much: add, edit, fund, and release payments. Should I put all these under one .feature file and make them all into scenarios? or should they all be a feature itself?
<esufan> how do i escape sinatra
<esufan> in cmd
<shevy> esufan lol
<Penguin_Gab> what is the most badass thing you ever built in Ruby (+Rails)?
<Penguin_Gab> Ctrl Alt Del
<canton7> ctrl-C
<chiel> esufan: ctrl-C is generic for stopping a running process
<chiel> same with like tailing logfiles or whatever
<chiel> Penguin_Gab: not much tbh. I'm still very much learning
<esufan> i see
<chiel> but I've started an open source project (mostly in JS) with ruby.
<chiel> so hopefully people will point out what a retard I am
<chiel> and teach me better ruby
<Gate> freelanceful: By convention you group them by "feature" so I would consider payments a single feature
<freelanceful> Gate: thanks!
<canton7> I've started doing all my shell scripting in ruby -- backups programs, general glue, etc. Also done odd misc projects (asset manager for sinatra, sudoku solver, git todo manager, etc)
djr [djr!~djr@dsl-208-196.madisontelco.com] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
dcl [dcl!~user@186.214.89.62] has joined #ruby
<Penguin_Gab> hmm
<Hanmac> Penguin_Gab: many stuff, i "ported" an GUI engine (CEGUI) to ruby, that was my biggest thing ... and i try to write an RPGMaker in ruby
Spockz [Spockz!~Spockz@21pc198.sshunet.nl] has joined #ruby
20QAAJ6DJ [20QAAJ6DJ!~quassel@79.114.121.33] has joined #ruby
<shevy> Hanmac cool. is that on github?
codefriar [codefriar!~codefriar@cpe-098-026-012-134.nc.res.rr.com] has joined #ruby
<shevy> canton7 yeah, same here.
<shevy> I always hated writing shell scripts
<codefriar> Sadly, though I've required 'bundler/setup' and required 'foo' where foo is the name of a gem in the gemfile and gemfile.lock, *and* I've run bundle install, for some reason my script can't find gem foo. Any ideas on how to fix that ?
n8ji [n8ji!~n8ji@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
<canton7> if you require bundler/setup, you don't require any of the gems yourself, iirc
<canton7> aah, or maybe you do. my bad
chrisja [chrisja!~chris@5ac7d92c.bb.sky.com] has quit [#ruby]
<Penguin_Gab> Hanmac : coolios
rickmasta [rickmasta!~rickmasta@pool-71-183-247-164.nycmny.fios.verizon.net] has joined #ruby
<Penguin_Gab> Hanmac : git it! please
<codefriar> canton7: sadly not requiring the gem throws an unknown Constant
<canton7> codefriar, have you got a small example we can play with?
<codefriar> canton7: sure thing, let me gist it.
eywu [eywu!~Adium@205-170-107-4.dia.static.qwest.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
vovik [vovik!~vovik@2620:149:4:1501:e5e1:37e8:38ef:dd91] has joined #ruby
vovik [vovik!~vovik@2620:149:4:1501:e5e1:37e8:38ef:dd91] has quit [#ruby]
<canton7> ta
<codefriar> canton7: ?
<canton7> british for "thanks"
<codefriar> ah
baroquebobcat [baroquebobcat!~nick@c-67-176-80-121.hsd1.co.comcast.net] has joined #ruby
<canton7> codefriar, ah I don't have a mac, and control_tower appears to be mac-only
<codefriar> canton7: yeah, it's a macruby thing, but the deal isn't neccesarrily with control_tower. Hit up nokogiri or whatever.
<codefriar> canton7: it feels like bundler/setup isn't able to set the load path
<canton7> is it all gems which are failing to load?
Hanmac [Hanmac!~hanmac@p50845366.dip0.t-ipconnect.de] has joined #ruby
<codefriar> yep
<codefriar> sinatra is the other example
<Hanmac> my GDM plays ugly games with me :P
djr [djr!~djr@dsl-208-196.madisontelco.com] has joined #ruby
<shevy> your girlfriend display manager?
brngardner [brngardner!~brngardne@c-98-192-3-166.hsd1.ga.comcast.net] has joined #ruby
<Hanmac> no ... my GDM kicked me out of the session and then the network was not working :/
dv310p3r [dv310p3r!~dv310p3r@host-208-68-238-122.biznesshosting.net] has joined #ruby
paissad [paissad!~paissad@89-92-16-151.hfc.dyn.abo.bbox.fr] has joined #ruby
<canton7> codefriar, hmm can't replicate I'm afraid, using gems that were pre-installed on the system, and without
<Hanmac> shevy: there is my cegui gem https://github.com/Hanmac/libcegui-ruby but it is in developing so there could be bad errors
<codefriar> drat
<shevy> cool lots of .cpp
<Hanmac> i hope you like my coding style
Revernd [Revernd!~michaelde@wsip-70-168-157-254.oc.oc.cox.net] has joined #ruby
letsgojuno [letsgojuno!~mmathews8@188.220.153.25] has joined #ruby
cylence [cylence!~cylence@64-71-24-18.static.wiline.com] has joined #ruby
<codefriar> Hanmac: what's libcegui ?
<Hanmac> libcegui or CEGUI is a ingame GUI system
<tommylommykins> hmmm
* tommylommykins is hable accessing documentation for ENglish at ruby-doc.org :s
<tommylommykins> having trouble
<tommylommykins> hmm, nmost modules, in fact
* Hanmac sings "everyone hates swiq" :P
TomJ [TomJ!~TomJ@unaffiliated/tomj] has joined #ruby
GreaseMonkey [GreaseMonkey!~gm@unaffiliated/greasemonkey] has joined #ruby
seb_ [seb_!~seb@lns-bzn-44-82-249-235-15.adsl.proxad.net] has joined #ruby
<mxweas|away> so URI.parse fails with URLs that have spaces. Before I was just adding URI.encode to the url to escape the spaces, but URI.encode is now deprecated. What should I use instead? CGI::escape won't work because it escapes the slashes in http://
<zxiest> Hey :-)
<zxiest> Any way to unfreeze a var?
<shevy> zxiest sadly no
<shevy> .freeze is so totally useless :(
<zxiest> shevy erm... cool.. Thanks again today :-)
<shevy> "There is no way to unfreeze a frozen object."
<shevy> :(
<shevy> totally fucking useless!
<zxiest> duh
<zxiest> I'm getting arrays from the cache that I would like to add values to...
<zxiest> I'm having to copy them to other arrays
<zxiest> Append to new array
<zxiest> And add back to cache.. Stupid
<shevy> when a task seems stupid
<shevy> there are often more ways to solve it in ruby!
<shevy> and some of them could be better
willb [willb!~wibenton@99-100-185-10.lightspeed.mdsnwi.sbcglobal.net] has joined #ruby
<zxiest> shevy very possible... but sometimes certain data structures should behave naturally
<zxiest> shevy why would someone freeze an array in the cache?
<zxiest> You can solve threading issue in a different way
<zxiest> But freezing a data structure in the cache doesn't make much sense
<wallerdev> wouldn't unfreezing an object defeat the purpose of freezing it
mark_azevedo [mark_azevedo!~mark_azev@12.249.184.226] has joined #ruby
dv_ [dv_!~quassel@chello080108009040.14.11.vie.surfer.at] has joined #ruby
DrShoggoth [DrShoggoth!~prakwtf@12.116.104.118] has joined #ruby
<zxiest> wallerdev nope... You can freeze something in order to warn upon unfreezing
<zxiest> wallerdev I would freeze somewhere. Unfreeze somewhere else then refreeze.
Nss [Nss!~nss@host224-54-dynamic.50-79-r.retail.telecomitalia.it] has joined #ruby
<wallerdev> yeah but if you freeze it you're saying its not going to change and you shouldn't change it. if you want to change it later then why freeze it in the first place
<zxiest> wallerdev this is not how I defined freeze
<zxiest> I freeze something because I don't want it to be changed by mistake
<Hanmac> shevy have you looked at my code?
<zxiest> I would unfreeze it when I want to change it, then I would freeze back.
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
<wallerdev> whats to stop you from mistakenly unfreezing it and changing it then?
<wallerdev> seems like you're just adding an extra step
<zxiest> wallerdev because you're writing "unfreeze", doing something and then refreezing. It's like a confirmation step.
<zxiest> wallerdev if it's a project only one person's working on, yes.. there's no problem
<wallerdev> alright, well if you really wanted to do that you could set it up yourself
<wallerdev> but i don't think thats what freeze was meant for
kf8a [kf8a!~kf8a@dslfw4.mei.net] has joined #ruby
<zxiest> wallerdev not really, it's like saying: confirming passwords is useless
<zxiest> yes, it's useless when you don't make mistakes
<zxiest> but the reality is, we make mistakes
<wallerdev> i never said what you were doing was useless
cousine [cousine!~cousine@196.221.56.204] has joined #ruby
<Boohbah> login:
<zxiest> I don't mind criticism.. don't worry.. I just think there was something useful with the freezing/unfreezing concept :-)
<shevy> Hanmac I am too scared of C++ :)
<shevy> i just looked a little at a few of the .cpp files
<shevy> but I am too lost in C++
alup__ [alup__!~alup@193.92.123.5] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
theRoUS [theRoUS!KenCoar@nat/redhat/x-sbvpxjticxytptvd] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@46-64-51-175.zone15.bethere.co.uk] has joined #ruby
axl_ [axl_!~axl@75-149-152-225-Minnesota.hfc.comcastbusiness.net] has quit [#ruby]
c0rn [c0rn!~c0rn@50-0-164-69.dsl.dynamic.sonic.net] has joined #ruby
eywu [eywu!~Adium@205-170-107-4.dia.static.qwest.net] has joined #ruby
<any-key> ugh C++
kisp11 [kisp11!~kisp@g231208214.adsl.alicedsl.de] has joined #ruby
<Hanmac> the good thing if i write ruby-extentions i am not bound to C alone
hadees [hadees!~hadees@72-48-91-73.dyn.grandenetworks.net] has joined #ruby
ChampS666 [ChampS666!~ChampS@p54B4BFCF.dip.t-dialin.net] has joined #ruby
jankly [jankly!~jankly@c-71-57-99-219.hsd1.in.comcast.net] has joined #ruby
thecreators [thecreators!~rskagy@cpe-65-27-201-150.cinci.res.rr.com] has joined #ruby
zxiest[a] [zxiest[a]!~zxiest@213.204.77.180] has joined #ruby
stringoO [stringoO!~JLstring@bas1-toronto42-1279598844.dsl.bell.ca] has joined #ruby
emocakes [emocakes!~om@189-11-46-97.mganm703.dsl.brasiltelecom.net.br] has joined #ruby
robbyoconnor [robbyoconnor!~wakawaka@cpe-68-174-55-169.hvc.res.rr.com] has joined #ruby
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby
jbhewitt [jbhewitt!~jbhewitt@eth3258.qld.adsl.internode.on.net] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
axl_ [axl_!~axl@75-149-152-225-Minnesota.hfc.comcastbusiness.net] has joined #ruby
asobrasil [asobrasil!~asantioli@palpatine.privatedns.com] has joined #ruby
asobrasil [asobrasil!~asantioli@palpatine.privatedns.com] has quit [#ruby]
SamWhited [SamWhited!~SamWhited@c-71-56-64-198.hsd1.ga.comcast.net] has joined #ruby
looopy [looopy!~looopy@pool-141-156-50-23.washdc.btas.verizon.net] has joined #ruby
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
jesseangell [jesseangell!~jesseange@h70.251.190.173.static.ip.windstream.net] has joined #ruby
<jesseangell> Does anyone have their CI publish a gem that passed the build to their own gem repo automatically?
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
<jesseangell> trying to figure out the most logical way to do such a thing
kreantos_ [kreantos_!~kreantos@178.115.201.211.wireless.dyn.drei.com] has joined #ruby
djr [djr!~djr@dsl-208-196.madisontelco.com] has joined #ruby
Divinite_laptop [Divinite_laptop!~Chattabox@unaffiliated/chattaboxa] has joined #ruby
maletor [maletor!~maletor@74.115.25.139] has joined #ruby
Jake232 [Jake232!~textual@5e0e64ca.bb.sky.com] has joined #ruby
Azure|netbook|dc [Azure|netbook|dc!~azt@unaffiliated/azure] has joined #ruby
minijupe [minijupe!~benlieb@adsl-74-243-178-125.ard.bellsouth.net] has joined #ruby
florentg [florentg!~florentg@190.237.7.214] has joined #ruby
Retistic [Retistic!~adam@72.54.242.201] has joined #ruby
<Retistic> would shortest_distance ||= distance work if distance was a float. distance seems to be replacing shortest_distance even if it exists
<wallerdev> Retistic: should work fine
florentg [florentg!~florentg@190.237.7.214] has joined #ruby
<Divinite_laptop> Retistic: Agreed. Should work well :)
<wallerdev> it's the same as shortest_distance || (shortest_distance = distance) so as long as shortest_distance is truthy you should be ok
<Retistic> it seems to work in console, but not in my code :(
<wallerdev> sounds like you have a bug
<Retistic> this is returning nil https://gist.github.com/1603613
ChampS666 [ChampS666!~ChampS@p54B4DC0C.dip.t-dialin.net] has joined #ruby
<Retistic> and shortest_distance is being replaced after line 7 every time by distance
<Hanmac> you need shortest_distance defined outside of each
<wallerdev> shortest_distance goes out of scope
<Hanmac> haha faster :P
<wallerdev> lol
<wallerdev> i need a new website to work on
<Retistic> do i need to define job as well then?
<wallerdev> yeah you can set job = nil a the top, and then put job at the end
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
<wallerdev> also ||= nil is pretty useless
<Retistic> wallerdev: i did it because i was getting method undefined errors
<wallerdev> yeah because the variable wasn't defined in that scope
<wallerdev> so it thought you were calling a job method
<Retistic> i thought variables were dynamically instantiated in ruby and somehow scope was taken car of
<Retistic> care*
<wallerdev> scope isn't magic, it has to know when it can get rid of variables
<Retistic> gotcha, can i do float job; at the top then
<wallerdev> you don't need to define types
<wallerdev> so you could do job = nil or job = 0.0
al3xnull [al3xnull!~al3xnull@cpe-76-188-178-7.neo.res.rr.com] has joined #ruby
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby
yfeldblum [yfeldblum!~Jay@c-98-218-48-253.hsd1.md.comcast.net] has joined #ruby
<Retistic> wallerdev: when you say website, do you mean rails?
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby
<Retistic> by the way, thank you very much for the help, its working now
<wallerdev> yeah i might do it in rails if it calls for that
<wallerdev> just need a new side project since i sold my last one
<Retistic> what was your last one?
Jakee` [Jakee`!~Jakee`@5ad317fe.bb.sky.com] has joined #ruby
Jarred [Jarred!~Administr@c-71-198-139-210.hsd1.ca.comcast.net] has joined #ruby
tesmar [tesmar!~tesmar@cpe-024-163-059-067.nc.res.rr.com] has joined #ruby
eywu [eywu!~Adium@205-170-107-4.dia.static.qwest.net] has joined #ruby
apucacao [apucacao!~apucacao@thelevel.com] has joined #ruby
<Retistic> ah cool, was that rails?
Jarred [Jarred!~Administr@c-71-198-139-210.hsd1.ca.comcast.net] has quit [#ruby]
Jarred [Jarred!~Administr@c-71-198-139-210.hsd1.ca.comcast.net] has joined #ruby
<wallerdev> yeah it was rails when i sold it
FiestaSmash [FiestaSmash!~thisisfak@c-24-30-117-33.hsd1.ga.comcast.net] has joined #ruby
<wallerdev> it started as php in 2006
<Retistic> the project links at wallerdiv.com don't work :(
bbttxu [bbttxu!~adam@pool-71-96-208-205.dfw.dsl-w.verizon.net] has joined #ruby
<wallerdev> yeah lol
<wallerdev> its hard to work on a site about yourself
<wallerdev> gets a little boring
<wallerdev> the top 2 should ork
<wallerdev> work
<FiestaSmash> hey, need to create a connection with a server on rails
<FiestaSmash> possible without any gems?
emocakes [emocakes!~om@189-11-46-97.mganm703.dsl.brasiltelecom.net.br] has joined #ruby
<any-key> #rails would be a more helpful place to ask
<FiestaSmash> aka establish a tcp or udp connection on a certain address on a certain port, i just need to know if ruby could request one
<any-key> ah well that works too
<FiestaSmash> ah, thanks wallerdev
<FiestaSmash> brb
rpowell [rpowell!~rpowell@CPE-124-183-147-243.lns16.ken.bigpond.net.au] has joined #ruby
mdel_ [mdel_!~mdel@pool-71-175-17-16.phlapa.fios.verizon.net] has joined #ruby
<Retistic> wallerdev: do you do freelance work
<Retistic> ?
<wallerdev> no not really
<wallerdev> sometimes projects that take an hour or something
<wallerdev> but i have a regular job so i don't have much time for freelancing haha
confounds [confounds!~confounds@208.113.48.180] has joined #ruby
maletor [maletor!~maletor@74.115.25.139] has joined #ruby
ChampS666 [ChampS666!~ChampS@p54B4B474.dip.t-dialin.net] has joined #ruby
cmasseraf [cmasseraf!~cmasseraf@187.106.195.233] has joined #ruby
rdsm [rdsm!~regismesq@187.45.255.64] has joined #ruby
berserkr [berserkr!~david@212.122.111.205.dyn.user.ono.com] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
Sir_Rai [Sir_Rai!~rai@84.127.26.172.dyn.user.ono.com] has joined #ruby
nonotza_ [nonotza_!~nonotza@66.246.94.130] has joined #ruby
djr [djr!~djr@dsl-208-196.madisontelco.com] has joined #ruby
<FiestaSmash> ohey, I almost forgot to ask
pootpoot [pootpoot!~pootpoot@38.108.250.130] has quit [#ruby]
<FiestaSmash> I'm going to be heading to college soon, I want to know, in your fields of work in Computer Science, do you have enough time to do your own projects?
<FiestaSmash> Or does work consume most of your life?
lewix_ [lewix_!~lewix@bas1-toronto04-1242322723.dsl.bell.ca] has joined #ruby
<wallerdev> depends where you're working
<jesseangell> FiestaSmash: a good job will give you enough time to do your own projects because they'll recognize that by doing so you'll learn even more and be a better employee
<jesseangell> FiestaSmash: programmers that never play or program for fun tend to be very close minded and only know the toolset they need for their job - and as a result - can never really recommend something better
<jesseangell> just my opinion
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
<FiestaSmash> ah, thanks. I really was considering if it would have me up day and nights working on tedious systems only suggested or even needed by my employer
<jesseangell> FiestaSmash: all employers are different. find one that'll make you happy.
<emocakes> FiestaSmash
<emocakes> always have enough time
<emocakes> if you want
<FiestaSmash> Ah, so I shouldnt expect that as the default policy of every employer :(
<emocakes> the only way to learn is to play around
<emocakes> well my employer for instance
<FiestaSmash> ?
<wallerdev> some environments like startups you can end up working quite a few more hours than other jobs which can leave you without a lot of time for personal projects. but hopefully you're working on something that you can consider your own project :)
helllen [helllen!~helllen@91.102.241.62] has joined #ruby
abentspoon [abentspoon!~micah@173.247.201.130] has joined #ruby
<FiestaSmash> No, that's the thing, I've been working on my own projects since I was 11, I'm only afraid I may have to give that up in order to get the career that I love which also involve my past projects (ironically)
<emocakes> eerm sorry
<emocakes> distaction FiestaSmash
<emocakes> my employer is cool
<FiestaSmash> Basically put, stop fiddling with computers on my own time to fiddle with computers on an employers time, full time.
<emocakes> i can work from whatever country i want
<FiestaSmash> ah, its alright.
<emocakes> the best thing about being a programmer is you can essentialy work when you want
<emocakes> if you want to
<emocakes> try not to get a job per se
<emocakes> freelance
<wallerdev> you shouldn't have to give that up and you should make sure you don't or you'll probably fall behind in terms of learning
<emocakes> get a job in a start up company
<FiestaSmash> how does that pay..?
<emocakes> pays well enough for the flexibility
<emocakes> you spend less when you are in a different country every month
<FiestaSmash> neat!
<emocakes> i spent alot more living at home
<wallerdev> most of the startups in the bay area are paying pretty well, you can ask them if they have funding and things like that
<emocakes> yes, startups in the bay are the place to be
statarb3 [statarb3!~CoreD@546A56AA.cm-12-3b.dynamic.ziggo.nl] has joined #ruby
statarb3 [statarb3!~CoreD@unaffiliated/statarb3] has joined #ruby
<emocakes> i know a few people there, say its a gold mine
<emocakes> im planning on heading to the US by the end of the year
<wallerdev> yeah i think it'd be cool to move out there someday
<any-key> psh Kansas is where all the exciting startups are
<wallerdev> lol
<FiestaSmash> ok, sounds like I'm on the right track
<any-key> as well as Oklahoma
crescendo [crescendo!~eric@unaffiliated/crescendo] has joined #ruby
<wallerdev> yeah it sounds like you're ahead of a lot of people if you're thinking about that already FiestaSmash
RomD` [RomD`!~Roman@nrbg-4d070207.pool.mediaWays.net] has joined #ruby
<emocakes> note FiestaSmash
<emocakes> i couldnt stand university
<emocakes> i was doing software engineering
<emocakes> and ended up leaving
<emocakes> it was faarrrr too basic
<any-key> should've done CS
<FiestaSmash> haha, that's like the 3rd story I've been told about leaving a university.
<wallerdev> yeah university was a little slow for me as well, but i learned some important things and graduated :)
<wallerdev> so +1 for graduating
<FiestaSmash> a or an... huh. "an university" doesn't sound grammatically correct either. lol
<tdmackey> :p
<any-key> don't listen to tdmackey he's full of shit
<any-key> ;)
<tdmackey> :(
<FiestaSmash> :)
<any-key> tdmackey: didn't know you hung around here
<tdmackey> always and forever
<any-key> well then
seivan [seivan!~seivan@cm242.eta204.maxonline.com.sg] has joined #ruby
Mchl [Mchl!~Mchl@h1881165560.rev.rootvps.pl] has joined #ruby
cjs226 [cjs226!~cjs226@99-61-65-242.lightspeed.austtx.sbcglobal.net] has joined #ruby
rushed [rushed!~rushed@cpe-70-116-11-35.austin.res.rr.com] has joined #ruby
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has quit [#ruby]
strevat_ [strevat_!~strevat@c-24-128-190-16.hsd1.ma.comcast.net] has joined #ruby
henn1nk [henn1nk!~irc@henn1nk.com] has quit ["WeeChat 0.3.6"]
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
gorgapor [gorgapor!~christian@206.169.213.106] has joined #ruby
mikeycgto [mikeycgto!~mikeycgto@ool-4571cba8.dyn.optonline.net] has joined #ruby
mikeycgto [mikeycgto!~mikeycgto@pdpc/supporter/active/mikeycgto] has joined #ruby
<gorgapor> what's the most concise and readable way to test whether a value is not nil or an empty string?
andrewhl [andrewhl!~andrew@24.246.14.26] has joined #ruby