<Eiam>
I have two arrays with moderately complex data structures. I have to rename the elements in one array with the elements in the same place in another array. is there some way to iterate through them 'together' or am I going to have to use some index to iterate & access the second array?
sclarson_ has quit [Quit: sclarson_]
x82_nicole has quit [Quit: Computer has gone to sleep.]
icole has quit [Remote host closed the connection]
<mhalligan>
how do you force gem to install a gem you just built? every time I try gem install /path/to/gem -V or gem install --local /path/to/gem -V it still installs from the gem cache
dagnachew has quit [Remote host closed the connection]
DatumDrop has joined #ruby
angusiguess has joined #ruby
mengu has quit [Quit: Leaving]
Takehiro has joined #ruby
yacks has joined #ruby
horofox has quit [Quit: horofox]
RagingDave has quit [Quit: Ex-Chat]
volte_ has joined #ruby
BulleTime has quit [Ping timeout: 256 seconds]
codezombie is now known as codezombie|away
mneorr has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 256 seconds]
mneorr has joined #ruby
squidBits has quit [Quit: whoops]
volte has quit [Ping timeout: 248 seconds]
bricker has joined #ruby
horofox has joined #ruby
dustint has joined #ruby
enebo has quit [Quit: enebo]
jtharris has quit [Quit: WeeChat 0.3.9.2]
advorak has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
tatsuya_o has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
brianpWins has quit [Quit: brianpWins]
etcetera has quit []
matchaw_ has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 245 seconds]
miskander has joined #ruby
clj_newb has quit [Ping timeout: 256 seconds]
freakazoid0223 has quit [Quit: Leaving]
awarner has joined #ruby
freeayu has joined #ruby
etcetera has joined #ruby
matchaw has joined #ruby
epylinkn has quit [Quit: Leaving.]
sailias has quit [Quit: Leaving.]
codezombie|away is now known as codezombie
sclarson_ has joined #ruby
epylinkn has joined #ruby
etcetera has quit [Client Quit]
orcris has quit [Read error: Connection reset by peer]
pskosinski has quit [Ping timeout: 252 seconds]
jeffreybaird has quit [Quit: jeffreybaird]
DrShoggoth has quit [Ping timeout: 245 seconds]
x82_nicole has joined #ruby
jeffreybaird has joined #ruby
orcris has joined #ruby
etcetera has joined #ruby
piotr__ has quit [Ping timeout: 248 seconds]
davidokner has joined #ruby
atmosx has joined #ruby
<davidokner>
What do you guys think about the RoR books "Ruby on Rails Tutorial by Michael Hatrl" and "Rails 3 in Action by Ryan Bigg and Yehuda Ktaz" ?
angusiguess has quit [Ping timeout: 248 seconds]
apeiros_ has joined #ruby
<blazes816>
davidokner: haven't read either, so I may not be the review you're looking for, however I hear great things about both
epylinkn has quit [Quit: Leaving.]
<davidokner>
blazes816: Are those two of the top two you hear good things about?
<blazes816>
Radar from #rubyonrails wrote R4IA so it gets touted there pretty heavily
<blazes816>
davidokner: yeah
<davidokner>
blazes816: Oh, I thought Radar was joking that he wrote it.
<blazes816>
nope
v0n has joined #ruby
rwalker has joined #ruby
<davidokner>
Ok, for Ruby what about "The Well-Grounded Rubyist" ? That was highly recommended in #rubyonrails.
<blazes816>
yeah, that one I have read, and really enjoyed
<rwalker>
eloquent ruby is a good one
<rwalker>
and the pickaxe of course
<blazes816>
also "ruby for rails" but it'd be pretty out of date by now if it hasn't been updated
rwalker is now known as reppard
otters has quit [Ping timeout: 252 seconds]
apeiros_ has quit [Ping timeout: 248 seconds]
<davidokner>
I'm looking for an intro book for both Ruby and Ruby on Rails.
<davidokner>
I actually bought the Pick Axe book and found it to not be a good intro book, as others have since told me.
<reppard>
rails 3 in action is pretty good
<reppard>
davidokner: are you new to both?
miskander has quit [Quit: miskander]
<reppard>
davidokner: if i had it all to do over again i would have started out with straight ruby and then moved on to rails. i think if you have a good ruby foundation rails will come very easily
<davidokner>
reppard: Yes, but now I've learned some Ruby from a video course after the Pick Axe book didn't work. The video course from the Pragmatic guys.
<reppard>
davidokner: have you done the koans yet?
<davidokner>
reppard: I checked it out, but haven't gone through it.
etcetera has quit []
<reppard>
RubyPanther: +1 for poignant guide
philcrissman has joined #ruby
yshh has joined #ruby
DrShoggoth has joined #ruby
slainer68 has joined #ruby
<reppard>
davidokner: i've never seen the prag videos. not sure how much you got out of them but i would say that a good understanding class arch and scopes is a must
philcrissman_ has joined #ruby
<davidokner>
I'm taking the Ruby course from Pragmatic Publishers/Studio: This is what I've covered so far (check marks) and what the course covers: http://i49.tinypic.com/2jeeq0k.png
<reppard>
i tried learning rails with ruby as a side effect and it was terrible. i just went back to square one and started learning all i could with ruby
ffranz has quit [Quit: Leaving]
<davidokner>
reppard: yeah I definately want a solid Ruby foundation first.
mackintosh has quit [Quit: Lost terminal]
<davidokner>
That list actually shows "blocks" as next, but they already covered blocks much earlier on.: http://i49.tinypic.com/2jeeq0k.png
<reppard>
yeah i was going to say
<reppard>
jaja
griffindy has joined #ruby
<reppard>
er haha
codezombie is now known as codezombie|away
<davidokner>
Each one of those numbers opens up and you have a video and a workbook and I use Rubymine to do my practice program that is similar to the tutorial, but not the same.
philcrissman has quit [Ping timeout: 248 seconds]
unix has joined #ruby
etcetera has joined #ruby
digital-ghost has joined #ruby
slainer68 has quit [Ping timeout: 260 seconds]
rondale__ has joined #ruby
miskander has joined #ruby
<yoshie902a>
davidokner: I think Mhartl's book is great, it does a good job walking you through the whole process of building an app
brianpWins has joined #ruby
<yoshie902a>
davidokner: Ryan Bate's railscasts.com great too
<davidokner>
I may get four books. "Well Grounded Rubyist", "Eloquent Ruby" and "Rails 3 in Action", "Ruby on Rails Tutorial". Those are the books that seem to be the best.
<yoshie902a>
isn't rails 4 out?
<davidokner>
Or most highly recommended or reviewed. Though, Rails 3 in action doesn't have quite as high reviews.
<davidokner>
Rails 4 in action?
<davidokner>
There are no Rails 4 books in print yet.
<yoshie902a>
davidokner: 4 is too new
<davidokner>
You can get the digital preview of Rails 4 in Action if you buy direct.
<banisterfiend>
davidokner: if your'e not a total programming noob "the ruby programming language" is the best book, in my opinion.
v0n has quit [Ping timeout: 260 seconds]
taoru has joined #ruby
<davidokner>
banisterfiend: No, I looked at that book and it was not good for me, I did the look inside at amazon.
<banisterfiend>
davidokner: why didn't you like it?
<jblack>
the Ruby Rogues review of Practical Oriented Objected Programming in Ruby (POOPR) sounded excellent. I picked up a copy on amaon, but I'm not very far in
gyre008 has quit [Remote host closed the connection]
rramsden has joined #ruby
<davidokner>
banisterfiend: I'm not knew, but it seemed very quick to jump into things and didn't explain well enough. I think it randomly did a super complicated SUdoku problem solving on like page 4.
<davidokner>
excuse me, "not new"
<banisterfiend>
davidokner: the sudoku thing is not something your'e supposed to understand, it's just a quick glance at some ruby features working together, just skip it.
DrShoggoth has quit [Ping timeout: 245 seconds]
<banisterfiend>
davidokner: and it explains things incredibly well in my opinion, it's just very concise. But it covers all edge cases much better than other books
chrismhough has quit [Quit: chrismhough]
Michae___ has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
icole has joined #ruby
dustint has quit [Remote host closed the connection]
havenn has joined #ruby
pootietang has joined #ruby
Michael_ has joined #ruby
davidokner has quit [Ping timeout: 256 seconds]
SigmaVirus24 has joined #ruby
codezombie|away is now known as codezombie
codezombie is now known as codezombie|away
davidokner has joined #ruby
<SigmaVirus24>
Is there an alternative to %r and // that allow you to not have to escape `/`s in a regular expression?
rondale__ has quit [Remote host closed the connection]
<davidokner>
I lost my internet connection so anything anyone said to me in the last two minutes I didn't see.
<banisterfiend>
davidokner: i said that the sudoku thing is like a quick fast forward demonstrating the things you will learn, you're not supposed to understand it. Also, IMO, the book explains things exceptionally well, it's just very concise.
billy_ran_away has joined #ruby
<banisterfiend>
davidokner: and it covers edge cases much better than other books
<davidokner>
banisterfiend: Yeah, I scrolled through more of it and decided against it, but I can take a second look.
<banisterfiend>
davidokner: didn't it get very high reviews?
<banisterfiend>
trust the reviews :)
havenn has quit [Ping timeout: 245 seconds]
<davidokner>
banisterfiend: Yes, extremely high. Perfect stars. Yeah, that could be out of adoration for the creator though.
icole has quit [Ping timeout: 248 seconds]
awarner has quit [Remote host closed the connection]
<banisterfiend>
davidokner: it's not :) It's just a great book
<davidokner>
banisterfiend: I don't know if those guys are also in the same place I am learning wise.
itsdavem has joined #ruby
pothibo has joined #ruby
<davidokner>
banisterfiend: Do you know how it compares to the other two Ruby Books "The well grounded Rubyist" and "Elloquent Ruby"?
TheFuzzball has quit [Quit: Computer has gone to sleep.]
<banisterfiend>
davidokner: eloquent ruby is great, but it delves more into the ruby ecosystem, looking at various gems and so on. "the ruby programming language" strictly covers the language itself and some of the stdlib
<banisterfiend>
i haven't read "the well grounded rubyist" so i can't comment
<davidokner>
banisterfiend: I got the feeling of it being more of technical manual.
<banisterfiend>
davidokner: if i was learning ruby again, i'd read books in this order
<banisterfiend>
davidokner: the ruby programming language, eloquent ruby, design patterns in ruby, refactoring: ruby edition, practical object oriented design in ruby
<banisterfiend>
davidokner: but when i started with ruby i was already a competent programmer in other languages
otters has joined #ruby
io_syl has quit [Read error: Operation timed out]
<banisterfiend>
if you're not very experienced you may need to start with something like 'learn to program' or another book that introduces OOP/programming before you read TRPL
<davidokner>
banisterfiend: Do you get the printed version of books?
brianpWins has quit [Quit: brianpWins]
<banisterfiend>
davidokner: i only got the printed versions for TRPL and design patterns
<banisterfiend>
everything else are just kindle books
<davidokner>
banisterfiend: No, I don't need the "learn to program" book
DrShoggoth has joined #ruby
<davidokner>
banisterfiend: I actually want to wrap up my introduction to the Ruby langauge and move on to application of it to real world uses or go to Rails.
danneu has joined #ruby
yoshie902a has left #ruby [#ruby]
emocakes has quit [Quit: emocakes]
miskander has quit [Quit: miskander]
mikepack has quit [Remote host closed the connection]
io_syl has joined #ruby
<banisterfiend>
davidokner: well, i think you should at least read TRPL and eloquent ruby
atmosx has quit [Quit: And so the story goes…]
sclarson_ has quit [Quit: sclarson_]
cableray has joined #ruby
Innocentus has quit [Ping timeout: 245 seconds]
cableray has quit [Client Quit]
Takehiro has joined #ruby
<davidokner>
banisterfiend: Ok, thanks. I bookmarked all of those.
_adeponte has quit [Remote host closed the connection]
codezombie has joined #ruby
codezombie is now known as codezombie|away
quest88 has quit [Quit: quest88]
aaronmacy has joined #ruby
cjs226 has quit []
joeycarmello has quit [Read error: Connection reset by peer]
joeycarmello has joined #ruby
Takehiro has quit [Ping timeout: 256 seconds]
blazes816 has quit [Quit: blazes816]
codezombie|away is now known as codezombie
<danneu>
This regexp only matches numbers if followed by a "$": "$125$"[/\d+(?=\$)/] #=> 125. But how would I only match numbers preceded by "$" without using match groups?
DrShoggoth has quit [Ping timeout: 245 seconds]
cjs226 has joined #ruby
<otters>
lookbehind
nfk has quit [Quit: yawn]
cha1tanya has joined #ruby
cha1tanya has joined #ruby
<otters>
It's the same as lookahead, except...
noyb has quit [Ping timeout: 240 seconds]
<danneu>
...well?! jk thanks. "$125"[/(?!>\$)\d+/]
<danneu>
pretty!
Roa has quit [Ping timeout: 248 seconds]
toekutr has quit [Read error: Connection reset by peer]
jeffreybaird has quit [Quit: jeffreybaird]
solitude88 has quit [Quit: Leaving...]
codezombie is now known as codezombie|away
Roa has joined #ruby
adkron has joined #ruby
samuel02 has quit [Remote host closed the connection]
Myconix has quit [Ping timeout: 245 seconds]
cantonic has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
mdel has joined #ruby
codezombie|away is now known as codezombie
Spooner has quit [Remote host closed the connection]
adkron_ has joined #ruby
itsdavem has quit [Remote host closed the connection]
havenn has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
mmitchell has joined #ruby
bricker`LA has joined #ruby
DrShoggoth has joined #ruby
rizzy has joined #ruby
v0n has joined #ruby
kiyoura` has joined #ruby
swarley- has quit []
etcetera has quit []
ttt has joined #ruby
kiyoura has quit [Ping timeout: 248 seconds]
elkclone has quit [Ping timeout: 252 seconds]
elkclone has joined #ruby
sclarson_ has joined #ruby
`brendan has joined #ruby
jaequery has joined #ruby
ttt has quit [Read error: Connection reset by peer]
ttt_ has joined #ruby
niklasb has quit [Ping timeout: 248 seconds]
friskd has quit [Ping timeout: 252 seconds]
tjbiddle has joined #ruby
Takehiro has joined #ruby
horofox has quit [Quit: horofox]
`brendan is now known as brendan_
jonathanwallace has quit [Ping timeout: 252 seconds]
slainer68 has joined #ruby
daniel_- has quit [Ping timeout: 260 seconds]
robert_ has joined #ruby
epylinkn has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
sayan has joined #ruby
slainer68 has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
w|t has quit [Ping timeout: 272 seconds]
yakko has joined #ruby
Takehiro has joined #ruby
friskd has quit [Quit: friskd]
tomzx_mac has quit [Ping timeout: 248 seconds]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
sclarson_ has quit [Quit: sclarson_]
keyvan has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 260 seconds]
friskd has joined #ruby
kenneth has joined #ruby
love_color_text has joined #ruby
benlieb has quit [Quit: benlieb]
dqminh has joined #ruby
w|t has joined #ruby
goraxe has joined #ruby
Takehiro has quit [Ping timeout: 272 seconds]
mahmoudimus has joined #ruby
<standardeviation>
i want to use pry in lieu of irb in ruby-processing's live coding function. irb is invoked with "require 'irb';IRB.setup(__FILE__);IRB.start"
ngoldman has quit [Remote host closed the connection]
<standardeviation>
i can find an equivalent pry metho for start (Pry.start); anyone know of an equivalent setup method in pry?
love_color_text has quit [Ping timeout: 260 seconds]
joeycarmello has quit [Read error: Connection reset by peer]
joeycarm_ has joined #ruby
Nisstyre has quit [Ping timeout: 246 seconds]
tatsuya_o has joined #ruby
MattRB has quit [Quit: This computer has gone to sleep]
chrismhough has quit [Quit: chrismhough]
<ryanf>
standardeviation: what does IRB.setup do?
fram has quit [Ping timeout: 252 seconds]
fram has joined #ruby
joeycarm_ has quit [Ping timeout: 248 seconds]
x82_nicole has quit [Quit: Computer has gone to sleep.]
ckrailo has quit [Ping timeout: 276 seconds]
tatsuya_o has quit [Ping timeout: 272 seconds]
mrsolo has joined #ruby
etcetera has joined #ruby
<standardeviation>
it appears to load runtime settings.
a_a_g has quit [Read error: Connection reset by peer]
x82_nicole has joined #ruby
xsarin has quit [Quit: xsarin]
<standardeviation>
the entire method is tiny, I could gist it
<standardeviation>
in context, it passes the environment of live.rb on to the irb session live spawns
g0bl1n has quit [Ping timeout: 260 seconds]
dmiller has quit [Ping timeout: 248 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
JumpMast3r has joined #ruby
JumpMast3r has quit [Client Quit]
Inoperable has quit [Read error: Operation timed out]
Nisstyre has joined #ruby
MattRB has joined #ruby
<standardeviation>
oh cool, this gist probably give me enough info to determine my answer: https://gist.github.com/3194446 seems irb and pry initialize differently enough that I can't just substitute.
tagrudev has joined #ruby
haxrbyte has joined #ruby
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
etcetera has quit []
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
Icarot has joined #ruby
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
rezzack has quit [Quit: Leaving.]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
haxrbyte_ has joined #ruby
hackerdude has quit [Remote host closed the connection]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
emergion has joined #ruby
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
mrsolo has quit [Quit: Leaving]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
grzywacz has joined #ruby
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
Inoperable has joined #ruby
banisterfiend has joined #ruby
Inoperable has quit [Max SendQ exceeded]
friskd has quit [Quit: friskd]
haxrbyte_ has quit [Remote host closed the connection]
Inoperable has joined #ruby
haxrbyte has quit [Ping timeout: 252 seconds]
Inoperable has quit [Max SendQ exceeded]
haxrbyte has joined #ruby
headius has quit [Quit: headius]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
Inoperable has joined #ruby
emergion has quit [Ping timeout: 264 seconds]
Inoperable has quit [Max SendQ exceeded]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
BizarreCake has joined #ruby
lordnaz has quit [Quit: Client exited]
banisterfiend has quit [Ping timeout: 272 seconds]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
nomenkun has joined #ruby
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
wargasm has quit [Ping timeout: 260 seconds]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
generalissimo has quit [Remote host closed the connection]
Inoperable has joined #ruby
ner0x has quit [Quit: Leaving]
Inoperable has quit [Max SendQ exceeded]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
caleb_io has joined #ruby
mneorr has quit [Remote host closed the connection]
Inoperable has joined #ruby
love_color_text has joined #ruby
Inoperable has quit [Max SendQ exceeded]
love_color_text has quit [Remote host closed the connection]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
osaut has quit [Quit: osaut]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
kiyoura` has quit [Quit: Leaving]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
regedarek has quit [Ping timeout: 272 seconds]
ABK has joined #ruby
MattRB has quit [Quit: This computer has gone to sleep]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
Inoperable has joined #ruby
cha1tanya has joined #ruby
Inoperable has quit [Max SendQ exceeded]
TIBS02 has quit [Ping timeout: 246 seconds]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
clocKwize has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
nomenkun has quit [Remote host closed the connection]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
clocKwize has quit [Client Quit]
dhruvasagar has joined #ruby
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
slainer68 has joined #ruby
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
dkannan has joined #ruby
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
ChampS666 has joined #ruby
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
thomasfedb has joined #ruby
thomasfedb has quit [Changing host]
thomasfedb has joined #ruby
zommi has joined #ruby
Inoperable has joined #ruby
clocKwize has joined #ruby
Inoperable has quit [Max SendQ exceeded]
regedarek has joined #ruby
stnly has joined #ruby
standardeviation has quit [Quit: standardeviation]
<ryanf>
standardeviation: I wouldn't read too much into that gist
djdb has joined #ruby
<ryanf>
you can probably just substitute Pry.start for both of those irb lines
<ryanf>
if that doesn't work, try Pry.start(self)
workmad3 has joined #ruby
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
robustus has quit [Ping timeout: 255 seconds]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
slainer68 has quit [Ping timeout: 252 seconds]
taoru has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 245 seconds]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
TIBS02 has joined #ruby
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
S1kx has joined #ruby
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
grzywacz has quit [Remote host closed the connection]
<hemanth>
if cat.send("got_homes", "nice_home") => cat.got_home("nice_home") then ___________ => cat.got_home(:home,"nice_home")
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
Hanmac has joined #ruby
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
clocKwize has quit [Quit: clocKwize]
Inoperable has joined #ruby
thomasfedb has quit [Ping timeout: 256 seconds]
S1kx has quit [Quit: Leaving]
thomasfedb has joined #ruby
thomasfedb has quit [Changing host]
thomasfedb has joined #ruby
clocKwize has joined #ruby
recycle has joined #ruby
Solnse has joined #ruby
Elhu has joined #ruby
<Hanmac>
shevy about my archive gem ... what would your prefered way to add an entire directory into an archive?
reuven has joined #ruby
<hemanth>
not able to figureout this send API
recycle has quit [Remote host closed the connection]
pencilcheck has joined #ruby
cableray has joined #ruby
pencilcheck has quit [Remote host closed the connection]
Morkel has joined #ruby
love_color_text has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
<Hanmac>
shevy: (archive << Dir["dir/**/**/*"] ) would work, ( archive << "dir" ) would work, (archive.add("dir") would work too because << is only an alias) and i think about an archive.add_dir("dir") that allows some extra features
mafolz has joined #ruby
<shevy>
Hanmac seems ok
<shevy>
Hanmac, the first variant Dir["dir/**/**/*"] is more work than the other
<shevy>
in add_dir() you could check for File.directory?, and if so, could use Dir['*']
andrewhl has quit [Remote host closed the connection]
<shevy>
also dont forget ONE example!
<shevy>
examples are more helpful than explanations :D
ossareh has quit [Ping timeout: 252 seconds]
etcetera has joined #ruby
aganov has joined #ruby
ChampS666 has quit [Ping timeout: 248 seconds]
<Hanmac>
shevy yes and no ... the current plan is that archive << "dir" works totaly recusive ... while in add_dir("dir") you can control it with a block ... like add_dir("dir") {|e| e.path != "dir/subdir" } ... that will add "dir/file", "dir/file2", "dir/sub/file*" but not "dir/subdir/file*"
tjbiddle has joined #ruby
yacks has quit [Ping timeout: 252 seconds]
nw_ has joined #ruby
<Hanmac>
i also found that libarchive as some kind of matching engine ... that means: add_dir("dir", user: 1001) will only add files from the user with the uid 1001 ... the same will be added for the extract commands
zz_chrismcg has quit [Ping timeout: 276 seconds]
guilleiguaran has quit [Ping timeout: 276 seconds]
moeSeth_ has quit [Ping timeout: 276 seconds]
nw has quit [Ping timeout: 276 seconds]
chrismcgh has joined #ruby
icole has quit [Remote host closed the connection]
tjbiddle has quit [Ping timeout: 256 seconds]
tPl0ch has joined #ruby
mmitchell has quit [Remote host closed the connection]
icole has joined #ruby
io_syl has quit [Ping timeout: 248 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
fteem has joined #ruby
alanjc has quit [Read error: Connection reset by peer]
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
<Hanmac>
hemanth send is like an normal method call, ... the difference is that you can define the method name with a string or symbol ... (and the normal send can ignore the protected and private state) ... send_public does it not
ganjar_on_rails has joined #ruby
<reactormonk>
Hanmac, do you personally care about public/protected/private in your code?
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
shorts has joined #ruby
Virunga has quit [Remote host closed the connection]
louisror has joined #ruby
<Hanmac>
hm mostly i do not ... (the most functions i define are public)
<ganjar_on_rails>
Hi all, is there any users from Indonesia?
bondar has joined #ruby
jenrzzz has joined #ruby
<Hanmac>
reactormonk .. hm in one of my gems, i did that you cant do map.layers << something or map.layers.delete ... (because layers is an enumerator) but i think this does not count to your question right?
emergion has joined #ruby
n1x has quit [Ping timeout: 272 seconds]
haxrbyte has quit [Ping timeout: 244 seconds]
zigomir has joined #ruby
ChampS666 has quit [Ping timeout: 240 seconds]
autumn has joined #ruby
dr_bob has joined #ruby
krisfremen has quit [Ping timeout: 244 seconds]
bondar has quit [Ping timeout: 256 seconds]
jimeh has joined #ruby
etcetera has quit []
TheFuzzball has joined #ruby
S1kx has joined #ruby
lkba has quit [Ping timeout: 248 seconds]
unix has quit [Ping timeout: 252 seconds]
yacks has joined #ruby
jprovazn has joined #ruby
blaxter has joined #ruby
jds_ has joined #ruby
TomyLobo has quit [Quit: Standby mode...]
jgrevich has quit [Remote host closed the connection]
ganjar_on_rails has left #ruby [#ruby]
luisalima has quit [Read error: Connection reset by peer]
fteem has joined #ruby
<reactormonk>
Hanmac, likely
luisalima has joined #ruby
jds_ has quit [Remote host closed the connection]
jds_ has joined #ruby
blaxter has quit [Ping timeout: 246 seconds]
clooth has joined #ruby
yuntsewu has joined #ruby
lkba has joined #ruby
ryanf has joined #ruby
nomenkun has joined #ruby
Takehiro has joined #ruby
jackyalcine has quit [Ping timeout: 272 seconds]
adeponte has quit [Remote host closed the connection]
buibex has joined #ruby
jackyalcine has joined #ruby
frihd has joined #ruby
havenn has joined #ruby
nari has quit [Ping timeout: 272 seconds]
jduan1981 has quit [Quit: jduan1981]
tjbiddle has joined #ruby
timonv has quit [Remote host closed the connection]
blaxter has joined #ruby
tjbiddle has quit [Client Quit]
timonv has joined #ruby
pavilionXP has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
yuntsewu has quit [Quit: Leaving]
love_color_text has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 244 seconds]
noxoc has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
<ProLoser>
!bin
ProLoser has left #ruby [#ruby]
<hemanth>
reactormonk, thanks!
<hemanth>
Hanmac yes aware of how sent works, but was looking for send(:got_home, :home, "nice_home")
yakko has quit [Read error: Connection reset by peer]
<thrillERboy>
tobiasvl: I'm on rails, and its working correctly in rails views, but number_to_currency function is not available in rspec :(
Vainoharhainen has joined #ruby
greenarrow has quit [Quit: IRC is just multiplayer notepad]
hamed_r has joined #ruby
greenarrow has joined #ruby
quest88 has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
slainer68 has joined #ruby
<Hanmac>
hm imo the Numeric Helper functions are a bit shitty: because the formating is not only depending on the currency but on the language too
segv- has joined #ruby
segv- has quit [Client Quit]
nipa has quit [Quit: Leaving]
reinaldob has joined #ruby
<Spaceghost|cloud>
There are gems for formatting integers as monies.
<Hanmac>
yeah, but it does also count for other numbers too
otters has quit [Ping timeout: 252 seconds]
elaptics`away is now known as elaptics
<kinmor06>
why not include a helper on the rspec config?
Xeago has joined #ruby
quest88 has quit [Quit: quest88]
reinaldob has quit [Remote host closed the connection]
io_syl has quit [Quit: Computer has gone to sleep.]
pavilionXP has quit [Quit: Forget progress by proxy. Land on your own moon.]
hotovson has joined #ruby
m4n has joined #ruby
guilleiguaran has joined #ruby
moeSeth_ has joined #ruby
<m4n>
am loading a yaml file using the yaml module. but it strips trailing zeros after the first one in decimal values. how can i avoid that
mand has joined #ruby
mand is now known as mand_
chussenot has joined #ruby
<mand_>
Hi, I have a problem with rspec-expectations-2.12.1 as it depends on an older version of diff-lcs (~> 1.1.3, runtime) whereas rspec-expectations-2.0.1 only depends on diff-lcs (>= 1.1.2, runtime)
<mand_>
What should I do?
skum has joined #ruby
jackyalcine has quit [Ping timeout: 272 seconds]
Vainoharhainen has quit [Ping timeout: 252 seconds]
tatsuya_o has joined #ruby
<mand_>
Seems quite strange to me
<mand_>
Could I somehow override the dependencies of rspec-expectations so it works with the newest diff-lcs version/
<mand_>
Could I somehow override the dependencies of rspec-expectations so it works with the newest diff-lcs version?
karasawa has quit [Ping timeout: 246 seconds]
timmow has joined #ruby
<Xeago>
does anyone know if osx in single user mode can have colorized prompts?
<Mon_Ouie>
That has more to do with your shell (e.g. bash) than your OS (as long as your terminal supports color code, which the default terminal in OS X does)
sayan has quit [Read error: Connection reset by peer]
<Xeago>
Mon_Ouie: however can you say that singleusermode is a complete OS X?
klaut has quit [Remote host closed the connection]
<Mon_Ouie>
Oh, I didn't realize what that was, sorry. That still depends on whether or not the terminal you get into supports it.
beliveyourdream has joined #ruby
workmad3 has joined #ruby
reinaldob has joined #ruby
karasawa has joined #ruby
frihd has quit [Quit: Leaving.]
caleb_io has quit [Quit: caleb_io]
b0oh has joined #ruby
b0oh has left #ruby [#ruby]
luckyruby has quit [Remote host closed the connection]
gyre007 has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
Gooder has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
ryanf has quit [Quit: leaving]
RagingDave has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
security has joined #ruby
timonv has joined #ruby
megha has quit [Ping timeout: 252 seconds]
hotovson has quit [Remote host closed the connection]
<Xeago>
Mon_Ouie: I am unsure if the terminal advocates it is capable of colors, and whether the screen drivers do
<JonnieCache>
mand_: you can fork the git repo and modify it however you want
krisfremen has joined #ruby
krisfremen has joined #ruby
<JonnieCache>
mand_: you can pas a :git paramater in your gemfile to use your forked gem
nkr has joined #ruby
S1kx has quit [Quit: Leaving]
cba has quit [Remote host closed the connection]
caveat- has quit [Read error: Operation timed out]
matheus_ is now known as embs
kinmor06 has quit [Quit: Leaving]
dhruvasagar has quit [Quit: Lost terminal]
jds_ has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
nomenkun_ has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
cba has joined #ruby
razibog has quit [Read error: Connection reset by peer]
<Xeago>
can't really give it a subject, the title says it best if you know your history: Architecture — The lost years.
<Spaceghost|cloud>
I've seen it.
<Spaceghost|cloud>
I've read a great deal on the subject.
security is now known as megha
* Spaceghost|cloud
was approached by one of the most BS-filled publishers to write a book on the subject. He lol'd at them
browndawg has joined #ruby
timonv has quit [Remote host closed the connection]
allanm has quit [Ping timeout: 252 seconds]
Dakuan has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
<JonnieCache>
Xeago: is it about the years of object oriented theory that its now fashionable to ignore?
samuel02 has joined #ruby
jds_ has quit [Ping timeout: 240 seconds]
<Spaceghost|cloud>
JonnieCache: Mostly.
timonv_ has joined #ruby
<Spaceghost|cloud>
I had the hardest day at work once. It was when my boss said, "With ruby, you don't have to worry about any of that. It's so easy to change, it's practically free"
<JonnieCache>
sometimes people look at me like im a child molestor when i do that stuff
Icarot has quit [Ping timeout: 255 seconds]
<Spaceghost|cloud>
I turned my literal LOL into a chortle into a cough right on the spot.
timonv has quit [Read error: Connection reset by peer]
<workmad3>
Spaceghost|cloud: but with ruby, you can just redefine methods to do dependency injection! such as with Time.now! and screw the fact that it makes things go really ballsed up
jerius has joined #ruby
<Spaceghost|cloud>
workmad3: I laughed at that blogpost. So hard.
<Spaceghost|cloud>
"Good job with threads DHH"
<Spaceghost|cloud>
He knows 'em.
pskosinski has joined #ruby
<JonnieCache>
workmad3: what are you referring to there?
<workmad3>
yeah, the *least* serious part of doing that crap is my 'month-long' test suite reports :)
statarb3 has quit [Ping timeout: 272 seconds]
<Xeago>
JonnieCache: I'd say more about making your application speak, and seperation of concerns (the fashionable forgotten way)
<workmad3>
JonnieCache: it was a blog post DHH did a little while ago
<workmad3>
JonnieCache: claiming that normal DI is useless in ruby, because it's so flexible you can just redefine methods instead
<Xeago>
and then there was another talk that said cucumber is slow, and he totally crushes that
<workmad3>
JonnieCache: with the traditional Time.now example
unix has joined #ruby
<Spaceghost|cloud>
Xeago: Who?
<workmad3>
'just stub Time.now to return the dates you want to test at edge-cases'
recycle has joined #ruby
<Xeago>
the talk I linked
<workmad3>
'oh... that just made my test report that it took 2 months to complete'...
cableray has joined #ruby
<Spaceghost|cloud>
Xeago: Eh, I don't fault the man for not knowing everything.
judofyr has left #ruby [#ruby]
<Spaceghost|cloud>
People do often write their cukes with shit test code.
<JonnieCache>
workmad3: ive always used the timecop gem for stubbing time.now
<Xeago>
people write their tests so it requires rails
<JonnieCache>
ive never had a problem, because it lets you mock the time inside a block
<JonnieCache>
so you never fuck anything up
<Spaceghost|cloud>
The day people realize that cucumber is just Regex Driven Development and a code executor, the sooner I start caring about their bullshit again, maybe.
<Spaceghost|cloud>
Xeago: That's a startup penalty. The biggest one is when they use shit like selenium. :(
<Xeago>
Spaceghost|cloud: I agree, but you can't say cucumber is slow; your tests suck like horsepoop
<Xeago>
selenium, never heard of
RagingDave has quit [Quit: Ex-Chat]
banisterfiend has joined #ruby
<Xeago>
yuck
<Spaceghost|cloud>
Xeago: Well yeah, but most people these days think cucumber is something it isn't. Clearly he's aprt of that group.
<Xeago>
browser emulation?
<Spaceghost|cloud>
simulation.
<workmad3>
Xeago: not emulation
<workmad3>
Xeago: automation
love_color_text has quit [Remote host closed the connection]
<Xeago>
hmm
<Spaceghost|cloud>
It drives a real browser.
<workmad3>
^^
<Spaceghost|cloud>
Slow as fuck and shouldn't ever be the first thing you reach for when testing anything ever.
<Spaceghost|cloud>
I might have missed putting in an 'ever' in there. You can never have too many.
<Xeago>
he as the talk I linked? He says in the talk that cucumber is nothing more than regex and an implementer of some interface in his diagram
xargoon has quit [Ping timeout: 264 seconds]
<Spaceghost|cloud>
Anyways, I'm working on a project that shows my architecture stuff.
<JonnieCache>
nothing wrong with full browser automation in testing. it takes ages but if youre running that part of the suite once or twice a day then its fine
<Xeago>
yuck, the idea is cool, but not for automated tests while developing
<Spaceghost|cloud>
That's one of those full end-to-end functional tests. They're painful.
<Xeago>
I'd expect this stuff at a QA team
<workmad3>
I tend to do browser automation for smoke tests
<Spaceghost|cloud>
I only use design patterns that more fully present the domain problem and pull away any implementation details I don't really want to care about.
<JonnieCache>
its painful but its 1000x less painful than a human doing that stuff
<didge>
How do you escape SQL in ruby?
<Spaceghost|cloud>
didge: By running the other way!
<Spaceghost|cloud>
Bazinga.
<workmad3>
use prepared statments!
<workmad3>
like you should always do
<workmad3>
in any language
<didge>
I don't understand what they are.
<Spaceghost|cloud>
Or just not SQL'ing!
hamed_r has quit [Quit: Leaving]
<didge>
I am using SQL currently.
<Spaceghost|cloud>
I know. I'll have my warrior clan pray for your soul.
xargoon has joined #ruby
Dakuan has joined #ruby
jinzhu has quit [Ping timeout: 252 seconds]
<workmad3>
didge: if you don't know what prepared statements are, step away from the code, open up google and learn some stuff
nari has joined #ruby
<didge>
What would I use instead of the ruby mysql gem ?
fyolnish has quit [Ping timeout: 245 seconds]
<didge>
workmad3; that's insulting and you don't know me.
<Spaceghost|cloud>
datamapper?
<Xeago>
didge: Sequel is nice
<Spaceghost|cloud>
A shot of tequila./
<Spaceghost|cloud>
?
<didge>
thanks.
<Xeago>
didge: workmad3 is right, read up what prepared statements are
mahmoudimus has joined #ruby
<workmad3>
didge: you're the one who said you didn't know what they are
<workmad3>
didge: I'm saying go learn about them, because they've been the answer to this particular problem for *decades*
<Spaceghost|cloud>
workmad3: His ego man. Watch the ego!
<Xeago>
it may sound harsh, but it prevents you from being a headline on some news site in a year
<didge>
Ok.
elkclone has quit [Quit: It's never too late to unplug and run.]
<didge>
Ok. I'll be back in a bit. I have a lot to learn. I don't use prepared statements habitually. I like RAD because I'm a loner.
<JonnieCache>
its a 90s term invented to promote visual studio and its related products
<workmad3>
(couldn't resist :) )
<Xeago>
how do i wrap a selection in braces in vim?
<Spaceghost|cloud>
around.vim
<Xeago>
a plugin I suppose?
<Spaceghost|cloud>
Egh, might not be necessary, but it's convenient.
Goles has joined #ruby
icole has quit [Ping timeout: 240 seconds]
icole has joined #ruby
emocakes has joined #ruby
<whowantstolivefo>
codeacademy is good point to learn ruby by example. i started yesterday learning from there, but i get satisfaction from that page... who ever made this page, thank you!
<shevy>
"A person who makes unecessary modifications to their most often import car to make it faster." hmm... tuning!
emergion has quit [Quit: Computer has gone to sleep.]
<shevy>
BMW... mercedes... lamborghini ... :D
JonnieCache has joined #ruby
cjs226 has quit []
<lupine>
the idea being that recompiling KDE to add -funroll-loops is generally unnecessary
<invariant>
Is there any difference between Python and Ruby that's actually of interest?
<shevy>
invariant why did they die? was it because the guy who started with it left the project?
<lupine>
yes
<invariant>
I programmed in both, but they feel pretty much the same.
<shevy>
invariant not sure... I think they sit in a very, very similar niche, and aside from the different philosophy, they are both very much alike one another
<invariant>
shevy, who?
<shevy>
python and ruby
<shevy>
ah
<shevy>
who was that gentoo guy... I forgot the name
<shevy>
didn't he go to debian or something?
<invariant>
shevy, ah, yes, the founder.
<invariant>
shevy, he used to work for Microsoft.
<lupine>
aww, gobo is dormant
daniel_- has joined #ruby
<banisterfiend>
invariant: blocks are a pretty fundamental difference, they're used everywhere in ruby
timonv_ has quit [Remote host closed the connection]
<sh00p>
debian master race reporting in
<shevy>
lupine yeah :( a guy took over, but did not do much at all, so the whole thing died down... so many project transitions fail...
<banisterfiend>
invariant: also, executable class bodies
timonv has joined #ruby
<invariant>
Daniel Robbins
<invariant>
It was first called Enoch Linux. lol
<Spaceghost|cloud>
invariant: In ruby, our lambdas aren't shit. :)
timonv_ has joined #ruby
timonv has quit [Read error: Connection reset by peer]
<shevy>
lol enoch? Eunuch Linux! "In order to use this, you must first lose that."
<invariant>
Spaceghost|cloud, so, Ruby is like Scheme with syntax/Smalltalk in text format.
<Spaceghost|cloud>
shevy: "Not like it was being put to any good use"
<Xeago>
invariant: ruby is made to be perl but better
<lupine>
smalltalk was a big design influence on ruby
<invariant>
Without the macros in the case of Scheme.
<Xeago>
lupine: because it was a big design influence on perl
clocKwize has quit [Quit: clocKwize]
<lupine>
python, meanwhile, focused on explicitness and One Way To Rule Them All
<shevy>
lupine there was an idea to use /System/Index ... and something similar to unionfs Appdirs... but hisham went on to use lua and had no more time, similar to the other main devs from brazil
<invariant>
The Gentoo Linux distribution created enormous interest almost immediately. It remains by far[citation needed] the most high-profile source-based Linux distribution, and the quality of its documentation, and friendliness of its forums have been widely praised.
<lupine>
which is perfectly fine, of course, but definitely a difference worth noting
<invariant>
Citations are needed :)
<lupine>
well, restricted to source-based, so probably true
<Spaceghost|cloud>
Best thing python has over ruby is the ability to pull in only what part of the package they want.
<shevy>
lupine I am fine with the one way to rule them all. it just must be elegant... and clear... and other ways must also be possible when they provide a very clear, definite advantage
<yfeldblum>
Spaceghost|cloud, and caller-namespace it
<shevy>
Spaceghost|cloud yeah that one is nice too, wonder if ruby could have something similar to that
JonnieCache has quit [Quit: Lost terminal]
<invariant>
It would be fun if Racket would absorb all languages.
<Spaceghost|cloud>
invariant: You seemed to have made a small clerical error.
<Spaceghost|cloud>
s/would/wouldn't/
<Spaceghost|cloud>
There you go.
<invariant>
Spaceghost|cloud, why so?
<Spaceghost|cloud>
yfeldblum: Yes indeed.
<invariant>
Spaceghost|cloud, having different run-time systems is not such a smart idea.
<Spaceghost|cloud>
Because the idea that using racket in everything makes me a bit depressed.
<invariant>
Spaceghost|cloud, all the run-time systems are complex systems and they can all contain bugs.
<Spaceghost|cloud>
I actually deviate from the seattle ruby syntax to be a bit lispy.
<invariant>
Spaceghost|cloud, if there is just one, there is less chance for bugs.
<shevy>
2014 will be the year of lisp renovated, the breakthrough of desktop linux AND gnu hurd on top of that (but secretly running the emacs OS underneath)
<Spaceghost|cloud>
invariant: Oh, lol. Actually, that's a horrible idea. :d
<invariant>
GNU Hurd aready runs.
<yfeldblum>
invariant, i see it differently: the more there are, the less chance for bugs
<invariant>
Spaceghost|cloud, it's what MS did.
<invariant>
Spaceghost|cloud, it's a sound idea.
<Spaceghost|cloud>
invariant: In your mind. :)
<yfeldblum>
invariant, a distributed system is more resilient
<shevy>
Spaceghost|cloud how lispy is your ruby actually :P
<invariant>
A very old idea and a poor execution by MS.
<invariant>
But a sound idea.
<yfeldblum>
invariant, many runtimes are more resilient than one runtime
<invariant>
yfeldblum, not really.
<Spaceghost|cloud>
shevy: I pass arguments in as expressions.
<shevy>
one OS to rule them
<yfeldblum>
invariant, otherwise we'd all be using windows and c++
<invariant>
I prefer to have one good one than 100 bad ones.
<Spaceghost|cloud>
invariant: I wonder what you're on about. Not really, but I wanted to express that I have no fucking idea what you're getting at.
<lupine>
multiple runtimes has been good for ruby
<lupine>
it may be good or bad for other languages
<Spaceghost|cloud>
You mean implementations?
<lupine>
yep
<lupine>
hence rubyspec, etc
* Spaceghost|cloud
is an avid jruby user.
<Spaceghost|cloud>
lupine: Actually, rubyspec arose out of a way to try to standardize. But the real standard is in Matz hands.
<Spaceghost|cloud>
I give very little fucks about the rubyspec project and the maintainer.
<lupine>
the development of rubyspec was driven by the desire to make the standard explicit, by people who wanted to write alternative implementations
<lupine>
and it's very useful
<yfeldblum>
Spaceghost|cloud, but will matz break rubyspec? or use it as a way for new versions of ruby not to break current versions as well as current versions of alternate implementations
<Spaceghost|cloud>
yfeldblum: I don't think brixen's project is in any way canonical.
<Spaceghost|cloud>
It's cool enough of an idea.
* Spaceghost|cloud
is waiting on the japanese standard to come out whenever it does and to see what arises out of that.
NobbZ has quit [Remote host closed the connection]
NobbZ has joined #ruby
fyolnish has joined #ruby
Yazil has joined #ruby
Yazil has quit [Client Quit]
JonnieCache has joined #ruby
clocKwize has joined #ruby
fyolnish has quit [Read error: Connection reset by peer]
RagingDave has joined #ruby
frihd has quit [Quit: Leaving.]
ryanh has quit [Quit: Computer has gone to sleep.]
horofox has joined #ruby
browndawg has quit [Quit: Leaving.]
Goles has joined #ruby
<Xeago>
damnit, theres something wrong with my font in my irc client and I don't know what!
<Xeago>
the 3 vertical center pixels are what catches my attention
krawchyk has joined #ruby
Donkeycoder has joined #ruby
<Xeago>
the middle one is 129,192,251 on the left and 137,189,255 on the right (RGB)
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
xemu has joined #ruby
x0F_ is now known as x0F
<apeiros_>
color profile might also be a source for differences. though I wouldn't know how/why it changed between restarts
<Xeago>
it shouldn't these are digital rgb's
<apeiros_>
as in, without color profile applied?
chussenot has quit [Quit: chussenot]
<Xeago>
asin native values
v0n has joined #ruby
<Xeago>
using hte colormeter that comes with osx
<Donkeycoder>
hey guys, does one of you know where to find a blowfish module which could be used for irc ? only found a weechat blow .rb but i can't figure out how to (use/mod) for my needs
<Donkeycoder>
though i could call a function from an eggdrop blowfish module
ffranz has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
<lupine>
mm, that one uses crypt/blowfish
<Donkeycoder>
[encrypt @key @msgtext] looked easier to me
Takehiro has joined #ruby
jonahR has joined #ruby
warb0 has joined #ruby
<Donkeycoder>
and i though using some external lib would also be a nice way to learn how it works
JonnieCache has joined #ruby
poikon has joined #ruby
dr_neek has quit [Quit: dr_neek]
jfl0wers has joined #ruby
tommyvyo has joined #ruby
francisfish has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 272 seconds]
EPIK has quit [Ping timeout: 248 seconds]
mengu has quit [Read error: Connection reset by peer]
mengu_ has joined #ruby
w|t has joined #ruby
w|t has joined #ruby
w|t has quit [Changing host]
frihd has quit [Quit: Leaving.]
mjolk has joined #ruby
ner0x has joined #ruby
emocakes has quit [Quit: emocakes]
awarner has quit [Remote host closed the connection]
rzeee has quit [Quit: Page closed]
k610 has joined #ruby
<Donkeycoder>
lupine, tried that so many times… just can't rebuild it a simple usable way..
<shevy>
guys
<shevy>
if I have project name foobar, with corresponding file paths... I then have a directory, in foobar/some_dir/ with lots of .rb files, and I want to load them all
<shevy>
require 'foobar/some_dir/*.rb' would not work but how would I use Dir[] to fetch the .rb files instead?
atno has joined #ruby
<shevy>
right now I use an absolute path, which sucks :\
<lupine>
you can only make limited assumptions about the sanctity of your directory tree, after all
ananthakumaran1 has left #ruby [#ruby]
ananthakumaran has joined #ruby
jjbohn has quit [Quit: Leaving...]
<lupine>
and that kind of "load-everything" code is just waiting for a file-upload-to-arbitrary-location vulnerability to become an execute-arbitrary-code vulnerability
ananthakumaran has quit [Client Quit]
iPhoneMRZ has quit [Remote host closed the connection]
aquaranto has joined #ruby
cantonic has quit [Quit: cantonic]
Dakuan has quit [Ping timeout: 240 seconds]
mephux has quit [Ping timeout: 272 seconds]
jds_ has quit [Ping timeout: 248 seconds]
<shevy>
well alright. I will stick to absolute paths. :P
Playground has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
Dakuan has joined #ruby
caveat- has joined #ruby
WilfredTheGreat has joined #ruby
nwertman has quit [Read error: Connection reset by peer]
jrist-afk is now known as jrist
Coolhand has quit [Remote host closed the connection]
clooth has quit [Read error: Connection reset by peer]
clooth has joined #ruby
megha has quit [Quit: WeeChat 0.3.9.2]
segv- has joined #ruby
emocakes has joined #ruby
louisror has joined #ruby
cantonic has joined #ruby
razibog1 has joined #ruby
d2dchat has joined #ruby
zph has joined #ruby
<Donkeycoder>
think i'll stick to this one.. https://gist.github.com/a8ade63cf22746e79dbf but the problem stays.. how can i now get my string encrypted? like @doit = IRC::FISH.new ; @doit.encrypt('text to cryp') ? can't figure out how to use that modules… :(
razibog has quit [Ping timeout: 244 seconds]
chussenot has quit [Quit: chussenot]
ttt_ has quit [Remote host closed the connection]
woolite64 has joined #ruby
memon has joined #ruby
dr_neek has joined #ruby
BulleTime has quit [Ping timeout: 255 seconds]
<memon>
HELLO
JumpMast3r has joined #ruby
sclarson_ has quit [Quit: sclarson_]
sclarson_ has joined #ruby
_nitti has joined #ruby
awarner has joined #ruby
<shevy>
memon WORLD
v0n has quit [Ping timeout: 248 seconds]
mdel has quit [Remote host closed the connection]
statarb3 has joined #ruby
theRoUS has joined #ruby
samphippen has joined #ruby
niklasb has quit [Remote host closed the connection]
JonnieCache has quit [Quit: Lost terminal]
memon has left #ruby [#ruby]
nkts has quit [Remote host closed the connection]
Jackneill has joined #ruby
angusiguess has joined #ruby
DavidLevin has joined #ruby
karasawa has quit [Ping timeout: 248 seconds]
allsystemsarego has joined #ruby
dr_neek has quit [Quit: dr_neek]
DavidLevin has quit [Max SendQ exceeded]
karasawa has joined #ruby
awarner has quit [Remote host closed the connection]
DavidLevin has joined #ruby
DavidLevin has quit [Max SendQ exceeded]
<sh00p>
afaik *.erb files are exactly like normal raw text files except that code within <% %> are processed somehow right?
<sh00p>
but then why does ruby complain when I do ERB.new(File.open(...)) on a file that contains single quotes?
<Spooner>
You need to get a decent script highlighting editor. Would have caught that for you.
<sh00p>
yeah you're right about that Spooner, @ variables are instance-variables afaik... now I'm quite used to C++ but ruby is a different beast entirely
<scrapcode_>
I'm experimenting with ruby a bit and am having trouble figuring out why ruby seems to be bypassing my method: https://gist.github.com/4595512
dougireton has joined #ruby
<Kovensky>
scrapcode_: it isn't
jaequery has quit [Quit: Computer has gone to sleep.]
<Kovensky>
scrapcode_: what's happening is that it's returning the result of val.each, which is val itself
havenn has joined #ruby
<Kovensky>
scrapcode_: use 'return' inside the block
waxjar has joined #ruby
<daxroc>
I'm new to ruby so forgive my ignorance, I'm reading the first line of a file and want to check if it contains two strings what's the best way to do this ? Grep, Find
<poikon>
Kovensky: pure gold lol. inhale, calm! (if there was a thunderbolt typeface it still wouldn't do it justice)
buibex has quit [Read error: Connection reset by peer]
tagrudev has quit [Remote host closed the connection]
<scrapcode_>
Kovensky: I'm coming from PHP so it's just kind of confusing.
<daxroc>
*I'm currently using grep(\pattern\) to match one string, should I just use a Regex or is there a nicer ruby way to return a bool when two or more strings are found doesn't matter on string order
<Kovensky>
scrapcode_: heh
<Kovensky>
scrapcode_: one thing that makes some people confused (e.g. perl people) is that blocks are not *real* closures
<Kovensky>
scrapcode_: if you call 'return' in a block, you're actually returning from the toplevel function
<Kovensky>
so the right thing to do that is `return "\r\n (...)"`
<Kovensky>
there*
<Kovensky>
daxroc: what do you mean by "finding a string"?
<Kovensky>
do you have a sample input and expected output?
<Kovensky>
because all windows perl implementations still use ancient "ANSI"-only API
<hoelzro>
Kovensky: in what way?
<hoelzro>
even strawberry?
Hanmac has joined #ruby
<Kovensky>
so it can't deal with files outside the system's legacy codepage
<Kovensky>
yep
<Kovensky>
oh, ruby also lacks CPAN ;)
<hoelzro>
and performing a decode on the results doesn't help?
<Kovensky>
hoelzro: no, because the results are full of *actual* ???
<hoelzro>
whoa
mneorr has joined #ruby
<Kovensky>
which is how windows' legacy API deals with characters that don't fit the legacy charset
banisterfiend has quit [Remote host closed the connection]
<hoelzro>
well, that sucks
<Kovensky>
matz did a great job with ruby1.9's charset system
asym has joined #ruby
wallerdev has joined #ruby
Phoop has quit [Quit: Phoop]
<Kovensky>
it's also why I think ruby1.8 should DIAF and I'm not touching that with a 10km pole :|
banisterfiend has joined #ruby
sh00p has quit [Ping timeout: 252 seconds]
pu22l3r_ has quit [Remote host closed the connection]
zigomir has quit [Quit: zigomir]
tyler has joined #ruby
jprovazn has quit [Quit: Leaving]
tyler is now known as tbrock
wallerdev has quit [Client Quit]
<banisterfiend>
Kovensky: i thought rubygems was the equivalent to cpan?
jds_ has quit [Ping timeout: 256 seconds]
pavilionXP has joined #ruby
andrewhl has joined #ruby
<hoelzro>
I would say that rubygems is pretty close to CPAN
<hoelzro>
but
<tbrock>
hey guys, how would you convert a string containing a hex byte to a byte, for example the string "0x01" to equal the byte 0x01
<hoelzro>
CPAN adds more than just a module repository
alx- has joined #ruby
dougireton has quit [Quit: Leaving.]
<Kovensky>
CPAN also has an entire documentation culture behind it
<Kovensky>
and also has a lot more stuff than rubygems
<hoelzro>
right
<hoelzro>
I love Perl module documentation
<Kovensky>
meanwhile, good luck finding half-usable documentation for rubygems... or even some of ruby's stdlib
<hoelzro>
that's one thing I'm honestly struggling with trying to use Ruby more
<Kovensky>
a big reason for why ruby's documentation sucks is because they took Javadoc
<hoelzro>
Kovensky: I haven't had a problem with Ruby's stdlib
<Kovensky>
and shoehorned it in a language COMPLETELY unlike Java
generalissimo has joined #ruby
<Kovensky>
and all alternative documentation systems are really just variants of javadoc
<Hanmac>
ruby1.8 should be ignited, buried in a steel coffin filled with lead and then throwed in the deepest water with an rock above
<Kovensky>
hoelzro: 1.9.3 improved a lot but before that e.g. openssl was completely undocumented
<hoelzro>
ah
jenrzzz has quit [Ping timeout: 276 seconds]
jlast has joined #ruby
<Kovensky>
example of a widely used gem with horrible documentation: cinch
theRoUS has quit [Ping timeout: 276 seconds]
<Kovensky>
documentation is generated javadoc-style (like everything else) and is spread around a rather large class hierarchy, and the methods' documentation itself is often lacking
<Kovensky>
however, you're supposed to write cinch bots using a DSL
philips_ has quit [Excess Flood]
francisfish has joined #ruby
froginvasion has joined #ruby
<Kovensky>
this DSL being completely undocumented, because you're supposed to figure out which class implements which part of the DSL you're trying to use and hope it explains
<Kovensky>
the only chance you have of understanding the DSL is to either study all of cinch or look at a lot of examples, and cinch's website has been down for many months
breakingthings has joined #ruby
<froginvasion>
can someone explain me the difference between metaclasses, eigenclasses, virtual classes etc? Conceptually for me they are the same, but all the different terminology is confusing
<Kovensky>
...what are those? O_o
<banisterfiend>
froginvasion: eigenclasses/metaclasses are really the same thing
<banisterfiend>
froginvasion: 'virtual classes' is a blanket term to refer to both eigenclasses and iclasses (included modules)
<hoelzro>
tbrock: I think chr(s.to_i)
slava_dp has quit [Quit: Bye]
<hoelzro>
Kovensky: the thing is, when I think about how a lot of Ruby documentation could be improved, a familiar phrase comes to my mind:
<hoelzro>
patches welcome =)
<banisterfiend>
froginvasion: iclasses are created when you include a module
fteem has quit [Read error: Operation timed out]
<Kovensky>
hoelzro: yeah, but the javadoc-like system works against it
<Kovensky>
perldoc would've been much more suitable
<banisterfiend>
froginvasion: cool?
aganov has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 256 seconds]
techhelp has joined #ruby
<Hanmac>
banisterfiend didnt you mean when you extend an module into an object?
<banisterfiend>
Hanmac: nah, i' not talking about eigenclasses, i'm talking about iclasses :)
dr_bob has quit [Quit: Leaving.]
<Xeago>
Kovensky: I found Cinch's DSL quite easy to use
<froginvasion>
hey banisterfiend, yes thanks, that confirms my thoughts
<banisterfiend>
Hanmac: iclass == the wrapper object for a module, you never get the actual module in an ancestor chain, u get a proxy that has its method table and ivar table pointing to those on the real module
<banisterfiend>
Hanmac: where change == include another module into the first one :)
<Kovensky>
Xeago: if you want to do anything outside what the examples cover you have to figure it out yourself
chussenot has quit [Quit: chussenot]
<Kovensky>
e.g. there's no mention whatsoever of how to do DCC file transfers
<Kovensky>
only that "it's implemented"
scrapcode_ has left #ruby [#ruby]
chussenot has joined #ruby
<Kovensky>
the DCC classes themselves aren't documented either
bricker has joined #ruby
buibex has joined #ruby
buibex has quit [Client Quit]
jaequery has joined #ruby
atno has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 272 seconds]
jpfuentes2 has joined #ruby
danneu has joined #ruby
mmitchell has quit [Remote host closed the connection]
dqminh has joined #ruby
dqminh has quit [Remote host closed the connection]
Umren has joined #ruby
Michae___ has quit [Remote host closed the connection]
sclarson_ has joined #ruby
zigomir has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
mmitchell has joined #ruby
mmitchell has quit [Remote host closed the connection]
karasawa has quit [Ping timeout: 244 seconds]
mmitchell has joined #ruby
Zolo has quit [Remote host closed the connection]
karasawa has joined #ruby
bricker_ has joined #ruby
nkr has joined #ruby
spider-mario has joined #ruby
nwertman has joined #ruby
bricker has quit [Ping timeout: 248 seconds]
Michae___ has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
megha has joined #ruby
megha has quit [Client Quit]
<shevy>
people are always happy to finish code
<shevy>
then they are too lazy to write the documentation
<shevy>
right Hanmac :D
<shevy>
though, I would be happy for working examples
shorts has quit [Quit: shorts]
uris has joined #ruby
Michae___ has quit [Remote host closed the connection]
Zolo has joined #ruby
<shevy>
stuff like "gem install shoes" does not even work, Sorry, this gem currently does nothing. Team Shoes is working on Gemifying Shoes, and this is just a placeholder until then.
<shevy>
and when I installed it in another way, the examples were not working either.
mafolz has quit [Remote host closed the connection]
<breakingthings>
Speaking of gems, I'm currently wondering why I have 56 downloads of a gem at version 0.0.0
<breakingthings>
it… it does nothing guys. stop downloading it.
hoelzro is now known as hoelzro|away
<shevy>
breakingthings I think these are bots
<breakingthings>
shevy: I kind of figure as much.
headius has quit [Quit: headius]
<shevy>
I have about the same initial downloads of my gems
<shevy>
only at a later time will like one or two random person download a gem
<shevy>
and when the gem is useful, more people than that ... :P
Michae___ has joined #ruby
otters has joined #ruby
<shevy>
breakingthings, do you happen to know how to remove an account from rubygems.org ?
clj_newb has joined #ruby
poikon_ has joined #ruby
<breakingthings>
No, I honestly don't know that there is a way.
headius has joined #ruby
pu22l3r has joined #ruby
<shevy>
:(
unix has quit [Disconnected by services]
angusiguess has joined #ruby
banisterfiend has quit [Remote host closed the connection]
<Spooner>
shevy Why would you need to?
poikon has quit [Ping timeout: 260 seconds]
<Spooner>
Did you misspell your name when you registered?
<Hanmac>
shevy you are totaly right :P today is the problem that i dont have all my repositories on my current pc ...
yacks has quit [Quit: Leaving]
<Hanmac>
shevy: how is your learning of C going?
Michae___ has quit [Remote host closed the connection]
jrajav has joined #ruby
woolite64_ has joined #ruby
zigomir has quit [Quit: zigomir]
graft has quit [Ping timeout: 252 seconds]
enebo has joined #ruby
clocKwize has joined #ruby
woolite64 has quit [Ping timeout: 248 seconds]
ViPi has quit [Quit: Computer has gone to sleep.]
freakazoid0223 has joined #ruby
unix1 has joined #ruby
zastern has joined #ruby
notVert has joined #ruby
Vert has quit [Ping timeout: 252 seconds]
clooth has joined #ruby
<rismoney>
is there a way i can pass something as uint32?
elux has joined #ruby
dougireton has joined #ruby
graft has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
tPl0ch has quit [Quit: Verlassend]
krawchyk has quit [Ping timeout: 244 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
<Hanmac>
rismoney ... our crystal balls are in the workshop for fixing, so we need more infos from you
blazes816 has joined #ruby
a_a_g has quit [Quit: Leaving.]
_bart has joined #ruby
<jrajav>
Mine works fine, but you'll never know when I feel like using it
asym has quit [Ping timeout: 256 seconds]
<rismoney>
lol - got it - fixnum is fine, had a typo ;)
Zolo has quit [Remote host closed the connection]
Zolo has joined #ruby
mephux has joined #ruby
_carloslopes has joined #ruby
dr_neek has quit [Quit: dr_neek]
noxoc has quit [Quit: noxoc]
juarlex has joined #ruby
<shevy>
Hanmac :( I had been doing so many other things lately, and I constantly run out of time to do stuff... I watched lots of online lectures lately, all of them non-programming related
ngoldman has joined #ruby
Kuifje has joined #ruby
carloslopes has quit [Ping timeout: 244 seconds]
mockra has joined #ruby
dougireton has quit [Ping timeout: 256 seconds]
mand_ has quit [Quit: Leaving]
timonv has quit [Remote host closed the connection]
<shevy>
Hanmac right now I rewrite a ruby project
asym has joined #ruby
timonv has joined #ruby
Vaevictus has joined #ruby
<Vaevictus>
anyone know if ruby-wmi works on non-win32 platforms?
k610 has quit [Ping timeout: 240 seconds]
dmiller has quit [Ping timeout: 276 seconds]
pu22l3r has quit [Remote host closed the connection]
BulleTime has joined #ruby
ngoldman has quit [Remote host closed the connection]
filipe has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 248 seconds]
Dakuan_ has quit [Remote host closed the connection]
Michae___ has joined #ruby
<Hanmac>
Vaevictus what is wmi?
<JonnieCache>
thank god for vcr
woolite64_ is now known as woolite64
Dakuan has joined #ruby
<JonnieCache>
now my tests complete instantly and my geocoding provider doesnt hate me
<Vaevictus>
Hanmac: a windows rpc tool
<Vaevictus>
looks like ruby-wmi requires win32ole
<Vaevictus>
oh well
poikon_ has quit [Remote host closed the connection]
poikon has joined #ruby
ewag has quit [Ping timeout: 248 seconds]
dmiller has joined #ruby
banisterfiend has joined #ruby
rakl has joined #ruby
jlebrech has quit [Quit: Leaving]
Dakuan has quit [Ping timeout: 248 seconds]
pen has joined #ruby
sn0wb1rd has joined #ruby
mneorr has quit [Remote host closed the connection]
Takehiro has joined #ruby
tjbiddle has joined #ruby
_carloslopes has quit [Remote host closed the connection]
bricker_ is now known as bricker
ckrailo has joined #ruby
chrismhough has quit [Quit: chrismhough]
chussenot has quit [Quit: chussenot]
osaut has quit [Read error: Operation timed out]
alvaro_o has joined #ruby
timonv has joined #ruby
Jamone has joined #ruby
RagingDave has joined #ruby
yshh has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 248 seconds]
tjbiddle_ has joined #ruby
Monie has quit [Ping timeout: 272 seconds]
nomenkun_ has quit [Remote host closed the connection]
dougireton has joined #ruby
bricker_ has joined #ruby
<Amnesia>
question, does anyone know what the following escape characters stand for? \e[K
<froginvasion>
why does the following not work? b = Proc.new { return }
<froginvasion>
b.call
MEATCHICKEN has joined #ruby
lu1 has joined #ruby
zommi has quit [Quit: Leaving.]
luisalima has quit [Ping timeout: 255 seconds]
<banisterfiend>
froginvasion: "not work" is the vaguest possible thing u could say
<Kovensky>
I guess wait increased a counter and returned a callback that'd decrease it?
<Kovensky>
(and ready would wait for the counter to zero)
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby
Zolo has joined #ruby
<apeiros_>
Kovensky: it actually registered an id. you can provide a custom id if you wish.
cantonic has joined #ruby
<apeiros_>
but yes, that's the principle
<Kovensky>
hm, could be done with a semaphore even
<apeiros_>
luckily js is single threaded, otherwise the code would be more complex
blazes816 has quit [Quit: blazes816]
<apeiros_>
you don't need one, since ^
<Kovensky>
true
beneggett has joined #ruby
<Kovensky>
but .wait would down the semaphore *without* locking and return a callpack that ups it, and .ready would down it with locking
<Kovensky>
so it'd only succeed at downing it once it has been upped enough times
Xeago has quit [Read error: Connection reset by peer]
<Kovensky>
idk if that's really possible though; at least I know it's possible to create a semaphore with a negative starting value (so .down would immediately lock, and you'd need enough .up to allow the .down to succeed)
<Kovensky>
threading is hard, let's go shopping :X
Coolhand|laptop has quit [Read error: Operation timed out]
clj_newb has joined #ruby
Xeago has joined #ruby
<apeiros_>
haha
matchaw has quit [Read error: Connection reset by peer]
<Xeago>
banisterfiend: apeiros_: wha's your fave beer
<apeiros_>
yeah, threading is indeed hard
<Xeago>
I missed it
<banisterfiend>
Xeago: in holland, mine is Jupiler actually
<Xeago>
Jupiler :O
<Xeago>
haven't heard that one in a loong time
fteem has joined #ruby
rippa has quit [Read error: Connection reset by peer]
Playground has quit [Ping timeout: 255 seconds]
<banisterfiend>
Xeago: edelweiss too
<Xeago>
I used to drink warsteiner (after orchestra rehursals) but now in sweden I stopped
Hydroxide has joined #ruby
<Xeago>
If I get to drink something nowadays it is some big import beer here in sweden
<Xeago>
like grolsch or heineken
<Xeago>
both are awfull
<apeiros_>
Xeago: pvp or zvz today? I go practice in a bit :)
nicoulaj has joined #ruby
rippa has joined #ruby
<Hydroxide>
hey everyone. I'm using yajl-ruby to parse some json that contains floating point numbers. is there a way to tell it to leave the numbers as ruby Strings so that I can do equality comparisons, or do I have to call .to_s afterward?
<apeiros_>
(or pvz if you want)
ngoldman has joined #ruby
<Xeago>
apeiros_: your choice, my protoss is better than my zerg
JohnBat26 has quit [Read error: Operation timed out]
<banisterfiend>
apeiros_: i wonder if i could beat u in SC2
<apeiros_>
zvz then :D
<apeiros_>
banisterfiend: if I remember right, you haven't yet played sc2?
saltcod has quit [Quit: saltcod]
<banisterfiend>
not yet
mdw has quit [Read error: Operation timed out]
ngoldman has quit [Remote host closed the connection]
mdw has joined #ruby
<Xeago>
apeiros_: it doesn't matter for me at all, I just want fun times :)
<Xeago>
banisterfiend: you play?!?
<Xeago>
bummer
karasawa has joined #ruby
<apeiros_>
banisterfiend: then it's rather improbable that you beat me ;-)
daniel_- has joined #ruby
<apeiros_>
with some practice, it's quite possible, though
<apeiros_>
I'm not a very good gamer
<banisterfiend>
apeiros_: is SC1 > SC2 ?
<Xeago>
would be awesome to get a second practice partner
<apeiros_>
banisterfiend: I found the story better in sc1+bw
<apeiros_>
but by now I like sc2 better
daniel_- has quit [Client Quit]
clooth has quit [Quit: clooth]
joeycarmello has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 240 seconds]
joeycarmello has joined #ruby
matchaw has joined #ruby
<banisterfiend>
apeiros_: are korea into sc2? or did they stick to sc1?
chriskk has joined #ruby
<Xeago>
neither am I, sc1+bw was a better campaign yes, but I like gameplay more in wings of liberty
Morkel_ has joined #ruby
whowantstolivef1 has joined #ruby
<apeiros_>
banisterfiend: they've been migrating the last ~1 year
<Xeago>
there are tons of koreans
<apeiros_>
there are still BW tournaments
<Xeago>
flash plays sc2 iirc
jonahR has quit [Quit: jonahR]
<apeiros_>
but majority by now plays sc2 I think
mj_lk has joined #ruby
<apeiros_>
also koreans dominate world wide sc2 tournaments
<Xeago>
apeiros_: any big ones?
<Xeago>
thought the last big one was hybrid sc1+bw/sc2
<apeiros_>
Xeago: define big
<mj_lk>
getting 'NameError: uninitialized constant Net::SSH::HostKeyUnknown' in reference to 'rescue Net::SSH::HostKeyMismatch => e' -- sanity check that this should be resolved by "require 'net/ssh'", correct?
<apeiros_>
but I wouldn't know details anyway :)
<Xeago>
bigger than sc2 currently is
<apeiros_>
I *think* not. I think sc2 price money is bigger than BW by now
bjeanes has joined #ruby
<Xeago>
anyways, gotta walk home and eat foodz!
<Xeago>
train arrived
<apeiros_>
Xeago: ping me when you're read :)
<apeiros_>
*ready
kpshek has joined #ruby
<Xeago>
apeiros_: price money bigger yes, crowd is smaller :<
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
jds_ has joined #ruby
dougireton has quit [Quit: Leaving.]
Uranio has quit [Quit: while you reading this, a kitty dies]
jekotia has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
jds_ has quit [Remote host closed the connection]
MattRB has quit [Quit: This computer has gone to sleep]
bjeanes has joined #ruby
dougireton has joined #ruby
shorts has joined #ruby
baphled has joined #ruby
MattRB has joined #ruby
_nitti has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
jrist is now known as jrist-afk
osaut has quit [Quit: osaut]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
timonv has joined #ruby
MattRB has quit [Client Quit]
reset has joined #ruby
reset has quit [Read error: Connection reset by peer]
reset has joined #ruby
MattRB has joined #ruby
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
elkclone has joined #ruby
buibex has joined #ruby
workmad3 has joined #ruby
chrismhough has quit [Quit: chrismhough]
lushious has quit [Ping timeout: 252 seconds]
beiter has quit [Quit: beiter]
buibex has quit [Remote host closed the connection]
beiter has joined #ruby
angusiguess has quit [Ping timeout: 240 seconds]
jeffsmykil has joined #ruby
<jeffsmykil>
is there something like moments for ruby?
<jeffsmykil>
looking to parse seconds into human readable times easily
babonk has joined #ruby
recycle has quit [Remote host closed the connection]
Asher has quit [Ping timeout: 255 seconds]
<babonk>
Hey all. using ruby mechanize i want to get the text node following an html element. so, <b>test</b>THIS IS THE TEXT I WANT. how to get that text once i have the <b> node?
recycle has joined #ruby
Kakera has joined #ruby
pettsson has joined #ruby
grzywacz has quit [Ping timeout: 272 seconds]
Nisstyre-laptop has quit [Quit: Leaving]
MattRB has quit [Quit: This computer has gone to sleep]
timonv has quit [Remote host closed the connection]
bjeanes has quit [Ping timeout: 248 seconds]
timonv has joined #ruby
MattRB has joined #ruby
jeffsmykil has left #ruby [#ruby]
Coolhand|laptop has joined #ruby
_nitti has quit [Remote host closed the connection]
recycle has quit [Ping timeout: 240 seconds]
froginvasion has joined #ruby
ninjaaron has joined #ruby
thinkclay has joined #ruby
elico has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
<ninjaaron>
does ruby provide a way to leverage modules in a lower-level language the way Python does with C and C++?
<ninjaaron>
So C is the extention lanuage for the reference implementation?
Xeago has joined #ruby
<havenn>
ninjaaron: yup
k610 has joined #ruby
robert_ has joined #ruby
<ninjaaron>
ok. Interesting.
dougireton has joined #ruby
jonathanwallace has quit [Ping timeout: 255 seconds]
<ninjaaron>
I'm currently learning python, and it seems like stuff is always coming up about the differences between Ruby and python, but the more I look into it, it seems like they actually have much more in common than many other languages.
matchaw has quit [Ping timeout: 248 seconds]
jtgiri_ has joined #ruby
<canton7>
they both sit in the same niche, pretty much
Xeago has quit [Remote host closed the connection]
ewag has joined #ruby
rippa has quit [Read error: Connection reset by peer]
<Hanmac>
ninjaaron they are like twin sisters ... and ruby is the evil one :P
rippa has joined #ruby
robert_ has quit [Ping timeout: 245 seconds]
Virunga has joined #ruby
<ninjaaron>
Ruby is the evil one. It's for Mac devs! 8^)
arya_ has quit [Ping timeout: 248 seconds]
arya_ has joined #ruby
<Hanmac>
i dont think so :P because on mac the ruby version is very outdated :P
sayan has quit [Ping timeout: 244 seconds]
whowantstolivef1 has quit [Remote host closed the connection]
<ninjaaron>
Probably the only reason I chose ruby is because I'm more connected to the Linux community, and we're all hot and bothered over python, at least generally speaking.
DrCode has quit [Ping timeout: 276 seconds]
DrShoggoth has joined #ruby
<Hanmac>
ninjaaron about extention: the binded methods need to be an C-API, but the context is allowed to be C++ (i do many C++ extensions)
workmad3 has quit [Ping timeout: 276 seconds]
<ninjaaron>
can you get updated ruby stuff on mac? you must be able too, if through macports if nowhere else.
<havenn>
ninjaaron: brew is generally preferred over macports these days, but yeah either
* Hanmac
is not an mac user ... he is a happy ubuntian
<havenn>
ninjaaron: Or RVM, chruby, or rbenv route.
whowantstolivef1 has joined #ruby
froginvasion has quit [Quit: Leaving]
Xeago has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
Beoran_ has joined #ruby
robbyoconnor has joined #ruby
Jackneill has quit [Ping timeout: 272 seconds]
mj_lk is now known as mjolk
Beoran has quit [Read error: Operation timed out]
zommi has quit [Quit: Leaving.]
<ninjaaron>
Hanmac: Interesting, as Python has the most extensive feature set developing Ubuntu apps of any language out there. Course, I guess it doesn't matter if you aren't developing Ubuntu apps. I hear Ubuntu is a pretty good platform for rails too, I guess.
clj_newb has quit [Ping timeout: 240 seconds]
stkowski has joined #ruby
<ninjaaron>
havenn: interesting. I'll have to give Ruby another look after I get a reasonable grasp on Python.
<Hanmac>
maybe yea, but i never used rails :D
<ninjaaron>
(so I can make meaningful contributions to the holy wars if nothing else).
<havenn>
ninjaaron: Ruby is lovely! <3
lu1 is now known as luisalima
<ninjaaron>
Hanmac, you're an odd duck, you know that? What is it you do with Ruby?
matchaw has joined #ruby
<Hanmac>
i can do 3d games with ogre3d :D
robert_ has joined #ruby
karasawa has joined #ruby
<Hanmac>
or i can do desktop GUI with wxWidgets
DrCode has joined #ruby
<ninjaaron>
havenn: Yeah, I listen to a podcast by a guy who does a lot of rails stuff, and he's always making fun of other rails devs for gushing about "beautiful code."
<Hanmac>
or i have other usefull libs like libarchive wich is designed to open every possible archive
poikon has quit [Remote host closed the connection]
dougireton has quit [Quit: Leaving.]
karasawa has quit [Ping timeout: 240 seconds]
<ninjaaron>
Hanmac: sounds fun.
robert_ has quit [Max SendQ exceeded]
<codepoet_>
What the heck is bright box? I'm on an Ubuntu server that reports its version as 1.9.3p327 Brightbox, but I'm finding it difficult to find anything online that says what it is
ewag has quit [Ping timeout: 248 seconds]
<ninjaaron>
Well thanks for the info on the C-API. See you guys around.
ninjaaron has left #ruby ["WeeChat 0.3.9.2"]
angusiguess has joined #ruby
dankest is now known as dankest|away
geekbri has joined #ruby
haxrbyte has quit [Ping timeout: 272 seconds]
dougireton has joined #ruby
<jtgiri_>
Hey guys, I have a question about Capistrano, I wrote a method, which goes through a array and returns a string ips.uniq.join(",") , I am using that for app role : role :app, get_ips , however it throws an error, because it's looking for forward "#ip1", "#ip1" , anyway to add quotes around each string and separate them by comma ?
<banisterfiend>
apeiros_: are you mainly just into RTS?
etcetera has quit []
<apeiros_>
I like FPS too. but I suck more at it :D
jds_ has joined #ruby
codezombie has joined #ruby
CalebMingle has joined #ruby
caleb_io has quit [Read error: Connection reset by peer]
albakry has joined #ruby
albakry has joined #ruby
albakry has quit [Changing host]
poikon has joined #ruby
punkrawkR^Home has quit [Read error: Connection reset by peer]
<breakingthings>
Craft Star? That's the game with the asians and the koreans and the kekekekekekeke's, right?
<breakingthings>
or is that Dragon Ball Z
etcetera has joined #ruby
ChampS666 has quit [Ping timeout: 248 seconds]
clj_newb has joined #ruby
jds_ has quit [Ping timeout: 256 seconds]
zph has quit [Quit: Computer has gone to sleep.]
Kingy has joined #ruby
<f0ster>
apeiros_: which FPS ?
maxmanders has joined #ruby
PragCypher has quit [Remote host closed the connection]
CalebMingle has quit [Read error: Connection reset by peer]
io_syl has joined #ruby
Vert has joined #ruby
ChampS666 has joined #ruby
PragCypher has joined #ruby
<apeiros_>
f0ster: been a while. UT, one which I don't remember the name, was like counter strike, and Ghost Recon
reinaldob has joined #ruby
<apeiros_>
and before that marathon :)
<apeiros_>
ah, UT: TacOps, iirc
<f0ster>
hmm they had a free cs-like FPS on the UT engine iirc
<f0ster>
ahh nice
rdark has quit [Ping timeout: 252 seconds]
<apeiros_>
but how much I suck is best depicted by a game with instagib against my brother - 3 players, me and another guy mostly tried to take down my little brother. in the end he had died like ~4 times and had around 60 kills…
haxrbyte has quit [Remote host closed the connection]
arietis has quit [Quit: Computer has gone to sleep.]
k611 has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
__BigO__ has joined #ruby
k610 has quit [Ping timeout: 256 seconds]
mark_locklear has quit [Remote host closed the connection]
<Hanmac>
hm i read a news that everytime java gets an new update version, oracle gets money for each install ... thats the reason why there is so much (unfinished) updates
moos3 has quit [Ping timeout: 256 seconds]
__BigO__ has quit [Remote host closed the connection]
<Gate>
Hanmac: money from who? Enterprise users?
<invariant>
Hanmac, if that would be the case, they would write a loop and bankrupt everyone overnight.
<Hanmac>
from the Ask bar
codezombie is now known as codezombie|away
__BigO__ has joined #ruby
<Hanmac>
each time its gets installed ocracle gets money ... and in each update, the ask bar wants to be installed again
reinaldob has quit [Remote host closed the connection]
bjeanes has quit [Ping timeout: 248 seconds]
moos3 has joined #ruby
<Gate>
solution: never use java for anything, therefore never install it.
bjeanes has joined #ruby
c0rn has quit [Ping timeout: 260 seconds]
<Hanmac>
lets point an laugh about jruby users :D
c0rn has joined #ruby
carloslopes has quit [Remote host closed the connection]
<Xeago>
apeiros_: my apologies, got into an argument here at home
<Xeago>
also, I'd love to play some instagib :3
<Xeago>
heard shootmania is kinda good
<apeiros_>
heh
<apeiros_>
I'm in-game Xeago, ping me there when ready :)
karasawa has joined #ruby
hackerdude has quit [Remote host closed the connection]
yfeldblum has joined #ruby
ner0x has quit [Quit: Leaving]
choffstein has joined #ruby
<shevy>
yeah Xeago shoot that swiss girl down!!!
<Dann1>
okay guys
<shevy>
what up Danny boy
<Dann1>
if I have in a file.rb 'puts "it works"
<Dann1>
and in my script.rb I have on a certain line
<Dann1>
if something do {o} end
etcetera has quit []
<Dann1>
where {o} is the content of file.rb
<Dann1>
how do I do this
<shevy>
what
<shevy>
so you have one file
<shevy>
that will output the string 'it works'
<Dann1>
Ye
<shevy>
then you have another file that... does what?
<Dann1>
It's an example
<shevy>
well
<Dann1>
No
<Dann1>
No
<shevy>
the usual way to load another file is via load or require
<Dann1>
Yes, but I want to load it in that specific context
<shevy>
if you must interprete it directly, either use eval(), or bundle it into a method
<shevy>
why cant you use a method?
<Dann1>
MM
Zolo has quit [Remote host closed the connection]
karasawa has quit [Ping timeout: 276 seconds]
<Dann1>
Never thought of it
<shevy>
or eval
<shevy>
but that is awful
<Dann1>
Why does everyone hate eval?
dr_neek has joined #ruby
<Hanmac>
hm he could bind it to a binding ...
<shevy>
it leads to code that is complex
ryanf has joined #ruby
etcetera has joined #ruby
<shevy>
and there are about twenty different ways in ruby to eval
<Dann1>
Dear lord
frihd has quit [Quit: Leaving.]
<Dann1>
Nevermind
<shevy>
but eval() is the most common one
<Dann1>
I think I got it done
<Dann1>
Thanks shev
<invariant>
You never need eval.
<shevy>
\o/
<invariant>
It's just convenient.
<shevy>
like heroin
<invariant>
Also a good way to help attackers.
jblack_ has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
tPl0ch has joined #ruby
<invariant>
Writing a web-application in Ruby is pretty much a guarantee that you won't get it right, anyway.
<Xeago>
shevy: swedish
tvw has joined #ruby
jblack has joined #ruby
<Hanmac>
shevy binding.eval is more interesting and maybe what he wants
<tetsus>
which is the more-correct way to create an array: [] or Array.new ?
poikon has quit [Remote host closed the connection]
<apeiros_>
tetsus: neither
<apeiros_>
[] is suggested, though
Bry8Star has quit [Remote host closed the connection]
<apeiros_>
unless you can make use of the variants with arguments, e.g. Array.new(10, 0), or Array.new(10) { |i| i }
<Hanmac>
tetsus: the second is better when you want an array of a given size
<tetsus>
ah! thank you, apeiros_ & Hanmac
<apeiros_>
invariant: trolling much?
hadees has quit [Quit: hadees]
<invariant>
apeiros_, being ignorant much?
<invariant>
...
invariant was kicked from #ruby by apeiros_ [shrug]
<invariant>
apeiros_, now I should bow for you as my master?
Goles has joined #ruby
<Hanmac>
he said web-application :D
<apeiros_>
invariant: no, but you should not behave like a total idiot.
cb0ss has joined #ruby
<apeiros_>
and trolls aren't welcome here.
<invariant>
apeiros_, and you are of course not one.
invariant was kicked from #ruby by apeiros_ [good bye]
warb0 has joined #ruby
<fasta>
Fascism at its best.
<apeiros_>
fasta: trolls are not welcome here. don't like it? you're free to go.
<apeiros_>
and statements like that make me kick you too. so stop it right there.
whowantstolivef1 has quit [Quit: quit]
* Hanmac
can write a web-application in C :D
<fasta>
It happens in lots of channels.
answer_42 has quit [Remote host closed the connection]
<fasta>
I just don't understand the attitude which brings people to such acts.
Guest__ has joined #ruby
Guest__ is now known as RubNoob
hoelzro|away is now known as hoelzro
<apeiros_>
trolling or kicking trolls?
<fasta>
It seems that the Internet has reduced attention span too pathetic levels.
Rym has joined #ruby
<fasta>
er to
<Xeago>
I blame the ease of access to the internet
<fasta>
The result being that just because someone has an @ and has a different opinion one opts for the easy path.
<apeiros_>
fasta: if you want to discuss it, feel free to pm
etcetera has quit []
yshh has joined #ruby
<Xeago>
fasta: his statement was unsupportive, it made a questionable claim with no support whatsoever
thone has joined #ruby
pu22l3r has quit [Remote host closed the connection]
dankest has quit [Quit: Leaving...]
<fasta>
Xeago: I happen to agree with his statements.
<apeiros_>
I don't even want that discussion here. he was a troll. he got warned by a kick. he chose to be an idiot about it and got banned. end of discussion.
<Xeago>
correction, he made multiple such claims
timonv has joined #ruby
tbrock has quit [Ping timeout: 248 seconds]
gyre008 has quit [Remote host closed the connection]
huoxito has quit [Read error: Connection reset by peer]
caleb_io has joined #ruby
caleb_io has quit [Client Quit]
tbrock has joined #ruby
jjbohn has joined #ruby
<fasta>
apeiros_: I believe you were the one who started calling him/her a troll.
<apeiros_>
fasta: end. of. discussion. pm or you get kicked. I mean it.
<fasta>
All discussion is pointless, because in the end you just pick whatever button you want to press.
choffstein has quit [Remote host closed the connection]
etcetera has joined #ruby
fteem has quit [Remote host closed the connection]
yshh has quit [Ping timeout: 276 seconds]
timonv has quit [Ping timeout: 255 seconds]
thinkclay has quit [Quit: Leaving.]
Michae___ has quit [Read error: Connection reset by peer]
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
<Hanmac>
fasta he was realy a troll
main has quit [Ping timeout: 252 seconds]
<Gate>
fasta: he made a troll statement, accused someone of being ignorant for calling him a troll. While you could argue he was just arrogant and self-absorbed, sufficient arrogance is indistinguishable from troll
<fasta>
Gate: a troll is something completely different.
aquaranto has quit []
Michael_ has joined #ruby
<apeiros_>
can we end that topic? I don't want a troll to get a funeral pyre.
Kingy has quit [Quit: Leaving]
<Gate>
troll: is someone who posts inflammatory,[1] extraneous, or off-topic messages
<fasta>
"good. then this discussion is over.," --apeiros_. Clearly apeiros_ has a problem with talking to people.