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/
<m4dc0d3r> we are thinking in cloud terms here
<m4dc0d3r> we need CPU time
<m4dc0d3r> and storage
<m4dc0d3r> the storage is a distributed database
<m4dc0d3r> on everyone who is using the web
<m4dc0d3r> everyone just gives away the space they dont need or at least a few gb
<m4dc0d3r> its damn cheap to get another HDD
<m4dc0d3r> and cpu time could be waste cpu time on all people who "view" your app
<m4dc0d3r> its like javascript right now
<m4dc0d3r> just native
<shadoi> m4dc0d3r: there is a rubyJS
sdwrage [sdwrage!~sdwrage@cpe-184-57-83-165.columbus.res.rr.com] has joined #ruby
<m4dc0d3r> the issue is that we are used to viewing dynamic application output from all applications using dynamic application features cramped in one window
<m4dc0d3r> and all properly implemented applications in your OS
herval [herval!~Adium@187.114.205.224] has quit [#ruby]
<m4dc0d3r> where they are properly organized
<m4dc0d3r> instead we could use "desktop" applications for everything
<shadoi> m4dc0d3r: go and build it, they will come.
<shadoi> code not words.
<shadoi> go forth.
<banisterfiend> shadoi: did that work for u?
<shadoi> banisterfiend: yes, I stuck it in .pryrc and it's awesome sauce :)
<banisterfiend> shadoi: cool
<shadoi> banisterfiend: thanks again
hadees [hadees!~hadees@72-48-91-73.dyn.grandenetworks.net] has joined #ruby
<banisterfiend> np
cmasseraf [cmasseraf!~cmasseraf@186.223.223.160] has joined #ruby
wroathe [wroathe!~wroathe@75-146-189-233-Minnesota.hfc.comcastbusiness.net] has joined #ruby
silky [silky!~silky@pool-74-108-142-22.nycmny.fios.verizon.net] has joined #ruby
<m4dc0d3r> HTML is a GUI protocol like X11, the Browser is it's renderer. The thing is, the display that using X11 and the renderer of that.
<m4dc0d3r> thats a 2-level inception
<m4dc0d3r> practical is probably up to 4
<m4dc0d3r> we cant virtualize everything on top of everything for hundreds of times just because it means we still can display a simple website
<m4dc0d3r> cause guess what?
<m4dc0d3r> thee website is fucking simple
<m4dc0d3r> your hardware could handle worlds of experience
<m4dc0d3r> instead of a bit of text
<m4dc0d3r> or just the text, just in far less time
<shadoi> m4dc0d3r: do you have a blog? I invite you to use it.
<m4dc0d3r> we should make everything able to run as fast as possible
<m4dc0d3r> i am planning to set one up
InFlames [InFlames!~InFlames@201-95-126-47.dsl.telesp.net.br] has joined #ruby
<m4dc0d3r> but you can email me at sascha@heylik.at with your irc nick
<m4dc0d3r> and i will make sure to keep you up to date
InFlames [InFlames!~InFlames@201-95-126-47.dsl.telesp.net.br] has joined #ruby
<m4dc0d3r> i wonder why people think that emails are slower than websites while even they do the same fucking thing
<m4dc0d3r> delivering text
<m4dc0d3r> i am going to count how many applications to the same thing on your OS at the same time
<m4dc0d3r> for no reason
<m4dc0d3r> and why they suck at it
<m4dc0d3r> and then i am going to try and fix most of that
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
Bardosity [Bardosity!~john@202-89-189-137.static.dsl.amnet.net.au] has quit [#ruby]
Phrogz [Phrogz!~phrogz@pdpc/supporter/professional/phrogz] has joined #ruby
<m4dc0d3r> i will call my project "everyman's codebase"
<m4dc0d3r> which is an open source code collection
<m4dc0d3r> with all you need to get by
<m4dc0d3r> in a modern world
<m4dc0d3r> even the hardware can be open source
<m4dc0d3r> since we will soon have raspberry pi
<__null> why not use a roku box or something
<__null> it has wifi support
<__null> and a few other things that raspberry doesn't
<m4dc0d3r> raspberry has wifi
<m4dc0d3r> lol
<m4dc0d3r> cause it has usb
<__null> yeah, but that's not internal wifi
tomzx [tomzx!~tomzx@66-77.162.dsl.aei.ca] has joined #ruby
<m4dc0d3r> people will integrate addons like that with case-internal add-ons
<m4dc0d3r> since cases for the raspberry pi can be made easily using a reprap
<__null> that's true
bleeber [bleeber!~bleeber@pool-100-3-123-176.tampfl.fios.verizon.net] has joined #ruby
<m4dc0d3r> you just mount usb things inside a case using LEGO connections and put it back on
<m4dc0d3r> everyone is familiar with LEGO
<m4dc0d3r> its actually a great system to make modular household devices with lol
<m4dc0d3r> since you can ask anyone to "get out your lego stuff and build your own case for the computer you are about to assemble"
replore_ [replore_!~replore@203.152.213.161.static.zoot.jp] has joined #ruby
josefig [josefig!~josef@187.156.91.147] has joined #ruby
josefig [josefig!~josef@unaffiliated/josefig] has joined #ruby
<m4dc0d3r> we should have standards for LEGO blocks for devices
nari [nari!~nari@2001:268:306:1:f2de:f1ff:fe55:2de0] has joined #ruby
<m4dc0d3r> omg im horribly off topic
<m4dc0d3r> sorry
* dagnachewa would like to know if here there are people who are starting to learn ruby ? I would like some advice on how to improve "quickly" from begining to intermediate, I have started "Begingig Ruby " book am on chapter 3
Animawish [Animawish!~Adium@71-35-237-1.slkc.qwest.net] has joined #ruby
randym [randym!~randym@113x33x226x118.ap113.ftth.ucom.ne.jp] has joined #ruby
<Animawish> let's say that I have the string "hello-thar". is there some kind of method or something that I could use to find the position of, for example, the hyphen?
stringoO [stringoO!~JLstring@bas1-toronto42-1279599131.dsl.bell.ca] has joined #ruby
<Animawish> like,
<Animawish> "hello-thar".findthechar("-")
<Animawish> and that returns 5
Bardosity [Bardosity!~john@202-89-189-137.static.dsl.amnet.net.au] has joined #ruby
zenergi [zenergi!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
rowanu [rowanu!~rowanu@modemcable005.175-83-70.mc.videotron.ca] has joined #ruby
<shevy> Animawish .index
<m4dc0d3r> dagnachewa: do you know another programming language already?
<shevy> Animawish: "hello-thar".index("-") # => 5
<m4dc0d3r> c, c++, java, perl, python, or php?
<Animawish> thanks shevy :3
<shevy> heya m4dc0d3r
<m4dc0d3r> shevy ^^
zenergi [zenergi!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
shennyg_ [shennyg_!~shennyg@puppis.dreamhost.com] has joined #ruby
<dagnachewa> m4dc0d3r, I finished cs in college in 2003 and I work in not related field and would like to know how to improve "quickly" I did some c and pascal, after that I played a bit with python and know I have setteled on ruby because of rails
<shevy> dagnachewa: best way is ... jump to http://pine.fm/LearnToProgram/?Chapter=01 work through it, then instantly write your first script and extend and maintain it over a while. the more mistakes you do the better. and when you have projects where you can add code every now and then regularly, even better too (but they should be interesting)
<m4dc0d3r> dagnachewa: then i think i will be of great value to you
<dagnachewa> shevy, thanks is it better to start with that ? I have beginign ruby book too
<m4dc0d3r> dagnachewa: i am writing an OS focused on ruby
<shevy> well
<davidcelis> wut
<m4dc0d3r> dagnachewa: or something like it
<shevy> daglees, the books are good to expand on theory, but there is no substitute for writing ruby code on your own and getting that kind of experience.
<dagnachewa> m4dc0d3r, are you kiddig an os on ruby wow bravo
<shadoi> dagnachewa: depends on what time of learner you are. Most coders learn by doing, so just pick a simple app, and build it. Look up what you don't understand as you go. If you _need_ a book for that experience try http://ruby.learncodethehardway.org/
<m4dc0d3r> i am going to look through the 2-3 generations of "web" we use today and create a new one that is "real" again
<m4dc0d3r> that is, focused on executing everything the best way possible
<shevy> let's team up m4dc0d3r !
<m4dc0d3r> i would love to
<m4dc0d3r> we need something to communicate
<davidcelis> what
<m4dc0d3r> lets make a channel
<davidcelis> an OS based on ruby
<m4dc0d3r> #rubyos
<davidcelis> why?
<shevy> why not?
<davidcelis> im just wondering what the reasoning behind this is
<m4dc0d3r> thats actually a good answer too
<m4dc0d3r> ruby is the best language
<m4dc0d3r> lets make all our software
<shevy> though I have to say, I can't go down to C level or assembly really
<m4dc0d3r> use the best language
<davidcelis> depends on what you're using the language for, really
<davidcelis> there's not really a "best" language because of how many problems programming languages set out to solve
<davidcelis> that is why we have so many languages
<shevy> nah
<davidcelis> they are aimed at different problems
<shevy> we have so many languages because of different reasons
<m4dc0d3r> exactly
<shevy> and there is history too
<m4dc0d3r> and each one is a solution for one thing
<shevy> like lispOS and lisp
rsaaguy [rsaaguy!~chatzilla@rysa.anu.edu.au] has joined #ruby
<m4dc0d3r> instead we should have a solution managing that
<m4dc0d3r> ruby has that
<shevy> then the whole C family languages that is really quite similar to one another
<m4dc0d3r> its easy to add things
<shevy> well, ruby lacks one thing
<shevy> speed!
<m4dc0d3r> well, rubinius has
<m4dc0d3r> it
<davidcelis> jruby fixes that
<shadoi> This is a fantasy that a lot of people have when they find their new favorite language. "I want the whole OS to be like this!" I know I've thought this, and had this discussion with other people. Pretty sure the people at RedHat thought this about python. :)
<m4dc0d3r> or rubinius
<shevy> jruby requires java or?
<davidcelis> jvm's fast, and ruby runs well on it
<m4dc0d3r> rubinius is like jruby but much better
<davidcelis> it requires the jvm
<m4dc0d3r> without java
<m4dc0d3r> its its own VM
<shevy> well, the less I have to affiliate with java myself, the better. but if jruby works for others, sure
<qelsi> shadoi: just a bit of NIH syndrome.
<m4dc0d3r> we will make all platforms neutral
<shadoi> qelsi: a variant, sure.
<m4dc0d3r> so one platform
<m4dc0d3r> one language
<m4dc0d3r> or toolkit/IDE/something
<shevy> shadoi: other than speed I can't think of a real reason why ruby wouldn't work. It just seems like a lot of work, but not impossible. Unless you could come up with a reason why it is not possible.
<shadoi> qelsi: platform xenophobia :)
<dagnachewa> shadoi, thanks realy a lot never heard of that book and online version thank a lot again
<davidcelis> i guess there's an HTML5/CSS3 operating system already, jolicloud
<davidcelis> why not a ruby one
<m4dc0d3r> just one solution with the latest in open source and knowledge
<shevy> in some years we'll all code in javascript anyway
<shadoi> shevy: sure it could work
<shadoi> shevy: it's been done multiple times…
<shevy> I like CSS actually :)
<shadoi> shevy: just in with different languages.
<shadoi> s/in//
<m4dc0d3r> davidcelis: i want the same thing, but not running one one server. distributed network wide.
<shevy> m4dc0d3r, I think the amount of work required is too much. I found it much easier to work on little and useful things and build from the bottom up slowly
<shadoi> dagnachewa: np
[RHQme]stringo0 [[RHQme]stringo0!~JLstring@bas1-toronto42-1279599959.dsl.bell.ca] has joined #ruby
<shadoi> m4dc0d3r: git init ruby-plan9
<shadoi> ROFL
<m4dc0d3r> doing everything users need as directly and efficiently as possible
<m4dc0d3r> shevy: its about timing
<shevy> though a rails-to-.NET connection for linux would be nice. imagine if you could control everything on your computer via browser
<shevy> with happy objects dancing around
<shadoi> hahahaha
<shadoi> oy vey
<shadoi> thanks for the chuckle
<m4dc0d3r> shadoi: what's the problem?
<davidcelis> did someone say dancing around
<davidcelis> :D-\-<
<davidcelis> :D-/-<
fullsailor [fullsailor!~fullsailo@ip24-250-174-76.ga.at.cox.net] has joined #ruby
<m4dc0d3r> lol
<m4dc0d3r> joliOS is a chromeOS clone
<m4dc0d3r> or something like that
zenergi [zenergi!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
headius [headius!~headius@64.122.234.10] has joined #ruby
<davidcelis> joliOS is adorable is what it is
<shevy> hehe he quitted :)
<m4dc0d3r> looks like chromeos to me
<davidcelis> it may look like chrome os
<davidcelis> they are both web-based operating systems
porco [porco!~porco@222.130.132.223] has joined #ruby
<davidcelis> joli is built on top of a linux distro though, and you get full console access
<davidcelis> i believe it's built on top of some flavor of ubuntu. not positive.
hasrb [hasrb!~hasrb@108-85-134-26.lightspeed.austtx.sbcglobal.net] has joined #ruby
mkmkmk1 [mkmkmk1!~mkmkmk@rrcs-173-196-10-131.west.biz.rr.com] has joined #ruby
zenergi [zenergi!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
<m4dc0d3r> davidcelis: i guess its just a website
<majnun> shouldn't i be able to do if @attachment.content_type == "image/jpeg" || "image/png" || "image/gif" on a form @attachment with a file input?
Asher [Asher!~asher@98.158.127.150] has joined #ruby
ckrailo [ckrailo!~ckrailo@utdpat242007.utdallas.edu] has joined #ruby
deryl [deryl!deryl@perfecting.rubyists.com] has joined #ruby
<m4dc0d3r> that would be nice, yes
zenergi [zenergi!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
amerine [amerine!~mturner@67.204.184.82] has joined #ruby
<majnun> i'm trying to put stuff in my controller so it redirects to the correct tab depending on the content type
<m4dc0d3r> i just thought a while and actually we only need a GUI for irb
<majnun> doesn't seem to work
<m4dc0d3r> and we have to consider irb our new operating system
<canton7> precedence goes the other way though -- it resolves to if (@attachment.content_type == 'image/jpg') || ('image/png') || ....
<m4dc0d3r> then life will be much much easier soon
<canton7> majun, ^^
<canton7> majnun, try "if ['image/jpg', 'image/png', ...].include?(@attachment.content_type)"
porco [porco!~porco@222.130.130.151] has joined #ruby
<majnun> hm, ok
<majnun> i can't see mto get the params to show up in the log anyway, so it's making it difficult to see why i get redirect_to to the wrong page ;o0
<majnun> ?
<majnun> er, canton7
<canton7> majnun, you forgot a '.' before the include?
<majnun> i guess no, lol
<majnun> yeah
<majnun> hm, still doesn't work
<canton7> define 'doesn't work'
<majnun> tab = is set to the wrong thing so i get redirected to the wrong place
<majnun> but content_type is set correctly in the database
<canton7> are you sure that @attachment.content_type is one of those values?
pdtpatrick_ [pdtpatrick_!~pdtpatric@ip72-211-207-15.oc.oc.cox.net] has joined #ruby
<majnun> i think so, since it shows up correctly in the databae
<majnun> if i try to debug @attachment i get an error though
pdtpatrick_ [pdtpatrick_!~pdtpatric@ip72-211-207-15.oc.oc.cox.net] has quit [#ruby]
<canton7> no extra spaces, newlines, etc
<majnun> not that i can see
Sailias [Sailias!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby
Sailias [Sailias!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby
csavola [csavola!~csavola@CPE0021e9f7ea74-CM001404933e00.cpe.net.cable.rogers.com] has joined #ruby
<majnun> if i'm doing this after @attachment.save, though, is it possible i'm losing the other stuff on @attachment?
nvez [nvez!~textual@bas1-montreal54-1167956012.dsl.bell.ca] has joined #ruby
nvez [nvez!~textual@unaffiliated/nvez] has joined #ruby
<regedarek> anybody have some expirience with mongo db
<regedarek> ??
<Y_Ichiro`work> what do you need to know about mongodb?
_kinderman [_kinderman!~kinderman@c-98-223-146-252.hsd1.in.comcast.net] has joined #ruby
<Y_Ichiro`work> don't ask to ask, just ask
<majnun> oh, lol
<majnun> sorry, i've been bugging you guys in #ruby
<majnun> when this is totally a rails question
<majnun> apologies all around
<gigamonkey> Hi. Is this an idiomatic way to write a method that can either enumerate over something with a block or return an enumerator for later use if called without a block: http://pastie.org/3286115
* gigamonkey is a total Ruby newbie.
<Y_Ichiro`work> majnun, what do you mean by other stuff?
<regedarek> so how to setup warden
<regedarek> becose my id now is _id
<regedarek> and User.find(id) not working anymore
<Y_Ichiro`work> are you using mongoid?
<majnun> Y_Ichiro`work: i mean the other variables like @attachment.content_type
<Y_Ichiro`work> what are you using
googya [googya!~Adium@221.133.241.50] has joined #ruby
cola_zero_ [cola_zero_!~cola_zero@www5054u.sakura.ne.jp] has joined #ruby
bleeber [bleeber!~bleeber@pool-100-3-123-176.tampfl.fios.verizon.net] has joined #ruby
<majnun> is that directed at me?
<Y_Ichiro`work> uh, no, I was asking what driver is regedarek using to interface with mongodb
Phrogz [Phrogz!~phrogz@pdpc/supporter/professional/phrogz] has joined #ruby
<regedarek> mongomapper
<regedarek> mongohq
<Y_Ichiro`work> if you want use mongoid because
<Y_Ichiro`work> it's closer to AR which is what you are more familiar with
Twixmix [Twixmix!~RyanNiels@142.177.138.115] has joined #ruby
odinswand [odinswand!~odinswand@49.193.60.4] has joined #ruby
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
asmdroid [asmdroid!~nchat@5ac02823.bb.sky.com] has joined #ruby
odinswand [odinswand!~odinswand@49.193.60.4] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
Zolrath [Zolrath!~Zolrath@cpe-98-148-138-177.socal.res.rr.com] has joined #ruby
asobrasil [asobrasil!~asantioli@palpatine.privatedns.com] has quit [#ruby]
samsonjs [samsonjs!~samsonjs@S01060026f31b8198.gv.shawcable.net] has joined #ruby
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
thomasdebenning [thomasdebenning!~thomasdeb@c-69-181-139-137.hsd1.ca.comcast.net] has joined #ruby
cbuxton [cbuxton!~Adium@nat/partnerpedia/x-ykytgqvkkescqpct] has joined #ruby
<Animawish> how do I make it just restart a script
<Animawish> like, go back to the start of the code
<Animawish> something like return() or something
<Animawish> or something
philcrissman [philcrissman!~philcriss@64.122.234.10] has joined #ruby
rubyruy [rubyruy!~ruy@76.77.91.41] has joined #ruby
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
<banisterfiend> Animawish: make what restart a script?
headius [headius!~headius@64.122.234.10] has joined #ruby
<Animawish> I figured it out. I was looking for how to make a loop without using loop, but then I made it a loop
<Animawish> using loop
<Animawish> I'm not good at explaining things
googya [googya!~Adium@221.133.241.50] has joined #ruby
Animawish [Animawish!~Adium@71-35-237-1.slkc.qwest.net] has quit [#ruby]
CreativeEmbassy [CreativeEmbassy!~CreativeE@pool-71-162-39-182.altnpa.east.verizon.net] has joined #ruby
macmartine [macmartine!~macmartin@c-24-21-112-60.hsd1.or.comcast.net] has joined #ruby
redgetan [redgetan!~redgetan@user251-56.wireless.utoronto.ca] has joined #ruby
davidcelis [davidcelis!~david@c-76-115-58-79.hsd1.or.comcast.net] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@c-98-207-236-44.hsd1.ca.comcast.net] has joined #ruby
aamax [aamax!~aamax@174-27-200-179.slkc.qwest.net] has joined #ruby
<aamax> hi all - i need to write an app (in ruby) with access to sql server. i found an old reference to a class to help with the access and i'm sure it works fine for accessing records - but i'm getting errors with doing inserts. what adapters/gems/libraries/etc do you use if you're using sql server and ruby (not rails, just ruby)
bburhans [bburhans!bburhans@freenode/staff/bburhans] has joined #ruby
milkpost_ [milkpost_!~dec@173-28-195-157.client.mchsi.com] has joined #ruby
burns180 [burns180!~aWizard@adsl-072-148-000-213.sip.mcn.bellsouth.net] has joined #ruby
milktrader [milktrader!~milktrade@67.197.35.103] has joined #ruby
<RubyPanther> aamax: ruby-odbc + tiny_tds + either activerecord-sqlserver-adapter or dbi+dbd-odb
<RubyPanther> I find AR a useful way to go outside of rails, but dbi is fine too
<aamax> ok. i'm pretty new to ruby and rails - trying to do more ruby for my work tasks instead of C# and we're a (primarily for now) windows shop
CreativeEmbassy [CreativeEmbassy!~CreativeE@pool-71-162-39-182.altnpa.east.verizon.net] has joined #ruby
<aamax> thx
<aamax> i found a reference using ADO which was pretty old but when i try to run an insert query it coughs up a hair ball
<RubyPanther> thankfully the way I am doing it is portable, I use AR and bundler and ruby-odbc and I can develop on linux with a remote db, and then run it on windows unmodified
<aamax> you wouldn't happen to have a simple gist on basic connect and set up would you? LOL
<aamax> i thought about trying to use AR outside of rails but hadn't tried anything yet
<RubyPanther> heh I can do that
philcrissman [philcrissman!~philcriss@64.122.234.10] has joined #ruby
abstrakt [abstrakt!~abstrak1@gateway/tor-sasl/abstrak1] has joined #ruby
redgetan [redgetan!~redgetan@user251-56.wireless.utoronto.ca] has quit ["Leaving"]
jdspiralz [jdspiralz!jdspiral@oberon.vectori.net] has joined #ruby
Valkyrie^ [Valkyrie^!~Azure@reenigne.net] has joined #ruby
koala_man [koala_man!vidar@vidarholen.net] has joined #ruby
nimred [nimred!~nimred@srv229.dedi64.de] has joined #ruby
bob_f [bob_f!~bob@unaffiliated/bob-f/x-6028553] has joined #ruby
rtl [rtl!~rtl@monothorpe.com] has joined #ruby
warebec|hat [warebec|hat!~warebec@ell.io] has joined #ruby
andman [andman!~andman@minorshadows.net] has joined #ruby
marcin_m [marcin_m!~marcinskl@u-o.be] has joined #ruby
flazmot [flazmot!~root@69-196-130-213.dsl.teksavvy.com] has joined #ruby
ChloeD [ChloeD!~chloe@88-190-26-89.rev.dedibox.fr] has joined #ruby
regedarek [regedarek!regedarek@gateway/shell/bshellz.net/x-lomxrbcifyayikwx] has joined #ruby
pygmalion [pygmalion!~pygmalion@pyg8.com] has joined #ruby
nimred [nimred!~nimred@unaffiliated/nahra] has joined #ruby
Valkyrie^ [Valkyrie^!~Azure@cinch/fan/azure] has joined #ruby
koala_man [koala_man!vidar@unaffiliated/koala-man/x-2491903] has joined #ruby
|PiP| [|PiP|!PiP@CPE68efbdb817c9-CM0011aea71a92.cpe.net.cable.rogers.com] has joined #ruby
KitsuneDrag0n [KitsuneDrag0n!~hats@unaffiliated/kitsunedrag0n] has joined #ruby
fullsailor [fullsailor!~fullsailo@ip24-250-174-76.ga.at.cox.net] has joined #ruby
shadow338 [shadow338!~shadow338@su-nat.int.smq.datapipe.net] has joined #ruby
orospakr [orospakr!~orospakr@mobotropolis.orospakr.ca] has joined #ruby
Gate [Gate!~gate@devans.us] has joined #ruby
examancer [examancer!~carl@ip68-107-232-165.om.om.cox.net] has joined #ruby
Espen-_- [Espen-_-!Espen@sjarken.org] has joined #ruby
fred [fred!~fred@primary.fredemmott.co.uk] has joined #ruby
Gate [Gate!~gate@unaffiliated/gate] has joined #ruby
Jelco [Jelco!~jelco@portal42.net] has joined #ruby
Jelco [Jelco!~jelco@unaffiliated/jelco] has joined #ruby
patronus [patronus!~or@geekon.net] has joined #ruby
tectonic [tectonic!~tectonic@c-67-164-98-164.hsd1.ca.comcast.net] has joined #ruby
momo- [momo-!~momo@2.60.138.210.bn.2iij.net] has joined #ruby
y3llow [y3llow!~y3llow@114-36-224-117.dynamic.hinet.net] has joined #ruby
tnk1 [tnk1!~tnk@ip72-195-134-180.ri.ri.cox.net] has joined #ruby
Emmanuel_Chanel [Emmanuel_Chanel!star2@L057107.ppp.dion.ne.jp] has joined #ruby
marienz [marienz!marienz@freenode/staff/marienz] has joined #ruby
Jarred [Jarred!~Administr@c-71-198-139-210.hsd1.ca.comcast.net] has joined #ruby
radic [radic!~radic@dslb-178-002-223-048.pools.arcor-ip.net] has joined #ruby
samuelkadolph [samuelkadolph!~samuelkad@unaffiliated/samuelkadolph] has joined #ruby
nvez [nvez!~textual@bas1-montreal54-1167956012.dsl.bell.ca] has joined #ruby
porco [porco!~porco@222.130.130.151] has joined #ruby
nvez [nvez!~textual@unaffiliated/nvez] has joined #ruby
mitchty [mitchty!~mitchty@ec2-50-19-41-37.compute-1.amazonaws.com] has joined #ruby
badabim [badabim!~badabim@c-98-207-235-20.hsd1.ca.comcast.net] has joined #ruby
mrmist [mrmist!~mrmist@freenode/staff/pdpc.active.mrmist] has joined #ruby
undert [undert!undert@hackerspace.fixme.ch] has joined #ruby
dominikh [dominikh!~dominikh@cinch/developer/dominikh] has joined #ruby
deavid [deavid!~quassel@ns311218.ovh.net] has joined #ruby
dv_ [dv_!~quassel@chello080108009040.14.11.vie.surfer.at] has joined #ruby
mtkd [mtkd!znc@209-20-90-74.slicehost.net] has joined #ruby
<abstrakt> hmm, I'm having a hard time figuring out the best approach for representing a maze. It's a plain grid (like graph paper) but the problem is that some walls are gates that can move from node to node. The problem really is that I need to account for both grid squares and the grid lines (the walls) because some walls can move. Any suggestions?
joschi [joschi!~joschi@zuse.schalanda.name] has joined #ruby
CreativeEmbassy [CreativeEmbassy!~CreativeE@pool-71-162-39-182.altnpa.east.verizon.net] has joined #ruby
nlew [nlew!~nlew@li73-104.members.linode.com] has joined #ruby
parus [parus!parus@gateway/shell/anapnea.net/x-wyudzvuzoecsigap] has joined #ruby
blanciq [blanciq!blanciq@bshellz.pl] has joined #ruby
baroquebobcat [baroquebobcat!~nick@c-67-176-80-121.hsd1.co.comcast.net] has joined #ruby
apprentice [apprentice!~apprentic@99-8-185-225.lightspeed.snfcca.sbcglobal.net] has joined #ruby
tommyvyo [tommyvyo!~tommyvyo@c-68-83-3-164.hsd1.nj.comcast.net] has joined #ruby
gigamonkey [gigamonkey!~user@adsl-99-155-194-9.dsl.pltn13.sbcglobal.net] has joined #ruby
hackeron [hackeron!~hackeron@gentoo/user/hackeron] has joined #ruby
<RubyPanther> aamax: https://gist.github.com/1708342
apprentice [apprentice!~apprentic@99-8-185-225.lightspeed.snfcca.sbcglobal.net] has joined #ruby
<aamax> RubyPanther, and that works outside of rails? hmmm
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
<aamax> thx 4 taking the time to do that.
<RubyPanther> aamax: using the ruby DevKit installer from the one click install thing worked for me on windows without needing any of the extra stuff cited at tiny_tds site but on linux I would have to have freetds installed also with a freetds.conf that sets up the DSN
<aamax> ok. i still need to install the dev kit. will do that next. was just playing with dbi in irb
<RubyPanther> aamax: you can also use tinytds directly, but using AR gives you all the arel SQL algebra stuff with a minimum of setup
CreativeEmbassy [CreativeEmbassy!~CreativeE@pool-71-162-39-182.altnpa.east.verizon.net] has joined #ruby
<aamax> arel SQL algebra (WTF?) lol
<aamax> lmao
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
spanx [spanx!u1351@gateway/web/irccloud.com/x-bsvwgobxekivfsuz] has joined #ruby
<RubyPanther> yeah so you can do like t = Foo.arel_table ; Foo.where( t[:price].eq(2.99).or(t[:name].matches('%lore')) ).limit(5)
pen [pen!~pen@g1pc2n249.g1.ntu.edu.tw] has joined #ruby
<RubyPanther> you can build up queries progressively
<aamax> interesting. i'm not too afraid of rolling my own sql (especially in the case i'm working on - pretty simple stuff)
<aamax> but the sample i was playing with earlier wasn't happy about an insert using ADO. i'll give your stuff a shot and read up on the tinytds. i am installing the dev kit as we "speak".
techhelp [techhelp!~Dan@ip70-162-10-229.ph.ph.cox.net] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@c-98-203-41-91.hsd1.fl.comcast.net] has joined #ruby
rubyruy [rubyruy!~ruy@76.77.91.41] has joined #ruby
rowanu [rowanu!~rowanu@modemcable005.175-83-70.mc.videotron.ca] has joined #ruby
burns180_ [burns180_!~aWizard@adsl-072-148-000-213.sip.mcn.bellsouth.net] has joined #ruby
CreativeEmbassy [CreativeEmbassy!~CreativeE@pool-71-162-39-182.altnpa.east.verizon.net] has joined #ruby
sbanwart_ [sbanwart_!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
daniel_hinojosa [daniel_hinojosa!~danno@67-0-61-129.albq.qwest.net] has joined #ruby
ghanima [ghanima!~ghanima@allen.nat.trb.com] has joined #ruby
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
robyurkowski [robyurkowski!~robyurkow@28-73-252-216.dsl.colba.net] has joined #ruby
azureye [azureye!~azureye@140.247.160.74] has joined #ruby
samsonjs [samsonjs!~samsonjs@184.66.154.246] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
h4mz1d [h4mz1d!~hamfz@DHCP-202-024.resnet.ua.edu] has joined #ruby
tomaw [tomaw!tom@freenode/staff/tomaw] has joined #ruby
akem [akem!~akem@253.195.84.79.rev.sfr.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
danibx [danibx!~danibx@187.104.236.95] has joined #ruby
moted [moted!~ryan@c-98-246-106-150.hsd1.or.comcast.net] has joined #ruby
akem [akem!~akem@253.195.84.79.rev.sfr.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
s14 [s14!~nick@ool-18b934ee.dyn.optonline.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
mpapis [mpapis!~mpapis@cust27-176.p6.gorzow.infineo.pl] has quit ["Leaving"]
thomasdebenning [thomasdebenning!~thomasdeb@c-69-181-139-137.hsd1.ca.comcast.net] has joined #ruby
danishkhan [danishkhan!~danishkha@c-71-198-248-234.hsd1.ca.comcast.net] has joined #ruby
CreativeEmbassy [CreativeEmbassy!~CreativeE@pool-71-162-39-182.altnpa.east.verizon.net] has joined #ruby
FlyingFoX [FlyingFoX!~quassel@sanktwendel.weh.RWTH-Aachen.DE] has joined #ruby
<aamax> I installed the dev kit and tinytds but initially it's not working for me.
<aamax> i also need to use windows authentication and the examples are showing with a user/pass
<aamax> which in the long run won't work for me.
dotnull [dotnull!~dot_null@173-31-158-182.client.mchsi.com] has joined #ruby
hadees_ [hadees_!~hadees@72-48-91-73.dyn.grandenetworks.net] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
badabim [badabim!~badabim@c-98-207-235-20.hsd1.ca.comcast.net] has joined #ruby
<aamax> RubyPanther, thx 4 the help. gonna eat. more tomorrow. have a good one
sdwrage [sdwrage!~sdwrage@cpe-184-57-83-165.columbus.res.rr.com] has joined #ruby
moshee [moshee!~moshee@c-50-135-229-127.hsd1.wa.comcast.net] has joined #ruby
moshee [moshee!~moshee@unaffiliated/moshee] has joined #ruby
jwang [jwang!~jwang@c-69-181-115-143.hsd1.ca.comcast.net] has joined #ruby
radic_ [radic_!~radic@dslb-178-002-228-207.pools.arcor-ip.net] has joined #ruby
Sailias [Sailias!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby
FlyingFoX [FlyingFoX!~quassel@sanktwendel.weh.RWTH-Aachen.DE] has joined #ruby
maletor [maletor!~maletor@c-69-181-24-86.hsd1.ca.comcast.net] has joined #ruby
jcromartie [jcromartie!~jcromarti@c-69-140-238-182.hsd1.md.comcast.net] has joined #ruby
<jcromartie> are there any guidelines for how an organization would organize projects into Ruby libraries, in terms of modules/namespaces?
pen [pen!~pen@g1pc2n249.g1.ntu.edu.tw] has joined #ruby
<jcromartie> maybe I'll just start here :) https://github.com/languages/Ruby
tommyvyo [tommyvyo!~tommyvyo@c-68-83-3-164.hsd1.nj.comcast.net] has joined #ruby
<GreaseMonkey> "Ruby is the #2 most popular language on GitHub" <-- wow.
tommyvyo [tommyvyo!~tommyvyo@c-68-83-3-164.hsd1.nj.comcast.net] has joined #ruby
hasrb [hasrb!~hasrb@108-85-134-26.lightspeed.austtx.sbcglobal.net] has joined #ruby
<jcromartie> maybe a module for our company?
<jcromartie> as a general principle?
<jcromartie> GreaseMonkey: why would be surprised?
<GreaseMonkey> i was actually quite disgusted to see that JS was #1
maedi [maedi!~maedi@mail.digitalink.com.au] has joined #ruby
<GreaseMonkey> but yeah, it's hard to believe that ruby could be so popular in a certain place which is open for any language
<GreaseMonkey> considering that none of my 4 projects on github have any ruby in them
<GreaseMonkey> argh balls it thinks it65 is python and can't work out what fireball is
<GreaseMonkey> (the former is 6502 assembly while the latter is python)
<RubyPanther> github is the "main" place for ruby code, that isn't true for any other language
<GreaseMonkey> hmmkay
<RubyPanther> it is our CPAN
Phrogz [Phrogz!~phrogz@pdpc/supporter/professional/phrogz] has joined #ruby
<jcromartie> RubyPanther: wouldn't RubyGems be Ruby's CPAN?
<jcromartie> well, RubyForge
<shevy> jcromartie sure
<shevy> or rather
<shevy> all gems
<shevy> but rubyforge is a bit in decline I would say, compared to github and http://rubygems.org/
Seisatsu [Seisatsu!~seisatsu@adsl-99-35-225-92.dsl.pltn13.sbcglobal.net] has joined #ruby
<jcromartie> well yeah, RubyForge has taken a backseat to RubyGems.org
Targen [Targen!~iguana@190.39.181.108] has joined #ruby
hemanth [hemanth!~hemanth@121.244.159.130] has joined #ruby
igotnolegs [igotnolegs!~igotnoleg@75-162-83-166.slkc.qwest.net] has joined #ruby
zenergi [zenergi!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
gokul [gokul!~gokulnath@115.111.177.122] has joined #ruby
cmasseraf [cmasseraf!~cmasseraf@186.223.223.160] has joined #ruby
zenergi [zenergi!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
kenperkins [kenperkins!~textual@50-47-18-37.evrt.wa.frontiernet.net] has joined #ruby
headius [headius!~headius@71-37-230-236.mpls.qwest.net] has joined #ruby
mikeric [mikeric!~mike@S0106c03f0e8b23f3.vc.shawcable.net] has joined #ruby
i8degrees1 [i8degrees1!~i8degrees@ip70-178-131-208.ks.ks.cox.net] has joined #ruby
relud [relud!~relud@osuosl/staff/relud] has joined #ruby
i8degrees [i8degrees!~i8degrees@ip70-178-131-208.ks.ks.cox.net] has joined #ruby
sonkei [sonkei!~sonkei@d14-69-26-171.try.wideopenwest.com] has joined #ruby
Dreamer3 [Dreamer3!~Dreamer3@74-134-34-116.dhcp.insightbb.com] has joined #ruby
apok [apok!~apok@96.24.67.22] has joined #ruby
blueadept [blueadept!~blueadept@72.21.137.199] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
<Dreamer3> so
<Dreamer3> what exactly is !=~
<Dreamer3> pretty sure it isn't what i think
<Dreamer3> i expected it to be the same as !(x=~y)
<Dreamer3> but it's not at all
enherit [enherit!~enherit@66-214-13-183.dhcp.lnbh.ca.charter.com] has joined #ruby
relud [relud!~relud@osuosl/staff/relud] has quit ["linode is probably having issues"]
macmartine [macmartine!~macmartin@c-24-21-112-60.hsd1.or.comcast.net] has joined #ruby
rippa [rippa!~splitta@85.158.54.234] has joined #ruby
gianlucadv [gianlucadv!~gianlucad@host78-84-dynamic.44-79-r.retail.telecomitalia.it] has joined #ruby
pen [pen!~pen@g1pc2n249.g1.ntu.edu.tw] has joined #ruby
Tasser [Tasser!~freak@subtle/contributor/Tass] has joined #ruby
redgetan [redgetan!~redgetan@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
nari [nari!~nari@2001:268:306:1:f2de:f1ff:fe55:2de0] has joined #ruby
ckrailo [ckrailo!~ckrailo@pool-71-97-77-8.dfw.dsl-w.verizon.net] has joined #ruby
ryopeko_ [ryopeko_!~ryopeko@122x220x64x254.ap122.ftth.ucom.ne.jp] has joined #ruby
<shevy> Dreamer3 that is a bit odd
<shevy> usually, to use a regex one would use =~ and in order to negate a regex one would use !~
csherin [csherin!~csherin@61.17.32.219] has joined #ruby
<jcromartie> If I have added methods to some standard classes inside of a module, should I be able to access those new methods from outside the module?
aemaeth [aemaeth!~aemaeth@unaffiliated/aemaeth] has joined #ruby
<shevy> jcromartie how do you mean, to standard classes?
<jcromartie> say, module MyModule; class String; def foo; "bar"; end; end; end;
<shevy> ah
<shevy> so you have encapsulated your modifications to ruby core classes within a module
<jcromartie> right
<jcromartie> you know, like a civilized gentleman
ryopeko_ [ryopeko_!~ryopeko@122x220x64x254.ap122.ftth.ucom.ne.jp] has quit ["Leaving..."]
<shevy> yeah. when I started with ruby, I just threw everything together, all my modifications... a few years ago, I started to split things up properly. a core/ directory, with a convention like "all modifications to class String go into file string.rb there"
<shevy> I have not yet tried your approach... need to think about this for a moment
<shevy> but usually, a module is just a namespace, no? so ... these are not real modifications to class String, I'd say
<shevy> but I am gonna test
<aemaeth> I was trying to mod an IRC dicebot written in ruby so that it can join a server with a password. If anyone can help I'd appreciate it, and paste my trial and errors. Thanks
<banisterfiend> shevy: fowl was back in #pry yesterday
<banisterfiend> shevy: he's working on a video game
<shevy> whoa
<rippa> shevy: it would new, empty class String
kwertii [kwertii!~kwertii@unaffiliated/kwertii] has joined #ruby
<rippa> MyModule::String
<banisterfiend> rippa: hello rippa
<rippa> without any String methods
<rippa> hello
<shevy> yeah that makes a lot of sense
ksinkar [ksinkar!~ksinkar@117.195.104.143] has joined #ruby
<shevy> jcromartie guess you may need to use another way to bundle your modifications
arex\ [arex\!q@158.36.150.14] has quit [#ruby]
eignerchris [eignerchris!~eignerchr@71-222-124-33.ptld.qwest.net] has joined #ruby
<mythmon> can I get the name of the current class in a polymorphic way?
<banisterfiend> mythmon: self.class
<banisterfiend> mythmon: what do u mean a polymorphic way
<wallerdev> i think he means in a derived class he wants the name of the derived one
<mythmon> if i subclass the class, and do not over write that method, will self.class say the parent or the child?
<wallerdev> like obj = Cat.new
<mythmon> wallerdev: exactly.
<wallerdev> where Cat < Dog
<wallerdev> but yeah just obj.class
<mythmon> cool
<shevy> mythmon you can also traverse the parent classes via .ancestors, which returns an array
flip_digits [flip_digits!~textual@c-76-122-14-228.hsd1.fl.comcast.net] has joined #ruby
<mythmon> shevy: not relavent to what i need, but cool, thanks.
<banisterfiend> anyone wanna test something really badass?
tk_ [tk_!~tk@p083005.doubleroute.jp] has joined #ruby
<wallerdev> no
<banisterfiend> hehe
<banisterfiend> it's a library that can intercept exceptions and give you a console at the point of the failure, so u can fix the bug before letting it kill your program
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
yeban [yeban!~yeban@203.110.240.205] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
<RubyPanther> like 1 !=~ 2 is 1 != ( ~ 2 )
<RubyPanther> ~ 2 == -3
<RubyPanther> so, true. 1 is not -3
<RubyPanther> Dreamer3: easy-peasy
yeban [yeban!~yeban@203.110.240.205] has quit [#ruby]
<shevy> wat
Spockz [Spockz!~Spockz@21pc198.sshunet.nl] has joined #ruby
<shevy> hmm
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
<banisterfiend> Dreamer3: use !~ instead
<shevy> funny. just by looking at 1 !=~ 2 alone, I would have thought the ~ belongs to = and not to 2
<shevy> :/
<RubyPanther> yeah but you have to start at the ! :)
<banisterfiend> shevy: if you and fowl had a real life friendship, do you think he'd be protective of u?
<shevy> lol
ksinkar_ [ksinkar_!~ksinkar@117.195.112.44] has joined #ruby
akem [akem!~akem@253.195.84.79.rev.sfr.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
<shevy> nah I dont believe you
<shevy> skyrim ate him
<shevy> I was like that for a while... in 2003-2004 due to warcraft 3
<RubyPanther> 1 !=~2??::?? => ":"
<banisterfiend> shevy: are you looking forward to diablo 3
<RubyPanther> ??!=~0??::?? => ":"
<shevy> banisterfiend I used to, some time ago. we were a group of ~4 dudes who played diablo 2 a lot
<wallerdev> diablo 3 is never going to be released
<RubyPanther> in Ruby 1.8 you can do: ??!=~?!??::?? => 58
<shevy> but I kinda gave up on games. I played warcraft 3 too much and decided that it is time to do other and more important things afterwards
<banisterfiend> wallerdev: the BETA is already out
<banisterfiend> people are playing it :)
<wallerdev> haha i know
<wallerdev> but they keep changing things
<RubyPanther> that's what they said about Duke Nukem Forever
<RubyPanther> and Perl 6
pen [pen!~pen@g1pc2n249.g1.ntu.edu.tw] has joined #ruby
<wallerdev> disappointed
<Phrogz> And TextMate2, but you see…
<wallerdev> i have no faith in textmate 2 haha
bigkm [bigkm!~bigkm@203-206-185-71.perm.iinet.net.au] has joined #ruby
jaywastaken [jaywastaken!~jaywastak@unaffiliated/jaywastaken] has joined #ruby
bluOxigen [bluOxigen!ssf@175.110.201.49] has joined #ruby
bluOxigen [bluOxigen!ssf@unaffiliated/bluOxigen] has joined #ruby
danishkhan [danishkhan!~danishkha@c-71-198-248-234.hsd1.ca.comcast.net] has joined #ruby
d-snp [d-snp!~d-snp@smurfer.student.utwente.nl] has joined #ruby
<shevy> haha
<aemaeth> oh, thanks guys, that worked :D
h4mz1d [h4mz1d!~hamfz@c-68-62-113-11.hsd1.al.comcast.net] has joined #ruby
csherin [csherin!~csherin@115.111.177.122] has joined #ruby
stringoO [stringoO!~JLstring@bas1-toronto42-1279599368.dsl.bell.ca] has joined #ruby
deryldoucette [deryldoucette!~Deryl@sms5-pool120-0211.bmts.com] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
redgetan [redgetan!~redgetan@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
banseljaj [banseljaj!~Imami@182.186.7.190] has joined #ruby
ninor [ninor!~ninor@50.34.232.22] has joined #ruby
ninor [ninor!~ninor@unaffiliated/ninor] has joined #ruby
josefig [josefig!~josef@unaffiliated/josefig] has joined #ruby
jcromartie [jcromartie!~jcromarti@c-69-140-238-182.hsd1.md.comcast.net] has joined #ruby
<jcromartie> shevy: so then, are methods added to a class from within a module scoped to that module somehow?
<rippa> no
<banisterfiend> jcromartie: rippa knows his stuff
<banisterfiend> jcromartie: he was also a junior grandmaster chess champion in his native russia at 12 years old
friskd [friskd!~friskd@cpe-76-172-2-7.socal.res.rr.com] has joined #ruby
jaywastaken [jaywastaken!~jaywastak@unaffiliated/jaywastaken] has joined #ruby
<shevy> hmm
<shevy> I'd wish he'd have been a freerunner in russia instead cuz those guys are cool
danishkhan [danishkhan!~danishkha@c-71-198-248-234.hsd1.ca.comcast.net] has joined #ruby
nza [nza!~krokodil@199.168.141.113] has joined #ruby
g0r_ [g0r_!~gregor@static.73.94.4.46.clients.your-server.de] has joined #ruby
havenn [havenn!~skipper@pool-71-189-127-105.lsanca.fios.verizon.net] has joined #ruby
denysonique_ [denysonique_!u484@gateway/web/irccloud.com/x-ofedeuhfklwpxkci] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
apok [apok!~apok@96.24.67.22] has joined #ruby
jgaskins [jgaskins!3a07b105@gateway/web/freenode/ip.58.7.177.5] has joined #ruby
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
[RHQme]stringo0 [[RHQme]stringo0!~JLstring@bas1-toronto42-1279599281.dsl.bell.ca] has joined #ruby
relix [relix!u2146@gateway/web/irccloud.com/x-wroniqicsoastyye] has joined #ruby
srid [srid!u3297@gateway/web/irccloud.com/x-pdhkiszediurpojx] has joined #ruby
srid [srid!u3297@unaffiliated/srid] has joined #ruby
srid [srid!u3297@gateway/web/irccloud.com/x-pdhkiszediurpojx] has joined #ruby
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
arnihermann [arnihermann!u1395@gateway/web/irccloud.com/x-miijflpjehjwllkf] has joined #ruby
dkannan [dkannan!u480@gateway/web/irccloud.com/x-rxfgryqikscmbvdv] has joined #ruby
MoMo [MoMo!u1590@gateway/web/irccloud.com/x-zvrtvhbfbeuebxaw] has joined #ruby
shaatar [shaatar!u648@gateway/web/irccloud.com/x-vdsjuybvrrjuscpj] has joined #ruby
c0rn [c0rn!~c0rn@50-0-142-2.dsl.dynamic.sonic.net] has joined #ruby
fcoury [fcoury!u2238@gateway/web/irccloud.com/x-itrbfnnksujcston] has joined #ruby
<jcromartie> ah ha! so here's the deal
<jcromartie> module MyModule; class String; … end end
<jcromartie> that defines MyModule::String as a new class
<jcromartie> it does not open up String to add new methods
chrxn [chrxn!chrxn@69.4.233.32] has joined #ruby
mikeric [mikeric!~mike@S0106c03f0e8b23f3.vc.shawcable.net] has joined #ruby
pen [pen!~pen@g1pc2n249.g1.ntu.edu.tw] has joined #ruby
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby
frontendloader [frontendloader!~r@207-118-138-238.dyn.centurytel.net] has joined #ruby
i8degrees1 [i8degrees1!~i8degrees@ip70-178-131-208.ks.ks.cox.net] has joined #ruby
djdb [djdb!~digitalbo@linux.minsk.tutby.com] has joined #ruby
stoffus [stoffus!~stoffus@exch-ad.bahnhof.net] has joined #ruby
seivan [seivan!~seivan@cm242.eta204.maxonline.com.sg] has joined #ruby
Alt-255 [Alt-255!~blah@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
<shevy> that's what rippa said to him an hour ago!
joshfng [joshfng!~joshfng@ool-45713bd4.dyn.optonline.net] has joined #ruby
taii [taii!~tai@85-127-72-17.dynamic.xdsl-line.inode.at] has joined #ruby
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
azureye [azureye!~azureye@140.247.160.74] has joined #ruby
gianlucadv [gianlucadv!~gianlucad@109.54.208.110] has joined #ruby
RORgasm [RORgasm!~rorgasm@nyv-exweb.iac.com] has joined #ruby
i8degrees [i8degrees!~i8degrees@ip70-178-131-208.ks.ks.cox.net] has joined #ruby
joshfng [joshfng!~joshfng@ool-45713bd4.dyn.optonline.net] has quit ["Leaving..."]
pkondzior [pkondzior!u768@gateway/web/irccloud.com/x-fhajdxmrdikafqci] has joined #ruby
zastaph [zastaph!zastaph@unaffiliated/zastaph] has joined #ruby
cook1es [cook1es!~chatzilla@c83-248-93-185.bredband.comhem.se] has joined #ruby
ryanf [ryanf!~rfitz@ec2-50-18-158-149.us-west-1.compute.amazonaws.com] has joined #ruby
Alt-255 [Alt-255!~blah@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
a_a_g [a_a_g!~aag@203.123.164.34] has joined #ruby
nate1975 [nate1975!~nate1975@173-160-148-42-Washington.hfc.comcastbusiness.net] has joined #ruby
senny [senny!~senny@edge.garaio.com] has joined #ruby
senny [senny!~senny@edge.garaio.com] has joined #ruby
telling [telling!ident42@176.9.244.139] has joined #ruby
telling [telling!ident42@unaffiliated/telling] has joined #ruby
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
tonini [tonini!~zastav@edge.garaio.com] has joined #ruby
yxhuvud [yxhuvud!mongo@h-225-165.a212.priv.bahnhof.se] has joined #ruby
michael_mbp [michael_mbp!~Marin@62.215.214.4] has joined #ruby
Locke23rus [Locke23rus!~quassel@128-70-13-168.broadband.corbina.ru] has joined #ruby
Tweeq [Tweeq!~Tweeq@ksdfw05.rightcompetence.com] has joined #ruby
mythmon [mythmon!~mythmon@osuosl/staff/Mythmon] has joined #ruby
Espen-_- [Espen-_-!Espen@sjarken.org] has joined #ruby
felipe [felipe!~felipe@unaffiliated/felipe] has joined #ruby
Z2FyZA [Z2FyZA!~gard@cm-84.215.22.0.getinternet.no] has joined #ruby
odinswand [odinswand!~odinswand@27-32-234-171.static.tpgi.com.au] has joined #ruby
kmwhite [kmwhite!~kmwhite@50-79-17-13-static.hfc.comcastbusiness.net] has joined #ruby
thone [thone!~thone@g225084106.adsl.alicedsl.de] has joined #ruby
deryldoucette [deryldoucette!~Deryl@cheetah-tiv-ppp1201.bmts.com] has joined #ruby
p1d [p1d!~p1d@dslb-088-067-031-141.pools.arcor-ip.net] has joined #ruby
justfielding1 [justfielding1!~justfield@ip70-178-131-208.ks.ks.cox.net] has joined #ruby
17SAAH8YZ [17SAAH8YZ!~quassel@79.114.119.80] has joined #ruby
aemaeth [aemaeth!~aemaeth@unaffiliated/aemaeth] has quit [#ruby]
cemycc [cemycc!~cemycc@79.112.104.154] has joined #ruby
alem0lars [alem0lars!~alem0lars@87.19.33.245] has joined #ruby
dpswireless [dpswireless!~dpswirele@97.71.36.65] has joined #ruby
jfoley [jfoley!~jfoley@c-67-173-240-154.hsd1.co.comcast.net] has joined #ruby
MissionCritical [MissionCritical!~MissionCr@unaffiliated/missioncritical] has joined #ruby
dnyy [dnyy!~dnyy@c-98-237-138-38.hsd1.wa.comcast.net] has joined #ruby
p1d [p1d!~p1d@ns1.vonaffenfels.de] has joined #ruby
LMolr [LMolr!~quassel@87.19.33.245] has joined #ruby
badabim [badabim!~badabim@c-98-207-235-20.hsd1.ca.comcast.net] has joined #ruby
xaxxon [xaxxon!~xaxxon@c-50-132-64-6.hsd1.wa.comcast.net] has joined #ruby
<xaxxon> can someonen explain how assignment overloading works in ruby? I'm having trouble understanding it and I can't find much docs
<xaxxon> how do I change what it does when I do an assignment?
mafolz [mafolz!~mafolz@dhcp50-203.start.uni-saarland.de] has joined #ruby
<xaxxon> that's pretty much all I found but I don't understand it
bier [bier!~bier@p5085F26F.dip.t-dialin.net] has joined #ruby
<rippa> you can define method derp= on your class
<rippa> and do MyClass.derp = herp
<ryanf> *MyClass.new.derp = herp
<xaxxon> I see. can you pick that up from method_missing?
pen [pen!~pen@g1pc2n249.g1.ntu.edu.tw] has joined #ruby
<xaxxon> to see all member assignments?
<xaxxon> i guess I can TIAS
<xaxxon> but I'm guessing no :(
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
<xaxxon> whoa! it does work
<xaxxon> ..crazy
ThirdThough [ThirdThough!~djasdklaj@95.239.224.252] has joined #ruby
<ThirdThough> hey
<xaxxon> hi
shadow338 [shadow338!~shadow338@su-nat.int.smq.datapipe.net] has joined #ruby
<ThirdThough> I remember a tool called Ruby (v3.0), used for packing trojans
<ThirdThough> is this channel related to it?
moshee [moshee!~moshee@c-50-135-229-127.hsd1.wa.comcast.net] has joined #ruby
moshee [moshee!~moshee@unaffiliated/moshee] has joined #ruby
<xaxxon> likely not
<xaxxon> more about the programming language
mikeric [mikeric!~mike@S0106c03f0e8b23f3.vc.shawcable.net] has joined #ruby
<xaxxon> i'm far more likely to be unpacking a trojan
<ThirdThough> hah wont hurn anyone m8, mine was just a wrong though
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
cjk101010 [cjk101010!~ckruse@painkiller.defunced.de] has joined #ruby
<shevy> hehe
<shevy> ThirdThough, Ruby the programming language is similar in spirit to other programming languages like python, perl, php
<shevy> I guess most widespread viruses are spread in binary format. the code of ruby scripts will tend to be plain text files
<ThirdThough> I'm a total noob about programming! I don't know anything
Sliker [Sliker!~ponies@87.114.96.212] has joined #ruby
<ThirdThough> I downloaded an e-book for dummies about it, but I still need to begind reading it
<shevy> you have the rest of your life to get better! :D
<shevy> well, knowing theory is always nice, but the best way is to start writing scripts as soon as possible on your own (no matter what language)
bertho_y [bertho_y!~bertho_y@163.5.131.49] has joined #ruby
c0rn [c0rn!~c0rn@50-0-142-2.dsl.dynamic.sonic.net] has joined #ruby
odinswand [odinswand!~odinswand@27-32-234-171.static.tpgi.com.au] has joined #ruby
<ThirdThough> uhm, Its getting hard, even the introduction looks hard lol. But after all, I think it's better to buy a real book to keep its content in mind
<ThirdThough> Im not that confident with e-books
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
<ThirdThough> from your experience, with which language you advice me to begin?)
<shevy> I did that with ruby ~6 years ago, bought the Pickaxe. it was nice for a long time
<ThirdThough> I was thinking about Batch
<shevy> perhaps 2 or 3 years ago, I bought the newer pickaxe, but it was no longer that useful to me
<shevy> ThirdThough I started with php
<ThirdThough> I'm 22 and I would start learning it asap
<ThirdThough> isnt php related to webpages developing?
<shevy> ruby as language in itself is better than php though. php is somewhat easy to learn on the other hand
<shevy> yeah
<shevy> both ruby and python are better than php
<shevy> well, you can use php for non-web stuff too
<shevy> but it's kinda annoying for that
<ThirdThough> arent all these programming languages confusing your minds? :D
<cjk101010> well. if PHP is „better” depends on your milage.
<shevy> yup
<shevy> ThirdThough, but there are ways to handle that... for instance, one strategy I like is to try to keep things as simple (and also elegant) as possible, all the time
<cjk101010> there are no technical reasons why Ruby should be better. Both languages are able to run lage sites (e.g. Facebook PHP, Github Ruby)
randym [randym!~randym@EM114-48-68-123.pool.e-mobile.ne.jp] has joined #ruby
<ThirdThough> well thats the right spirit for most things :P
<shevy> and to write code in a way as to not force me to think at all about it, like you know. to try to code in an automated way
<shevy> like a worker in a factory on the assembly line
ThirdThough [ThirdThough!~djasdklaj@unaffiliated/thirdthough] has joined #ruby
<shevy> cjk101010 no technical reason? lines of code is less in ruby than in php to solve any given problem
<cjk101010> shevy: for you is less lines of code good. For other people verbosity is good. That's what I was talking about. Both languages are capable of running large sites, it is simply a question of mindset
<shevy> well, ok. a difference of philosophy then. to me, verbose code in itself is a bad thing as I follow the "as simple as possible but not simpler!" philosophy
<cjk101010> for me, too. But I know people thinking different :)
paissad [paissad!~paissad@89-92-16-151.hfc.dyn.abo.bbox.fr] has joined #ruby
lolmaus [lolmaus!lolmaus@home-pool-188-244-44-102.com2com.ru] has joined #ruby
<davidcelis> just condemned another friend to http://tryruby.org/
<davidcelis> muahahahahahah
<davidcelis> MUAHAHAHHAHAH
<banisterfiend> davidcelis: do you run ruby 1.9.2+ ?
<davidcelis> 1.9.3 bro
elliot98 [elliot98!~elliot@77.124.207.61] has joined #ruby
elliot98 [elliot98!~elliot@unaffiliated/elliot98] has joined #ruby
<banisterfiend> davidcelis: great, are you free to try something?
<davidcelis> ?
<banisterfiend> davidcelis: a gem, but u dont have to do any work, just have to run a script (after you installed the gem)
<davidcelis> what gem
<banisterfiend> davidcelis: prerelease of pry-exception_explorer
<davidcelis> k
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
andreime [andreime!~andrei-ci@82.79.96.20] has joined #ruby
<banisterfiend> davidcelis: gem install pry-exception_explorer --pre
pi3r [pi3r!~pi3r@LSt-Amand-152-32-39-189.w80-11.abo.wanadoo.fr] has joined #ruby
<davidcelis> now what
enherit [enherit!~enherit@66-214-13-183.dhcp.lnbh.ca.charter.com] has joined #ruby
<banisterfiend> davidcelis: one sec
<banisterfiend> davidcelis: put this in a file and run it https://gist.github.com/1709458
Nss [Nss!~nss@host241-19-dynamic.53-79-r.retail.telecomitalia.it] has joined #ruby
<banisterfiend> davidcelis: damn, but chop out the crap from the first two lines
<banisterfiend> 4 lines
<banisterfiend> get rid of all that 'unless' stuff
<banisterfiend> so the first line should just be require 'pry-exception_explorer' :)
<davidcelis> the last end caused a syntax error
<davidcelis> but by god, it located the exception
<banisterfiend> davidcelis: nice
<davidcelis> couldnt do anything, though
<davidcelis> tried to run alpha and it just kept complaining about the exception
<davidcelis> is that intended?
<banisterfiend> davidcelis: so the file should look like this: https://gist.github.com/1709464
<banisterfiend> davidcelis: yes it's correct, you can 'continue' the exception to skip over the exception by typiing: continue-exception
<banisterfiend> inside the pry console
<davidcelis> ah
<davidcelis> cool
<banisterfiend> davidcelis: thanks!
<davidcelis> np
<davidcelis> have you installed MY gem and used it? ;)
<banisterfiend> what's your gem?
sandstrom [sandstrom!~sandstrom@c213-89-142-16.bredband.comhem.se] has joined #ruby
sandstrom [sandstrom!~sandstrom@unaffiliated/sandstrom] has joined #ruby
<banisterfiend> davidcelis: i would like to try it, but i dont do rails, sorry ;)
<banisterfiend> if you have any pure ruby gems, i'd be happy to try them
<davidcelis> oh well
<davidcelis> SPREAD THE WORD
<davidcelis> tell your friends, tell your mom
<banisterfiend> what's the moustache thing about btw?
<banisterfiend> i see a few people have it and i dont really get it
<davidcelis> wat
<davidcelis> oh lol
<davidcelis> http://mustache.me
<davidcelis> oh wait
<davidcelis> that's the lame one
<davidcelis> my bad!
<davidcelis> thats the good one
<banisterfiend> so it uses computer vision to add the moustache?
<davidcelis> yep
<davidcelis> facial recognition
<davidcelis> all to add a mustache
<davidcelis> i fucking love our industry
jdspiralz [jdspiralz!jdspiral@oberon.vectori.net] has joined #ruby
pixie79 [pixie79!~MarkOlliv@212.159.53.154] has joined #ruby
pixie79 [pixie79!~MarkOlliv@212.159.53.154] has quit [#ruby]
pixie79 [pixie79!~MarkOlliv@212.159.53.154] has joined #ruby
pixie79 [pixie79!~MarkOlliv@212.159.53.154] has quit [#ruby]
trivol [trivol!~aurelien@gra94-1-81-57-175-179.fbx.proxad.net] has joined #ruby
jdspiralz [jdspiralz!jdspiral@oberon.vectori.net] has joined #ruby
bluehavana [bluehavana!u2820@gateway/web/irccloud.com/x-jcnbmeromqqyfska] has joined #ruby
pixie79 [pixie79!~MarkOlliv@212.159.53.154] has joined #ruby
p1d [p1d!~p1d@ns1.vonaffenfels.de] has joined #ruby
nd____ [nd____!~nd@mnhm-5f74c581.pool.mediaWays.net] has joined #ruby
<lolmaus> YAY! I've coded my second Ruby program evah! It proves the Monty Hill problem
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
pixie79 [pixie79!~MarkOlliv@212.159.53.154] has quit [#ruby]
geofridh [geofridh!~geofridh@gateway/tor-sasl/geofridh] has joined #ruby
p1d [p1d!~p1d@ns1.vonaffenfels.de] has joined #ruby
Axs [Axs!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
pantsman [pantsman!~pantsman@2.25.205.53] has joined #ruby
pantsman [pantsman!~pantsman@pdpc/supporter/active/pantsman] has joined #ruby
Ammar01 [Ammar01!~hassaa10@gatej.mh.bbc.co.uk] has joined #ruby
ikaros [ikaros!~ikaros@dslb-094-219-214-087.pools.arcor-ip.net] has joined #ruby
jlebrech [jlebrech!~textual@host86-135-203-241.range86-135.btcentralplus.com] has joined #ruby
gianlucadv [gianlucadv!~gianlucad@st-dellaved.statistica.unimib.it] has joined #ruby
indeterminate [indeterminate!~sei@user-3c2h3m6.cable.mindspring.com] has joined #ruby
asmdroid [asmdroid!~nchat@5ac02823.bb.sky.com] has joined #ruby
tuxaddicted [tuxaddicted!~tuxaddict@202.60.13.34] has joined #ruby
gyre007 [gyre007!~gajdosm@213.86.197.188] has joined #ruby
tvo [tvo!~tvo@katapult/developer/tvo] has joined #ruby
ernad [ernad!~ernad@92.36.169.60] has joined #ruby
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
Muz [Muz!~muz@last.fm/moose/Muz] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
tubgoat_ [tubgoat_!~tubgoat@gateway/tor-sasl/tugboat] has joined #ruby
odinswand [odinswand!~odinswand@27-32-234-171.static.tpgi.com.au] has joined #ruby
robotmay [robotmay!~robotmay@94.30.13.228] has joined #ruby
punkrawkR [punkrawkR!~freddiebo@h-9-122.a328.priv.bahnhof.se] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@213.152.255.138] has joined #ruby
dotemacs [dotemacs!u801@gateway/web/irccloud.com/x-hqsazabmfctrijhe] has joined #ruby
mohits [mohits!~mohit@unaffiliated/mohits] has joined #ruby
roolo [roolo!~roolo@customer-79-127-150-214.net.angelnet.cz] has joined #ruby
Guusen [Guusen!~Gus@92.69.245.55] has joined #ruby
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
bertho_y [bertho_y!~bertho_y@163.5.131.49] has joined #ruby
x0F_ [x0F_!~x0F@unaffiliated/x0f] has joined #ruby
shevy [shevy!~shevy@194-166-31-66.adsl.highway.telekom.at] has joined #ruby
Spockz [Spockz!~Spockz@095-097-113-150.static.chello.nl] has joined #ruby
InBar [InBar!~v@77.242.201.52] has joined #ruby
mylifeisfine [mylifeisfine!736e0874@gateway/web/freenode/ip.115.110.8.116] has joined #ruby
<mylifeisfine> hai friends...:)
<mylifeisfine> Is there a way i can manage my indentations in ruby files.. without having to do it all explicitly? any commands or any editor.. 1 tab = 2 spaces !!
<mylifeisfine> any suggestions please
<mylifeisfine> 1
<mylifeisfine> ^
kreantos [kreantos!~kreantos@clnet-kmu02-090.ikbnet.co.at] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
tommyblue [tommyblue!~tommyblue@galois.linusse.org] has joined #ruby
mailo [mailo!~roolo@customer-79-127-150-214.net.angelnet.cz] has joined #ruby
tvw [tvw!~tv@212.79.9.150] has joined #ruby
shadoi [shadoi!~Adium@c-71-202-122-8.hsd1.ca.comcast.net] has joined #ruby
mklappstuhl [mklappstuhl!~mklappstu@p4FC3E70C.dip.t-dialin.net] has joined #ruby
Shrink [Shrink!sgupta@redhat/shrink] has joined #ruby
ernad [ernad!~ernad@92.36.169.60] has joined #ruby
snearch [snearch!~snearch@e178059244.adsl.alicedsl.de] has joined #ruby
mk03 [mk03!~mk03@61.245.118.41.er.eaccess.ne.jp] has joined #ruby
odinswand [odinswand!~odinswand@27-32-234-171.static.tpgi.com.au] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
philipp_ [philipp_!~philipp@h1902189.stratoserver.net] has joined #ruby
emocakes [emocakes!~om@p57974F57.dip.t-dialin.net] has joined #ruby
ephemerian [ephemerian!~ian@82-71-51-229.dsl.in-addr.zen.co.uk] has joined #ruby
TomJ [TomJ!~TomJ@88.96.227.182] has joined #ruby
TomJ [TomJ!~TomJ@unaffiliated/tomj] has joined #ruby
tommyblue [tommyblue!~tommyblue@galois.linusse.org] has joined #ruby
mklappst_ [mklappst_!~mklappstu@p5B2C4BF3.dip.t-dialin.net] has joined #ruby
eregon [eregon!~eregon@eregon.me] has joined #ruby
deronnax [deronnax!~deronnax@nat-office2-of1par.ip.rtblw.com] has joined #ruby
ranjan [ranjan!~538547@115.111.178.162] has joined #ruby
Drakx_ [Drakx_!~dunno@unaffiliated/drakx] has joined #ruby
omry_ [omry_!~omry@DSL212-235-83-63.bb.netvision.net.il] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
odinswand [odinswand!~odinswand@27-32-234-171.static.tpgi.com.au] has joined #ruby
jaywastaken [jaywastaken!~jaywastak@unaffiliated/jaywastaken] has joined #ruby
ibtkm [ibtkm!~pooya@2.144.49.205] has joined #ruby
<ibtkm> Hi all.
<ibtkm> How can I handle a exception in ruby but with continuing the rest of the code? for example we are in a for loop that prints 0 / i and in one of the steps 0 / 0 happens and exception works but I want that the loop continues his job and printing 0 / i (for another i).
<ibtkm> how can I do that? tnx
ephemerian [ephemerian!~ian@82-71-51-229.dsl.in-addr.zen.co.uk] has joined #ruby
ibtkm [ibtkm!~pooya@2.144.49.205] has quit [#ruby]
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
Shrink [Shrink!sgupta@redhat/shrink] has joined #ruby
eka [eka!~eka@181.28.169.86] has joined #ruby
catphish [catphish!~catphish@2001:9d8:2005:11:222:15ff:fe88:aae2] has joined #ruby
fr0gprince_mac [fr0gprince_mac!~fr0gprinc@178-85-90-223.dynamic.upc.nl] has joined #ruby
<catphish> is there an acceptable way to use assignments in if statements?
dgdgddx [dgdgddx!~dgdgddx@61.172.216.116] has joined #ruby
<catphish> i guess its no big deal to add an extra line of code
<banisterfiend> catphish: yes, the C method ;)
<catphish> banisterfiend: qe?
<banisterfiend> catphish: if val = bink(); val.blah; else do something else; end
<catphish> that's what i'm trying to do :(
<banisterfiend> it's a common C idiom
<banisterfiend> i should work
<catphish> it does, but ruby whiles about it
<catphish> *whines
<catphish> warning: found = in conditional, should be ==
<banisterfiend> catphish: because you're running with warnings on?
<catphish> i always have warnings on i guess
<banisterfiend> i mean you passed a flag to `ruby` executable?
<catphish> i'm just testing in irb
nari [nari!~nari@p929507.totrnt01.ap.so-net.ne.jp] has joined #ruby
<banisterfiend> catphish: no no no, use pry insteda
<banisterfiend> instead*
<catphish> pry?
<banisterfiend> catphish: http://pry.github.com
<catphish> it's just annoying that ruby considers it worthy of a warning
canton7 [canton7!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
<banisterfiend> catphish: well, that doesnt make sense
<banisterfiend> catphish: maybe ruby's being intelligent
<banisterfiend> try
<catphish> perhaps
<banisterfiend> catphish: def a() rand(10) end; if (val = a) < 4 then puts "less than 4"; else puts "greater 4"; end
<catphish> interestingly it doesn't happen on a method
LMolr [LMolr!~quassel@87.19.33.245] has joined #ruby
<catphish> but it does happen if you want to assign constant values to things during the if
<catphish> so i guess it's a more unusual case that generates the warning
<catphish> thanks
<rippa> it's so people don't write "=" instead of "==" by accident
<catphish> i know why it's there :)
<banisterfiend> catphish: what if you assign constant values, and then put == after that?
<banisterfiend> as i did: if (val = a) == 10
<banisterfiend> or < or > (of course)
<catphish> if a=1==1
<catphish> its happy with that
<banisterfiend> cos what you had in your example doesn't deserve an if statement
<banisterfiend> so it's right to complain
<banisterfiend> since it's clear what branch it will take
<catphish> but not with the overcomplicated structure i was trying to use
<banisterfiend> oh ok
VoiDeT [VoiDeT!~voidet@203.219.227.162] has joined #ruby
<VoiDeT> Hi all I'm wondering if there is a cleaner/smaller way of doing this http://pastebin.com/5fiNwB8A, flattening a sub array down into a string
ccooke [ccooke!~ccooke@spirit.gkhs.net] has joined #ruby
<catphish> something like if (condition and a = 1 or othercondition and a = 2)
lupine_85 [lupine_85!~lupine_85@unaffiliated/lupine-85/x-7392152] has joined #ruby
<canton7> VoiDeT, lines 4 through 8 could probably be replaced with v.map{ |sk| sk["name] }.join(',')
<canton7> with an added quote, of course
<thomasfedb> VoiDeT, something like this should work: newResult = Hash[*result.map {|k,v| [k, v.map {|s| s["name]}.join]}.flatten]
stoffus [stoffus!~stoffus@exch-ad.bahnhof.net] has quit [#ruby]
<VoiDeT> whoa
stoffus [stoffus!~stoffus@exch-ad.bahnhof.net] has joined #ruby
<canton7> thomasfedb, that'll fail if v doesn't repond to 'each', which is one of the things that VoiDeT tests for
berserkr [berserkr!~david@212.122.111.205.dyn.user.ono.com] has joined #ruby
<thomasfedb> canton7, I am assuming some stuff because he doesn't really cover that case propperly imo
odinswand [odinswand!~odinswand@27-32-234-171.static.tpgi.com.au] has joined #ruby
<thomasfedb> canton7, he could add that with a unary operator
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
<rippa> Array(v)
<VoiDeT> thanks a lot both of you
<VoiDeT> what does Hash[*varname mean?
csherin [csherin!~csherin@115.111.177.122] has joined #ruby
<rippa> convert into hash
<rippa> * is splat
ReTFEF [ReTFEF!JS@unaffiliated/thetfef] has joined #ruby
<gyre007> guys I have a question about rvm...if I create gemset as one user and want another one to use the same gemset do I have to install/set this gemset separately for each user I want to be using it or can they be shared ?
mikewintermute [mikewintermute!~mikewinte@188-223-213-21.zone14.bethere.co.uk] has joined #ruby
<gyre007> I just set up gemset for one user, but when I tried to run rvm use 1.9.2@gemset_name I get crazy lots of user permission errors...I noticed that those gemset directories are group-owned by rvm group - if I add a new user to that group everything should work fine right ?
joast [joast!~rick@76.178.187.164] has joined #ruby
<VoiDeT> splat?
<rippa> foo(a, b, c) == foo(*[a, b, c])
faber [faber!~faber@ppp-195-10.26-151.libero.it] has joined #ruby
Ammar_Frameworks [Ammar_Frameworks!~hassaa10@gatek.thls.bbc.co.uk] has joined #ruby
<banisterfiend> rippa: you're a good programmer, why dont you code some gems ?
<rippa> I can't into programming
<banisterfiend> rippa: why not
<rippa> too much trouble
<banisterfiend> rippa: so what do u do instead?
<rippa> writing test, bundling stuff
<rippa> mainly I do nothing
<rippa> browse internet
<rippa> chat in IRC
<rippa> sometimes draw something in corel
<banisterfiend> rippa: it's not so hard, and you have a talent for it i think. You should do it
i8degrees1 [i8degrees1!~i8degrees@ip70-178-131-208.ks.ks.cox.net] has joined #ruby
atmosx [atmosx!~atmosx@188.4.229.14.dsl.dyn.forthnet.gr] has joined #ruby
<atmosx> Hello
JohnBat26 [JohnBat26!~Eugene@89.175.77.79] has joined #ruby
<atmosx> I'm using printf to get some values. Like here http://codepad.org/LHCdVecT and then I use this function to display the value using puts like here: http://codepad.org/mk3c5X0c but the result I'm getting is like: "79.00 KBThe database has 1 tables, size, featuring 500 total entries."
<shevy> where is printf there?
d2dchat [d2dchat!~d2dchat@c-98-209-18-197.hsd1.mi.comcast.net] has joined #ruby
<atmosx> here shevy http://codepad.org/LHCdVecT
<atmosx> can I use 'return' instead of printf?
<atmosx> thing is, I need printf's syntax to make it look pretier
<shevy> I see, you want nicely formatted output
<atmosx> hm I could assign a value to a new variable let's say z in function 1
<shevy> btw you can use %
<shevy> x = 5; '%5s' % x # => " 5"
<atmosx> and then use printf directly into function 2
azbarcea__ [azbarcea__!~quassel@79.114.119.80] has joined #ruby
<shevy> I'd do it differently though
<shevy> I would assemble your output string, and then outpit it
<atmosx> show me a sample to get it
<shevy> *output
<shevy> the %? the sample is above ^^^ ! :)
<atmosx> oupit it?
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
<atmosx> let me try
<shevy> *output
pen [pen!~pen@2002:8c70:e6c7:b:a056:d981:6dd7:6e90] has joined #ruby
<atmosx> hm nice
<shevy> and btw
<atmosx> can I use return instead
<shevy> your code is strange man, did you test it
<shevy> printf("%0.2f GB\n", x/mg)
<shevy> where from does mg come?
<atmosx> shevy: yeah works fine
<atmosx> I've test several times
<shevy> ok where does mg come from?
<VoiDeT> rippa: i see the splat as like a catchall
<atmosx> omg
mattskic [mattskic!~matt@CPE-58-174-78-71.aecz2.woo.bigpond.net.au] has joined #ruby
<atmosx> mg is wrong
<shevy> I just tried to test your code, and irb spit out a division error ;)
<atmosx> oh hmmm I should that too
<atmosx> I just run it
<mattskic> Hi, has anyone used Net::SSH for port forwarding a mysql connection?
<atmosx> and since it never needed to divide using mg never got the error
<shevy> you can use return to return a value out of a method atmosx
ikaros [ikaros!~ikaros@studpool-wlan-74-157.fs.fbi.h-da.de] has joined #ruby
<shevy> atmosx, something like http://pastie.org/3288324 but this code doesnt work yet, something is wrong
<shevy> you can omit the () parens here though:
<shevy> mb = 1024 ** 2
<atmosx> shevy: can I just do something like -> return "%0.2f GB\n" % x/m
Sliker [Sliker!~ponies@87.114.96.212] has joined #ruby
<atmosx> nope
<ranjan> name or service not found rails..........any help?
<mattskic> Are ruby threads preemptive in the ruby interpreter? I suspect my call to Mysql.new is causing a deadlock with Net:SSH on the other thread.
mohits1 [mohits1!~mohit@115.113.226.194] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
mohits [mohits!~mohit@unaffiliated/mohits] has joined #ruby
kreantos [kreantos!~kreantos@clnet-kmu02-090.ikbnet.co.at] has joined #ruby
krz [krz!~foobar@58.69.201.60] has joined #ruby
odinswand [odinswand!~odinswand@27-32-234-171.static.tpgi.com.au] has joined #ruby
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
heeton [heeton!~alexheato@mail.bournston.co.uk] has joined #ruby
<heeton> Out of curiosity, whats the fastest way to check if an integer is 0?
<heeton> Let's say the integer can be either 1 or 0
<heeton> For instance, .even? is faster than == 0 (I presume because it just checks the last bit of the integer)
<heeton> Anything even faster?
ccooke [ccooke!~ccooke@spirit.gkhs.net] has joined #ruby
<banisterfiend> heeton: hhehehehheehehehehe
<banisterfiend> heeton: you should be a C programmer ;)
gianlucadv [gianlucadv!~gianlucad@rna.bio.disco.unimib.it] has joined #ruby
mohits1 [mohits1!~mohit@115.111.205.154] has joined #ruby
<heeton> (Just curious, it's not actually going to be of any use ;))
mohits1 [mohits1!~mohit@115.111.205.154] has quit [#ruby]
<canton7> interestingly, even? checks the second to last bit
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
caveat- [caveat-!hoax@gateway/shell/bshellz.net/x-ljgexiwolzedrcmp] has joined #ruby
Z2FyZA [Z2FyZA!~gard@cm-84.215.22.0.getinternet.no] has joined #ruby
LMolr [LMolr!~quassel@87.19.33.245] has joined #ruby
dwon [dwon!~dwon@75-119-251-37.dsl.teksavvy.com] has joined #ruby
danibx [danibx!~danibx@200.175.180.88.static.gvt.net.br] has joined #ruby
lorandi [lorandi!~lorandi@201-1-140-2.dsl.telesp.net.br] has joined #ruby
kaiwren [kaiwren!~KaiWren@122.167.116.57] has joined #ruby
`juice [`juice!~juice@unaffiliated/juice/x-2403625] has joined #ruby
`juice [`juice!~juice@unaffiliated/juice/x-2403625] has quit [#ruby]
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
seivan [seivan!~seivan@cm242.eta204.maxonline.com.sg] has joined #ruby
jcromartie [jcromartie!~jcromarti@c-69-140-238-182.hsd1.md.comcast.net] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
<shevy> let's postulate that .even? is the fastest then
milkpost_ [milkpost_!~dec@173-28-195-157.client.mchsi.com] has joined #ruby
seivan [seivan!~seivan@cm242.eta204.maxonline.com.sg] has joined #ruby
seivan [seivan!~seivan@cm242.eta204.maxonline.com.sg] has joined #ruby
joast [joast!~rick@76.178.184.101] has joined #ruby
snapcase [snapcase!snapcase@shokushuzeme.me] has joined #ruby
thomas8207 [thomas8207!3ef59c34@gateway/web/freenode/ip.62.245.156.52] has joined #ruby
BiHi [BiHi!~bihi@88.165.129.29] has joined #ruby
Nss_ [Nss_!~nss@host241-19-dynamic.53-79-r.retail.telecomitalia.it] has joined #ruby
<thomas8207> anyone familar with jruby?
nari [nari!~nari@p929507.totrnt01.ap.so-net.ne.jp] has joined #ruby
<catphish> yes they are
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
Sailias [Sailias!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby
jay_zawrotny [jay_zawrotny!~Jay@c-71-205-218-131.hsd1.mi.comcast.net] has joined #ruby
qelsi [qelsi!~qelsi@121.Red-83-33-85.dynamicIP.rima-tde.net] has joined #ruby
heeton [heeton!~alexheato@mail.bournston.co.uk] has quit [#ruby]
`brendan [`brendan!~b@107-1-118-122-ip-static.hfc.comcastbusiness.net] has joined #ruby
visof [visof!~visof@unaffiliated/visof] has joined #ruby
<visof> hello
lorandi [lorandi!~lorandi@201-1-140-2.dsl.telesp.net.br] has joined #ruby
tomzx [tomzx!~tomzx@66-77.162.dsl.aei.ca] has joined #ruby
gokul [gokul!~gokulnath@115.111.177.122] has joined #ruby
<visof> i'm using amazon-ec2 gem , i'm trying to write my own script to use it and i use the same info as in the default script https://github.com/grempe/amazon-ec2/blob/master/bin/ec2-gem-example.rb , my script http://codepad.org/Dp9Q8BsB and the error http://codepad.org/XTwtWcz9
<visof> please anyone can help me on that?
<visof> i don't know why the example work and my script doesn't work
<visof> none can help?
DuoSRX [DuoSRX!~duosrx@2a01:e34:edd7:4330:3615:9eff:fe93:de4e] has joined #ruby
ccooke [ccooke!~ccooke@spirit.gkhs.net] has joined #ruby
justfielding [justfielding!~justfield@ip70-178-131-208.ks.ks.cox.net] has joined #ruby
safetyscissors [safetyscissors!~safetysci@112.202.53.79] has joined #ruby
<shevy> visof I never used amazon-ec2 gem
sdeobald [sdeobald!~steven@122.167.116.57] has joined #ruby
<shevy> it's a bit specialized I think, probably not many people here have used it (and remember, many people here are idling)
<JonnieCache> maybe theres an ec2 or aws channel
Nss [Nss!~nss@host241-19-dynamic.53-79-r.retail.telecomitalia.it] has joined #ruby
<shevy> come on man
huner [huner!~ozhuner@mail.bournston.co.uk] has joined #ruby
<shevy> don't raise false hopes :(
<shevy> evil evil JonnieCache
<shevy> hmm though perhaps
<shevy> I dont even know how large amazon is
<shevy> (on the intarnetz)
<JonnieCache> a lot of people use it there might be an unofficial channel
cousine [cousine!~cousine@41.32.101.235] has joined #ruby
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
pixie79 [pixie79!~MarkOlliv@5adecadd.bb.sky.com] has joined #ruby
flip_digits [flip_digits!~textual@c-76-122-14-228.hsd1.fl.comcast.net] has joined #ruby
pixie79 [pixie79!~MarkOlliv@5adecadd.bb.sky.com] has quit [#ruby]
huner [huner!~ozhuner@mail.bournston.co.uk] has quit [#ruby]
jasim [jasim!~jasim@122.167.116.57] has joined #ruby
mayfield [mayfield!~mayfield@cpe-24-243-43-239.satx.res.rr.com] has joined #ruby
Twixmix [Twixmix!~ryanniels@blk-11-127-105.eastlink.ca] has joined #ruby
<visof> shevy: i think it's not amazon-ec2 error but ruby related error that i did
<visof> it's require problem
ickmund [ickmund!~ickmund@cli-5b7e85fc.bcn.adamo.es] has joined #ruby
<visof> shevy: can you please check the scripts ?
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
jrist [jrist!jrist@nat/redhat/x-ibghxcondjgymapw] has joined #ruby
cemycc [cemycc!~cemycc@89.41.208.17] has joined #ruby
b26 [b26!~b@66-208-246-34-ubr02b-waldlk01-mi.hfc.comcastbusiness.net] has joined #ruby
rowanu [rowanu!~rowanu@modemcable011.136-177-173.mc.videotron.ca] has joined #ruby
mberning [mberning!~M@rrcs-98-102-134-241.central.biz.rr.com] has joined #ruby
madrax [madrax!~Miguel@200.124.199.108] has joined #ruby
<madrax> Goooooood Morning Ruby :D
<madrax> one at a time please :)
tommyvyo [tommyvyo!~tommyvyo@38.123.129.115] has joined #ruby
<twixmix> Morning!
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
RoUS [RoUS!~KenCoar@apache/committer/coar] has joined #ruby
<madrax> mornin twixmix
jdspiralz [jdspiralz!jdspiral@oberon.vectori.net] has joined #ruby
<twixmix> hey madrax
<madrax> what's up?
techhelp [techhelp!~Dan@ip70-162-10-229.ph.ph.cox.net] has joined #ruby
DerTyp [DerTyp!8d3495ad@gateway/web/freenode/ip.141.52.149.173] has joined #ruby
<epitron> radmax
<madrax> pretty silent the channel today
<twixmix> How's it going?
<epitron> silent, but deadly
<twixmix> Ya, it's only early in NA though.
<madrax> tronepi!
<madrax> :D
<epitron> tpieron? :)
<madrax> Oh, I'm in south america
nvez [nvez!~textual@bas1-montreal54-1167956012.dsl.bell.ca] has joined #ruby
nvez [nvez!~textual@unaffiliated/nvez] has joined #ruby
<madrax> it's mid day in uruguay
<madrax> radmax? :D
azbarcea [azbarcea!~quassel@79.114.119.80] has joined #ruby
<twixmix> haha, it's only 944AM here. Still nice and early.
<epitron> RADMAX: THE WOAD RORRIOR
<DerTyp> hello, I'm having trouble getting GetOnTracks running. Im running a ubuntu server.
<epitron> RAWRIOR
<DerTyp> I want to install RedCloth
<madrax> Hi DerTyp ! nice to have you here
<madrax> too bad to hear that :(
<epitron> getontracks? is that like, rails in a box?
<madrax> hope you make it work!
<DerTyp> get on tracks is Task management web interface
<epitron> oh yeah, tracks
<JonnieCache> no it sounds like rails in a box doesnt it
<DerTyp> and its running with ruby
<DerTyp> I've got to install RedCloth
<epitron> good luck, padowan
<madrax> gem install redcloth? :$
<epitron> gem installing is a difficult task
<epitron> aww, you spoiled it :)
qelsi [qelsi!~qelsi@121.Red-83-33-85.dynamicIP.rima-tde.net] has joined #ruby
<madrax> sorry for that! :(
<DerTyp> seems easy yes
* madrax slaps himself!
<DerTyp> but
<epitron> missing build-essential?
<JonnieCache> i can vouch for this script
akem [akem!~akem@253.195.84.79.rev.sfr.net] has joined #ruby
<DerTyp> when i use linux I always have dependency problems
akem [akem!~akem@unaffiliated/akem] has joined #ruby
<JonnieCache> it sets everything up for you
jdspiralz [jdspiralz!jdspiral@oberon.vectori.net] has joined #ruby
<epitron> are you using rails gems from ubuntu packages?
<JonnieCache> but if you have already started doing it yourself there might be conflicts. it uses rvm though so it should be ok
<epitron> s/rails/ruby/
<epitron> omg i just said rails instead of ruby
<epitron> someone smack me
<banisterfiend> JonnieCache: i think u were talking about this the other day: https://github.com/pry/pry-exception_explorer
<banisterfiend> epitron: i'll slap u on your bum-bum
* epitron files a lawsuit
Jackneill [Jackneill!~Jackneill@unaffiliated/jackneill] has joined #ruby
<twixmix> haha. I'm hopefully gonna get tons of Ruby reading done today. Currently trying to decide between Django and Rails, and learning Ruby in the first step in that long process.
<twixmix> So far Ruby seems to have some awesome features.
<JonnieCache> banisterfiend: not me
<JonnieCache> looks interesting though
<JonnieCache> actually maybe i was
<epitron> ruby is less rigid than python
<epitron> it makes for nice duct tape, which the web needs desparately
Savvis [Savvis!Savvis@68.140.79.239] has joined #ruby
<DerTyp> Error installing RedCloth: ERROR: Failed to build gem native extension.
<DerTyp> does anyone know what that means?!
<JonnieCache> DerTyp: youre missing some header packages
<epitron> also, all the web developer kids live in the rubyverse
<epitron> so you get the cool shit first :)
<madrax> and we all love the cool shit
<madrax> :D
<banisterfiend> JonnieCache: epitron was the main brains behind it, if you like it, write 'epitron is a genius' on your wall, and explain it to your wife (that it's worthwhile, that it needs to be done, that she should put up with it)
<epitron> hahah
<epitron> wtf
<epitron> i just suggested the features :)
<banisterfiend> epitron: EE.intercept() was yours, and that's the main API
<JonnieCache> DerTyp: run `sudo apt-get -y install wget curl build-essential clang bison openssl zlib1g libxslt1.1 libssl-dev libxslt1-dev libxml2 libffi-dev libyaml-dev libxslt-dev autoconf libc6-dev libreadline6-dev zlib1g-dev libcurl4-openssl-dev`
<epitron> i just wanted some way to pry when an exception blew up
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
a_a_g [a_a_g!~aag@203.123.164.34] has quit [#ruby]
<epitron> you actually made that happen
<JonnieCache> thats everything you'll ever need to run rails apps
<DerTyp> wow
<DerTyp> okay i go ahead and see
<epitron> JonnieCache: clang??
<JonnieCache> might be slight overkill for that getontracks app but its an all-inclusive list of common libraries used by rails related gems
<epitron> that's a big package :)
<JonnieCache> epitron: yeah that is an odd one. the list is from the railsready script by ryanbiggs.
<JonnieCache> DerTyp: maybe omit clang if you havent already run that
<epitron> ryanbiggs needs to cut some fat
<twixmix> Only worry I have about focusing on Ruby and Rails, is that it's usage outside of webdevelopment.
<twixmix> Whereas Python is used all over, Ruby seems to be used mainly for web.
<epitron> that's just because python is super easy to learn
<epitron> lots of researchers use it
<JonnieCache> twixmix it is used a lot in sysadmin work
<epitron> ruby can do all the same stuff
<JonnieCache> puppet and chef are both written in ruby and they are beginning to domiate that field
<twixmix> JonnieCache: Really? I was under the impression it's mainly web.
nanderoo [nanderoo!~nanders@38.124.137.226] has joined #ruby
<twixmix> Oh I see that, I'm a fairly experienced programmer and I'm loving what I see so far.
<epitron> it's way way better at the web than everything else
<epitron> that doesn't mean it doesn't do everything else as well as the others
<epitron> i mean, the only place where ruby kinda sucks is creating number crunching algorithms
<JonnieCache> its a bit slow for that
<epitron> :)
<twixmix> It is a bit more complicated than python, but not really that much. But the simplicity of python could be why it is used by science and academia. I never thought of it that way.
<epitron> yeah
<twixmix> Python has Pypy, and NumPy
<JonnieCache> python has very good scientific and mathematical libraries
<twixmix> are there related libraries in Ruby yet?
<epitron> everything in python is built out of a very small set of primitive operations
<epitron> which makes it rapidly learnable
<twixmix> true
<JonnieCache> twixmix: not really in the same league as numpy. someone was looking for that in here the other week and he didnt have much luck
<epitron> ruby's classes are a giant mountain of methods :)
<epitron> it's hard to figure out wtf is salient
<epitron> (for a noob)
<JonnieCache> all the aliases dont help with that eithe
<JonnieCache> r
<epitron> it would be nice if the methods in the API documentation was sorted by usefulness
<epitron> *were
<madrax> hahahah
<twixmix> haha, sounds like a project to undertake.
<epitron> or categorized by "workhorse methods" and "extra methods"
<twixmix> It is kind of crazy now may methods the base objects have.
<madrax> usefulness? as defined by who?
<JonnieCache> you could sort them by how often theyre called in projects on github
<twixmix> I mean they have usees, but it's interesting.
<madrax> Digg! +1 method :D
<JonnieCache> but ruby is so dynamic itd be very hard to count that
nari [nari!~nari@p929507.totrnt01.ap.so-net.ne.jp] has joined #ruby
<madrax> actually, it might be usefull
<madrax> to extend some sort of documentation online
<madrax> that will give a +1
<epitron> you could probably use a clever regexp and download all the rubygems and +1 the methods automatically :)
<madrax> to methods
<madrax> :|
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
* madrax is braining a startup :D
<epitron> apidock.com was half way there
<twixmix> Ya, the only issue I Have at the moment is that I find it harder to understand Ruby projects and libraries. Moreso than python anyway.
<DerTyp> @jonnieCache should i rake again after getting those packages?
billturner [billturner!~textual@pool-173-71-170-21.pitbpa.fios.verizon.net] has joined #ruby
<JonnieCache> you cant tell from the source which class a method is being called on in ruby
<twixmix> Since in Ruby people are more likely to inject methods into preexisting classes, and use Modules
<JonnieCache> DerTyp: try and install your gems again
<twixmix> It's a cool feature to have, but leads to source being a bit harder to understand.
<epitron> JonnieCache: true, but a lot of methods have unique enough names that you could figure it out. :)
<epitron> it would be tricky, for sure... but i just want rough estimates
<epitron> .each will be the hard one
<JonnieCache> yeah i suppose its the unique and strange ones you really need that info for
<epitron> but everyone knows each is #1
<epitron> :)
<epitron> .each should be at the top of every list
<JonnieCache> in the sense of the best? surely .map
<epitron> haha
<epitron> MAP VS. EACH
<DerTyp> how can i write pm's again?!
<epitron> THE ETERNAL BATTLE
<twixmix> :O
<JonnieCache> side effects bleh
<epitron> FUNCTIONAL VS. IMPERATIVE
<epitron> ROUND 1
<epitron> FIGHT
<epitron> i wonder...
asmdroid [asmdroid!~nchat@5ac02823.bb.sky.com] has joined #ruby
<epitron> [09:02 AM] epi@fizz :: ~/code $ grep each **/*.rb|wc -l
<epitron> 193
<epitron> [09:02 AM] epi@fizz :: ~/code $ grep map **/*.rb|wc -l
<epitron> 103
<twixmix> :O
<epitron> in my gem dirs -- each: 656, map: 239
<madrax> no can't fight...
baroquebobcat [baroquebobcat!~nick@c-67-176-80-121.hsd1.co.comcast.net] has joined #ruby
banseljaj [banseljaj!~Imami@182.186.7.190] has joined #ruby
<JonnieCache> dont get me wrong each is great
<JonnieCache> better than fucking for loops anyway
<epitron> for loops call each :)
<epitron> i bet map calls each too
<madrax> don't each loops call for? :|
<epitron> each loops!
<twixmix> WHATCHU GOT AGAINST FOR LOOPS HUH?
<twixmix> I actually really love how loops are basically handled inside the object in ruby, it's cool. Even though it's similar in Python, but it's covered up by the for construct really.
<JonnieCache> the key difference with ruby and python is the block syntax really
<JonnieCache> blocks are what make ruby so elegant imo
<epitron> ok, with a better file matching pattern, my gem dir stats are: each: 17649, map: 11177
<epitron> code as objects ftw
<epitron> one thing that disappointed me about ruby was that they 1.9 devolved in terms of that
<epitron> -they
<epitron> 1.8 used to let you convert a proc back to ruby code
<twixmix> Python has lambdas which are similar to blocks. Just don't seem as integrated and important as they are in ruby.
<epitron> and let you edit the S-expressions
<twixmix> oh ya?
<epitron> so you could do cool shit, like Squirrel
enroxorz [enroxorz!~enroxorz@unaffiliated/enroxorz] has joined #ruby
enroxorz [enroxorz!~enroxorz@unaffiliated/enroxorz] has quit [#ruby]
<epitron> it was an advanced "where" query language for active record
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has joined #ruby
<epitron> you'd pass a block to Model.find, and instead of executing the block, it would parse the code
<epitron> then it would use that as an SQL query
<epitron> 1.8 let you do all these neat code-transformation tricks
<JonnieCache> why did they take that out?
<epitron> it was just getting started when 1.9 dropped, and killed it
<epitron> i think it has to do with the east/west language divide
<epitron> 1.9 was a totally new VM
<JonnieCache> ah
dv310p3r [dv310p3r!~dv310p3r@host-208-68-238-122.biznesshosting.net] has joined #ruby
<epitron> it probably made implementing it easier
<epitron> or at least, made it faster
crankycoder [crankycoder!~crankycod@24-246-44-67.cable.teksavvy.com] has joined #ruby
<twixmix> I'm sure it was a combination of both
csavola [csavola!~csavola@76-10-149-67.dsl.teksavvy.com] has joined #ruby
cmasseraf [cmasseraf!~cmasseraf@186.223.223.160] has joined #ruby
geekbri [geekbri!~geekbri@208.252.10.190] has joined #ruby
<shevy> visof no idea what means internal error. if there is a test script, I could try to run it, but this error message alone I cant help really. from the looks of it, I'd almost say as if <internal> means that it may be an internal rubygem error
csavola_ [csavola_!~csavola@76.10.149.67] has joined #ruby
csavola- [csavola-!~csavola@76.10.149.67] has joined #ruby
Amirh [Amirh!~amir@85.185.21.235] has joined #ruby
banister_ [banister_!~baniseter@118.82.185.158] has joined #ruby
<Amirh> does "def classname.new_method ... end" produced a singleton method? I noticed that no instances of this class could execute this new method.
<JonnieCache> banisterfiend: i tried installing pry-exception_explorer and the binding_of_caller install failed when compiling its C extension, logs here: https://gist.github.com/1710715
<epitron> looks like you need ruby-dev
<banister_> JonnieCache: doesnt work on 1.8.7 :P
<banister_> JonnieCache: 1.9.2+ sorry
rowanu [rowanu!~rowanu@modemcable011.136-177-173.mc.videotron.ca] has joined #ruby
<epitron> orly?
<JonnieCache> wtf why am i on 1.8.7
cantbecool [cantbecool!~cantbecoo@38.98.246.130] has joined #ruby
<JonnieCache> fail
<epitron> no, you're on 1.9.3
<epitron> oh wait
<epitron> haha
csavola [csavola!~csavola@76-10-149-67.dsl.teksavvy.com] has joined #ruby
<Amirh> does "def classname.new_method ... end" produce a singleton method? I noticed that no instances of this class could execute this new method.
<JonnieCache> no the ruby --version was run on another console, its rbenv changing the ruby
Amirh [Amirh!~amir@85.185.21.235] has joined #ruby
<Amirh> back
<epitron> Amirh: are you trying to call a class method from an instance method?
<Amirh> through an instance epitron
jcromartie [jcromartie!~jcromarti@c-69-140-238-182.hsd1.md.comcast.net] has joined #ruby
<epitron> Amirh: you can't do that without referencing the class
<JonnieCache> headless webkit testing
<Amirh> I see
<epitron> Amirh: i'm not sure if "def Class.method" makes a singleton or a class method
<eka> JonnieCache: useful for taking websites screenshots?
<JonnieCache> eka: it can do screenshots yes
<epitron> but either way, your instance method is going to have to be all, "self.class.method" or "Class.method"
<eka> that's nice :)
<Amirh> I was testing creating methods when I'm creating a Class.new class. then I decided to extend this class. but faced that new methods cannot be called from instances. epitron
yfeldblum [yfeldblum!~Jay@pool-71-246-76-76.bltmmd.east.verizon.net] has joined #ruby
<twixmix> I belive it makes a class method
<banister_> Amirh: def classname.new_method defines a singleton method yes
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
kpshek [kpshek!~kpshek@159.140.254.101] has joined #ruby
<Amirh> yeah.
seivan [seivan!~seivan@cm242.eta204.maxonline.com.sg] has joined #ruby
canton7 [canton7!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
Savvis [Savvis!Savvis@68.140.79.239] has quit [#ruby]
mpeddle [mpeddle!~textual@75-147-7-81-NewEngland.hfc.comcastbusiness.net] has joined #ruby
seivan [seivan!~seivan@cm242.eta204.maxonline.com.sg] has joined #ruby
zastaph [zastaph!~uid@unaffiliated/zastaph] has joined #ruby
rowanu [rowanu!~rowanu@modemcable171.160-83-70.mc.videotron.ca] has joined #ruby
p0y_ [p0y_!~p0y@122.52.126.66] has joined #ruby
carlyle [carlyle!~carlyle@216.133.69.18] has joined #ruby
evantravers [evantravers!~textual@fw.luckie.net] has joined #ruby
michael_mbp [michael_mbp!~Marin@31.203.216.28] has joined #ruby
Helius [Helius!~Adium@212.31.227.18] has joined #ruby
Sailias [Sailias!~jonathan@s72-38-77-178.static.comm.cgocable.net] has joined #ruby
<banister_> JonnieCache: does it install ok on 1.9.2+ ?
ChampS666 [ChampS666!~ChampS@141.32.22.222] has joined #ruby
<JonnieCache> banister_: yes
<banister_> JonnieCache: gr00vy
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
bjhaid [bjhaid!~bjhaid@41.190.128.195] has joined #ruby
<JonnieCache> banister_: you should really write a GUI for pry and sell it for $$$$$. especially with these new plugins
<JonnieCache> maybe with macruby
<banister_> JonnieCache: maybe, but i dont believe it would sell so well, and writing a GUI is a lot of work
<JonnieCache> thats true. i think it would sell though
gregorg [gregorg!~Greg@unaffiliated/gregorg] has joined #ruby
<shevy> he just wants to see pry become a full IDE!
<banister_> that's an enormous amount of work
<banister_> and profoundly boring work
<banister_> and without a guaranteed payoff, IMO
<JonnieCache> lol yeah i suppose it is boring if youre capable of developing pry itself in your spare time
<banister_> JonnieCache: pry is fun to code ;) GUI not so much ;)
headius [headius!~headius@71-37-230-236.mpls.qwest.net] has joined #ruby
<JonnieCache> guis are a pain. cocoa looks pretty easy though
<banister_> though i've only coded a couple of GUI apps in my life, i remember hating it
wroathe [wroathe!~wroathe@75-146-189-233-Minnesota.hfc.comcastbusiness.net] has joined #ruby
rippa [rippa!~rippa@109-161-66-231.pppoe.yaroslavl.ru] has joined #ruby
mun [mun!~mchan@94-193-244-76.zone7.bethere.co.uk] has joined #ruby
mun [mun!~mchan@94-193-244-76.zone7.bethere.co.uk] has quit [#ruby]
<JonnieCache> i just really want to develop some sort of hit app for the mac app store which will have money rolling in
<JonnieCache> need cashflow right now :)
drknus [drknus!~user@blk-222-141-162.eastlink.ca] has joined #ruby
<frerich> A good approach to monetize on some pet project is to look for a company which could use it in its portfolio, and then sell them the rights to market it if they hire you to continue maintaining it.
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
<JonnieCache> thats a clever idea
jbpros [jbpros!~jbpros@124-185-112-217.fix.adsl.belcenter.be] has joined #ruby
<JonnieCache> is that common?
<frerich> It worked for us (being a company who hired people who wrote open soruce software so that we can re-brand the software and sell it, hiring them to continue working on it).
<frerich> I'm speaking from the company perspective here, but many other companies have been doing the same.
<frerich> Consider Intel/RedHat/whatnot hiring Linux hackers, TrollTech (now Nokia) hiring KDE people, Apple hiring KHTML/WebKit people
jbpros_ [jbpros_!~jbpros@124-185-112-217.fix.adsl.belcenter.be] has joined #ruby
<frerich> Or, in our case, we hired a guy who wrote an open source code coverage tool
vraa [vraa!~vraa@c-76-30-135-64.hsd1.tx.comcast.net] has joined #ruby
<frerich> Since the tool fits our portfolio, and he did want to monetize his software but he didn't want to start his own company.
<JonnieCache> ive been thinking of making a foobar2000 for osx. but that would be a lot of work
<JonnieCache> definitely could make money though. plus i really want it
<JonnieCache> anyway
<JonnieCache> frerich: what was the coverage tool?
<frerich> JonnieCache: Testcocoon was the name IIRC
wallerdev [wallerdev!~wallerdev@c-68-43-58-191.hsd1.mi.comcast.net] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
<frerich> I got a job via that as well (I wrote the XPath engine which was used in WebKit, which in turn runs on all your iPads and Macs and whatnot - and in Google).
PaciFisT [PaciFisT!~PeaCE@76-10-149-67.dsl.teksavvy.com] has joined #ruby
mkmkmk [mkmkmk!~mkmkmk@rrcs-24-43-22-34.west.biz.rr.com] has joined #ruby
<frerich> You do some work like that, the job interview becomes much easier since your potential employer can see what you've been pulilng off on your own.
* frerich always looks for open source people
<JonnieCache> hmm im not so much looking for a job as some extra cashflow. gonna keep doing freelancing until later in the year i think. but yes i should do more OSS work
stoffus [stoffus!~stoffus@c-440fe353.016-150-7570701.cust.bredbandsbolaget.se] has joined #ruby
baroquebobcat [baroquebobcat!~nick@c-67-176-80-121.hsd1.co.comcast.net] has joined #ruby
<JonnieCache> banister_: has a problem with pry-exception_explorer: it caused a rake task to fail. quite a complex scenario though - a rake task to generate a dummy test app for an extension to a rails extension. ill try and remember to write up an issue later
<JonnieCache> (yes, an extension to an extension. spree)
<banister_> JonnieCache: how did u set it up
<banister_> i havent documented it properly yet as i just released it
<JonnieCache> just put it in the gemfile, didnt set it up at all yet
moshee [moshee!~moshee@c-50-135-229-127.hsd1.wa.comcast.net] has joined #ruby
moshee [moshee!~moshee@unaffiliated/moshee] has joined #ruby
<JonnieCache> just having it in the gemfile causes the task to fail
<banister_> JonnieCache: what was the backtrace
<JonnieCache> banister_: https://gist.github.com/1710966
v0n [v0n!~v4n@2607:fad8:4:0:21e:8cff:fe4d:2f7d] has joined #ruby
_kinderman [_kinderman!~kinderman@74.201.7.111] has joined #ruby
advorak [advorak!~advorak@216-15-16-163.c3-0.161-ubr1.lnh-161.md.cable.rcn.com] has joined #ruby
<banister_> JonnieCache: interesting, can u show me this code: Couldn't drop dummy_test : #<RuntimeError: RuntimeError>
<JonnieCache> thats normal it always does that. just a bug in the rake task i think
mkscrg [mkscrg!~mkscrg@pool-108-41-134-165.nycmny.fios.verizon.net] has joined #ruby
<JonnieCache> ive just discovered it fails in that way when running the actual rails app as well
<JonnieCache> if you reload that gist ive added another backtrace
thoughtpunch [thoughtpunch!~dbarrett@miniserver.jinglepunks.com] has joined #ruby
philcrissman [philcrissman!~philcriss@206.57.45.116] has joined #ruby
macmartine [macmartine!~macmartin@069-064-227-254.pdx.net] has joined #ruby
<banister_> JonnieCache: thanks, if it's a weird rescue that looks at the acutal exception *message* before re-raising then that could cause it
<banister_> it's a known bug in exception explorer that it sometimes cuts out the exception message, not sure why yet
galymzhan [galymzhan!~galymzhan@178.88.22.68] has joined #ruby
<JonnieCache> is it tested with rails before?
kevinbond [kevinbond!~kevinbond@112.50.204.68.cfl.res.rr.com] has joined #ruby
<banister_> JonnieCache: no, not yet. Hmmm, does rails overload raise too?
jbpros [jbpros!~jbpros@124-185-112-217.fix.adsl.belcenter.be] has joined #ruby
<JonnieCache> not sure. it does a lot of weird shit though
<banister_> ok ill have a play with rails
bbttxu [bbttxu!~adam@129.120.52.229] has joined #ruby
<banister_> tomorrow
<banister_> gotta hit the sack now
<banister_> thanks
<JonnieCache> np
<banister_> for your feedback
jfoley [jfoley!~jfoley@173-160-59-169-colorado.hfc.comcastbusiness.net] has joined #ruby
<JonnieCache> it looks really good though. ill try it on a more normal rails app later
<banister_> JonnieCache: i couldn't get anyone to test it other than me ;) maybe i'll yank the gem and revert it back to --pre before i release
jgarvey [jgarvey!~jgarvey@cpe-174-097-248-211.nc.res.rr.com] has joined #ruby
<banister_> yeah,, ill yank it now
<banister_> one sec
robyurkowski [robyurkowski!~robyurkow@64.254.250.82] has joined #ruby
galymzhan [galymzhan!~galymzhan@178.88.22.68] has quit [#ruby]
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
mikewintermute [mikewintermute!~mikewinte@188-223-213-21.zone14.bethere.co.uk] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby
jbpros [jbpros!~jbpros@124-185-112-217.fix.adsl.belcenter.be] has joined #ruby
jdspiralz [jdspiralz!jdspiral@oberon.vectori.net] has joined #ruby
v0n [v0n!~v4n@2607:fad8:4:0:21e:8cff:fe4d:2f7d] has joined #ruby
theRoUS [theRoUS!KenCoar@nat/redhat/x-nbfyrqufxcdtksez] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
tectonic [tectonic!~tectonic@c-67-164-98-164.hsd1.ca.comcast.net] has joined #ruby
fr0gprince_mac [fr0gprince_mac!~fr0gprinc@178-85-90-223.dynamic.upc.nl] has joined #ruby
jaywastaken [jaywastaken!~jaywastak@unaffiliated/jaywastaken] has joined #ruby
marcoshack [marcoshack!~marcoshac@189.125.221.200] has joined #ruby
dpswireless [dpswireless!dpswireles@97.71.36.65] has joined #ruby
jackerran [jackerran!~jackerran@fw.luckie.net] has joined #ruby
enherit [enherit!~enherit@216.3.99.206] has joined #ruby
ccooke [ccooke!~ccooke@spirit.gkhs.net] has joined #ruby
_srp [_srp!~quassel@115.99.249.94] has joined #ruby
moshee [moshee!~moshee@c-50-135-229-127.hsd1.wa.comcast.net] has joined #ruby
moshee [moshee!~moshee@unaffiliated/moshee] has joined #ruby
banister`sleep [banister`sleep!~baniseter@118.82.185.158] has joined #ruby
techhelp [techhelp!~Dan@firebox.rsmart.com] has joined #ruby
cyri_ [cyri_!~cyri_@232.93.119.80.rev.sfr.net] has joined #ruby
_srp [_srp!~quassel@115.99.249.94] has joined #ruby
llaskin [llaskin!~Leo@c-24-128-198-93.hsd1.ma.comcast.net] has joined #ruby
PaciFisT [PaciFisT!~PeaCE@76-10-149-67.dsl.teksavvy.com] has joined #ruby
<llaskin> hey, is there a way to go to the "top" of a function given a condition
<llaskin> other then begin/rescue/retry/end
<JonnieCache> not sure what you mean
<JonnieCache> theres no goto in ruby
<llaskin> so basically do X;if Y.nil? retry doing X until !Y.nil end
Targen [Targen!~iguana@159.90.11.250] has joined #ruby
pencilcheck [pencilcheck!~pen@g1pc2n249.g1.ntu.edu.tw] has joined #ruby
<llaskin> mreh i guess i'll do it a different way
<llaskin> ok
cook1es [cook1es!~chatzilla@c83-248-93-185.bredband.comhem.se] has joined #ruby
Faris [Faris!~amnay@41.140.176.92] has joined #ruby
endzYme [endzYme!~Adium@205.169.68.218] has joined #ruby
GoogleGuy [GoogleGuy!~ChromeOS@24.154.252.193] has joined #ruby
GoogleGuy [GoogleGuy!~ChromeOS@unaffiliated/googleguy] has joined #ruby
lkba [lkba!~AndChat@81.219.6.16] has joined #ruby
nfxgosu [nfxgosu!~nekid@117.193.253.97] has joined #ruby
fr0gprince_ [fr0gprince_!Bart@178-85-90-223.dynamic.upc.nl] has joined #ruby
jlebrech [jlebrech!~textual@host86-135-203-241.range86-135.btcentralplus.com] has joined #ruby
ckrailo [ckrailo!~ckrailo@208.86.167.247] has joined #ruby
Amirh [Amirh!~amir@18.aa.f4.static.xlhost.com] has joined #ruby
apok [apok!~apok@96.24.67.22] has joined #ruby
nvez_ [nvez_!~textual@bas1-montreal54-1167955085.dsl.bell.ca] has joined #ruby
sonkei [sonkei!~sonkei@d14-69-26-171.try.wideopenwest.com] has joined #ruby
geekbri_ [geekbri_!~geekbri@208.252.10.190] has joined #ruby
nvez_ [nvez_!~textual@unaffiliated/nvez] has joined #ruby
dpswireless [dpswireless!~dpswirele@69-84-207-62.biz.arrival.net] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@213.152.255.138] has joined #ruby
jtrudeau [jtrudeau!~jeff@75-150-71-83-NewEngland.hfc.comcastbusiness.net] has joined #ruby
vladyn [vladyn!~Adium@78.83.241.70] has joined #ruby
blueadept [blueadept!~blueadept@pool-96-251-83-184.lsanca.dsl-w.verizon.net] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
kenperkins [kenperkins!~textual@174-24-134-155.tukw.qwest.net] has joined #ruby
caiges [caiges!~caiges@wsip-68-14-249-226.ph.ph.cox.net] has joined #ruby
nvez_ [nvez_!~textual@bas1-montreal54-1167956059.dsl.bell.ca] has joined #ruby
danishkhan [danishkhan!~danishkha@enginey-9.border1.sfo002.pnap.net] has joined #ruby
skaczor_ [skaczor_!~shogun@mail.prognosoft.biz] has joined #ruby
caiges [caiges!~caiges@wsip-68-14-249-226.ph.ph.cox.net] has joined #ruby
LiquidInsect [LiquidInsect!~billabney@50-0-135-178.dedicated.static.sonic.net] has joined #ruby
baroquebobcat [baroquebobcat!~nick@70-90-113-174-co.denver.hfc.comcastbusiness.net] has joined #ruby
caiges [caiges!~caiges@wsip-68-14-249-226.ph.ph.cox.net] has joined #ruby
justicefries [justicefries!~justicefr@c-24-9-167-71.hsd1.co.comcast.net] has joined #ruby
luxurymode [luxurymode!~luxurymod@rrcs-184-75-21-18.nyc.biz.rr.com] has joined #ruby
caiges [caiges!~caiges@wsip-68-14-249-226.ph.ph.cox.net] has joined #ruby
pantsman [pantsman!~pantsman@2.25.205.53] has joined #ruby
pantsman [pantsman!~pantsman@pdpc/supporter/active/pantsman] has joined #ruby
LMolr [LMolr!~quassel@87.19.33.245] has joined #ruby
caiges [caiges!~caiges@wsip-68-14-249-226.ph.ph.cox.net] has joined #ruby
eywu [eywu!~Adium@205-170-107-4.dia.static.qwest.net] has joined #ruby
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby
wallerdev [wallerdev!~wallerdev@c-68-43-58-191.hsd1.mi.comcast.net] has joined #ruby
<JonnieCache> aaaaargh why do i always forget that devise has a test mode
<JonnieCache> ffs
<Seppman> how do i explicitely delete an array?
fr0gprince_mac_ [fr0gprince_mac_!~fr0gprinc@178-85-90-223.dynamic.upc.nl] has joined #ruby
<Tasser> llaskin, while <condition>; end ?
youdonotexist [youdonotexist!~youdonote@192.206.158.10] has joined #ruby
taii [taii!~tai@85-127-72-17.dynamic.xdsl-line.inode.at] has joined #ruby
<Tasser> llaskin, loop { <something>; break if <condition>}
<Tasser> Seppman, hm?
<Tasser> Seppman, #replace([]) ?
dhs227 [dhs227!~dhs227@180.154.14.150] has joined #ruby
<dhs227> How to interact with Windows Powershell?
<Seppman> i have a twodimensional array, the problem is sometimes i need to delete some of its members
<Seppman> thanks, ill try that
<Tasser> dhs227, shell out doesn't work?
<Tasser> Seppman, matrix[index] = [] ?
<dhs227> Tasser, my case is I have a powershell script and I want ruby can retrieve the script's output as objects, not as stream.
Illiux [Illiux!~nol@mc-wireless-pittnet-150-212-11-126.wireless.pitt.edu] has joined #ruby
porco [porco!~porco@125.33.83.213] has joined #ruby
<Tasser> dhs227, a) look for a gem b) write one with C/C# c) use ffi
cmasseraf [cmasseraf!~cmasseraf@186.223.223.160] has joined #ruby
<JonnieCache> or look for some serialisation language ruby and powershell have in common
<JonnieCache> maybe powershell can do json?
gianlucadv [gianlucadv!~gianlucad@109.53.158.230] has joined #ruby
<dhs227> Is there a common solution for that?
Sliker [Sliker!~ponies@87.114.96.212] has joined #ruby
pen [pen!~pen@g1pc2n249.g1.ntu.edu.tw] has joined #ruby
mikepack [mikepack!~mikepack@c-174-51-77-22.hsd1.co.comcast.net] has joined #ruby
_kinderman_ [_kinderman_!~kinderman@74.201.7.112] has joined #ruby
thomasdebenning [thomasdebenning!~thomasdeb@c-69-181-139-137.hsd1.ca.comcast.net] has joined #ruby
samsonjs [samsonjs!~samsonjs@184.66.154.246] has joined #ruby
ank [ank!~ank@c-67-172-16-188.hsd1.pa.comcast.net] has joined #ruby
v0n [v0n!~v4n@2607:fad8:4:0:21e:8cff:fe4d:2f7d] has joined #ruby
CreativeEmbassy [CreativeEmbassy!~CreativeE@h142.127.232.68.dynamic.ip.windstream.net] has joined #ruby
<llaskin> tasser, loop will probably work
stringoO [stringoO!~JLstring@bas1-toronto42-1279600344.dsl.bell.ca] has joined #ruby
Amirh [Amirh!~amir@85.185.21.235] has joined #ruby
p0y [p0y!~p0y@125.212.56.217] has joined #ruby
stayarrr [stayarrr!~olivererx@dslb-188-100-254-093.pools.arcor-ip.net] has joined #ruby
dyer [dyer!~dyer@c-174-49-86-106.hsd1.ga.comcast.net] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
daniel_hinojosa [daniel_hinojosa!~danno@67-0-61-129.albq.qwest.net] has joined #ruby
`brendan [`brendan!~b@107-1-118-122-ip-static.hfc.comcastbusiness.net] has joined #ruby
kaiwren [kaiwren!~KaiWren@122.172.7.193] has joined #ruby
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby
statarb3 [statarb3!~CoreD@unaffiliated/statarb3] has joined #ruby
wilmoore [wilmoore!~wilmoore@70-89-165-49-ISTS-co.hfc.comcastbusiness.net] has joined #ruby
savage- [savage-!~savage-@istep.static.monkeybrains.net] has joined #ruby
b26 [b26!~b@66-208-246-34-ubr02b-waldlk01-mi.hfc.comcastbusiness.net] has joined #ruby
jdspiralz [jdspiralz!jdspiral@oberon.vectori.net] has joined #ruby
internet_user [internet_user!~internet_@abe.cul.columbia.edu] has joined #ruby
<Seppman> !help
<Seppman> sorry, wrong chan
lkba [lkba!~AndChat@dwe139.neoplus.adsl.tpnet.pl] has joined #ruby
davidpk [davidpk!~r00t@5adc8e56.bb.sky.com] has joined #ruby
artOfWar [artOfWar!~artofwar@108-205-201-30.lightspeed.sntcca.sbcglobal.net] has joined #ruby
AlanBell [AlanBell!~alan@ubuntu/member/alanbell] has joined #ruby
Evixion` [Evixion`!Evixion@tn-67-236-15-105.dhcp.embarqhsd.net] has joined #ruby
Silker [Silker!~ponies@87.114.96.212] has joined #ruby
jay_zawr1tny [jay_zawr1tny!~Jay@c-71-205-218-131.hsd1.mi.comcast.net] has joined #ruby
iocor [iocor!~textual@87.194.167.19] has joined #ruby
s0ber_ [s0ber_!~s0ber@114-36-224-117.dynamic.hinet.net] has joined #ruby
stat1x [stat1x!~statix@rrcs-208-125-52-150.nys.biz.rr.com] has joined #ruby
wroathe_ [wroathe_!~wroathe@75-146-189-233-Minnesota.hfc.comcastbusiness.net] has joined #ruby
tatsuya__ [tatsuya__!~tatsuya_o@213.152.255.138] has joined #ruby
cemycc [cemycc!~cemycc@89.41.212.72] has joined #ruby
jwmann1 [jwmann1!~Adium@modemcable242.110-201-24.mc.videotron.ca] has joined #ruby
_kinderman [_kinderman!~kinderman@74.201.7.112] has joined #ruby
cantbecool_ [cantbecool_!~cantbecoo@38.98.246.130] has joined #ruby
frerich2 [frerich2!~frerich@mail.froglogic.com] has joined #ruby
mdmdm_ [mdmdm_!~maestro@50-0-12-246.dsl.dynamic.sonic.net] has joined #ruby
Qbam [Qbam!~Qben@c-878be455.41-0146-74657210.cust.bredbandsbolaget.se] has joined #ruby
mkscrg_ [mkscrg_!~mkscrg@pool-108-41-134-165.nycmny.fios.verizon.net] has joined #ruby
asmdroid1 [asmdroid1!~nchat@5ac02823.bb.sky.com] has joined #ruby
<gigamonkey> I have a class that defines a to_s method but when I try to append an instance to a string I get: "TypeError: can't convert X into String". Is there some other method I can define to make the conversion work?
elliot_ [elliot_!~elliot@77.124.207.61] has joined #ruby
skaczor___ [skaczor___!~shogun@mail.prognosoft.biz] has joined #ruby
kenichi [kenichi!~kenichi@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
<gigamonkey> Or do I just need to explicitly call to_s ?
azbarcea_______ [azbarcea_______!~quassel@79.114.119.80] has joined #ruby
klaas_ [klaas_!klaas@simply.kla.as] has joined #ruby
Freijo [Freijo!hartin@lehtori.cc.tut.fi] has joined #ruby
mtkd_ [mtkd_!znc@209-20-90-74.slicehost.net] has joined #ruby
jhunter_ [jhunter_!jfigga@c-67-169-75-5.hsd1.ca.comcast.net] has joined #ruby
plato_ [plato_!~plato@98.143.152.29] has joined #ruby
_musee [_musee!~musee@199.180.254.41] has joined #ruby
xsdg_ [xsdg_!~xsdg@SIPB-VM-99.MIT.EDU] has joined #ruby
artOfWar [artOfWar!~artofwar@nat/yahoo/session] has joined #ruby
mrmist_ [mrmist_!~mrmist@freenode/staff/pdpc.active.mrmist] has joined #ruby
eldariof [eldariof!~CLD@81.200.24.177] has joined #ruby
nanderoo1 [nanderoo1!~nanders@38.124.137.226] has joined #ruby
davidcelis [davidcelis!~david@70-89-180-6-smc-or.hfc.comcastbusiness.net] has joined #ruby
eka_ [eka_!~eka@181.28.169.86] has joined #ruby
musee [musee!~musee@199.180.254.41] has joined #ruby
mythmon_ [mythmon_!~mythmon@francium.electricgrey.com] has joined #ruby
cmasseraf_ [cmasseraf_!~cmasseraf@186.223.223.160] has joined #ruby
Twixmix_ [Twixmix_!~ryanniels@blk-11-127-105.eastlink.ca] has joined #ruby
hashpuppy_ [hashpuppy_!~hashpuppy@rrcs-24-129-162-10.se.biz.rr.com] has joined #ruby
JonSchuf_ [JonSchuf_!~textual@38.123.129.10] has joined #ruby
Asebolka_ [Asebolka_!~Asebolka@c-174-59-146-170.hsd1.pa.comcast.net] has joined #ruby
jackerra_ [jackerra_!~jackerran@fw.luckie.net] has joined #ruby
mythmon_ [mythmon_!~mythmon@osuosl/staff/Mythmon] has joined #ruby
hashpuppy_ [hashpuppy_!~hashpuppy@unaffiliated/hashpuppy] has joined #ruby
t0mmyvyo [t0mmyvyo!~tommyvyo@c-68-83-3-164.hsd1.nj.comcast.net] has joined #ruby
mahlon_ [mahlon_!mahlon@martini.nu] has joined #ruby
November [November!november@osiris.parodius.com] has joined #ruby
bgupta_ [bgupta_!~bgupta@68.164.142.90] has joined #ruby
kaiwren [kaiwren!~KaiWren@122.172.7.193] has joined #ruby
baroquebobcat [baroquebobcat!~nick@70-90-113-174-co.denver.hfc.comcastbusiness.net] has joined #ruby
ernad [ernad!~ernad@92.36.169.60] has joined #ruby
imami [imami!~Imami@182.186.7.190] has joined #ruby
conor_ireland_ [conor_ireland_!~conor_ire@89.100.121.49] has joined #ruby
artOfWar [artOfWar!~artofwar@nat/yahoo/x-cwgicssilgbqxern] has joined #ruby
indeterminate [indeterminate!~sei@user-3c2h3m6.cable.mindspring.com] has joined #ruby
llaskin [llaskin!~Leo@c-24-128-198-93.hsd1.ma.comcast.net] has quit [#ruby]
musee [musee!~musee@unaffiliated/musee] has joined #ruby
maedi [maedi!~maedi@mail.digitalink.com.au] has joined #ruby
luckman212 [luckman212!~irc@pool-108-41-8-176.nycmny.fios.verizon.net] has joined #ruby
regedarek [regedarek!regedarek@gateway/shell/bshellz.net/x-oaglewpszbziatql] has joined #ruby
carlyle [carlyle!~carlyle@216.133.69.18] has joined #ruby
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has joined #ruby
blanciq [blanciq!blanciq@bshellz.pl] has joined #ruby
vereteran-x [vereteran-x!~vereteran@static.88-198-170-117.clients.your-server.de] has joined #ruby
maletor [maletor!~maletor@74.115.25.139] has joined #ruby
SegFaultAX [SegFaultAX!~SegFaultA@c-98-248-241-85.hsd1.ca.comcast.net] has joined #ruby
mayfield [mayfield!~mayfield@cpe-24-243-43-239.satx.res.rr.com] has joined #ruby
youdonotexist [youdonotexist!~youdonote@192.206.158.10] has joined #ruby
n8ji [n8ji!~n8ji@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
eignerchris [eignerchris!~eignerchr@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
Helius [Helius!~Adium@109.112.68.4] has joined #ruby
ernad [ernad!~ernad@92.36.169.60] has joined #ruby
geekbri [geekbri!~geekbri@208.252.10.190] has joined #ruby
statarb3 [statarb3!~CoreD@217.68.49.75] has joined #ruby
statarb3 [statarb3!~CoreD@unaffiliated/statarb3] has joined #ruby
alindeman [alindeman!~adml@freenode/senior-staff-emeritus/alindeman] has joined #ruby
Sailias [Sailias!~jonathan@s72-38-77-178.static.comm.cgocable.net] has joined #ruby
Synthead [Synthead!~max@50-76-231-54-static.hfc.comcastbusiness.net] has joined #ruby
zenergi [zenergi!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
pseud0cod3r [pseud0cod3r!pseudocode@gateway/shell/anapnea.net/x-xajfngxowvfjpryn] has joined #ruby
ikaros [ikaros!~ikaros@dslb-094-219-214-087.pools.arcor-ip.net] has joined #ruby
RoUS [RoUS!~KenCoar@apache/committer/coar] has joined #ruby
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby
Illiux [Illiux!~nol@fq-wireless-pittnet-150-212-2-75.wireless.pitt.edu] has joined #ruby
dotemacs [dotemacs!u801@gateway/web/irccloud.com/x-wspttflpuitepmcw] has joined #ruby
Twixmix [Twixmix!~ryanniels@blk-11-127-105.eastlink.ca] has joined #ruby
alfism [alfism!~alfism@2620:149:4:1201:516:c480:27da:ee63] has joined #ruby
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
danishkhan [danishkhan!~danishkha@enginey-9.border1.sfo002.pnap.net] has joined #ruby
crazed [crazed!~crazed@unaffiliated/cr4z3d] has joined #ruby
<Seppman> !tsm
apok [apok!~apok@c-107-3-149-167.hsd1.ca.comcast.net] has joined #ruby
Russell^^ [Russell^^!~Russell^^@88.97.51.87] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
niklasb [niklasb!~codeslay0@p5B310A4E.dip0.t-ipconnect.de] has joined #ruby
browe [browe!~browe@99-100-206-252.lightspeed.iplsin.sbcglobal.net] has joined #ruby
<browe> hello... I'm trying and failing to use ruby net/http..
<browe> I'm trying to do a get from elastic search.. using the rest api... seemed simple..
<browe> but I'm getting a getaddrinfo: Name or service not known error..
Illiux [Illiux!~nol@fq-wireless-pittnet-150-212-2-75.wireless.pitt.edu] has joined #ruby
<browe> I'm not sure anymore where to start looking for the error.. The elastic search works fine with curl.
Illiux [Illiux!~nol@fq-wireless-pittnet-150-212-2-75.wireless.pitt.edu] has joined #ruby
apok [apok!~apok@c-107-3-149-167.hsd1.ca.comcast.net] has joined #ruby
<browe> has anyone tried to get / POST to elasticsearch from ruby?
adeponte [adeponte!~adeponte@67.110.253.162.ptr.us.xo.net] has joined #ruby
<browe> not using rest-client.. or tire.. both of which fail on the same error I'm already having.
crankycoder [crankycoder!~crankycod@24-246-44-67.cable.teksavvy.com] has quit ["Leaving..."]
ernad [ernad!~ernad@92.36.174.133] has joined #ruby
<browe> Well, I got the get to work...
Illiux [Illiux!~nol@fq-wireless-pittnet-150-212-2-75.wireless.pitt.edu] has joined #ruby
moshee [moshee!~moshee@c-50-135-229-127.hsd1.wa.comcast.net] has joined #ruby
moshee [moshee!~moshee@unaffiliated/moshee] has joined #ruby
adamkittelson [adamkittelson!~adamkitte@50.0.132.2] has joined #ruby
<visof> hello
tvw [tvw!~tv@e176008225.adsl.alicedsl.de] has joined #ruby
<visof> i have installed a amazon-ec2 gem , but the test script in the form /usr/bin/awshell , what is the meaning of that?, also how can i write my own script that use amazon-ec2 classes
<visof> sorry i mean in the form of http://codepad.org/ntMn8MkB
<visof> all running scripts in that form
Twixmix [Twixmix!~ryanniels@blk-11-127-105.eastlink.ca] has joined #ruby
stkowski [stkowski!~stkowski@ns25.8x8.com] has joined #ruby
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby
Araxia_ [Araxia_!~Araxia@173-164-68-213-Oregon.hfc.comcastbusiness.net] has joined #ruby
asobrasil [asobrasil!~asantioli@palpatine.privatedns.com] has joined #ruby
<canton7> visof, that's just a gems-generated wrapper for a ruby gem executable. If you want to use the gem in your script, see "Ruby script usage example" at https://github.com/grempe/amazon-ec2
eignerchris_ [eignerchris_!~eignerchr@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
dpswireless [dpswireless!~dpswirele@69-84-207-62.biz.arrival.net] has joined #ruby
tvo [tvo!~tvo@katapult/developer/tvo] has joined #ruby
<visof> canton7: thanks my friend
sdwrage [sdwrage!~sdwrage@cpe-184-57-83-165.columbus.res.rr.com] has joined #ruby
jlogsdon [jlogsdon!~jlogsdon@75.103.0.45] has joined #ruby
geekbri [geekbri!~geekbri@208.252.10.190] has joined #ruby
Spockz [Spockz!~Spockz@21pc198.sshunet.nl] has joined #ruby
jergason [jergason!~jergason@c-67-182-209-164.hsd1.ut.comcast.net] has joined #ruby
BSaboia [BSaboia!~brunosabo@187.58.94.52] has joined #ruby
zenergi_ [zenergi_!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
jaywastaken [jaywastaken!~jaywastak@unaffiliated/jaywastaken] has joined #ruby
amerine [amerine!~mturner@67.204.184.82] has joined #ruby
jcromartie [jcromartie!~jcromarti@c-69-140-238-182.hsd1.md.comcast.net] has joined #ruby
josefig [josefig!~josef@187.156.91.147] has joined #ruby
josefig [josefig!~josef@unaffiliated/josefig] has joined #ruby
samsonjs [samsonjs!~samsonjs@S01060026f31b8198.gv.shawcable.net] has joined #ruby
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
IrishGringo [IrishGringo!~chatzilla@c-71-229-99-200.hsd1.fl.comcast.net] has joined #ruby
iband [iband!~iband@111.104-54-92.telenet.ru] has joined #ruby
mrsolo [mrsolo!~mrsolo@64.125.181.73] has joined #ruby
pen [pen!~pen@g1pc2n249.g1.ntu.edu.tw] has joined #ruby
bwlang [bwlang!~anonymous@70-91-134-14-ma-ne.hfc.comcastbusiness.net] has joined #ruby
youdonotexist [youdonotexist!~youdonote@192.206.158.10] has joined #ruby
voodoofish430 [voodoofish430!~mtorres@208.76.2.200] has joined #ruby
kreantos [kreantos!~kreantos@77.119.196.210.wireless.dyn.drei.com] has joined #ruby
badabim [badabim!~badabim@17.212.166.215] has joined #ruby
Silker [Silker!~ponies@87.114.96.212] has joined #ruby
Z2FyZA [Z2FyZA!~gard@cm-84.215.22.0.getinternet.no] has joined #ruby
vladyn [vladyn!~Adium@78.83.241.70] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
daglees [daglees!~belvedere@91.186.226.125] has joined #ruby
daglees [daglees!~belvedere@unaffiliated/daglees] has joined #ruby
nvez_ [nvez_!~textual@unaffiliated/nvez] has joined #ruby
Skaag [Skaag!~Skaag@cpe-67-247-51-89.nyc.res.rr.com] has joined #ruby
ceej [ceej!~anonymous@cpe-72-190-40-203.tx.res.rr.com] has joined #ruby
cmasseraf [cmasseraf!~cmasseraf@186.223.223.160] has joined #ruby
cyri_ [cyri_!~cyri_@232.93.119.80.rev.sfr.net] has joined #ruby
nd______ [nd______!~nd@mnhm-4d01b84c.pool.mediaWays.net] has joined #ruby
minijupe [minijupe!~benlieb@75-136-116-109.dhcp.spbg.sc.charter.com] has joined #ruby
moshef [moshef!~moshe@62.219.110.225] has joined #ruby
kreantos_ [kreantos_!~kreantos@77.117.123.126.wireless.dyn.drei.com] has joined #ruby
_kinderman [_kinderman!~kinderman@74.201.7.111] has joined #ruby
cmasseraf [cmasseraf!~cmasseraf@186.223.223.160] has joined #ruby
mehryar [mehryar!~user@2001:470:0:11a::1e] has joined #ruby
Asher [Asher!~asher@res-105001.nat.emory.edu] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
zenergi_ [zenergi_!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
mehryar [mehryar!~user@2001:470:0:11a::1e] has joined #ruby
kreantos [kreantos!~kreantos@77.116.178.125.wireless.dyn.drei.com] has joined #ruby
<moshef> hi, i'd like to build an array that is limited to 20. when i push the 21th object, it'll remove the first one etc
<mythmon> moshef: so you know, that is called a buffer.
<moshef> is there a cool way to do it?
<Mon_Ouie> Create your own class for that, and just use an array to implement it
<moshef> best i can think of is checking for the array[20] and removing the array[0] etc. something like that
<moshef> so nothing cool/ready to use?
Asher [Asher!~asher@res-105002.nat.emory.edu] has joined #ruby
<mythmon> what is it for, anyways?
blooberr [blooberr!u5163@gateway/web/irccloud.com/x-giueloclkjamspyz] has joined #ruby
cantbecool [cantbecool!~cantbecoo@38.98.246.130] has joined #ruby
<browe> has anyone tried posting to elasticsearch from ruby? using net/http
SegFaultAX|work [SegFaultAX|work!~mkbernard@173.228.45.162] has joined #ruby
banseljaj [banseljaj!~Imami@182.186.7.190] has joined #ruby
<blooberr> browe: how about the curb gem? its similar and easier to use
pigdude [pigdude!~tallen@li61-243.members.linode.com] has quit [#ruby]
kreantos_ [kreantos_!~kreantos@77.119.219.31.wireless.dyn.drei.com] has joined #ruby
Illiux [Illiux!~nol@fq-wireless-pittnet-150-212-2-75.wireless.pitt.edu] has joined #ruby
thepix [thepix!~pix@178-37-132-222.adsl.inetia.pl] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@213.152.255.138] has joined #ruby
eignerchris [eignerchris!~eignerchr@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
The_average [The_average!~The_avera@petoskeyschools.org] has joined #ruby
The_average [The_average!~The_avera@petoskeyschools.org] has quit [#ruby]
mkmkmk1 [mkmkmk1!~mkmkmk@rrcs-173-196-10-131.west.biz.rr.com] has joined #ruby
Jakee` [Jakee`!~Jakee`@5ad317fe.bb.sky.com] has joined #ruby
<moshef> mythmon: just need to keep 20 tags of something, and whenever i reach 21 i'd like to remove the oldest..
shadoi [shadoi!~Adium@2001:5a8:4:68e0:11f:8166:bbea:bb3d] has joined #ruby
jbw [jbw!~jbw@dsl-044-084.cust.imagine.ie] has joined #ruby
mikeric [mikeric!~mike@S0106c03f0e8b23f3.vc.shawcable.net] has joined #ruby
_kinderman_ [_kinderman_!~kinderman@74.201.7.112] has joined #ruby
jwang [jwang!~jwang@c-69-181-115-143.hsd1.ca.comcast.net] has joined #ruby
LiquidInsect [LiquidInsect!~billabney@50-0-135-178.dedicated.static.sonic.net] has joined #ruby
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@adsl-99-35-225-92.dsl.pltn13.sbcglobal.net] has joined #ruby
headius [headius!~headius@70-89-202-123-invergrove-mn.hfc.comcastbusiness.net] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
c0rn [c0rn!~c0rn@50-0-142-2.dsl.dynamic.sonic.net] has joined #ruby
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has quit [#ruby]
hobodave [hobodave!~hobodave@pdpc/supporter/professional/hobodave] has joined #ruby
jbpros [jbpros!~jbpros@188-177-112-217.dyn.adsl.belcenter.be] has joined #ruby
akem [akem!~akem@253.195.84.79.rev.sfr.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
kreantos [kreantos!~kreantos@178.113.176.194.wireless.dyn.drei.com] has joined #ruby
nacengineer [nacengineer!~dsoutha@165.219.88.72] has joined #ruby
dnyy [dnyy!~dnyy@c-98-237-138-38.hsd1.wa.comcast.net] has joined #ruby
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby
senny [senny!~senny@84-72-61-96.dclient.hispeed.ch] has joined #ruby
wilmoore [wilmoore!~wilmoore@70-89-165-49-ISTS-co.hfc.comcastbusiness.net] has joined #ruby
kirun [kirun!~kirun@78-86-154-194.zone2.bethere.co.uk] has joined #ruby
Asher [Asher!~asher@98.158.127.150] has joined #ruby
jfoley [jfoley!~jfoley@173-8-251-217-Colorado.hfc.comcastbusiness.net] has joined #ruby
jrist [jrist!jrist@nat/redhat/x-rjbglyrybfkmdmmu] has joined #ruby
dnyy [dnyy!~dnyy@c-98-237-138-38.hsd1.wa.comcast.net] has joined #ruby
kenperkins [kenperkins!~textual@174-24-134-155.tukw.qwest.net] has joined #ruby
cyri_ [cyri_!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby
CreativeEmbassy [CreativeEmbassy!~CreativeE@h142.127.232.68.dynamic.ip.windstream.net] has joined #ruby
Azure [Azure!~azt@cinch/fan/azure] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
VictorMartins [VictorMartins!~VictorMar@87.196.74.94] has joined #ruby
Nss [Nss!~nss@host241-19-dynamic.53-79-r.retail.telecomitalia.it] has joined #ruby
ChampS666 [ChampS666!~ChampS@p54B4B7F6.dip.t-dialin.net] has joined #ruby
cbuxton [cbuxton!~Adium@nat/partnerpedia/x-orsvozhmkgipwlia] has joined #ruby
mikeric [mikeric!~mike@96.53.33.22] has joined #ruby
jamw [jamw!~j@cpc11-orpi3-2-0-cust53.2-3.cable.virginmedia.com] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@46-64-51-175.zone15.bethere.co.uk] has joined #ruby
odinswand [odinswand!~odinswand@27-32-234-171.static.tpgi.com.au] has joined #ruby
vraa [vraa!~vraa@c-76-30-135-64.hsd1.tx.comcast.net] has joined #ruby
moshef [moshef!~moshe@bzq-79-177-138-51.red.bezeqint.net] has joined #ruby
alfism [alfism!~alfism@2620:149:4:1201:b826:f35b:4864:bcab] has joined #ruby
Y_Ichiro [Y_Ichiro!~ichiro101@wikipedia/Yamamoto-Ichiro] has joined #ruby
tuxaddicted [tuxaddicted!~tuxaddict@202.60.13.34] has joined #ruby
MasterIdler [MasterIdler!~MasterIdl@184.175.2.95] has joined #ruby
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
trevortwining [trevortwining!~anonymous@d221-64-66.commercial.cgocable.net] has joined #ruby
qelsi [qelsi!~qelsi@121.Red-83-33-85.dynamicIP.rima-tde.net] has joined #ruby
ChampS666 [ChampS666!~ChampS@p54B4AB0E.dip.t-dialin.net] has joined #ruby
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
hooper [hooper!~hooper@c-69-181-207-23.hsd1.ca.comcast.net] has joined #ruby
imsplitbit [imsplitbit!~imsplitbi@64.39.5.119] has joined #ruby
xsdg [xsdg!~xsdg@SIPB-VM-99.MIT.EDU] has joined #ruby
akem [akem!~akem@253.195.84.79.rev.sfr.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
ceej [ceej!~anonymous@cpe-72-190-40-203.tx.res.rr.com] has joined #ruby
bwlang [bwlang!~anonymous@70-91-134-14-ma-ne.hfc.comcastbusiness.net] has joined #ruby
moshee [moshee!~moshee@c-50-135-229-127.hsd1.wa.comcast.net] has joined #ruby
moshee [moshee!~moshee@unaffiliated/moshee] has joined #ruby
snearch [snearch!~snearch@e179156220.adsl.alicedsl.de] has joined #ruby
RudyValencia [RudyValencia!~me@unaffiliated/rudyvalencia] has joined #ruby
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby
Jake232 [Jake232!~textual@5e0e46cc.bb.sky.com] has joined #ruby
cooper [cooper!~chatzilla@unaffiliated/furryfishy] has joined #ruby
<blueadept> anyone know a better way to cut off the first six characters of a string besides using slice('123456') ?
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has quit [#ruby]
moshee [moshee!~moshee@c-50-135-229-127.hsd1.wa.comcast.net] has joined #ruby
moshee [moshee!~moshee@unaffiliated/moshee] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@46-64-51-175.zone15.bethere.co.uk] has joined #ruby
_kinderman [_kinderman!~kinderman@74.201.7.111] has joined #ruby
<browe> ended up using httparty to post docs to elastic search if anyone is interested.
kephra [kephra!~kraehe@port-83-236-58-4.dynamic.qsc.de] has joined #ruby
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
Fretta [Fretta!~Fretta@ip184-187-186-58.sb.sd.cox.net] has joined #ruby
<jcromartie> @motivation = nil
banister`sleep [banister`sleep!~baniseter@118.82.185.158] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
zenergi_ [zenergi_!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
deryldou1ette [deryldou1ette!~Deryl@216.183.139.175] has joined #ruby
justicefries [justicefries!~justicefr@216.87.95.96] has joined #ruby
<kephra> moin - i suggested ruby to a customer, and the customer was able to solve his problem with rails ... but ruby.exe is crashing with a 0xc0000005 every 3rd day ... i suggested replacing the ruby.exe with a different version, what version do you suggest and know NOT to crash under windows
<kephra> browsing google tells me, that ruby.exe crashes in nearly every version ;-(
bga [bga!bga@2001:41d0:1:8d75::254] has joined #ruby
* kephra is not using windows myself - and the customer has no choice but to use windows
<bga> hi. is any way to call lambda w/o .call() - call as fn by () ?
<bga> hm
<bga> i see .()
<qelsi> kephra: the one at rubyinstaller works ok for me.
<kephra> whats your version, qelsi ?
<qelsi> 1.9.3 7z version.
<bga> bit wierd but ok
<qelsi> I only use it casually for Jekyll and Webrick though.
<qelsi> So no long-running processes.
wroathe [wroathe!~wroathe@75-146-189-233-Minnesota.hfc.comcastbusiness.net] has joined #ruby
<kephra> well this app is crashing every 3rd day - with about one page hit every 5 seconds
<soulcutter> kephra: why is there no choice about OS?
<qelsi> I've never had it crash.
<wroathe> So I'm just experimenting with some data structures and I want to make a class with a similar functionality to an array that lets the user do a = MyData.new and then get a specific item in the data with a[index] how would I go about implementing that?
<kephra> because the end user ( a power plant ) has his own ( braindead ) policy
<wroathe> def [] doesn't really work
<soulcutter> seems ridiculous but you could run it in a linux VM on his windows machine
<qelsi> (as opposed to Python 3 which insist on crashing if you change the windows console codepage)
<wroathe> So what would be the appropriate syntax
<qelsi> *insists
<kephra> soulcutter, did you ever tried to sell/install software at an industrial customer?
<soulcutter> kephra: yes.
<soulcutter> I do understand that sort of rigid policy crap, just be sure to let them know where the blame lies
<kephra> http://www.google.com/search?q="ruby.exe"+0xc0000005 <- well my question is: those 799 results show a bug that MUST NOT HAPPEN in a garbage collector language, spread over several versions
<soulcutter> in cases where I have had my hands tied by stupid policy, I have found other work
<kephra> i wonder, why ruby.exe is so instable - normaly a script engine must not crash
* kephra whines: he raped me, he forced me, he offered more and more money, till i could no longer resist
<nlew> ehh it's not really a bad policy
<nlew> if all you have now are window boxes, it's a significant cost to add a linux machine
<nlew> kephra: which version of windows?
<kephra> *ouch* bad question
<soulcutter> nlew: it may have been a bad technology decision to not use a language that is better-supported on windows
luckyruby [luckyruby!~luckyruby@rrcs-24-129-162-10.se.biz.rr.com] has joined #ruby
<nlew> soulcutter: ah well that bit I'll definitely give you
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
libertyprime [libertyprime!~libertypr@182.236.125.102] has joined #ruby
cantbecool [cantbecool!~cantbecoo@38.98.246.130] has quit [#ruby]
moshee [moshee!~moshee@unaffiliated/moshee] has joined #ruby
zenergi_ [zenergi_!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
rickmasta [rickmasta!~rickmasta@pool-71-183-247-164.nycmny.fios.verizon.net] has joined #ruby
zalesz [zalesz!~zalesz@user-46-113-32-125.play-internet.pl] has joined #ruby
<kephra> well - no windows language can wrap a UI around a db so fast as rails (fast from the question of writing application)
ryannielson [ryannielson!~ryanniels@blk-11-127-105.eastlink.ca] has quit [#ruby]
S1kx [S1kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby
S1kx [S1kx!~S1kx@pdpc/supporter/monthlybyte/s1kx] has joined #ruby
<qelsi> kephra: most bug reports indicate that the crash happens when trying to load a resource that doesn't exist.
<kephra> so I still hope, a different ruby.exe and pgsql backend will solve it
<kephra> qelsi, its not the application crashing - its ruby.exe itself crashing with an access violation
<qelsi> kephra: yes
<qelsi> It seems to be for that reason though, according to rail users.
<kephra> and the application crashes nearly regulary ... after 3 days
zakwilson_ [zakwilson_!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
c0rn [c0rn!~c0rn@50-0-142-2.dsl.dynamic.sonic.net] has joined #ruby
<kephra> and its doing the same every 5 seconds for 3 days - displaying one page, with data from pgsql
DMKE [DMKE!~DMKE@g230212096.adsl.alicedsl.de] has joined #ruby
DMKE [DMKE!~DMKE@pdpc/supporter/student/dmke] has joined #ruby
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
<kephra> so i still wonder, why does this 0xc000005 happen so often in ruby.exe (according to google - lots of people have this problem - no solution posted)
S2kx [S2kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby
<kephra> i can understand, if my orbit/lua/c stack crashes (because of my C) - but a script language must not crash
kreantos_ [kreantos_!~kreantos@178.114.134.13.wireless.dyn.drei.com] has joined #ruby
<wallerdev> kephra maybe a ruby c extension is crashing
<Seppman> Anyone can help me with Regex? i need someone for matching to END and WHO with anything between. So for example "ENDmyday due thisisWHO" should match
<wallerdev> isnt that an access violation
<Seppman> as should "thisENDscauseWHOdead" match :-)
<wallerdev> END.*WHO
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
<Seppman> cool, works, thanksalot!
<wallerdev> no problem
<wallerdev> careful if you have more than one END/WHO
<Seppman> dont have any, it comes back from irc server like in "End of /WHO list" :_)
omry_ [omry_!~omry@DSL212-235-83-63.bb.netvision.net.il] has joined #ruby
<wroathe> So what's the proper way to go about implementing a function like this http://pastie.org/3291349
<wroathe> I can't recursively call [] it seems
<banister`sleep> wroathe: self[]
<msch> how can i use private in a BasicObject subclass?
ank [ank!~ank@c-67-172-16-188.hsd1.pa.comcast.net] has joined #ruby
<wroathe> Hmm... Why self?
<banister`sleep> wroathe: because [] by itself means array
<wroathe> It works. Nice. Thanks :)
dpbus [dpbus!~dpbus@c-24-13-23-67.hsd1.il.comcast.net] has joined #ruby
n8ji [n8ji!~n8ji@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
dpbus [dpbus!~dpbus@c-24-13-23-67.hsd1.il.comcast.net] has quit [#ruby]
kephra [kephra!~kraehe@port-83-236-58-4.dynamic.qsc.de] has quit ["Leaving"]
artOfWar_ [artOfWar_!~artofwar@108-205-201-30.lightspeed.sntcca.sbcglobal.net] has joined #ruby
jaywastaken [jaywastaken!~jaywastak@unaffiliated/jaywastaken] has joined #ruby
n3m [n3m!~bla@80-121-128-51.adsl.highway.telekom.at] has joined #ruby
marvin_ [marvin_!~shikhai@pD9F4D3ED.dip0.t-ipconnect.de] has joined #ruby
tilde` [tilde`!~tilde@87.18.187.125] has joined #ruby
dr_bob [dr_bob!~dr_bob@p5DC4E713.dip.t-dialin.net] has joined #ruby
luxurymode [luxurymode!~luxurymod@rrcs-184-75-21-18.nyc.biz.rr.com] has joined #ruby
artOfWar [artOfWar!~artofwar@nat/yahoo/x-khynwkvrrrinladw] has joined #ruby
phillip [phillip!~phillip@2002:80ad:6685:b:759e:f42:7341:52f9] has joined #ruby
phillip [phillip!~phillip@2002:80ad:6685:b:759e:f42:7341:52f9] has quit [#ruby]
tatsuya_o [tatsuya_o!~tatsuya_o@46-64-51-175.zone15.bethere.co.uk] has joined #ruby
mikeg [mikeg!~mglenney@nat-uh-admins.apollogrp.edu] has joined #ruby
headius [headius!~headius@71-37-230-236.mpls.qwest.net] has joined #ruby
Ryan__ [Ryan__!~quassel@142.177.138.115] has joined #ruby
GreaseMonkey [GreaseMonkey!~gm@unaffiliated/greasemonkey] has joined #ruby
minijupe [minijupe!~benlieb@adsl-74-243-183-66.ard.bellsouth.net] has joined #ruby
S1kx [S1kx!~S1kx@pdpc/supporter/monthlybyte/s1kx] has joined #ruby
lorandi [lorandi!~lorandi@201-1-140-2.dsl.telesp.net.br] has joined #ruby
ggzach [ggzach!~ggzach@147.9.88.15] has joined #ruby
ggzach [ggzach!~ggzach@147.9.88.15] has quit [#ruby]
QKO [QKO!~reaVer@banzai.speedxs.nl] has joined #ruby
libryder [libryder!~david@209.33.214.243] has joined #ruby
libryder [libryder!~david@209.33.214.243] has quit [#ruby]
Seisatsu [Seisatsu!~seisatsu@adsl-99-35-225-92.dsl.pltn13.sbcglobal.net] has joined #ruby
jbpros [jbpros!~jbpros@188-177-112-217.dyn.adsl.belcenter.be] has joined #ruby
asmdroid [asmdroid!~nchat@5ac02823.bb.sky.com] has joined #ruby
<looopy_> does anyone here use cloudfoundry by chance?
<wallerdev> i dont
<looopy_> wallerdev: remove one blue star from the board and replace it with red.
<looopy_> anyone else? =P
motb [motb!~motb@147.9.88.15] has joined #ruby
jackerran [jackerran!~jackerran@fw.luckie.net] has joined #ruby
conor_ireland [conor_ireland!~conor_ire@89.100.121.49] has joined #ruby
motb [motb!~motb@147.9.88.15] has quit [#ruby]
sieson [sieson!~sasan@c-67-180-87-194.hsd1.ca.comcast.net] has joined #ruby
sieson [sieson!~sasan@c-67-180-87-194.hsd1.ca.comcast.net] has quit [#ruby]
kreantos [kreantos!~kreantos@77.119.37.21.wireless.dyn.drei.com] has joined #ruby
tubgoat_ [tubgoat_!~tubgoat@gateway/tor-sasl/tugboat] has joined #ruby
Y_Ichiro [Y_Ichiro!~ichiro101@uwsclient-142-187.uws.ualberta.ca] has joined #ruby
Y_Ichiro [Y_Ichiro!~ichiro101@wikipedia/Yamamoto-Ichiro] has joined #ruby
altivec [altivec!~altivec@li196-93.members.linode.com] has joined #ruby
Squarepy [Squarepy!~Luuk@ip82-139-118-42.lijbrandt.net] has joined #ruby
<davidcelis> nope
Squarepy [Squarepy!~Luuk@unaffiliated/squarepy] has joined #ruby
vjacob [vjacob!~vjacob@94-195-174-165.zone9.bethere.co.uk] has joined #ruby
stephans [stephans!~stephans@209.66.114.6] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
motb [motb!~mutinyont@147.9.64.15] has joined #ruby
motb [motb!~mutinyont@147.9.64.15] has quit [#ruby]
Ryan__ [Ryan__!~quassel@142.177.138.115] has joined #ruby
mutinyonthebay [mutinyonthebay!~mutinyont@147.9.64.15] has joined #ruby
mutinyonthebay [mutinyonthebay!~mutinyont@147.9.64.15] has quit [#ruby]
mutinyonthebay [mutinyonthebay!~mutinyont@147.9.64.15] has joined #ruby
wroathe [wroathe!~wroathe@75-146-189-233-Minnesota.hfc.comcastbusiness.net] has joined #ruby
<wroathe> Is it possible to do something like this in ruby? loop.with_index do |i|
asobrasil [asobrasil!~asantioli@palpatine.privatedns.com] has quit [#ruby]
<wroathe> I basically want an infinite loop with indexes
<wroathe> I'm probably overthinking this.
mutinyonthebay [mutinyonthebay!~mutinyont@147.9.64.15] has quit [#ruby]
aces1up [aces1up!~aces1up@wsip-70-166-88-247.sd.sd.cox.net] has joined #ruby
<workmad3> wroathe: you want a while true loop with a counter?
<mythmon> i=0; begin stuff; i+=1; end while true ?
kreantos_ [kreantos_!~kreantos@77.117.20.229.wireless.dyn.drei.com] has joined #ruby
jemendja [jemendja!~jemendja@unaffiliated/jemendja] has joined #ruby
lorandi [lorandi!~lorandi@201-1-140-2.dsl.telesp.net.br] has joined #ruby
omarshammas [omarshammas!u2743@gateway/web/irccloud.com/x-mboglkglsdbaiqsb] has joined #ruby
omarshammas [omarshammas!u2743@gateway/web/irccloud.com/x-mboglkglsdbaiqsb] has quit [#ruby]
marcoshack_br [marcoshack_br!~marcoshac@c9345b97.virtua.com.br] has joined #ruby
<Ryan__> Isn't there a each_with_index method or something?
<Ryan__> I'd double check, but I believe it exists.
thoughtpunch [thoughtpunch!~dbarrett@miniserver.jinglepunks.com] has quit [#ruby]
<qelsi> ryannielson, yes.
aces1up [aces1up!~aces1up@wsip-70-166-88-247.sd.sd.cox.net] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@71.216.18.102] has joined #ruby
aces1up [aces1up!~aces1up@wsip-70-166-88-247.sd.sd.cox.net] has joined #ruby
vjacob [vjacob!~vjacob@94-195-174-165.zone9.bethere.co.uk] has joined #ruby
lorandi [lorandi!~lorandi@201-1-140-2.dsl.telesp.net.br] has joined #ruby
aces23up [aces23up!~aces1up@wsip-70-166-88-247.sd.sd.cox.net] has joined #ruby
<ryannielson> Oh, but he wants it to go forever. I ownder what the best way to do that is.
danibx [danibx!~danibx@187.104.236.95] has joined #ruby
trivol [trivol!~aurelien@81.57.175.21] has joined #ruby
<ryannielson> while loop would be the easiest, not exactly ruby looking but it's valid.
marcoshack_br [marcoshack_br!~marcoshac@c9345b97.virtua.com.br] has joined #ruby
<regedarek> anybody can help me with aciverecord and pg on heroku ??
<regedarek> Hi :P
<regedarek> sory but im frustrated
<davidcelis> #rubyonrails
g0bl1n [g0bl1n!~prokter@a213-22-27-14.cpe.netcabo.pt] has joined #ruby
g0bl1n [g0bl1n!~prokter@unaffiliated/g0bl1n] has joined #ruby
<ryannielson> Ya you'd probably have more like on #rubyonrails
CannedCorn [CannedCorn!~textual@74.113.160.178] has joined #ruby
jemendja [jemendja!~jemendja@unaffiliated/jemendja] has joined #ruby
Phrogz [Phrogz!~phrogz@pdpc/supporter/professional/phrogz] has joined #ruby
ctp [ctp!~ctp@p5B324FFC.dip.t-dialin.net] has joined #ruby
youdonotexist [youdonotexist!~youdonote@192.206.158.10] has joined #ruby
marcoshack [marcoshack!~marcoshac@c9345b97.virtua.com.br] has joined #ruby
marting [marting!~marting@134.117.254.248] has joined #ruby
mpycio [mpycio!~mpycio@cpc1-heme2-0-0-cust784.9-1.cable.virginmedia.com] has joined #ruby
<mpycio> hi dear rybyists
<mpycio> I have a shell command in a variable ant trying to execute it and capture output with %x[]
kpshek [kpshek!~kpshek@159.140.254.101] has joined #ruby
apow [apow!~wopa@177.17.127.74] has joined #ruby
vraa [vraa!~vraa@c-76-30-135-64.hsd1.tx.comcast.net] has joined #ruby
<mpycio> but %x[var_with_command] doesn't parse variable but treats is as a literal string so I'm gettng error var_with_command : command not foound
Phrogz [Phrogz!~phrogz@184-96-128-49.hlrn.qwest.net] has joined #ruby
Phrogz [Phrogz!~phrogz@pdpc/supporter/professional/phrogz] has joined #ruby
<mpycio> it works with system(), but I need to capture output :-(
<CannedCorn> hey guys, i'm a little stuck and hoping someone can help me out. i've got some ruby code that has tests, they run perfectly on my computer in both 1.8.7 and 1.9.2 but when i try to run it in our CI (jenkins) it complains about not being able to find files referenced in a require statement.
CreativeEmbassy [CreativeEmbassy!~CreativeE@67.22.20.181] has joined #ruby
apow [apow!~wopa@177.17.127.74] has joined #ruby
alx- [alx-!~Alex@108.162.180.72] has joined #ruby
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
marcoshack [marcoshack!~marcoshac@c9345b97.virtua.com.br] has quit [#ruby]
<davidcelis> well do you have those required files on the CI server
g0bl1n [g0bl1n!~prokter@unaffiliated/g0bl1n] has joined #ruby
<CannedCorn> davidcelis yup so somewhere there is a require 'dir/file'
<davidcelis> does the CI user have access to those files
<CannedCorn> and its saying no such file to load
<CannedCorn> i believe so, they are checked out of git
ushioet [ushioet!9720aa7f@gateway/web/freenode/ip.151.32.170.127] has joined #ruby
<CannedCorn> it happens during the middle of a test
MasterIdler [MasterIdler!~MasterIdl@static-66-225-153-161.ptr.terago.net] has joined #ruby
<CannedCorn> so it can find all the other files just fine
Boohbah [Boohbah!boohbah@gateway/shell/anapnea.net/x-gwnkpxpbfwtvzgbh] has joined #ruby
tymat [tymat!~tymat@ec2-107-22-125-163.compute-1.amazonaws.com] has joined #ruby
dcl [dcl!~user@186.214.89.31] has joined #ruby
Skaag [Skaag!~Skaag@cpe-67-247-51-89.nyc.res.rr.com] has joined #ruby
ushioet [ushioet!9720aa7f@gateway/web/freenode/ip.151.32.170.127] has quit [#ruby]
n3m [n3m!~bla@80-121-128-51.adsl.highway.telekom.at] has joined #ruby
mikepack [mikepack!~mikepack@c-174-51-77-22.hsd1.co.comcast.net] has joined #ruby
nonotza [nonotza!~nonotza@50-57-234-249.static.cloud-ips.com] has joined #ruby
mattskic [mattskic!~matt@175.176.203.129] has joined #ruby
ipsifendus [ipsifendus!~ipsifendu@173-8-205-65-Oregon.hfc.comcastbusiness.net] has joined #ruby
hron84 [hron84!~hron@catv-80-99-178-192.catv.broadband.hu] has joined #ruby
ccooke [ccooke!~ccooke@spirit.gkhs.net] has joined #ruby
stephans [stephans!~stephans@209.66.114.6] has joined #ruby
_kinderman_ [_kinderman_!~kinderman@74.201.7.112] has joined #ruby
<cbuxton> @george is the build from 8 minutes ago the right one? http://ci.partnerpedia.com/job/android_cius/
theRoUS [theRoUS!~KenCoar@dsl093-240-159.ral1.dsl.speakeasy.net] has joined #ruby
theRoUS [theRoUS!~KenCoar@apache/committer/coar] has joined #ruby
_kinderman_ [_kinderman_!~kinderman@74.201.7.111] has joined #ruby
<cbuxton> @george is the build from 8 minutes ago the right one? http://ci.partnerpedia.com/job/android_cius/
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
colint [colint!~ColinT@189.164.91.58] has joined #ruby
abentspoon [abentspoon!~micah@173.247.201.130] has joined #ruby
colint [colint!~ColinT@189.164.91.58] has joined #ruby
tymat [tymat!~tymat@ec2-107-22-125-163.compute-1.amazonaws.com] has joined #ruby
tymat [tymat!~tymat@ec2-107-22-125-163.compute-1.amazonaws.com] has joined #ruby
alex__c2022 [alex__c2022!~alex@207.239.64.154] has joined #ruby
dyer [dyer!~dyer@c-24-99-89-72.hsd1.ga.comcast.net] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
Sailias [Sailias!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby
amerine [amerine!~mturner@67.204.184.82] has joined #ruby
richo [richo!~richo@boxand.lnk.telstra.net] has joined #ruby
richo [richo!~richo@unaffiliated/richohealey] has joined #ruby
tymat [tymat!~tymat@ec2-107-22-125-163.compute-1.amazonaws.com] has joined #ruby
<richo> what does the -> operator do? I've not seen it before, it seems to be some kind of lambda assignment, but googling -> is well.. pointless
milktrader [milktrader!~milktrade@67.197.35.103] has quit [#ruby]
cantbecool [cantbecool!~cantbecoo@c-69-141-173-238.hsd1.nj.comcast.net] has joined #ruby
daglees [daglees!~belvedere@unaffiliated/daglees] has joined #ruby
statarb3 [statarb3!~CoreD@546A56AA.cm-12-3b.dynamic.ziggo.nl] has joined #ruby
statarb3 [statarb3!~CoreD@unaffiliated/statarb3] has joined #ruby
eywu [eywu!~Adium@205-170-107-4.dia.static.qwest.net] has joined #ruby
wilmoore [wilmoore!~wilmoore@70-89-165-49-ISTS-co.hfc.comcastbusiness.net] has joined #ruby
badabim_ [badabim_!~badabim@17.245.89.141] has joined #ruby
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
marcoshack [marcoshack!~marcoshac@c9345b97.virtua.com.br] has joined #ruby
tymat [tymat!~starburst@ec2-107-22-125-163.compute-1.amazonaws.com] has joined #ruby
marcoshack [marcoshack!~marcoshac@c9345b97.virtua.com.br] has quit [#ruby]
Seisatsu [Seisatsu!~seisatsu@adsl-99-35-225-92.dsl.pltn13.sbcglobal.net] has joined #ruby
<Afal> richo: it's shorthand for lambda introduced in ruby 1.9 http://pragdave.blogs.pragprog.com/pragdave/2008/05/new-lambda-synt.html
regedarek [regedarek!regedarek@gateway/shell/bshellz.net/x-nbpownrdqgudobsi] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@67.139.75.158] has joined #ruby
<richo> Afal: Thanks! Well at least my inference skills aren't too bad
<richo> cheers.
youdonotexist [youdonotexist!~youdonote@192.206.158.10] has joined #ruby
regedarek [regedarek!regedarek@gateway/shell/bshellz.net/x-nbpownrdqgudobsi] has quit [#ruby]
zakwilson [zakwilson!~quassel@72.158.101.205] has joined #ruby
tymat [tymat!~starburst@ec2-107-22-125-163.compute-1.amazonaws.com] has joined #ruby
IrishGringo [IrishGringo!~chatzilla@c-71-229-99-200.hsd1.fl.comcast.net] has joined #ruby
stephans [stephans!~stephans@209.66.114.6] has joined #ruby
apow [apow!~wopa@177.17.127.74] has joined #ruby
award85 [award85!~itsame@c-69-181-38-133.hsd1.ca.comcast.net] has joined #ruby
award85 [award85!~itsame@unaffiliated/award85] has joined #ruby
Sailias [Sailias!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby
S2kx [S2kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby
trevortwining [trevortwining!~anonymous@d221-64-66.commercial.cgocable.net] has joined #ruby
BSaboia [BSaboia!~brunosabo@187.58.94.52] has joined #ruby
Sliker_ [Sliker_!~ponies@87.114.96.212] has joined #ruby
lteo [lteo!~lteo@2607:f2f8:a288::2] has joined #ruby
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
macmartine [macmartine!~macmartin@069-064-227-254.pdx.net] has joined #ruby