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/
<catphish> samuelkadolph: that works perfectly, thanks for the pointers
<samuelkadolph> It's // for regexp in ruby
<catphish> samuelkadolph: i didn't really want to call socket.write and pass it a 500MB string
<samuelkadolph> Why? You already have the huge string
canton8 [canton8!~canton7@95.150.107.113] has joined #ruby
<samuelkadolph> Unless you can chunk the input there isn't much of a point
pootpoot [pootpoot!~pootpoot@38.108.250.130] has quit [#ruby]
<catphish> can you even pass that much data to write? will ruby buffer it for you?
aetaric [aetaric!~aetaric@74-130-83-237.dhcp.insightbb.com] has joined #ruby
<catphish> i assume the OS won't take that much
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
<catphish> tbh i hope this is never used, by "send method" accepts an enumerator anyway so hopefully whoever uses it will chunk the data and monitor its progress
dbernar1 [dbernar1!~dbernar1@205-200-13-84.static.mtsallstream.net] has joined #ruby
<dbernar1> My system doesn't know about be_true(). What should I install?
<catphish> rspec?
Fraeon [Fraeon!~kzer-za@virgo.dreamhost.com] has joined #ruby
<dbernar1> Thank you
austinbv_ [austinbv_!~austinbv@29-133.127-70.tampabay.res.rr.com] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
tehgeekmeister [tehgeekmeister!~tehgeekme@mobile-198-228-220-109.mycingular.net] has joined #ruby
v0id [v0id!~v0id@nat/hp/x-koxzqmhaqdcuppjv] has joined #ruby
maletor [maletor!~maletor@pool-71-184-106-226.bstnma.fios.verizon.net] has joined #ruby
audy [audy!~audy@heyaudy.com] has joined #ruby
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
dcarper [dcarper!~dcarper@c-76-125-233-64.hsd1.pa.comcast.net] has joined #ruby
Silker [Silker!~ponies@87.112.223.181] has joined #ruby
xjiujiu [xjiujiu!~quassel@218.77.14.195] has joined #ruby
libertyprime [libertyprime!~libertypr@182.236.125.102] has joined #ruby
d2dchat [d2dchat!~d2dchat@12.96.111.98] has joined #ruby
maletor [maletor!~maletor@pool-71-184-106-226.bstnma.fios.verizon.net] has joined #ruby
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
clockwize [clockwize!~clockwize@5ac85c0d.bb.sky.com] has joined #ruby
edwardsharp [edwardsharp!~chatzilla@c-67-169-223-202.hsd1.or.comcast.net] has joined #ruby
skmidry_ [skmidry_!~skmidry@66.194.68.139] has joined #ruby
abstrusenick [abstrusenick!~abstrusen@bb220-255-36-18.singnet.com.sg] has joined #ruby
stomp_ [stomp_!bd513528@gateway/web/freenode/ip.189.81.53.40] has joined #ruby
tilde` [tilde`!~tilde@host238-192-dynamic.12-79-r.retail.telecomitalia.it] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@c-98-203-41-91.hsd1.fl.comcast.net] has joined #ruby
<catphish> what does "Errno::ECONNRESET: Connection reset by peer" mean in the context of a socket#read?
<catphish> i was under the impression that socket#read returned nil if the remote had closed the connection
X99 [X99!~quassel@218.77.14.195] has joined #ruby
<catphish> hence the usual safety of things like: while data = sock.read(10000)
<stomp_> hi. anyone knows why i need to put # encoding: utf-8 on the begin of my code to print any valeu from gets?
dasfugufish [dasfugufish!~Adium@68-170-39-205.mammothnetworks.com] has joined #ruby
<catphish> i guess that is used to determine the character encoding coming from your console
<samuelkadolph> catphish: IO#read is not safe if the connection fails
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby
<catphish> why does while data = sock.read(10000) work to receive data until the connection is closed then? is there a better way to do that?
<catphish> or should i really only be reading data i expect to receive?
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
<catphish> i really should be using headers to indicate bytesize everywhere, but reading until a connection closes seems a pretty common thing to do
<catphish> ie http
Kovensky [Kovensky!kovensky@abraxo.bluebottle.net.au] has joined #ruby
<samuelkadolph> catphish: EOF is different than ECONNRESET
<catphish> interesting, i wonder what's terminating my connection uncleanly then
<Kovensky> (to begin with EOF is not an error)
<Kovensky> </random>
perturbedpanda [perturbedpanda!~perturbed@173-23-59-154.client.mchsi.com] has joined #ruby
<samuelkadolph> The connection got reset
* Kovensky is trying to visually parse the nokogiri docs but it's full of accidental "raw" (escaped where it shouldn't) HTML
<catphish> ah, i think a thread terminated a bit prematurely
<Kovensky> such as <span class="ruby-identifier">doc</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">HTML</span>(<span class="ruby-identifier">open</span>(<span class="ruby-string">'http://www.google.com/search?q=tenderlove';</span>))
maletor [maletor!~maletor@pool-71-184-106-226.bstnma.fios.verizon.net] has joined #ruby
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
letuboy [letuboy!~paul@208-104-128-86.rhhe1.2wcm.comporium.net] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
<perturbedpanda> Can someone enlighten me on Floats in ruby?
<Spaceghostc2c> The documentation can.
<perturbedpanda> I had one of my programmers come to me the other day complaining about ruby Floats vs php floating point numbers
jbw [jbw!~jbw@dsl-044-084.cust.imagine.ie] has joined #ruby
<perturbedpanda> he's doing math to the tenths and thinks using BigDecimal is a cop out
<perturbedpanda> (not that i care, i'm not going to let him use php)
<catphish> ruby has configurable float behaviour i believe
<perturbedpanda> Spaceghostc2c: thanks. I'll read that over more
<Spaceghostc2c> catphish… It does, but I still think it maintains some 'oddity' with precision
<catphish> it's pretty accurate though
<Spaceghostc2c> 'pretty' yesh.
<perturbedpanda> hehe
<catphish> if i want perfect decimal accuracy i use an integer
DeeJayTwo [DeeJayTwo!~deejay2@office.abi.ca] has joined #ruby
<catphish> 0.33 becomes [33, -2]
<catphish> but i believe there are other ways to actually work with floats if necessary
arubin [arubin!~arubin@99-114-192-172.lightspeed.cicril.sbcglobal.net] has joined #ruby
<catphish> BigDecimal is likely what you want though
<perturbedpanda> hrm, i suppose part of the problem is i accept this oddity in ruby when he compares to php, but he doesn't. probably fuels his "ruby sucks" bucket but oh well
<Hanmac> is an ruby binding with more then 500 methods big?
cooper [cooper!~mitchell@unaffiliated/furryfishy] has joined #ruby
<catphish> without knowing what the oddity is it's hard to comment
<perturbedpanda> eh, i suppose a simple example is 2.3 -1.3
<catphish> maybe Float itself is less accurate than PHP's, but then we have BigDecimal
Brandonn [Brandonn!~brandon@cpe-174-097-242-015.nc.res.rr.com] has joined #ruby
<catphish> is the complaint that ruby doesn't lie and round the answer
<catphish> of course you could do that yourself
<perturbedpanda> his complaint is 2.3 -1.3 should result in 1
<perturbedpanda> but in ruby you get 0.99999 (repeating)
<catphish> (2.3 - 1.3).round(5)
<catphish> for example
<perturbedpanda> yeah
<perturbedpanda> he sees that as a fault
<catphish> perturbedpanda: thats only because PHP lies and rounds it
arubin [arubin!~arubin@99-114-192-172.lightspeed.cicril.sbcglobal.net] has quit [#ruby]
<perturbedpanda> php is all lies in my book :-)
ben_alman [ben_alman!~cowboy@184-106-134-167.static.cloud-ips.com] has joined #ruby
<banister_> Hanmac: the size of a binding is proportional to the number of locals it has to keep alive, not to do with number of methods, which are stored on the captured objects anyway
<catphish> in reality, 1.3 and 2.3 can't be exactly represented
<catphish> so they're approximated
MHD0 [MHD0!~MHD@80-71-135-7.u.parknet.dk] has quit [#ruby]
<catphish> (2.3 - 1.3).round(5) will solve your problem
<catphish> assuming 5DP is enough for you
<perturbedpanda> oh, I know that.. solves my coding problem
tomasantonj [tomasantonj!~Adium@host-95-199-27-75.mobileonline.telia.com] has joined #ruby
<catphish> there's no solution to your developers not understanding binary :)
<perturbedpanda> just trying to counter his php comment.. but in all honesty i haven't dealt much with floats in ruby
<perturbedpanda> true
<perturbedpanda> lol
<catphish> ruby is simply rounding to make life easier, its not 'wrong' per-se
<catphish> wonder if theres a config option to automate the rounding
<perturbedpanda> eh, i don't want to do that
<perturbedpanda> hehe
audy [audy!~audy@heyaudy.com] has joined #ruby
<catphish> sounds like your developer does :)
<perturbedpanda> i'm going to blow this whole thing out of proportion
<catphish> and its not an unreasonable request
<perturbedpanda> using BigDecimal seems to be the correct answer :-)
<catphish> yes, that will certainly help
<banister_> catphish: setting a config option that bakes into Float is screwey, imagine if a library did that and broke your apps
phantasm66 [phantasm66!~phantasm6@146-115-132-39.c3-0.nwt-ubr1.sbo-nwt.ma.cable.rcn.com] has joined #ruby
<banister_> even though you can do everythign with monkeypatching, a monkeypatch is explicitly overriding the core functionality of the language, but a method that itself can modify core funtionality is a bad idea
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby
<banister_> IMO anyway
<catphish> my advice would be to leave the floats as they are until you want to display them to a human
<catphish> and then call .round(whatever they'd like to see)
<catphish> that way you get the maximum precision your cpu and ruby can offer
<catphish> and only lose that at the last minute
tehgeekmeister [tehgeekmeister!~tehgeekme@174-21-18-113.tukw.qwest.net] has joined #ruby
<Hanmac> banister_ my binding has more then 100 classes and is more then 8MB big ... or do you think it is still small?
<perturbedpanda> i think at least in his/our case, big decimal will work - we come in with numbers like 1.3, 2.6, etc
<catphish> Hanmac: surely your opinion is the only one that really matters on that
<banister_> Hanmac: how do u know how big the binding is?
<catphish> perturbedpanda: but your original point is correct that it's overkill
<catphish> and regula floats are more than accurate enough
<catphish> you just need to round them to display
<banister_> Hanmac: and when u say 'binding' u mean a Binding instance right?
<Hanmac> ls -lh *.so shows me an 8.2MB so file
<catphish> bed time :)
<banister_> Hanmac: errr, you mean a C extension? not a 'binding' right?
<Hanmac> curse me .. i mean an c++binding .. dammit me
<perturbedpanda> hehe
<Hanmac> catphish is right it seems that is also bed time for me -.-
<banister_> Hanmac: where aare you from?
xissburg_ [xissburg_!~xissburg@187.3.208.149] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
audy [audy!~audy@heyaudy.com] has joined #ruby
<Hanmac> germany ... (my local time is 2:43 AM)
<Spaceghostc2c> banister_… What's the difference between banister_ and banisterfiend?
<banister_> Hanmac: most germans have excellent english, your english is a bit weird :P but i like that
<banister_> Spaceghostc2c: different computers
<Spaceghostc2c> Ah
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
<Spaceghostc2c> Thought it was the Mr.Hyde to your Dr.Jekyll.
<Hanmac> xD
<Hanmac> i think, i watch to much doctor who ... so my english is a little bit wibbly-wobbly
<Spaceghostc2c> Hanmac… :D
<Spaceghostc2c> hackeron… It sounds good enough for me.
edwardsharp [edwardsharp!~chatzilla@c-67-169-223-202.hsd1.or.comcast.net] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
sh1nji [sh1nji!~sh1nji@c-69-181-222-6.hsd1.ca.comcast.net] has joined #ruby
rpowell [rpowell!~rpowell@CPE-138-130-131-150.lns2.cht.bigpond.net.au] has joined #ruby
pen [pen!~pen@140.112.30.132] has joined #ruby
eywu [eywu!~Adium@205-170-107-4.dia.static.qwest.net] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
ascarter [ascarter!~ascarter@71-37-51-204.tukw.qwest.net] has joined #ruby
rpowell [rpowell!~rpowell@CPE-138-130-131-150.lns2.cht.bigpond.net.au] has joined #ruby
apok [apok!~apok@96.24.67.22] has joined #ruby
guns [guns!~guns@c-98-228-72-208.hsd1.il.comcast.net] has joined #ruby
unda7V7erse [unda7V7erse!~unda7V7er@sto95-5-78-237-254-52.fbx.proxad.net] has joined #ruby
holybit [holybit!~alpine_st@c-75-71-177-16.hsd1.co.comcast.net] has joined #ruby
<unda7V7erse> hey everyone
<unda7V7erse> is there here people specialised in metasploit 3 ?
bastilian [bastilian!~bastilian@chello062178156107.9.14.vie.surfer.at] has joined #ruby
<holybit> any ideas on why the hash dirs is not available inside of the def deploy? http://pastie.org/3060363
unda7V7erse [unda7V7erse!~unda7V7er@sto95-5-78-237-254-52.fbx.proxad.net] has joined #ruby
latyas [latyas!~latyas@2001:da8:b000:6709:ba70:f4ff:fe9e:a43] has joined #ruby
<holybit> sorry, i just edited that pasie as the line numbers in the output were wrong when compared to the code which had some comments in it
pencilcheck [pencilcheck!~pen@140.112.30.132] has joined #ruby
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
Hanmac1 [Hanmac1!~hanmac@p50845050.dip0.t-ipconnect.de] has joined #ruby
hyde [hyde!~hyde@c-98-213-109-61.hsd1.il.comcast.net] has joined #ruby
ReTFEF [ReTFEF!~JS@cpe-173-88-110-115.columbus.res.rr.com] has joined #ruby
unda7V7erse [unda7V7erse!~unda7V7er@sto95-5-78-237-254-52.fbx.proxad.net] has joined #ruby
NinoScript [NinoScript!~Adium@pc-55-124-83-200.cm.vtr.net] has quit [#ruby]
Asher [Asher!~asher@98.158.127.150] has joined #ruby
dnew [dnew!~dnew@adsl-75-17-58-62.dsl.pltn13.sbcglobal.net] has joined #ruby
<edwardsharp> holybit: do you mean return instead of puts?
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby
<edwardsharp> i mean, it's mostly okay, it's just a warning. your not really doing anything with dirs...
<edwardsharp> this should be in #rubyonrails
<holybit> edwardsharp: what I don't get is on line 11 it says 'puts dirs', but nothing is printed to STDOUT
<robert_> so I'm trying to write a pf_unix -> localhost socket bridge
sh1nji [sh1nji!~sh1nji@c-69-181-222-6.hsd1.ca.comcast.net] has joined #ruby
<holybit> edwardsharp: i don't get why the warning claims dir is "undefined" when to my eyes it's a global … sorry i don't know ruby that well
Cervajz [Cervajz!~Cervajz@opensuse/member/Cervajz] has joined #ruby
dnew [dnew!~dnew@adsl-75-17-58-62.dsl.pltn13.sbcglobal.net] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
<holybit> ok, time to run as the wife wants to watch a movie
<holybit> ah the joys
<holybit> later
<edwardsharp> $global
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
mxweas_ [mxweas_!~max@c-71-226-112-145.hsd1.az.comcast.net] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
banister_ [banister_!~baniseter@115.189.195.0] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
xpot [xpot!~xpot@166-70-100-198.ip.xmission.com] has joined #ruby
randym [randym!~randym@EM114-51-52-150.pool.e-mobile.ne.jp] has joined #ruby
Gushings [Gushings!~Adium@c-98-216-169-197.hsd1.ct.comcast.net] has joined #ruby
tayy [tayy!~tayy@208.59.93.230] has joined #ruby
macgregor [macgregor!~macgregor@CPE00222dcb0a53-CM00222dcb0a4f.cpe.net.cable.rogers.com] has joined #ruby
<macgregor> Hi
<macgregor> I'm looking some advice on how to start developing a ruby framework like sinatra or padrino
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
nonotza [nonotza!~nonotza@adsl-65-8-161-194.mia.bellsouth.net] has joined #ruby
tactica [tactica!~tactica@S0106c03f0ed8678b.wp.shawcable.net] has joined #ruby
<tactica> Hi. How can I test a command-line script with cucumber?
<tactica> If the script for example asks for some user input, how can I provide that user input?
<ryanf> macgregor: check out Rack. it's really easy to build a simple app on bare Rack, and then it's just a matter of building up your structure from there
<ryanf> and every ruby framework uses rack anyway
Marco [Marco!~marco@c-98-254-52-240.hsd1.fl.comcast.net] has joined #ruby
<macgregor> interesting
<Spaceghostc2c> Fuck yes rack.
<macgregor> any guides or articles that you can recommend
tehgeekmeister [tehgeekmeister!~tehgeekme@174-21-18-113.tukw.qwest.net] has joined #ruby
<ryanf> not really, it's very straightforward though. a rack app is just an object with a call method
<ryanf> I guess to get a feel for how to use middleware and stuff, a tutorial wouldn't go amiss
<ryanf> oh interesting, I always assumed WSGI was based on Rack and not vice versa
<sj26> tactica: google is your friend, this is well covered. look at aruba (sp?)
tayy [tayy!~tayy@208.59.93.230] has joined #ruby
<tactica> sj26: What is sp?
<ryanf> spelling
<tactica> OK, I've seen aruba. Is there any other way anyone has seen for doing this?
<Spaceghostc2c> tactica… For what?
<Spaceghostc2c> Cucumbering a command line app?
<tactica> Yes
<Spaceghostc2c> Aruba is just cucumber with steps for the command line.
<tactica> I see that.
<ryanf> tactica: this is relevant if you feel like watching 25 minutes of presentation http://confreaks.net/videos/638-gogaruco2011-test-drive-the-development-of-your-command-line-applications
<tactica> I thought perhaps there is a more lightweight way
<ryanf> he's using a tool called methadone
macabre [macabre!~macabre@cpe-66-69-218-227.austin.res.rr.com] has joined #ruby
p0y [p0y!~p0y@112.210.110.189] has joined #ruby
randym [randym!~randym@EM1-114-126-238.pool.e-mobile.ne.jp] has joined #ruby
arthurlockhart [arthurlockhart!~bobes@60-242-128-8.static.tpgi.com.au] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-236.lsanca.fios.verizon.net] has joined #ruby
nari_ [nari_!~nari@p929512.totrnt01.ap.so-net.ne.jp] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@2001:5c0:1000:a::151] has joined #ruby
fridim_ [fridim_!~fridim@2a01:e35:2ece:f2d0:223:4eff:fe6c:c754] has joined #ruby
<tactica> ryanf: thank you.
DrShoggoth [DrShoggoth!~prakwtf@12.116.104.118] has joined #ruby
tayy [tayy!~tayy@208.59.93.230] has joined #ruby
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
kuadrosx [kuadrosx!~quassel@190.25.153.56] has joined #ruby
TheTFEF [TheTFEF!JS@cpe-173-88-110-115.columbus.res.rr.com] has joined #ruby
radic_ [radic_!~radic@dslb-178-002-234-058.pools.arcor-ip.net] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
ghosTM55 [ghosTM55!~user@li279-245.members.linode.com] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
kawa_xxx [kawa_xxx!~kawa_xxx@d307ba3b.t-net.ne.jp] has joined #ruby
x0F_ [x0F_!~x0F@unaffiliated/x0f] has joined #ruby
bobess_log_bot [bobess_log_bot!~cinch@60-242-128-8.static.tpgi.com.au] has joined #ruby
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby
arthurlockhart [arthurlockhart!~cinch@60-242-128-8.static.tpgi.com.au] has joined #ruby
rippa [rippa!~splitta@85.158.54.234] has joined #ruby
sh1nji [sh1nji!~sh1nji@c-69-181-222-6.hsd1.ca.comcast.net] has joined #ruby
arthurlockhart [arthurlockhart!~cinch@60-242-128-8.static.tpgi.com.au] has joined #ruby
NinoScript [NinoScript!~Adium@pc-55-124-83-200.cm.vtr.net] has joined #ruby
arthurlockhart [arthurlockhart!~cinch@60-242-128-8.static.tpgi.com.au] has joined #ruby
igotnolegs [igotnolegs!~igotnoleg@75-162-83-166.slkc.qwest.net] has joined #ruby
Guest98587 [Guest98587!~awesome@212.62.202.84.customer.cdi.no] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
nari__ [nari__!~nari@p929512.totrnt01.ap.so-net.ne.jp] has joined #ruby
SegFaultAX [SegFaultAX!~SegFaultA@c-98-248-241-85.hsd1.ca.comcast.net] has joined #ruby
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
NinoScript [NinoScript!~Adium@pc-55-124-83-200.cm.vtr.net] has quit [#ruby]
pen [pen!~pen@140.112.30.132] has joined #ruby
Rod [Rod!~Rod@c-71-205-48-69.hsd1.mi.comcast.net] has joined #ruby
tayy [tayy!~tayy@208.59.93.230] has joined #ruby
Nisstyre [Nisstyre!~yours@infocalypse-net.info] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
S1kx [S1kx!~S1kx@pdpc/supporter/monthlybyte/s1kx] has joined #ruby
Bonkers [Bonkers!~matt@pool-108-27-21-239.nycmny.fios.verizon.net] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
robyurkowski [robyurkowski!~robyurkow@bas2-longueuil15-3096771256.dsl.bell.ca] has joined #ruby
Tachyx [Tachyx!~tach@81.200.61.23] has joined #ruby
sh1nji [sh1nji!~sh1nji@c-69-181-222-6.hsd1.ca.comcast.net] has joined #ruby
badabim [badabim!~badabim@adsl-71-131-15-28.dsl.sntc01.pacbell.net] has joined #ruby
<macgregor> ryanf, this is looking really interesting ... but I'm not find a lot of how to actually use rack to create a microframework, what I'm tying to do is to create a framework specifically for generating web stores
<ryanf> you can just check out sinatra's source code if you want, it's very short
<ryanf> but I mean essentially
<ryanf> you will create a rack app that dispatches requests based on the path
<ryanf> and then question marks
<ryanf> the only limit is your imagination
Marco [Marco!~marco@pat148.vpn.border2-cfw.Dartmouth.EDU] has joined #ruby
<ryanf> padrino is actually built on top of sinatra, so you could always try that approach if you don't feel the need to redo the lower-level stuff
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
kenperkins [kenperkins!~textual@50-47-18-37.evrt.wa.frontiernet.net] has joined #ruby
nari_ [nari_!~nari@2001:268:306:1:50a6:cdff:feb9:afe7] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
Marco_ [Marco_!~marco@c-98-254-52-240.hsd1.fl.comcast.net] has joined #ruby
<macgregor> yeah that's not a bad idea, :) thank you very much
sh1nji [sh1nji!~sh1nji@c-69-181-222-6.hsd1.ca.comcast.net] has joined #ruby
randym_ [randym_!~randym@EM114-51-85-31.pool.e-mobile.ne.jp] has joined #ruby
Emmanuel_Chanel [Emmanuel_Chanel!star2@ZQ128170.ppp.dion.ne.jp] has joined #ruby
DarkFoxDK_ [DarkFoxDK_!~darkfox@62.116.219.97] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
kassien [kassien!~kassien@218.240.145.56] has joined #ruby
<Rod> Hi, does anyone know how I would upgrade the ruby that my Mac OSx came with (1.8.7) with the newer 1.9.2?
<wmoxam> Rod: do you have a package manager installed?
<wmoxam> (ie: MacPorts or Homebrew or Fink)
<Rod> wmoxam: I have port
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
<ryanf> just use RVM
kassien [kassien!~kassien@218.240.145.56] has joined #ruby
<Rod> okay i'll look into it :D thanks
<ryanf> every solution is going to involve installing alongside the system ruby though, not replacing it
<ryanf> which is good since things might count on system ruby being 1.8.7 anyway
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
<wmoxam> Rod: you can install with port
<wmoxam> Rod: and manage with Rbenv
kassien [kassien!~kassien@218.240.145.56] has joined #ruby
<wmoxam> rvm works well too though
<wmoxam> it takes care of compiling and installing rubies, where rbenv does not (it leaves it to you package manager)
<ryanf> you could try this
<ryanf> I've never looked at it but it seems pretty slick
kassien [kassien!~kassien@218.240.145.56] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@2001:5c0:1000:a::151] has joined #ruby
kassien [kassien!~kassien@218.240.145.56] has joined #ruby
kassien [kassien!~kassien@218.240.145.56] has joined #ruby
kassien [kassien!~kassien@218.240.145.56] has joined #ruby
kassien [kassien!~kassien@218.240.145.56] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
looopy [looopy!~looopy@pool-141-156-47-198.washdc.btas.verizon.net] has joined #ruby
IrishGringo [IrishGringo!~chatzilla@c-71-229-99-200.hsd1.fl.comcast.net] has joined #ruby
max_ [max_!~max@c-71-204-121-215.hsd1.ga.comcast.net] has joined #ruby
Synthead [Synthead!~max@c-71-204-121-215.hsd1.ga.comcast.net] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
eywu [eywu!~Adium@97-93-99-217.static.mtpk.ca.charter.com] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
eywu [eywu!~Adium@97-93-99-217.static.mtpk.ca.charter.com] has quit [#ruby]
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
tonini [tonini!~zastav@edge.garaio.com] has joined #ruby
pen [pen!~pen@2001:288:1001:28:9569:3ee:490e:da2a] has joined #ruby
confounds [confounds!~confounds@CPE78cd8e667600-CM78cd8e6675fd.cpe.net.cable.rogers.com] has joined #ruby
amerine [amerine!~mturner@c-24-22-64-72.hsd1.or.comcast.net] has joined #ruby
burgestrand [burgestrand!~burgestra@h-163-174.a155.priv.bahnhof.se] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
_catch [_catch!~AndChat@2600:1004:b008:2c02:6916:ce03:68b8:6772] has joined #ruby
dyer_ [dyer_!~dyer@108-193-172-174.lightspeed.tukrga.sbcglobal.net] has joined #ruby
dyer_ [dyer_!~dyer@unaffiliated/dyer] has joined #ruby
youdonotexist [youdonotexist!~youdonote@c-67-166-121-94.hsd1.ut.comcast.net] has joined #ruby
wubino [wubino!~chatzilla@74.61.91.195] has joined #ruby
itsrobert [itsrobert!~itsrobert@66-214-185-59.dhcp.gldl.ca.charter.com] has joined #ruby
looopy [looopy!~looopy@pool-141-156-47-198.washdc.btas.verizon.net] has joined #ruby
banister_ [banister_!~baniseter@118.82.185.158] has joined #ruby
rpowell [rpowell!~rpowell@CPE-138-130-131-150.lns2.cht.bigpond.net.au] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
v4n_ [v4n_!~v4n@bas1-montreal19-1177820429.dsl.bell.ca] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
DarkFoxDK_ [DarkFoxDK_!~darkfox@62.116.219.97] has joined #ruby
mindgame [mindgame!~nfxgosu@c-24-6-170-1.hsd1.ca.comcast.net] has joined #ruby
paissad [paissad!~paissad@89-92-16-151.hfc.dyn.abo.bbox.fr] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
Cervajz [Cervajz!~Cervajz@opensuse/member/Cervajz] has joined #ruby
bluOxigen [bluOxigen!~noreply@unaffiliated/bluOxigen] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
djdb [djdb!~digitalbo@linux.minsk.tutby.com] has joined #ruby
ni-ka [ni-ka!~Nils@i577BD682.versanet.de] has joined #ruby
ni-ka1 [ni-ka1!~Nils@i577BD682.versanet.de] has joined #ruby
<RubyPanther> rbenv has an addon for installing, ruby-build then you can do like rbenv install 1.9.3-p0
<brownies> rbenv ++
<banister_> RubyPanther: well well well we meet again
* banister_ sets mode: +b RubyPanther
* banister_ kicks RubyPanther from #ruby (so long you strange, strange, strange man)
<RubyPanther> everybody needs a stalker, right? What, no?
<Spaceghostc2c> rvm plus plus
<banister_> RubyPanther: im the keys to the lock in you house that keeps your toys in the basement
<Spaceghostc2c> banister_… Are you drunk?
<RubyPanther> if you showed up at my house, that would be the best day the of my week
<banister_> Spaceghostc2c: No.
<Spaceghostc2c> banister_… I wish I were.
<banister_> Spaceghostc2c: then get drunk
<RubyPanther> He trolls and stalks because it is his character, not because he's drunk.
<Spaceghostc2c> RubyPanther… So kind of like me?
<banister_> RubyPanther: you bring out my best side
* Spaceghostc2c glares at the competition
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
<banister_> Spaceghostc2c: did you ever try stack explorer btw?
shevy [shevy!~shevy@88-117-37-92.adsl.highway.telekom.at] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
<Spaceghostc2c> banister_… Nope. You never asked.
<banister_> well i like it to be tested as much as possible esp in large and complicated programs with huge stack traces, but it's not urgent since im not releasing for a while, but if u can find the time to do it at some point that would be useful
<Spaceghostc2c> I'll check it out in the project at work and see how it handles.
<Spaceghostc2c> I might need to show you a trace on an open source project though.
<Spaceghostc2c> This app is massive, but NDA's
<banister_> Spaceghostc2c: yeah just remember it needs both pry --pre, pry-stack_explorer --pre
<banister_> im working on an even cooler project atm called pry-exception_explorer too but i wont get u to test that until it's a bit more stable
senny [senny!~senny@edge.garaio.com] has joined #ruby
<Spaceghostc2c> Ooh, a nice pre gem?
<Spaceghostc2c> Goodie.
wilmoore [wilmoore!~wilmoore@c-67-190-17-108.hsd1.co.comcast.net] has joined #ruby
<banister_> yah everthing is pre
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
<robert_> so can I run something like, 'File.directory?(...) { ... }'?
stayarrr [stayarrr!~olivererx@dslb-178-009-059-241.pools.arcor-ip.net] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
<rippa> File#directory? doesn't take a block
<robert_> oh, okay.
<robert_> it'd be nice if it did optionally
v4n_ [v4n_!~v4n@vpn.touchtunes.com] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
Jrz [Jrz!~jrz@d152222.upc-d.chello.nl] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
norex [norex!~quassel@41-133-103-102.dsl.mweb.co.za] has joined #ruby
Cervajz [Cervajz!~Cervajz@opensuse/member/Cervajz] has joined #ruby
stoffus [stoffus!~stoffus@2001:9b0:1:dead:129a:ddff:fe58:6835] has joined #ruby
LittleBill902 [LittleBill902!~smith@c-71-197-102-219.hsd1.ca.comcast.net] has joined #ruby
madsgraphics [madsgraphics!~madsgraph@80.214.8.169] has joined #ruby
aetaric [aetaric!~aetaric@74-130-83-237.dhcp.insightbb.com] has joined #ruby
gen0cide_ [gen0cide_!~textual@Wilkins3.static.monkeybrains.net] has joined #ruby
colint [colint!~ColinT@64.9.146.189] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
raincole [raincole!~raincole@124-8-248-19.dynamic.tfn.net.tw] has joined #ruby
madsgraphics [madsgraphics!~madsgraph@80.214.8.95] has joined #ruby
trend [trend!~craigslis@97-81-69-219.dhcp.athn.ga.charter.com] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby
Kambus [Kambus!~kambus@193.226.248.37.pool.invitel.hu] has joined #ruby
mafolz [mafolz!~mafolz@dhcp50-210.start.uni-saarland.de] has joined #ruby
colint_ [colint_!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
ryanf [ryanf!~revfitz@adsl-67-119-15-66.dsl.snfc21.pacbell.net] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
Barakas [Barakas!~v@77.242.201.52] has joined #ruby
Barakas [Barakas!~v@77.242.201.52] has joined #ruby
AxonetBE [AxonetBE!~Adium@d51530F99.static.telenet.be] has joined #ruby
RegEchse [RegEchse!regechse@crdl.eu] has joined #ruby
cyri_ [cyri_!~cyri_@236.200.72.86.rev.sfr.net] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
DarkFoxDK_ [DarkFoxDK_!~darkfox@62.116.219.97] has joined #ruby
Russell^^ [Russell^^!~Russell^^@88.97.51.87] has joined #ruby
NinoScript [NinoScript!~Adium@pc-55-124-83-200.cm.vtr.net] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
Pip [Pip!~Pip@host-90-156-66-217.spbmts.ru] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
DarkFoxDK_ [DarkFoxDK_!~darkfox@62.116.219.97] has joined #ruby
DarkFoxDK__ [DarkFoxDK__!~darkfox@62.116.219.97] has joined #ruby
Adman65 [Adman65!~Adman65@cs181188119.pp.htv.fi] has joined #ruby
giulio [giulio!~giulio@ppp-191-6.26-151.libero.it] has joined #ruby
Spockz` [Spockz`!~Spockz@21pc198.sshunet.nl] has joined #ruby
Ammar01 [Ammar01!~hassaa10@gatek.mh.bbc.co.uk] has joined #ruby
patant [patant!~patant@h-79-136-103-135.na.cust.bahnhof.se] has joined #ruby
rpowell [rpowell!~rpowell@CPE-138-130-131-150.lns2.cht.bigpond.net.au] has joined #ruby
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
yxhuvud [yxhuvud!mongo@h-85-57.a212.priv.bahnhof.se] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
bg [bg!~Brittany_@c-98-197-136-135.hsd1.tx.comcast.net] has joined #ruby
<bg> H]8i
bg [bg!~Brittany_@c-98-197-136-135.hsd1.tx.comcast.net] has quit [#ruby]
alup [alup!~alup@193.92.123.5] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
james_cotterill [james_cotterill!~james_cot@89.238.149.34] has joined #ruby
perryh [perryh!~root@unaffiliated/perry753] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
ksinkar [ksinkar!~ksinkar@117.195.103.223] has joined #ruby
xpot [xpot!~xpot@166-70-100-198.ip.xmission.com] has joined #ruby
bastilian [bastilian!~bastilian@chello213047077012.23.11.vie.surfer.at] has joined #ruby
dekroning [dekroning!~dekroning@217.166.122.42] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
chrismcg [chrismcg!~chrismcg@pdpc/supporter/active/chrismcg] has joined #ruby
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
<dekroning> how does socket.recvfrom() know when to stop reading?
<dekroning> if the packet is smaller then maxlen
dyer_ [dyer_!~dyer@unaffiliated/dyer] has joined #ruby
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby
Tachyon [Tachyon!~tach@81.200.61.23] has joined #ruby
tilde` [tilde`!~tilde@host238-192-dynamic.12-79-r.retail.telecomitalia.it] has joined #ruby
Tachyx [Tachyx!~tach@81.200.61.23] has joined #ruby
Hanmac [Hanmac!~hanmac@p50845050.dip0.t-ipconnect.de] has joined #ruby
sh1nji [sh1nji!~sh1nji@c-69-181-222-6.hsd1.ca.comcast.net] has joined #ruby
pickels_ [pickels_!~fs@d54C5B2D7.access.telenet.be] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
bosphorus [bosphorus!~bosphorus@81.214.127.71] has joined #ruby
Lord-Harlot [Lord-Harlot!~Serenity@adsl-87-102-40-160.karoo.KCOM.COM] has joined #ruby
patant [patant!~patant@h-79-136-103-135.na.cust.bahnhof.se] has joined #ruby
hasham2 [hasham2!~hasham2@175.110.120.228] has joined #ruby
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby
jbpros [jbpros!~jbpros@83.101.74.71] has joined #ruby
<hasham2> I am looking to do natural language processing on entered text in Rails project, Any gems out there that would be helpful?
<hasham2> Natural Language entered would be specific to domain of my app
<ksinkar> while using fastercsv how do we append to a file object?
Helius [Helius!~Adium@212.31.227.18] has joined #ruby
dazoakley [dazoakley!~dazoakley@hocuspokus.vm.bytemark.co.uk] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
jbpros_ [jbpros_!~jbpros@83.101.74.71] has joined #ruby
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
DarkFoxDK [DarkFoxDK!~darkfox@62.116.219.97] has joined #ruby
dr_bob [dr_bob!c100f615@gateway/web/freenode/ip.193.0.246.21] has joined #ruby
perryh [perryh!~root@unaffiliated/perry753] has joined #ruby
dyer_ [dyer_!~dyer@108-193-172-174.lightspeed.tukrga.sbcglobal.net] has joined #ruby
dyer_ [dyer_!~dyer@unaffiliated/dyer] has joined #ruby
senny [senny!~senny@edge.garaio.com] has joined #ruby
Lord-Harlot [Lord-Harlot!~Serenity@adsl-87-102-40-160.karoo.KCOM.COM] has joined #ruby
Lord-Harlot [Lord-Harlot!~Serenity@adsl-87-102-40-160.karoo.KCOM.COM] has joined #ruby
Shrink [Shrink!sgupta@redhat/shrink] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
burgestrand [burgestrand!~burgestra@h-163-174.a155.priv.bahnhof.se] has joined #ruby
sahli [sahli!~sahli@41.224.36.130] has joined #ruby
EddieS [EddieS!~ed@212.59.167.161] has joined #ruby
zastaph [zastaph!zastaph@unaffiliated/zastaph] has joined #ruby
norex [norex!~quassel@41-133-103-102.dsl.mweb.co.za] has joined #ruby
Natch| [Natch|!~natch@178.73.216.173] has joined #ruby
asQuirreL [asQuirreL!~amenon@93-96-10-147.zone4.bethere.co.uk] has joined #ruby
clockwize [clockwize!~clockwize@81.19.48.130] has joined #ruby
Seisatsu [Seisatsu!Seisatsu@adsl-99-60-6-112.dsl.pltn13.sbcglobal.net] has joined #ruby
jensn [jensn!~Jens@90-229-211-15-no150.tbcn.telia.com] has joined #ruby
Brozilla [Brozilla!~Brozilla@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
sgronblo [sgronblo!~sgronblom@218.223.19.176] has joined #ruby
<shevy> robert_ you can always go to http://bugs.ruby-lang.org/projects/ruby-trunk/issues log-in and file a new issue, a feature suggestion: "Change File.directory? to accept a block"
wobr [wobr!~william.o@87-194-166-48.bethere.co.uk] has joined #ruby
cleaner72 [cleaner72!c3d41d56@gateway/web/freenode/ip.195.212.29.86] has joined #ruby
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby
<clockwize> hmm, is it wrong to hit on the recently-divorced 30 something in my office
<banister_> clockwize: only if his ex-wife doesn't find out, she might think it's too soon and get hurt
<clockwize> her ex-husband, might i add ;)
<banister_> clockwize: oh sorry i thought you were gay
<clockwize> easy mistake to make
<banister_> yeah, you do give off a kind of gay vibe
<clockwize> you've never spoken to me before ;p
<banister_> yeah like i said it's kind of a feeling
<banister_> a second sense if u will
<clockwize> some might call it a gaydar
berserkr [berserkr!~david@212.122.111.205.dyn.user.ono.com] has joined #ruby
<shevy> gayday?
<shevy> if he knows ruby ...
<shevy> if not he is not worth it
RomD [RomD!~Roman@nrbg-4d0704ba.pool.mediaWays.net] has joined #ruby
`gregorg` [`gregorg`!~Greg@78.155.152.6] has joined #ruby
<banister_> shevy: maybe clockwize prefers a guy who doesnt program ruby to take his mind off his dayjob for a while and just let it all hang out
<shevy> pffft
<shevy> sounds like the haskell nerd psycho group
<banister_> shevy: perhaps he just wants to be pulled close in the guy's big strong arms, to make him feel safe and loved
<shevy> omg
<shevy> big strong arms only crunch, not hug
trivol [trivol!~aurelien@gra94-1-81-57-175-179.fbx.proxad.net] has joined #ruby
vitoravelino [vitoravelino!~rockhampt@unaffiliated/vtr] has joined #ruby
sahli_ [sahli_!~sahli@41.224.36.130] has joined #ruby
* clockwize wonders whats going on
<clockwize> I've lost the plot now
bjhaid [bjhaid!~bjhaid@41.223.56.6] has joined #ruby
<shevy> yeah for that you gotta know banister_ a little
<clockwize> =]
sh1nji [sh1nji!~sh1nji@c-69-181-222-6.hsd1.ca.comcast.net] has joined #ruby
lkba [lkba!~AndChat@213-238-121-123.adsl.inetia.pl] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
tk_ [tk_!~tk@p083061.doubleroute.jp] has joined #ruby
ChampS_ [ChampS_!~ChampS@p54B4BF95.dip.t-dialin.net] has joined #ruby
chilversc_ [chilversc_!~chris@about/csharp/regular/KeeperOfTheSoul] has joined #ruby
bjhaid [bjhaid!~bjhaid@41.223.56.6] has joined #ruby
tux127 [tux127!~justinus@p57AAE67A.dip.t-dialin.net] has joined #ruby
bjhaid [bjhaid!~bjhaid@41.223.56.6] has joined #ruby
NStojan [NStojan!~NStojan@ppp-94-65-56-196.home.otenet.gr] has joined #ruby
Shrink [Shrink!sgupta@redhat/shrink] has joined #ruby
<chilversc_> are there any standard hosts/frameworks that handle consuming messages from an amqp/stomp based queue?
tux127 [tux127!~justinus@p57AAE67A.dip.t-dialin.net] has quit ["Ex-Chat"]
tilde` [tilde`!~tilde@host238-192-dynamic.12-79-r.retail.telecomitalia.it] has joined #ruby
<chilversc_> esentually looking for a framework that sits around amqp/stomp so I only have to declare the message handlers and the framework takes care of infrastructure concerns such as receiving the message, selecting the handler, ensuring a database connection & transaction, error handling (so it runs as a stable service)
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
piglittlepuffpuf [piglittlepuffpuf!~piglittle@118.82.185.158] has joined #ruby
unda7V7erse [unda7V7erse!~unda7V7er@sto95-5-78-237-254-52.fbx.proxad.net] has joined #ruby
thecreators [thecreators!~rskagy@cpe-65-27-201-203.cinci.res.rr.com] has joined #ruby
thecreators [thecreators!~rskagy@cpe-65-27-201-203.cinci.res.rr.com] has joined #ruby
krz [krz!~foobar@175.139.73.204] has joined #ruby
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
LouisJB [LouisJB!~Louis@louisb.gotadsl.co.uk] has joined #ruby
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
Kanolesic [Kanolesic!~Kanolesic@c-24-218-140-224.hsd1.ma.comcast.net] has joined #ruby
chrismcg [chrismcg!~chrismcg@pdpc/supporter/active/chrismcg] has joined #ruby
ChampS_ [ChampS_!~ChampS@p54B4C1EA.dip.t-dialin.net] has joined #ruby
chrismcg_ [chrismcg_!~chrismcg@pdpc/supporter/active/chrismcg] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
aruniiird [aruniiird!~aruniiird@121.241.129.193] has quit ["Thank you all... Leaving"]
amacgregor_ [amacgregor_!~amacgrego@CPE00222dcb0a53-CM00222dcb0a4f.cpe.net.cable.rogers.com] has joined #ruby
ksinkar [ksinkar!~ksinkar@117.195.103.223] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
MChizhov [MChizhov!~M@fw-nat.sovintel.net] has joined #ruby
<MChizhov> hello, i have a problem installing postgres adapter for rails http://pastebin.com/JRiKZPrG
dbgster [dbgster!~dbgster@CPE0013f7b7170c-CM0013f7b71708.cpe.net.cable.rogers.com] has joined #ruby
<MChizhov> os debian
<MChizhov> pg installed
chrismcg [chrismcg!~chrismcg@pdpc/supporter/active/chrismcg] has joined #ruby
Russell^^ [Russell^^!~Russell^^@88.97.51.87] has joined #ruby
pen [pen!~pen@140.112.30.141] has joined #ruby
ikaros [ikaros!~ikaros@dslb-188-107-221-154.pools.arcor-ip.net] has joined #ruby
wedtm [wedtm!~wedtm@173-12-163-78-oregon.hfc.comcastbusiness.net] has joined #ruby
ChampS_ [ChampS_!~ChampS@p54B4C1EA.dip.t-dialin.net] has joined #ruby
beilabs [beilabs!~jonathan@ppp59-167-171-134.static.internode.on.net] has joined #ruby
flip_digits [flip_digits!~textual@c-76-122-14-228.hsd1.fl.comcast.net] has joined #ruby
nikhgupta [nikhgupta!~nikhgupta@117.212.93.47] has joined #ruby
IrishGringo [IrishGringo!~chatzilla@c-71-229-99-200.hsd1.fl.comcast.net] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@EM114-48-92-60.pool.e-mobile.ne.jp] has joined #ruby
pencilcheck [pencilcheck!~pen@140.112.30.141] has joined #ruby
tomzx [tomzx!~tomzx@dsl-132-26.aei.ca] has joined #ruby
kirun [kirun!~kirun@78-86-154-194.zone2.bethere.co.uk] has joined #ruby
Kanolesic [Kanolesic!~Kanolesic@c-24-218-140-224.hsd1.ma.comcast.net] has joined #ruby
raincole [raincole!~raincole@113-61-196-57.veetime.com] has joined #ruby
raincole_ [raincole_!~raincole@113-61-196-57.veetime.com] has joined #ruby
`brendan [`brendan!~b@66-208-246-34-ubr02b-waldlk01-mi.hfc.comcastbusiness.net] has joined #ruby
ilteris [ilteris!~ilteris_@cpe-67-244-14-59.nyc.res.rr.com] has joined #ruby
mk03 [mk03!~mk03@123.230.48.3.er.eaccess.ne.jp] has joined #ruby
demian`_ [demian`_!~demian_@80.149.254.69] has joined #ruby
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby
luke [luke!~luke@27-32-234-171.static.tpgi.com.au] has joined #ruby
RomD [RomD!~Roman@nrbg-4d0704ba.pool.mediaWays.net] has joined #ruby
Jake232 [Jake232!~textual@5e0277fc.bb.sky.com] has joined #ruby
pen [pen!~pen@140.112.30.141] has joined #ruby
andreime [andreime!~andrei-ci@82.79.96.20] has joined #ruby
jbpros [jbpros!~jbpros@83.101.74.71] has joined #ruby
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
jmeeuwen [jmeeuwen!~kanarip@white.kolabsys.com] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
mgj [mgj!~z@unaffiliated/mgj] has joined #ruby
djdb [djdb!~digitalbo@linux.minsk.tutby.com] has joined #ruby
tornodo [tornodo!~tornodo@183.188.18.182] has joined #ruby
Knodi [Knodi!~Knodi@c-68-43-246-216.hsd1.mi.comcast.net] has joined #ruby
tornodo [tornodo!~tornodo@183.188.18.182] has quit ["Leaving"]
akem [akem!~akem@164.15.85.79.rev.sfr.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
canton8 [canton8!~canton7@95.150.107.113] has joined #ruby
philcrissman [philcrissman!~philcriss@12.32.95.3] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
bbrandon [bbrandon!~brandon@cpe-174-097-242-015.nc.res.rr.com] has joined #ruby
krz [krz!~foobar@175.139.73.204] has joined #ruby
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
t-mart [t-mart!~t-mart@c-76-108-173-224.hsd1.fl.comcast.net] has joined #ruby
dyer_ [dyer_!~dyer@unaffiliated/dyer] has joined #ruby
rippa [rippa!~rippa@93-181-234-14.adsl.yaroslavl.ru] has joined #ruby
canton7 [canton7!~canton7@95.150.107.113] has joined #ruby
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby
nanderoo [nanderoo!~nanders@38.124.137.226] has joined #ruby
tcurdt [tcurdt!~tcurdt@p5B039E07.dip.t-dialin.net] has joined #ruby
<Kovensky> hmm, I want to iterate through key/value pairs in a hash, and if either of them matches /^\/(.*)\/$/ replace them with a Regexp.new($1)
<Kovensky> but apparently .each returns copies of the key/values instead of references :(
<Asher> no it returns references
<Asher> but you are probably running into a variable binding problem
<Asher> if you are re-assigning the vars
<Asher> if you do var.replace, for example, it will work
<Kovensky> oh
<Kovensky> "can't modify frozen String"
<Asher> variables hold IDs that are object references… so if you replace the obj ID with another one the var changes reference (but it's local to the block) but the obj ID continues to exist, so any other references to it persist
<Asher> why don't you create a new hash as you iterate
DarkFoxDK_ [DarkFoxDK_!~darkfox@62.116.219.97] has joined #ruby
<canton7> why not use hash.each_key ? Or maybe hash.map?
<Kovensky> Hash has map?
<Asher> enumerable hash map
<Asher> hash has enumerable
<Asher> if your'e on 1.9
<canton7> ish. You have to do something like Hash[myhash.map{ |k,v [k,v] }]
<Asher> if you're on 1.8 it will do array's map
<Kovensky> 1.9
<Kovensky> can't find it on the docs tho, and Enumerable's map doc is rather generic
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
<canton7> Personally I might do myhash.each{ |k,v| myhash[k] = [function of v] }
<Kovensky> hm, though the String in question probably wouldn't be frozen once it's on "real code" instead of this test code
<Kovensky> (the hash I'm working on will be read from yaml)
krz [krz!~foobar@175.139.73.204] has joined #ruby
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
yfeldblum [yfeldblum!~Jay@pool-71-246-76-76.bltmmd.east.verizon.net] has joined #ruby
<Kovensky> hm, nvm
akem [akem!~akem@unaffiliated/akem] has joined #ruby
Silker [Silker!~ponies@87.112.223.181] has joined #ruby
enroxorz [enroxorz!~enroxorz@65-117-22-130.dia.static.qwest.net] has joined #ruby
enroxorz [enroxorz!~enroxorz@unaffiliated/enroxorz] has joined #ruby
preller [preller!~preller@unaffiliated/preller] has joined #ruby
<Kovensky> http://pastie.org/3062512 works
jwmann [jwmann!~Adium@modemcable032.85-202-24.mc.videotron.ca] has joined #ruby
`brendan [`brendan!~b@66-208-246-34-ubr02b-waldlk01-mi.hfc.comcastbusiness.net] has joined #ruby
sh1nji [sh1nji!~sh1nji@c-69-181-222-6.hsd1.ca.comcast.net] has joined #ruby
bbrandon [bbrandon!~brandon@cpe-174-097-242-015.nc.res.rr.com] has joined #ruby
abstrusenick [abstrusenick!~abstrusen@bb220-255-36-18.singnet.com.sg] has joined #ruby
pyr0milkz [pyr0milkz!~samy@41.141.4.251] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
plug918 [plug918!~Adium@W80247JPAGU-VHB09.LAW.NYU.EDU] has joined #ruby
ephemerian [ephemerian!~ian@82-71-51-229.dsl.in-addr.zen.co.uk] has joined #ruby
lwhalen [lwhalen!~law@63.116.56.194] has quit ["Leaving"]
plug918 [plug918!~Adium@W80247JPAGU-VHB09.LAW.NYU.EDU] has quit [#ruby]
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby
tomasantonj [tomasantonj!~Adium@host-95-199-27-75.mobileonline.telia.com] has joined #ruby
gyrocore [gyrocore!d04190f9@gateway/web/freenode/ip.208.65.144.249] has joined #ruby
luxurymo_ [luxurymo_!~luxurymod@pool-108-29-15-206.nycmny.fios.verizon.net] has joined #ruby
<canton7> Kovensky, I got bored: http://pastie.org/3062658. It's entirely untested and might not be what you want, but anyway
fritzthecat_ [fritzthecat_!~fritzthec@HSI-KBW-134-3-46-120.hsi14.kabel-badenwuerttemberg.de] has joined #ruby
Jrz [Jrz!~jrz@87.239.184.141] has joined #ruby
philcrissman_ [philcrissman_!~philcriss@12.32.95.3] has joined #ruby
macabre [macabre!~macabre@cpe-66-69-218-227.austin.res.rr.com] has joined #ruby
awesome [awesome!~awesome@212.62.202.84.customer.cdi.no] has joined #ruby
enroxorz [enroxorz!~enroxorz@65-117-22-130.dia.static.qwest.net] has joined #ruby
enroxorz [enroxorz!~enroxorz@unaffiliated/enroxorz] has joined #ruby
mkscrg [mkscrg!~mkscrg@pool-108-41-134-165.nycmny.fios.verizon.net] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@host-208-68-238-122.biznesshosting.net] has joined #ruby
fritzthecat_ [fritzthecat_!~fritzthec@HSI-KBW-134-3-46-120.hsi14.kabel-badenwuerttemberg.de] has joined #ruby
kuadrosx [kuadrosx!~quassel@186.30.198.193] has joined #ruby
<Kovensky> [*vals].inject([]) looks scary =p
crankycoder [crankycoder!~crankycod@66.207.208.98] has joined #ruby
csavola [csavola!~csavola@76-10-149-67.dsl.teksavvy.com] has joined #ruby
<canton7> You can use .each if you want... [*vals] is a trick to turn vals into an array if it isn't one already
MissionCritical [MissionCritical!~MissionCr@unaffiliated/missioncritical] has joined #ruby
dcarper [dcarper!~dcarper@50-73-187-102-pennsylvania.hfc.comcastbusiness.net] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
Rod [Rod!~Rod@c-71-205-48-69.hsd1.mi.comcast.net] has joined #ruby
pen [pen!~pen@g1pc2n249.g1.ntu.edu.tw] has joined #ruby
tobym [tobym!~tobym@pool-173-56-80-136.nycmny.fios.verizon.net] has joined #ruby
ptulskie [ptulskie!~ptulskie@ool-4354bfaf.dyn.optonline.net] has joined #ruby
macabre [macabre!~macabre@cpe-66-69-218-227.austin.res.rr.com] has joined #ruby
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
geef [geef!~king@108-215-232-154.lightspeed.hstntx.sbcglobal.net] has joined #ruby
<geef> why does '[1,5,10].each {|n| n += 5}' not work? the values in the array stay the same :(
<canton7> geef, looks like you're after map or map!
<geef> but when i do 'b=1,5,10] ; b.each {|n| b[n] += 5}' it works perfectly
<geef> *each_index
Rod [Rod!~Rod@c-71-205-48-69.hsd1.mi.comcast.net] has joined #ruby
<geef> so '.each' just feeds a copy of '|n|' to the block?
<canton7> i'm not too hot on my ruby terminology, but with fixnums, it won't pass-by-reference
<rippa> fixnums are contained in the variable
<rippa> also += is reassignment
<rippa> so it wouldn't work even with strings
asobrasil [asobrasil!~asantioli@palpatine.privatedns.com] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has quit [#ruby]
<shevy> matz did this for speed reason
mxweas_ [mxweas_!~max@c-71-226-112-145.hsd1.az.comcast.net] has joined #ruby
michaelh [michaelh!~Michael@c-98-213-112-209.hsd1.il.comcast.net] has joined #ruby
spyvspy [spyvspy!~none@108-82-153-117.lightspeed.stlsmo.sbcglobal.net] has joined #ruby
_debo [_debo!~marco.deb@cpc18-enfi16-2-0-cust743.hari.cable.virginmedia.com] has joined #ruby
dql [dql!~Kane@58.38.92.224] has joined #ruby
Natch| [Natch|!~natch@178.73.216.173] has joined #ruby
phantomfake [phantomfake!~whats_in_@pool-71-190-229-236.nycmny.fios.verizon.net] has joined #ruby
dql [dql!~Kane@58.38.92.224] has quit [#ruby]
p0y [p0y!~p0y@112.210.104.200] has joined #ruby
ca_bud [ca_bud!~joshuaman@38.104.99.146] has joined #ruby
<ca_bud> Hi everyone!
dasfugufish [dasfugufish!~Adium@68-170-39-205.mammothnetworks.com] has joined #ruby
<ca_bud> I've been having a hard time parsing out the following pattern. Can anyone help. I want to remove @tweetname from all strings. For example, a="@anyname123 some sentence", I need to remove the @anyname and space after it. any help? I was thinking about using gsub, however, I'm having a hard time with the regex
<Tasser> ca_bud, /@\w+ / <- doesn't that work?
regismesquita [regismesquita!~locaweb@187.45.255.64] has joined #ruby
<canton7> maybe /^@\w+ / if you want to anchor it to the start of the string
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
<ca_bud> Kinda, but it does not get names like @name-something, or @name$ etc
james_cotterill [james_cotterill!~james_cot@217.113.171.162] has joined #ruby
_debo [_debo!~marco.deb@cpc18-enfi16-2-0-cust743.hari.cable.virginmedia.com] has joined #ruby
<canton7> ca_bud, /\S+/? <- maybe?
<canton7> maybe /\S+ ?/ to strip the trailing space if it exists
eywu [eywu!~Adium@205-170-107-4.dia.static.qwest.net] has joined #ruby
<canton7> ahem, /@\S+ ?/
ben_alman [ben_alman!~cowboy@184-106-134-167.static.cloud-ips.com] has joined #ruby
<Tasser> ca_bud, learn some regex :-P
<ca_bud> got it, thanks for the help!
Mchl [Mchl!~Mchl@h1881165560.rev.rootvps.pl] has joined #ruby
sum_1 [sum_1!~sum_1@67-42-89-36.tukw.qwest.net] has joined #ruby
saschaheylik [saschaheylik!~sascha@80-121-5-39.adsl.highway.telekom.at] has joined #ruby
<ca_bud> canton7: I'll start reading up more
robyurkowski [robyurkowski!~robyurkow@64.254.250.82] has joined #ruby
ckrailo [ckrailo!~ckrailo@208.86.167.247] has joined #ruby
ca_bud [ca_bud!~joshuaman@38.104.99.146] has quit [#ruby]
quest88 [quest88!~quest88@adsl-75-23-35-7.dsl.lgvwtx.sbcglobal.net] has joined #ruby
dekroning [dekroning!~dekroning@541B931D.cm-5-4c.dynamic.ziggo.nl] has joined #ruby
aetaric [aetaric!~aetaric@74-130-83-237.dhcp.insightbb.com] has joined #ruby
lkba [lkba!~AndChat@afss147.neoplus.adsl.tpnet.pl] has joined #ruby
james_co_ [james_co_!~james_cot@217.113.171.162] has joined #ruby
friskd [friskd!~friskd@71-95-209-242.static.mtpk.ca.charter.com] has joined #ruby
perturbedpanda [perturbedpanda!~perturbed@173-23-59-154.client.mchsi.com] has joined #ruby
wilmoore [wilmoore!~wilmoore@70-89-165-49-ISTS-co.hfc.comcastbusiness.net] has joined #ruby
AxonetBE [AxonetBE!~Adium@d51530F99.static.telenet.be] has joined #ruby
LiquidInsect [LiquidInsect!~billabney@173-228-63-32.dsl.static.sonic.net] has joined #ruby
<srid> can someone explain, or refer me, to the difference between Gemfile, Gemfile.lock and *.gemspec files?
<srid> i am new to ruby - so i don't understand how these files are being processed.
bbrandon [bbrandon!~brandon@cpe-174-097-242-015.nc.res.rr.com] has joined #ruby
<srid> i would like to understand this so as to effectively debug an issue with gem version/path conflicts in a ruby project at work
Tachyon [Tachyon!~tach@81.200.61.23] has joined #ruby
<regismesquita> srid , look for bundle and bundle.require
<srid> in source? looking..
<regismesquita> srid , Gemfile = File listing gems , Gemfile.lock = File listing installed gems (Probably will have more gems than the first file since it'll list the dependencies , gemspec = gem specification files, also lists gem dependencies for your gem)
confounds [confounds!~confounds@CPE78cd8e667600-CM78cd8e6675fd.cpe.net.cable.rogers.com] has joined #ruby
bamboozle [bamboozle!~david@cpc7-chap8-2-0-cust11.aztw.cable.virginmedia.com] has joined #ruby
<srid> my project has all three.
<srid> i assume "Gemfile" is auto-generated from the gemspect?
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
davidcelis [davidcelis!~david@108-64-212-213.lightspeed.sndgca.sbcglobal.net] has joined #ruby
Natch| [Natch|!~natch@178.73.216.173] has joined #ruby
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
andrewhl [andrewhl!~andrew@CPE687f7402a2d8-CM00195ed25a2a.cpe.net.cable.rogers.com] has joined #ruby
Tuxist [Tuxist!~quassel@host-091-097-110-248.ewe-ip-backbone.de] has joined #ruby
hadees [hadees!~hadees@72-48-91-73.dyn.grandenetworks.net] has joined #ruby
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
<havenn> join #ruby-lang
Araxia_ [Araxia_!~Araxia@173-164-68-213-Oregon.hfc.comcastbusiness.net] has joined #ruby
vmatiyko [vmatiyko!~vmatiyko@178.121.247.110] has joined #ruby
vmatiyko [vmatiyko!~vmatiyko@178.121.247.110] has quit [#ruby]
ikaros [ikaros!~ikaros@dslb-188-107-221-154.pools.arcor-ip.net] has joined #ruby
bier [bier!~bier@p54A5B009.dip.t-dialin.net] has joined #ruby
bier|tp [bier|tp!~bier@p54A5B009.dip.t-dialin.net] has joined #ruby
thone [thone!~thone@f052157150.adsl.alicedsl.de] has joined #ruby
AxonetBE [AxonetBE!~Adium@d51A4E944.access.telenet.be] has joined #ruby
rickmasta [rickmasta!~rickmasta@pool-108-21-213-102.nycmny.fios.verizon.net] has joined #ruby
igotnolegs [igotnolegs!~igotnoleg@75-162-83-166.slkc.qwest.net] has joined #ruby
hydrozen [hydrozen!~textual@bas1-montreal42-1177928670.dsl.bell.ca] has joined #ruby
alanp [alanp!~quassel@206-248-132-83.dsl.teksavvy.com] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
eldariof [eldariof!~CLD@81.200.24.167] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-236.lsanca.fios.verizon.net] has joined #ruby
SegFaultAX|work [SegFaultAX|work!~mkbernard@173.228.45.162] has joined #ruby
tomasantonj [tomasantonj!~Adium@host-95-199-27-75.mobileonline.telia.com] has joined #ruby
`brendan [`brendan!~b@66-208-246-34-ubr02b-waldlk01-mi.hfc.comcastbusiness.net] has joined #ruby
ly- [ly-!~ly_@unaffiliated/ly-] has joined #ruby
looopy [looopy!~looopy@pool-151-200-13-14.washdc.btas.verizon.net] has joined #ruby
vitoravelino [vitoravelino!~rockhampt@187.64.90.129] has joined #ruby
vitoravelino [vitoravelino!~rockhampt@unaffiliated/vtr] has joined #ruby
_srp [_srp!~quassel@115.99.249.189] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
quest88 [quest88!~quest88@75.23.35.7] has joined #ruby
avitzurel [avitzurel!~avitzurel@212.179.244.22] has joined #ruby
sepp2k [sepp2k!~sexy@p5DC91457.dip.t-dialin.net] has joined #ruby
PhilK [PhilK!~PhilK@2001:470:1f05:c99:21f:d0ff:fe84:e3ca] has joined #ruby
bosphorus [bosphorus!~bosphorus@85.96.122.235] has joined #ruby
Synthead [Synthead!~max@c-71-204-121-215.hsd1.ga.comcast.net] has joined #ruby
guns [guns!~guns@c-98-228-72-208.hsd1.il.comcast.net] has joined #ruby
dyer_ [dyer_!~dyer@108-193-172-174.lightspeed.tukrga.sbcglobal.net] has joined #ruby
dyer_ [dyer_!~dyer@unaffiliated/dyer] has joined #ruby
dyer [dyer!~dyer@108-193-172-174.lightspeed.tukrga.sbcglobal.net] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
gnusosa [gnusosa!~cisosa@unaffiliated/gnusosa] has joined #ruby
<gnusosa> Hi, I created a Ruby/C gem with ruby.h and extconf.rb. My question is: How can I add that gem to bundler?
skmidry [skmidry!~skmidry@66.194.68.139] has joined #ruby
havenn [havenn!~skipper@pool-108-0-191-210.lsanca.fios.verizon.net] has joined #ruby
p0y [p0y!~p0y@112.210.104.200] has joined #ruby
dhruvasagar [dhruvasagar!~dhruvasag@65.98.79.137] has joined #ruby
jbpros [jbpros!~jbpros@236-177-112-217.dyn.adsl.belcenter.be] has joined #ruby
looopy [looopy!~looopy@pool-151-200-13-14.washdc.btas.verizon.net] has joined #ruby
sh1nji [sh1nji!~sh1nji@c-69-181-222-6.hsd1.ca.comcast.net] has joined #ruby
p0y_ [p0y_!~p0y@121.97.55.99] has joined #ruby
esparkman [esparkman!~esparkman@unaffiliated/esparkman] has joined #ruby
Jay_Levitt [Jay_Levitt!~Jay_Levit@c-24-63-250-125.hsd1.ma.comcast.net] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
deeno [deeno!~deeno@pool-96-233-74-49.bstnma.fios.verizon.net] has joined #ruby
bigdata [bigdata!~jcrotty@np34.co.returnpath.net] has joined #ruby
<bigdata> obviously I am missing something scoping wise, any ideas? http://pastie.org/3063522
Spaceghostc2c [Spaceghostc2c!~Spaceghos@unaffiliated/spaceghostc2c] has joined #ruby
looopy [looopy!~looopy@pool-151-200-13-14.washdc.btas.verizon.net] has joined #ruby
<samuelkadolph> bigdata: local variables aren't in the scope of methods
clockwize [clockwize!~clockwize@31.99.161.50] has joined #ruby
spike2251 [spike2251!~user@c-24-62-228-150.hsd1.ma.comcast.net] has joined #ruby
colint_ [colint_!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
luxurymode [luxurymode!~luxurymod@c-69-141-246-238.hsd1.nj.comcast.net] has joined #ruby
otakutomo [otakutomo!~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has joined #ruby
bafilius [bafilius!~lee@wsip-174-75-64-190.sb.sd.cox.net] has joined #ruby
cyri_ [cyri_!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby
jarjar_prime [jarjar_prime!~mjarjoura@50-76-61-133-ip-static.hfc.comcastbusiness.net] has joined #ruby
mengu_ [mengu_!~mengu@95.13.68.170] has joined #ruby
mengu_ [mengu_!~mengu@unaffiliated/mengu] has joined #ruby
AxonetBE [AxonetBE!~Adium@d51A4E944.access.telenet.be] has joined #ruby
LouisJB [LouisJB!~Louis@louisb.gotadsl.co.uk] has joined #ruby
maletor [maletor!~maletor@pool-71-184-106-226.bstnma.fios.verizon.net] has joined #ruby
jbpros [jbpros!~jbpros@236-177-112-217.dyn.adsl.belcenter.be] has joined #ruby
bjhaid [bjhaid!~bjhaid@41.215.250.243] has joined #ruby
colint [colint!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
havenn [havenn!~skipper@pool-108-0-191-210.lsanca.fios.verizon.net] has joined #ruby
t-mart [t-mart!~t-mart@c-76-108-173-224.hsd1.fl.comcast.net] has joined #ruby
<bigdata> samuelkadolph: so, how do you make variables global so they are in scope to methods?
<rippa> global variables use sigil $
<rippa> but it's bad form
colint [colint!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
kidoz [kidoz!~kidoz@85.159.44.109] has joined #ruby
<samuelkadolph> bigdata: You can use an instance variable or pass in an argument to your deploy method
bbttxu [bbttxu!~adam@pool-71-96-208-205.dfw.dsl-w.verizon.net] has joined #ruby
<bigdata> yes, i guess passing by ref is the way to go
[-mX-] [[-mX-]!~mx@76-220-97-57.lightspeed.fyvlar.sbcglobal.net] has joined #ruby
skaczor [skaczor!~quassel@mail.prognosoft.biz] has joined #ruby
canton7 [canton7!~canton7@95.150.107.113] has joined #ruby
lolsuper_ [lolsuper_!~super_@pool-173-65-194-148.tampfl.fios.verizon.net] has joined #ruby
bastilian [bastilian!~bastilian@mk084020175130.a1.net] has joined #ruby
vmatiyko [vmatiyko!~vmatiyko@178.121.247.110] has joined #ruby
vmatiyko [vmatiyko!~vmatiyko@178.121.247.110] has quit [#ruby]
clockwize [clockwize!~clockwize@178.109.244.214] has joined #ruby
colint [colint!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
jay_zawrotny [jay_zawrotny!~Jay@c-68-43-28-43.hsd1.mi.comcast.net] has joined #ruby
friskd [friskd!~friskd@71-95-209-242.static.mtpk.ca.charter.com] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
LiquidInsect [LiquidInsect!~billabney@173-228-63-32.dsl.static.sonic.net] has joined #ruby
maletor [maletor!~maletor@pool-71-184-106-226.bstnma.fios.verizon.net] has joined #ruby
stringoO [stringoO!~JLstring@CPE001346cbe31b-CM00111ae502a8.cpe.net.cable.rogers.com] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
Jrz [Jrz!~jrz@d152222.upc-d.chello.nl] has joined #ruby
io_syl [io_syl!~io_syl@unaffiliated/steph021] has joined #ruby
youdonotexist [youdonotexist!~youdonote@c-67-166-121-94.hsd1.ut.comcast.net] has joined #ruby
S2kx [S2kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby
yekta [yekta!~yekta@c-24-1-180-65.hsd1.il.comcast.net] has joined #ruby
maletor [maletor!~maletor@pool-71-184-106-226.bstnma.fios.verizon.net] has joined #ruby
_debo [_debo!~marco.deb@cpc18-enfi16-2-0-cust743.hari.cable.virginmedia.com] has joined #ruby
io_syl [io_syl!~io_syl@unaffiliated/steph021] has joined #ruby
Jake232 [Jake232!~textual@5e092663.bb.sky.com] has joined #ruby
william8 [william8!~willaim8@63.246.231.57] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
burgestrand [burgestrand!~burgestra@81-229-85-235-no66.tbcn.telia.com] has joined #ruby
clockwize [clockwize!~clockwize@31.107.184.53] has joined #ruby
Tachyx [Tachyx!~tach@81.200.61.23] has joined #ruby
yekta [yekta!~yekta@c-24-1-180-65.hsd1.il.comcast.net] has joined #ruby
Codif [Codif!~codif@84.120.204.160.dyn.user.ono.com] has joined #ruby
eywu [eywu!~Adium@205-170-107-4.dia.static.qwest.net] has quit [#ruby]
audy [audy!~audy@heyaudy.com] has joined #ruby
Rod [Rod!~Rod@c-71-205-48-69.hsd1.mi.comcast.net] has joined #ruby
<Clooth> It was then evident that that that that had had, had had that that that had had.
LiquidInsect [LiquidInsect!~billabney@173-228-63-32.dsl.static.sonic.net] has joined #ruby
<canton7> Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo
Mon_Ouie [Mon_Ouie!~Mon_Ouie@subtle/user/MonOuie] has joined #ruby
spike2251 [spike2251!~user@c-24-62-228-150.hsd1.ma.comcast.net] has joined #ruby
Pip_ [Pip_!~Pip@unaffiliated/pip] has joined #ruby
airstream66 [airstream66!~textual@136.96.124.24.cm.sunflower.com] has joined #ruby
Kanolesic [Kanolesic!~Kanolesic@c-24-218-140-224.hsd1.ma.comcast.net] has joined #ruby
altivec [altivec!~altivec@94.41.35.6.dynamic.ufanet.ru] has joined #ruby
maletor [maletor!~maletor@pool-71-184-106-226.bstnma.fios.verizon.net] has joined #ruby
clockwize [clockwize!~clockwize@5ac85c0d.bb.sky.com] has joined #ruby
TheMoonMaster [TheMoonMaster!~TMM@reddit/operator/themoonmaster] has joined #ruby
GreaseMonkey [GreaseMonkey!~gm@unaffiliated/greasemonkey] has joined #ruby
maletor [maletor!~maletor@pool-71-184-106-226.bstnma.fios.verizon.net] has joined #ruby
Spaceghostc2c [Spaceghostc2c!~Spaceghos@unaffiliated/spaceghostc2c] has joined #ruby
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby
Cervajz [Cervajz!~Cervajz@opensuse/member/Cervajz] has joined #ruby
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby
h4mz1d [h4mz1d!~hamfz@adsl-072-148-022-091.sip.bhm.bellsouth.net] has joined #ruby
devdazed [devdazed!~russ_nyc@static-96-239-59-191.nycmny.fios.verizon.net] has joined #ruby
dbgster [dbgster!~dbgster@CPE0013f7b7170c-CM0013f7b71708.cpe.net.cable.rogers.com] has joined #ruby
havenn [havenn!~skipper@pool-108-0-191-210.lsanca.fios.verizon.net] has joined #ruby
oponder [oponder!~oponder@145-118-116-102.fttx.bbned.nl] has joined #ruby
maletor [maletor!~maletor@pool-71-184-106-226.bstnma.fios.verizon.net] has joined #ruby
sh1nji [sh1nji!~sh1nji@c-69-181-222-6.hsd1.ca.comcast.net] has joined #ruby
axilla [axilla!~axilla@c-71-234-169-157.hsd1.vt.comcast.net] has joined #ruby
axilla [axilla!~axilla@c-71-234-169-157.hsd1.vt.comcast.net] has quit [#ruby]
skaczor [skaczor!~quassel@mail.prognosoft.biz] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
Spaceghostc2c [Spaceghostc2c!~Spaceghos@unaffiliated/spaceghostc2c] has joined #ruby
ixti [ixti!~ixti@56.Red-83-34-153.dynamicIP.rima-tde.net] has joined #ruby
asQuirreL [asQuirreL!~amenon@93-96-10-147.zone4.bethere.co.uk] has joined #ruby
Fezzler [Fezzler!~anonymous@cpe-075-190-168-034.carolina.res.rr.com] has joined #ruby
gen0cide_ [gen0cide_!~textual@Wilkins3.static.monkeybrains.net] has joined #ruby
Mon_Ouie [Mon_Ouie!~Mon_Ouie@subtle/user/MonOuie] has joined #ruby
rramsden [rramsden!~rramsden@s64-180-62-209.bc.hsia.telus.net] has joined #ruby
otakutom_ [otakutom_!~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has joined #ruby
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
bostonbenz_ [bostonbenz_!~ben@75-150-71-83-NewEngland.hfc.comcastbusiness.net] has joined #ruby
<bostonbenz_> what is the easiest way to turn [{:key=>"name",:value=>"Ben"},{:key=>"score",:value=>"100"}] to {:Ben=>"100"} ? I have not found a simple way.
<bostonbenz_> sorry copied that wrong
<bostonbenz_> [{:key=>"name",:value=>"Ben"},{:key=>"score",:value=>"100"}] to {:name=>"Ben",:score=>"100"}
<Spaceghostc2c> merge with delete or reject?
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
<pigoz> :key=>"name",:value=>"Ben"},{:key=>"score",:value=>"100"}].reduce({}) {|memo, hash| memo.merge(hash[:key].to_sym => hash[:value])}
<pigoz> good enough?
<bostonbenz_> I think so
<bostonbenz_> is reduce similar to inject?
<pigoz> yes
<pigoz> aliases
Natch| [Natch|!~natch@178.73.217.174] has joined #ruby
<bostonbenz_> is this thing efficient?
<bostonbenz_> :)
<pigoz> well it's a loop
<bostonbenz_> I guess it is as efficient as it can be
<bostonbenz_> ruby map is a loop too, right?
<bostonbenz_> thanks a lot, guys
<pigoz> yep map is used to transform the items, reduce is generally used to accumulate the list in a different structure
crankycoder [crankycoder!~crankycod@out-on-198.wireless.telus.com] has joined #ruby
guns [guns!~guns@c-98-228-72-208.hsd1.il.comcast.net] has joined #ruby
josefig [josefig!~josefig@unaffiliated/josefig] has joined #ruby
sh1nji [sh1nji!~sh1nji@c-69-181-222-6.hsd1.ca.comcast.net] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
jmuniz [jmuniz!~jmuniz@pool-173-77-29-202.nycmny.east.verizon.net] has joined #ruby
Zal [Zal!~zal@unaffiliated/zalamander] has joined #ruby
wassy121 [wassy121!~quassel@pool-96-244-18-74.bltmmd.fios.verizon.net] has joined #ruby
<wassy121> Afternoon folks. I'm not a ruby expert, but was wondering how I can distribute an all-in-one binary or ruby, static libs, and various modules all packed together so it only relies on glibc.
<wassy121> I saw a ruby gem called crate, but it seems to be stale, and only has support for 1.8.7 or so.
<wassy121> Is there a newer, better way to do what I want?
esn [esn!~esn@cac94-12-88-185-141-50.fbx.proxad.net] has joined #ruby
<Zal> Hi, I have some code that works fine here, but is throwing a SyntaxError on someone else's machine. Could this be a ruby version mismatch? I'm using 1.9.1, code and error here: http://pastie.org/3064111
colint [colint!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
hukl [hukl!~hukl@pdpc/supporter/professional/hukl] has joined #ruby
<srid> how do I check for presence of a substring in another string (disregarding case) in ruby?
<Zal> It seems to be complaining about my negative lookbehind regexps
<srid> in Python, it is: if sub in larger.lower()
<Mon_Ouie> String#include?
<Spaceghostc2c> srid… #match
sreich [sreich!~sreich@2001:470:1:41:a800:ff:fe3e:cde3] has quit ["Konversation terminated!"]
wookiehangover [wookiehangover!~wookiehan@c-67-161-138-118.hsd1.co.comcast.net] has joined #ruby
<Zal> "if larger.downcase.index(sub)" seems to work
<Zal> maybe #match is more efficient
<Spaceghostc2c> Yeah.
<Zal> Anyone have a thought on my regex throwing SyntaxError on one ruby but works fine on another?
<Zal> or can someone direct me to a changelog for ruby regular expression syntax?
<Spaceghostc2c> Sounds like you're doing something wrong, but I can't tell with just words.
<Spaceghostc2c> rubular.com
<Zal> Spaceghostc2c, http://pastie.org/3064111
<Zal> works fine on 1.9.1
<Zal> wondering if the error (from another machine) could be a different ruby version? If so, what's wrong?
<Zal> thanks for rubular.com
<Spaceghostc2c> Don't use 1.9.1
<havenn> Zal: 1.9.3-p0 is the stable 1.9 Ruby
<Zal> Well, it's what I got at the moment. I will upgrade, but it won't help unless I know what I did wrong :-) My syntax looks fine to me, so I must be missing something
<Spaceghostc2c> Zal… Oh dear god.
<havenn> Zal: Can you post a pastie or gist of the offending syntax?
<Spaceghostc2c> havenn… http://pastie.org/3064111
<Spaceghostc2c> That's his stuff.
<Zal> thanks for the repaste
<Spaceghostc2c> Zal… You should consider writing methods for those regular expression matches.
<Spaceghostc2c> There's no reason to toss them into instance variables.
<Zal> Spaceghostc2c, I don't understand. What would a method do? I already have a "parse" method that uses the expressions.
<Zal> are you suggesting that I define them inside parse(), rather than as instance variables?
<Spaceghostc2c> Why would you want them as instance variables? That's a question you should ask.
<Spaceghostc2c> No, you should write methods for each or write one method that takes arguments.
<Zal> well, frankly, I don't understand yet why everything in ruby is contained in a class in the first place :-)
straind [straind!~stupidper@n127s244.bbr1.shentel.net] has joined #ruby
<Zal> what would a method for each one do?
<Spaceghostc2c> Ugh, nevermind.
<Zal> just return the expression?
<Spaceghostc2c> You could learn a lot by picking up a book about object orientation.
<Zal> I understand object orientation in general
<Zal> I have a functional problem to deal with, but Ruby seems to demand that everything be a method
<Spaceghostc2c> You could learn how to do it right if you get a good book on it.
Rod [Rod!~Rod@c-71-205-48-69.hsd1.mi.comcast.net] has joined #ruby
<Zal> <shrug> I have no problem with it in other languages
<Hanmac> Zal: the funny part is that classes are objects too :P
<Zal> Could you explain to me what a method for each expression would do, in your suggestion?
<Zal> Hanmac, of course
<Spaceghostc2c> You're welcome to write in other languages, you're also welcome to try and write using other languages in ruby, but it doesnb't mean you're doing it right.
<Zal> Spaceghostc2c, well, I'm asking for clarification of your suggestion.
<Spaceghostc2c> In ruby, you'd want to be more aware of the encapsulation. Other methods don't need to know the regular expression being passed around in the instance variable.
<Spaceghostc2c> You're coding to an implementation not an interface.
esn [esn!~esn@cac94-12-88-185-141-50.fbx.proxad.net] has quit [#ruby]
<Zal> Spaceghostc2c, fair enough, and I could define the expressions inside the method that uses them. But I don't understand the idea of defining methods for each expression. Can you explain that part?
metrix [metrix!~chatzilla@66-76-154-130.wtx.sta.suddenlink.net] has joined #ruby
<Spaceghostc2c> Zal… You're new to ruby, yes?
<Zal> yes indeed
<Spaceghostc2c> And your regular expressions match for different types of things you're looking for, right?
<Zal> right
<Spaceghostc2c> The simplest way forward is to write a method for each.
<Spaceghostc2c> You can always be more clever.
<shevy> I wanna be your daddy
<Spaceghostc2c> Like, wrap them in a module which you toss into the class you want to have them as instance methods on and have one method that takes an argument that determines the regular expression to me matched against. One returns whatever you want from the match and one that is a boolean response.
<Spaceghostc2c> Hell, you could get insane if you wanted.
<Zal> Hm, only one of the patterns is used to "match" something alone. Another is used to split a string, and another is used as a substitution.
<Zal> Spaceghostc2c, ok I understand your suggestion.
<Spaceghostc2c> Start simple. Write a method or a couple if that's simpler to operate on a string and return the response you want.
<Zal> Anyhow, while the structure is not rubyish, and I will re-arrange that (and appreciate the suggestions!), I still need to know what's wrong with my negative lookbehind syntax
<Zal> Why am I getting "Undefined (?...) sequence?
<Zal> "
manizzle [manizzle!~manizzle@dsl081-053-082.sfo1.dsl.speakeasy.net] has joined #ruby
<Spaceghostc2c> Switch to 1.9.3
<Spaceghostc2c> Or get onigurama
_debo [_debo!~marco.deb@cpc18-enfi16-2-0-cust743.hari.cable.virginmedia.com] has joined #ruby
<Spaceghostc2c> Or get oniguruma
<Zal> the problem it works in 1.9.1 but NOT 1.9.3 (apparently)
<Spaceghostc2c> No one is using 1.9.1
<Zal> hm, that page says it works in 1.9 but not earlier, so maybe the other machine has 1.8.x
<Spaceghostc2c> No one should.
<Zal> that's fine Spaceghostc2c, I will upgrade. However, 1.9.1 isn't the problem, the other version is
<Zal> Guess I have to find out if this guy is using 1.8.x
<Spaceghostc2c> 1.9.1 isn't a good ruby. Please don't use it.
<Zal> Spaceghostc2c, I really do understand, thanks
<Spaceghostc2c> If you want to, I know I'm not pro enough to determine when it's a ruby problem or your code.
<Zal> Well, I am :-) I know my code runs fine on 1.9.1, but causes a syntax error on some other unknown version
<Spaceghostc2c> Good luck.
<wmoxam> Zal: where did you get 1.9.1?
<Spaceghostc2c> wmoxam… From pythonists. D:
* wmoxam is sceptical that it is in fact 1.9.1
<Spaceghostc2c> skeptical, even?
<LiquidInsect> he might be referring to the api version
<Spaceghostc2c> wmoxam… Trololol. So any new funnies?
<wmoxam> Spaceghostc2c: debian based systems call it 1.9.1 even though it's 1.9.2
<wmoxam> as 1.9.1 is the compatibility version
<Spaceghostc2c> wmoxam… I know they store gems in a 1.9.1 directory, but yeah
<wmoxam> just like their 1.8 package is really 1.8.7
<Zal> wmoxam, it's actually 1.9.1p431, shipped with slackware 13.37
<wmoxam> ah
<wmoxam> Slackware
<Zal> ?
<wmoxam> Zal: it's pretty ridiculous that they shipped ruby 1.9.1 in the year 2011
<Zal> Slackware has the newest version of just about everything else ... this release is nearing 6 months old though
<Zal> wmoxam, ok, no problem, like I said, I will certainly upgrade
<wmoxam> Zal: 1.9.1 was released in 2009
<Zal> 1.9.1.p431 was released in Feb 2011
<Zal> right about when this slackware was
<Spaceghostc2c> They should have included 1.9.2 instead.
<wmoxam> Zal: yeah, but 1.9.2 had been out for quite some time by then
<Spaceghostc2c> Emailing core devs is hard though.
<Spaceghostc2c> I don't blame them.
<Zal> I'm sure there's some reason for it, probably breaks scripting with some out-of-date package. I'll read the Slackware changelog to figure it out.
<wassy121> Hey folks, anyone know how I can best ship a "stand-alone" executable with ruby and all it's libs inside? I want to rely on absolutely the fewest prerequisites when setting up my package.
<Spaceghostc2c> wassy121… I use Jruby for that
<wassy121> I've heard of ocra, crate, and rubyscript2exe.
<Spaceghostc2c> I don't know any good cruby ones that do everything.
<wassy121> I've heard of JRuby, but don't know it well enough. Let me look into it.
<Zal> So, glad to know I need an upgrade. Meanwhile, why is my negative lookbehind broken? Anyone? http://pastie.org/3064111
<wmoxam> Zal: anyway, there is no reason to use 1.9.1 unless you are shipping some slackware package and you want to use their ruby package as a dependancy
<Zal> wmoxam, cool
<Zal> No one can tell me what's wrong with this stuff? rubular.com doesn't like them either, and presumably they are using 1.9.x? The link Spaceghostc2c gave me indicates negative lookbehind is broken in < 1.9 only?
<Zal> Is it also broken in 1.9.3?
<Spaceghostc2c> Doubtful.
<Zal> OK, so why does rubular.com not like it either? The syntax looks to me to be right
<Zal> Hm, thanks. I still don't see the problem. Any chance one of you guys with 1.9.3 could verify that my expressions cause a syntax error?
<havenn> Zal: Yes, it does.
<Zal> thanks
<havenn> Zal: How bout something like (just sub'd out regex from Stackoverflow): https://gist.github.com/1515462
<Zal> havenn, the method arrangement is exactly what Spaceghostc2c suggested. As for the regex, I don't think it's quite right. I need ", " not preceded by a | (it might not be preceded by anything)
<Zal> that's why I need the negative lookbehind ... I think
<waxjar> didn't read your full problem, but this `/[^\|]*(hi)/i` matches anything without a `|` in front of it.
rpgsimmaster [rpgsimmaster!~rpgsimmas@system00.packetstability.com] has joined #ruby
<waxjar> * hi with anything (including nothing) in front of it, but an `|`
confounds [confounds!~confounds@208.113.46.214] has joined #ruby
<Zal> Thanks guys, I'll try the [^\|]
samrose [samrose!~samrose@c-24-23-77-168.hsd1.mi.comcast.net] has joined #ruby
samrose_ [samrose_!~samrose@c-24-23-77-168.hsd1.mi.comcast.net] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
<Zal> If anyone can tell what's wrong with my negative lookbehind, I'd still like to know.
<waxjar> i love that cheat sheet, save the pdf somewhere and you'll be a boss at regexing
<Zal> Well, I thought I was OK at them, heh. This syntax appears in the ruby docs, but doesn't appear to be supported (except in my outdated version)
<Zal> I'm new to ruby, but not to regex
<Hanmac> question about duck typing ... is it good that my c-extendsion support that?
xpot [xpot!~xpot@166-70-100-198.ip.xmission.com] has joined #ruby
rpgsimmaster [rpgsimmaster!~rpgsimmas@system00.packetstability.com] has joined #ruby
sand1 [sand1!sandpy@derp.ogtroll.com] has joined #ruby
<waxjar> Zal, do you perhaps mean (?:…) instead of (?…)
<Spaceghostc2c> Random guess, yes.
saschaheylik [saschaheylik!~sascha@80-121-5-39.adsl.highway.telekom.at] has quit [#ruby]
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
<Zal> waxjar, I am using neither, but (?<...)
<Zal> from the docs: (?<!pat) - Negative lookbehind assertion
<Zal> sorry, I am using (?<!...)
<Zal> And strangely, no errors on 1.9.1. So the syntax I'm using must have worked *at some time*
<Zal> it also parses correctly
<waxjar> what are you actually trying to filter?
<Zal> the [^\|] doesn't work for what I'm doing, at least not how I'm using the pattern
<waxjar> can you give an example of what you're trying to do?
<Zal> waxjar, arbitrary argument strings. The parsing rules are purposefully obtuse (it's an exercise, not a real world argument string)
<Zal> sure, you're not going to like it though ...
clockwize [clockwize!~clockwize@5ac85c0d.bb.sky.com] has joined #ruby
<Zal> I'm trying to parse lines of the following form: http://pastie.org/3064352
dbernar1 [dbernar1!~dbernar1@205-200-13-84.static.mtsallstream.net] has joined #ruby
sand1 [sand1!sandpy@derp.ogtroll.com] has joined #ruby
<Zal> And my patterns work correctly, where negative lookbehind works at all
<Zal> that is, on ruby 1.9.1 only, apparently :-(
rpgsimmaster [rpgsimmaster!~rpgsimmas@system00.packetstability.com] has joined #ruby
<waxjar> idk man, try to rewrite the regex
<Zal> yeah, working on that
<Zal> thanks
Azure [Azure!~azt@unaffiliated/azure] has joined #ruby
<Zal> thanks a lot to all you for the help, and suggestions
josefig [josefig!~josefig@unaffiliated/josefig] has joined #ruby
<waxjar> sure
Dreamer3 [Dreamer3!~Dreamer3@74-134-34-116.dhcp.insightbb.com] has joined #ruby
<Zal> the docs I'm reading are 1.9.3 of course, but my regex fails on 1.9.3
<Zal> Spaceghostc2c, I read the link regarding anchors in negative lookbehinds. Interesting, though I'm not using any anchors as far as I can tell
banistergalaxy [banistergalaxy!~baniseter@118.82.185.158] has joined #ruby
<Zal> so I need to split a string on ", " but only when not preceded by a "|" character. I haven't figured out how to do so yet without using a negative lookbehind.
Blazento [Blazento!~john@rrcs-184-74-225-230.nyc.biz.rr.com] has joined #ruby
<Blazento> what kind of time format is this? 1324678694
<Spaceghostc2c> milliseconds?
<canton7> as a unix timestamp, that comes out as 23rd Dec 2011, which seems sensible
<canton7> (seconds since midnight Jan 1st 1970)
<Blazento> ahh thanks canton7
rpgsimmaster [rpgsimmaster!~rpgsimmas@system00.packetstability.com] has joined #ruby
tilde[afk] [tilde[afk]!~tilde@host238-192-dynamic.12-79-r.retail.telecomitalia.it] has joined #ruby
clockwize_ [clockwize_!~clockwize@5ac85c0d.bb.sky.com] has joined #ruby
sand1 [sand1!sandpy@derp.ogtroll.com] has joined #ruby
bamboozle [bamboozle!~david@cpc7-chap8-2-0-cust11.aztw.cable.virginmedia.com] has joined #ruby
mksm [mksm!mksm@201.20.236.65.user.ajato.com.br] has joined #ruby
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby
csavola [csavola!~csavola@CPE0021e9f7ea74-CM001404933e00.cpe.net.cable.rogers.com] has joined #ruby
dotnull [dotnull!~dot_null@173-31-158-182.client.mchsi.com] has joined #ruby
Clooth [Clooth!~Clooth@GGYGKMMCDXII.gprs.sl-laajakaista.fi] has joined #ruby
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Sliker [Sliker!~ponies@87.112.223.181] has joined #ruby
negative [negative!~Clooth@193-64-22-46-nat.elisa-mobile.fi] has joined #ruby
<canton7> Zal, out of interest "thing, thing|, thing".split(/(?<!\|), /) seems to work (produces ["thing", "thing|, thing"] in 1.9.3p0
<canton7> also, http://rubular.com/ is a very good link (although not for negative lookbehinds, it seems)
<Zal> canton7, strange, Hanmac said that expression was a syntax error in 1.9.3
<Zal> thanks for the info
<Zal> it works here on 1.9.1 too.
<Zal> (confused still)
<canton7> maybe he typo'd?
<Zal> maybe :-)
<Zal> "Rubular runs on Ruby 1.8.7. "
<canton7> ah, good spot
<Zal> that explains that much at least
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
<Zal> So I'm guessing that whoever is testing my work is also using 1.8.x. Which means I'm still stuck with having to rewrite the expressions without negative lookbehind. Does anyone actually use 1.8.x, for example, to serve an existing Rails app?
<Spaceghostc2c> It'd going EOL in six months.
<Zal> I guess Rubular uses it :-)
<Zal> Spaceghostc2c, excellent, thanks
Kanolesic [Kanolesic!~Kanolesic@74-93-18-65-NewEngland.hfc.comcastbusiness.net] has joined #ruby
Codif_ [Codif_!~codif@84.120.204.160.dyn.user.ono.com] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
LouisJB [LouisJB!~Louis@louisb.gotadsl.co.uk] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
<Hanmac> i will be habby when 1.8 dies
<canton7> Zal, I've got a copy of 1.8.7 around if you need stuff testing
<Spaceghostc2c> Hanmac… How did you get that wacky upside down and backwards p? AWESOME
<Zal> canton7, thanks, much appreciated! I may hit you up if I get this working without negative lookbehind
<negative> what
<negative> STOP HIGHLIGHTING ME
<Zal> heh
dekroning [dekroning!~dekroning@541B931D.cm-5-4c.dynamic.ziggo.nl] has joined #ruby
jbpros_ [jbpros_!~jbpros@203-177-112-217.dyn.adsl.belcenter.be] has joined #ruby
QaDeS [QaDeS!~mklaus@frbg-5d84f462.pool.mediaWays.net] has joined #ruby
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby
fridim_ [fridim_!~fridim@2a01:e35:2ece:f2d0:223:4eff:fe6c:c754] has joined #ruby
sh1nji [sh1nji!~sh1nji@c-69-181-222-6.hsd1.ca.comcast.net] has joined #ruby
atmosx [atmosx!~atmosx@79.103.90.84.dsl.dyn.forthnet.gr] has joined #ruby
ascarter [ascarter!~ascarter@71-37-51-204.tukw.qwest.net] has joined #ruby
pantsman [pantsman!~pantsman@2.25.208.143] has joined #ruby
pantsman [pantsman!~pantsman@pdpc/supporter/active/pantsman] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
draginx [draginx!~Adium@unaffiliated/draginx] has joined #ruby
chrxn [chrxn!chrxn@69.4.233.32] has joined #ruby
ca_bud [ca_bud!~joshuaman@38.104.99.146] has joined #ruby
<ca_bud> hello, I would I insert a "|" in the first space after 6 characters? example "bla bla bla" would be "bla bla | bla"
<ca_bud> I know it's the holidays, but anyone here?
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
<jensn> No, we're not here, but something like "#{a[0 … 6] }|#{a[6 .. -1]}"
<jensn> ?
<ca_bud> ? is that regex?
<canton7> "first space after 6 characters", not "after 6 characters"
<jensn> Oh, right.
<jensn> (And no, that is not a regex)
<ca_bud> oh got it, string interpolatoin (sp?)
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
<jensn> The regexp you're looking for is probably something like /.{6}\S*/
<ca_bud> jensn: Is that string interpolation?
<jensn> The first was string interpolation, the second was a regexp.
gen0cide_ [gen0cide_!~textual@Wilkins3.static.monkeybrains.net] has joined #ruby
<ca_bud> jensn: so how do i use that using a sting a=" bla bla bla bla bla"
<ca_bud> jensn: I'm used to using things this way, "title: #{title}", not modifying things in between
<ca_bud> when I try running it I get irb/ruby-lex.rb:346:in `block in lex_init': invalid byte sequence in UTF-8 (ArgumentError)
<ca_bud> Also, I'll point out, that the space may not be the 6th spot. the space could be anywhere after the 6th spot
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby
<jensn> ca_bud: Something like https://gist.github.com/2f5b9185bc751ff48226 ?
ryanf [ryanf!~revfitz@50.0.160.40] has joined #ruby
<ca_bud> jensn: cool. how can I get the "|" to insert after every 6 letters (where this is the first available space?
<ca_bud> jensn: thank you so much for you help!!
tdubellz [tdubellz!~tdubellz@66.172.6.25] has joined #ruby
shaman42 [shaman42!shaman42@kapsi.fi] has joined #ruby
<jensn> ca_bud: I think you can use String#gsub.
<ca_bud> I'll try a few things out.
<jensn> I am not really sure, regexps are pretty bad at looping.
<jensn> In case of the worst, just loop over each character in the string, adding a | where required.
<ca_bud> I tried "bla bla bla bla bla bla bla bla bla bla".gsub /(.{6}\S*)(.*)/, '' and it spit out ''
tdubellz [tdubellz!~tdubellz@freenode/staff/tdubellz] has joined #ruby
<ca_bud> I'll review your above code again
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby
<jensn> It is because it matches the whole string.
<jensn> It uses backreferences.
adeponte [adeponte!~adeponte@pool-173-51-131-236.lsanca.fios.verizon.net] has joined #ruby
<ca_bud> in your code, you don't define a variable in "bla bla bla bla bla" =~ /(.{6}\S*)(.*)/, however, it seems to assign the value to $1 and $2
<ca_bud> if I wanted to explicitly assign the values, is there a way?
<jensn> Yes, they are magic and are assigned by the regexp matching.
<jensn> The () make them.
<jensn> $1 for the first, $2 for the second and so on.
josh___ [josh___!~josh@74-95-43-126-Oregon.hfc.comcastbusiness.net] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby
io_syl [io_syl!~io_syl@unaffiliated/steph021] has joined #ruby
<ca_bud> this allowed me to explicitly assign the value a=/(.{6}\S*)(.*)/.match("bla bla bla bla bla bla bla bla bla")
tomasantonj [tomasantonj!~Adium@host-95-199-14-149.mobileonline.telia.com] has joined #ruby
<ca_bud> Cool. I just loop through this... a=/(.{6}\S*)(.*)/.match(a[2])
<ca_bud> jensn: thank you for your help!
<jensn> No problem.
_debo [_debo!~marco.deb@cpc18-enfi16-2-0-cust743.hari.cable.virginmedia.com] has joined #ruby
danielpunt [danielpunt!~danielpun@ip120-238-211-87.adsl2.static.versatel.nl] has joined #ruby
<ca_bud> jensn: is there a way for regex to seperate all of them, looping in a way?
<jensn> I don't think so, but the new regexp engine in Ruby 1.9 might have the power™.
<jensn> Err… you could probably match the first part, and then match a single character, replacing it by itself plus a "|"
<jensn> That would probably work.
<ca_bud> actually, this seems to work well /(.{10}\S*)/, then I can just loop through and insert between each array element
ly- [ly-!~ly_@unaffiliated/ly-] has joined #ruby
QKO [QKO!~reaVer@banzai.speedxs.nl] has joined #ruby
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby
<jensn> Awesome.
eignerchris [eignerchris!~eignerchr@174-25-140-210.ptld.qwest.net] has joined #ruby