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/
<arex\> :D
tomzx [tomzx!~tomzx@dsl-156-68.aei.ca] has joined #ruby
<apeiros_> mr-green: yw
kawa_xxx [kawa_xxx!~kawa_xxx@w0109-49-133-7-113.uqwimax.jp] has joined #ruby
Azure_ [Azure_!~Azure@reenigne.net] has joined #ruby
Crisco [Crisco!~Crisco@71-209-5-91.bois.qwest.net] has joined #ruby
FiestaSmash [FiestaSmash!~thisisfak@c-24-30-117-33.hsd1.ga.comcast.net] has quit [#ruby]
`brendan [`brendan!~b@64-121-18-195.c3-0.upd-ubr1.trpr-upd.pa.cable.rcn.com] has joined #ruby
lewix [lewix!~lewix@bas1-toronto04-1242322723.dsl.bell.ca] has joined #ruby
lewix [lewix!~lewix@unaffiliated/lewix] has joined #ruby
eywu [eywu!~Adium@205-170-107-4.dia.static.qwest.net] has joined #ruby
luke__ [luke__!~luke@27-32-234-171.static.tpgi.com.au] has joined #ruby
notazure [notazure!~Azure@unaffiliated/azure] has joined #ruby
jbpros [jbpros!~jbpros@201-178-112-217.dyn.adsl.belcenter.be] has joined #ruby
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
araujo [araujo!~araujo@190.73.44.29] has joined #ruby
araujo [araujo!~araujo@gentoo/developer/araujo] has joined #ruby
lewix [lewix!~lewix@unaffiliated/lewix] has quit [#ruby]
Azure|netbook [Azure|netbook!~azt@unaffiliated/azure] has joined #ruby
gener1c [gener1c!~gener1c@93-172-9-13.bb.netvision.net.il] has joined #ruby
gener1c [gener1c!~gener1c@unaffiliated/gener1c] has joined #ruby
raincole_ [raincole_!~raincole@2001:288:5239:1:224:2bff:fe75:2f60] has joined #ruby
wyhaines [wyhaines!~wyhaines@64.134.162.75] has joined #ruby
<voodoofish430> going to attempt to get some coffee...
<voodoofish430> then more ruby learning.
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
mark_azevedo [mark_azevedo!~mark_azev@70-36-215-74.dsl.dynamic.sonic.net] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
TomJ [TomJ!~TomJ@host-78-147-101-223.as13285.net] has joined #ruby
TomJ [TomJ!~TomJ@unaffiliated/tomj] has joined #ruby
moted [moted!~ryan@c-98-246-106-150.hsd1.or.comcast.net] has joined #ruby
vraa [vraa!~vraa@99-20-202-44.lightspeed.hstntx.sbcglobal.net] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
kreantos [kreantos!~kreantos@178.112.206.3.wireless.dyn.drei.com] has joined #ruby
UnscrypteD [UnscrypteD!~Unscrypte@64.134.148.167] has joined #ruby
atmosx [atmosx!~atmosx@191.116.broadband5.iol.cz] has joined #ruby
gnusosa [gnusosa!~cisosa@unaffiliated/gnusosa] has joined #ruby
yfeldblum [yfeldblum!~Jay@c-98-218-48-253.hsd1.md.comcast.net] has joined #ruby
elektron1ut [elektron1ut!~inge@cm-84.215.100.38.getinternet.no] has joined #ruby
<shevy> voodoofish430 that's the spirit!
<shevy> don't forget to start on larger ruby projects too eventually and upload to github
<shevy> eventually there comes a break-even point, where it is easier for people to use your code, than start from 0
<shevy> jlogsdon the .rbenv-version does it reside under the HOME dir of the user?
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
voodoofish [voodoofish!~voodoowin@adsl-99-93-149-204.dsl.lsan03.sbcglobal.net] has joined #ruby
butch128 [butch128!~butch128@173-230-187-70.cable.teksavvy.com] has joined #ruby
ryanf [ryanf!~revfitz@50.0.160.40] has joined #ruby
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
<butch128> How would i unpack MySQL's HEX() methods encoding of a string? unpack("H") seems to return gobbly gook
<butch128> TO_BASE64 isn't available in mysql 5.1... so i have to make do =(
<butch128> nevermind, got it.. .scan(/../).each { | tuple | puts tuple.hex.chr }
quest88 [quest88!~quest88@12.181.53.123] has joined #ruby
Excellonet [Excellonet!c317a201@gateway/web/freenode/ip.195.23.162.1] has joined #ruby
<Excellonet> Excello, a competitive gaming (eSport) tournament organizer, is looking for a web developer to strengthen its team. Is it You? :)
<shevy> butch128 cool, how did you find out so quickly? would have taken me ages before I'd even know of .hex method
Avi_ [Avi_!~chumphre@2620:149:f01:201:313d:f421:c646:9dc2] has joined #ruby
<voodoofish430> shevy: actually learning and teaching....which i'm not sure is the best route to take... :)
arex\ [arex\!arex@158.36.150.14] has quit [#ruby]
alienvenom [alienvenom!alienvenom@50-76-43-138-ip-static.hfc.comcastbusiness.net] has joined #ruby
zmisc [zmisc!~zachary@pdpc/supporter/student/zmisc] has joined #ruby
incluye [incluye!~inclooye@208.102.195.210] has joined #ruby
elektronaut_ [elektronaut_!~elektrona@manualdesign.no] has joined #ruby
rramsden [rramsden!~rramsden@s64-180-62-209.bc.hsia.telus.net] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
jbw [jbw!~jbw@dsl-044-084.cust.imagine.ie] has joined #ruby
josh___ [josh___!~josh@74-95-43-126-Oregon.hfc.comcastbusiness.net] has joined #ruby
zmisc [zmisc!~zachary@pdpc/supporter/student/zmisc] has joined #ruby
beilabs [beilabs!~jonathan@ppp59-167-171-134.static.internode.on.net] has joined #ruby
centipedefarmer [centipedefarmer!~centipede@75-162-51-42.desm.qwest.net] has joined #ruby
mr-green [mr-green!~mr-green@122.164.183.100] has joined #ruby
bikcmp [bikcmp!jason@defocus/stripper/nakedwanker] has joined #ruby
<bikcmp> hi all
<bikcmp> so
<bikcmp> i need help with ruby threading.
<bikcmp> i'm somewhat new to ruby, from python and c.
<bikcmp> so, I'm creating a IRC webchat.
<bikcmp> for every client, I'm making a new thread.
<bikcmp> $bots=[]
<bikcmp> $bots << Thread.new{(IRCClient.new("hi","hi","xyz.com","68.38.74.219"))}
<bikcmp> the thing is, I need to be able to tell the threads to die (but do some commands before dying, first)
<bikcmp> or, better yet, just interact with the threads.
pnegri [pnegri!~patrickne@177.33.239.35] has joined #ruby
siksia [siksia!~siksia@209.119.255.4] has joined #ruby
cmarques [cmarques!~cmarques@189.110.104.248] has joined #ruby
yakko [yakko!~quassel@187.113.37.133] has joined #ruby
KindOne [KindOne!~KindOne@colchester-lug/silly-fool/donut] has joined #ruby
ipsifendus [ipsifendus!~ipsifendu@c-67-169-223-202.hsd1.or.comcast.net] has joined #ruby
thomasfedb [thomasfedb!~thomasfed@2607:f358:1:fed5:11:0:1399:1] has joined #ruby
sdwrage [sdwrage!~sdwrage@cpe-184-57-123-50.columbus.res.rr.com] has joined #ruby
sdwrage [sdwrage!~sdwrage@cpe-184-57-123-50.columbus.res.rr.com] has joined #ruby
<sdwrage> Hey guys. If I have maybe 4 attributes that I need to run a method on (All string), what is the best way to set them?
<sdwrage> I don't want to create 4 setters and run the same exact setter on all of them
Clordio [Clordio!~textual@c-174-52-72-79.hsd1.ut.comcast.net] has joined #ruby
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
raluxgaza [raluxgaza!~raluxgaza@host-78-146-236-231.as13285.net] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
fixl [fixl!~fixl@124-148-147-209.dyn.iinet.net.au] has joined #ruby
colint [colint!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
maletor [maletor!~maletor@c-69-181-24-86.hsd1.ca.comcast.net] has joined #ruby
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
Cyrus [Cyrus!~Cyrus@unaffiliated/cyrus] has joined #ruby
Guest17693 [Guest17693!~Cyrus@unaffiliated/cyrus] has joined #ruby
wayne [wayne!~wayne@unaffiliated/wayne] has joined #ruby
cooper [cooper!~mitchell@unaffiliated/furryfishy] has joined #ruby
juarlex_alt [juarlex_alt!~juarlex@201.124.160.19] has joined #ruby
Clordio [Clordio!~textual@c-174-52-72-79.hsd1.ut.comcast.net] has joined #ruby
zmisc [zmisc!~zmisc@pdpc/supporter/student/zmisc] has joined #ruby
Cyrus [Cyrus!~Cyrus@unaffiliated/cyrus] has joined #ruby
Cyrus [Cyrus!~Cyrus@unaffiliated/cyrus] has joined #ruby
Cyrus [Cyrus!~Cyrus@unaffiliated/cyrus] has joined #ruby
v0n [v0n!~v4n@modemcable144.68-81-70.mc.videotron.ca] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
robyurkowski [robyurkowski!~robyurkow@205.233.80.139] has joined #ruby
cooper [cooper!~mitchell@unaffiliated/furryfishy] has joined #ruby
adamkittelson [adamkittelson!~adamkitte@c-24-23-252-19.hsd1.ca.comcast.net] has joined #ruby
philips [philips!~philips@shell.ifup.org] has joined #ruby
josesaldana [josesaldana!~josesalda@186.73.99.124] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
horieyui [horieyui!~horieyui@113.106.212.39] has joined #ruby
geaif [geaif!~geaif@7-239.62-188.cust.bluewin.ch] has joined #ruby
icrazyhack [icrazyhack!~horieyui@124.165.209.20] has joined #ruby
horieyui [horieyui!~horieyui@114.119.1.27] has joined #ruby
icrazyhack [icrazyhack!horieyui@222.47.159.116] has joined #ruby
RudyValencia [RudyValencia!~me@unaffiliated/rudyvalencia] has joined #ruby
AnimawIMBATMAN [AnimawIMBATMAN!~Caius_Wor@71-38-224-74.slkc.qwest.net] has joined #ruby
AnimawIMBATMAN [AnimawIMBATMAN!~Caius_Wor@71-38-224-74.slkc.qwest.net] has quit [#ruby]
troll [troll!~KindOne@colchester-lug/silly-fool/donut] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
strife25 [strife25!~strife25@cpe-098-026-018-050.nc.res.rr.com] has joined #ruby
adamkitt_ [adamkitt_!~adamkitte@c-24-23-252-19.hsd1.ca.comcast.net] has joined #ruby
si14 [si14!u2619@gateway/web/irccloud.com/x-quvvboexooauhrsg] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
<shevy> sdwrage what
josefig [josefig!~josefig@unaffiliated/josefig] has joined #ruby
<shevy> sdwrage with attributes you mean an @instance_variable?
<sdwrage> yeah
<shevy> ok, one way is to store those @instance_variables in an Array, and iterate through them
cylence [cylence!~cylence@64-71-24-18.static.wiline.com] has joined #ruby
arex\ [arex\!arex@158.36.150.14] has joined #ruby
<arex\> I get a NoMemoryError when I do @words = Hash[@words.sort_by { |k, v| -v }]
<arex\> Tips?
cesario [cesario!u2444@gateway/web/irccloud.com/x-jiaepibxdnzbztxu] has joined #ruby
SeanTAllen_ [SeanTAllen_!u4855@gateway/web/irccloud.com/x-vnvakpoutonguvtq] has joined #ruby
p0y [p0y!~p0y@182.18.249.103] has joined #ruby
jrgifford [jrgifford!u3281@gateway/web/irccloud.com/x-gtdbrbbuhqyueypf] has joined #ruby
jrgifford [jrgifford!u3281@ubuntu/member/jrgifford] has joined #ruby
notbrent [notbrent!u5121@gateway/web/irccloud.com/x-vukbrlantiiewsvf] has joined #ruby
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby
silky [silky!~silky@pool-74-108-142-22.nycmny.fios.verizon.net] has joined #ruby
dkannan [dkannan!u480@gateway/web/irccloud.com/x-fyuonjzetqjecrpq] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
janissary [janissary!~user@adsl-98-85-0-232.mco.bellsouth.net] has joined #ruby
apok [apok!~apok@96.24.67.22] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
moeSeth [moeSeth!u1029@gateway/web/irccloud.com/x-cqeahvstqlwvdicm] has joined #ruby
relix [relix!u2146@gateway/web/irccloud.com/x-diusclfbsejchaka] has joined #ruby
<RubyPanther> sdwrage: %w/ one two buckle shoe /.each{|m| foo.send "#{m}=", val}
juarlex [juarlex!~juarlex@201.124.160.19] has joined #ruby
x0F__ [x0F__!~x0F@unaffiliated/x0f] has joined #ruby
<krz> whats a good way to write: if foo != 'foo' and foo != 'bar' and foo != 'etc etc'
fayimora [fayimora!~fayimora@109.175.187.218] has joined #ruby
IrishGringo [IrishGringo!~chatzilla@c-71-229-99-200.hsd1.fl.comcast.net] has joined #ruby
<notbrent> !['foo','bar','etc'].include?('foo') perhaps?
<krz> thanks will try this out
MetaCosm [MetaCosm!u514@gateway/web/irccloud.com/x-vhnwrkhxdkhuyjqt] has joined #ruby
mcowan [mcowan!~mcowan@bas3-toronto48-1176442670.dsl.bell.ca] has joined #ruby
artOfWar [artOfWar!~artofwar@108-205-201-30.lightspeed.sntcca.sbcglobal.net] has joined #ruby
kapowaz [kapowaz!u546@gateway/web/irccloud.com/x-fvzovrjjobevcjuj] has joined #ruby
htl [htl!~sam@d14-69-225-16.try.wideopenwest.com] has joined #ruby
<htl> hello. i'm on ubuntu and i can't get rvm to use ruby 1.9.3.
<htl> rvm use 1.9.3; ruby -v
<htl> Using /usr/share/ruby-rvm/gems/ruby-1.9.3-p0
<htl> ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux]
davidcelis [davidcelis!~david@c-76-115-58-79.hsd1.or.comcast.net] has joined #ruby
<htl> helloooooooooo
artOfWar [artOfWar!~artofwar@nat/yahoo/x-grhuyyconirqeajj] has joined #ruby
RubyPanther [RubyPanther!~paris@c-24-22-48-80.hsd1.or.comcast.net] has joined #ruby
Targen [Targen!~iguana@190.39.181.108] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
<wallerdev> htl: do you have a separate ruby installed thats first in your path?
<htl> wallerdev, it's using the system ruby
<htl> i don't know what you mean "first in your path"
<wallerdev> did you follow the rvm installation instructions?
<htl> yes
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
<wallerdev> if you do echo $PATH do you see rvm first before wherever your system ruby is?
moeSeth [moeSeth!u1029@gateway/web/irccloud.com/x-mmctgcnerakjnewa] has joined #ruby
orospakr [orospakr!~orospakr@mobotropolis.orospakr.ca] has joined #ruby
<htl> i don't see rvm per se
<wallerdev> well that would be why it's using the wrong one
_|christian|_ [_|christian|_!~christian@190.236.233.82] has joined #ruby
<wallerdev> when you type "ruby" in your shell it will look in all the folders in your path for that executable file
<wallerdev> and right now its finding your system ruby
<htl> isn't rvm supposed to take care of that?
<wallerdev> probably
<htl> well that's dumb.
kamalreddy [kamalreddy!~coder@202.3.77.231] has joined #ruby
<sdwrage> RubyPanther: brilliant :)
srid [srid!u3297@gateway/web/irccloud.com/x-bwbeteuapoeapnrb] has joined #ruby
srid [srid!u3297@unaffiliated/srid] has joined #ruby
srid [srid!u3297@gateway/web/irccloud.com/x-bwbeteuapoeapnrb] has joined #ruby
davidboy [davidboy!u3228@gateway/web/irccloud.com/x-prtjggtlqgbilnkf] has joined #ruby
<RubyPanther> <3 Matz
cesario [cesario!u2444@gateway/web/irccloud.com/x-ztfbvpwpsswqfkod] has joined #ruby
dzhulk [dzhulk!~dzhulk@88.201.230.6] has joined #ruby
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby
<sdwrage> far better than php IMHO. So glad I switched
<wallerdev> haha
kapowaz [kapowaz!u546@gateway/web/irccloud.com/x-fkcamhazlmsuurgq] has joined #ruby
<wallerdev> most things are far better than php
krizzo [krizzo!80bb6113@gateway/web/freenode/ip.128.187.97.19] has joined #ruby
jergason [jergason!~jergason@c-67-182-209-164.hsd1.ut.comcast.net] has joined #ruby
relix [relix!u2146@gateway/web/irccloud.com/x-ieozlgtcicvdxjil] has joined #ruby
abstrusenick [abstrusenick!~abstrusen@bb220-255-53-87.singnet.com.sg] has joined #ruby
si14 [si14!u2619@gateway/web/irccloud.com/x-dheutrgijfhacmby] has joined #ruby
jrgifford [jrgifford!u3281@gateway/web/irccloud.com/x-flfweiahjqrltvpe] has joined #ruby
jrgifford [jrgifford!u3281@ubuntu/member/jrgifford] has joined #ruby
<krizzo> I'm running Debian 5.0.3 and have gems installed but have an issue. I ran $gem install nokogiri and got this ERROR: could not find gem nokogiri locally or in a repository
p0y [p0y!~p0y@182.18.249.103] has joined #ruby
achiu [achiu!~Adium@ip68-5-18-17.oc.oc.cox.net] has joined #ruby
<wallerdev> krizzo: check your gem sources
Avi_ [Avi_!~chumphre@c-98-207-237-171.hsd1.ca.comcast.net] has joined #ruby
<wallerdev> and make sure you have the latest version of rubygems
Avi_ [Avi_!~chumphre@unaffiliated/avi/x-8629955] has joined #ruby
shaatar [shaatar!u648@gateway/web/irccloud.com/x-nbdzlxxunpqezqwl] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
<krizzo> wallerdev: humm didn't noticed it was gem v 1.2.0
<wallerdev> if you're using the debian version and you're looking to use the latest ruby libraries and gems you probably should just download the latest version of ruby
<wallerdev> debian tends to be pretty slow with their updates to ruby
<krizzo> Oh I didn't know that, I haven't used debian in years and they have it on this system at school. I'll do that instead hopefully that fixes things.
patricksroberts [patricksroberts!u3278@gateway/web/irccloud.com/x-cohdqrebikrgjhgp] has joined #ruby
dkannan [dkannan!u480@gateway/web/irccloud.com/x-ssmpsslqjjgadlil] has joined #ruby
siksia [siksia!~siksia@209.119.255.4] has joined #ruby
hkhalid [hkhalid!hkhalid@pool-173-79-49-114.washdc.fios.verizon.net] has joined #ruby
<hkhalid> (°□°)
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby
jbhewitt [jbhewitt!~jbhewitt@124.171.232.179] has joined #ruby
denysonique_ [denysonique_!u484@gateway/web/irccloud.com/x-vsnxfcmmoyzcllxx] has joined #ruby
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby
igotnolegs [igotnolegs!~igotnoleg@75-162-83-166.slkc.qwest.net] has joined #ruby
p0y [p0y!~p0y@182.18.249.103] has joined #ruby
notbrent [notbrent!u5121@gateway/web/irccloud.com/x-slyetnngiheltkow] has joined #ruby
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-hyuxnrwnymszeyxc] has joined #ruby
apok [apok!~apok@96.24.67.22] has joined #ruby
Pip [Pip!~Pip@176.214.4.186] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby
incluye [incluye!~inclooye@208.102.195.210] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
moeSeth [moeSeth!u1029@gateway/web/irccloud.com/x-dakrikpkuedzhstc] has joined #ruby
fcoury [fcoury!u2238@gateway/web/irccloud.com/x-txoixryfwsgrsqgi] has joined #ruby
wallerdev_ [wallerdev_!~wallerdev@72.44.102.30] has joined #ruby
beilabs [beilabs!~jonathan@ppp59-167-171-134.static.internode.on.net] has joined #ruby
daniel_hinojosa [daniel_hinojosa!~danno@67-0-117-93.albq.qwest.net] has joined #ruby
djr [djr!~djr@dsl-208-196.madisontelco.com] has joined #ruby
MetaCosm [MetaCosm!u514@gateway/web/irccloud.com/x-yufvslsmxrqrkakq] has joined #ruby
SeanTAllen_ [SeanTAllen_!u4855@gateway/web/irccloud.com/x-egtnzucphkstyjqy] has joined #ruby
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby
p0y [p0y!~p0y@182.18.249.103] has joined #ruby
kennethepperly [kennethepperly!~cinch@boxand.lnk.telstra.net] has joined #ruby
kennethepperly [kennethepperly!~cinch@boxand.lnk.telstra.net] has joined #ruby
kennethepperly [kennethepperly!~cinch@boxand.lnk.telstra.net] has joined #ruby
kennethepperly [kennethepperly!~cinch@boxand.lnk.telstra.net] has joined #ruby
tesmar [tesmar!~tesmar@cpe-024-163-059-067.nc.res.rr.com] has joined #ruby
jergason [jergason!~jergason@c-67-182-209-164.hsd1.ut.comcast.net] has joined #ruby
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
p0y [p0y!~p0y@182.18.249.103] has joined #ruby
kennethepperly [kennethepperly!~cinch@boxand.lnk.telstra.net] has joined #ruby
lewix [lewix!~lewix@unaffiliated/lewix] has joined #ruby
kennethreitz [kennethreitz!~kennethre@c-24-127-96-129.hsd1.va.comcast.net] has joined #ruby
kennethepperly [kennethepperly!~cinch@boxand.lnk.telstra.net] has joined #ruby
Pip [Pip!~Pip@176.214.4.186] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
jrodicus [jrodicus!~jrodicus@cpe-66-69-223-9.austin.res.rr.com] has joined #ruby
gavri [gavri!~gavri@180.151.32.194] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby
lewix [lewix!~lewix@bas1-toronto04-1242322723.dsl.bell.ca] has joined #ruby
lewix [lewix!~lewix@unaffiliated/lewix] has joined #ruby
juarlex [juarlex!~juarlex@201.124.160.19] has joined #ruby
samuel02 [samuel02!~samuel02@c-46-162-87-154.cust.bredband2.com] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
dnjaramba_ [dnjaramba_!~dnjaramba@41.72.193.86] has joined #ruby
jim777 [jim777!~jim@26.49.233.220.static.exetel.com.au] has joined #ruby
any-key [any-key!~eric_wood@tacs.cs.tamu.edu] has joined #ruby
stephans [stephans!~stephans@209.66.114.6] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
any-key [any-key!~eric_wood@tacs.cs.tamu.edu] has joined #ruby
mikewintermute [mikewintermute!~mikewinte@188-223-213-21.zone14.bethere.co.uk] has joined #ruby
paulv [paulv!~paulv@unaffiliated/paulv] has joined #ruby
kawa_xxx [kawa_xxx!~kawa_xxx@163.47.23.221] has joined #ruby
pietro [pietro!~pietro@93-32-177-83.ip34.fastwebnet.it] has joined #ruby
DFectuoso [DFectuoso!~DFectuoso@fixed-203-141-49.iusacell.net] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
jim777 [jim777!~jim@26.49.233.220.static.exetel.com.au] has quit [#ruby]
albemuth [albemuth!~albemuth@201.198.78.18] has joined #ruby
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby
stayarrr [stayarrr!~olivererx@dslb-178-009-059-241.pools.arcor-ip.net] has joined #ruby
shadowshell [shadowshell!~shadowshe@c-67-188-245-230.hsd1.ca.comcast.net] has joined #ruby
tehgeekmeister [tehgeekmeister!~tehgeekme@mobile-198-228-221-150.mycingular.net] has joined #ruby
tehgeekmeister [tehgeekmeister!~tehgeekme@2002:42ab:b562:0:c4cb:5feb:6a43:afa5] has joined #ruby
lewix_ [lewix_!~lewix@bas1-toronto04-1242322723.dsl.bell.ca] has joined #ruby
thone_ [thone_!~thone@g226048104.adsl.alicedsl.de] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
musee [musee!~musee@unaffiliated/musee] has joined #ruby
AndChat| [AndChat|!~AndChat@222.153.223.41] has joined #ruby
tesmar [tesmar!~tesmar@cpe-024-163-059-067.nc.res.rr.com] has joined #ruby
azbarcea_ [azbarcea_!~quassel@79.114.17.159] has joined #ruby
rippa [rippa!~rippa@87-253-30-198.pppoe.yaroslavl.ru] has joined #ruby
sawu [sawu!~textual@pool-71-170-159-147.dllstx.fios.verizon.net] has joined #ruby
tesmar [tesmar!~tesmar@cpe-024-163-059-067.nc.res.rr.com] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
lmolr [lmolr!~quassel@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
lewix_ [lewix_!~lewix@bas1-toronto04-1242322723.dsl.bell.ca] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
seb_ [seb_!~seb@dispo-82-248-149-207.adsl.proxad.net] has joined #ruby
becom33 [becom33!~becom33@112.135.172.80] has joined #ruby
<becom33> in a link like this how can I get the last parameter ? http://example.com?host=lost&id=1
<wallerdev> are you using rails?
<becom33> no just raw ruby
<wallerdev> so you have that as a string?
<becom33> yea
<becom33> wallerdev: ??
shadowshell [shadowshell!~shadowshe@c-67-188-245-230.hsd1.ca.comcast.net] has quit [#ruby]
<wallerdev> i would use the URI library
<wallerdev> you can do URI.parse(your url)
<wallerdev> and you'll be able to extract the query string that way
<becom33> umm alright :)
<becom33> but I wanna replace the value with a another value . so Im not sure how can I do that with prase ?
<wallerdev> i imagine you'd just rebuild it from the URI object
<wallerdev> you could write a regex if its always in the same format
<becom33> I was thinking the same thing . I just need the last parameter after = is replace
<wallerdev> if you don't have any ideas you could loop through the string backwards until you find an = and work from there
<wallerdev> I'm sure you can figure it out if you just try it out :)
yxhuvud [yxhuvud!mongo@h-85-82.a212.priv.bahnhof.se] has joined #ruby
fantasticsid [fantasticsid!~user@178.18.16.11] has joined #ruby
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby
crodas [crodas!~crodas@git.crodas.org] has joined #ruby
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.46] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
h4mz1d [h4mz1d!~hamfz@c-68-62-113-11.hsd1.al.comcast.net] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
quest88 [quest88!~quest88@c-98-207-205-137.hsd1.ca.comcast.net] has joined #ruby
pietro [pietro!~pietro@93-32-177-83.ip34.fastwebnet.it] has joined #ruby
pantsman [pantsman!~pantsman@2.25.204.195] has joined #ruby
pantsman [pantsman!~pantsman@pdpc/supporter/active/pantsman] has joined #ruby
Azure|netbook [Azure|netbook!~azt@unaffiliated/azure] has joined #ruby
Araxia_ [Araxia_!~Araxia@c-24-22-63-1.hsd1.or.comcast.net] has joined #ruby
jbpros [jbpros!~jbpros@201-178-112-217.dyn.adsl.belcenter.be] has joined #ruby
eldariof [eldariof!~CLD@81.200.24.56] has joined #ruby
alem0lars [alem0lars!~alem0lars@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
Nss [Nss!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
<alem0lars> is there a mail transfer agent written in ruby?
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
aisbaa_ [aisbaa_!~aisbaa@84.240.50.20] has joined #ruby
<aisbaa_> hi I have number and I want to convert it to asci characer 68.to_X -> 'h', how to do that ?
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby
<aisbaa_> thanks, found it X.chr
bluOxigen [bluOxigen!~noreply@unaffiliated/bluOxigen] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@adsl-99-35-225-92.dsl.pltn13.sbcglobal.net] has joined #ruby
tesmar [tesmar!~tesmar@cpe-024-163-059-067.nc.res.rr.com] has joined #ruby
shevy [shevy!~shevy@194-166-99-126.adsl.highway.telekom.at] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
snearch [snearch!~snearch@g231109057.adsl.alicedsl.de] has joined #ruby
jensn [jensn!~Jens@ip225-88.wireless.lu.se] has joined #ruby
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby
Tuxist [Tuxist!~quassel@host-091-097-111-236.ewe-ip-backbone.de] has joined #ruby
jlogsdon [jlogsdon!~jlogsdon@c-67-169-79-114.hsd1.ca.comcast.net] has joined #ruby
pietro [pietro!~pietro@93-32-177-83.ip34.fastwebnet.it] has joined #ruby
Pip [Pip!~Pip@176.214.4.186] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
jamiejackson [jamiejackson!~jamie@pool-71-127-46-176.washdc.east.verizon.net] has joined #ruby
pantsman [pantsman!~pantsman@2.25.204.195] has joined #ruby
pantsman [pantsman!~pantsman@pdpc/supporter/active/pantsman] has joined #ruby
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
palcu [palcu!~alex@89.122.187.223] has joined #ruby
<RubyPanther> I hate that Ruby 1.8 doesn't allow regex intervals like {,n} I have to make my code all ugly like {0,n} just to be compatible
impulze [impulze!~impulze@eta-ori.net] has joined #ruby
<impulze> can anyone tell me what's wrong with this syntax? format.html { redirect_to { :action: 'login' }, alert: 'User not logged in.' }
<impulze> argh
<impulze> nevermind
<impulze> oh wait, after removing the prefix : it still says invalid synax
<impulze> *syntax
Locke23rus [Locke23rus!~quassel@128-70-1-227.broadband.corbina.ru] has joined #ruby
<impulze> i think i figured it out :)
jbpros [jbpros!~jbpros@201-178-112-217.dyn.adsl.belcenter.be] has joined #ruby
gianlucadv [gianlucadv!~gianlucad@host61-81-dynamic.245-95-r.retail.telecomitalia.it] has joined #ruby
nat2610 [nat2610!~nfelsen@74-85-144-253.onlive.net] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
Pip [Pip!~Pip@176.214.4.186] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
<nat2610> I have an array with about 100 strings and I'd like to select them 5 by 5, what is the best way to do that ? is there somehting clean that doesn't force me to do some kind of big_array.each { |x| "push that to a smaller array and then when that array has element do something ? " }
<nat2610> unshift it looks like ...
<nat2610> or take !
<rippa> nat2610: Enumerable#each_slice
cableray [cableray!~cableray@wl-dhcp158-157.Mines.EDU] has joined #ruby
mr-green [mr-green!~mr-green@122.164.183.37] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
Mahoek [Mahoek!~Mahoek@ip51ceb6d4.adsl-surfen.hetnet.nl] has joined #ruby
probst [probst!~probst@bumblebee.cl.cam.ac.uk] has joined #ruby
kawa_xxx [kawa_xxx!~kawa_xxx@163.47.23.221] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
panterax [panterax!~panterax@31.176.153.244] has joined #ruby
geaif [geaif!~geaif@7-239.62-188.cust.bluewin.ch] has joined #ruby
mksm [mksm!~ramorim@pdpc/supporter/professional/mksm] has joined #ruby
kawa_xxx [kawa_xxx!~kawa_xxx@163.47.23.221] has joined #ruby
Dreamer3 [Dreamer3!~Dreamer3@74-134-34-116.dhcp.insightbb.com] has joined #ruby
kaneda_ [kaneda_!~kaneda@5acb1c98.bb.sky.com] has joined #ruby
canton7 [canton7!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
zommi [zommi!~quassel@HSI-KBW-078-042-009-093.hsi3.kabel-badenwuerttemberg.de] has joined #ruby
panterax [panterax!~panterax@31.176.142.155] has joined #ruby
canton8 [canton8!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
<superjoe> this should be so simple, but I've been stuck on this for 20 minutes... http://pastebin.com/GNJHjAwm
<superjoe> basic ruby module usage :-/
dzhulk [dzhulk!~dzhulk@88.201.230.6] has joined #ruby
dzhulk1 [dzhulk1!~dzhulk@88.201.230.6] has joined #ruby
<becom33> I'm lost can anyone help me to get done regex to replace the id=1 with id=null ? http://example.com?host=lost&id=1
<superjoe> becom33, you should parse that instead of using regex, it would be safer
<becom33> yea but its hard to get the last parameter replaced . I looked for examples on the net cnt find any . superjoe can u help ?
<superjoe> use URI and CGI
impulze [impulze!~impulze@eta-ori.net] has quit ["Leaving"]
<becom33> lemme look
statbot [statbot!~nodebot@ec2-107-22-75-113.compute-1.amazonaws.com] has joined #ruby
geaif [geaif!~geaif@7-239.62-188.cust.bluewin.ch] has joined #ruby
<mr-green> is this valid in ruby?
<mr-green> if (input == ('y' || 'Y'))
<mr-green> execute code
ikaros [ikaros!~ikaros@dslb-188-107-221-154.pools.arcor-ip.net] has joined #ruby
<enikar> mr-green: i don't think...
<mr-green> enikar : Okay
<enikar> the correct way is : if (input == 'y' or input == 'Y')
<mr-green> oh
<enikar> or if (input =~ /^[yY]$/ )
<rippa> if %w[Y y].include? input
<enikar> but yes match in this case, no ?
<rippa> no
<rippa> ["Y", "y"] doesn't include "yes"
<enikar> oh, yes
<enikar> :)
<mr-green> ok
<mr-green> <rippa>: thanks!
<rippa> I miss a reverse method to #include?
<rippa> something like
<rippa> string.in? array
<rippa> though it makes little sense really
<enikar> usualy, i don't think to use #include as you do...
<mr-green> thank you :enikar and :rippa!
<enikar> there is more than one way to do it...
<mr-green> yeah
zxiest [zxiest!~zxiest@213.204.81.66] has joined #ruby
ChampS666 [ChampS666!~ChampS@p54B4AF57.dip.t-dialin.net] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
p1d [p1d!~p1d@dslb-088-067-027-094.pools.arcor-ip.net] has joined #ruby
Nisstyre [Nisstyre!~yours@out-on-209.wireless.telus.com] has joined #ruby
geaif_ [geaif_!~geaif@xdsl-188-155-129-176.adslplus.ch] has joined #ruby
pas [pas!~pas@ec2-50-16-98-148.compute-1.amazonaws.com] has joined #ruby
<pas> hi all
<pas> assume I got the @string='http/1.1 301\nmoretext'
<pas> how can I get the 301 ?
rb2k [rb2k!~rb2k@HSI-KBW-078-042-219-156.hsi3.kabel-badenwuerttemberg.de] has joined #ruby
<pas> I would like to do: s/^http\/1\.1 (/d{3}) \n.*$/\1/
mikewintermute [mikewintermute!~mikewinte@188-223-213-21.zone14.bethere.co.uk] has joined #ruby
<tommylommykins> pas: Presumably it depends on how the string can change?
<tommylommykins> you could always just do @string[9..11]
kirun [kirun!~kirun@78-86-154-194.zone2.bethere.co.uk] has joined #ruby
<tommylommykins> or even more degenerate, just use the string literal "301"
lmolr [lmolr!~quassel@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
BrianE [BrianE!~brian@87.112.206.142] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
madgraphics [madgraphics!~madgraphi@labs.madsgraphics.com] has joined #ruby
berserkr [berserkr!~david@212.122.111.205.dyn.user.ono.com] has joined #ruby
becom33 [becom33!~becom33@112.135.209.209] has joined #ruby
<becom33> http://pastebin.com/51xy5gsV in here I wanna replace id=1 to id=null . I need last parameter replaced . I've been trying this since morning cant still figer out how :(
<becom33> help plzzz
josemota [josemota!~josemota@188.250.142.104] has joined #ruby
dekroning [dekroning!~dekroning@541B931D.cm-5-4c.dynamic.ziggo.nl] has joined #ruby
<josemota> hey guys, I'm doing a spec for this Rack app and I'm not being able to use Rack:MockRequest
trivol [trivol!~aurelien@ip-178.net-89-2-84.rev.numericable.fr] has joined #ruby
Pip [Pip!~Pip@176.214.4.186] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
becom33 [becom33!~becom33@112.135.209.209] has quit [#ruby]
gioele [gioele!~gioele@unaffiliated/gioele] has joined #ruby
<josemota> I get an uninitialized constant Blogrite:Rack
<josemota> with double colon, sorry.
RomD [RomD!~Roman@nrbg-4dbe099b.pool.mediaWays.net] has joined #ruby
<josemota> the error is here: http://pastie.org/3183772
<gioele> in my Rakefile I do have `require 'spec/tasks'` (spec/tasks.rb is a local project file). In ruby 1.8 and jruby Rake runs fine; with ruby 1.9.3 I get "cannot load such file -- spec/tasks"
<gioele> has something changed in the way `require` works in 1.9.3?
<burgestrand> gioele: ruby 1.8 has the current directory in load path, 1.9 does not
chrisja [chrisja!~chris@5ac7d92c.bb.sky.com] has joined #ruby
strife25 [strife25!~strife25@cpe-098-026-018-050.nc.res.rr.com] has joined #ruby
<gioele> burgestrand: wow, quite a change, thanks for the info
bluOxigen [bluOxigen!~noreply@unaffiliated/bluOxigen] has joined #ruby
zulax [zulax!~radarwork@99-120-232-161.lightspeed.iplsin.sbcglobal.net] has joined #ruby
becom33 [becom33!~becom33@112.135.209.209] has joined #ruby
trivol [trivol!~aurelien@ip-178.net-89-2-84.rev.numericable.fr] has joined #ruby
davidpk [davidpk!~r00t@5e0a2c17.bb.sky.com] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
<josemota> never mind, I required "rack/mock" and it's there.
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
davidpk [davidpk!~r00t@5e0a2c17.bb.sky.com] has joined #ruby
cousine [cousine!~cousine@196.221.61.52] has joined #ruby
jbpros [jbpros!~jbpros@201-178-112-217.dyn.adsl.belcenter.be] has joined #ruby
Chaazd [Chaazd!~tdervan@cpc19-nmal17-2-0-cust305.croy.cable.virginmedia.com] has joined #ruby
Chaazd [Chaazd!~tdervan@cpc19-nmal17-2-0-cust305.croy.cable.virginmedia.com] has quit [#ruby]
atmosx [atmosx!~atmosx@191.116.broadband5.iol.cz] has joined #ruby
radic [radic!~radic@dslb-094-216-249-149.pools.arcor-ip.net] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
faber [faber!~faber@ppp-34-25.26-151.libero.it] has joined #ruby
zirni [zirni!~zirni@p57B77D02.dip.t-dialin.net] has joined #ruby
<becom33> http://pastebin.com/rmeT3ePm why isnt this changing the orginal uri ? help me somebody ?
<becom33> no body ? /me
* becom33 nodody ?
<becom33> damn it *
<becom33> no body ?? *
nari [nari!~nari@p42fa56.totrnt01.ap.so-net.ne.jp] has joined #ruby
user__ [user__!~akem@222.144.120.78.rev.sfr.net] has joined #ruby
robyurkowski [robyurkowski!~robyurkow@205.233.80.139] has joined #ruby
<arex\> I get a NoMemoryError when I do @words = Hash[@words.sort_by { |k, v| -v }]
<arex\> Tips?
omry_ [omry_!~omry@DSL212-235-83-63.bb.netvision.net.il] has joined #ruby
pantsman [pantsman!~pantsman@2.27.110.201] has joined #ruby
pantsman [pantsman!~pantsman@pdpc/supporter/active/pantsman] has joined #ruby
<rly> Let's say I have a function x, which I can call by just saying x. How can I pass this function to another one, which then calls it?
emocakes [emocakes!~om@189-11-46-97.mganm703.dsl.brasiltelecom.net.br] has joined #ruby
<matled> rly: try self.method(:x)
<rly> matled: there is no object in sight.
<rly> matled: so, likely also no 'self'.
<rly> x could be puts for example.
<rly> def hello(puts)
<rly> puts()
<rly> end
<rly> Something like that.
<rly> matled: to be more precise, I want to pass the method a.b.c.d.e.f.g.h to a function named x and then call it.
emocakes [emocakes!~om@189-11-46-97.mganm703.dsl.brasiltelecom.net.br] has joined #ruby
radic [radic!~radic@dslb-094-216-249-149.pools.arcor-ip.net] has joined #ruby
<rly> matled: hello?
pas [pas!~pas@ec2-50-16-98-148.compute-1.amazonaws.com] has joined #ruby
<pas> hi
<burgestrand> rly: there’s always a self
<rly> def e(object,command) object.send(:command) end
<rly> burgestrand: I now tried something like that, but it also doesn't appear to work.
<rly> burgestrand: it also annoys me that I cannot send a whole method to another function.
<burgestrand> rly: if you can call it without an explicit receiver, you can also retreive it without an explicit receiver
<pas> I need help parssing a number from a string
<burgestrand> rly: method(:name_of_your_method) will give you a handle to that method
<rly> burgestrand: I can call it like a(:x,"hi").b.c.d.e.f
<pas> I issue results = `curl -D - http://url`
tatsuya_o [tatsuya_o!~tatsuya_o@46-64-51-175.zone15.bethere.co.uk] has joined #ruby
<burgestrand> rly: so, which one of those do you want to store instead of call?
<pas> then i: resp = results.sub( /^HTTP\/1\.1\ (\d{3})\ .*$/, '\1' )
<rly> burgestrand: f
<burgestrand> rly: a(:x, "hi").b.c.d.e.method(:f)
josemota [josemota!~josemota@188.250.142.104] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@46-64-51-175.zone15.bethere.co.uk] has joined #ruby
<rly> burgestrand: no, that's not what I want.
<pas> but resp is not JUST the 200 it has the rest of the string
<burgestrand> rly: enlighten us
<rly> burgestrand: I want the whole thing to be passed to another function.
<burgestrand> rly: make a proc out of it, or pass it as a block
<rly> burgestrand: so, as a string or whatever.
<rly> burgestrand: I don't care how.
<burgestrand> proc { a(:x, "hi).b.c.d.e.f }
<rly> burgestrand: so, I assign that to a variable and I can call it?
<rly> burgestrand: and pass it around, etc.
<burgestrand> rly: yup, the method to call it is named call
<rly> It seems rather convoluted when compared to Haskell, especially for a dynamically typed language.
<burgestrand> rly: it’s a closure, so you have access to the surrounding scope as well
kawa_xxx [kawa_xxx!~kawa_xxx@d307ba3b.t-net.ne.jp] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
<rly> burgestrand: I pass proc <> to a function, and in that function which takes it as a formal parameter x, I do x(), except it appears that it doesn't get executed.
<burgestrand> rly: show your code
<burgestrand> rly: or a simplification of it would probably be better if you can make one without losing information
akem [akem!~akem@unaffiliated/akem] has joined #ruby
<rly> def x(c) c()
<rly> end
<rly> x(proc { puts "Hi"})
<rly> burgestrand: that's a simplified example.
akem [akem!~akem@unaffiliated/akem] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
nlko [nlko!~user@li59-24.members.linode.com] has joined #ruby
<nlko> hey, im trying to create a "vulnerable" implementation of some crypto..having some problem working with the encrypted string. i have two encrypted strings, that i want to xor
<burgestrand> rly: http://codepad.org/MIq2kWQW
<burgestrand> rly: that’s the first few ways I can think of passing an anonymous piece of code to a method and pass it around
<nlko> whats the easiest way to do that? xor two strings
<burgestrand> rly: the method x takes the lambda as a ruby block object; you can pass blocks to any method, and it’s up to the method if it wants to call it or not
<nlko> my encrypted strings are in this format: \0216\303\b\276\0271<\263\017\266\ what is that?
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby
<burgestrand> rly: blocks (like in the x method) are commonly used everywhere in ruby, as when opening files, spawning threads, processes and most often as iterator logic
Codif [Codif!~codif@84.120.204.160.dyn.user.ono.com] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
<rly> burgestrand: I know about co-routines, but I have absolutely no idea what yield(:param) is doing there.
<rly> I think I have some basic reading up to do on this.
<rly> It all seems overly complicated, not 'beautiful'.
<burgestrand> rly: it should be in the beginning chapters of any ruby book
<burgestrand> rly: every method accepts one, and only one, optional block parameter
<burgestrand> rly: you can invoke it with yield(x, y, z) and the result is the last expression in that block (like any ruby method)
<burgestrand> rly: you can test for its’ presence with block_given?
<rly> burgestrand: how can I write (lambda () (display "hello world")) in Ruby?
<rly> burgestrand: so something taking no arguments.
<burgestrand> rly: will you be around in 20-30 minutes?
<rly> burgestrand: likely I already have it figured out by then.
<burgestrand> rly: alright, I don’t have time right now I’m afraid but if you’re still here then I’ll be glad to help
<nlko> anyone know how i an xo two strings together?
<nlko> xor
iaj [iaj!~iaj@static.136.47.47.78.clients.your-server.de] has joined #ruby
Tuxist [Tuxist!~quassel@dyndsl-085-016-193-041.ewe-ip-backbone.de] has joined #ruby
fermion [fermion!~textual@pool-108-7-224-176.bstnma.fios.verizon.net] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby
affix_ [affix_!~affix@fedora/Affix] has joined #ruby
alx- [alx-!~Alex@108.162.180.72] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
janissary [janissary!~user@adsl-98-85-0-232.mco.bellsouth.net] has joined #ruby
jay_zawrotny [jay_zawrotny!~Jay@c-71-205-218-131.hsd1.mi.comcast.net] has joined #ruby
Codif [Codif!~codif@84.120.204.160.dyn.user.ono.com] has joined #ruby
<nlko> what format is this string: "\0216\303\b\276\0271<\263\017\266\307\246'\350\026\230\374\rZQ\310C\023l\352\233\034\224\177\237{\301\322\356\214\021\270\"\221\3538\257.\266"
<rly> nlko: ask whoever gave you the string.
<nlko> i got it myself from openssl library in the ruby api
<nlko> its the result of a encryption on some plain-text
<rly> nlko: so, likely they are just bytes.
<rly> nlko: so xoring is nothing else but xoring on all the bytes.
<rly> nlko: xoring one byte is xoring all the bits
<rly> nlko: xoring two bits is trivial
<rly> nlko: problem solved.
<rly> Next!
<nlko> ha
<rly> nlko: I actually programmed this before in another language.
<rly> I'd guess most programmers have had to do this at some point.
TomJ [TomJ!~TomJ@host-78-147-101-223.as13285.net] has joined #ruby
<nlko> having trouble getting my head around how to work with that string though
TomJ [TomJ!~TomJ@unaffiliated/tomj] has joined #ruby
<nlko> how can i convert that into binary?
ank_ [ank_!~ank@c-67-172-16-188.hsd1.pa.comcast.net] has joined #ruby
<nlko> ok, never mind, ive converted them to bytes now
<nlko> sample.bytes.to_a
<rly> In some languages strings are bytes.
<rly> I have no idea about Ruby, though. The only reason I use it is because it had some library.
philcrissman [philcrissman!~philcriss@c-174-53-217-149.hsd1.mn.comcast.net] has joined #ruby
emocakes [emocakes!~om@189-11-46-97.mganm703.dsl.brasiltelecom.net.br] has joined #ruby
vraa [vraa!~vraa@99-20-202-44.lightspeed.hstntx.sbcglobal.net] has joined #ruby
<burgestrand> Strings are bytes in ruby as well, but it also stores encoding information with each string (since ruby 1.9)
<burgestrand> Which means there’s also String#characters available, for example. And String#length actually returns the length, while String#bytesize returns the actual size in bytes.
mr-green [mr-green!~mr-green@122.164.183.37] has joined #ruby
endzYme [endzYme!~nehuanca@208.87.103.252] has joined #ruby
<nlko> say i have two arrays: [17,54,195,8] and [17,54,195,8] and want to xor those..
<burgestrand> nlko: xor those into what? [0, 0, 0, 0]?
<nlko> yeah im a bit confused about what im trying to do, let me think about it
<burgestrand> rly: how’s it going for you?
<emocakes> rly bad
jbpros [jbpros!~jbpros@201-178-112-217.dyn.adsl.belcenter.be] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
beakerman [beakerman!~beakerman@c-76-118-172-173.hsd1.nh.comcast.net] has joined #ruby
eeggor [eeggor!~eeggor@202.152.201.189] has joined #ruby
<lmolr> is there a mail server the ruby way?
trivol [trivol!~aurelien@ip-178.net-89-2-84.rev.numericable.fr] has joined #ruby
<lmolr> i'm getting mad with postfix sendmail dovecot courier and co
<burgestrand> lmolr: can’t think of any I’m afraid, but then again I’ve never had to look for any either
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby
<lmolr> burgestrand: neigher did i since i got my hands on a vps. Now I feel I'm back to '90 :(
<lmolr> *neither
burgestrand1 [burgestrand1!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby
virunga [virunga!~virunga@151.64.42.140] has joined #ruby
jwmann [jwmann!~Adium@modemcable242.110-201-24.mc.videotron.ca] has joined #ruby
j3r0m3 [j3r0m3!~j3r0m3@c-76-105-54-37.hsd1.ca.comcast.net] has joined #ruby
omry_ [omry_!~omry@DSL212-235-83-63.bb.netvision.net.il] has joined #ruby
<rly> burgestrand1: I solved it, as expected.
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
<burgestrand> rly: what was the answer you were looking for?
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
dtaprl [dtaprl!~dtaprl@client-86-23-122-194.brhm.adsl.virginmedia.com] has joined #ruby
SamWhited [SamWhited!~SamWhited@c-71-56-64-198.hsd1.ga.comcast.net] has joined #ruby
gheegh_ [gheegh_!~wflanagan@pool-71-191-146-170.washdc.fios.verizon.net] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby
<hkhalid> hello
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
codefriar [codefriar!~codefriar@cpe-098-026-012-134.nc.res.rr.com] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
berserkr [berserkr!~david@212.122.111.205.dyn.user.ono.com] has joined #ruby
<Clooth> the game
<gheegh_> Hi all. I'm trying to do term collapsing, and need a better solution. Mine is taking far too long. https://gist.github.com/1611834 Basically, i have two hashes. 1 hash has 4 word keys, and 1 hash has 3 word keys ( I need to do this 3 to 2 and 2 to 1 as well). If a 3 word key is in the 4 word hash, I want to increase the count for the 4 word hash, and delete the key from the 3 word hash. Right now, I'm iterating over both of th
<gheegh_> doing a n * n comparison. This sucks and is slow. Anyone?
<rly> I have some piece of code which returns this: rbuf_fill': Timeout::Error (Timeout::Error)
<rly> It seems fairly low-level. I want my networking code to _never_ give up.
headius [headius!~headius@mobile-166-147-102-146.mycingular.net] has joined #ruby
brngardner [brngardner!~brngardne@c-98-192-3-166.hsd1.ga.comcast.net] has joined #ruby
BrianE [BrianE!~brian@87.112.206.142] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby
<burgestrand> Timeout::Error is an exception, it’s often used to limit the time for a code block
<burgestrand> rly: Timeout.timeout(5) { … code … } will run "code" for a maximum of five seconds, and if it still has not finished an exception will be raised
geaif [geaif!~geaif@xdsl-188-155-138-229.adslplus.ch] has joined #ruby
<burgestrand> rly: that’s how it’s used
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
<burgestrand> rly: so somewhere in your code that happens; the parameter to Timeout#timeout decides how long it’ll wait
<burgestrand> rly: if you pass nil or 0 as a parameter, it’ll wait forever (ie. no effect)
DFectuoso [DFectuoso!~DFectuoso@fixed-203-141-49.iusacell.net] has joined #ruby
palcu [palcu!~alex@89.122.187.223] has joined #ruby
<rly> burgestrand: I don't pass it myself. Some library does that, I think.
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
_|christian|_ [_|christian|_!~christian@190.236.233.82] has joined #ruby
dzhulk [dzhulk!~dzhulk@88.201.230.6] has joined #ruby
gener1c [gener1c!~gener1c@unaffiliated/gener1c] has joined #ruby
josemota [josemota!~josemota@188.250.142.104] has joined #ruby
<rly> burgestrand: the answer I was looking for was the combination of proc and call.
Natch| [Natch|!~natch@178.73.218.182] has joined #ruby
dzhulk [dzhulk!~dzhulk@88.201.230.6] has joined #ruby
vraa_ [vraa_!~vraa@99-20-202-44.lightspeed.hstntx.sbcglobal.net] has joined #ruby
michael_mbp [michael_mbp!~Marin@31.203.148.187] has joined #ruby
senny [senny!~senny@77-56-67-120.dclient.hispeed.ch] has joined #ruby
<burgestrand> rly: alright
<rly> I think by default library methods should never time out.
<rly> If someone wants a time out, they should start a thread or whatever which does that.
<senny> I'm looking for an idiomatic way to convert [{:a => :b}] into [:a, :b]. The best i end up with is: var.first.to_a.first which is rather ugly
gener1c [gener1c!~gener1c@unaffiliated/gener1c] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
iamjarvo [iamjarvo!~Adium@173-12-5-74-Philadelphia.hfc.comcastbusiness.net] has joined #ruby
<wallerdev> senny: can the hash be any bigger?
<senny> wallerdev: no
<wallerdev> can the array part be any bigger?
<senny> no
<burgestrand> senny: .first.first
<burgestrand> senny: [{:a => :b}][0].first
<burgestrand> or map(&:first).flatten is also kind of fun
<burgestrand> must be a better way
tar_ [tar_!~tar@209-6-37-203.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #ruby
<wallerdev> seems like whatever is giving you that value is doing things wrong if it always comes back like that haha
<senny> yea but first.first comes pretty close ;) it just reads pretty bad
derailed [derailed!~textual@i190010.upc-i.chello.nl] has joined #ruby
<senny> wallerdev: it's not that simple. its a dsl method, which accepts different arguments and it works with *args so that is the way it is :P
<wallerdev> yeah id probably end up doing ary[0].flatten
<wallerdev> seems simple enough to me
<senny> yea flatten reads better than first.
<burgestrand> ^.-
niklasb [niklasb!~codeslay0@p5B311084.dip0.t-ipconnect.de] has joined #ruby
tk_ [tk_!~tk@p083005.doubleroute.jp] has joined #ruby
Russell^^ [Russell^^!~Russell^^@88.97.51.87] has joined #ruby
DFectuoso [DFectuoso!~DFectuoso@fixed-203-141-49.iusacell.net] has joined #ruby
blueadept [blueadept!~blueadept@72.21.137.199] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
pantsman [pantsman!~pantsman@2.25.208.59] has joined #ruby
pantsman [pantsman!~pantsman@pdpc/supporter/active/pantsman] has joined #ruby
josefig [josefig!~josefig@unaffiliated/josefig] has joined #ruby
omry_ [omry_!~omry@DSL212-235-83-63.bb.netvision.net.il] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
juarlex [juarlex!~juarlex@201.124.160.19] has joined #ruby
h4mz1d [h4mz1d!~hamfz@c-68-62-113-11.hsd1.al.comcast.net] has joined #ruby
rugok [rugok!~Rugok@gateway/tor-sasl/rugok] has joined #ruby
senny [senny!~senny@edge.garaio.com] has joined #ruby
<rugok> Hi, i would like to write an app in ruby.The app would be simple.Convert html, containing links to an xml file, with the same info but with some other <tags> also.I'm starting with ruby, and this project would be a kickstart to get going on learning ruby.I guess it would be some rewriting rules involved in first place.Any ideas where i could possibly start?I would like it to run with jruby, as a desktop app.
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby
notbrent [notbrent!u5121@gateway/web/irccloud.com/x-qsmtodggdcuritus] has joined #ruby
BrianE [BrianE!~brian@87.112.206.142] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
<gioele> rugok: if you have to process XML or HTML you will need Nokogiri, start with that.
jbpros [jbpros!~jbpros@108-178-112-217.dyn.adsl.belcenter.be] has joined #ruby
<rugok> gioele, cool
tomzx [tomzx!~tomzx@dsl-156-68.aei.ca] has joined #ruby
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
omry_ [omry_!~omry@DSL212-235-83-63.bb.netvision.net.il] has joined #ruby
geaif [geaif!~geaif@xdsl-188-155-138-229.adslplus.ch] has joined #ruby
apok_ [apok_!~apok@96.24.67.22] has joined #ruby
<rugok> gioele, i have nokogiri installed already.it seems a fine gem.Reading the docs it seems very inviting for a beginner like me
d2dchat [d2dchat!~d2dchat@c-98-209-18-197.hsd1.mi.comcast.net] has joined #ruby
<gioele> rugok: most gems are easy to use. Nokogiri will keep you busy for a while ;)
<rugok> nice, love gems already.<3
michael_mbp [michael_mbp!~Marin@31.203.48.3] has joined #ruby
incluye [incluye!~inclooye@208.102.195.210] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
<gioele> rugok: well, it is not a "gem" thing, it is bright people writing nice code :)
<rugok> yeap, very bright indeed :)
My_Hearing [My_Hearing!~Mon_Ouie@223.127-244-81.adsl-dyn.isp.belgacom.be] has joined #ruby
My_Hearing [My_Hearing!~Mon_Ouie@subtle/user/MonOuie] has joined #ruby
rickmasta [rickmasta!~rickmasta@pool-71-183-247-164.nycmny.fios.verizon.net] has joined #ruby
incluye [incluye!~inklewyay@208.102.195.210] has joined #ruby
achiu [achiu!~Adium@ip68-5-18-17.oc.oc.cox.net] has joined #ruby
ozy_work [ozy_work!~chapinj@chapinj-3.its-is.uni.edu] has joined #ruby
incluye [incluye!~inklewyay@208.102.195.210] has joined #ruby
djr [djr!~djr@dsl-208-196.madisontelco.com] has joined #ruby
gheegh_ [gheegh_!~wflanagan@pool-71-191-146-170.washdc.fios.verizon.net] has quit [#ruby]
albemuth [albemuth!~albemuth@201.198.78.18] has joined #ruby
gcds [gcds!~gcds@78-57-203-174.static.zebra.lt] has joined #ruby
<gcds> Hi
bier [bier!~bier@p54A5B59A.dip.t-dialin.net] has joined #ruby
Tuxist64bit [Tuxist64bit!~quassel@host-091-097-111-236.ewe-ip-backbone.de] has joined #ruby
<gcds> I have one idea which I would like to develop. It's main goal is to preprocess C code with additional macros
<gcds> maybe someone has ideas from what to start
<gcds> I have discovered Ragel
<gcds> but I don't really know if its what I need
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
pankajdoharey [pankajdoharey!~pankajdoh@49.213.34.162] has joined #ruby
<gcds> I have seen many flex & bison based scripting languages which converts to byte code but I need to convert Custom Scripting Language to C code (It's just same c code just with many macros) :D
Spockz` [Spockz`!~Spockz@21pc198.sshunet.nl] has joined #ruby
priteshjain [priteshjain!~priteshja@113.193.34.140] has joined #ruby
adamkittelson [adamkittelson!~adamkitte@c-24-23-252-19.hsd1.ca.comcast.net] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
apeiros_ [apeiros_!~apeiros@77-58-113-31.dclient.hispeed.ch] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
<RubyPanther> gcds: why not just use the C preprocessor?
Targen [Targen!~iguana@190.39.181.108] has joined #ruby
<gcds> RubyPanther: because my macros is out of normal preprocessor side and it would be to hard to define everything under preprocessor like m4
djr [djr!~djr@dsl-208-196.madisontelco.com] has joined #ruby
rippa [rippa!~rippa@93-181-220-111.adsl.yaroslavl.ru] has joined #ruby
<RubyPanther> not sure about that
<Affix> I really wanna code something
<RubyPanther> so do it, Affix
<gcds> RubyPanther: I want to write preprocessor in ruby :D
<Affix> RubyPanther: no idea what to code
<RubyPanther> gcds: if you just need macros you could process the sources as erb templates :)
xpot-mobile [xpot-mobile!~james@70-91-210-237-BusName-Utah.hfc.comcastbusiness.net] has joined #ruby
<burgestrand> Affix: code a solution to that problem
<burgestrand> many have it
* Affix codes a coding idea generator
<Affix> lol
<gcds> RubyPanther: but I would need to use erb macros to process?
cyne [cyne!~jack@ip211-182-212-87.adsl2.static.versatel.nl] has joined #ruby
<RubyPanther> gcds: exactly, you'd write your macros as Ruby code! Then whatever features you need, stuff `em in an API
<RubyPanther> Affix can write it for you
emocakes [emocakes!~om@189-11-46-97.mganm703.dsl.brasiltelecom.net.br] has joined #ruby
<Affix> lol
<Affix> I'm not that good at ruby
<Affix> My language of choice is Python
<gcds> RubyPanther: I want to simplify C code :D Not Use Ruby in C code :D
<RubyPanther> gcds: if you want to simplify that just brings me back to regular C preprocessor macros... why not just restrict yourself to a subset of features if you want it to be simpler?
kidoz [kidoz!~kidoz@85.159.44.109] has joined #ruby
<RubyPanther> Affix: write some blog software
nonotza [nonotza!~nonotza@50-57-234-249.static.cloud-ips.com] has joined #ruby
<Affix> RubyPanther: I was thinking of it
<RubyPanther> even Aelfin blog, right?
<gcds> RubyPanther: With C Preprocessors marcos you cant do this: https://gist.github.com/1612279
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
Codif [Codif!~codif@84.120.204.160.dyn.user.ono.com] has joined #ruby
<nobitanobi> hihi
<gcds> nobitanobi: hi!
<RubyPanther> gcds: Are you sure about that ;)
<gcds> RubyPanther: you cant use dots in names of macros and over things...
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
<RubyPanther> well, that is not a feature that is a minor aspect of formatting
<gcds> RubyPanther: I could use m4 to write custom macros but everything would be just to complicated
sonkei [sonkei!~sonkei@d14-69-26-171.try.wideopenwest.com] has joined #ruby
BrianE [BrianE!~brian@87.112.206.142] has joined #ruby
<RubyPanther> gcds: writing the code generator is going to prove to be an order of magnitude more complicated than a limited subset of C macros, and then your sources will be effectively obfuscated because nobody is going to learn a new macro format
abstrusenick [abstrusenick!~abstrusen@bb220-255-53-87.singnet.com.sg] has joined #ruby
<gcds> RubyPanther: this is my goal to use different thing but I can't just take and write new language :D
ascarter [ascarter!~ascarter@67-42-86-1.tukw.qwest.net] has joined #ruby
<gcds> idea is to write better language for arduino :D
<RubyPanther> wait 2-3 months for mRuby ;)
<gcds> mRuby?
<gcds> :D
<RubyPanther> Matz say embedded programmers using Lua and got some Lua envy :)
<gcds> i would like to see how they will fit ruby to 8kb flash and 1kb sram :D
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
omry_ [omry_!~omry@DSL212-235-83-63.bb.netvision.net.il] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
rb2k [rb2k!~rb2k@HSI-KBW-078-042-219-156.hsi3.kabel-badenwuerttemberg.de] has joined #ruby
<RubyPanther> gcds: Lua already works there, you don't fit the whole thing in, you split each part up so that you can get that part of the language with a C #include
<RubyPanther> It is not to run legacy Ruby code there, it is to write new code that uses a simple subset of Ruby and tastes like Ruby
<gcds> hmm i dont find anything about avr and lua
<RubyPanther> So that people writing embedded code for robots can be happier :) http://confreaks.net/videos/654-rubyconf2011-keynote-ruby-everywhere
pLameN_4o [pLameN_4o!~Plamen@78-83-72-111.spectrumnet.bg] has joined #ruby
cousine [cousine!~cousine@196.221.61.52] has joined #ruby
<gcds> maybe arm but not avr :D
<gcds> Ok now ruby questions :D
Fezzler [Fezzler!~anonymous@cpe-075-190-168-034.carolina.res.rr.com] has joined #ruby
<gcds> what's is better to parse code by each line or whole text?
<arex\> it's probably good if you can keep only one line in memory at a time
<arex\> im having related problems right now
<arex\> I get a NoMemoryError when I do @words = Hash[@words.sort_by { |k, v| -v }]
<arex\> Tips?
Avi_ [Avi_!~chumphre@c-98-207-237-171.hsd1.ca.comcast.net] has joined #ruby
<arex\> (yes, it's a big hash)
<Mon_Ouie> Maybe there are other objects that you don't need to keep a reference to?
TomJ [TomJ!~TomJ@unaffiliated/tomj] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
omry_ [omry_!~omry@DSL212-235-83-63.bb.netvision.net.il] has joined #ruby
nd_____ [nd_____!~nd@mnhm-5f74dbc2.pool.mediaWays.net] has joined #ruby
banister`sleep [banister`sleep!~baniseter@118.82.185.158] has joined #ruby
htl [htl!~sam@d14-69-225-16.try.wideopenwest.com] has quit [#ruby]
fetimo [fetimo!~fetimo@027ba53b.bb.sky.com] has joined #ruby
ksinkar [ksinkar!~ksinkar@115.242.67.65] has joined #ruby
fetimo_ [fetimo_!~fetimo@027ba53b.bb.sky.com] has joined #ruby
nonotza_ [nonotza_!~nonotza@cpe-72-225-173-7.nyc.res.rr.com] has joined #ruby
Natch| [Natch|!~natch@178.73.217.67] has joined #ruby
rugok [rugok!~Rugok@gateway/tor-sasl/rugok] has joined #ruby
ozy_work [ozy_work!~chapinj@chapinj-3.its-is.uni.edu] has joined #ruby
Nss [Nss!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
nonotza [nonotza!~nonotza@50-57-234-249.static.cloud-ips.com] has joined #ruby
ryanf [ryanf!~revfitz@adsl-67-122-210-85.dsl.snfc21.pacbell.net] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@adsl-99-35-225-92.dsl.pltn13.sbcglobal.net] has joined #ruby
brian_ [brian_!~brian@87.112.206.142] has joined #ruby
jbpros [jbpros!~jbpros@108-178-112-217.dyn.adsl.belcenter.be] has joined #ruby
mdeboard [mdeboard!~mdeboard@184-106-93-223.static.cloud-ips.com] has joined #ruby
<mdeboard> Has anyone here ever used hackety hack to teach an elementary aged child programming?
trivol [trivol!~aurelien@ip-178.net-89-2-84.rev.numericable.fr] has joined #ruby
FiestaSmash [FiestaSmash!~thisisfak@c-24-30-117-33.hsd1.ga.comcast.net] has joined #ruby
<FiestaSmash> Ok, can someone here help me with TCPClient?
<FiestaSmash> My server is made, but it's refusing to connect!
<FiestaSmash> I tried storing the address with a string
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
<FiestaSmash> Even using the IPAddress class
<FiestaSmash> still nothing, either way
<canton7> can you paste your code (or a minimal working (failing) version thereof) somewhere?
<FiestaSmash> Yeah, hold on
<FiestaSmash> 24.30.117.33 /ms
<FiestaSmash> sorry.
<FiestaSmash> But
<FiestaSmash> to explain
<FiestaSmash> The code that uses TCPClient
<apeiros_> FiestaSmash: you know, you can write full sentences per message
<apeiros_> there
<apeiros_> is
<apeiros_> no
<FiestaSmash> Is in app/helpers/server_helper.rb
<apeiros_> need
<apeiros_> to
<apeiros_> put everything
<apeiros_> on
<apeiros_> a
<apeiros_> new
<apeiros_> line
<FiestaSmash> ah..
<canton7> there's no way I'm going through all of that I'ma afraid :P How about a minimal failing example -- just the relevant code, in a form that anyone who wants to try and fix it can use?
omry_ [omry_!~omry@DSL212-235-83-63.bb.netvision.net.il] has joined #ruby
vraa [vraa!~vraa@99-20-202-44.lightspeed.hstntx.sbcglobal.net] has joined #ruby
<FiestaSmash> Sorry, I posted the entire application because it uses a directory
ChampS666 [ChampS666!~ChampS@p54B4C9F7.dip.t-dialin.net] has joined #ruby
<FiestaSmash> called statefiles
<FiestaSmash> Those are the two files that actually do anything
charlenopires [charlenopires!~quassel@186.194.13.186] has joined #ruby
wereHamster [wereHamster!~tomc@78.47.192.142] has joined #ruby
josh___ [josh___!~josh@74-95-43-126-Oregon.hfc.comcastbusiness.net] has joined #ruby
zastaph [zastaph!zastaph@unaffiliated/zastaph] has joined #ruby
Jarred [Jarred!~Administr@c-71-198-139-210.hsd1.ca.comcast.net] has joined #ruby
<FiestaSmash> The thing about it is, the application tries to connect to an IP address for each button, (I have the server already made, and currently running) and it outputs the appropriate image if it can connect, can't connect, or the server doesn't exist (No statefile in existance)
<FiestaSmash> The statefiles are just blank unimportant files :/
palcu [palcu!~alex@89.122.187.223] has joined #ruby
<Jarred> If your house or apartment had a Ruby API, what would you do with it, if anything?
niklasb_ [niklasb_!~codeslay0@p5B311084.dip0.t-ipconnect.de] has joined #ruby
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby
<shevy> Jarred control the lights, bath, temperature etc...
wereHamster [wereHamster!~tomc@78.47.192.142] has joined #ruby
<shevy> I hope one day we'll get a completely scriptable interface to everything
<Jarred> shevy: What would you specifically do with the lights?
<shevy> room.lights[3].dim
<shevy> well
<shevy> right now I'd have to go down the staircase to turn off light below
geaif [geaif!~geaif@xdsl-188-155-138-229.adslplus.ch] has joined #ruby
<shevy> a friend of mine has that odd clap-mechanism where he claps and it dims down
<shevy> but another example... my TV has a list of TV stations. If i want to manipulate it, I have to do so manually via the remote control. Instead I'd like to store it in a file, and use that, rather than have to spend time tweaking it manually
brngardner [brngardner!~brngardne@c-98-192-3-166.hsd1.ga.comcast.net] has joined #ruby
<Jarred> Would you pay for something that gave you a Ruby API for your house?
carlyle [carlyle!~carlyle@adsl-070-154-108-254.sip.rmo.bellsouth.net] has joined #ruby
<shevy> Jarred ;)
<shevy> it's a difficult question because the only way that would be useful to me would be if it would include EVERYTHING
<FiestaSmash> canton7 see any issues in it?
<Jarred> shevy: What about if it just let you control your lights
<shevy> I think it would require a whole new generation of infrastructure first
<shevy> that would be fancy, but it's only a very minor thing
<shevy> just look at how long it took cable to become widespread
<shevy> or, WLAN in shops
<shevy> (or restaurants rather)
<Jarred> yeah
<canton7> FiestaSmash, I think you're missing the point. There's no way that anyone is going to go through that mess, without knowing anything about it, trying to find the problem. By minimal working example, I mean *just* enough lines to demonstrate the problem (you should be doing this as part of the debugging process anyway), stuck into a pastebin/gist somewhere
banister`sleep [banister`sleep!~baniseter@118.82.185.158] has joined #ruby
<FiestaSmash> Oh
<FiestaSmash> In that case, It'll make it difficult to understand it
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
<FiestaSmash> Sorry for the confusion, let me try
<canton7> FiestaSmash, what I know at the moment: You're trying to connect to a (running) TCPServer, using both an address and an ip, and neither is working. Why don't you give us just enough lines to show you trying to make the connection, and it failing?
<ksinkar> what modules should one ideally enable while compiling ruby 1.9.3 from source?
blueadept [blueadept!~blueadept@pool-96-251-83-184.lsanca.dsl-w.verizon.net] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
iamjarvo [iamjarvo!~Adium@173-12-5-74-Philadelphia.hfc.comcastbusiness.net] has joined #ruby
rb2k [rb2k!~rb2k@HSI-KBW-078-042-219-156.hsi3.kabel-badenwuerttemberg.de] has joined #ruby
<ksinkar> in the ext/Setup file?
geaif [geaif!~geaif@xdsl-188-155-138-229.adslplus.ch] has joined #ruby
charlenopires [charlenopires!~quassel@186.194.13.186] has joined #ruby
wereHamster [wereHamster!~tomc@unaffiliated/werehamster] has joined #ruby
rugok [rugok!~Rugok@gateway/tor-sasl/rugok] has joined #ruby
robert_ [robert_!~hellspawn@objectx/robert] has joined #ruby
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has joined #ruby
<FiestaSmash> sorry, I was away for a moment, ok the server
<FiestaSmash> is just a TCP server in C#
<canton7> FiestaSmash, I'm afraid I still can't make head or tail of it. To give you a clue, I'm after something like http://pastie.org/3185532
rushed [rushed!~rushed@cpe-70-116-11-35.austin.res.rr.com] has joined #ruby
<FiestaSmash> My communication skills are failing... I'm sorry for wasting your time, there is no warning or error- it just won't connect..
colint [colint!~ColinT@206.222.178.38] has joined #ruby
<FiestaSmash> It's alright... thanks for showing interest ^^
<canton7> Is it raising any exceptions?
<FiestaSmash> none whatsoever
<canton7> can you telnet to that port?
priteshjain [priteshjain!~priteshja@113.193.34.140] has joined #ruby
fermion [fermion!~textual@pool-108-7-224-176.bstnma.fios.verizon.net] has joined #ruby
<FiestaSmash> yeah, the port is open
<FiestaSmash> and forwarded
<FiestaSmash> The funny thing was
<FiestaSmash> Oh, sorry, I need to stop typing line by line
<FiestaSmash> Anyways, the funny thing was, the port works perfectly fine when I use it with anything outside of RoR
snearch [snearch!~snearch@e179043087.adsl.alicedsl.de] has joined #ruby
<canton7> So... it's timing out?
<canton7> Have you tried connecting to that server/port from the box that RoR's running on?
DFectuoso [DFectuoso!~DFectuoso@fixed-203-141-49.iusacell.net] has joined #ruby
<canton7> can you use ruby to connect to any remote server/port?
<FiestaSmash> none, whatsoever, even If I change the port to any other number
<FiestaSmash> The function reaches timeout before connecting
<FiestaSmash> And the server is undeterred
<canton7> none to which question?
<FiestaSmash> the any server/port
skaczor [skaczor!~quassel@mail.prognosoft.biz] has joined #ruby
<FiestaSmash> I'm going to look into it more, the source of this error seems big but probably is fairly simple to fix..
<canton7> for example, does t = TCPSocket.new('google.co.uk', 80) work?
d2dchat [d2dchat!~d2dchat@c-98-209-18-197.hsd1.mi.comcast.net] has joined #ruby
<FiestaSmash> huh, I've never tried it with anything besides IP addresses.
<canton7> well, both that, and t = TCPSocket.new('209.85.147.94', 80) work for me
<canton7> that being one of google's IPs
y3llow_ [y3llow_!~y3llow@114-36-230-162.dynamic.hinet.net] has joined #ruby
s0ber_ [s0ber_!~s0ber@114-36-230-162.dynamic.hinet.net] has joined #ruby
albemuth [albemuth!~albemuth@201.198.78.18] has joined #ruby
<FiestaSmash> Whoa, still not connecting
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
y3llow [y3llow!~y3llow@114-36-230-162.dynamic.hinet.net] has joined #ruby
<FiestaSmash> and I'm using google's direct IP
<FiestaSmash> as an IPaddress object
y3llow [y3llow!~y3llow@114-36-230-162.dynamic.hinet.net] has joined #ruby
<FiestaSmash> yeah, honestly, I'll come back tomorrow
<FiestaSmash> My issues usually fix themselves after a day
TomJ [TomJ!~TomJ@unaffiliated/tomj] has joined #ruby
_2easy [_2easy!~nofuture@89-79-244-137.dynamic.chello.pl] has joined #ruby
<FiestaSmash> Thanks anyways, canton7
FiestaSmash [FiestaSmash!~thisisfak@c-24-30-117-33.hsd1.ga.comcast.net] has quit [#ruby]
d2dchat [d2dchat!~d2dchat@c-98-209-18-197.hsd1.mi.comcast.net] has joined #ruby
nonotza_ [nonotza_!~nonotza@cpe-72-225-173-7.nyc.res.rr.com] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
eko [eko!~eko@unaffiliated/eko] has joined #ruby
18VAAIO1S [18VAAIO1S!~quassel@79.114.17.159] has joined #ruby
al3xnull [al3xnull!~al3xnull@cpe-76-188-178-7.neo.res.rr.com] has joined #ruby
<ksinkar> hey guys I just installed ruby 1.9.3 from source on my fedora and am trying this tutorial http://www.rubyinside.com/how-to-create-a-ruby-extension-in-c-in-under-5-minutes-100.html
josefig [josefig!~josefig@unaffiliated/josefig] has joined #ruby
mdeboard [mdeboard!~mdeboard@184-106-93-223.static.cloud-ips.com] has quit ["rcirc on GNU Emacs 24.0.90.1"]
<wallerdev> cool
mr-green [mr-green!~mr-green@122.164.183.37] has joined #ruby
tar_ [tar_!~tar@209-6-37-203.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #ruby
samrose [samrose!~samrose@c-24-23-77-168.hsd1.mi.comcast.net] has joined #ruby
FiestaSmash [FiestaSmash!~thisisfak@c-24-30-117-33.hsd1.ga.comcast.net] has joined #ruby
<FiestaSmash> Agh, hello. I should have never left. Does anyone know what makes an IP address invalid when attempting to connect to a TCP server? I'm actually still new to ruby on rails.
<FiestaSmash> TCPSocket.new() won't let me use a String as an IPAddress value
<FiestaSmash> ironic, since using an IPAddress value tells me it cant convert from IPAddress to string
<rugok> maybe #rubyonrails would be better?
<FiestaSmash> hey, thanks, I never knew that existed
<rugok> np, enjoy..it''s a great channel
<FiestaSmash> have a wonderful day/night ^^
FiestaSmash [FiestaSmash!~thisisfak@c-24-30-117-33.hsd1.ga.comcast.net] has quit [#ruby]
kenperkins [kenperkins!~textual@50-47-18-37.evrt.wa.frontiernet.net] has joined #ruby
dzhulk [dzhulk!~dzhulk@88.201.230.6] has joined #ruby
SamWhited [SamWhited!~SamWhited@c-71-56-64-198.hsd1.ga.comcast.net] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
goodieboy [goodieboy!~goodieboy@c-68-57-35-79.hsd1.va.comcast.net] has joined #ruby
mrmist [mrmist!~mrmist@freenode/staff/pdpc.active.mrmist] has joined #ruby
zalesz [zalesz!~zalesz@user-46-112-154-38.play-internet.pl] has joined #ruby
frozenskater [frozenskater!~chatzilla@rrcs-76-79-225-65.west.biz.rr.com] has joined #ruby
maletor [maletor!~maletor@c-69-181-24-86.hsd1.ca.comcast.net] has joined #ruby
<zalesz> hi!
<zalesz> maybe here someone could help me, I've got an array like Array.new( HEIGHT, Array.new( WIDTH, Array.new(2,0) ) )
<hkhalid> zalesz
<hkhalid> you are makings lots of arrays
<zalesz> thats true but
<zalesz> and operation like ary[x][y][0] += 1 should change only the value at [x][y][0] yes
<zalesz> ?
<zalesz> and I'm getting all values in all arrays incremented o.0
<zalesz> maybe I'm missing something ?
<canton7> With e.g. Array.new(3, Array.new(2, 0)) you're creating one array with Array.new(2, 0), and making each element of the other array a reference to this array
<canton7> Array.new(HEIGHT){ Array.new(WIDTH){ Array.new(2, 0) }} will do what you want
<zalesz> I knew I fucked up something
<zalesz> thx
BrianE [BrianE!~brian@87.112.149.96] has joined #ruby
<canton7> with "stuff magically changing" problems, it's almost always a pass-by-reference mix-up
shadoi [shadoi!~Adium@c-71-202-122-8.hsd1.ca.comcast.net] has joined #ruby
<zalesz> yeah
<zalesz> maybe its time to get some rest ;p
<canton7> hehe
dennda [dennda!~dennda@ubuntu/member/dennda] has joined #ruby
<dennda> Does the ruby interpreter (the de facto standard one, i.e. e.g. `ruby` on OS X) have a limitation similar to Python's GIL that'd prevent it from running more than one thread at a time?
<dennda> I did read that ruby has this OS independent threading support, but that doesn't answer my question
<ryanf> dennda: the standard ruby implementation has a GIL, yes
<ryanf> rubinius and jruby don't
<dennda> ryanf: And it behaves the same way in ruby that it does in Python in respect to not being able to run more than one thread at a time?
<ryanf> I'm not intimately familiar with python's GIL (or ruby's for that matter)
<ryanf> my understanding is that it applies only to bytecode interpretation
<ryanf> so code that's in C can still execute in parallel
<dennda> Same thing then
<dennda> Thanks ryanf
tesmar [tesmar!~tesmar@cpe-024-163-059-067.nc.res.rr.com] has joined #ruby
<zalesz> if u want something more on GIL then there should be a video from RuPy about python/ruby GILs
<dennda> Nah that's all I wanted to know, thanks
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
looopy [looopy!~looopy@pool-141-156-48-205.washdc.btas.verizon.net] has joined #ruby
<alem0lars> are there any plans to remove gil in future releases?
segora [segora!~marc@p5DD0DA58.dip.t-dialin.net] has joined #ruby
<dennda> In python at least this has been attempted a number of times but lead to performance decreases of apps that wouldn't have been bothered by the GIL anyway (which apparently is the majority, so the patches were never merged)
<tommylommykins> hmm
<tommylommykins> Does anyone know the name of the directive that gets put at the top of scripts to force threads not to die quietly
vjacob [vjacob!~vjacob@94-195-174-165.zone9.bethere.co.uk] has joined #ruby
<alem0lars> at the moment I think the only way to do some kind of concurrent software is to use multi processes. am I right?
<dennda> alem0lars: if the situation is the same in ruby as it is in python: yes, or drop down to the C level
<alem0lars> dennda: thanks. it would be great some kind of actors in ruby :)
<shevy> what would an actor do?
colint [colint!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
badabim [badabim!~badabim@c-98-207-235-20.hsd1.ca.comcast.net] has joined #ruby
<alem0lars> an actor is an entity that can receive messages
<RubyPanther> I thought we called that an "object"
<alem0lars> and then it can concurrently send messages to other actors
<alem0lars> maybe trhought a middleware
<RubyPanther> puts "can haz messages" if Object.new.respond_to? :send
<alem0lars> RubyPanther: yes it's an object that can handle the message retrieving concurrently
superjoe [superjoe!~andy@c-50-132-90-125.hsd1.wa.comcast.net] has joined #ruby
<shevy> hmm
<RubyPanther> alem0lars: but yes, concurrency is achieved through forking or otherwise creating a process and using RPC
<shevy> a multi-lingual object?
pas [pas!~pas@ec2-50-16-98-148.compute-1.amazonaws.com] has joined #ruby
<RubyPanther> preferably dbus these days, as it is simple and portable
<shevy> I want a new language similar to ruby but different
<shevy> RubyPanther can't you make a programming language please
dyer [dyer!~dyer@108-193-172-174.lightspeed.tukrga.sbcglobal.net] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
zirni [zirni!~zirni@p57B77D02.dip.t-dialin.net] has joined #ruby
<RubyPanther> lol the only new language I want is mRuby
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby
<shadoi> If you want erlang-like actor and concurrent coding features for ruby check out Celluloid: https://github.com/tarcieri/celluloid
<RubyPanther> I'd love a better C, but you can't even see that island through the shipwrecks
tehgeekmeister [tehgeekmeister!~tehgeekme@66.171.181.94] has joined #ruby
jbpros [jbpros!~jbpros@108-178-112-217.dyn.adsl.belcenter.be] has joined #ruby
<RubyPanther> I'm more interested in a more radical change... an OS designed with Ruby from the bottom up, that doesn't try to support anything else
alem0lars_ [alem0lars_!~alem0lars@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
<RubyPanther> targeting a single set of HW (preferably open source HW from Lemote)
c0rn [c0rn!~c0rn@adsl-69-110-7-189.dsl.pltn13.pacbell.net] has joined #ruby
alem0lars [alem0lars!~alem0lars@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
<RubyPanther> if you're not trying to be compatible, problems like concurrency and IPC can be solved more easily and powerfully
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
statarb3 [statarb3!~CoreD@546A56AA.cm-12-3b.dynamic.ziggo.nl] has joined #ruby
statarb3 [statarb3!~CoreD@unaffiliated/statarb3] has joined #ruby
ohcibi [ohcibi!~quassel@thisdone.de] has joined #ruby
<ohcibi> hi i'm using rvm and set up a default gemset like 'rvm --default use 1.9.2@gemset' but in new shells its not used, i have to rvm use it again... the rvm script is included in the .bashrc... anyone an idea whats wrong?
radmacd [radmacd!~radmacd@modemcable055.68-82-70.mc.videotron.ca] has joined #ruby
* hkhalid slaps ohcibi around a bit with a large trout
daidoji [daidoji!~Gateway@70-36-234-189.dsl.dynamic.sonic.net] has joined #ruby
* ohcibi *ducks*... what??? 8)
<radmacd> Hey Everyone...
Hitman_Junkie [Hitman_Junkie!~Hitman_Ju@host109-157-141-46.range109-157.btcentralplus.com] has joined #ruby
trivol [trivol!~aurelien@ip-178.net-89-2-84.rev.numericable.fr] has joined #ruby
<radmacd> Looking for a quick opinion here… Im new to web development, but I have a CS degree and training in programming, so I should be able to pick up fast. I have a project I want to work on that is a website for a store, and they want to have an online shopping cart [no actually money transactions, just cart/store that sends an email to the proprietor] It will include a news roll as well.
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
<radmacd> I was wondering if it would be better for me to do it in Rails due to the support of the framework, or if I should go with Sinatra.
<ohcibi> hkhalid: no really, is there something obviously i'm missing?
<alem0lars> radmacd: the RubyOnRails channel would be more appropriate, but i suggest you to take a look to spree (based on rubyonrails)
brngardner [brngardner!~brngardne@c-98-192-3-166.hsd1.ga.comcast.net] has joined #ruby
trivol [trivol!~aurelien@ip-178.net-89-2-84.rev.numericable.fr] has joined #ruby
<RubyPanther> ohcibi: you may have to have the script in both .bashrc and .bash_profile for it to work in all cases
alanp [alanp!~quassel@206-248-132-240.dsl.teksavvy.com] has joined #ruby
<RubyPanther> it is harmless to run it twice
sdwrage [sdwrage!~sdwrage@cpe-184-57-123-50.columbus.res.rr.com] has joined #ruby
r0bby [r0bby!~wakawaka@guifications/user/r0bby] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@adsl-99-146-3-190.dsl.pltn13.sbcglobal.net] has joined #ruby
<workmad3> ohcibi: or do what I do - my .bash_profile is now one line: '. .bashrc'
mensch [mensch!~mensch@c-174-62-210-182.hsd1.ma.comcast.net] has joined #ruby
jakky_ [jakky_!jakk@motherfucking.ddosking.org] has joined #ruby
yxhvuud [yxhvuud!mongo@h-85-82.a212.priv.bahnhof.se] has joined #ruby
mrmist [mrmist!~mrmist@freenode/staff/pdpc.active.mrmist] has joined #ruby
horieyui [horieyui!horieyui@222.47.159.116] has joined #ruby
<hkhalid> RubyPanther hi
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
tehgeekm_ [tehgeekm_!~tehgeekme@ec2-50-18-86-67.us-west-1.compute.amazonaws.com] has joined #ruby
Avi_ [Avi_!~chumphre@c-98-207-237-171.hsd1.ca.comcast.net] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has quit [#ruby]
waeyn [waeyn!~wayne@ool-4a5a00d5.dyn.optonline.net] has joined #ruby
rickmast [rickmast!~rickmasta@pool-71-183-247-164.nycmny.fios.verizon.net] has joined #ruby
beakerma_ [beakerma_!~beakerman@c-76-118-172-173.hsd1.nh.comcast.net] has joined #ruby
fetimo [fetimo!~fetimo@027ba53b.bb.sky.com] has joined #ruby
pLameN_4o1 [pLameN_4o1!~Plamen@78-83-72-111.spectrumnet.bg] has joined #ruby
tehgeek__ [tehgeek__!~tehgeekme@ec2-50-18-86-67.us-west-1.compute.amazonaws.com] has joined #ruby
Azure|netbook|dc [Azure|netbook|dc!~azt@99.192.18.235] has joined #ruby
Azure|netbook|dc [Azure|netbook|dc!~azt@unaffiliated/azure] has joined #ruby
brngardn_ [brngardn_!~brngardne@c-98-192-3-166.hsd1.ga.comcast.net] has joined #ruby
alem0lars [alem0lars!~alem0lars@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
tehgeekm_ [tehgeekm_!~tehgeekme@66.171.181.94] has joined #ruby
mdel [mdel!~mdel@pool-71-175-17-16.phlapa.fios.verizon.net] has joined #ruby
v0n [v0n!~v4n@modemcable144.68-81-70.mc.videotron.ca] has joined #ruby
radmacd_ [radmacd_!~radmacd@modemcable055.68-82-70.mc.videotron.ca] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
akem_ [akem_!~akem@222.144.120.78.rev.sfr.net] has joined #ruby
akem_ [akem_!~akem@unaffiliated/akem] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
ozy_work [ozy_work!~chapinj@chapinj-3.its-is.uni.edu] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
moeSeth_ [moeSeth_!u1029@gateway/web/irccloud.com/x-xkqgtvvigcqqzltu] has joined #ruby
Aaaarg [Aaaarg!~Arthur@121-74-36-221.telstraclear.net] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
cesario_ [cesario_!u2444@gateway/web/irccloud.com/x-grwhlyurjiohalnd] has joined #ruby
d2dchat_ [d2dchat_!~d2dchat@c-98-209-18-197.hsd1.mi.comcast.net] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
radmacd__ [radmacd__!~radmacd@modemcable055.68-82-70.mc.videotron.ca] has joined #ruby
thomasdebenning [thomasdebenning!~thomasdeb@c-69-181-139-137.hsd1.ca.comcast.net] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
blueadept [blueadept!~blueadept@pool-96-251-83-184.lsanca.dsl-w.verizon.net] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
jbpros_ [jbpros_!~jbpros@108-178-112-217.dyn.adsl.belcenter.be] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
maletor [maletor!~maletor@c-69-181-34-124.hsd1.ca.comcast.net] has joined #ruby
c0rn [c0rn!~c0rn@adsl-69-110-7-189.dsl.pltn13.pacbell.net] has joined #ruby
superjoe [superjoe!~andy@c-50-132-90-125.hsd1.wa.comcast.net] has joined #ruby
kapowaz [kapowaz!u546@gateway/web/irccloud.com/x-zmjmouyywceivshn] has joined #ruby
gioele [gioele!~gioele@host81-141-206-145.wlms-broadband.com] has joined #ruby
gioele [gioele!~gioele@unaffiliated/gioele] has joined #ruby
jamiejackson [jamiejackson!~jamie@pool-71-127-46-176.washdc.east.verizon.net] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby
snearch [snearch!~snearch@e179043087.adsl.alicedsl.de] has joined #ruby
silky [silky!~silky@pool-74-108-142-22.nycmny.fios.verizon.net] has joined #ruby
maletor [maletor!~maletor@c-69-181-24-86.hsd1.ca.comcast.net] has joined #ruby
mikeycgto_ [mikeycgto_!~mikeycgto@ool-4571cba8.dyn.optonline.net] has joined #ruby
zirni [zirni!~zirni@p57B77D02.dip.t-dialin.net] has joined #ruby
cooper [cooper!~mitchell@unaffiliated/furryfishy] has joined #ruby
jtrudeau [jtrudeau!~jeff@c-76-127-237-194.hsd1.ma.comcast.net] has joined #ruby
yfeldblum [yfeldblum!~Jay@c-98-218-48-253.hsd1.md.comcast.net] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
samrose [samrose!~samrose@c-24-23-77-168.hsd1.mi.comcast.net] has joined #ruby
berserkr [berserkr!~david@212.122.111.205.dyn.user.ono.com] has joined #ruby
fcoury [fcoury!u2238@gateway/web/irccloud.com/x-sfogxqlckjrnacgd] has joined #ruby
alem0lars [alem0lars!~alem0lars@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
thomasfedb [thomasfedb!~thomasfed@2607:f358:1:fed5:11:0:1399:1] has joined #ruby
fantazo [fantazo!~fantazo@85-127-156-169.dynamic.xdsl-line.inode.at] has joined #ruby
tesmar [tesmar!~tesmar@cpe-024-163-059-067.nc.res.rr.com] has joined #ruby
ozy_work [ozy_work!~chapinj@chapinj-3.its-is.uni.edu] has joined #ruby
canton8 [canton8!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
adman65 [adman65!~adman65@cs181188119.pp.htv.fi] has joined #ruby
panterax [panterax!~panterax@31.176.148.25] has joined #ruby
daidoji [daidoji!~Gateway@70-36-234-189.dsl.dynamic.sonic.net] has quit [#ruby]
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby
dkannan [dkannan!u480@gateway/web/irccloud.com/x-ynxpagcsccmqwutv] has joined #ruby
patricksroberts [patricksroberts!u3278@gateway/web/irccloud.com/x-csawsmreihsfphpp] has joined #ruby
nonotza [nonotza!~nonotza@50-57-234-249.static.cloud-ips.com] has joined #ruby
ozy_work [ozy_work!~chapinj@chapinj-3.its-is.uni.edu] has joined #ruby
Rile [Rile!~Rile@178.222.141.221] has joined #ruby
Nss [Nss!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
charlenopires [charlenopires!~quassel@186.194.13.186] has joined #ruby
trend [trend!~trend@76.91.169.147] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has quit ["Leaving"]
kenperkins [kenperkins!~textual@50-47-18-37.evrt.wa.frontiernet.net] has joined #ruby
rb2k [rb2k!~rb2k@HSI-KBW-078-042-219-156.hsi3.kabel-badenwuerttemberg.de] has joined #ruby
revans [revans!~revans@99-132-72-207.lightspeed.sndgca.sbcglobal.net] has joined #ruby
blueadept [blueadept!~blueadept@pool-96-251-83-184.lsanca.dsl-w.verizon.net] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
achiu [achiu!~Adium@ip68-5-18-17.oc.oc.cox.net] has joined #ruby
lolsuper_ [lolsuper_!~super_@pool-173-65-194-148.tampfl.fios.verizon.net] has joined #ruby
lolsuper_ [lolsuper_!~super_@unaffiliated/lolsuper-/x-9881387] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
Nss [Nss!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
Rile [Rile!~Rile@178.222.141.221] has joined #ruby
charlenopires [charlenopires!~quassel@186.194.13.186] has joined #ruby
stayarrr [stayarrr!~olivererx@dslb-178-009-059-241.pools.arcor-ip.net] has joined #ruby
Targen [Targen!~iguana@190.39.181.108] has joined #ruby
DFectuoso [DFectuoso!~DFectuoso@fixed-203-141-49.iusacell.net] has joined #ruby
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby
icrazyhack [icrazyhack!~horieyui@183.60.100.164] has joined #ruby
sethetter [sethetter!~sethetter@ip98-186-171-21.ks.ks.cox.net] has joined #ruby
<sethetter> I'm trying to boot a sinatra application from the command line and am being told it cannot find Sinatra and fails on the require, but I know I have it installed. What could be causing this?
Pip [Pip!~Pip@176.214.4.186] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
<apeiros_> sethetter: if you've got multiple rubies installed - wrong ruby?
atmosx [atmosx!~atmosx@191.116.broadband5.iol.cz] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
__null [__null!null@dont.protect.your.ass.iam.not.gay.amaters.com.ar] has joined #ruby
<__null> Hi. I'm using rbenv and I keep running into instances where I have to recompile ruby due to dependences found after the install. Is there a better way to apply the new dependenices other than recompiling ruby?
charlenopires_ [charlenopires_!~quassel@186.194.13.186] has joined #ruby