jduan1981 has quit [Read error: Operation timed out]
timkohrumel has joined #ruby
Veejay has joined #ruby
<Spooner>
Hare, You are printing out the array object, not concatenating the strings. Try #{directions.join}
<fenec>
?
<fenec>
i would need to print the result later
sepp2k has joined #ruby
timkohrumel has quit [Read error: Operation timed out]
cofin has joined #ruby
gr4yscale has quit [Quit: Computer has gone to sleep.]
<ryan_turner>
In an API Im trying to use, there are two definitions for method "get_orders_product", both take two integer variables. Any way I can force one over the other?
<ryan_turner>
def get_orders_product(order_id,coupon_id) and def get_orders_product(order_id,product_id)
<Hare>
Spooner: you are right, I dont really understand why it worked.. but it did. Thanks
<Spooner>
fenec: result = "result:#{logv.round(2) if log}#{value.round(2)}%"
<fenec>
oooo
Apane has quit [Ping timeout: 268 seconds]
<fenec>
awesomeness Spooner
<fenec>
thanks
<fenec>
:)
milardovich has quit [Remote host closed the connection]
<Spooner>
Ah, it isn't right, since you want parens in the first case.
freerobby has joined #ruby
<fenec>
yes
<fenec>
:(
zeade has quit [Quit: Leaving.]
Mattix has joined #ruby
allanm_ has joined #ruby
danslo has quit [Quit: danslo]
cj3kim has quit [Remote host closed the connection]
<ryan_turner>
In an API Im trying to use, there are two definitions for method "get_orders_product", both take two integer variables. Any way I can force one over the other? def get_orders_product(order_id,coupon_id) and def get_orders_product(order_id,product_id)
cj3kim has joined #ruby
<popl>
ryan_turner: we saw your question. if someone can/wants to help then they will. you don't need to repeat yourself. :)
kofno has quit [Remote host closed the connection]
<ryan_turner>
Ok, in the past I've waited 30 minutes until those who chose not to help left and those who wanted to help did not scroll up.
allanm has quit [Ping timeout: 240 seconds]
freerobby has quit [Ping timeout: 246 seconds]
jdunck has quit [Quit: Computer has gone to sleep.]
DomKM has quit [Quit: Leaving.]
<aartist>
I installed rails with railinstaller, what is next?
<havenwood>
aartist: Uninstall Rails and take a look at Sinatra.
<havenwood>
aartist: j/k j/k
banjara has quit [Quit: Leaving.]
<aartist>
havenwood: ???
<havenwood>
aartist: Rails channel is #RubyOnRails, by the way.
banjara has joined #ruby
ravster has left #ruby [#ruby]
yshh has joined #ruby
<havenwood>
aartist: I was just kidding. But I am a big fan of Sinatra.
<Spooner>
ryan_turner, Depends. If they are on different modules/object, then you can specify those to choose it. Can't really tell otherwise, without more info.
<aartist>
I installed rails and typed 'bundle'. It says Bundler::GemFileNotFound
<Spooner>
aartist, No, you need to have a file, Gemfile, in the directory you run "bundle" in.
gr4yscale has joined #ruby
<ryan_turner>
Spooner, how would I specify to choose one over the other? They're both in the same class.
<havenwood>
Spooner: Oops, I didn't actually read what he typed. >.>
<fryguy>
ryan_turner: whichever one is defined last wins
nari has quit [Ping timeout: 256 seconds]
<ryan_turner>
I thought it was first?
<fryguy>
ryan_turner: no
<havenwood>
aartist: Gotta go into the dir of the app you cloned before you bundle.
<fryguy>
ryan_turner: all classes/objects in ruby are open, so they get overwritten as changes happen
<Spooner>
ryan_turner, They can't be in the same class. The other possibility is that the class has a single method, but based on the params, runs it differently.
<havenwood>
aartist: And not all apps have a Gemfile (if not, no bundle).
<aartist>
popl: thank you.. that makes it easy for me..
subbyyy has joined #ruby
mmitchell has quit [Remote host closed the connection]
amedeiros has quit [Ping timeout: 240 seconds]
srji has joined #ruby
syamajala has joined #ruby
amedeiros has joined #ruby
Mars__ has quit [Ping timeout: 252 seconds]
pskosinski has quit [Ping timeout: 240 seconds]
icecandy has quit [Remote host closed the connection]
dcunit3d has quit [Ping timeout: 252 seconds]
amedeiros has quit [Ping timeout: 260 seconds]
Guest78383 has quit [Ping timeout: 260 seconds]
amedeiros has joined #ruby
Hobogrammer has joined #ruby
arya has joined #ruby
sevenseacat has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
amedeiros has quit [Ping timeout: 260 seconds]
amedeiros has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
srji has quit [Ping timeout: 248 seconds]
DomKM has quit [Quit: Leaving.]
brianpWins has quit [Quit: brianpWins]
dcunit3d has joined #ruby
v0n has joined #ruby
pootler__ has quit [Ping timeout: 264 seconds]
pootler_ has quit [Ping timeout: 268 seconds]
emmanuelux has quit [Remote host closed the connection]
amedeiros has quit [Ping timeout: 246 seconds]
mikepack has joined #ruby
devoldmx has quit [Ping timeout: 260 seconds]
devoldmx3 has joined #ruby
amedeiros has joined #ruby
jerius has joined #ruby
IceDragon has quit [Quit: Space~~~]
awarner has quit [Remote host closed the connection]
victorbjelkholm has joined #ruby
krawchyk has quit [Remote host closed the connection]
fenec has quit [Remote host closed the connection]
skasio has joined #ruby
jonathanwallace has joined #ruby
Mattix has quit [Ping timeout: 246 seconds]
viszu has quit [Quit: Leaving.]
nari has joined #ruby
amedeiros has quit [Ping timeout: 240 seconds]
devoldmx3 has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
amedeiros has joined #ruby
blitz has quit [Quit: This computer has gone to sleep]
devyn has quit [Read error: Connection reset by peer]
fenec has joined #ruby
gildo has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
Mars__ has joined #ruby
amedeiros has quit [Ping timeout: 260 seconds]
gildo has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
cofin has quit [Quit: cofin]
amedeiros has joined #ruby
fermion has quit [Quit: Computer has gone to sleep.]
adkron has quit [Ping timeout: 240 seconds]
ffio_ has joined #ruby
Domon has joined #ruby
brianpWins has joined #ruby
lenswipe has joined #ruby
ffio has quit [Ping timeout: 246 seconds]
Katronix has quit [Quit: For Sale: Parachute. Only used once, never opened, small stain.]
ckrailo has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Ping timeout: 246 seconds]
devyn has joined #ruby
hattusili_III has joined #ruby
lenswipe_dev has quit [Ping timeout: 268 seconds]
havenwood has quit [Ping timeout: 240 seconds]
amedeiros has quit [Ping timeout: 252 seconds]
banjara has quit [Quit: Leaving.]
amedeiros has joined #ruby
dcunit3d has quit [Ping timeout: 240 seconds]
Guga_ has quit [Quit: ~]
Mattix has joined #ruby
pygospa has joined #ruby
sepp2k has quit [Quit: Leaving.]
yim_ has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Operation timed out]
Spooner has quit [Remote host closed the connection]
marcdel has joined #ruby
pygospa has quit [Client Quit]
Gues_____ has joined #ruby
Gues_____ is now known as Guest29187
tricon_ has joined #ruby
amedeiros has quit [Ping timeout: 268 seconds]
radic__ has joined #ruby
amedeiros has joined #ruby
cj3kim has joined #ruby
scruple has joined #ruby
chrishough has joined #ruby
chrishough has quit [Client Quit]
DomKM has joined #ruby
nari has quit [Ping timeout: 245 seconds]
radic_ has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby
dcunit3d has joined #ruby
Guest29187 has quit [Quit: Guest29187]
pygospa has joined #ruby
rgoodwin has joined #ruby
niklasb has quit [Ping timeout: 246 seconds]
amedeiros has quit [Ping timeout: 248 seconds]
amedeiros has joined #ruby
bionoid has joined #ruby
antuirno has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
scruple has left #ruby ["Leaving"]
cofin has joined #ruby
antuirno has joined #ruby
vlad_starkov has joined #ruby
Hare has quit [Quit: Page closed]
kenmaz has joined #ruby
lenswipe has left #ruby ["Leaving"]
amedeiros has quit [Ping timeout: 260 seconds]
guiocavalcanti has joined #ruby
bradhe has joined #ruby
amedeiros has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
tricon_ has quit [Read error: Connection reset by peer]
tricon_ has joined #ruby
bean has joined #ruby
Mars` has joined #ruby
amedeiros has quit [Ping timeout: 246 seconds]
tricon- has joined #ruby
amedeiros has joined #ruby
w0rldmaker has quit [Ping timeout: 248 seconds]
nari has joined #ruby
wmoxam has joined #ruby
julian-delphiki has joined #ruby
io_syl has joined #ruby
tricon_ has quit [Ping timeout: 255 seconds]
aetaric has quit [Quit: Got ZNC?]
amedeiros has quit [Ping timeout: 248 seconds]
amedeiros has joined #ruby
kenmaz has quit [Ping timeout: 264 seconds]
aetaric has joined #ruby
slyv has joined #ruby
slyv has quit [Max SendQ exceeded]
yoshie902a has joined #ruby
bean has quit [Ping timeout: 246 seconds]
cj3kim has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
robscomputer has joined #ruby
amedeiros has quit [Ping timeout: 246 seconds]
guiocava_ has joined #ruby
amedeiros has joined #ruby
anonymuse has quit [Remote host closed the connection]
guiocavalcanti has quit [Ping timeout: 268 seconds]
robscomputer has quit [Ping timeout: 246 seconds]
amedeiros has quit [Ping timeout: 260 seconds]
fierycatnet has joined #ruby
amedeiros has joined #ruby
brennanMKE has joined #ruby
jds has quit [Ping timeout: 264 seconds]
amedeiros has quit [Ping timeout: 268 seconds]
kofno has quit [Remote host closed the connection]
amedeiros has joined #ruby
kenmaz has joined #ruby
cantonic has quit [Quit: cantonic]
cj3kim has quit [Read error: Connection reset by peer]
kenmaz has quit [Read error: Connection reset by peer]
cj3kim_ has joined #ruby
kenmaz has joined #ruby
n_blownapart has joined #ruby
maroloccio has joined #ruby
lusory has quit [Ping timeout: 245 seconds]
DomKM has quit [Quit: Leaving.]
GeissT has joined #ruby
srji has joined #ruby
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amedeiros has quit [Ping timeout: 240 seconds]
niftylettuce has joined #ruby
<n_blownapart>
http://pastie.org/8065050 hey could anyone comment on why these two methods are different? the second one returns nothing whether the assertion passes or fails. thanks
snuglepuss has joined #ruby
amedeiros has joined #ruby
krz has joined #ruby
pootler_ has joined #ruby
<n_blownapart>
btw I haven't used tap before. ^^
kofno has joined #ruby
arya_ has joined #ruby
awarner has joined #ruby
<fryguy>
n_blownapart: returns or prints?
danshultz has joined #ruby
amedeiros has quit [Ping timeout: 255 seconds]
splud has joined #ruby
pothibo has quit [Quit: pothibo]
<splud>
quick Q: I have an environment variable I want to override a default in a ruby script.
amedeiros has joined #ruby
amedeiros has left #ruby [#ruby]
Zespre_ has quit [Quit: leaving]
lyanchih has quit [Quit: lyanchih]
elaptics`away has quit [Read error: Operation timed out]
<n_blownapart>
fryguy the first method is a book example and the second was from this irc to illustrate an alternative.
awarner has quit [Ping timeout: 268 seconds]
<n_blownapart>
thanks
pothibo has joined #ruby
pothibo has quit [Client Quit]
kofno has quit [Remote host closed the connection]
<n_blownapart>
heres the whole class MicroTest with the working method commented out: http://pastie.org/8065101
<fryguy>
n_blownapart: that's not helpful at all
<fryguy>
show us it not working
bklane has joined #ruby
Guest78383 has joined #ruby
<fryguy>
n_blownapart: also, please don't reinvent the unit testing wheel, things like minitest and rspec exist already, just use those
w0rldmaker has joined #ruby
<fryguy>
n_blownapart: i'm guessing the difference is probably the use of assert in the first assert_equal but not the second, based on the crazy call stack stuff you are doing
`brendan has joined #ruby
jds has joined #ruby
<n_blownapart>
no neither of these are mine its the book and an irc member fryguy hold on one sec I'm still confused
<fryguy>
n_blownapart: if it's not yours, all the more reason to NOT USE IT
ttt has joined #ruby
n_blownapart has quit [Read error: Connection reset by peer]
n_blowna_ has joined #ruby
radic__ has quit [Ping timeout: 246 seconds]
devyn has quit [Read error: Connection reset by peer]
ffio has joined #ruby
cantonic has joined #ruby
<n_blowna_>
fryguy: it's just an example from a book and I was trying to understand how the second one works in relation to the book example.
<fryguy>
the book example calls assert, the second one doesn't
syamajala has quit [Quit: leaving]
n_blowna_ is now known as n_blownapart
<n_blownapart>
ok thanks a lot fryguy ... will ponder
ssvo has joined #ruby
ffio has quit [Client Quit]
mduvall has joined #ruby
jdunck has joined #ruby
devyn has joined #ruby
gr4yscale has joined #ruby
dmiller has joined #ruby
_rrecio has quit [Ping timeout: 246 seconds]
n_blownapart has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
DrShoggoth has quit [Remote host closed the connection]
n_blownapart has joined #ruby
rezzack has quit [Quit: Leaving.]
jerius has quit [Quit: jerius]
<splud>
I ended up using val = ( ENV[] || default ).to_i / divisor
<splud>
default is an int, but ENV doesn't return one.
<n_blownapart>
fryguy if you have time one more question: what the hell precisely does tap do? I read a few definitions but it seems quite vague.
brennanMKE has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
splud has left #ruby [#ruby]
radic__ has joined #ruby
mansi has quit [Remote host closed the connection]
jimg has joined #ruby
mansi has joined #ruby
marcgg has quit [Read error: No route to host]
ttt has quit [Read error: Connection reset by peer]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mansi_ has joined #ruby
ttt has joined #ruby
danshultz has quit [Remote host closed the connection]
lyanchih has joined #ruby
awarner has joined #ruby
LennyLinux has quit [Remote host closed the connection]
Aaaarg has quit [Quit: Aaaarg]
mansi has quit [Read error: Connection reset by peer]
kenmaz has quit [Remote host closed the connection]
marcgg has joined #ruby
havenwood has joined #ruby
wallerdev has joined #ruby
ckrailo has joined #ruby
<Inside>
what's the most ruby way to iterate over an array that may change size during iteration?
<Inside>
ie: I've got a class which represents some fragments of data and want to write code that may assembly objects together into a new object
n_blownapart has quit [Remote host closed the connection]
<Inside>
ah no, nothing to do with arrays :)
<Inside>
erm, threads
<havenwood>
How might the array size then change before the array is iterated over?
kofno has quit [Remote host closed the connection]
<Inside>
Okay -- I'm parsing a PDF. PDFs paint the PDF by sending commands like "move(x,y)" "show_text("abc..")" When you see a sentence in a PDF, it may not be one call to show text -- it may be something like move_text(0,0) show_text("hell") move_text(100,0) show_text("o world")
eldariof has joined #ruby
<Inside>
I'm recording every show_text() event and storing the text as an axis-aligned bounding box. After recording everything, I want to join nearby boxes together
falood has quit [Remote host closed the connection]
<Inside>
I guess I could sort everything horizontally then vertically then move the data from one array to another
<Inside>
and while iterating over the old array, check if the previously inserted item into the new array is near the other text or something
antuirno has quit [Quit: Leaving]
fenec has quit [Remote host closed the connection]
<Inside>
crap.. I hope PDFs don't skip over " " characters in some instances by issuing a move_text() instead of a show_text(" ")
Guest78383 has quit [Remote host closed the connection]
<Inside>
I totally see why the OSS people bitch about PDFs
<Inside>
It's not a data storage format :(
falood has joined #ruby
DrShoggoth has joined #ruby
Zespre has joined #ruby
havenwood has quit [Remote host closed the connection]
x1337807x has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
cj3kim has joined #ruby
Gooder has joined #ruby
wmoxam has quit [Ping timeout: 248 seconds]
cj3kim has quit [Read error: Connection reset by peer]
sailias has quit [Ping timeout: 248 seconds]
cj3kim has joined #ruby
<bnagy>
Inside: are there no libs you can use for this?
x1337807x has quit [Client Quit]
<Inside>
nope :/
<bnagy>
writing your own pdf parser sounds like yak shaving
bean has joined #ruby
<RylaiC>
yak shaving, eh?
<Inside>
I'm using PDF::Reader and it provides the "high level" interface to this
<RylaiC>
ah, I see
<Inside>
it allows you to add callbacks for every text event
<Inside>
at least I'm not multiplying the text rendering matrix after every call by hand :p
osvico has quit [Ping timeout: 246 seconds]
L8D has joined #ruby
huoxito has quit [Quit: Leaving]
<L8D>
What method can I use to remove any elements from an array of a certain value
patbr0wn has joined #ruby
julian-delphiki has quit [Ping timeout: 255 seconds]
<Inside>
you could use select() and keep only the values you want
bradhe has quit [Remote host closed the connection]
<Inside>
ie: (0..10).select { |x| x > 5 }
mansi_ has quit [Remote host closed the connection]
<L8D>
That works. Is there a specific method to remove a specific item though?
<Retistic>
L8D: I'm wondering if you can simplify a method that just contains a case statement
GeekOnCoffee has joined #ruby
havenwood has joined #ruby
jlast has joined #ruby
djbkd has joined #ruby
freerobby has joined #ruby
b0oh has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
lewis has joined #ruby
<P1RATEZ>
trying to avoid using more than one, 1 dimensional array? playerdata = [a,b,c,d,e]; gamedata = [1,2,3,4,5]; for pdata in playerdata... first array index should be the reference for the second array index, so you can have many arrays storing more data
dhruvasagar has joined #ruby
devyn has joined #ruby
<P1RATEZ>
how about that approach L8
luckyruby has joined #ruby
awarner has quit [Ping timeout: 246 seconds]
aganov has joined #ruby
jds has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 240 seconds]
jds has joined #ruby
<L8D>
Well, that would work.
<L8D>
But, I think I got everything already working good.
w0rldmaker has joined #ruby
<L8D>
Except for a way to delete an item from the 3D array
<tobiasvl>
Boohbah: well do you know what recursive means?
girija has joined #ruby
niceguyjames has joined #ruby
awarner has joined #ruby
marr has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
Aaaarg has joined #ruby
<Boohbah>
...
jinie_ is now known as jinie
<tobiasvl>
Boohbah: sorry for asking, but the "decode" method in that pastie is just a regular method and asking "how do i make it recursive" from there is a... weird question :P
<tobiasvl>
what exactly do you need help with?
jds has joined #ruby
dcunit3d has joined #ruby
Mon_Ouie has joined #ruby
<tobiasvl>
do you have some recursive code you've started writing but you don't know where to go from there?
awarner has quit [Read error: Operation timed out]
yacks has quit [Ping timeout: 260 seconds]
<tobiasvl>
do you need help knowing where to begin? do you need to understand how to think in a recursive manner?
<tobiasvl>
etc
ffio has quit [Quit: WeeChat 0.4.1]
apod has joined #ruby
marcdel has quit [Ping timeout: 246 seconds]
dcunit3d has quit [Ping timeout: 260 seconds]
bionoid has joined #ruby
takezawa has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
swordsmanz has joined #ruby
marcdel has joined #ruby
takezawa has joined #ruby
mahmoudi_ has quit [Quit: Computer has gone to sleep.]
<Boohbah>
tobiasvl: is there a way to generalize the base conversion algorithm by passing the base as an argument to a single method? perhaps even doing away with the ENC array
sayan has quit [Ping timeout: 260 seconds]
jlast has joined #ruby
lewis has joined #ruby
<Boohbah>
to convert between base 10 and crockford's base 32 with a single method
nomenkun has joined #ruby
noname001 has joined #ruby
ferdev has quit [Quit: ferdev]
lkba has quit [Ping timeout: 268 seconds]
_Renegade has joined #ruby
airtonix has quit [Ping timeout: 264 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
Elhu has joined #ruby
browndawg has joined #ruby
pyrac has joined #ruby
Criztian has joined #ruby
_Renegade has quit [Ping timeout: 246 seconds]
P1RATEZ has quit [Quit: Read error: Text overflow]
Retistic has quit [Quit: Retistic]
jlast has quit [Ping timeout: 252 seconds]
tatsuya_o has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
MrZYX|off is now known as MrZYX
<marr>
I'm looking for a neat way to write that x is between 5 and 10, 5 < x < 10
<marr>
I've just found (5..10).cover?(x)
awarner has joined #ruby
Retistic has joined #ruby
camilasan has joined #ruby
airtonix has joined #ruby
maasha has joined #ruby
<maasha>
hi
<ChristianS>
marr: that means 5 <= x <= 10, but otherwise it's pretty neat
<maasha>
also, I want to use this special bitmap for alternative matching of chars (biology->DNA->weird rules)
airtonix has quit [Remote host closed the connection]
Al___ has joined #ruby
airtonix has joined #ruby
<maasha>
sevenseacat: the levenshtein.rb works just fine without the ambiguity part - which I am trying to include.
cabotto has joined #ruby
andikr has joined #ruby
<maasha>
sevenseacat: and I could paste MATCH() and the bitmap into the code in levenshtein.rb and it would work - but I have that a number of places already, so I want to go DRY.
<pontiki>
any chance of sharing the compile error?
buzzybron has quit [Ping timeout: 268 seconds]
railsbros_dirk has joined #ruby
apeiros has joined #ruby
<maasha>
Right. gist updated with compile error.
dv_ has quit [Ping timeout: 248 seconds]
stonevil has quit [Remote host closed the connection]
<sevenseacat>
you're getting errors on lines that don't appear in your gist?
dfdf has quit [Remote host closed the connection]
<maasha>
sevenseacat: yeah, I was wondering about that. Let me double check.
buzzybron1 has quit [Quit: Leaving.]
freerobby has joined #ruby
knut_ has joined #ruby
jlast has joined #ruby
<pontiki>
MATCH is a macro, separate compile space? does inline include a run through cpp? and are the inlines combined ?
knut_ is now known as teclator
bionoid has quit [Remote host closed the connection]
<maasha>
pontiki: those are the questions I guess :/
dv_ has joined #ruby
Shachar has quit [Quit: Leaving]
<maasha>
sevenseacat: I double checked the gist. The error line numbers are fucked up - probably a feature of 'inline'.
`MArceLL` has quit [Ping timeout: 246 seconds]
ntus1017 has joined #ruby
<pontiki>
i'm suffering from cheap tabletitis or i'd go look :>
Layke has quit [Ping timeout: 248 seconds]
Xeago has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
arya has quit [Ping timeout: 248 seconds]
<maasha>
darn :o)
slash_nick is now known as slash_shleep
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ferdev has quit [Ping timeout: 252 seconds]
ferdev has joined #ruby
awarner has joined #ruby
ferdev_ has joined #ruby
lyanchih has quit [Quit: lyanchih]
ffio has quit [Quit: WeeChat 0.4.1]
Elhu has quit [Ping timeout: 268 seconds]
jlast has quit [Ping timeout: 240 seconds]
danslo has joined #ruby
ferdev has quit [Ping timeout: 268 seconds]
vlad_starkov has joined #ruby
brennanMKE has quit [Remote host closed the connection]
camilasan has quit [Remote host closed the connection]
patbr0wn has joined #ruby
richiebkr has joined #ruby
jds has quit [Ping timeout: 264 seconds]
_br_ has joined #ruby
h8R has joined #ruby
popl has quit [Quit: "People remain what they are even if their faces fall apart."]
BLOODBATH is now known as halfie
patbr0wn has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
sayan has joined #ruby
arya has joined #ruby
jlast has joined #ruby
ghr has joined #ruby
ffio has joined #ruby
awarner has joined #ruby
razi has joined #ruby
tvw has joined #ruby
atno has joined #ruby
jibi has quit [Read error: Connection reset by peer]
srji has joined #ruby
jibi has joined #ruby
awarner has quit [Read error: Operation timed out]
cj3kim has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
poga has quit [Remote host closed the connection]
blaxter_ has quit [Ping timeout: 255 seconds]
postmodern has quit [Quit: Leaving]
Meatant has quit [Quit: free hat!]
Aaaarg has quit [Ping timeout: 260 seconds]
Zai00 has joined #ruby
banisterfiend has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 240 seconds]
Aaaarg has joined #ruby
Bry8Star{T2 has quit [Remote host closed the connection]
buzzybron1 has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
buzzybron has quit [Ping timeout: 252 seconds]
jds has joined #ruby
niceguyjames has joined #ruby
browndawg has left #ruby [#ruby]
ntus1017 has quit [Remote host closed the connection]
Bry8Star{T2 has joined #ruby
kasper has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
kasper has joined #ruby
KhalilC has quit [Ping timeout: 246 seconds]
relix has joined #ruby
jasonsmr has joined #ruby
amedeiros has joined #ruby
blaxter_ has joined #ruby
kasper has quit [Ping timeout: 260 seconds]
<Xeago>
does anyone know about destroyallsoftware.com and their quality?
amedeiros has quit [Ping timeout: 246 seconds]
teclator has quit [Ping timeout: 255 seconds]
atmosx has quit [Quit: And so the story goes…]
banisterfiend has quit [Remote host closed the connection]
lyanchih has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
amedeiros has joined #ruby
Guga_ has joined #ruby
umttumt has quit [Remote host closed the connection]
<apeiros>
Xeago: all I know about them is that I quite dislike the guy behind it. don't know about the quality of the screencasts, though.
lyanchih has joined #ruby
camilasan has joined #ruby
amedeiros has quit [Ping timeout: 246 seconds]
ntus1017 has joined #ruby
amedeiros has joined #ruby
awarner has joined #ruby
whowantstolivefo has joined #ruby
`MArceLL` has quit [Ping timeout: 246 seconds]
yshh has quit [Remote host closed the connection]
Judge has joined #ruby
<Judge>
moin @ all :)
amedeiros has quit [Ping timeout: 248 seconds]
jlast has joined #ruby
<MarcWeber>
Xeago: Well - I guess watching yourself what you spend most time on, joining the right chat room, asking how to do this faster is also very useful.
amedeiros has joined #ruby
<MarcWeber>
The difference is that you'll get many replies - and not just one :)
awarner has quit [Read error: Operation timed out]
<Xeago>
thanks apeiros, mind elaborating?
<Xeago>
MarcWeber: looking for some quick intro's mostly
freerobby has joined #ruby
<apeiros>
In this case I do. It's simply a personal thing.
<Xeago>
without the hand holding of blog posts
cj3kim has joined #ruby
multi_io has quit [Ping timeout: 252 seconds]
ffio has quit [Quit: WeeChat 0.4.1]
multi_io has joined #ruby
buzzybron1 has quit [Quit: Leaving.]
_Renegade has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
mikewintermute has joined #ruby
MrZYX is now known as MrZYX|off
jangoh has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
amedeiros has quit [Ping timeout: 240 seconds]
cj3kim has quit [Ping timeout: 246 seconds]
fixl has quit [Remote host closed the connection]
Giorgio has joined #ruby
amedeiros has joined #ruby
andikr has quit [Remote host closed the connection]
MrZYX|off is now known as MrZYX
multi_io has quit [Ping timeout: 264 seconds]
fixl has joined #ruby
jangoh has quit [Ping timeout: 264 seconds]
jangoh has joined #ruby
MrZYX is now known as MrZYX|off
redgirl has quit [Quit: This computer has gone to sleep]
amedeiros has quit [Ping timeout: 246 seconds]
lyanchih has quit [Quit: lyanchih]
amedeiros has joined #ruby
kasper has joined #ruby
mikewintermute has quit [Quit: mikewintermute]
MrZYX|off is now known as MrZYX
umttumt has joined #ruby
jlast has quit [Ping timeout: 252 seconds]
LennyLinux has joined #ruby
fermion has joined #ruby
amedeiros has quit [Ping timeout: 252 seconds]
maasha has quit [Quit: Page closed]
amedeiros has joined #ruby
SparkyFlary has joined #ruby
SparkyFlary has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
corehook has joined #ruby
`MArceLL` has joined #ruby
sayan has quit [Ping timeout: 240 seconds]
devyn has joined #ruby
amedeiros has quit [Ping timeout: 240 seconds]
pskosinski has joined #ruby
amedeiros has joined #ruby
Zai00 has quit [Quit: Zai00]
guiocava_ has quit [Remote host closed the connection]
guiocavalcanti has joined #ruby
multi_io has joined #ruby
devyn has quit [Client Quit]
devyn has joined #ruby
browndawg has joined #ruby
amedeiros has quit [Ping timeout: 264 seconds]
amedeiros has joined #ruby
ybart has quit [Quit: ybart]
pontiki has quit [Ping timeout: 248 seconds]
devyn has quit [Client Quit]
yacks has quit [Quit: Leaving]
awarner has joined #ruby
guiocavalcanti has quit [Ping timeout: 248 seconds]
yacks has joined #ruby
richiebkr has quit [Ping timeout: 248 seconds]
devyn has joined #ruby
robustus has quit [Ping timeout: 248 seconds]
sevenseacat has joined #ruby
amedeiros has quit [Ping timeout: 268 seconds]
pontiki has joined #ruby
amedeiros has joined #ruby
manutter has joined #ruby
robustus has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
ToApolytoXaos has joined #ruby
sepp2k has joined #ruby
awarner has quit [Ping timeout: 255 seconds]
amedeiros has quit [Ping timeout: 252 seconds]
amedeiros has joined #ruby
teclator has joined #ruby
pothibo has joined #ruby
Kar- has joined #ruby
pothibo has quit [Client Quit]
dangerousdave has quit [Read error: Connection reset by peer]
jlast has joined #ruby
dangerousdave has joined #ruby
Retistic has quit [Quit: Retistic]
Xeago has quit [Remote host closed the connection]
amedeiros has quit [Ping timeout: 264 seconds]
lkba has quit [Ping timeout: 264 seconds]
verto has joined #ruby
amedeiros has joined #ruby
umttumt has quit [Remote host closed the connection]
zai has quit [Read error: Connection reset by peer]
andikr has joined #ruby
amedeiros has quit [Ping timeout: 255 seconds]
Domon has quit [Remote host closed the connection]
Spooner has joined #ruby
amedeiros has joined #ruby
redgirl has joined #ruby
guiocavalcanti has joined #ruby
Amirh has joined #ruby
vlad_starkov has joined #ruby
buibex has joined #ruby
Amirh has left #ruby [#ruby]
ldnunes has joined #ruby
Aaaarg has quit [Ping timeout: 264 seconds]
<Boohbah>
>> Hash[%w(W B).map{|i| %w(K Q R B N P).map{|j| i+j}}.flatten.zip (9812..9823).map{|i| [i].pack('U*')}]
<ericwood>
actually 90% of the reason I read twitter is to stay up to date on what Aaron Patterson's cats are up to
<sevenseacat>
lol
<ericwood>
I wish I was kidding
<banisterfiend>
ericwood: basically gary was trying to pull 'rank' over charliesome because he's older, but i can guarantee charliesome has developed more interesting/difficult software at 18 than gary has or will in his lifetime
<ericwood>
banisterfiend: yeah, I'm siding with charliesome for sure
<sevenseacat>
charliesome is a smart dood.
<ericwood>
yeah I think he's a better dev in general
<sevenseacat>
i didnt know he was only 18, thats awesome.
<ericwood>
but you can't keep me from enjoying reading Gary's tweets with him being beligerent!
rh1n0 has quit [Quit: -- I'm out --]
<ericwood>
you know who I miss on twitter? @jcoglan
<ericwood>
he deleted all of his tweets and just lurks now
<tobiasvl>
i miss @_why
pedda has joined #ruby
<ericwood>
:'(
senayar has quit [Ping timeout: 268 seconds]
<ericwood>
don't go there, man, I can't handle so much emotion in the morning
<tobiasvl>
:(
<tobiasvl>
sorry
amedeiros has quit [Ping timeout: 246 seconds]
bklane has joined #ruby
<ericwood>
so many feels
bean__ has joined #ruby
amedeiros has joined #ruby
buibex has joined #ruby
t6d has joined #ruby
timkohrumel has joined #ruby
senayar has joined #ruby
<Kar->
where would be the best place to find a list of predefined exceptions
<banisterfiend>
Kar-: quickref probably
<Kar->
and maybe some explanation of which exceptions to use in certain circumstances
<banisterfiend>
Kar-: google zenspider quickref
<Kar->
thanks
<Kar->
wow this is awesome
<Kar->
top top banisterfiend thank you
<Kar->
top tip even
Giorgio has quit [Read error: Connection timed out]
<ericwood>
I prefer to just ask zenspider directly :P
amedeiros has quit [Ping timeout: 240 seconds]
katherinem13 has quit [Quit: leaving]
katherinem13 has joined #ruby
amedeiros has joined #ruby
atno has quit [Remote host closed the connection]
enebo has joined #ruby
hydrozen has joined #ruby
<Kar->
one other question
io_syl has joined #ruby
Dekade has joined #ruby
gcbirzan has joined #ruby
<ericwood>
only one question per customer plz
<ericwood>
;)
timkohrumel has quit [Ping timeout: 255 seconds]
<Kar->
(i only dabble in ruby so sorry if these is stupid qn), can i go raise FooException.new if blah.empty?
<Kar->
or raise FooException if blah.empty?
tonini has joined #ruby
<ericwood>
the latter, I believe
<gcbirzan>
So, trying to get bundle working, but it's getting stuck at Fetching source index for http://rubygems.org, with no indication of progress, even with --verbose. How can I debug that crap?
<apeiros>
Kar-, ericwood: both are valid
<apeiros>
the latter is usually the preferred form
<ericwood>
less characters
<apeiros>
raise ExceptionClass, "exception message" # exception message is optional
<apeiros>
I do use `raise ExceptionClass.new(…)` when I have a custom exception class with additional meta-data.
sarkis has joined #ruby
atno has joined #ruby
<Kar->
ok cheers, i'll play around with it just wasn't sure which was the better 'style'
tvw has quit []
Apane has joined #ruby
amedeiros has quit [Ping timeout: 268 seconds]
cr3 has joined #ruby
devoldmx has joined #ruby
amedeiros has joined #ruby
<cr3>
is there an if statement I could put at the bottom of a ruby module so that some code only gets called when the module is executed directly?
teclator has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
w0rldmaker has joined #ruby
cofin has quit [Quit: cofin]
timkohrumel has joined #ruby
awarner has joined #ruby
Zai00 has quit [Read error: Connection reset by peer]
<banisterfiend>
cr3: what does 'executed directly' mean
<banisterfiend>
?
burlyscudd has joined #ruby
devoldmx3 has quit [Ping timeout: 240 seconds]
<gcbirzan>
ruby foo.rb
<cr3>
banisterfiend: it's a module that should normally be required but I would sometimes like to call it directly with ruby /path/to/module.rb
<ericwood>
I don't think you should do that
<gcbirzan>
I guess. I mean, no idea how to do it, I know fuck all about ruby, but I'm pretty sure he wants the equivalent of the if __name__ = '__main__' in python.
<cr3>
ericwood: this is sometimes done in python so that a file is self contained, unit tests and all at the bottom of the module
robbyoconnor has joined #ruby
<cr3>
gcbirzan: you are perceptive!
<banisterfiend>
cr3: ah ok: if $0 == __FILE__
vlad_starkov has quit [Remote host closed the connection]
<ericwood>
ooh neat
<ericwood>
I like that
burlyscudd has quit [Client Quit]
<gcbirzan>
cr3: I no rite
<gcbirzan>
If I was perceptive enough to manage to run bundle install... :(
cmarques has joined #ruby
<gcbirzan>
Oh. yay. 15 minutes it finished...
<ericwood>
sometimes things are slow
<ericwood>
rubygems.org has been slow on occasion
<cr3>
gcbirzan: all software is a pain, especially that which we write :)
jonathanwallace has quit [Ping timeout: 268 seconds]
Xeago has joined #ruby
workmad3 has joined #ruby
subbyyy has quit [Ping timeout: 264 seconds]
stkowski has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
v0n has quit [Read error: Operation timed out]
marcdel has quit [Ping timeout: 246 seconds]
jasonsmr has joined #ruby
stkowski has left #ruby [#ruby]
<jasonsmr>
hello ruby channel
Apane has joined #ruby
<MrZYX>
hi
myappleguy has joined #ruby
<jasonsmr>
Question what kind of language is this? it is ruby right I dont know ruby by the way>> http://sprunge.us/fiHW
<MrZYX>
yes, that's ruby
<jasonsmr>
Im looking for a way to configure a ruby program, and its totaly confusing me
jduan1981 has joined #ruby
<jasonsmr>
this looks to me exactly like a configuration file but its in a array form?
<MrZYX>
do you have any programming experience at all?
fomatin has quit [Quit: Computer has gone to sleep.]
<terrellt>
jasonsmr: That's not a configuration file for a whole program - it's an initializer for an object which you're passing a configuration to.
mityaz has quit [Quit: See ya!]
<jasonsmr>
and set as a connection = Fog::Compute.new
<jasonsmr>
yes thats what I mean well the fog libary anyway
<jasonsmr>
is not a program or at least thats what Im told
brennanMKE has quit [Remote host closed the connection]
<terrellt>
jasonsmr: You're making a connection variable which is an instance of Fog::Compute with the settings inside the hash (the things inside {}). If you want to mess with this stuff you should go find an interactive ruby tutorial online - there are plenty.
v0n has joined #ruby
bionoid has joined #ruby
<jasonsmr>
I allright, I suppose
<jasonsmr>
TY
marcdel has joined #ruby
DanKnox is now known as DanKnox_away
kirun has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
RORgasm_ has joined #ruby
robscomputer has quit [Read error: Connection reset by peer]
Al___ has quit [Quit: Al___]
robscomputer has joined #ruby
RORgasm_ is now known as RORgasm
Giorgio has quit [Ping timeout: 246 seconds]
lucianosousa has quit [Quit: lucianosousa]
sayan has joined #ruby
tiripamwe has quit [Ping timeout: 246 seconds]
milardovich has joined #ruby
scriptde1il has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
deallocate has quit [Quit: leaving]
bionoid has quit [Remote host closed the connection]
harrymoreno has joined #ruby
codesoda has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
Apane has quit [Ping timeout: 246 seconds]
ffio_ has quit [Quit: WeeChat 0.4.1]
zmike has joined #ruby
chrishough has quit [Ping timeout: 264 seconds]
Mars__ has joined #ruby
Mars1 has joined #ruby
havenwood has quit [Remote host closed the connection]
scriptde1il has quit [Quit: leaving]
zmike has quit [Client Quit]
mayankk has quit [Remote host closed the connection]
sideshowcoder has quit [Ping timeout: 240 seconds]
wmoxam has joined #ruby
dangerousdave has quit [Quit: Leaving...]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
<jasonsmr>
thanks found a better example
skogis has joined #ruby
srji has joined #ruby
tiripamwe has joined #ruby
Aaaarg has quit [Ping timeout: 276 seconds]
Shirakawasuna has joined #ruby
brennanMKE has joined #ruby
srji_ has quit [Ping timeout: 248 seconds]
DanKnox_away is now known as DanKnox
gr4yscale has joined #ruby
Aaaarg has joined #ruby
stkowski has joined #ruby
sideshowcoder has joined #ruby
sayan has quit [Read error: Connection reset by peer]
brennanMKE has quit [Remote host closed the connection]
bionoid has joined #ruby
myappleguy has left #ruby [#ruby]
ffio has joined #ruby
sayan has joined #ruby
krisfremen has quit [Ping timeout: 260 seconds]
stkowski has left #ruby [#ruby]
cofin has joined #ruby
havenwood has joined #ruby
havenwood has quit [Remote host closed the connection]
canton7 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<nyuszika7h>
is there a better way to initialize variables than `a, b, c, d = nil, nil, nil, nil`?
<MrZYX>
can you give a larger example where that would be useful?
<nyuszika7h>
MrZYX: one sec
fermion has quit [Quit: Computer has gone to sleep.]
cj3kim has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<Spooner>
nyuszika7h, In that case: a = b= c= d = nil
<nyuszika7h>
ah
vlad_starkov has joined #ruby
<MrZYX>
still I never had the need to do something like that
<nyuszika7h>
vim doesn't like it...
<nyuszika7h>
it messes up the indentation
<popl>
vim has shit ruby support
<nyuszika7h>
ikr
<popl>
To be fair I have not looked around for any ruby.vim or anything though.
<popl>
I just started programming in ruby.
jonathanwallace has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axl_ has joined #ruby
vlad_sta_ has joined #ruby
relix has joined #ruby
fermion has joined #ruby
dmiller has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<jasonsmr>
Question in calling a configuration with somethingin it like >> connection = Fog::AWS::EC2.new( :something => @else :somethingelse => @else)
bothra has quit [Read error: Connection reset by peer]
bothra has joined #ruby
<jasonsmr>
what do I do to say call a diffrent configuration = ?? maybe in the file put configuration0 = and also have configuration1 =
<MrZYX>
again, what's your previous programming background?
dougireton has joined #ruby
<jasonsmr>
like that ^ ; but question is how would I call that particular configuration0 or configuration1 on a wim?
<jasonsmr>
why do you ask again
patbr0wn has quit [Ping timeout: 256 seconds]
<jasonsmr>
It straight question.
relix has quit [Client Quit]
<MrZYX>
no, it's not
<Spooner>
That is extremely basic programming question. You really need to get some experience before you ask at every, every "trivial" problem.
<jasonsmr>
well, I lament I know some python, some C and basic script
theRoUS has quit [Quit: Leaving]
<MrZYX>
so, configuration0 is just a local variable
<jasonsmr>
thats whole background I was trained as A CAD developer not a programmer I picked up programming 4 years ago
<jasonsmr>
yes configuration0 is a variable with other variables a script
<MrZYX>
configuration = Fog::AWS.:EC2.new creates a new object of the type Fog::AWS.:EC2 and assigns it to that variable
<jasonsmr>
sp/a script/in a script
mikewintermute has joined #ruby
<MrZYX>
how those local variables are used is not defined in ruby, so we can't answer what would work based on that few lines
<jasonsmr>
yes of that type creating a new variable
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mike--- has joined #ruby
LennyLinux has quit [Remote host closed the connection]
<jasonsmr>
Better question , if connection0 verses connection1 wer needed, how is this scriped called?
<jasonsmr>
I gess if I say create a ruby script, I just need to read on how to deal with calling scripts ;P soory it is too simple now that I think about it
wolcanus has joined #ruby
Davey has joined #ruby
Mars__ has quit [Ping timeout: 255 seconds]
alex` has joined #ruby
Mars1 has quit [Ping timeout: 256 seconds]
_Andres has joined #ruby
Apane has joined #ruby
x1337807x has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
browndawg has left #ruby [#ruby]
chichou has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
LennyLinux has joined #ruby
milardovich has quit [Quit: Leaving]
x1337807x has quit [Client Quit]
<jasonsmr>
I was thinking a bout this >> ./your_program.rb configure0 or ./your_program.rb configure1 where ./your_program.rb some_param
<jasonsmr>
you see the question Im getting at now?
browndawg has joined #ruby
burlyscudd has joined #ruby
denver has quit [Remote host closed the connection]
_theriffer_ has joined #ruby
marcdel has joined #ruby
Guest38670 has quit [Quit: No Ping reply in 180 seconds.]
Shubuntu has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
ramblex has quit [Remote host closed the connection]
srji has quit [Ping timeout: 248 seconds]
browndawg has quit [Client Quit]
browndawg has joined #ruby
djbkd has joined #ruby
jaimef has joined #ruby
browndawg has quit [Client Quit]
mikewintermute has quit [Quit: mikewintermute]
browndawg has joined #ruby
browndawg has quit [Client Quit]
browndawg has joined #ruby
<pontiki>
but make surento pass a block...
mikewintermute has joined #ruby
akells` has joined #ruby
kasper has joined #ruby
codecop has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
browndawg has quit [Client Quit]
browndawg has joined #ruby
browndawg has quit [Client Quit]
browndawg has joined #ruby
browndawg has quit [Client Quit]
srji has joined #ruby
browndawg has joined #ruby
browndawg has quit [Client Quit]
browndawg has joined #ruby
Retistic has joined #ruby
ffio has quit [Quit: WeeChat 0.4.1]
jonahR has quit [Read error: Connection reset by peer]
browndawg has quit [Client Quit]
browndawg has joined #ruby
kasper has quit [Ping timeout: 240 seconds]
Mars__ has joined #ruby
jonahR has joined #ruby
bionoid has quit [Read error: Connection reset by peer]
Mars1 has joined #ruby
browndawg has quit [Client Quit]
browndawg has joined #ruby
browndawg has quit [Client Quit]
bionoid has joined #ruby
browndawg has joined #ruby
browndawg has quit [Client Quit]
browndawg has joined #ruby
tiripamwe has quit [Ping timeout: 246 seconds]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
bionoid has quit [Remote host closed the connection]
popl has quit [Quit: "People remain what they are even if their faces fall apart."]
browndawg has quit [Client Quit]
browndawg has joined #ruby
ivanoats has quit [Remote host closed the connection]
rrecio has joined #ruby
browndawg has quit [Client Quit]
Astralum has joined #ruby
stkowski has joined #ruby
khismetix has joined #ruby
browndawg has joined #ruby
browndawg has quit [Client Quit]
ffio has joined #ruby
pskosinski has quit [Ping timeout: 240 seconds]
_rrecio has joined #ruby
browndawg has joined #ruby
browndawg has quit [Read error: Connection reset by peer]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pskosinski has joined #ruby
mikewintermute has quit [Quit: mikewintermute]
browndawg has joined #ruby
icole is now known as dodo_
dodo_ is now known as dodosan
rrecio has quit [Ping timeout: 246 seconds]
browndawg has quit [Client Quit]
krainboltgreene has joined #ruby
browndawg has joined #ruby
hamush has joined #ruby
browndawg has quit [Client Quit]
babykosh has joined #ruby
browndawg has joined #ruby
nalaginrut has joined #ruby
babykosh has quit [Client Quit]
dmiller has quit [Remote host closed the connection]
browndawg has quit [Client Quit]
Jackneill has quit [Ping timeout: 246 seconds]
browndawg has joined #ruby
browndawg has quit [Client Quit]
stkowski has left #ruby [#ruby]
srji has quit [Ping timeout: 248 seconds]
srji_ has joined #ruby
<hamush>
is rdoc 4.0.1 incompatible with ruby 1.8.7? i'm noticing that after i install it, ri crashes on startup because it can't find the Encoding class, which i think is exclusive to ruby 1.9
wolcanus has quit [Remote host closed the connection]
Guest81086 is now known as nitrodex
browndawg has joined #ruby
browndawg has quit [Client Quit]
browndawg has joined #ruby
cjs226 has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
synthetix has joined #ruby
wolcanus has joined #ruby
tiripamwe has joined #ruby
chile_andes has joined #ruby
brennanMKE has joined #ruby
browndawg has quit [Client Quit]
browndawg has joined #ruby
angusiguess has quit [Ping timeout: 276 seconds]
bradhe has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
browndawg has quit [Client Quit]
v0n has quit [Read error: Operation timed out]
browndawg has joined #ruby
ehaliewicz has joined #ruby
fierycatnet has joined #ruby
Mars__ has quit [Ping timeout: 240 seconds]
w0jt has joined #ruby
Apane has quit [Ping timeout: 264 seconds]
sepp2k has quit [Read error: Operation timed out]
Mars1 has quit [Ping timeout: 240 seconds]
w0jt has quit [Quit: leaving]
browndawg has quit [Client Quit]
khismetix has quit [Quit: Computer has gone to sleep.]
Godd2 has joined #ruby
browndawg has joined #ruby
<Godd2>
Is there a way to assert that a method was called with test-unit?
chrishough has quit [Quit: chrishough]
browndawg has quit [Client Quit]
browndawg has joined #ruby
<apeiros>
Godd2: that's what mocks are for
<apeiros>
(unlike stubs)
Bry8Star{T2 has quit [Remote host closed the connection]
falkoner has joined #ruby
DomKM has joined #ruby
devoldmx3 has joined #ruby
browndawg has quit [Read error: Connection reset by peer]
<pontiki>
mocks and stubs and doubles, oh my!
browndawg has joined #ruby
srji_ has quit [Ping timeout: 248 seconds]
wolcanus has quit [Remote host closed the connection]
<codesoda>
do people still use test-unit?
<workmad3>
pontiki: don't forget about dummies, fakes and spies ;)
troker has joined #ruby
rlb3 has quit [Quit: rlb3]
<Godd2>
codesoda: Im just learning Ruby and I figured learning how to Unit Test was a good idea.
ehaliewi` has joined #ruby
g3orge has joined #ruby
<codesoda>
Godd2: fair enough
<workmad3>
codesoda: sure, test-unit is just some extra stuff on top of minitest nowadays though
<Godd2>
apeiros: Thanks for the response, I don't know what a mock is, but it will be the next thing on my list to learn :)
devoldmx27 has joined #ruby
Mars__ has joined #ruby
rezzack has joined #ruby
Mars1 has joined #ruby
viszu has joined #ruby
<troker>
Hey all, trying to get a ruby backup script to work but Im running into errors. Im quite the Ruby noob - Can anyone help me troubleshoot this? http://pastebin.com/raw.php?i=iBRducW2
devoldmx has quit [Ping timeout: 255 seconds]
mantas322 has joined #ruby
<mantas322>
Hi guys
<mantas322>
I have an object
<MrZYX>
troker: zfstools is a gem or...?
<mantas322>
which im doing .sum on an attribute within it
<g3orge>
how can I iterate on top of two arrays idiomatically? like .each do but for two arrays. so I can for example add the a[i] and the b[i] to the c[i]
<mantas322>
does the to_a change the float type maybe?
<yxhuvud>
troker: what version of ruby do you have?
<workmad3>
mantas322: gist some code
<troker>
MrZYX: zsh: command not found: gem
<workmad3>
mantas322: but generally, .to_a is for getting an array
devoldmx3 has quit [Ping timeout: 246 seconds]
<troker>
yxhuvud: ruby19
cantonic has quit [Quit: cantonic]
<yxhuvud>
g3orge: #zip
<bricker>
What do you prefer: /(\d\d?) (\d\d)/ ...or... /(\d{1,2}) (\d{2})/
<apeiros>
Godd2: a mock is a test double. it replaces a real object. you state what methods should be called and how often, and what it should return for those.
<apeiros>
Godd2: take a look at e.g. RR
radic__ has quit [Read error: Connection reset by peer]
<apeiros>
bricker: for such short ones, \d\d? etc.
burlyscudd has quit [Quit: Leaving.]
<MrZYX>
troker: it looks like you compiled ruby from source? make sure /usr/local/bin is in your $PATH
<yxhuvud>
>> [1,2,3].zip([4,5,6]) do |a,b|; p a; p b; end
tethra has quit [Remote host closed the connection]
<troker>
MrZYX: yep, just compiled from devel/ruby-gems and it all works! thanks!
huoxito has quit [Quit: Leaving]
sambao21 has joined #ruby
srji has joined #ruby
lyne_ has joined #ruby
khismetix has joined #ruby
<Godd2>
thanks apeiros :)
Nisstyre has quit [Quit: Leaving]
cantonic has joined #ruby
ivanoats has joined #ruby
Aaaarg has quit [Ping timeout: 276 seconds]
<Godd2>
I'm having trouble googling the meaning of "hook". Does anyone know any resources than can explain it? I have literally (and I mean that literally) no clue what "hook" or "to hook something" means in programming or how it applies to Ruby...
Davey has quit [Quit: Computer has gone to sleep.]
dmiller has joined #ruby
dcunit3d has joined #ruby
TakumoKatekari has quit [Ping timeout: 245 seconds]
<Godd2>
Well I feel dumb. Taking the ruby part out of the google queries got me clear answers.
brianpWins has quit [Quit: brianpWins]
Davey has joined #ruby
sambao21 has quit [Ping timeout: 256 seconds]
atyz has joined #ruby
chile_andes has quit [Ping timeout: 255 seconds]
burlyscudd has quit [Read error: Connection reset by peer]
Aaaarg has joined #ruby
burlyscudd has joined #ruby
ffio has quit [Quit: WeeChat 0.4.1]
devoldmx has joined #ruby
mansi has joined #ruby
mansi has quit [Remote host closed the connection]
<Godd2>
How is a hook any different from a method?
baordog has quit [Read error: Connection reset by peer]
<Godd2>
That is, why give it a different name if what they do is what methods do?
<apeiros>
Godd2: "hook" is a concept
<burlyscudd>
Godd2: hook is a technique/concept
<apeiros>
using a method to provide a hook is an implementation
geekbri has quit [Remote host closed the connection]
devoldmx27 has quit [Ping timeout: 246 seconds]
<burlyscudd>
Godd2: like events do things, and you provide "hooks" so that when an event fires, it calls some method (for example)
<apeiros>
i.e., why call it a coke, if it's just something to drink?
<burlyscudd>
so you could say that said method is hooked into that event
RonScagz has joined #ruby
pipework has quit [Remote host closed the connection]
<Godd2>
ok, so any time method_a is called inside method_b, method_a is considered a hook?
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
associated code please
_br_ has quit [Ping timeout: 246 seconds]
<fierycatnet>
what?
EPIK has joined #ruby
senayar has joined #ruby
<apeiros>
how do you think I'll figure what went wrong? read your mind to see what code you wrote? o0
<apeiros>
a useful problem description in case of an error consists of the actual code, the exception you get, and a description of what you expect to happen
<fierycatnet>
you said switch from at_xpath to xpath, the code is the same other than that
<nyuszika7h>
is this normal? /opt/bots/Aelita/scripts/ruby/nrix/lib/nrix.rb:26:in `eof?': Connection reset by peer (Errno::ECONNRESET)
zz_pinage404 is now known as pinage404
<apeiros>
fierycatnet: I don't want to have to assume what parts you changed. the only sane thing is showing the code.
<lurch_>
if i want to start a server before running some rspec tests and stop it after i'm done, where would i typically need to do that? I can add a 'before' and 'after' block, but then I would have to repeat it in every spec file. I would rather have the server start once before all tests and stop after all tests have run
axl_ has joined #ruby
<banisterfiend>
Hanmac: what did u think of the recent adventure time
richiebkr has joined #ruby
dcunit3d has joined #ruby
julian-delphiki has quit [Ping timeout: 268 seconds]
<Godd2>
apeiros: ok I think I understand hooks now thanks to Metaprogramming Ruby. They're special bits of code you can call when certain events (like object creation or method undefining) occurs.
<banisterfiend>
Godd2: for real, but ruby hooks are kind of feeble as you can only define one, and you have to be careful about maintaining previous hooks, etc
<banisterfiend>
as a result they're not really used except in the craziest libraries
<Godd2>
so in other words, don't worry about them for now
sambao21 has quit [Ping timeout: 256 seconds]
<banisterfiend>
right
lurch_ has quit [Quit: lurch_]
mansi has joined #ruby
<Godd2>
cool, thanks :)
failshell has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
wmoxam has joined #ruby
_Andres has joined #ruby
canton7 has joined #ruby
toddWork__ has quit [Quit: toddWork__]
aboudreault has quit [Ping timeout: 256 seconds]
TheRealPygo is now known as pygospa
<Apane>
I've been meaning to use RVM but never got around to installing it. If I decide to install it, will It affect any prior ruby installations? e.g. having to re-install ruby 2.0? or is it more or less an add-on. The doc doesn't really make it clear.
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
froy has quit [Quit: kablam!]
sailias has joined #ruby
aalmenar has quit [Quit: No Ping reply in 180 seconds.]
ereslibre has joined #ruby
ereslibre has joined #ruby
Meatant has joined #ruby
aalmenar has joined #ruby
aalmenar has quit [Changing host]
aalmenar has joined #ruby
cj3kim has quit [Remote host closed the connection]
moos3 has quit [Quit: Computer has gone to sleep.]
<Mon_Ouie>
No, it doesn't affect the rest of your setup. If you run "rvm use system", you will be able to use your regular ruby version as before.
mansi has quit [Ping timeout: 240 seconds]
teddyp1cker has quit [Remote host closed the connection]
dougireton has joined #ruby
fuzzyhorns has quit [Remote host closed the connection]
cj3kim has joined #ruby
snearch has quit [Quit: Verlassend]
<banisterfiend>
Mon_Ouie: how did your presentation go?
cr3 has quit [Quit: leaving]
Davey has quit [Quit: Computer has gone to sleep.]