ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
<zenspider> heh
<dominikh> the cute thing is, you can still own names like "subtle" or "cinch". just got to hope no other project thinks of the same retarded name ;)
<petercooper> but what if your project name starts with a pound sign!
<outoftime_> wait what's up with #rubyonrails ? not the right channel?
<zenspider> outoftime_: horrible signal:noise
<outoftime_> zenspider: oh as in the actual quality of the channel. yes, i've noticed.
<drbrain> outoftime_: it has a reputation for not being helpful
<petercooper> it's been years since I was there but I mentioned it because it used to be 1000+ screaming stupid newbie questions at each other and people fighting to give bad answers
<outoftime_> I thought in terms of actual naming policy issues
<dominikh> petercooper: sounds an awful lot like #ruby :P
<petercooper> or stack overflow :P
<dominikh> or the internet
<petercooper> ouch!
<deryldoucette> i *think* the reason #rubyonrails came about is because the #ror channel is almost always invite only
<dominikh> isn't #row a redirect to #rubyonrails?
<dominikh> #ror even
<deryldoucette> Error: Cannot join to channel #ror (You must be invited)
<dominikh> I joined just fine right now
<deryldoucette> dominikh: been that way for well over a year when i moved here from efnet
<dominikh> well, I just checked, and it redirects me :)
<deryldoucette> hrmm. ok, lemme part #rubyonrails and see what gives
<petercooper> just to bring a bit of its spirit here.. the last thing I learned was that a woman's farts once forced an AA flight to land.
<A124> LoL
<deryldoucette> dominikh: huh. never ever noticed that. wonder why the server reports back that you must be invited then
<deryldoucette> it just redir'd me to #rubyonrails as you said
<dominikh> deryldoucette: well, it is _also_ invite only
<dominikh> so if you're already in #rubyonrails, it cannot forward you
<deryldoucette> that would make sense
<dominikh> and joining the actual #ror doesn't work either because of the invite only
enebo has joined #ruby-lang
macmartine has joined #ruby-lang
<deryldoucette> got ya. see what ya get for assuming? i came into #rubyonrails from the get go. always assumed it was a totally separate and isolated channel, not with a redir.
<petercooper> is ror like a super elite caboose?
<erikh> probably
ascarter has joined #ruby-lang
<deryldoucette> well from what i've been told since being on freenode its the official 'developer' channel for ruby on rails developers. i've no way of establishing the validity of that. since it was no big deal to me i never questioned it
<zenspider> wait... I'm not super elite for having access to caboose?!?
<petercooper> will tenderlove spill the beans?
<tenderlove> wat?
bglusman has joined #ruby-lang
<erikh> use /msg chanserv info #ror guys
amerine has joined #ruby-lang
<wmoxam> is caboose still around?
<dominikh> erikh: stop teaching people how to IRC. this is elite knowledge
<erikh> the modes are just broken
<erikh> dominikh: sorry
<petercooper> tenderlove: deryldoucette was wondering if #ror is the official Rails core channel
<tenderlove> not that I know of
<erikh> campfire dudes
<wmoxam> #rails-core
<tenderlove> I think only me, bitsweat, and spastorino are on irc
<tenderlove> and we're in #rails-contrib
<dominikh> interesting tidbit: #ruby was registered before #ruby-lang was
<deryldoucette> so is it an actual channel with people *in* it or what? or totally just a redir channel with modelock?
<petercooper> You are like the most awesome genie whose lamp can be rubbed with a single word.
<tenderlove> deryldoucette: it's an actual channel
<deryldoucette> petercooper: hah
<deryldoucette> tenderlove: ah
<muzone> yo tenderlove any chance we can get anything like https://gist.github.com/1547599 for rails?
<tenderlove> O_O
<muzone> It's a shell script that tracks changes to the files Rails generated for you when you first made your app - in the form of a list of what's been modified, added or deleted. This way you can later diff or replace the parts that are important to you - as opposed to rake rails:update which only updates your assets. Based on http://blog.envylabs.com/2011/10/upgrading-to-rails-3-1-1/
<zenspider> what? why?
<muzone> sorry i thought this was #rubyonrails
<muzone> man
<muzone> these new glasses make me look sexy but i cant see shit!!
<cored> zenspider: sorry, wasn't here
<petercooper> Anyone heard a rumor Ruby core wants to move parameter checking out of objects and into whatever calls the object's methods?
<zenspider> cored: meh. asking a question and then walking away?
<tenderlove> O_O
<zenspider> petercooper: they're also adding optional type checking to ruby to make it faster and safer!
<petercooper> sorry got mixed up with Rails
<cored> zenspider: I had to go to the bathroom, sorry
<tenderlove> petercooper: I was whispering it in zenspider's ear, sensually
<zenspider> waaay too much information
<petercooper> haha
<zenspider> hahaha
<zenspider> but. he was
<tenderlove> secretly too
<petercooper> are you like the angel / devil sitting on the shoulders of one uber dude?
<zenspider> god... which one would he be?
<tenderlove> the one that looks like a DIABEETUS cat
<muzone> like a what?
<erikh> diabeetus!
<ged> Pipe down, you, and eat yer oatmeal.
<muzone> ged: already did ;)
<muzone> matter of fact, the result was quite pleasing
<muzone> thats right
mark_locklear has joined #ruby-lang
bryancp has joined #ruby-lang
<injekt> I read that as 'eat yer email' too much internet
<muzone> hehe
burns180_ has joined #ruby-lang
shevy has joined #ruby-lang
Skif has joined #ruby-lang
Heimidal has joined #ruby-lang
jkyle has joined #ruby-lang
<jkyle> how would I do an incremental isntall of a gem so I can patch the rakefile before the build stage?
<injekt> jkyle: why would you want to patch an installed gems rakefile?
<jkyle> I want to patch the rakefile before it builds the gem
<jkyle> so, the gem is not currently installed but to get the build to work I need to patch the rakefile. something like fetch, extract, <patch or edit>, build, install
<injekt> fetch it, edit it, and build/install it yourself
<injekt> that is, fetch the entire project, edit the rakefile, build it, install it
<injekt> boom
<andrewvos> Any new scandals since I've been away from the internet?
<jkyle> here we go, gem fetch, gem unpack, <patch it up>, gem build, gem install --skip-build
<injekt> doesn't look like you've touched the rakefile you wanted to edit :)
<jkyle> now, just for fun, I get to throw rvm and bundler in the mix...I really hate those apps :P
<injekt> why are you using them then?
<jkyle> sometimes we don't choose what we have to work with
<injekt> I'm glad I don't live that
<jkyle> injekt: independent contractor?
<jkyle> that works with all new code, I would assume
<injekt> no, but I don't mean everything. That is, I work with stuff I don't really *like*, but things like rvm and bundler have never (nor would ever) be a dependency of anything I do
<injekt> I'm not an rvm fan, so I use rbenv
<injekt> I use bundler because it's nice once you get past the stupid
<jkyle> it's the deploy model used by the developers of this particular app for which I've inherited support. seems most ruby developers really like bundler + rvm though
erics has joined #ruby-lang
<injekt> yeah, I certainly won't argue with that
<injekt> it's very popular
Skif_home has joined #ruby-lang
<jkyle> I think I'd like them more if I more actively developed the projects I support...seems they work alright once you get the magic incantations down on your own system.
darkf has joined #ruby-lang
<jkyle> normally, I just have to jump in to fix things...and the first things I seem to have to fix are rvm and bundler
takaokouji has joined #ruby-lang
<injekt> if an app is dependant on rvm it's doing it wrong
<injekt> bundler is different
<jkyle> bundler more than rvm
thone has joined #ruby-lang
<jkyle> ok, so I did a gem fetch foo, then gem unpack foo.gem, then edited the rakefile. now I have a directory called 'foo' with the modified files.
<jkyle> now, I think I need to create a gemspec and rebundle it, then install?
burns180 has joined #ruby-lang
<injekt> I have no idea what you're doing?
<jkyle> I need to patch a Rakefile and install the gem into a bundler environment
<injekt> I still don't understand why you need to alter the rakefile, bundler and rubygems doesn't care about your rakefile
<jkyle> it runs teh default rake task to build the extensions right?
<jkyle> s.extensions = ["Rakefile"]
<jkyle> in the gemspec
<jkyle> in the rakefiile it uses an invalid swtich that it passes to gcc, specificially -R , which needs to be changed to a -L
havenn has joined #ruby-lang
<injekt> what gem is this?
<jkyle> xapian-full
<lsegal> jkyle you might not like this but the standard answer tends to be: "fork, and, if possible, submit pull request"
<jkyle> yeah, just asked our ruby guys and they're like "fork it!"
tomzx has joined #ruby-lang
<jkyle> it's literally a one character change, R to L lol
<injekt> system! "mkdir -p lib"
<injekt> jeez
<A124> Hey. Can any of you guys hang me out please?
<A124> Is there Array#union, which does _not_ remove duplicates?
<petercooper> + ?
<jkyle> A124: that wouldn't really be a union though, right?
<petercooper> [1,2,3] + [1,2,3] # => [1, 2, 3, 1, 2, 3]
<A124> jkyle:
<A124> [1,1,2,3] + [1,2,3]# => [1,1,2,3]
<A124> I'm not into removing duplicates .. of course, that would not be. I just need and union like fuctionality.
<jkyle> the union of two sets is the set of all distinct elements in the collection
<jkyle> by definition, no duplicates :) addition might do what yo wish though
<A124> jkyle: Um.. will look it up
<A124> jkyle: No, addition is not
<A124> I need: file_2 - (file_1 & file_2)
<A124> Is there any better way to do this? .. (This removes elements from array 2 which are not in both arrays.
<A124> * Sorry, my error:
<A124> file_1 - (file_2 - (file_1 & file_2))
voker57 has joined #ruby-lang
btfriar has joined #ruby-lang
<A124> For me it looks like emulating a logical problem, but I haven't found anything in RDoc
burns180_ has joined #ruby-lang
btfriar has quit [#ruby-lang]
<jkyle> I know recommended is to fork, but is it really impossible to walk through the installation process and patch the gem?
saneshark has quit [#ruby-lang]
<A124> jkyle: What do you mean by that?
srbartlett has joined #ruby-lang
QoQOoO has joined #ruby-lang
fayimora has joined #ruby-lang
<jkyle> this is what I tried to do: gem fetch foo && gem unpack foo && cd foo; <patch source>; bundle exec rake # default tasks builds/installs gem
<jkyle> but I get this: Could not find gem 'xapian-full (>= 0) ruby' in any of the gem sources listed in your Gemfile.
<A124> jkyle: Doen not the patch require additional library?
ramu3 has joined #ruby-lang
<A124> Specificaly gem.
<jkyle> k, think I got it
<A124> ;)
<jkyle> bundle exec rake works if I _remove_ the gem from the Gemfile. otherwise bundle craps out because it sees a req that's not installed
gnufied has joined #ruby-lang
ontehfritz has joined #ruby-lang
<jkyle> crap, that built it but it's still not in my bundle environment
* zenspider lights rake on fire
heppy_ has joined #ruby-lang
<A124> jkyle: xD
gentz has joined #ruby-lang
<jkyle> how do you get the url that a gem is hosted at...like how do you show the metadata for a gem to know where it comes from?
burns180 has joined #ruby-lang
QaDeS_ has joined #ruby-lang
<zenspider> jkyle: I don't think that information exists
<zenspider> (in the installed gem)
<zenspider> if you gem install with -V you'll see where it comes from
ilyam has joined #ruby-lang
looopy has joined #ruby-lang
sj26 has joined #ruby-lang
mistym has joined #ruby-lang
Z33K|Lux has joined #ruby-lang
l0st1 has joined #ruby-lang
gentz has joined #ruby-lang
seanstickle has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has joined #ruby-lang
shtirlic has joined #ruby-lang
burns180 has joined #ruby-lang
Austin__ has joined #ruby-lang
looopy has joined #ruby-lang
bglusman has joined #ruby-lang
bryancp has joined #ruby-lang
bglusman has joined #ruby-lang
boodle has joined #ruby-lang
krz has joined #ruby-lang
havenn has joined #ruby-lang
Temp has joined #ruby-lang
wmoxam has joined #ruby-lang
dreinull has joined #ruby-lang
dfr|mac has joined #ruby-lang
dfr|mac_ has joined #ruby-lang
dfr|mac__ has joined #ruby-lang
postmodern has joined #ruby-lang
jkyle has joined #ruby-lang
havenn has joined #ruby-lang
havenn has joined #ruby-lang
neoesque has joined #ruby-lang
gnufied has joined #ruby-lang
wmoxam has joined #ruby-lang
burns___ has joined #ruby-lang
lake has joined #ruby-lang
brownies has joined #ruby-lang
jkyle_ has joined #ruby-lang
havenn has joined #ruby-lang
darkf_ has joined #ruby-lang
burns180 has joined #ruby-lang
darkf has joined #ruby-lang
dreinull has joined #ruby-lang
havenn has joined #ruby-lang
jkyle has joined #ruby-lang
deryldoucette has joined #ruby-lang
QoQOoO has joined #ruby-lang
ilyam has joined #ruby-lang
<havenn> shevy: I forget who it was this morning who as looking for a timer that would go off if a method wasn't called in however many seconds. You mentioned EventMachine as a solution. Was just looking at Celluloid today, and it has a nice solution as well: https://gist.github.com/1983287
CodeBlock has joined #ruby-lang
uniqanomaly has joined #ruby-lang
gokul has joined #ruby-lang
twittard has joined #ruby-lang
burns180 has joined #ruby-lang
hagebake has joined #ruby-lang
hagebake has joined #ruby-lang
rohit has joined #ruby-lang
rippa has joined #ruby-lang
havenn has joined #ruby-lang
zmack has joined #ruby-lang
tenderlove has joined #ruby-lang
jxie has joined #ruby-lang
gsav has joined #ruby-lang
deryldoucette has joined #ruby-lang
dhruvasagar_ has joined #ruby-lang
achiu has joined #ruby-lang
burns180_ has joined #ruby-lang
gregmoreno has joined #ruby-lang
deryldoucette has joined #ruby-lang
deryldou1ette has joined #ruby-lang
deryldoucette has joined #ruby-lang
deryldoucette has joined #ruby-lang
gsav has joined #ruby-lang
gsav has joined #ruby-lang
gsav has joined #ruby-lang
chimkan_ has joined #ruby-lang
gsav_ has joined #ruby-lang
gsav_ has joined #ruby-lang
btfriar has joined #ruby-lang
deryl has joined #ruby-lang
brianpWins has joined #ruby-lang
wmoxam has joined #ruby-lang
burns180_ has joined #ruby-lang
ilyam has joined #ruby-lang
adamjkl has joined #ruby-lang
<adamjkl> i'm new to Ruby and have difficulty understanding why this code doesn't work as I want it to : http://pastebin.com/1zmciiDQ
<adamjkl> when I try to display c["is"], it gives me 0, when it should clearly be 1
<adamjkl> why is that?
Gekz has joined #ruby-lang
<wallerdev> adamjkl: all your hash keys are actually arrays
<wallerdev> because you used a regex group in scan
<wallerdev> so for example you could do puts c[["is"]]
<wallerdev> or you could do count[word[0]] += 1
<adamjkl> wallerdev: so if I want the keys to be strings and not arrays, how should I modify the code ?
<wallerdev> you could do count[word[0]] += 1
<wallerdev> or you could use map or flatten with your words array
jkyle has joined #ruby-lang
<wallerdev> for example words = str.scan(/-([a-z]+)-/).flatten
<wallerdev> if you do "p words" you will see that your array currently looks like [["this"], ["is"], ["a"], ["sentence"]]
gianlucadv has joined #ruby-lang
<adamjkl> wallerdev: I get it now, thanks a lot
<wallerdev> no problem
mikeric has joined #ruby-lang
heppy has joined #ruby-lang
burns180 has joined #ruby-lang
sdeobald_ has joined #ruby-lang
kitallis has joined #ruby-lang
CodeBlock has joined #ruby-lang
SPYGAME has joined #ruby-lang
QoQOoO has joined #ruby-lang
toretore has joined #ruby-lang
JohnBat26 has joined #ruby-lang
x0F__ has joined #ruby-lang
burgestrand has joined #ruby-lang
andkerosine has joined #ruby-lang
<andkerosine> How to serve compressed archives from Heroku if files can't be written?
robbyoconnor has joined #ruby-lang
robbyoconnor has joined #ruby-lang
butchanton has joined #ruby-lang
frangiz has joined #ruby-lang
msch has joined #ruby-lang
butchanton has joined #ruby-lang
aza_kibo_ has joined #ruby-lang
aza_kibou has joined #ruby-lang
yxhuvud has joined #ruby-lang
<TTilus> andkerosine: maybe not serve them from heroku?
burgestrand has joined #ruby-lang
<TTilus> andkerosine: there are a great deal of services just for that
butchanton has joined #ruby-lang
<TTilus> andkerosine: and if you happen to mean that you serve a compressed version of something you deploy to heroku as resource, maybe compress on the fly?
|Vargas| has joined #ruby-lang
|Vargas| has joined #ruby-lang
srbaker has joined #ruby-lang
dc5ala has joined #ruby-lang
esotericalgo has joined #ruby-lang
<esotericalgo> does array indexing have linear access time?
<heftig> esotericalgo: you mean x[4]?
<esotericalgo> heftig: yes
<heftig> no, constant.
<heftig> arrays are arrays, not linked lists.
<msch> heftig: what happens if i add stuff at the end? does the whole array get copied into a bigger array?
<heftig> yes.
<esotericalgo> heftig: I was just curious since the required the Enumerable mixin requires each, which seems to suggest that all subsequent Enumerable methods would be O(n)
<heftig> if it's too small, that is
<rippa> esotericalgo: Enumerable doesn't provide [] though
<heftig> [] is a method of Array, not Enumerable
<esotericalgo> rippa: ahh, that would explain it, thanks
Fractality has joined #ruby-lang
<rippa> also, many Enumerable methods are redefined in Arrays
<esotericalgo> are the builtins in ruby or a lower-level part of the interpreter?
<heftig> C
<esotericalgo> thanks that cleared a lot up
<heftig> Rubinius is a VM that implements a lot in Ruby itself
<msch> heftig: any way i can create an empty array with a given capacity? e.g. if i have a tight loop and know i'll build an array with n elements
<heftig> Array.new(x)
sdeobald_ has joined #ruby-lang
macmartine has joined #ruby-lang
burns180 has joined #ruby-lang
solars has joined #ruby-lang
io_syl has joined #ruby-lang
amerine has joined #ruby-lang
QoQOoO has joined #ruby-lang
kain has joined #ruby-lang
RomyRomy has joined #ruby-lang
burns180_ has joined #ruby-lang
_mh_ has joined #ruby-lang
_mh_ has joined #ruby-lang
Fullmoon has joined #ruby-lang
ryanf has joined #ruby-lang
bousquet has joined #ruby-lang
JohnBat26 has joined #ruby-lang
QaDeS has joined #ruby-lang
Takoi has joined #ruby-lang
macmartine has joined #ruby-lang
workmad3 has joined #ruby-lang
<Takoi> Hi everyone. I'm looking foward to working with Actor model and Ruby, and I would like to know if you guys knew some nice gems to achieve that. I tried Revactor, but it's wait too "feature-full" than what I need. I really just need message passing (sync and async). Any idea ?
burns180 has joined #ruby-lang
srbaker has joined #ruby-lang
dhruvasagar has joined #ruby-lang
gasbakid has joined #ruby-lang
tekin has joined #ruby-lang
qz has joined #ruby-lang
lele has joined #ruby-lang
Fullmoon has joined #ruby-lang
cyri_ has joined #ruby-lang
cubesat631 has joined #ruby-lang
<cubesat631> Hey Everyone. I'm currently trying to install Ruby 1.9 on my VM, but Ruby keeps being installed in local (running on Ubuntu currently)
<cubesat631> which ruby >> /usr/local/bin/ruby
<cubesat631> Any way to force it going into my usr/lib folder ? :/
<ddfreyne> ./configure --prefix should do it when comipling from source
<ddfreyne> but I recommend rvm :)
<cubesat631> What's RVM ?
<ddfreyne> rvm.beginrescueend.com
solars has joined #ruby-lang
<cubesat631> Trying it
<yorickpeterse> RVM is a tool that allows you to install multiple rubies either for the entire system or for specific users
<cubesat631> ERROR: The requested url does not exist: 'ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-.tar.bz2'
<cubesat631> bad start ^
<ddfreyne> yikes
<ddfreyne> what did you use to install ruby?
<cubesat631> Downloaded the TAR, deTAR, ./configure (without prefix though), make, make install
<cubesat631> What prefix should I put to throw it in my usr/lib folder ? :P
<yorickpeterse> That shouldn't be needed for RVM
<yorickpeterse> You run the snippet on their website and then just do `rvm install 1.9.3`
<cubesat631> Yah but RVM is reaching an URL that doesn't exist
<cubesat631> ERROR: The requested url does not exist: 'ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-.tar.bz2'
<cubesat631> Igot that
<yorickpeterse> Hm, odd
<ddfreyne> huh? you configure, make, make installed rvm?
<yorickpeterse> Try `rvm install 1.9.3-p125`
<cubesat631> no ddfreyne, was talking about Ruby
<cubesat631> ddfreyne: I did like they said on the website
<ddfreyne> oh right
<ddfreyne> if you do "rvm get head" and try installing it again, does it work?
<cubesat631> seems to be downloading with what yorickpeterse said
<ddfreyne> 1.9.3 should work too though I guess... ot sure
<cubesat631> I didn't in my case ^
<cubesat631> Compiling...
tbuehlmann has joined #ruby-lang
<cubesat631> *cross fingers*
gnufied has joined #ruby-lang
<cubesat631> Well it finished
<cubesat631> I don't know if everything went good tho :p
<cubesat631> I don't get anything when I run 'whereis ruby'
<ddfreyne> did you open a new terminal?
<ddfreyne> or used 'rvm reload'?
<cubesat631> and running 'irb' gives me > bash: /usr/local/bin/irb: /usr/local/bin/ruby: bad interpreter: No such file or directory
<yorickpeterse> cubesat631: you have to explictly "use" the ruby first
<yorickpeterse> `rvm use 1.9.3` or `rvm use --default 1.9.3`
<yorickpeterse> The latter will switch it over to the default Ruby for that user
<cubesat631> ok
burns180_ has joined #ruby-lang
<cubesat631> Using /usr/share/ruby-rvm/gems/ruby-1.9.3-p125
<cubesat631> got that
<cubesat631> Is it normal for it to be in /usr/share ? :/
Zolrath has joined #ruby-lang
<yorickpeterse> Did you install it as root?
francisfish has joined #ruby-lang
<cubesat631> yes of course
<yorickpeterse> RVM is meant to be installed on a user specific level. You can install it system wide but it's not something most people would recommend
<cubesat631> Well it's just a VM
<cubesat631> I just want to be able to run Ruby lol
<yorickpeterse> What OS?
<yorickpeterse> Most package managers come with RVM and unless you're using Debian/Poobuntu they should be reasonable up to date. RVM however is something that's always up to date and allows project specific rubies and the like
<cubesat631> I'm on Ubuntu right now
<yorickpeterse> Not sure if 1.9 is in apt
<yorickpeterse> Wouldn't surprise me if they're still on 1.8
<cubesat631> Yeah but I got the 1.9 tar
<cubesat631> but I don't know what prefix I should use on the ./configure
<yorickpeterse> Well, there's two ways
<cubesat631> to force it going into usr/lib
<yorickpeterse> You can use RVM which you've already done (just install it user specific, thus without "sudo" and the like)
<yorickpeterse> Or configure it with --prefix
<yorickpeterse> e.g.
<yorickpeterse> ./configure --prefix=/foo/bar
<cubesat631> so in my case /usr/lib ?
<yorickpeterse> Yes
francisfish has joined #ruby-lang
<yorickpeterse> But I think /usr/local/lib would be better suited (which is also the default location I believe)
<cubesat631> it is
<cubesat631> but
<cubesat631> when I type 'ruby'
<cubesat631> or 'irb'
<cubesat631> it tells me it's not an installed program
<yorickpeterse> Make sure your $PATH is correct
<yorickpeterse> export PATH="$PATH:/usr/local/bin" something like that
<cubesat631> Ah good to know
<cubesat631> Yes
<cubesat631> it works :)
<cubesat631> &>ruby -v >> ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux]
<cubesat631> Thanks a lot
<yorickpeterse> You probably want to put that in your ~/.bashrc or ~/.profile file
<yorickpeterse> That way you don't have to do it every time
roadkith has joined #ruby-lang
<cubesat631> How do I do that ?
<cubesat631> vi ~./.bashrc
<cubesat631> and copy the line you gave me ?
<yorickpeterse> Yes
<yorickpeterse> Though RVM takes care of that for you :)
zmack has joined #ruby-lang
<cubesat631> done
<cubesat631> Oh Ruby 1.9 is mean, it does want me to delete all the special characters I used in my Strings lol
<cubesat631> I used regular French characters
<cubesat631> like éàèçù etc
QoQOoO has joined #ruby-lang
<yorickpeterse> Eh, it doesn't
<yorickpeterse> Turn on UTF8 encoding
<yorickpeterse> put #encoding: utf-8 at the top of your file
<cubesat631> You mean my like.... 100 files ?
<yorickpeterse> Eh no
<yorickpeterse> Are these strings set in the source files themselves?
<yorickpeterse> Perhaps the easiest would be to do the following: Encoding.default_internal = 'utf-8'
<yorickpeterse> That should only be needed once
<cubesat631> Yeah I do something like raise ActorInitializationError, "ééééééééééééééé (just to show you)" if self.class == ::SimpleActor
ABK has joined #ruby-lang
<cubesat631> Well I just did a script who wrote #encoding: utf-8 at the top of each file
<cubesat631> Thanks anyway, much appreciated
<zenspider> rawr
davidw has joined #ruby-lang
<Takoi> :)
<yorickpeterse> np
sdeobald__ has joined #ruby-lang
<Takoi> Does someone know any library which would allow me to use the actor model in Ruby ? I tried Revactor, but they are just wayyyy more too many features in this awesome lib, I just would like to have a message passing system, sync and async
burns180 has joined #ruby-lang
<Takoi> It's awesome, but I'd say it's even more feature-full than Revactor, isn't it ? The thing is I just don't want to use a gem, 99% of which I don't even care for my application. You see what I mean ? I won't use a car to crush a nuts if I can have a nutcracker
Fullmoon has joined #ruby-lang
<yorickpeterse> You're not forced to use all the features
kp666 has joined #ruby-lang
rohit has joined #ruby-lang
dhruvasagar has joined #ruby-lang
<shevy> I use my car to drive over nuts
<shevy> much faster than a nutcracker
<rippa> I used micrometer to crack nuts
<rippa> very handy
<Takoi> rofl :)
<Takoi> yorickpeterse: Yes of course. But it's for a robotics application (embedded system) and i'm very very limited in memory size
<Takoi> each KB I can save, I save it
<andrewvos> For a rainy day
<yorickpeterse> Takoi: Ah
<Takoi> I found this one : https://github.com/glejeune/ara
<Takoi> but I'm not pretty sure to understand everything he did
<Takoi> I ran the examples, but I'm not sure if I get what I should get lol
justinmcp has joined #ruby-lang
seoaqua has joined #ruby-lang
canton7 has joined #ruby-lang
futurechimp has joined #ruby-lang
burns180_ has joined #ruby-lang
davidw has joined #ruby-lang
lele has joined #ruby-lang
<andkerosine> Anybody willing to look through and tell me where my code sucks hardest? : )
woollyams has joined #ruby-lang
<zenspider> andkerosine: no tests
beiter has joined #ruby-lang
<beiter> Hi
<beiter> I need to extract bookmarks from a pdf file.Is there a good way to do this
<andkerosine> zenspider: What is "tests"?
rob_ has quit [#ruby-lang]
<zenspider> unit tests
<andkerosine> Hm... never heard of them.
<tobiasvl> andkerosine: how do you ttest your code? :)
<zenspider> they run it... over and over and over again
<shevy> think of them as putting mice in a cage with a wheel and they run and run and run and when a hole is in the wheel the mouse goes wheeeeeeeeeee and falls down and in goes the next mouse
Asher has joined #ruby-lang
gasbakid__ has joined #ruby-lang
woollyams has joined #ruby-lang
SiliconDon has joined #ruby-lang
<zenspider> andkerosine: well... that's where your code sucks the hardest
<zenspider> until you have tests, I have to assume the code is broken
<andkerosine> Granted.
futurechimp has joined #ruby-lang
<beiter> Any suggestions to my question
schroedinbug has joined #ruby-lang
burns180 has joined #ruby-lang
<andkerosine> beiter: PDFKit is amazing for creation, but it doesn't do any reading... : /
m3nd3s has joined #ruby-lang
<andkerosine> Convert to XML?
<andkerosine> Last example seems to be exactly what you need.
fayimora has joined #ruby-lang
setmeaway has joined #ruby-lang
<beiter> andkerosine: thx
gasbakid has joined #ruby-lang
ankurgel has joined #ruby-lang
<ankurgel> long day is long.
<ankurgel> hi all
lbrent has joined #ruby-lang
kyrylo has joined #ruby-lang
kyrylo has joined #ruby-lang
lbrent_ has joined #ruby-lang
kedare has joined #ruby-lang
ltd- has joined #ruby-lang
burns180_ has joined #ruby-lang
dhruvasagar has joined #ruby-lang
francisfish has joined #ruby-lang
beiter has joined #ruby-lang
Arnvald has joined #ruby-lang
<beiter> andkerosine: The output is exactly what i was searching for. unfortuna
<beiter> unfortunately it is not well structed
justinmcp has joined #ruby-lang
S2kx has joined #ruby-lang
valeri_uF0 has joined #ruby-lang
chalky has joined #ruby-lang
Fullmoon has joined #ruby-lang
kitallisii has joined #ruby-lang
kyrylo has joined #ruby-lang
jimmyy111 has joined #ruby-lang
workmad3 has joined #ruby-lang
dhruvasagar has joined #ruby-lang
geek_ has joined #ruby-lang
16WAAEE64 has joined #ruby-lang
Geek has joined #ruby-lang
gregmoreno has joined #ruby-lang
rippa has joined #ruby-lang
musl has joined #ruby-lang
DEac- has joined #ruby-lang
dubellz has joined #ruby-lang
flebel has joined #ruby-lang
ged has joined #ruby-lang
dbussink has joined #ruby-lang
vereteran has joined #ruby-lang
knu has joined #ruby-lang
eydaimon has joined #ruby-lang
chalky has joined #ruby-lang
uniqanomaly has joined #ruby-lang
gnufied1 has joined #ruby-lang
krzyhoo has joined #ruby-lang
mitchty_ has joined #ruby-lang
<krzyhoo> hi guys. The challenge. Check if each character from an incomming string can be found in a list of allowed characters. how do i do that??
<krzyhoo> "ADDD+R".scan(/./).each {|x| puts 'OK' if x =~ /ADNRX+/ } seemt not to work
<andrewvos> erghh
<andrewvos> allowed_chars.all? {|a| string.include? a}
<andrewvos> krzyhoo: meh?
dubellz has joined #ruby-lang
<krzyhoo> andrewvos: is it ruby or rails?
<andrewvos> krzyhoo: lolwhut
<yorickpeterse> allowed.each { |c| abort 'not allowed' unless input[c] }
<andrewvos> It's ruby I think
<krzyhoo> is this a rails specific what you just wrote?
<tobiasvl> krzyhoo: your problem seems to be with regexes
<andrewvos> krzyhoo: noo
<krzyhoo> tobiasvl: am listening
<tobiasvl> nah nevermind me
benvds has joined #ruby-lang
oddmunds has joined #ruby-lang
<krzyhoo> ok
<krzyhoo> solvbed myself
<krzyhoo> "ADDD+R".scan(/./).each {|x| puts 'OK' if "ADNRX+".include? x }
<rippa> string.chars.all? {|c| allowed.include? c}
chalky has joined #ruby-lang
<yorickpeterse> krzyhoo: the #scan() is totally useless
francisfish has joined #ruby-lang
<yorickpeterse> What rippa suggested is much better, hell, you can even use what I suggested
<krzyhoo> yorickpeterse: so i should go with rippa
<krzyhoo> ók
<yorickpeterse> #scan(/./) does pretty much the same as #chars
<yorickpeterse> It however requires the need for a regex object, something that's a waste of resources in this case
<krzyhoo> yeah. but rippa suggestion sucks in my case
<rippa> why?
<krzyhoo> "ADDDS+R".chars.all? {|x| puts "OK" if "ADNRX+".include? x}
<krzyhoo> because this must fails
<krzyhoo> S is not allowed
<krzyhoo> *fail
<rippa> puts "OK" if "ADDDS+R".chars.all? {|x| "ADNRX+".include? x}
<krzyhoo> rippa: awesome
<krzyhoo> rippa: so, that leaves me with just one problem. if there is an "R" it can only exist once and must me at the end of the incomming string
<krzyhoo> any ideas? :)
<krzyhoo> chaining after } seems to be out of the question
<krzyhoo> since "ADDD+R".chars.all? {|x| "ADNRX+".include? x} returns just true oor false
manojhans has joined #ruby-lang
looopy has joined #ruby-lang
Taki has joined #ruby-lang
<Taki> Hey everyone. I'm currently trying to understand the actual difference between native threads and fibers. Talking about implementation, I get it. However, I would like to know what really happens in the computer when you create 10 threads, and when you create 10 fibers. Any link recommended ?
musicmatze has joined #ruby-lang
<Taki> Basically, I just want to get the difference between native threads and green threads
<musicmatze> Hi there! I've got a Question: Where can I find the ruby.h to extend Ruby in C? Do I really have to fork the whole Ruby-Source at for example github, or is there an easy way to do this? (I'm on Archlinux, I installed Ruby via pacman from the repos)
<yorickpeterse> musicmatze: No
<yorickpeterse> #include <ruby.h> should work fine on Arch linux
<yorickpeterse> Taki: given the GIL would be removed threads can be executed at the same time
<yorickpeterse> Fibers are sort of fancy blocks that you can resume and the like
<Taki> yorickpeterse: so fibers are just like green threads right ?
<Taki> (since you can schedule them on your own)
<yorickpeterse> No
<yorickpeterse> musicmatze: No need for PRIVMSGs
<yorickpeterse> Taki: Fibers have no concept of thread safety and the like
<musicmatze> yorickpeterse: okay, sorry. I use IRC the first time! ...
<yorickpeterse> Threads, whether they're green or not, do
<yorickpeterse> musicmatze: No problem
malev has joined #ruby-lang
malev has joined #ruby-lang
<yorickpeterse> musicmatze: Are you using Rake compiler to compile the extension?
<Taki> yorickpeterse: hm OK... About GIL, doesn't it "limit" a bit Ruby for concurrent programming ?
<yorickpeterse> Yes
<yorickpeterse> It means that threads can't run at the same time. Jruby has proper threading since it doesn't have a GIL and Rubinius 2 has proper threading as well
<yorickpeterse> Though both have their downsides
<Taki> Yeah
<Taki> But
<Taki> wait
<Taki> 2 threads can't be run at the same time in Ruby ? :o
<yorickpeterse> No
<yorickpeterse> Due to the GIL there can only be one thread active at a given time
<Taki> Oh ok
<Taki> well
<yorickpeterse> This however also affects other languages such as Python
<Taki> is there any language able to run different threads at the same time ? (I'm not a developper, just a very curious person)
morozovm has joined #ruby-lang
<Taki> I think even Erlang isn't true parallelism
<yorickpeterse> A lot of languages have a GIL given they support threading in the first place
<yorickpeterse> Erlang doesn't have threads as far as I know
<Taki> Well, Erlang is a bit odd
<yorickpeterse> if you insist on using threads, use jruby
<yorickpeterse> (that is, if you want to use Ruby)
<Taki> Given a multicore processor, the VM creates 1 thread per core with its own scheduler, and then each core can run a process queue
<Taki> that's Erlang :)
<Taki> Well, as I said, i'm not a developper
<Taki> I'm just trying to understand the concurrent programming
<Taki> and mainly the difference between several languages
mark_locklear has joined #ruby-lang
burns180 has joined #ruby-lang
dejongge has joined #ruby-lang
benvds has joined #ruby-lang
looopy has joined #ruby-lang
gasbakid has joined #ruby-lang
ankurgel has joined #ruby-lang
imperator has joined #ruby-lang
<imperator> good morning
leonL has joined #ruby-lang
rolfb has joined #ruby-lang
spuk has joined #ruby-lang
justinxreese has joined #ruby-lang
gasbakid has joined #ruby-lang
<andrewvos> imperator: Good day!
beiter_ has joined #ruby-lang
burns180 has joined #ruby-lang
vmatiyko has joined #ruby-lang
sandbags has joined #ruby-lang
mssola has joined #ruby-lang
morozovm has quit [#ruby-lang]
chalky has joined #ruby-lang
<krzyhoo> andrewvos: is there a handsome way to do it??
<krzyhoo> i'm really open to suggestions
<andrewvos> Do what?
<andrewvos> krzyhoo: Use ERB
<krzyhoo> andrewvos: it's not a rails code
<andrewvos> krzyhoo: I know
<andrewvos> krzyhoo: require "erb"
<krzyhoo> the xmls are input for Informatica PowerCenter
<krzyhoo> ok
<andrewvos> krzyhoo: Then have a file.erb
<andrewvos> krzyhoo: Read that file in and render it.
<DefV> I'd match /#[^#]+#/ with a block
<andrewvos> krzyhoo: I did it like five minutes ago: https://gist.github.com/1986373
<krzyhoo> can you post an example how to render it with erb?
<DefV> but then the file has to be in ERB format?
<DefV> or would you replace #[^#]+# with <%\1%> ? :-)
<andrewvos> DefV: Yes. No <%=var_name%>
<DefV> I think the problem is that the file isn't something he controls
<DefV> no?
Sailias_ has joined #ruby-lang
<andrewvos> It is now
<andrewvos> Because of the power of *programming*
<DefV> I actually think that converting it to ERB makes it more complex rather than less
<andrewvos> DefV: Well, luckily I'm the one in charge here
<krzyhoo> DefV: partially you are right
<krzyhoo> but the andavntage is, the templates are not in the code then
<krzyhoo> which is something i was going to do anyway
tomzx has joined #ruby-lang
<beiter> I have following text-structure. How do i split the blocks into arrays: https://gist.github.com/1986394
manoj has joined #ruby-lang
tommyvyo has joined #ruby-lang
<Thingies> beiter: I would use YAML for that ;)
jxie has joined #ruby-lang
<Thingies> beiter: You might change the structure a bit, but you would win much time
chalky has joined #ruby-lang
<beiter> I can't change the structure though it comes from a program
<DefV> beiter: do you care about the block numbers/names?
chalky has quit [#ruby-lang]
<Thingies> Well, I won't say anything because I know a true rubyist can do it in like 1 line using split/map/insert/injekt/... and I would be ashamed lol
<beiter> DefV: No I don't
<tobiasvl> beiter: do you want it as an array? or a hash?
<beiter> not necessary
<DefV> beiter: read it as string and split it: data.split(/#[^\n]+/)
<DefV> (and get rid of the empty first element
<DefV> )
<beiter> ok i'll give it a try
burns180_ has joined #ruby-lang
<beiter> thx
ovnimancer has quit [#ruby-lang]
fouriek has joined #ruby-lang
tbuehlmann has joined #ruby-lang
dv310p3r has joined #ruby-lang
wyhaines has joined #ruby-lang
<krzyhoo> andrewvos: awesome
fouriek has joined #ruby-lang
<krzyhoo> dues just the trick
<krzyhoo> you rock
<andrewvos> wohoo
<krzyhoo> the code will get like 20% smaller
<krzyhoo> why didn't i came up with that solution
alexkane has joined #ruby-lang
<andrewvos> Well I've needed it for a lot of projects
macmartine has joined #ruby-lang
<krzyhoo> rails or ruby?
chalky has joined #ruby-lang
chalky has joined #ruby-lang
<andrewvos> ruby
<andrewvos> I haven't done any rails projects
<krzyhoo> first time ever I meet a person that does more ruby with ruby than rails with ruby ;)
<krzyhoo> can you tell me what did you use it mainly for?
<andrewvos> You are in ruby-lang
<krzyhoo> shit you are right ;-)
bglusman has joined #ruby-lang
chalky has joined #ruby-lang
* yorickpeterse doesn't use Rails either
<yorickpeterse> Then again I don't use Ruby for my job :[
workmad3 has joined #ruby-lang
kain has joined #ruby-lang
workmad3 has joined #ruby-lang
<rue> O M G B B Q
<andrewvos> Defusal: WHEN DID THIS HAPPEN???
<yorickpeterse> Old news
<yorickpeterse> welcome to two days ago
<andrewvos> haha
<andrewvos> An internet lifetime
<andrewvos> ago
<felideon> indeed
<imperator> that's one way to make a point
JEG2 has joined #ruby-lang
RomyRomy has joined #ruby-lang
adambeynon has joined #ruby-lang
burns180_ has joined #ruby-lang
enebo has joined #ruby-lang
sym_ has joined #ruby-lang
beiter_ has joined #ruby-lang
mytrile has joined #ruby-lang
slyphon has joined #ruby-lang
dous has joined #ruby-lang
akahn has joined #ruby-lang
apeiros_ has joined #ruby-lang
rippa has joined #ruby-lang
looopy has joined #ruby-lang
mistym has joined #ruby-lang
outoftime has joined #ruby-lang
rayners has joined #ruby-lang
heftig has joined #ruby-lang
chimkan has joined #ruby-lang
rayners has joined #ruby-lang
rohit has joined #ruby-lang
Spooner has joined #ruby-lang
beiter_ has joined #ruby-lang
francisfish has joined #ruby-lang
rooster218 has joined #ruby-lang
<rooster218> Pastie: hi!
Fractality has joined #ruby-lang
malev_ has joined #ruby-lang
dous has joined #ruby-lang
fjfish has joined #ruby-lang
reitelles has joined #ruby-lang
malev_ has joined #ruby-lang
<apeiros_> whoever came up with that idea ("pastie: hi!") belongs hanged upside down and put on fire…
* imperator has no idea what it's about
<apeiros_> imperator: the idea is that a pastie bot would answer. so you can identify the pastie-bot in a channel.
<apeiros_> it's such an insanely stupid idea to begin with…
v0yager has joined #ruby-lang
rooster218 has joined #ruby-lang
workmad3 has joined #ruby-lang
<andrewvos> what
<shevy> I'll do it!
<andrewvos> WHAT
<shevy> you got me at INSANE
<shevy> KICKASS
<shevy> WONDERFUL!!!
<andrewvos> wtf
malev has joined #ruby-lang
burns180 has joined #ruby-lang
<ankurgel> How do I create regexp that discards (^) a "word"?
<ankurgel> /^word/ would mean at beginning..
<Mon_Ouie> You mean "^" followed by "word"?
<rue> !~ /word/
<ankurgel> rue !~ before // ?
<ankurgel> o.O
<Mon_Ouie> !~ is the opposite of =~
<ankurgel> Mon_Ouie, yes. but general regexp model implies at beginning.
<ankurgel> Mon_Ouie, Oh!
<Mon_Ouie> !(a =~ b)
<ankurgel> but say I'm using gsub(pattern,substitution).
<ankurgel> here I'm using that pattern, then?
hexo has joined #ruby-lang
<ankurgel> ?
Phrogz has joined #ruby-lang
<rue> Probably not, depends on your specifics. You can use the negative lookahead in some cases
<rue> Or just check #include? or something. But, specifics.
<ankurgel> string="ankurgelruby-lang"
<ankurgel> string.gsub!(/ / , 'x')
<ankurgel> replace every non 'ruby' letter..
<darix> ankurgel: just any letter that is not r u b or y?
<darix> or in that order?
<Phrogz> I have a Sinatra app running under Ubuntu that needs to create folders on the server that it can copy files to. However, Dir.mkdir creates folders with root/root owner/group and only o+w, yet `chgrp` and `chmod` from the process fails. What's the appropriate way to create folders and set the ownership permissions correctly.
<rue> "yay ruby wee".gsub /(ruby)|(\w)/ do $1 || "?" end
<rue> I'm not sure whether to be happy or sad about that achievement.
jkyle has joined #ruby-lang
<ankurgel> darix, in that order.
<ankurgel> rue, checking.
<ankurgel> hm. why considering to be sad?
<ankurgel> using grouping there?
<rue> There must be a better solution
retro-in-better- has joined #ruby-lang
<Phrogz> I want to play along; what are the rules?
<bnagy> tr('ruby','x') ? I came in late sorry
ioga_wrk has joined #ruby-lang
<ankurgel> bnagy, replacing every r,u,b,y with x
<ankurgel> and what does tr method imply ?
<rue> Phrogz: In a string, replace all characters except those forming "ruby" with "x"
<Phrogz> .gsub /[ruby]/, 'x'
<andrewvos> rue: No
<rue> Too
<Phrogz> Just replace all 'r' with 'x', replace all 'u' with 'x', replace all 'b' with 'x', and replace all 'y' with 'x'?
<rue> No, the other way.
* Phrogz hates it when the game is extracting the rules.
<ankurgel> "ankurgelruby-lang" --> "xxxxxrubyxxx' type
<rue> Like I said :P
<ankurgel> :D
<andrewvos> "sdfdsfwfruby".gsub("ruby","!!!AAAHHITBURNS!!!").gsub("r","x").gsub("u","x").gsub("b","x").gsub("y","x").gsub("!!!AAAHHITBURNS!!!","ruby")
<Phrogz> I think you're missing some 'x' there, but OK
<ankurgel> I thought the solution of it must be simple and present already. provided, it's needed sometime arise in general regexps as well.
<ankurgel> Phrogz, yes. give or take
<rue> It's not. I'm not sure the problem is particularly common
<Phrogz> str.split('ruby').map{ |s| 'x'*s.length }.join('ruby')
<andrewvos> ankurgel: rails provides a replace_all_occurences_of_r_u_b_and_y_unless_it_spells_ruby
<rue> I'd imagine that almost always you can just extract the "ruby" strings, and then maybe, if needed, calculate the original string size or something.
<rue> In other words, I don't understand how "xxxxxxrubyxxxxxrubyxxxxx" is useful
<ankurgel> this is an example
<Phrogz> :)
<ankurgel> main thing I was looking is discarding a word (except word)
<Phrogz> I'm not sure if I like mine more or rue's
<ankurgel> Phrogz, yours is atleast comprehensible to me. I don't understand what rue did there.
<andrewvos> ankurgel: Right, generate a hash of the string, replace all "ruby" occurences with that hash. Then replace all other characters.
<Phrogz> ankurgel: Then read the docs for gsub :)
Sailias_ has joined #ruby-lang
<rue> ankurgel: It matches "ruby", or then any word character. Then it replaces either "ruby" with itself, or the word character with "?"
<ankurgel> rue, Phrogz str.split('ruby').each{|x| x.gsub!(/./,'*')}.join('ruby')
<bnagy> 'this rubular robot is made of ruby'.gsub('ruby','MAAAGIC').tr('ruby','x').gsub('MAAAGIC','ruby') => "this xxxxlax xoxot is made of ruby"
<ankurgel> just some modification.
<bnagy> ~I want to cut myself for trying it that way :/
<rue> bnagy: Also, it's still wrong :P
<Phrogz> bnagy: That's a fun game, too, but those aren't the rules we're playing by.
<ankurgel> :D
<bnagy> oh I just saw andrewvos do the same thing but even worse
<Phrogz> lol
<bnagy> I thought it was replace all occurences of r,u,b,y EXCEPT when spelling 'ruby'
havenn has joined #ruby-lang
<ankurgel> so, we have 2 solutions at hand made by rue and Phrogz
slyphon has joined #ruby-lang
<andrewvos> TIL: tr
<andrewvos> bnagy: ^
<bnagy> ohh replace EVERYTHING except 'ruby'
<ankurgel> tr is just like gsub([all_chars],'x')
<ankurgel> no?
<rue> If the problem was 'replace all r, u, b, y except if it's ruby', #tr wouldn't work either.
<Phrogz> ankurgel: Maybe you'll like rue's more if it's written as str.gsub(/(ruby)|./){ $1 || 'x' }
Skif has joined #ruby-lang
<rue> /(ruby)|([ruby])/ would solve that problem, too…
<Phrogz> Or very verbosely str.gsub(/ruby|./){ |matched| matched=="ruby" ? "ruby" : "x" }
<bnagy> rue: sorry, how was the tr based solution not solving the problem I thought I was solving?
<Phrogz> bnagy: What rules were you playing by at the time?
<rue> Just the plain #tr
futurechimp has joined #ruby-lang
<bnagy> oh right, yeah no that wouldn't work :)
<ankurgel> Phrogz, mm-hmm. yes, making some sense to me now. :)
<beiter> Hi, i need to generate a tree from this array, depending on the BookmarkLevel: https://gist.github.com/1987070
<rue> Phrogz: Mine is more awesomer
<beiter> any suggestions?
<bnagy> ok yeah I like Phrogz split join best then
<rue> The group abuse is sweet
<Phrogz> rue: The $1? Clearly :)
<Phrogz> Not sure why you (...) the \w, though, or why you used \w.
<rue> I assumed it was something more complex than \w, or .
<rue> Implicitly
<bnagy> ugh, Phrogz I don't think your split / join works when 'ruby' comes right at the end?
m3nd3s has joined #ruby-lang
<Phrogz> bnagy: Could be; I didn't test rigorously.
<Phrogz> How do we fix that behavior of split?
<ankurgel> bnagy, yes.. join willn't work.
s_dana has joined #ruby-lang
<bnagy> WHAT? Don't you know what's RIDING on this stupid^Wvital problem??
<Phrogz> No, the problem is that "ruby-ruby".split("ruby") is ["","-"] and not ["","-",""]
burns180_ has joined #ruby-lang
<ankurgel> 1.9.2p290 :027 > str
<ankurgel> => "ankurgelruby"
<ankurgel> 1.9.2p290 :028 > str.split('ruby')
<ankurgel> => ["ankurgel"]
chimkan has joined #ruby-lang
<ankurgel> nothing to join on with 'ruby' later. no right subpart array present.
<ankurgel> that's why, fails when ruby is either at beginning or at end.
<Phrogz> What is ankurgel, BTW? Is that something smeared onto naval vehicle retention devices before insertion into a sailor's ass?
<Phrogz> ankurgel: It's fine when it's at the beginning.
<ankurgel> Phrogz, oh please. Please dont' start with 'ankurgel' on this channel as well.
<ankurgel> I was ignorant chap back then when I chose this nick.
<ankurgel> so, well. :D
<Phrogz> OK, just wondering and attempting to be crassly funny. :)
<ankurgel> that's why I'm laughing now. Mission Accomplished.
<andrewvos> ummm, what was the answer?
<bnagy> horrible regular expressions, I think
<bnagy> but I don't hate myself enough to go there
<ankurgel> andrewvos, fails when pattern is at end.
<ankurgel> andkerosine, help here?
<ankurgel> andkerosine, do some magic again. :D
<Phrogz> str.split('ruby',99999999).map{|s| 'x'*s.length}.join('ruby') # fixed
<rue> I AM VICTORIOUS
<ankurgel> two paramters in split? o_O
<ankurgel> ^Kicks_ass
<Phrogz> ankurgel: Yes: again, RTFM :)
<rue> Phrogz: So what if it's 100000000 long?
<ankurgel> oh yes.
<Phrogz> rue: It doesn't work with 1.0/0; is there a maxint?
<bnagy> barf
* Phrogz goes to rtfm
* ankurgel goes to rtfm
<bnagy> I tried Float::INFINITY but it didn't like it
<bnagy> RangeError in split
<shevy> right
<shevy> another proof that ruby < chuck norris
<shevy> :(
<crankharder> anyone know how to change the ruby prompt line from the current version to something more awesome?
Zespre has joined #ruby-lang
darkf has joined #ruby-lang
<Phrogz> str.split('ruby',2**31-1).map{|s| 'x'*s.length}.join('ruby') # That's the biggest it'll accept
<Phrogz> crankharder: Google "irb simple prompt"
<Phrogz> (Simpler is awesomer.)
<ankurgel> Phrogz, manual == ruby-doc ?
<Phrogz> ankurgel: When I'm being snarky, yes :)
<Phrogz> Or ri String#split
<ankurgel> I need some detailed doc now.
<ankurgel> dunno what's wrong in here, ri doesn't work on rvm
<crankharder> Phrogz: probably need something to go in ~/.irbrc since i'm using rails.. rails console doesn't much like --simple-prompt
Heimidal has joined #ruby-lang
Tearan has joined #ruby-lang
<Phrogz> Oh...rails.
<Phrogz> blarf
<Phrogz> :)
<mistym> ankurgel: Did you generate the docs? p. sure rvm has that off by default. `rvm docs generate`
<ankurgel> mistym, thanks! doing that now. :)
<bnagy> Phrogz: ohwait, just use -1
<Phrogz> Having fully rtfm'd now, my answer can be more simply stated as...yes, that.
<Phrogz> :)
<Phrogz> bnagy wins the race.
<ankurgel> mistym, also, can you help me out in this? gem install doesn't work. Gives this:
<ankurgel> gem install pry
<ankurgel> ERROR: Loading command: install (LoadError)
<ankurgel> no such file to load -- zlib
<ankurgel> ERROR: While executing gem ... (NameError)
<ankurgel> uninitialized constant Gem::Commands::InstallCommand
<Phrogz> ankurgel: Pretty sure there's a s/o on that. Looking.
heppy has joined #ruby-lang
wallerdev has joined #ruby-lang
<outoftime> ankurgel: ubuntu?
<erikh> ankurgel: rvm docs generate
<ankurgel> outoftime, yes.
<bnagy> ok I endorse .split('ruby',-1).map {|s| 'x'*s.size}.join('ruby') for the nomination
<ankurgel> erikh, doc is working. I'm asking about the screwing-up problem with gem install
<erikh> ah
<ankurgel> even gem pkg doesn't work here.
jasonw22 has joined #ruby-lang
<outoftime> ankurgel: your easiest bet is to just use RVM. ubuntu's package-managed ruby is rarely the latest anyway, and rvm makes this stuff painless.
<erikh> which gem
<ankurgel> Phrogz, I've zlib, openssl, iconv installed already.
<outoftime> ankurgel: do you have the zlib development headers installed?
<erikh> did you install zlib from source?
<Phrogz> ankurgel: I don't use rvm, so I don't know. But that site says "rvm pkg install zlib"
<ankurgel> reinstalled 1.9.2 --with-zlib-dir=$... too
<erikh> apt-get install zlib1g-dev
<erikh> IIRC
<bnagy> rvm requirements
<bnagy> ?
<outoftime> ankurgel: and then i think you need to cd into the zlib directory inside the ruby source and install the bindings
<ankurgel> Phrogz, yes, by that only. Have done this :|
<Phrogz> ankurgel: Then I'm useless. Sorry. :)
<erikh> yeah or rvm notes/requirements
<ankurgel> outoftime, eh?
<erikh> bnagy++
<imperator> ankurgel, fire up irb, type require "zlib"
<ankurgel> NameError: undefined local variable or method `zlib' for main:Object
<ankurgel> from (irb):36
<ankurgel> from /home/ruby/.rvm/rubies/ruby-1.9.2-p290/bin/irb:16:in `<main>'
<ankurgel> oops wait.
<ankurgel> LoadError: no such file to load -- zlib
<ankurgel> hm.
<ankurgel> then probably I must do it again.
<imperator> you don't have it built
<ankurgel> must have done it wrong, I am sure.
<ankurgel> and to build __ ?
<imperator> cd to ruby source's ext/zlib directory; ruby extconf.rb; make; make install
<ankurgel> thanks. I will build and install everything from scratch now.
<ankurgel> but, now away for some food. I SHALT HAVE MEAL
h4y4shi has joined #ruby-lang
<crankharder> whats up with this: http://pastie.org/3534685 - can't access bash functions from irb?
gsav has joined #ruby-lang
leonL has joined #ruby-lang
imrohit has joined #ruby-lang
<shevy> you did not start a shell from within ruby right?
<shevy> so how shall ruby be able to call a function if nothing is there to interprete that
flak has joined #ruby-lang
daffydowden has joined #ruby-lang
gsav has joined #ruby-lang
looopy has joined #ruby-lang
<daffydowden> Is there a decent one line short cut for adding an element to an array if it exists, or creating it (with that element) if it doesn't?
<Mon_Ouie> crankharder: Right, you can't access shell functions and aliases when you start a sub-process like that
<andrewvos> If ruby calls a function in the forest, and noone is around to hear it, does it still call that function?
<andrewvos> shevy: Ponder over that ^
<crankharder> Mon_Ouie: say I wanted to? then what?
<Mon_Ouie> I'm not sure of how you'd go for that. You could explicitly run the bash, and source a file that defines the function before calling it
<shevy> andrewvos it would need a forest that is able to respond
<daffydowden> Something like ||= but for arrays...
<Mon_Ouie> arrays are normal object
<Mon_Ouie> You can do var ||= []
<shevy> arrays are pretty crazy objects
<shevy> string objects are more normal but I would not trust crazy objects
<Mon_Ouie> and push the item after that
davidw has joined #ruby-lang
<shevy> last time I saw an array walk over and ask me "got some light?"
burns180 has joined #ruby-lang
<ankurgel> Mon_Ouie, it creates the array if it doesn't exist and appends data to it if it does. Right?
<Mon_Ouie> It creates the array if var is nil or false, rather
<Mon_Ouie> And then push the object anyway
ascarter has joined #ruby-lang
<ankurgel> can you show me a simplistic snippet for it please? depicting it's working.
<Mon_Ouie> a = nil; (a ||= []) << 3; p a
<daffydowden> Cheers
<ankurgel> thanks!
rippa has joined #ruby-lang
Heimidal has joined #ruby-lang
malev has joined #ruby-lang
sym- has joined #ruby-lang
wmoxam_ has joined #ruby-lang
<imrohit> how can i overlay one image over the other in ruby?
<erikh> hello internets
<erikh> imrohit: look at rmagick.
esad has joined #ruby-lang
<ankurgel> imrohit, How is this nick pronounced?
<imrohit> erikh!! ahh..thnx
<ankurgel> imrohit, Aah. no wonder. I know now. :P
<imrohit> ;)
<erikh> rmagick depends on an external dependency, imagemagick
<erikh> it can be a bit of a pain to get installed right
<erikh> there's plenty of googling to be doen
<erikh> anyhow, HTH
<imrohit> erikh!! done with dependency..
<Zespre> hello
daffydowden has quit [#ruby-lang]
butchanton has joined #ruby-lang
burns180_ has joined #ruby-lang
lele has joined #ruby-lang
<imperator> erikh, hello, this is internets
<shevy> erikh, hello, this is sexy phone
jmontross1 has joined #ruby-lang
solars has joined #ruby-lang
<erikh> ooh the sexy phone
<erikh> is that like the bat phone?
<erikh> only more awesome
twittard has joined #ruby-lang
<imperator> and only 1.99 a minute!
<shevy> hmm I see someone knows it!
<shevy> imperator, do you breathe slowly into the phone? :D
foca has joined #ruby-lang
QaDeS has joined #ruby-lang
<imperator> shevy, you know, you're not quite right :-P
naz has joined #ruby-lang
* imperator renews his plates, which are actually out of date, oops
SuperTaz_work has joined #ruby-lang
Fractality has joined #ruby-lang
heppy has joined #ruby-lang
Fullmoon has joined #ruby-lang
benanne has joined #ruby-lang
ttilley has joined #ruby-lang
burns180 has joined #ruby-lang
io_syl has joined #ruby-lang
amerine has joined #ruby-lang
sdeobald__ has joined #ruby-lang
havenn has joined #ruby-lang
hagabaka has joined #ruby-lang
hagabaka has joined #ruby-lang
davidw has joined #ruby-lang
apeiros_ has joined #ruby-lang
Heimidal_ has joined #ruby-lang
ascarter has joined #ruby-lang
havenn has joined #ruby-lang
robbyoconnor has joined #ruby-lang
burgestrand has joined #ruby-lang
mrsolo has joined #ruby-lang
macmartine has joined #ruby-lang
Skif has joined #ruby-lang
gasbakid__ has joined #ruby-lang
machine1 has joined #ruby-lang
burns180_ has joined #ruby-lang
reitelles has quit [#ruby-lang]
dragonkh has joined #ruby-lang
butchanton has joined #ruby-lang
achiu has joined #ruby-lang
Jake232 has joined #ruby-lang
rolfb has joined #ruby-lang
ramonmaruko has joined #ruby-lang
brianpWins has joined #ruby-lang
jstemmer has joined #ruby-lang
dr_bob has joined #ruby-lang
robbyoconnor has joined #ruby-lang
Tearan has joined #ruby-lang
brianpWins has joined #ruby-lang
lake has joined #ruby-lang
petercooper has joined #ruby-lang
looopy has joined #ruby-lang
publicvoid has joined #ruby-lang
RickHull has joined #ruby-lang
ankurgel has joined #ruby-lang
Heimidal has joined #ruby-lang
workmad3 has joined #ruby-lang
zmack has joined #ruby-lang
t has joined #ruby-lang
alexkane has quit [#ruby-lang]
robbyoconnor has joined #ruby-lang
jkprg has joined #ruby-lang
Spooner has joined #ruby-lang
robbyoconnor has joined #ruby-lang
burns180 has joined #ruby-lang
zmack has joined #ruby-lang
alexkane has joined #ruby-lang
twittard has joined #ruby-lang
cyri_ has joined #ruby-lang
curtism has joined #ruby-lang
curtism has joined #ruby-lang
l0st1 has joined #ruby-lang
ankurgel has joined #ruby-lang
wmoxam has joined #ruby-lang
Keva161 has joined #ruby-lang
slyphon has joined #ruby-lang
<ankurgel> I just can't make zlib to work.
<ankurgel> what the hell is wrong.
<ankurgel> rvm is totally ruining everything up
<shevy> zlib
<shevy> aww
<shevy> layers on layers on layers
<shevy> if you build a sand pyramid, don't be surprised if the wind destroys it!
<ankurgel> rvm pkg install zlib says it's done.
* apeiros_ hands ankurgel a punching bag
<apeiros_> there, go get rid of your frustration
Heimidal has joined #ruby-lang
heppy_ has joined #ruby-lang
<ankurgel> apeiros_, I need that.
<shevy> yay, punch apeiros_!
<apeiros_> then come back and ask a coherent question
<ankurgel> I want to punch anyone on face.
<shevy> punch rvm
<shevy> it deserves it the most
<ankurgel> apeiros_, see, I installed rvm
<shevy> and then remove it
<shevy> :>
<ankurgel> also installed zlib after that.
<ankurgel> with rvm install pkg zlib
<ankurgel> then installed 1.9.2 ruby (say)
<ankurgel> it installed.
<ankurgel> ruby works fien.
<ankurgel> fine*
<ankurgel> but, gem doesn't
<ankurgel> requires 'zlib'
<apeiros_> ankurgel: you mean `rvm pkg install zlib`, yes?
<shevy> and then compile ruby from source, go into ext/zlib and run that extconf.rb or setup.rb or whats-it-called.rb
<ankurgel> in irb when I type : require 'zlib'
<apeiros_> because otherwise, it'd be obvious why it doesn't work…
<ankurgel> it displays same error.
<ankurgel> apeiros_, yes, sorry.
<ankurgel> shevy, there is no ext/zlib
<apeiros_> ankurgel: did you switch to the ruby for which you built zlib?
<ankurgel> in .rvm/usr/include zlib is present
<ankurgel> apeiros_, yes.
<shevy> ankurgel hmm
<ankurgel> apeiros_, tried, 1.9.2 , 1.9.3, both.
<apeiros_> ok, how does the problem surface?
<ankurgel> I need to install pry and rails.
<shevy> ankurgel, I am in directory /Depot/j/ruby-1.9.3p105/ext/zlib/
<ankurgel> And I can't till I make it work.
<shevy> so yes, there is an ext/zlib definitely.
machine1 has joined #ruby-lang
<apeiros_> ankurgel: when you `require 'zlib'`, what happens?
<ankurgel> oadError: cannot load such file -- zlib
<ankurgel> from /home/ruby/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
<ankurgel> from /home/ruby/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
<ankurgel> from (irb):1
<ankurgel> from /home/ruby/.rvm/rubies/ruby-1.9.3-p125/bin/irb:16:in `<main>'
<ankurgel> ^This happens
<ankurgel> ~/.rvm/rubies/ruby-1.9.3-p125$ ls
<ankurgel> bin config include lib share
<apeiros_> what where the precise commands? (copy & paste them from the bash history to pastie.org)
<apeiros_> you get the history using `history`
<ankurgel> okay.
leonL has joined #ruby-lang
<ankurgel> apeiros_, http://pastie.org/3535805
<ankurgel> when I try gem install __anything__ , or type require 'zlib' in irb, it displays the same error I mentioned above.
<apeiros_> ankurgel: and when you do: rvm use 1.9.2; irb; require 'zlib', the error occurs?
<ankurgel> yes. even when I set 1.9.2 as --default
<ankurgel> gem -v = 1.8.17
<rue> which gem
<ankurgel> irb -v = 0.9.6
jmontross1 has quit [#ruby-lang]
<ankurgel> gives LoadError everytime
<rue> Oh, damn it, Gem series 1.8.x strikes again
<apeiros_> hm, I'd probably take this over to #rvm then. I don't see an obvious reason.
<apeiros_> rue: it's not a gem, it's part of stdlib there.
<apeiros_> or do you mean gem interferes with stdlib in that case? o0
phlipper has joined #ruby-lang
<rue> apeiros_: Nah, the 1.8.x just switches my brain into ruby 1.8 mode
<apeiros_> ah :)
alex_k has joined #ruby-lang
<Mon_Ouie> They should release rubygems 2.0 along with ruby 2.0 to prevent that
<ankurgel> Mon_Ouie, When is ruby 2.0 releasing?
<Mon_Ouie> I have no idea, although they are writing code for it already I think
<apeiros_> Mon_Ouie: or just do chrome-versioning and release rubygems 19 already
gix has joined #ruby-lang
jasonw22 has joined #ruby-lang
RomyRomy has joined #ruby-lang
<dominikh> haha
machine1 has joined #ruby-lang
<shevy> that would be nice to see
<shevy> version equality!
<shevy> Libert
<apeiros_> hm, I think it'd be an unreasonable burden
<dominikh> it would
s_dana has joined #ruby-lang
<Mon_Ouie> shevy: Not sure what encoding you're using, but I can't see your "é"s
<dominikh> I can just fine :>
<shevy> I don't know what encoding I am using either
<shevy> Mon_Ouie, what is french for "version"?
<Mon_Ouie> Version
<shevy> hmmmm
<Mon_Ouie> Never mind, the encoding thing was wrong on my end
<apeiros_> Mon_Ouie: I can
<shevy> I like those characters with fancy apostrophes atop, they make the character appear so much more important
<dominikh> shevy: is probably using CP1252. it wasn't UTF-8.
<apeiros_> hm, though it seems limechat has a fallback encoding… might well be I can see it due to that…
<dominikh> apeiros_: yup
<imperator> rvm claims another victim
virunga has joined #ruby-lang
virunga_ has joined #ruby-lang
virunga has joined #ruby-lang
burns180_ has joined #ruby-lang
<shevy> lol
<shevy> darth imperator shows no emotions and no mercy
* shevy clenches fists and breathes heavily
twittard has joined #ruby-lang
esad has joined #ruby-lang
heppy has joined #ruby-lang
vpamulap has joined #ruby-lang
jamw has joined #ruby-lang
havenn has joined #ruby-lang
mikeric has joined #ruby-lang
<twittard> Are there any good tools to do the following in Ruby? I've got a bunch of attr_accessors that are set by a single method call (It calls an HTTP resource and assigns the response values). I currently call this in the initialize method, but that's dirty. Besides defining the getter methods for these attr_accessors, and lazily calling this main method, is there a way to chain method calls? IE, if a method is called -- FIRST call another method?
<twittard> I know there's alias_method_chain, but I don't think it behaves this way.
<twittard> I could also monkey patch Object with something that does this.
<twittard> But I'd prefer not to reinvent wheels that likely already exist.
<RickHull> you want to avoid using intialize in case the http request fails?
<RickHull> ("that's dirty")
<twittard> No, it's just a blocking operation that takes a long time. It shouldn't really live in initialize.
<RickHull> i imagine it could fail as well, but ok
<twittard> It can always fail, but that's not my biggest concern with it.
<RickHull> i'm not following this approach: Besides defining the getter methods for these attr_accessors, and lazily calling this main method
<RickHull> i was imagining a def get_values(http_resource) # get an http response and populate some ivars
<twittard> def foo() @foo ||= begin; call_main_method!; @foo; end; end
plusk has joined #ruby-lang
<RickHull> so i guess the question is, do you want to populate the ivars individually or in a batch?
<RickHull> can you not call your populate method after you intialize?
<twittard> I'd prefer to hide that logic from whatever is juggling the object. But that's a perfectly valid approach as well :).
<plusk> anyone know why this happens? https://t.co/0iNJmolm
<twittard> Foo.new(...); foo.populate!
<RickHull> i think whoever juggles the object should know that population is blocking and potentially failing
<RickHull> to hide it seems to run into all the problems of naive RPC
srbaker has joined #ruby-lang
<twittard> plusk: Please write your regexes like this: https://gist.github.com/1410347
<RickHull> that said, maybe it's not much different than calling out to an external db
<twittard> And document whatever you're trying to do. I'm not going to mentally parse that turd.
srbaker has joined #ruby-lang
<twittard> RickHull: It pretty much is. Your point is perfectly good/valid and I may just do that for simplicity. My big problem is that I'm trying to build a system with lots of convoluted parts. Having knowledge of the object it's calling into (ie, there's a backend service call) makes it slightly less re-usable. That said, I can just make a "call_backend_services_and_stuff!" method part of the implementation. Just do nothing if there is no work to be
<twittard> For reference, I'm shuffling CSVs, PGP encrypting those turds, and calling SOAP APIs. It's a mess.
<RickHull> cut off after "no work to be"
<twittard> damn it
<twittard> oh wait. "to be done."
<twittard> that was the last sentence.
<twittard> RickHull: Thanks for your input, by the way :)
<RickHull> np, cheers
<plusk> twittard, i don't think this is needed. it's very small regexp
<plusk> i just want to understand why not matching the entire sequence "test 123", instead it matches "123"
<RickHull> twittard: perhaps you can/want to make it analogous to say ActiveRecord?
<RickHull> i.e. how AR handles population and errors
srbaker has joined #ruby-lang
<imperator> plusk, rubular.com is your friend :)
tyman has quit [#ruby-lang]
<plusk> imperator, ok. but it gives me the same result. i want to understand why
urbino_ has joined #ruby-lang
<twittard> plusk: Alright, let's try this again. What is your goal? Just to match "test 123"? Why do you have so many parens?
<twittard> and why is <title> there?
<twittard> There's a lot of noise and no explanation for why it's there. What is your goal?
<twittard> Why not just do /\btest\b\s123/
gsav has joined #ruby-lang
<twittard> If that doesn't solve your problem, then please go into further detail
<twittard> Regular Expressions are a convoluted thing. Break them up and document them.
<twittard> always
spuk has joined #ruby-lang
<plusk> twittard, ok. lets go: "why do you have so many parens?" i want separated values. What is my goal? I Have a grammar that have the following rule. A => B C | C. and i want to match this case "B C" even when on a string that have a C.
burns180 has joined #ruby-lang
<RickHull> using regex to parse is a red flag
<twittard> What Rick said.
<plusk> what do you mean by red flag?
<RickHull> i'm not very good a formal language theory
srbaker has joined #ruby-lang
<RickHull> but true regular expressions are related to regular languages, i.e. generated by regular grammars (type 3)
<twittard> google has been failing me a lot, lately. Basically, you want to tokenize strings.
<RickHull> now, regex engines go beyond true regular expressions
<RickHull> so they have more power than true regular expressiosn
<RickHull> but an example of how not to use regex is to try to parse e.g. HTML
<RickHull> as HTML is not regular, there is no good way to do it
robbyoconnor has joined #ruby-lang
<twittard> plusk: Use "?" as an anchor. It will match if it's there, or skip if not.
<twittard> Does that help?
<plusk> what happened with test and 123 ?
<twittard> sorry, this: http://rubular.com/r/F0C6qhRHrM
<plusk> RichHull, hum.. ok. i'm not very good with it too. i have to study it more. :( but do you know if A => B C | C. is regular ??
srbaker has joined #ruby-lang
<RickHull> i truly don't know. i used to ahve a better sense of this stuff
<plusk> hahaha thanks
<RickHull> but if you have a grammar, you should be able to generate a true parser
<plusk> yeah, i think i'll have to generate this true parser. i just wanted to try out if it works with regexp
<plusk> ok thanks
machine1 has joined #ruby-lang
andrewhl has joined #ruby-lang
gentz has joined #ruby-lang
srbaker has joined #ruby-lang
robbyoconnor has joined #ruby-lang
srbaker has joined #ruby-lang
workmad3 has joined #ruby-lang
srbaker has joined #ruby-lang
<Phrogz> TreeTop!
gentz has joined #ruby-lang
brushbox has joined #ruby-lang
srbaker has joined #ruby-lang
achiu has joined #ruby-lang
PhilCK has joined #ruby-lang
burns180_ has joined #ruby-lang
srbaker has joined #ruby-lang
<rue> Probably good to start with
burns180_ has joined #ruby-lang
s0ber_ has joined #ruby-lang
y3llow_ has joined #ruby-lang
kyrylo has joined #ruby-lang
srbaker has joined #ruby-lang
robbyoconnor has joined #ruby-lang
A124 has joined #ruby-lang
esotericalgo has joined #ruby-lang
esotericalgo has joined #ruby-lang
y3llow has joined #ruby-lang
y3llow has joined #ruby-lang
srbaker has joined #ruby-lang
cored has joined #ruby-lang
cored has joined #ruby-lang
y3llow has joined #ruby-lang
H2H has joined #ruby-lang
H2H has quit [#ruby-lang]
srbaker has joined #ruby-lang
erics has joined #ruby-lang
Heimidal has joined #ruby-lang
robbyoconnor has joined #ruby-lang
srbaker has joined #ruby-lang
robbyoconnor has joined #ruby-lang
srbaker has joined #ruby-lang
esotericalgo| has joined #ruby-lang
esotericalgo has joined #ruby-lang
srbaker has joined #ruby-lang
machine1 has joined #ruby-lang
srbartlett has joined #ruby-lang
esotericalgo| has joined #ruby-lang
srbaker has joined #ruby-lang
esotericalgo- has joined #ruby-lang
esotericalgo has joined #ruby-lang
srbaker has joined #ruby-lang
kain has joined #ruby-lang
srbaker has joined #ruby-lang
burns180 has joined #ruby-lang
Boohbah has joined #ruby-lang
srbaker has joined #ruby-lang
andkerosine has quit [#ruby-lang]
Nss has joined #ruby-lang
srbaker has joined #ruby-lang
lsegal has joined #ruby-lang
Heimidal has joined #ruby-lang
srbaker has joined #ruby-lang
srbaker has joined #ruby-lang
srbaker has joined #ruby-lang
senjin has joined #ruby-lang
srbaker has joined #ruby-lang
RickHull has quit [#ruby-lang]
ahs3- has joined #ruby-lang
futurechimp has joined #ruby-lang
srbaker has joined #ruby-lang
petercooper has joined #ruby-lang
Stalkr_ has joined #ruby-lang
gregf has joined #ruby-lang
srbaker has joined #ruby-lang
slyphon has joined #ruby-lang
burns180_ has joined #ruby-lang
SuperTa__ has joined #ruby-lang
srbaker has joined #ruby-lang
H2H has joined #ruby-lang
srbaker has joined #ruby-lang
spuk has joined #ruby-lang
spuk has joined #ruby-lang
srbaker has joined #ruby-lang
darkf has joined #ruby-lang
spuk has joined #ruby-lang
srbaker has joined #ruby-lang
<zenspider> wow... this is exciting
<erikh> ?
cyri_ has joined #ruby-lang
workmad3 has joined #ruby-lang
darkf has joined #ruby-lang
srbaker has joined #ruby-lang
machine1 has joined #ruby-lang
amerine_ has joined #ruby-lang
srbaker has joined #ruby-lang
chimkan_ has joined #ruby-lang
srbaker has joined #ruby-lang
darkf_ has joined #ruby-lang
DEac- has joined #ruby-lang
m3nd3s has joined #ruby-lang
havenn has joined #ruby-lang
dalekurt has joined #ruby-lang
burns180 has joined #ruby-lang
machine1 has joined #ruby-lang
chimkan has joined #ruby-lang
dreinull has joined #ruby-lang
rushed has joined #ruby-lang
phlipper has joined #ruby-lang
srbaker has joined #ruby-lang
havenn has joined #ruby-lang
srbaker has joined #ruby-lang
virunga has joined #ruby-lang
justinxreese has joined #ruby-lang
virunga_ has joined #ruby-lang
savage- has joined #ruby-lang
virunga_ has joined #ruby-lang
srbaker has joined #ruby-lang
you_can_call_me_ has quit [#ruby-lang]
gsav has joined #ruby-lang
<jkyle> haven't seen this syntax before, is it valid => do |val=nil|
postmodern has joined #ruby-lang
<jkyle> ah, 1.9 feature
srbaker has joined #ruby-lang
Skif has joined #ruby-lang
leonL has joined #ruby-lang
esad has joined #ruby-lang
srbaker has joined #ruby-lang
srbaker has joined #ruby-lang
lchi has joined #ruby-lang
Sailias_ has joined #ruby-lang
srbaker has joined #ruby-lang