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/
Jake232 [Jake232!~textual@5e0ecfc2.bb.sky.com] has joined #ruby
pHcF [pHcF!~pedrofran@187.126.169.126] has joined #ruby
organic [organic!organic@ool-4a58d269.dyn.optonline.net] has joined #ruby
MissionCritical [MissionCritical!~MissionCr@unaffiliated/missioncritical] has joined #ruby
flip_digits [flip_digits!~textual@c-76-122-14-228.hsd1.fl.comcast.net] has joined #ruby
igotnolegs [igotnolegs!~igotnoleg@75-162-83-166.slkc.qwest.net] has joined #ruby
<CodeZombie>
Azure: thanks, just got off the phone with the author of the server side, he seems to think that char encoding could be the issue, and maybe I should specify unicode.
Muz [Muz!~muz@last.fm/moose/Muz] has joined #ruby
<CodeZombie>
blah, I hate not having access to the server code lol
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
youdonotexist [youdonotexist!~youdonote@c-67-166-121-94.hsd1.ut.comcast.net] has joined #ruby
aroman_ [aroman_!~Avi@pool-71-185-172-230.phlapa.fios.verizon.net] has joined #ruby
macgregor [macgregor!~macgregor@CPE00222dcb0a53-CM00222dcb0a4f.cpe.net.cable.rogers.com] has joined #ruby
jrist [jrist!~jrist@71-212-208-163.hlrn.qwest.net] has joined #ruby
ryanf [ryanf!~revfitz@118.sub-174-253-248.myvzw.com] has joined #ruby
<pHcF>
hi, i have a string that is being created using ["a string"].pack('H*').. then, I try to convert it to UTF-8 using Encoding::Converter, but I get the error "\x9D" on UTF-8 (Encoding::InvalidByteSequenceError)
<pHcF>
how can i fix that?
<pHcF>
i mean, not changing "a string"
dasfugufish [dasfugufish!~Adium@68-170-39-205.mammothnetworks.com] has joined #ruby
jthomas_ [jthomas_!~jthomas@c-98-222-28-137.hsd1.il.comcast.net] has joined #ruby
arman [arman!~arman@99-100-33-0.lightspeed.sntcca.sbcglobal.net] has joined #ruby
Schmidt [Schmidt!~lsc@h-11-69.a254.priv.bahnhof.se] has joined #ruby
xeno_ [xeno_!~xeno@rev-66-150-171-4.rhapsody.com] has joined #ruby
jthomas_ [jthomas_!~jthomas@c-98-222-28-137.hsd1.il.comcast.net] has joined #ruby
Skaag [Skaag!~Skaag@cpe-67-247-51-89.nyc.res.rr.com] has joined #ruby
<xcyclist>
Still stuckout here in the cold trying to set up eruby on apache. Anyone care to make a suggestion?
<xcyclist>
Latest I'm seeing is a protection problem, using apt-get installs for userdir, erubis, etc, and leaving out all gem installs.
<xcyclist>
Running on Ubuntu.
jbhewitt [jbhewitt!~jbhewitt@c122-108-214-224.rochd4.qld.optusnet.com.au] has joined #ruby
<xcyclist>
On my other machine, I tried to set up everything I could using gems, only resorting to apt-get with things like apache modules.
silky [silky!~silky@pool-74-108-142-22.nycmny.fios.verizon.net] has joined #ruby
Sailias [Sailias!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby
carbncl [carbncl!~carbncl@bne75-3-82-225-142-80.fbx.proxad.net] has joined #ruby
ryanf [ryanf!~revfitz@50.0.160.40] has joined #ruby
<xcyclist>
Yes, I know that Samuel, but the problem is, I shouldn't . It should set up the protections properly. So, the question is, have I left something out. I installed userdir and suexec (I am using a UserDir public_html apache directive).
<samuelkadolph>
The permissions aren't right. Make the read 7 to make sure that's the problem.
<samuelkadolph>
Then figure out what user it's running as and why it's not got the permission
<xcyclist>
I don't know what a "read 7" is.
<samuelkadolph>
Set the read permission bit to 7 for all
<xcyclist>
Ok.
<samuelkadolph>
Err, anyone permission bit
<samuelkadolph>
Hmm
<samuelkadolph>
It might be trying to open the file for writing
audy [audy!~audy@heyaudy.com] has quit ["Leaving"]
<xcyclist>
Yes, please look at the pastie. It shows you it is trying to write to the directory.
<xcyclist>
Also, when I changed public_html to 777, it stopped writing to the error log, but now downloads the file instead of displaying to the browser.
<samuelkadolph>
You can't tell what it's try to do from that error alone
<samuelkadolph>
It's either trying to read that file and failing or trying to write it and failing
<xcyclist>
But, it fails on the open, and the open is for write.
<samuelkadolph>
And setting 777 to the directory means you are running as the wrong user
<xcyclist>
The open is for a buffer write, which means it disappears when it is closed.
Rod_ [Rod_!~Rod@c-71-205-48-69.hsd1.mi.comcast.net] has joined #ruby
<samuelkadolph>
I don't know if suexec works with eruby, you'd have to ask in an apache channel
<samuelkadolph>
And probably for the download as well
<xcyclist>
Good point.
<samuelkadolph>
But first check with curl to see if it is sending the download header
<samuelkadolph>
If it isn't, it may be your browser doing it based on an extension or something
<xcyclist>
Well, that's some steps. Thank you Samuel. If I can, I'll stop back andn tell of progress.
PaciFisT [PaciFisT!~PeaCE@CPE0023be436752-CM0023be436750.cpe.net.cable.rogers.com] has joined #ruby
nirizr [nirizr!~nirizr@93-172-161-250.bb.netvision.net.il] has joined #ruby
<nirizr>
hey
humanpipecleaner [humanpipecleaner!~chatzilla@wsip-24-234-202-219.lv.lv.cox.net] has joined #ruby
<nirizr>
a friend told me ruby is not a real language. and i want to disprove him. does any one of you speak it?
zulax [zulax!~radarwork@99-120-232-161.lightspeed.iplsin.sbcglobal.net] has joined #ruby
<Nowaker>
nirizr: :D
<nirizr>
Nowaker: do you speak it?
<Nowaker>
is latin not a real language because nobody speaks it? it's only written...
<nirizr>
ohhh. that seems so weird... how could they add such a syntax to latin?..
<_axx>
can you guys give me some help on hashes? i have one hash (1) with 10 keys and want to crete a new hash(2), with only 3 of the keys from hash 1, i could assign them with a hash1.each do, but it fails if certain values of the hashes aren't set. :(
xea [xea!~iris@icts.hu] has joined #ruby
samxor [samxor!samxor@70.32.34.103] has joined #ruby
PaciFisT [PaciFisT!~PeaCE@CPE602ad06de6b3-CM602ad06de6b0.cpe.net.cable.rogers.com] has joined #ruby
cynosure [cynosure!~cynosure@centrumnet.hu] has joined #ruby
<pHcF>
i have a string that is being created using ["a string"].pack('H*'), then, I try to convert it to UTF-8 using Encoding::Converter, but I get the error "\x9D" on UTF-8 (Encoding::InvalidByteSequenceError). how can i fix that and not changing the value "a string" nor the final result?
<nirizr>
my friend said ruby isnt a real language because japanese people invented it
<nirizr>
and they have no souls
<nirizr>
i looked in wikipedia and it didn't say anything about it
ryh [ryh!~ryh@216.228.48.198] has joined #ruby
banisterfiend [banisterfiend!~baniseter@115.189.99.182] has joined #ruby
jbw [jbw!~jbw@dsl-044-084.cust.imagine.ie] has joined #ruby
banister_ [banister_!~baniseter@122.63.243.32] has joined #ruby
ngng [ngng!~ng@c-98-210-117-31.hsd1.ca.comcast.net] has joined #ruby
kf8a [kf8a!~kf8a@dslfw4.mei.net] has joined #ruby
bnewton [bnewton!~bnewton@cpe-66-68-94-56.austin.res.rr.com] has joined #ruby
Ilithya [Ilithya!Ilithya@2a02:1610:1:0:20c:29ff:feb3:d0ff] has joined #ruby
freelanceful [freelanceful!~jamesfend@c-71-228-225-167.hsd1.tn.comcast.net] has joined #ruby
<shevy>
nirizr hmm
<nirizr>
?
tobym [tobym!~tobym@c-24-128-127-47.hsd1.vt.comcast.net] has joined #ruby
<shevy>
nirizr a soul
<shevy>
I never saw a soul in ruby
<shevy>
I think your friend is right
<shevy>
there are no souls in ruby
<freelanceful>
Just how far should you test with Cucumber?
<nirizr>
see? thats just what he said!
rramsden [rramsden!~rramsden@s64-180-62-209.bc.hsia.telus.net] has joined #ruby
<shevy>
he is a wise man
<shevy>
give him a hug from me when you see him k?
<freelanceful>
Only the parts with functionality? Like pages with input fields like edit and create new pages? What about the show pages, (like User profile) pages where it just displays what's in the database?
<nirizr>
i think hell be disappointed with just a hug...
bnewton [bnewton!~bnewton@cpe-66-68-94-56.austin.res.rr.com] has joined #ruby
<brownies>
test ALL the things
<shevy>
TEST THE WORLD
<nirizr>
*test ALL the world
<CodeZombie>
does encode not support UTF-16?
<CodeZombie>
I tried something like "foo".encode("UTF-16") and I got an error "code converter not found (UTF-8 to UTF-16)"
<brownies>
i have a dumb question
<brownies>
how do i fix this?
<brownies>
You have already activated activesupport 3.2.0.rc1, but your Gemfile requires activesupport 3.1.0. Using bundle exec may solve this. (Gem::LoadError)
<banister_>
d
<CodeZombie>
nvm, I see LE is needed
<brownies>
well, better question
<brownies>
how do i fix it without having to type "bundle exec" everytime?
<_axx>
brownies: you could create an alias in your bash_profile :)
<brownies>
yea i just found that by googling
<brownies>
think i'll do that
<_axx>
i read about a fix lately, but i can't remember
<_axx>
there is a better way to fix this
<freelanceful>
brownies: can't you go overboard with tests?
<brownies>
i don't know ... i'm just learning cucumber too
<brownies>
i've been staring at the docs for the past day or so, want to start writing tests today
mattyohe [mattyohe!~mattyohe@2620:0:e50:3011:e808:9755:1b11:d7ef] has joined #ruby
<brownies>
hence my issue, because i ran "cucumber" and "bundle exec cucumber" is a lot more typing.
jcblitz [jcblitz!~jared@c-68-63-145-109.hsd1.pa.comcast.net] has joined #ruby
<jcblitz>
Can anyone recommend an easy to understand document on Ruby modules? I want to create a class named "Set" and I know that already exists
<samuelkadolph>
jcblitz: You can't. You can create a Set class inside of a module/class. like class Foo::Set; end
<jcblitz>
thanks guys
amacgregor_osx [amacgregor_osx!~amacgrego@CPE00222dcb0a53-CM00222dcb0a4f.cpe.net.cable.rogers.com] has joined #ruby
tectonic [tectonic!~tectonic@pool-72-78-244-216.phlapa.fios.verizon.net] has joined #ruby
Rod_ [Rod_!~Rod@c-71-205-48-69.hsd1.mi.comcast.net] has joined #ruby
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
j3r0m3 [j3r0m3!~j3r0m3@c-98-244-29-249.hsd1.ca.comcast.net] has joined #ruby
SterNiX [SterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
ryh [ryh!~ryh@216.228.48.198] has joined #ruby
colint [colint!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
straind [straind!~stupidper@n127s244.bbr1.shentel.net] has joined #ruby
lewis1711 [lewis1711!~lewis@121-79-208-160.dsl.sta.inspire.net.nz] has joined #ruby
<lewis1711>
is there something like RTEST in the C API, that returns a true or false rather than a Fixnum?
<banister_>
lewis1711: a Qtrue / Qfalse u mean?
<banister_>
RTEST(blah) ? Qtrue : Qfalse
<banister_>
iirc
<Azure>
What would be the best way to handle error messages that are returned by a method that would normally return strings?
<Azure>
(and have a different behavior for when the error is returned)
simonista [simonista!~simonista@c-98-202-209-65.hsd1.ut.comcast.net] has joined #ruby
jbrokc [jbrokc!~jbrokc@c-98-228-139-230.hsd1.il.comcast.net] has joined #ruby
dasfugufish [dasfugufish!~Adium@68-170-39-205.mammothnetworks.com] has joined #ruby
danblack [danblack!~dragonhea@gentoo/developer/dragonheart] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
finsdelosmundos [finsdelosmundos!~brunchole@110.64.103.97.cfl.res.rr.com] has joined #ruby
kennethreitz [kennethreitz!~kennethre@c-24-127-96-129.hsd1.va.comcast.net] has joined #ruby
<jbrokc>
hi - i'm curious how i'd implement something with dir.glob between a regexp and a filepath. that is, i want to load everything in the javascripts directory except for 'foo.js', so `Dir.glob('javascript/[^foo].js').each { |f| puts f }` doesn't work :(
<jbrokc>
nevermind
Tick-Tock [Tick-Tock!~Tick-Tock@2607:f358:1:fed5:22:0:b683:4295] has joined #ruby
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
<wassy121_>
looks like you are missing libdb-devel ?
<finsdelosmundos>
oh
<wassy121_>
What OS are you on?
<wassy121_>
(ubuntu, RedHat?)
<finsdelosmundos>
linux64bit
<finsdelosmundos>
oh archlinux
<wassy121_>
umm, I think that is yum/RPM as the package manager. Try "yum search libdb-devel"
j3r0m3 [j3r0m3!~j3r0m3@c-76-105-54-37.hsd1.ca.comcast.net] has joined #ruby
<wassy121_>
it might be libdb4-devel , or maybe just db4-devel, or db4-dev.
<wassy121_>
Something like that. I don't know arch too well.
<finsdelosmundos>
i'll look through the repo for it
<samuelkadolph>
jbrokc: Dir.glob is not a regexp, it's using fnmatch which is the same kind of globbing that a shell could use.
SterNiX [SterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
lewis1711 [lewis1711!~lewis@121-79-208-160.dsl.sta.inspire.net.nz] has quit ["Leaving."]
dasfugufish [dasfugufish!~Adium@68-170-39-205.mammothnetworks.com] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
me345 [me345!~me345@75.15.180.69] has joined #ruby
abstrusenick [abstrusenick!~abstrusen@bb220-255-36-18.singnet.com.sg] has joined #ruby
zulax [zulax!~radarwork@99-120-232-161.lightspeed.iplsin.sbcglobal.net] has joined #ruby
<jbrokc>
is there a way to push a string into a new array in one line? like `foo = "blah blah".something # => ["blah blah"]` ?
<wassy121_>
foo = "blah blah".to_a
<wassy121_>
like that?
<jbrokc>
sure
<wassy121_>
Nope
<danblack>
foo = ['blah blah']
<jbrokc>
i tried foo.split('[^a-zA-Z0-9.]*')
<jbrokc>
which works...
<mattyohe>
why wouldn't what danblack said work, jbrokc?
<samuelkadolph>
He probably wants ["blah", "blah"] which you can get with split(" ")
<samuelkadolph>
s/wants/meant/
j3r0m3 [j3r0m3!~j3r0m3@c-76-105-54-37.hsd1.ca.comcast.net] has joined #ruby
* danblack
shrug - who know :)
robert_ [robert_!~hellspawn@objectx/robert] has joined #ruby
<finsdelosmundos>
wassy121: I have db installed, but it is still giving me the error
ryanf [ryanf!~revfitz@50.0.160.40] has joined #ruby
jwmann [jwmann!~Adium@modemcable242.110-201-24.mc.videotron.ca] has joined #ruby
SterNiX [SterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
BrianJ [BrianJ!~textual@pool-108-18-204-94.washdc.fios.verizon.net] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
a|i [a|i!~ali@unaffiliated/ai/x-9091534] has joined #ruby
<a|i>
how is it possible to have a git submdule in a ruby gem?
silky [silky!~silky@pool-74-108-142-22.nycmny.fios.verizon.net] has joined #ruby
ziggles [ziggles!~ziggles@c-24-6-247-92.hsd1.ca.comcast.net] has joined #ruby
mensch [mensch!~mensch@c-174-62-210-182.hsd1.ma.comcast.net] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has quit [#ruby]
<pHcF>
i have a string that is being created using ["a string"].pack('H*'), then, I try to convert it to UTF-8 using Encoding::Converter, but I get the error "\x9D" on UTF-8 (Encoding::InvalidByteSequenceError). how can i fix that and not changing the value "a string" nor the final result?
<Axsuul>
In Rails, for the config, a config object seems to be available from the "config" variable in a block, yet it's not a piped local variable. How do they achieve this? http://codepad.org/UxgKWuqR
<samuelkadolph>
pHcF: Why are you trying to convert a binary string into an UTF8 one?
<pHcF>
TCP sockets
<pHcF>
with binary data :/
<samuelkadolph>
That makes no sense
<samuelkadolph>
The point of pack is to convert data types into a binary stream to send to a socket
<samuelkadolph>
Not to convert the binary data into a UTF-8 string when it may or may not be valid
<pHcF>
sorry
<pHcF>
I'm converting UTF-8 to binary.
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
<a|i>
a|i: how is it possible to have a git submdule in a ruby gem?
<a|i>
anyone?
<a|i>
the git submodule is not automatically created, when the gem is installed.
<a|i>
how to handle this?
<Axsuul>
Is there a way to pass variables into a block from yield, but not have to put it between |pipe|
<a|i>
hmm, :submodules => true.
<samuelkadolph>
pHcF: You can send UTF-8 over a socket
<pHcF>
well, the thing is a bit more complex
<pHcF>
i'm dealing with apple's siri (from iPhone 4s) proxy
<pHcF>
and i'm trying to change the audio that that is being sent in the socket
dasfugufish [dasfugufish!~Adium@68-170-39-205.mammothnetworks.com] has joined #ruby
kennethreitz [kennethreitz!~kennethre@c-24-127-96-129.hsd1.va.comcast.net] has joined #ruby
<pHcF>
the problem is that the socket only accepts binary data
<pHcF>
and I'm trying to convert all the data to binary
<samuelkadolph>
UTF-8 is binary data
<samuelkadolph>
It's how you read it that makes it binary
<samuelkadolph>
☃ is just \xE2\x98\x83
<samuelkadolph>
If you read that as ASCII, it's just garbage (\xE2\x98\x83) but if you read it as UTF-8 it's a snowman
humanpipecleaner [humanpipecleaner!~chatzilla@ip68-227-12-51.lv.lv.cox.net] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
<mattyohe>
☕
igotnolegs [igotnolegs!~igotnoleg@75-162-83-166.slkc.qwest.net] has joined #ruby
xatltb [xatltb!~me345@adsl-75-15-180-69.dsl.bkfd14.sbcglobal.net] has joined #ruby
<pHcF>
hmm botcha
<pHcF>
gotcha
<samuelkadolph>
And if ruby gives you conversion problems, you can just send "☕".bytes.to_a.pack("C*")
Dreamer3 [Dreamer3!~Dreamer3@74-134-34-116.dhcp.insightbb.com] has joined #ruby
MUILTR [MUILTR!~MLINTH@adsl-98-80-201-18.mcn.bellsouth.net] has joined #ruby
muse [muse!~musee@unaffiliated/musee] has joined #ruby
rickmasta [rickmasta!~rickmasta@pool-108-21-213-102.nycmny.fios.verizon.net] has joined #ruby
Manhose_ [Manhose_!~Manhose@bl17-17-151.dsl.telepac.pt] has joined #ruby
x0F_ [x0F_!~x0F@unaffiliated/x0f] has joined #ruby
humanpipecleaner [humanpipecleaner!~chatzilla@ip68-227-12-51.lv.lv.cox.net] has joined #ruby
banisterfiend [banisterfiend!~baniseter@115.189.226.29] has joined #ruby
Crisco [Crisco!~Crisco@208-45-119-82.bois.qwest.net] has joined #ruby
MissionCritical [MissionCritical!~MissionCr@unaffiliated/missioncritical] has joined #ruby
radic [radic!~radic@dslb-094-216-224-225.pools.arcor-ip.net] has joined #ruby
banisterfiend [banisterfiend!~baniseter@115.189.226.29] has joined #ruby
jasdeepjaitla [jasdeepjaitla!~jasdeepja@c-98-207-73-250.hsd1.ca.comcast.net] has joined #ruby
rickmasta [rickmasta!~rickmasta@pool-108-21-213-102.nycmny.fios.verizon.net] has joined #ruby
<rippa>
>we can include a class into another class
<rippa>
yo dawg
<banisterfiend>
rippa: softly speak to me in cyrillic about the trials and tribulations of life in modern day russia
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
pinage_dodo_fail [pinage_dodo_fail!~pinage404@APuteaux-651-1-53-20.w81-249.abo.wanadoo.fr] has joined #ruby
andrewhl [andrewhl!~andrew@CPE687f7402a2d8-CM00195ed25a2a.cpe.net.cable.rogers.com] has joined #ruby
kingfishr [kingfishr!~caleb@c-98-207-87-183.hsd1.ca.comcast.net] has joined #ruby
pen [pen!~pen@140.112.30.137] has joined #ruby
<savage->
RORgasm: here's one way to take a class and turn it into a module that you can then extend/include, although it does assume a couple things: https://gist.github.com/1538187
<RORgasm>
savage-: wow...hmm ... let me try that
<savage->
banisterfiend: btw, when you simple do something like this: module Foo; include Blah; end - are the wrapper/proxy classes created at that moment or only when Foo is included in a class?
apok [apok!~apok@96.24.67.22] has joined #ruby
<banisterfiend>
savage-: the wrapper for Blah is created at that point in Foo's ancestor chain
<banisterfiend>
savage-: and when Foo is included a wrapper is created for Foo too, as well as a new one for Blah
<savage->
banisterfiend: gotcha, but then that hierarchy is duplicated once Foo gets included in another class, right? since hierarchies aren't shared?
stringoO [stringoO!~JLstring@CPE001346cbe31b-CM00111ae502a8.cpe.net.cable.rogers.com] has joined #ruby
Cerales [Cerales!0ec89ef7@gateway/web/freenode/ip.14.200.158.247] has joined #ruby
<savage->
perfect
<savage->
gracias, amigo mío.
<Cerales>
I'm wondering if someone can help me with a weird problem I'm having with RSpec and Rack::Test - doing _get '/'_ with rack:test, or _visit '/'_ with capybara, and then trying to look at last_response, outputs an endless loop of the response followed by a 'stack level too deep' error
<Cerales>
i'm using ruby 1.9.1 and rack-test 0.6.1
warmwaffles [warmwaffles!~warmwaffl@96.8.140.95] has quit [#ruby]
<banisterfiend>
savage-: those methods (in your gist) wont be able to set state though
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
SterNiX [SterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
<banisterfiend>
let me have a play
<savage->
:-)
<savage->
but honestly I would never use this in production.
stayarrr [stayarrr!~olivererx@dslb-178-009-059-241.pools.arcor-ip.net] has joined #ruby
<savage->
/cc RORgasm
<banisterfiend>
savage-: that's cos it's calling 'x' on the Foo object
<banisterfiend>
not on the obj object
<banisterfiend>
check the ivars on obj, and it doesnt have an @x
<savage->
hmmm
<savage->
ah yes, you're right!
<savage->
so doing &original_method created a proc whose binding for 'self' was the Foo.new instance :)
<savage->
clever!
wedtm [wedtm!~wedtm@173-12-163-78-oregon.hfc.comcastbusiness.net] has joined #ruby
<banisterfiend>
Yeah
<banisterfiend>
it just wraps it in a proc
<banisterfiend>
but the method object is the same
jay_zawrotny [jay_zawrotny!~Jay@c-68-43-28-43.hsd1.mi.comcast.net] has joined #ruby
<banisterfiend>
the underlying 'self' of the method object*
<savage->
p original_method.to_proc.binding.eval('self')
<savage->
that is just the bound method object.
<savage->
gotcha
<savage->
I'm deleting the gist now. :)
<savage->
gone
<RORgasm>
savage-: yeah...i'm thinking of something else...think i almost have a solution :)
<savage->
RORgasm: cool! do share.
<RORgasm>
savage-: i will once i get it working...but its specific to my problem
<RORgasm>
ah
<RORgasm>
what the hell i'll tell u guys
<RORgasm>
:0
<RORgasm>
:)
<RORgasm>
anyone use Kaminari in here?
<RORgasm>
its a rails pagination gem
<RORgasm>
well
<RORgasm>
i added MongoMapper support to it early in the year
<RORgasm>
a few months ago someone added pagination support for embedded documents
<RORgasm>
for mongoid
<RORgasm>
and i was going to do the same for the mongomapper engine
djdb [djdb!~digitalbo@linux.minsk.tutby.com] has joined #ruby
<RORgasm>
so home for the holidays and thought i should finally get aroudn to it
<RORgasm>
anyways...i will ping u guys once i make some progress :)
<savage->
cool
Norrin [Norrin!~Norrin@c-67-160-193-132.hsd1.ca.comcast.net] has joined #ruby
<banisterfiend>
RORgasm: why dont you just use the strategy pattern
<RORgasm>
banisterfiend: not sure i know what u mean?
<banisterfiend>
RORgasm: many homies are against inheritance anyway, strategy pattern is alternative to inheritance it's pretty much just delegation
<RORgasm>
banisterfiend: examples? links?
<banisterfiend>
RORgasm: it's OOP 101
<banisterfiend>
you'll find a tonne of stuff if you just google for delegation/composition/strategy pattern
<RORgasm>
hmm
<RORgasm>
banisterfiend: the thing is
<RORgasm>
what i'm trying to do is this
<RORgasm>
Kaminari already has a PaginatableArray class
<RORgasm>
which can turn any array into a paginatable object
<RORgasm>
basically it just makes sure that some methods for paignation are available
<banisterfiend>
ok
<RORgasm>
what i'm trying to make sure is that the MongoMapper association for embedded documents essentially returns a paginatable array if Kaminari is cinulcuded
<RORgasm>
included
<RORgasm>
now if PaginatableArray was a module i could just make EmbeddedDocument module include PaginatableArray
<RORgasm>
but its not a module :)
<RORgasm>
its a class
ryanf [ryanf!~revfitz@adsl-71-141-89-169.dsl.snfc21.sbcglobal.net] has joined #ruby
t-mart [t-mart!~t-mart@c-174-49-68-22.hsd1.ga.comcast.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
otters [otters!~Adium@208.102.195.210] has quit [#ruby]
smgt [smgt!~simon@mmx.flattr.net] has joined #ruby
xpot [xpot!~xpot@166-70-100-198.ip.xmission.com] has joined #ruby
mafolz [mafolz!~mafolz@dhcp50-210.start.uni-saarland.de] has joined #ruby
pen [pen!~pen@140.112.30.137] has joined #ruby
pinage404 [pinage404!~pinage404@APuteaux-651-1-53-20.w81-249.abo.wanadoo.fr] has joined #ruby
robertjpayne [robertjpayne!~robertjpa@122.58.169.214] has joined #ruby
<robertjpayne>
Is there any way to debug why $POSTMATCH might be nil after a successful matching?
jbhewitt [jbhewitt!~jbhewitt@c122-108-214-224.rochd4.qld.optusnet.com.au] has joined #ruby
thone_ [thone_!~thone@g230185238.adsl.alicedsl.de] has joined #ruby
<rippa>
robertjpayne: use $'
d3c [d3c!~d3c@4406ds2-abc.0.fullrate.dk] has joined #ruby
cjs [cjs!~cjs@41.98.156.220.st.bbexcite.jp] has joined #ruby
<robertjpayne>
rippa: No luck, is there anything wrong with this extremely simple example? http://pastie.org/3094543
pen [pen!~pen@2001:288:1001:28:25af:e6ea:f760:9578] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
<cjs>
Anybody here know much about minitest? I've got custom code to run Test::Unit tests that I'd like to convert to use minitest instead, but I'm having difficulty building a minitest suite from my existing TestCases/Suites.
<cjs>
I'll also happily accept hints on where else I should be looking for help.
<sj26>
robertjpayne: puts $' if "Hello World" =~ /(Hello)/
<sj26>
this works fine
<robertjpayne>
sj26: ahh missed the '
pinage404 [pinage404!~pinage404@APuteaux-651-1-53-20.w81-249.abo.wanadoo.fr] has joined #ruby
<robertjpayne>
Is $POSTMATCH deprecated? I've been referencing some other ruby code just wondering why it doesn't work
<sj26>
robertjpayne: no, if you want to use the more verbose variables like $POSTMATCH then require "english"
fungoat [fungoat!~fungoat@184.91.163.230] has joined #ruby
<robertjpayne>
sj26: thanks :)
Cervajz [Cervajz!~Cervajz@opensuse/member/Cervajz] has joined #ruby
gonglexin [gonglexin!~gonglexin@58.20.54.14] has joined #ruby
gonglexin [gonglexin!~gonglexin@58.20.54.14] has quit [#ruby]
TheTFEF [TheTFEF!~JS@cpe-173-88-110-115.columbus.res.rr.com] has joined #ruby
Norrin [Norrin!~Norrin@c-67-160-193-132.hsd1.ca.comcast.net] has joined #ruby
<cjs>
Hm, so I'm thinking I may have to write my own Suite class to aggregate my test suites?
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
thecreators [thecreators!~rskagy@cpe-65-27-201-203.cinci.res.rr.com] has joined #ruby
shevy [shevy!~shevy@188-23-93-216.adsl.highway.telekom.at] has joined #ruby
josefig [josefig!~josefig@unaffiliated/josefig] has joined #ruby
Norrin [Norrin!~Norrin@c-67-160-193-132.hsd1.ca.comcast.net] has joined #ruby
SterNiX [SterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
kivi [kivi!~joni@ec2-79-125-13-112.eu-west-1.compute.amazonaws.com] has joined #ruby
<kivi>
what means "i" at regexp /foo/i
<v2px>
case insensitive
maquis [maquis!~maquis@c-67-168-18-46.hsd1.wa.comcast.net] has quit [#ruby]
jmuniz_ [jmuniz_!~jmuniz@pool-74-101-88-129.nycmny.east.verizon.net] has joined #ruby
Norrin [Norrin!~Norrin@c-67-160-193-132.hsd1.ca.comcast.net] has joined #ruby
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
pi3r [pi3r!~pi3r@LSt-Amand-152-32-39-189.w80-11.abo.wanadoo.fr] has joined #ruby
stoffus [stoffus!~stoffus@c-440fe353.016-150-7570701.cust.bredbandsbolaget.se] has joined #ruby
aetaric [aetaric!~aetaric@74-130-83-237.dhcp.insightbb.com] has joined #ruby
otakutomo [otakutomo!~otakutomo@zaq771a4b1b.zaq.ne.jp] has joined #ruby
jbpros [jbpros!~jbpros@199-177-112-217.dyn.adsl.belcenter.be] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
jamiemill [jamiemill!~jamiemill@78-86-4-116.zone2.bethere.co.uk] has joined #ruby
cachemoney [cachemoney!~cachemone@71-94-132-42.static.mtpk.ca.charter.com] has joined #ruby
Tachyon [Tachyon!~tach@81.200.61.23] has joined #ruby
chrismcg [chrismcg!~chrismcg@pdpc/supporter/active/chrismcg] has joined #ruby
jetblack [jetblack!~jetblack@99-32-20-118.uvs.evtnil.sbcglobal.net] has joined #ruby
muse [muse!~musee@unaffiliated/musee] has joined #ruby
Cerales [Cerales!0ec89ef7@gateway/web/freenode/ip.14.200.158.247] has joined #ruby
eldariof [eldariof!~CLD@81.200.24.167] has joined #ruby
<Cerales>
Does anyone have experience with an error in RSpec where a "`method_missing': wrong number of arguments (1 for 2) (ArgumentError)" error arises inside the rspec/core/metadata.rb file?
<Cerales>
I'm just trying to do the simplest of assertions on an array - ary.length.should_not eql 0
vk [vk!~victor@122.167.215.163] has joined #ruby
carbncl [carbncl!~carbncl@bne75-3-82-225-142-80.fbx.proxad.net] has joined #ruby
banister_ [banister_!~baniseter@122.63.253.81] has joined #ruby
johanhsfy [johanhsfy!~johan@164.247.241.83.in-addr.dgcsystems.net] has joined #ruby
Spockz` [Spockz`!~Spockz@21pc198.sshunet.nl] has joined #ruby
<robertjpayne>
Is there any good reads about creating custom hashes for object equality? Or is it just easiest to add the hashes of attributes?
banisterfiend [banisterfiend!~baniseter@115.189.60.31] has joined #ruby
drith [drith!~deyan@62.73.95.46] has joined #ruby
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby
james_cotterill [james_cotterill!~james_cot@89.238.149.34] has joined #ruby
<CodeZombie>
recieving base64 encrypted data from a java server... I've decrypted, and decoded it, but response are coming out in this format "T\x00R\x00U\x00E\x00", if I run puts response, the format is fine.
<CodeZombie>
any hints would be awesome
Cervajz [Cervajz!~Cervajz@opensuse/member/Cervajz] has joined #ruby
azbarcea_ [azbarcea_!~quassel@79.114.112.126] has joined #ruby
Jackneill [Jackneill!~Jackneill@82.131.231.204.pool.invitel.hu] has joined #ruby
Jackneill [Jackneill!~Jackneill@unaffiliated/jackneill] has joined #ruby
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
yxhuvud [yxhuvud!mongo@h-17-181.a149.priv.bahnhof.se] has joined #ruby
<mlue>
does anyone know a way to emulate the javascript behavior or giving a declared method of an object the scope of the surrounding code
<mlue>
I see articles hinting at it but I can't get it to work
hukl [hukl!~hukl@91-65-135-174-dynip.superkabel.de] has joined #ruby
hukl [hukl!~hukl@pdpc/supporter/professional/hukl] has joined #ruby
Cervajz [Cervajz!~Cervajz@opensuse/member/Cervajz] has joined #ruby
<ryanf>
mlue: can you give a bit more context? (gist maybe?)
<ryanf>
it sounds like you might want define_method
<ryanf>
that lets you create methods that close over the local environment of the definition
Ammar01 [Ammar01!~hassaa10@gatej.mh.bbc.co.uk] has joined #ruby
ryh [ryh!~ryh@216.228.48.198] has joined #ruby
Schmidt [Schmidt!~lsc@h-79-136-103-158.na.cust.bahnhof.se] has joined #ruby
jbhewitt [jbhewitt!~jbhewitt@c122-108-214-224.rochd4.qld.optusnet.com.au] has joined #ruby
hiroshi [hiroshi!~hiroshi@123.230.25.89.er.eaccess.ne.jp] has joined #ruby
becom33 [becom33!~becom33@112.135.229.58] has joined #ruby
<becom33>
how can I make my script identify keystrokes I type?
<mlue>
sorry ryanf, went away for a bit. Yeah, that is exactly what I'm looking for, but define_method didn't seem to nail it. I can't help but wonder if it is working and I'm just doing something else wrong.
<becom33>
like when I press up arrow key
<CodeZombie>
stupid encoding issues, I should've probably waited to start drinking
Jonah11_ [Jonah11_!~Jonah@173-30-163-4.client.mchsi.com] has joined #ruby
<Boohbah>
!encoding
eeadc [eeadc!fritz@2a01:4f8:101:2a3:0:bc28:b2a8:4] has joined #ruby
banisterfiend [banisterfiend!~baniseter@122.63.231.172] has joined #ruby
<CodeZombie>
Boohbah: was that supposed to give a link?
stringoO [stringoO!~JLstring@CPE001346cbe31b-CM00111ae502a8.cpe.net.cable.rogers.com] has joined #ruby
jarjar_prime [jarjar_prime!~mjarjoura@50-76-61-133-ip-static.hfc.comcastbusiness.net] has joined #ruby
[RHQme]stringo0 [[RHQme]stringo0!~JLstring@CPE001346cbe31b-CM00111ae502a8.cpe.net.cable.rogers.com] has joined #ruby
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
Mahoek [Mahoek!~Mahoek@ip51ceb6d4.adsl-surfen.hetnet.nl] has joined #ruby
<Boohbah>
CodeZombie: it does in another channel :)
<CodeZombie>
I've looked at the encoding docs. The original issue I had was the java server side required UTF-16LE, that works fine now.. but decrypting returns that encoding.
<CodeZombie>
I've probably been looking at the issue too much
<banisterfiend>
instance_eval in ruby can be pretty confusing
<banisterfiend>
i think instance_eval is a bad idea actually, there should simply be object_eval (equivalent to class_eval) and meta_eval instead
gregorg [gregorg!~Greg@unaffiliated/gregorg] has joined #ruby
<banisterfiend>
that would be more consistent too IMO
<banisterfiend>
do my homies on my left agree with me
<Boohbah>
\o
benlangfeld [benlangfeld!~ben@unaffiliated/benlangfeld] has joined #ruby
chrismcg_ [chrismcg_!~chrismcg@pdpc/supporter/active/chrismcg] has joined #ruby
rpowell [rpowell!~rpowell@CPE-58-164-72-158.lns1.ken.bigpond.net.au] has joined #ruby
marcol [marcol!~marcol@adsl-ull-47-223.50-151.net24.it] has joined #ruby
fatnic388 [fatnic388!~fatnic388@027c5fd6.bb.sky.com] has joined #ruby
<tommylommykins>
hmm
* tommylommykins
has a memory leak
<tommylommykins>
What's the best way to go about attacking it
<yxhuvud>
plug it!
<yxhuvud>
not enough information given, really.
<tommylommykins>
tbh, I've never really experienced a memory leak before
<tommylommykins>
Although I do believe I have a (reasonable) understanding oh how GC works
james_co_ [james_co_!~james_cot@89.238.149.34] has joined #ruby
<tommylommykins>
I can't see what's not going out of scope
tvo [tvo!~tvo@katapult/developer/tvo] has joined #ruby
abstrusenick [abstrusenick!~abstrusen@bb220-255-36-18.singnet.com.sg] has joined #ruby
bluOxigen [bluOxigen!ssf@unaffiliated/bluOxigen] has joined #ruby
samxor [samxor!samxor@70.32.34.103] has joined #ruby
marcol [marcol!~marcol@adsl-ull-47-223.50-151.net24.it] has joined #ruby
gregorg_taf [gregorg_taf!~Greg@78.155.152.6] has joined #ruby
cachemoney [cachemoney!~cachemone@71-94-132-42.static.mtpk.ca.charter.com] has joined #ruby
cachemoney [cachemoney!~cachemone@71-94-132-42.static.mtpk.ca.charter.com] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@2001:5c0:1000:a::7ed] has joined #ruby
humanpipecleaner [humanpipecleaner!~chatzilla@ip68-227-12-51.lv.lv.cox.net] has joined #ruby
cpruitt [cpruitt!~cpruitt@190-186.126-70.tampabay.res.rr.com] has joined #ruby
dekroning [dekroning!~dekroning@541B931D.cm-5-4c.dynamic.ziggo.nl] has joined #ruby
kakashi_ [kakashi_!~kakashi_@nltk/kakashi] has joined #ruby
raffivar [raffivar!raffivar@93-173-180-61.bb.netvision.net.il] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
carbncl [carbncl!~carbncl@bne75-3-82-225-142-80.fbx.proxad.net] has joined #ruby
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby
james_cotterill [james_cotterill!~james_cot@host86-174-252-14.range86-174.btcentralplus.com] has joined #ruby
pencilcheck [pencilcheck!~pen@140.112.30.137] has joined #ruby
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.44] has joined #ruby
james_cotterill [james_cotterill!~james_cot@89.238.149.34] has joined #ruby
_root_ [_root_!~Scalable@li252-14.members.linode.com] has joined #ruby
berserkr [berserkr!~david@212.122.111.205.dyn.user.ono.com] has joined #ruby
netytan [netytan!~netytan@83-244-220-243.cust-83.exponential-e.net] has joined #ruby
paissad [paissad!~paissad@89-92-16-151.hfc.dyn.abo.bbox.fr] has joined #ruby
ikaros [ikaros!~ikaros@dslb-188-107-221-154.pools.arcor-ip.net] has joined #ruby
root_____ [root_____!~root@li390-130.members.linode.com] has joined #ruby
fatnic388 [fatnic388!~fatnic388@027c5fd6.bb.sky.com] has joined #ruby
danblack [danblack!~dragonhea@gentoo/developer/dragonheart] has joined #ruby
Dreamer3 [Dreamer3!~Dreamer3@74-134-34-116.dhcp.insightbb.com] has joined #ruby
_raffivar_ [_raffivar_!~raffivar@77.125.244.236] has joined #ruby
abstrusenick [abstrusenick!~abstrusen@bb220-255-36-18.singnet.com.sg] has joined #ruby
tilde` [tilde`!~tilde@adsl-ull-177-209.42-151.net24.it] has joined #ruby
<_raffivar_>
hello
_root_ [_root_!~Scalable@li252-14.members.linode.com] has joined #ruby
dbgster [dbgster!~dbgster@CPE0013f7b7170c-CM0013f7b71708.cpe.net.cable.rogers.com] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
vitoravelino [vitoravelino!~rockhampt@unaffiliated/vtr] has joined #ruby
dr_bob [dr_bob!~dr_bob@p549E7E45.dip.t-dialin.net] has joined #ruby
xpot [xpot!~xpot@166-70-100-198.ip.xmission.com] has joined #ruby
albedoa [albedoa!~albedoa@ip68-108-106-30.lv.lv.cox.net] has joined #ruby
dql [dql!~dql@58.38.82.18] has joined #ruby
cousine [cousine!~cousine@196.221.242.180] has joined #ruby
rippa [rippa!~rippa@109-161-78-129.pppoe.yaroslavl.ru] has joined #ruby
Beoran [Beoran!~beoran@ip-213-49-93-21.dsl.scarlet.be] has joined #ruby
jbpros [jbpros!~jbpros@199-177-112-217.dyn.adsl.belcenter.be] has joined #ruby
mcpierce [mcpierce!~mcpierce@99-178-171-244.lightspeed.rlghnc.sbcglobal.net] has joined #ruby
nanderoo [nanderoo!~nanders@38.124.137.226] has joined #ruby
vitoravelino [vitoravelino!~rockhampt@unaffiliated/vtr] has joined #ruby
kirun [kirun!~kirun@78-86-154-194.zone2.bethere.co.uk] has joined #ruby
`brendan [`brendan!~b@66-208-246-34-ubr02b-waldlk01-mi.hfc.comcastbusiness.net] has joined #ruby
_root_ [_root_!~Scalable@li252-14.members.linode.com] has joined #ruby
Martiini [Martiini!~martin@88-196-141-145-dsl.rpl.estpak.ee] has joined #ruby
<`brendan>
morning all
ryh [ryh!~ryh@216.228.48.198] has joined #ruby
Guest2147 [Guest2147!~affix@184.164.138.250] has joined #ruby
pen [pen!~pen@140.112.30.137] has joined #ruby
Manhose [Manhose!~Manhose@bl17-17-151.dsl.telepac.pt] has joined #ruby
Affix [Affix!~affix@fedora/Affix] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
tommyvyo [tommyvyo!~tommyvyo@38.123.129.115] has joined #ruby
Lord-Harlot [Lord-Harlot!~Serenity@adsl-87-102-40-242.karoo.KCOM.COM] has joined #ruby
Drakx [Drakx!~dunno@madeofcode.jonnymoe.co.uk] has joined #ruby
<ebeard>
mornin
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
v0n [v0n!~v4n@bas1-montreal19-1177820429.dsl.bell.ca] has joined #ruby
cpruitt [cpruitt!~cpruitt@190-186.126-70.tampabay.res.rr.com] has joined #ruby
moshee [moshee!~moshee@unaffiliated/moshee] has joined #ruby
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby
<krz>
I've got the following string: 'foo_bar_27' how do i return foo_bar?
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
<krz>
the string can also look like: 'foo_bar_foo_27' which should return foo_bar_foo
<krz>
27 can be any number
<rippa>
krz: string.match(/(.*)_\d+/)[0]
<krz>
thanks rippa is there any way without using regex? just curious
<rippa>
[1]
<rippa>
I mean
<rippa>
why without regex?
<rippa>
that's what it's for
<krz>
ok thats fine then
<krz>
thanks again
jwmann [jwmann!~Adium@modemcable242.110-201-24.mc.videotron.ca] has joined #ruby
enrox-the-kid [enrox-the-kid!~enroxorz@65-117-22-130.dia.static.qwest.net] has joined #ruby
enroxorz [enroxorz!~enroxorz@unaffiliated/enroxorz] has joined #ruby
ezkl [ezkl!ezkl@ezkl.net] has joined #ruby
yfeldblum [yfeldblum!~Jay@pool-71-246-76-76.bltmmd.east.verizon.net] has joined #ruby
humanpipecleaner [humanpipecleaner!~chatzilla@ip68-227-12-51.lv.lv.cox.net] has joined #ruby
Drakx [Drakx!~dunno@unaffiliated/drakx] has joined #ruby
evantravers [evantravers!~textual@fw.luckie.net] has joined #ruby
magistr [magistr!~magistr@89.189.172.24] has joined #ruby
j3r0m3 [j3r0m3!~j3r0m3@c-76-105-54-37.hsd1.ca.comcast.net] has joined #ruby
_root_ [_root_!~Scalable@li252-14.members.linode.com] has joined #ruby
jamiemill [jamiemill!~jamiemill@78-86-4-116.zone2.bethere.co.uk] has joined #ruby
devdazed [devdazed!~russ_nyc@static-96-239-59-191.nycmny.fios.verizon.net] has joined #ruby
tilde` [tilde`!~tilde@adsl-ull-177-209.42-151.net24.it] has joined #ruby
goodieboy [goodieboy!~goodieboy@c-68-57-35-79.hsd1.va.comcast.net] has joined #ruby
sandelius [sandelius!~textual@90-231-202-62-no214.tbcn.telia.com] has joined #ruby
Yingjie_Cui [Yingjie_Cui!~chatzilla@124.126.191.188] has joined #ruby
Sailias [Sailias!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby
vraa [vraa!~vraa@h188.182.213.151.dynamic.ip.windstream.net] has joined #ruby
philcrissman [philcrissman!~philcriss@206.57.45.116] has joined #ruby
tomzx [tomzx!~tomzx@dsl-132-26.aei.ca] has joined #ruby
fixl [fixl!~fixl@124-170-40-48.dyn.iinet.net.au] has joined #ruby
TaTonka [TaTonka!~TaTonka@ip-178-201-72-32.unitymediagroup.de] has joined #ruby
evantravers [evantravers!~textual@fw.luckie.net] has joined #ruby
confounds [confounds!~confounds@CPE78cd8e667600-CM78cd8e6675fd.cpe.net.cable.rogers.com] has joined #ruby
goodieboy [goodieboy!~goodieboy@c-68-57-35-79.hsd1.va.comcast.net] has joined #ruby
Manhose_ [Manhose_!~Manhose@bl17-17-151.dsl.telepac.pt] has joined #ruby
Manhose__ [Manhose__!~Manhose@bl17-17-151.dsl.telepac.pt] has joined #ruby
<dr_bob>
kzr: s[/\A(.*)_\d+\z/, 1]
<dr_bob>
the regexp that rippa posted is not anchored. But you need to anchor to get the proper results
<dr_bob>
err, krz that should be
_srp [_srp!~quassel@115.99.249.152] has joined #ruby
Marco [Marco!~marco@c-98-254-52-240.hsd1.fl.comcast.net] has joined #ruby
zulax [zulax!~radarwork@99-120-232-161.lightspeed.iplsin.sbcglobal.net] has joined #ruby
jbpros [jbpros!~jbpros@199-177-112-217.dyn.adsl.belcenter.be] has joined #ruby
esparkman [esparkman!~esparkman@unaffiliated/esparkman] has joined #ruby
Rious [Rious!~Rious@ec2-50-17-240-121.compute-1.amazonaws.com] has joined #ruby
BrianJ [BrianJ!~textual@pool-108-18-204-94.washdc.fios.verizon.net] has joined #ruby
heeton [heeton!~alexheato@mail.bournston.co.uk] has joined #ruby
chrismcg [chrismcg!~chrismcg@pdpc/supporter/active/chrismcg] has joined #ruby
v0n [v0n!~v4n@2607:fad8:4:0:21e:8cff:fe4d:2f7d] has joined #ruby
frogstarr78 [frogstarr78!~frogstarr@lan.viviotech.net] has joined #ruby
andrewhl [andrewhl!~andrew@CPE687f7402a2d8-CM00195ed25a2a.cpe.net.cable.rogers.com] has joined #ruby
otters [otters!~Adium@208.102.195.210] has joined #ruby
otters [otters!~Adium@208.102.195.210] has quit [#ruby]
jwmann [jwmann!~Adium@modemcable242.110-201-24.mc.videotron.ca] has joined #ruby
_root_ [_root_!~Scalable@li252-14.members.linode.com] has joined #ruby
SterNiX [SterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
Jake232 [Jake232!~textual@5e04eaa6.bb.sky.com] has joined #ruby
kennethreitz [kennethreitz!~kennethre@c-24-127-96-129.hsd1.va.comcast.net] has joined #ruby
hukl [hukl!~hukl@pdpc/supporter/professional/hukl] has joined #ruby
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has joined #ruby
jwmann [jwmann!~Adium@modemcable242.110-201-24.mc.videotron.ca] has joined #ruby
bnewton [bnewton!~bnewton@cpe-66-68-94-56.austin.res.rr.com] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
ben_alman [ben_alman!~cowboy@184-106-134-167.static.cloud-ips.com] has joined #ruby
arvindravi [arvindravi!~arvind@115.242.205.7] has joined #ruby
Sliker [Sliker!~ponies@31.185.36.99] has joined #ruby
abstrusenick [abstrusenick!~abstrusen@bb220-255-36-18.singnet.com.sg] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has quit [#ruby]
josefig [josefig!~josefig@unaffiliated/josefig] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
rickmasta [rickmasta!~rickmasta@pool-71-183-247-164.nycmny.fios.verizon.net] has joined #ruby
lwhalen-work [lwhalen-work!~law@63.116.56.194] has joined #ruby
kf8a [kf8a!~kf8a@user-33c730.user.msu.edu] has joined #ruby
quest88 [quest88!~quest88@adsl-75-23-35-7.dsl.lgvwtx.sbcglobal.net] has joined #ruby
<lwhalen-work>
hey all, apologies if this is the wrong channel for this, but I'm trying to install a MySQL gem (via 'gem install mysql -v 2.8.1'), and am getting a "/usr/bin/ld: cannot find -lmysqlclient" error
<lwhalen-work>
I do have the MySQL devel and mysql client packages installed
carlyle [carlyle!~carlyle@rrcs-96-10-255-203.midsouth.biz.rr.com] has joined #ruby
baroquebobcat [baroquebobcat!~nick@host-72-175-58-43.bln-mt.client.bresnan.net] has joined #ruby
arvindravi [arvindravi!~arvind@115.242.200.245] has joined #ruby
ryh [ryh!~ryh@216.228.48.198] has joined #ruby
pen [pen!~pen@g1pc2n249.g1.ntu.edu.tw] has joined #ruby
jthomas__ [jthomas__!~jthomas@c-98-222-28-137.hsd1.il.comcast.net] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
ByteCrunch [ByteCrunch!bytecrunch@ich.schepper.dich.um.auf.dem.fuse-board.de] has joined #ruby
skinnymuch [skinnymuch!~skinnymuc@static-173-61-113-6.cmdnnj.fios.verizon.net] has joined #ruby
james_cotterill [james_cotterill!~james_cot@89.238.149.34] has joined #ruby
arvindravi [arvindravi!~arvind@115.241.15.137] has joined #ruby
gheegh [gheegh!~wflanagan@pool-71-191-146-170.washdc.fios.verizon.net] has joined #ruby
<gheegh>
Hey all.. question. If I have 10 arrays ( or 100, number doesn't matter) that I need to find where there are 2 or more of something in them. Right now, I'm just iterating over all of them and putting them into a hash (essentially counting all the internal elements) to find the answer. Is there a better way?
lkba [lkba!~AndChat@aaqp107.neoplus.adsl.tpnet.pl] has joined #ruby
arvindravi [arvindravi!~arvind@115.241.5.194] has joined #ruby
<shevy>
I think a hash is the way to go
nowthatsamatt [nowthatsamatt!~nowthatsa@rrcs-71-43-23-18.se.biz.rr.com] has joined #ruby
tilde` [tilde`!~tilde@adsl-ull-177-209.42-151.net24.it] has joined #ruby
Jay_Levitt [Jay_Levitt!~Jay_Levit@home.jay.fm] has joined #ruby
<mrapple>
Hi, whenever i try to use carmen 0.2.9 I get WARNING: Invalid .gemspec format in '/Library/Ruby/Gems/1.8/specifications/carmen-0.2.9.gemspec'
<mrapple>
any ideas why?
<Jay_Levitt>
Quick poll: ___ is the superior notation to indicate return values, and all others are pretenders. (a) #=> (b) # =>
<Jay_Levitt>
mrapple: what rubygems version?
<mrapple>
1.3.6
<Jay_Levitt>
mrapple: has that gem worked before? i.e. is it possible that gem doesn't like older rubygems versions?
<mrapple>
it has worked before
<mrapple>
so i should upgrade?
<Jay_Levitt>
that's a very loaded question :)
<Jay_Levitt>
upgrading rubygems tends to be painful
* mrapple
goes for it
<Jay_Levitt>
to the point there was an entire fork of the 1.3 line
<shevy>
be a man, don't be shy, upgrade now
<Jay_Levitt>
I personally do the upgrade and bite the bullet everywhere but I'm stupid like that
hayon [hayon!~ethanhayo@static-98-109-201-82.nwrknj.fios.verizon.net] has joined #ruby
<shevy>
you are a man
<mrapple>
yikes lots of invalid things
<Jay_Levitt>
What are you, McFly, chicken?
<shevy>
we break steel walls with our heads
<mrapple>
i have a ton of invalid gemspec now...
<Jay_Levitt>
yep
<shevy>
now comes the scared-phase
<Jay_Levitt>
The good news is, most of them will be obsolete versions of gems that no longer have the problem
<mrapple>
they're all invalid date format in specification: "2011-09-02 00:00:00.000000000Z"
<Jay_Levitt>
So start with gem cleanup
enviable [enviable!~enviable@173-26-230-78.client.mchsi.com] has joined #ruby
<mrapple>
cleaned up
<Jay_Levitt>
Next try "gem pristine -all"
<mrapple>
all the errors went away
<Jay_Levitt>
oh, even better
josefig [josefig!~josefig@187.156.122.88] has joined #ruby
josefig [josefig!~josefig@unaffiliated/josefig] has joined #ruby
<mrapple>
so i don't need pristine? :P
<Jay_Levitt>
nope
<Jay_Levitt>
that was only the next step in a series of steps that are the ruby equivalent of "... What version of windows are you on? Have you tried rebooting? Try disablin your anti-virus and clearing your cache"
<mrapple>
ah
<mrapple>
im on a mac
<mrapple>
ignore that useless piece of information, missed the words "ruby equivilant" >.>
<mrapple>
thanks for the help Jay_Levitt
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
<Jay_Levitt>
I find it's always useful to ask what version of Windows people are running, even if they're having trouble with a lawnmower. Gets 'em in the tech support mindset.
RDSM_away [RDSM_away!~regismesq@187.45.255.64] has joined #ruby
th3g33k [th3g33k!~Adium@121.54.54.58] has joined #ruby
<Jay_Levitt>
Then they say "It's a John Deere", and you say "Oh, we don't support Linux."
PaciFisT [PaciFisT!~PeaCE@CPE602ad06de6b3-CM602ad06de6b0.cpe.net.cable.rogers.com] has joined #ruby
azbarcea_ [azbarcea_!~quassel@79.114.112.126] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
BrianE [BrianE!~brian@87.115.115.247] has joined #ruby
hayon [hayon!~ethanhayo@static-98-109-201-82.nwrknj.fios.verizon.net] has quit [#ruby]
smgt [smgt!~simon@76.156.216.81.static.m-dp.siw.siwnet.net] has joined #ruby
jbpros [jbpros!~jbpros@199-177-112-217.dyn.adsl.belcenter.be] has joined #ruby
kevincolyar [kevincolyar!~kevincoly@li204-166.members.linode.com] has joined #ruby
arvindravi [arvindravi!~arvind@115.242.183.154] has joined #ruby
Jonah11_ [Jonah11_!~Jonah@173-30-163-4.client.mchsi.com] has joined #ruby
<Jonah11_>
If I have a long array, and I access a portion of it like a[1000..5000], will that create a new array of 4000 elements, or will ruby just read those elements from the existing array?
<Jay_Levitt>
Not sure if it creates a new array, per se, but the elements of those arrays won't get copied
<Jay_Levitt>
so if you are wasting memory, it's only for the array object, not the element objects
<Jonah11_>
Jay_Levitt, ty, that's all i wanted to know
<any-key>
ruby doesn't really do deep copy very well
<any-key>
iirc
<Jay_Levitt>
yep
<Jay_Levitt>
blessing and curse
<any-key>
no kidding
<any-key>
you can copy but it's just shallow
<any-key>
like me :(
<Jay_Levitt>
in fact, I think the recommended way to do a deep copy is Marshal.load(Marshal.dump(object))
th3g33k1 [th3g33k1!~Adium@121.54.54.58] has joined #ruby
<Jay_Levitt>
When iterating with .each, I know "next" can skip to the next iteration; is there a way to skip to the one AFTER that?
<Jay_Levitt>
a la "next 2"
josefig [josefig!~josefig@unaffiliated/josefig] has joined #ruby
<Jonah11_>
in a similar vein if I create a range like (0..1000000).each..., will ruby allocate the memory for all the range elms, or does it know to just keep track of the start, end, and current index?
DrShoggoth [DrShoggoth!~prakwtf@68-188-73-250.static.stls.mo.charter.com] has joined #ruby
<rippa>
Jonah11_: it only will allocate full memory for an array
<rippa>
like in
<rippa>
(0..1000000).to_a
<Jonah11_>
rippa, thx
josefig_ [josefig_!~josefig@187.156.22.78] has joined #ruby
BrianE [BrianE!~brian@87.115.115.247] has joined #ruby
ziggles [ziggles!~ziggles@173-11-100-54-SFBA.hfc.comcastbusiness.net] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
bier [bier!~bier@p54A5ABAB.dip.t-dialin.net] has joined #ruby
thecreators [thecreators!~rskagy@cpe-65-27-201-203.cinci.res.rr.com] has joined #ruby
andrewhl [andrewhl!~andrew@66.78.101.2] has joined #ruby
Rod [Rod!~Rod@c-71-205-48-69.hsd1.mi.comcast.net] has joined #ruby
kenichi [kenichi!~kenichi@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
becom33 [becom33!~becom33@112.135.229.208] has joined #ruby
<centipedefarmer>
i think the "1 22" is the array [1, 22]
<centipedefarmer>
so that looks correct...
<alejandro>
yeah, now it seems to work!
youdonotexist [youdonotexist!~youdonote@c-67-166-121-94.hsd1.ut.comcast.net] has joined #ruby
AndChat| [AndChat|!~AndChat@222.153.223.45] has joined #ruby
<alejandro>
thanks!
<centipedefarmer>
np
gheegh [gheegh!~wflanagan@pool-71-191-146-170.washdc.fios.verizon.net] has quit [#ruby]
<alejandro>
though if I do a puts of the following: "\033[#{styles[style][0]}m#{str}\033[#{styles[style][1]}m"
<alejandro>
I get: [1mtest[22m
<alejandro>
But don't know if it's textmate's problem
axilla [axilla!~axilla@c-71-234-169-157.hsd1.vt.comcast.net] has joined #ruby
dootdoot [dootdoot!~dootdoot@static-50-53-52-25.bvtn.or.frontiernet.net] has joined #ruby
axilla [axilla!~axilla@c-71-234-169-157.hsd1.vt.comcast.net] has quit [#ruby]
<centipedefarmer>
probably
<centipedefarmer>
it looks like what you're asking for, except that you don't see the \033s
<alejandro>
ok, it's textmate's problem. On the terminal it works alright.
colint [colint!~ColinT@71-17-98-228.regn.hsdb.sasknet.sk.ca] has joined #ruby
<alejandro>
thanks
colint [colint!~ColinT@69.80.103.32] has joined #ruby
<Okasu>
how can i detect negative integer in array?
<Okasu>
oh, sorry
<Okasu>
brain lag
akem [akem!~akem@164.15.85.79.rev.sfr.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] 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
stringoO [stringoO!~JLstring@CPE001346cbe31b-CM00111ae502a8.cpe.net.cable.rogers.com] has joined #ruby
Cervajz_ [Cervajz_!~Cervajz@93.99.93.150] has joined #ruby
<gener1c>
lol
akem [akem!~akem@unaffiliated/akem] has joined #ruby
palcu [palcu!~alex@89.122.187.223] has joined #ruby
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
hzlocky [hzlocky!~me@dynamic-vpdn-93-125-13-64.telecom.by] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
tvw [tvw!~tv@e176011236.adsl.alicedsl.de] has joined #ruby
k_89 [k_89!~k@182.68.178.6] has joined #ruby
k_89 [k_89!~k@182.68.178.6] has quit ["Leaving"]
zastaph [zastaph!zastaph@unaffiliated/zastaph] has joined #ruby
<arvindravi>
hello all,what does "@" symbol denote in ruby?
<Okasu>
instance var
vmatiyko [vmatiyko!~vmatiyko@178.121.154.149] has joined #ruby
vmatiyko [vmatiyko!~vmatiyko@178.121.154.149] has quit [#ruby]
Yingjie_Cui [Yingjie_Cui!~chatzilla@124.126.191.188] has joined #ruby
<arvindravi>
Okasu: thanks!
s0ber [s0ber!~s0ber@114-36-237-144.dynamic.hinet.net] has joined #ruby
y3llow [y3llow!~y3llow@114-36-237-144.dynamic.hinet.net] has joined #ruby
andrewhl [andrewhl!~andrew@75.98.19.132] has joined #ruby
dootdoot [dootdoot!~dootdoot@static-50-53-52-25.bvtn.or.frontiernet.net] has joined #ruby
y3llow [y3llow!~y3llow@114-36-237-144.dynamic.hinet.net] has joined #ruby
y3llow [y3llow!~y3llow@114-36-237-144.dynamic.hinet.net] has joined #ruby
banister`sleep [banister`sleep!~baniseter@122.63.226.77] has joined #ruby
Sailias [Sailias!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
banister`sleep [banister`sleep!~baniseter@122.63.226.77] has joined #ruby
<CodeZombie>
hey folks, could anyone give me some direction on why strings would show up like this, and maybe some info on how to clean it up? https://gist.github.com/67ba98fb924e19410081
<CodeZombie>
I've tried encode, encode!, try_convert, and a few other methods, but nothing
<CodeZombie>
the server gives it to me in UTF-16LE
Cervajz [Cervajz!~Cervajz@opensuse/member/Cervajz] has joined #ruby
banister`sleep [banister`sleep!~baniseter@122.63.158.90] has joined #ruby
jwmann [jwmann!~Adium@modemcable032.85-202-24.mc.videotron.ca] has joined #ruby
billturner [billturner!~textual@99-107-72-248.lightspeed.rcsntx.sbcglobal.net] has joined #ruby
azbarcea_ [azbarcea_!~quassel@79.114.112.126] has joined #ruby
<Boohbah>
CodeZombie: # -*- coding: utf-8 -*-
rpowell [rpowell!~rpowell@CPE-58-164-72-158.lns1.ken.bigpond.net.au] has joined #ruby
<Boohbah>
s/8/16/
<Boohbah>
et cetera
jrist [jrist!~jrist@184-96-224-251.hlrn.qwest.net] has joined #ruby
<Okasu>
rbot user detected
PaciFisT [PaciFisT!~PeaCE@CPE602ad06de6b3-CM602ad06de6b0.cpe.net.cable.rogers.com] has joined #ruby
<jensn>
CodeZombie: force_encoding or what it is called to the right encoding.
eignerchris [eignerchris!~eignerchr@71-222-114-71.ptld.qwest.net] has joined #ruby
<CodeZombie>
jensn: I attempted force_encoding, it does change the string, but it's still encoded
<CodeZombie>
the hex values are still present
<jensn>
Then you're force_encoding to the wrong encoding.
<CodeZombie>
this is an issue, only because I can't cant do proper find/replace, searching etc on the string
<CodeZombie>
I guess I can just wait to get ahold of the server side developer
<trend>
why when calling this method: User.create_with_omniauth(params), do I have to add 'self' to def self.create_with_omniauth ?
dootdoot [dootdoot!~dootdoot@static-50-53-71-177.bvtn.or.frontiernet.net] has joined #ruby
<trend>
nm, got the answer :)
Rod [Rod!~Rod@74.204.38.162] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Rod__ [Rod__!~Rod@74.204.38.162] has joined #ruby
burgestrand [burgestrand!~burgestra@81-229-85-235-no66.tbcn.telia.com] has joined #ruby
Rod [Rod!~Rod@74.204.38.162] has joined #ruby
banister_ [banister_!~baniseter@122.63.158.90] has joined #ruby
<CodeZombie>
jensn: you were correct, when I tried UTF-16LE before I must have had a typo.
<CodeZombie>
that's what I get for working late nights on my vacation
<jensn>
Well, it happens everyone.
<CodeZombie>
thanks for the tips jensn, and Boohbah
<CodeZombie>
much appreciated
<jensn>
you're welcome.
MissionCritical [MissionCritical!~MissionCr@unaffiliated/missioncritical] has joined #ruby
<Okasu>
best indiana jones movie on your opinion?
flexd [flexd!~flexd@dev.flexd.net] has joined #ruby
SterNiX [SterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
<flexd>
Does anyone have any recommendations for anything like God? (i.e use god, use something else, eat pie..)
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
bnewton [bnewton!~bnewton@cpe-66-68-94-56.austin.res.rr.com] has joined #ruby
Fraeon [Fraeon!~kzer-za@virgo.dreamhost.com] has joined #ruby
Jonah11_ [Jonah11_!~Jonah@173-30-163-4.client.mchsi.com] has quit ["Leaving"]
<shevy>
Okasu the one with connery in it
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
jamiemill [jamiemill!~jamiemill@78-86-4-116.zone2.bethere.co.uk] has joined #ruby
Asher [Asher!~asher@98.158.127.150] has joined #ruby
amerine [amerine!~mturner@67.204.184.82] has joined #ruby
dhodgkin [dhodgkin!~dhodgkin@cpe-76-179-199-112.maine.res.rr.com] has joined #ruby
wedtm [wedtm!~wedtm@173-12-163-78-oregon.hfc.comcastbusiness.net] has joined #ruby
Jake232 [Jake232!~textual@5e04eaa6.bb.sky.com] has joined #ruby
Sailias [Sailias!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby
<Clooth>
bbl getting drunk with stupid finnish people, hf guyz n galz
flip_digits [flip_digits!~textual@c-76-122-14-228.hsd1.fl.comcast.net] has joined #ruby
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby
Sailias [Sailias!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby
shachaf [shachaf!~shachaf@ip24.67-202-82.static.steadfastdns.net] has joined #ruby
flexd [flexd!~flexd@dev.flexd.net] has quit ["WeeChat 0.3.6"]
tilde` [tilde`!~tilde@adsl-ull-177-209.42-151.net24.it] has joined #ruby
jbhewitt [jbhewitt!~jbhewitt@c122-108-214-224.rochd4.qld.optusnet.com.au] has joined #ruby
kaneda [kaneda!~kaneda@5acb1c98.bb.sky.com] has joined #ruby
cousine [cousine!~cousine@196.221.242.180] has joined #ruby
<CodeZombie>
alright, another fun one from last night... using net/telnet to send commands to a server, the server sends back a response... I'm using waitfor, to ensure I have the entire response before moving on, however, trying to match a regex with anything other than /\n/ fails to finish waiting... here's the code, and a response https://gist.github.com/ce28df80866b0f6758a8
vraa [vraa!~vraa@99-20-202-44.lightspeed.hstntx.sbcglobal.net] has joined #ruby
<CodeZombie>
I've checked my regex, and it's valid
alphabitcity [alphabitcity!~Adium@NYUFGA-WLESSAUTHCLIENTS-01.NATPOOL.NYU.EDU] has joined #ruby
<CodeZombie>
nvm
<CodeZombie>
encrypted data doesn't work well for regex ha!
king313 [king313!~king313@unaffiliated/king313] has joined #ruby
mitchty_ [mitchty_!~mitchty@ec2-50-19-41-37.compute-1.amazonaws.com] has joined #ruby
ikaros [ikaros!~ikaros@dslb-188-107-221-154.pools.arcor-ip.net] has joined #ruby
SterNiX [SterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
mitchty- [mitchty-!~mitchty@ec2-50-19-41-37.compute-1.amazonaws.com] has joined #ruby
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
<trend>
what gem do I need to install to get pp going?
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby
<mitchty>
require 'pp'
youdonotexist [youdonotexist!~youdonote@c-67-166-121-94.hsd1.ut.comcast.net] has joined #ruby
<trend>
doh!
<mitchty>
though if you want to install a gem, awesome_print is... awesome..er
<trend>
hah, that's what I ended up installing :)
kakashi_ [kakashi_!~kakashi_@nltk/kakashi] has joined #ruby
kf8a [kf8a!~kf8a@dslfw4.mei.net] has joined #ruby
<mitchty>
i just wish it wouldn't color stuff that goes to a non tty
colint [colint!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
_dink [_dink!~anonymous@c-68-52-194-205.hsd1.tn.comcast.net] has joined #ruby
alphabitcity [alphabitcity!~Adium@NYUFGA-WLESSAUTHCLIENTS-01.NATPOOL.NYU.EDU] has joined #ruby
<shevy>
trend pp is part of standard ruby anyway
dkannan [dkannan!u480@gateway/web/irccloud.com/x-zhhkdcsvdxfyxmxt] has joined #ruby
yfeldblum [yfeldblum!~Jay@c-98-218-48-253.hsd1.md.comcast.net] has joined #ruby
danblack [danblack!~dragonhea@gentoo/developer/dragonheart] has joined #ruby
fantazo [fantazo!~fantazo@85-127-83-83.dynamic.xdsl-line.inode.at] has joined #ruby
milkpost_ [milkpost_!~dec@173-28-195-157.client.mchsi.com] has joined #ruby
ph^_ [ph^_!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
nowthatsamatt [nowthatsamatt!~nowthatsa@adsl-98-85-31-238.mco.bellsouth.net] has joined #ruby
rickmasta [rickmasta!~rickmasta@pool-71-183-247-164.nycmny.fios.verizon.net] has joined #ruby
CannedCorn [CannedCorn!~textual@adsl-108-132-112-41.mia.bellsouth.net] has joined #ruby
colint_ [colint_!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
otakutomo [otakutomo!~otakutomo@zaq771a4b1b.zaq.ne.jp] has joined #ruby
dootdoot [dootdoot!~dootdoot@static-50-53-52-25.bvtn.or.frontiernet.net] has joined #ruby
zulax [zulax!~radarwork@99-120-232-161.lightspeed.iplsin.sbcglobal.net] has joined #ruby
workmad3 [workmad3!~workmad3@host-84-13-69-129.opaltelecom.net] has joined #ruby
kakashi_ [kakashi_!~kakashi_@nltk/kakashi] has joined #ruby