fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
DrShoggoth has joined #ruby
bradleyprice has quit [Remote host closed the connection]
r1ddl3r has quit [Quit: Leaving.]
bradleyprice has joined #ruby
sneakyness_wk has quit [Quit: bro]
lggr has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
csmrfx has left #ruby ["ciao"]
sarmiena_ has quit [Quit: sarmiena_]
JetAway has joined #ruby
CaptainJet has quit [Disconnected by services]
JetAway is now known as CaptainJet
awarner has joined #ruby
lggr has joined #ruby
erichmenge has joined #ruby
iamjarvo has joined #ruby
<bricker> When I define a class inside of another class, like class Audio; class Uploaded; end; end;, it's at Audio::Uploaded. Has "Audio" been turned into a module? Can I do module Audio in another file, or does it have to always be class Audio?
murz has joined #ruby
newtnik has joined #ruby
r1ddl3r has joined #ruby
davidcelis has joined #ruby
rakl has quit [Quit: sleeping]
lggr has quit [Ping timeout: 256 seconds]
slainer68 has joined #ruby
glyytchy has quit [Quit: Leaving...]
bradleyprice has quit [Remote host closed the connection]
<blazes816> bricker, no, it is not a module. it's still a class
cburyta has quit [Remote host closed the connection]
riley526 has joined #ruby
<blazes816> the class simply contains a new constant, who's value is the new class (Uploaded)
Tearan has joined #ruby
lggr has joined #ruby
cburyta has joined #ruby
rubious has quit [Remote host closed the connection]
ckrailo has quit [Quit: Computer has gone to sleep.]
bradyl0ve has joined #ruby
yshh has joined #ruby
CJNE has joined #ruby
rubious has joined #ruby
sarmiena_ has joined #ruby
iamjarvo has quit [Ping timeout: 245 seconds]
slainer68 has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 260 seconds]
Coad has quit [Ping timeout: 276 seconds]
eignerchris has quit [Remote host closed the connection]
rakl has joined #ruby
devtro has quit [Quit: devtro]
newtnik has quit [Quit: Leaving]
lggr has joined #ruby
mikepack has quit [Remote host closed the connection]
CJNE has quit [Ping timeout: 252 seconds]
AndChat- has joined #ruby
<bricker> blazes816: I see. So namespace (Audio::) has nothing to do with inheritance, subclasses, etc.
Banistergalaxy has quit [Ping timeout: 260 seconds]
Puck6633 has joined #ruby
murz has quit [Quit: Leaving...]
Tearan has quit [Quit: Sleepy Badger....]
tommyvyo has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
lggr has quit [Ping timeout: 246 seconds]
daslicious has joined #ruby
tommyvyo has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
irleif has joined #ruby
cakehero has joined #ruby
murz has joined #ruby
uris has joined #ruby
Takehiro has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
yshh has quit [Remote host closed the connection]
lggr has joined #ruby
awarner has quit [Ping timeout: 240 seconds]
thinkclay has quit [Quit: Leaving.]
drago757 has joined #ruby
Takehiro has quit [Ping timeout: 260 seconds]
erichmenge has quit [Quit: Be back later]
awarner has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
h4mz1d has joined #ruby
gmci has quit [Ping timeout: 248 seconds]
<ged> bricker: Class inherits from Module, so it *is* a Module still.
daniel_- has quit [Quit: WeeChat 0.3.9]
<ged> It's just a fancier Module that knows about Class-ish stuff.
<blazes816> true, i should have worded that better
lggr has quit [Ping timeout: 246 seconds]
murz has quit [Quit: Leaving...]
jimeh2 has quit [Ping timeout: 244 seconds]
AlbireoX has quit [Remote host closed the connection]
karakedi has joined #ruby
mikepack has joined #ruby
awarner has quit [Remote host closed the connection]
JonnieCache has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
lggr has joined #ruby
gmci has joined #ruby
yshh has joined #ruby
rakl has quit [Quit: sleeping]
irleif has quit [Quit: Computer has gone to sleep.]
r1ddl3r has quit [Quit: Leaving.]
Orcris has quit [Ping timeout: 246 seconds]
nik_-_ has quit [Quit: nik_-_]
My_Hearing has joined #ruby
snorkdude has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
lggr has quit [Ping timeout: 260 seconds]
Mon_Ouie has quit [Ping timeout: 246 seconds]
rakl has joined #ruby
darthdeus has quit [Quit: Leaving...]
Tearan has joined #ruby
NoNMaDDeN has joined #ruby
lggr has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
shadoi has quit [Ping timeout: 244 seconds]
sarmiena_ has quit [Quit: sarmiena_]
h4mz1d has quit [Ping timeout: 252 seconds]
chrishunt has quit [Ping timeout: 246 seconds]
quest88 has joined #ruby
quazimodo has quit [Ping timeout: 240 seconds]
awarner has joined #ruby
jenrzzz has joined #ruby
jwg2s has joined #ruby
foo-bar- has joined #ruby
<jwg2s> Hey, how can I get all characters after the 4th digit in a string?
<jwg2s> obviously i can do string[5, 10000] or something
<jwg2s> but rather than a random, arbitrary, large number.. is there something better?
<blazes816> -1
<blazes816> which means the last character
<blazes816> jwg2s: "asdf"[1..-1]
riley526 has quit [Remote host closed the connection]
<jwg2s> ahhh right
<jwg2s> knew i had seen that before
<jwg2s> thanks
<blazes816> np
ProLoser|Work has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 255 seconds]
ncr100 has quit [Ping timeout: 276 seconds]
cburyta has quit [Remote host closed the connection]
lggr has joined #ruby
devtro has joined #ruby
mxweas has quit [Quit: Leaving...]
punkrawkR has quit [Read error: Connection reset by peer]
cburyta has joined #ruby
awarner has quit [Remote host closed the connection]
Nisstyre-laptop has quit [Quit: Leaving]
arkadio has joined #ruby
murz has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
AndChat- has quit [Ping timeout: 248 seconds]
lggr has joined #ruby
wedtm is now known as wedtm|away
irleif has joined #ruby
jasonLaster has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
quazimodo has joined #ruby
rakl has quit [Quit: sleeping]
fyolnish_ has joined #ruby
voodoofish430 has quit [Quit: Leaving.]
thinkclay has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
smw_ has quit [Remote host closed the connection]
apok_ has joined #ruby
vitor-br has joined #ruby
whaley has quit [Remote host closed the connection]
indian has quit [Read error: Connection reset by peer]
rabidpraxis has joined #ruby
lggr has joined #ruby
apok has quit [Ping timeout: 240 seconds]
jwg2s has quit [Quit: jwg2s]
apok_ has quit [Ping timeout: 245 seconds]
SegFaultAX|work has quit [Ping timeout: 246 seconds]
joeycarmello has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
Takehiro has joined #ruby
AMfish has quit []
lggr has joined #ruby
mrsolo has quit [Quit: Leaving]
Takehiro has quit [Ping timeout: 260 seconds]
rakl has joined #ruby
AMfish has joined #ruby
foo-bar- has quit [Remote host closed the connection]
vitoravelino is now known as vitoravelino`afk
lggr has quit [Ping timeout: 248 seconds]
Vert has quit [Remote host closed the connection]
karakedi has quit [Ping timeout: 246 seconds]
MrH1 has quit [Remote host closed the connection]
Tearan has quit [Quit: Sleepy Badger....]
snorkdude has joined #ruby
lggr has joined #ruby
SegFaultAX|work has joined #ruby
AlbireoX has joined #ruby
bricker has quit [Ping timeout: 245 seconds]
BMF has joined #ruby
AlbireoX has quit [Remote host closed the connection]
skaczor has quit [Remote host closed the connection]
AlbireoX has joined #ruby
<arkadio> how can I append text to a line in a txt file?
freakazoid0223 has joined #ruby
AMfish has quit [Ping timeout: 248 seconds]
thinkclay has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 245 seconds]
snorkdude has quit [Remote host closed the connection]
AlbireoX has quit [Ping timeout: 260 seconds]
justinmcp has quit [Remote host closed the connection]
joshman_ has joined #ruby
lggr has joined #ruby
<waxjar> arkadio, i think `f = File.open("file.txt", "w"); f << line; f.close` might work
<havenn> arkadio: File.open(path, "a") # 'a' for append
LouisGB has quit [Ping timeout: 248 seconds]
CodeFriar has joined #ruby
<arkadio> if I use the operator << it appends the word at the end of the file, I want to append a word for each line I already have in the text file
Pochacco has joined #ruby
<havenn> arkadio: So you want to append to a line by the line number?
quazimodo has quit [Ping timeout: 276 seconds]
<blazes816> you'll need to rewrite the file, line by line, adding what you want to the line when you add it
My_Hearing has quit [Ping timeout: 260 seconds]
joshman_ has quit [Ping timeout: 264 seconds]
<blazes816> unless ruby has some kind of file seeking capabilities idk about
c0rn_ has quit [Quit: Computer has gone to sleep.]
SegFaultAX|work has quit [Ping timeout: 260 seconds]
<arkadio> havenn I want to append to a line when the trigger matches
<arkadio> blazes816 I heard about that
roadt has joined #ruby
rubious has quit [Quit: Leaving...]
<blazes816> looks like you can
chrishunt has joined #ruby
<blazes816> arkadio: ^
nari has joined #ruby
alee- has joined #ruby
r1ddl3r has joined #ruby
SegFaultAX|work has joined #ruby
<blazes816> btw, "whence", great argument name
LLama has quit [Read error: Connection reset by peer]
LLama has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
diegoviola has joined #ruby
shadoi has joined #ruby
wpaulson has joined #ruby
cj3kim has joined #ruby
lggr has joined #ruby
QKO has joined #ruby
ttt has joined #ruby
judd7_ has joined #ruby
Orcris has joined #ruby
Synthead has joined #ruby
SegFaultAX|work has quit [Read error: Connection reset by peer]
judd7 has quit [Ping timeout: 260 seconds]
judd7_ is now known as judd7
QKO_ has quit [Ping timeout: 256 seconds]
mmitchell has quit [Remote host closed the connection]
stephenjudkins has quit [Quit: stephenjudkins]
awarner has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
karakedi has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
judd7_ has joined #ruby
shadoi has quit [Ping timeout: 245 seconds]
CJNE has joined #ruby
judd7 has quit [Ping timeout: 246 seconds]
judd7_ is now known as judd7
cyong has joined #ruby
cyong has quit [Client Quit]
cyong has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
rubious has joined #ruby
eikko has quit [Read error: Connection reset by peer]
CJNE has quit [Ping timeout: 260 seconds]
eikko has joined #ruby
JonnieCache has quit [Ping timeout: 244 seconds]
cyong has quit [Client Quit]
lggr has quit [Ping timeout: 245 seconds]
cyong has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
jasonLaster has quit [Remote host closed the connection]
CodeFriar has quit [Quit: Linkinus - http://linkinus.com]
swarley has quit []
devtro has left #ruby [#ruby]
CodeFriar has joined #ruby
lggr has joined #ruby
mikepack has quit [Remote host closed the connection]
awarner has quit [Remote host closed the connection]
artnez has quit [Quit: artnez]
alee- has quit [Remote host closed the connection]
joofsh has joined #ruby
cyong has quit [Quit: Leaving.]
cyong has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
lggr has joined #ruby
r1ddl3r has quit [Quit: Leaving.]
ddd has quit [Ping timeout: 245 seconds]
ddd has joined #ruby
Takehiro has joined #ruby
SegFaultAX has quit [Quit: Lost terminal]
snorkdude has joined #ruby
awarner has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
roadt has quit [Ping timeout: 246 seconds]
Takehiro has quit [Ping timeout: 260 seconds]
Chryson has quit [Quit: Leaving]
lggr has joined #ruby
krz has joined #ruby
colinbm has joined #ruby
replore_ has joined #ruby
sent-hil has joined #ruby
ewag has joined #ruby
awarner has quit [Remote host closed the connection]
AlbireoX has joined #ruby
nlpplz has quit [Quit: Leaving]
TheFuzzball has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 240 seconds]
colinbm has quit [Quit: colinbm]
carlyle has quit [Remote host closed the connection]
nlpplz has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
hadees has joined #ruby
ohdae has joined #ruby
TheFuzzball has joined #ruby
<ZenGuy> !sdtv10
karakedi has quit [Ping timeout: 246 seconds]
AlbireoX has quit [Remote host closed the connection]
AlbireoX has joined #ruby
awarner has joined #ruby
axl_ has joined #ruby
carlyle has joined #ruby
lggr has joined #ruby
carlyle has quit [Remote host closed the connection]
roadt has joined #ruby
awarner has quit [Remote host closed the connection]
hadees has quit [Client Quit]
roadt has quit [Max SendQ exceeded]
irleif has joined #ruby
roadt has joined #ruby
hadees has joined #ruby
amskah has joined #ruby
ken_barber has quit [Remote host closed the connection]
snorkdude has quit [Remote host closed the connection]
AlbireoX has quit [Ping timeout: 260 seconds]
alvaro_o has quit [Quit: Ex-Chat]
Guedes has quit [Ping timeout: 246 seconds]
jrajav has quit []
lggr has quit [Ping timeout: 244 seconds]
havenn has quit [Remote host closed the connection]
NoNMaDDeN has quit [Remote host closed the connection]
replore_ has quit [Remote host closed the connection]
davidcelis has quit [Quit: K-Lined.]
kiyoura has quit [Quit: Leaving]
salman has quit [Ping timeout: 240 seconds]
kaawee has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
awojo has quit [Ping timeout: 245 seconds]
ddd has quit [Ping timeout: 245 seconds]
ZubKonst has joined #ruby
brianpWins has joined #ruby
sejo has quit [Read error: Operation timed out]
sejo has joined #ruby
johnduhart has quit [Read error: Operation timed out]
undert_ has quit [Read error: Operation timed out]
wargasm has joined #ruby
no_i_wont_ has quit [Read error: Operation timed out]
no_i_wont has joined #ruby
ZubKonst_ has quit [Ping timeout: 240 seconds]
johnduhart has joined #ruby
undert_ has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
artnez has joined #ruby
puff has quit [Remote host closed the connection]
ZubKonst has quit [Read error: Connection reset by peer]
ZubKonst has joined #ruby
lggr has joined #ruby
Nisstyre-laptop has joined #ruby
joofsh has quit [Remote host closed the connection]
xyzodiac has quit [Quit: Computer has gone to sleep.]
lusory has quit [Ping timeout: 256 seconds]
slainer68 has joined #ruby
lusory has joined #ruby
joeycarmello has quit [Remote host closed the connection]
BMF has quit [Remote host closed the connection]
<rking> Whence is a good word in general. I'm sad to see it go. ☹
<rking> If you use it in conversation maybe 10% of the people you say it to get it, the rest assume you asked "why".
lggr has quit [Ping timeout: 246 seconds]
stephenjudkins has joined #ruby
slainer68 has quit [Ping timeout: 260 seconds]
iamjarvo has joined #ruby
c0rn_ has joined #ruby
lggr has joined #ruby
cburyta has quit [Remote host closed the connection]
davidcelis has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
bradleyprice has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
CodeFriar has quit [Quit: Leaving...]
snorkdude has joined #ruby
CodeFriar has joined #ruby
steffes has joined #ruby
rakl has quit [Quit: sleeping]
lggr has joined #ruby
bradleyprice has quit [Remote host closed the connection]
freakazoid0223 has quit [Ping timeout: 256 seconds]
Tearan has joined #ruby
c0rn_ has quit []
bbttxu_ has quit [Quit: bbttxu_]
vitor-br has quit [Quit: Saindo]
c0rn_ has joined #ruby
digerati_ has joined #ruby
Takehiro has joined #ruby
<digerati_> For some reason i get a NameError on Responder from the most recent RubyFX build
lggr has quit [Ping timeout: 246 seconds]
<rking> digerati_: I doubt everything's up to date. 1.8? Really?
brianpWins has quit [Ping timeout: 246 seconds]
Takehiro has quit [Ping timeout: 256 seconds]
<digerati_> rking: yeah :( im trying to run some very old code
c0rn_ has quit []
lggr has joined #ruby
kyktommy has joined #ruby
<profx_> what is this: [[["a","b"],["c","d"]],[["e","f"],["g","h"]]]?
snorkdude has quit [Remote host closed the connection]
<sent-hil> profx_: array inside array inside array
<digerati_> rking: sorry, were you asking what version ruby was?
<Spaceghostc2c> An array of arrays of arrays.
<digerati_> ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
<sent-hil> profx_: #flatten would make it a single array, prob. what you want
<profx_> ok, can I pull elements out such an array without referencing? ( array[0][0][0] )
<sent-hil> profx_: use #flatten to make it a single array
<sent-hil> then it's just array[index]
<profx_> and then I can find it length
<profx_> perfect
<digerati_> :)
DrShoggoth has quit [Quit: Leaving]
lggr has quit [Ping timeout: 260 seconds]
dmiller has joined #ruby
reset has quit [Ping timeout: 244 seconds]
<profx_> ugh, I have to make it back into an array
<profx_> :(
drago757 has quit [Quit: drago757]
judd7 has quit [Quit: judd7]
<sent-hil> it's already an array
Tearan has quit [Quit: Sleepy Badger....]
lggr has joined #ruby
<profx_> its an array of an array
axl_ has quit [Quit: axl_]
cyong has quit [Quit: Leaving.]
<profx_> and when I flatten it, the first two become an array again (for a def)
CodeFriar has quit [Quit: Leaving...]
* profx_ shrugs
Pochacco has quit [Quit: Pochacco]
steffes has quit [Remote host closed the connection]
skryking has quit [Ping timeout: 260 seconds]
mvangala_ has joined #ruby
Omar has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
AlbireoX has joined #ruby
mvangala has quit [Ping timeout: 246 seconds]
uris has quit [Quit: leaving]
lggr has joined #ruby
<profx_> if i is the index for the array, can I reference the next element in the array with array[i++] ?
<profx_> i keep getting errors when I use this syntax
<Omar> i++ will increment i
Pochacco has joined #ruby
<Omar> so you'll get unreliable results if you keep using that expression
<Omar> actually
<Omar> ++ doesn't work in ruby
whackatre has quit [Remote host closed the connection]
<profx_> syntax error, unexpected ']'
<blazes816> i+1
<profx_> oh, lol
<profx_> yep, thx
whackatre has joined #ruby
Omar has left #ruby [#ruby]
<profx_> perfect, works, thanks
havenn has joined #ruby
daniel_hinojosa has quit [Quit: Leaving.]
<profx_> ah, odd
<profx_> so it doesn't increment i
<profx_> it increments it in the context of the expression
sent-hil has quit [Remote host closed the connection]
<profx_> can I do array[i=i+1] ?
Takehiro has joined #ruby
CaptainJet has quit []
lggr has quit [Ping timeout: 252 seconds]
irleif has joined #ruby
fridim_ has quit [Ping timeout: 240 seconds]
Pochacco has quit [Quit: Pochacco]
lggr has joined #ruby
Pochacco has joined #ruby
slainer68 has joined #ruby
ohdae has quit [Quit: leaving]
burgestrand has quit [Quit: Leaving.]
iamjarvo has quit [Ping timeout: 246 seconds]
amskah has quit [Quit: Leaving]
lggr has quit [Ping timeout: 240 seconds]
slainer68 has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
lggr has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
rburton- has joined #ruby
wedtm|away is now known as wedtm
joeycarmello has joined #ruby
userbard has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
CodeFriar has joined #ruby
SegFaultAX|work has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
joeycarmello has quit [Ping timeout: 248 seconds]
brianpWins has joined #ruby
lggr has joined #ruby
Vinz| has quit [Quit: Leaving]
xorgnak has joined #ruby
JonnieCache has joined #ruby
CodeFriar has quit [Ping timeout: 256 seconds]
hemanth has joined #ruby
margle has joined #ruby
xuser has joined #ruby
verto is now known as verto|off
lggr has quit [Ping timeout: 260 seconds]
margle has quit [Client Quit]
margle has joined #ruby
wedtm is now known as wedtm|away
xorgnak has quit [Remote host closed the connection]
lggr has joined #ruby
JonnieCache has quit [Ping timeout: 260 seconds]
<havenn> profx_: array[i] += 1
ksinkar has joined #ruby
justsee has joined #ruby
xorgnak has joined #ruby
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
ryanlecompte has joined #ruby
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
Banistergalaxy has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
ttt_ has joined #ruby
ttt has quit [Read error: Connection reset by peer]
lggr has joined #ruby
freeayu has joined #ruby
kyktommy_ has joined #ruby
kyktommy has quit [Ping timeout: 260 seconds]
hagbard_celine has joined #ruby
<hagbard_celine> Hi there
<hagbard_celine> could anyone tell me what is the problem of webrick when I use angle brackets in the uri? I get bad uri for http://example.com/projects/my-project/wiki/Wiki>Sprints
<hagbard_celine> Is there a way to solve this issue?
quazimodo has joined #ruby
kyktommy_ has quit [Ping timeout: 264 seconds]
lggr has quit [Ping timeout: 256 seconds]
elsifaka has joined #ruby
justsee has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
manizzle has joined #ruby
a_a_g has joined #ruby
tonini has joined #ruby
artm has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
ryanf has joined #ruby
bluOxigen has joined #ruby
monkegjinni has joined #ruby
ananthakumaran has joined #ruby
lggr has joined #ruby
bradyl0ve has quit [Quit: Linkinus - http://linkinus.com]
kyktommy has joined #ruby
slainer68 has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
Playb3yond has joined #ruby
john2x has joined #ruby
AlbireoX has quit [Remote host closed the connection]
AlbireoX has joined #ruby
lggr has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
kyktommy has quit [Quit: kyktommy]
Forevernade has joined #ruby
cakehero has joined #ruby
slainer68 has quit [Ping timeout: 260 seconds]
h4mz1d has joined #ruby
xuser has left #ruby [#ruby]
apok has joined #ruby
AlbireoX has quit [Ping timeout: 246 seconds]
burgestrand has joined #ruby
My_Hearing has joined #ruby
My_Hearing has joined #ruby
My_Hearing has quit [Changing host]
My_Hearing is now known as Mon_Ouie
justsee has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
wedtm|away is now known as wedtm
nilg has quit [Read error: Connection reset by peer]
lggr has joined #ruby
nilg has joined #ruby
digerati_ has left #ruby [#ruby]
reset has joined #ruby
quest88 has quit [Quit: quest88]
CodeFriar has joined #ruby
triptec has quit [Quit: triptec]
kramutils has quit [Quit: leaving]
quazimodo has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 276 seconds]
CodeFriar has quit [Ping timeout: 264 seconds]
answer_42 has joined #ruby
lggr has joined #ruby
tagrudev has joined #ruby
sagax has joined #ruby
c0rn_ has joined #ruby
hardcore is now known as Hardcore
h4mz1d has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 248 seconds]
Pochacco has quit [Quit: Pochacco]
kyktommy has joined #ruby
lggr has joined #ruby
Elhu has joined #ruby
rburton- has quit [Quit: Linkinus - http://linkinus.com]
Elhu has quit [Client Quit]
ananthakumaran has joined #ruby
artm has quit [Quit: artm]
monkegjinni has quit [Ping timeout: 245 seconds]
jgrevich has quit [Quit: jgrevich]
lggr has quit [Ping timeout: 240 seconds]
skryking has joined #ruby
john2x has quit [Quit: Leaving]
artm has joined #ruby
lggr has joined #ruby
Takehiro has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 264 seconds]
Mon_Ouie has quit [Ping timeout: 246 seconds]
Nisstyre-laptop has quit [Quit: Leaving]
Pochacco has joined #ruby
Takehiro has joined #ruby
monkegjinni has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
<Vinz_> Hey, I'm trying to make a simple upload system, and at the FileUtils.cp(...,...) line, I get an error
<Vinz_> Here's the line :
<Vinz_> FileUtils.cp(tempfile.path, "./files/images/#{Time.now.strftime("%Y%m%d%H%M%S")}_#{filename}")
prtksxna has joined #ruby
<Vinz_> And the error is "No such file or directory - ./files/images/20121009080809_320x150.png"
<Vinz_> Anyone ?
SegFaultAX|work has quit [Ping timeout: 264 seconds]
murz has quit [Quit: Leaving...]
cakehero has quit [Quit: Computer has gone to sleep.]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
wedtm is now known as wedtm|away
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
<shaman42> I have no idea what I am doing Camel
jclarke has joined #ruby
prtksxna has quit [Read error: Connection reset by peer]
justsee has quit [Read error: Connection reset by peer]
_mak has quit [Quit: Ex-Chat]
lggr has quit [Ping timeout: 256 seconds]
rubious has quit [Quit: Leaving...]
jclarke has quit [Quit: Linkinus - http://linkinus.com]
timonv has joined #ruby
Pochacco has quit [Quit: Pochacco]
lggr has joined #ruby
rabidpraxis has quit [Remote host closed the connection]
slainer68 has joined #ruby
aganov has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
answer_42 has quit [Ping timeout: 276 seconds]
darule has quit [Ping timeout: 256 seconds]
maesbn has joined #ruby
hsbt has quit [Ping timeout: 260 seconds]
awestroke has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
slainer68 has quit [Ping timeout: 276 seconds]
CJNE has joined #ruby
Takehiro has quit [Remote host closed the connection]
c0rn_ has quit []
lggr has joined #ruby
Pochacco has joined #ruby
ddd has joined #ruby
workmad3 has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
senny has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
CodeFriar has joined #ruby
reuf has joined #ruby
artm has quit [Quit: artm]
hsbt has joined #ruby
lggr has joined #ruby
CodeFriar has quit [Ping timeout: 255 seconds]
take_cheeze has quit [Quit: Leaving.]
take_cheeze has joined #ruby
artm has joined #ruby
bapa has quit [Read error: Operation timed out]
dr_bob has joined #ruby
Morkel has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
zigomir has joined #ruby
lggr has joined #ruby
fixl has joined #ruby
<Paradox> CodOfGaytheism
Synthead has quit [Read error: Connection reset by peer]
brianpWins has quit [Quit: brianpWins]
und3f has joined #ruby
AMfish has joined #ruby
bapa has joined #ruby
jprovazn_away is now known as jprovazn
c0rn_ has joined #ruby
haxrbyte has joined #ruby
chussenot has joined #ruby
c0rn_ has quit [Client Quit]
lggr has quit [Ping timeout: 240 seconds]
arturaz has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
lggr has joined #ruby
sagax has quit [Quit: Ухожу я от вас]
quazimodo has joined #ruby
Solnse has joined #ruby
justsee has joined #ruby
bapa has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
JonnieCache has joined #ruby
bapa has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
piotr_ has joined #ruby
dhruvasagar has joined #ruby
_mak has joined #ruby
daslicious_ has joined #ruby
Hanmac has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
williamherry has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
lggr has joined #ruby
bapa has quit [Ping timeout: 252 seconds]
Hanmac has quit [Remote host closed the connection]
crazymykl has quit [Read error: Connection reset by peer]
crazymykl has joined #ruby
bapa has joined #ruby
ttt_ has quit [Remote host closed the connection]
skogis has joined #ruby
whackatre has quit [Quit: Cya.]
vectorshelve has joined #ruby
whackatre has joined #ruby
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
workmad3 has quit [Read error: Operation timed out]
lggr has quit [Ping timeout: 246 seconds]
kyktommy has quit [Quit: kyktommy]
monkegjinni has quit [Ping timeout: 260 seconds]
bapa has quit [Read error: Connection reset by peer]
bapa has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
lggr has joined #ruby
cj3kim has joined #ruby
lolmaus has joined #ruby
lggr has quit [Ping timeout: 276 seconds]
Elhu has joined #ruby
monkegjinni has joined #ruby
eldariof has joined #ruby
Hamed-R has joined #ruby
lggr has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
hsbt has quit [Ping timeout: 246 seconds]
Drager has quit [Ping timeout: 264 seconds]
mohits has quit [Ping timeout: 245 seconds]
zommi has joined #ruby
haxrbyte has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
rafy has joined #ruby
mohits has joined #ruby
haxrbyte has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
cezar has joined #ruby
bapa has quit [Quit: No Ping reply in 180 seconds.]
bapa has joined #ruby
cezar has quit [Client Quit]
rafy has quit [Quit: Lost terminal]
xbayrockx has joined #ruby
lggr has joined #ruby
kzrl has quit [Ping timeout: 246 seconds]
hsbt has joined #ruby
elico has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
kzrl has joined #ruby
icooba has joined #ruby
haxrbyte has quit [Ping timeout: 246 seconds]
quazimodo has quit [Ping timeout: 260 seconds]
hoelzro|away is now known as hoelzro
lggr has joined #ruby
sspiff has quit [Remote host closed the connection]
Jork1 has joined #ruby
arkadio has quit [Remote host closed the connection]
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
elico has quit [Quit: elico]
lggr has quit [Ping timeout: 248 seconds]
apok has quit [Quit: apok]
Jork1 has quit [Ping timeout: 246 seconds]
hoelzro is now known as hoelzro|away
lggr has joined #ruby
brtdv has joined #ruby
margle has joined #ruby
Drager has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
quazimodo has joined #ruby
freeayu__ has joined #ruby
freeayu has quit [Ping timeout: 260 seconds]
mucker has joined #ruby
elico has joined #ruby
lggr has joined #ruby
soulisson has joined #ruby
soulisson has quit [Remote host closed the connection]
ttt has joined #ruby
havenn has quit [Read error: Connection reset by peer]
havenn has joined #ruby
elico has quit [Quit: elico]
chussenot has quit [Quit: chussenot]
Drager has quit [Ping timeout: 255 seconds]
Virunga has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
robustus has joined #ruby
Drager has joined #ruby
hoelzro|away is now known as hoelzro
dakine has quit [Quit: Leaving]
strax has joined #ruby
lggr has joined #ruby
duracrisis has joined #ruby
duracrisis has quit [Changing host]
duracrisis has joined #ruby
CodeFriar has joined #ruby
jimeh2 has joined #ruby
vlad_starkov has joined #ruby
Drager has quit [Ping timeout: 240 seconds]
TheNumb has quit [Ping timeout: 252 seconds]
bapa has quit [Ping timeout: 240 seconds]
eilyx has quit [Remote host closed the connection]
eilyx has joined #ruby
lilbigSciPsyZ has joined #ruby
slainer68 has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
haxrbyte has joined #ruby
TheNumb has joined #ruby
Pochacco has quit [Quit: Pochacco]
lggr has joined #ruby
monkegjinni has quit [Read error: No route to host]
monkegjinni has joined #ruby
AMfish has quit [Ping timeout: 260 seconds]
haxrbyte_ has joined #ruby
Rydefalk_ has quit []
Rydefalk has joined #ruby
darule has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
Playb3yond has quit [Quit: Colloquy for iPhone]
haxrbyte has quit [Ping timeout: 245 seconds]
brtdv has quit []
Jork1 has joined #ruby
elaptics`away is now known as elaptics
baphled has joined #ruby
wallerdev has quit [Quit: wallerdev]
lggr has joined #ruby
xorgnak has quit [Ping timeout: 246 seconds]
GeekOnCoffee has quit [Ping timeout: 244 seconds]
GeekOnCoffee has joined #ruby
workmad3 has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
colinbm has joined #ruby
hemanth has quit [Ping timeout: 245 seconds]
Aaaarg has quit [Quit: Aaaarg]
CodeFriar has quit [Quit: Leaving...]
lggr has joined #ruby
Iszak has joined #ruby
ryanf has quit [Ping timeout: 255 seconds]
jlwestsr has quit [Ping timeout: 246 seconds]
colinbm has quit [Quit: colinbm]
timonv has joined #ruby
bwwrd has joined #ruby
sepp2k has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
manizzle has quit [Ping timeout: 255 seconds]
lilbigSciPsyZ has left #ruby ["i left for Sci + Psy Z"]
mieko has joined #ruby
haxrbyte_ has quit [Ping timeout: 246 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
ttt has quit [Remote host closed the connection]
monkegjinni has joined #ruby
Averna has quit [Quit: Leaving.]
josh^ has quit [Ping timeout: 246 seconds]
hemanth has joined #ruby
samphippen has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
margle has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
josh^ has joined #ruby
fram has joined #ruby
margle has joined #ruby
lggr has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
Solnse has quit [Ping timeout: 240 seconds]
williamherry has joined #ruby
CodeFriar has joined #ruby
mohits has quit [Ping timeout: 255 seconds]
Virunga has quit [Read error: Connection timed out]
lggr has quit [Ping timeout: 255 seconds]
LouisGB has joined #ruby
Virunga has joined #ruby
tvw has joined #ruby
manizzle has joined #ruby
dr_bob has quit [Read error: Connection reset by peer]
dr_bob has joined #ruby
Eplemosen has joined #ruby
chussenot has joined #ruby
wargasm has quit [Read error: No route to host]
lggr has joined #ruby
wargasm has joined #ruby
vectorshelve has quit [Ping timeout: 240 seconds]
timmow has joined #ruby
justsee has quit [Quit: Leaving...]
ndrei has joined #ruby
corlinfive has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
chimay has joined #ruby
lggr has joined #ruby
ndrei has quit [Remote host closed the connection]
roadt has quit [Ping timeout: 260 seconds]
Agis__ has joined #ruby
<Agis__> do you guys use bundle gem <name> for creating a new gem? or ?
statarb3 has quit [Quit: Leaving]
pitty has joined #ruby
triptec has joined #ruby
fyolnish_ has quit [Remote host closed the connection]
nilg` has joined #ruby
rakl has joined #ruby
pitty has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
nilg has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 248 seconds]
cascalheira has joined #ruby
clocKwize has joined #ruby
pitty has joined #ruby
CodeFriar has quit [Quit: Leaving...]
lggr has joined #ruby
banisterfiend has quit [Ping timeout: 268 seconds]
Eplemosen has quit [Ping timeout: 245 seconds]
noxoc has joined #ruby
pskosinski has joined #ruby
banisterfiend has joined #ruby
pitty has quit [Ping timeout: 245 seconds]
roadt has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
Criztian has joined #ruby
lggr has joined #ruby
wargasm1 has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
swistak35 has quit [Ping timeout: 246 seconds]
_mak has quit [Remote host closed the connection]
ttt has joined #ruby
postmodern has quit [Ping timeout: 252 seconds]
workmad3_ has joined #ruby
wargasm has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
wargasm1 has quit [Read error: Connection reset by peer]
monkegjinni has quit [Ping timeout: 260 seconds]
CodeFriar has joined #ruby
tonini has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 248 seconds]
vitoravelino`afk is now known as vitoravelino
banister_ has joined #ruby
<banister_> any americans awake here?
* hoelzro raises his hand
Vainoharhainen has joined #ruby
wargasm has quit [Ping timeout: 246 seconds]
<banister_> hoelzro: thanks
<banister_> hoelzro: im trying to understand the linkedin address
<banister_> it says
<matti> hoelzro: Nooo....
<banister_> 2029 Stierlin Court
<banister_> Mountain View, CA 94043
bigkevmcd has quit [Quit: outta here]
<banister_> UNITED STATES
lggr has joined #ruby
bigkevmcd has joined #ruby
<hoelzro> matti: ?
<matti> hoelzro: Run! He is dangerous :)
<banister_> hoelzro: but it doesnt say anything about san francisco, i thought linkedin was based there? in which case what is 'mountain view' ?
nari has quit [Ping timeout: 268 seconds]
<hoelzro> Mountain View is a city/town/something in CA
<hoelzro> very close to SF
<banister_> hoelzro: oh, so it's not actually in SF
<banister_> hoelzro: cos i was unsure whether i shoudl put SF for the city
<hoelzro> I don't believe so
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<banister_> ah, cool
<banister_> hoelzro: thanks :)
Shrink has quit [Read error: Connection reset by peer]
<hoelzro> np
knirhs has joined #ruby
duracrisis has quit [Ping timeout: 256 seconds]
monkegjinni has joined #ruby
Spami has joined #ruby
<Spami> hello
<matti> Hi
Markvilla has joined #ruby
<Spami> I try to load the gem 'curb' in my ruby file but I have this error: `require': cannot load such file -- curb (LoadError) Curb is not in my bundle but I have require 'ruby gems' at the beginning of my file
wargasm has joined #ruby
<Spami> any idea ?
bluenemo has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
samphippen has joined #ruby
lggr has joined #ruby
xpen has joined #ruby
_mak has joined #ruby
wargasm1 has joined #ruby
<JonnieCache> if you have loaded bundler then from then on you cannot load gems that arent in the gemfile
wargasm has quit [Ping timeout: 246 seconds]
banisterfiend has quit [Ping timeout: 255 seconds]
<JonnieCache> you shouldnt require rubygems, just load bundler with `require "bundler/setup"` and everything is done
Juul has joined #ruby
binw has quit [Remote host closed the connection]
Dawne has joined #ruby
rippa has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
A124 has joined #ruby
wargasm has joined #ruby
Xeago has joined #ruby
lggr has joined #ruby
wargasm1 has quit [Ping timeout: 246 seconds]
<Xeago> kwilczynski, you're crazy
fermion has joined #ruby
<Spami> JonnieCache, Yes. I've used the bundle
<Spami> But I'm still frustrated
frogprince_mac has joined #ruby
CodeFriar has quit [Quit: Leaving...]
wargasm1 has joined #ruby
wargasm has quit [Ping timeout: 256 seconds]
torarne has joined #ruby
ForevernadeAFK has joined #ruby
hsbt is now known as hsbt_away
lggr has quit [Ping timeout: 240 seconds]
wargasm has joined #ruby
wargasm1 has quit [Read error: Connection reset by peer]
Forevernade has quit [Ping timeout: 252 seconds]
xpen has quit [Remote host closed the connection]
lggr has joined #ruby
<torarne> Q: What's the correct way to develop (and install) a gem that depends on HEAD of another gem (that hasn't been tagged as a version yet)? As far as I can tell the gemspec does not allow non-versioned depends. I tried using bundler, but after 'bundle install' the depend has been installed from git, but my own gem has been somehow halfway installed. Should bundle install also install my gem, or do I need to do a 'gem build foo.gemspec' as well?
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
<workmad3_> torarne: it's not something gemspec supports
x0F_ is now known as x0F
<workmad3_> torarne: the only ways are to either build the gem yourself from head and install it, or let bundler handle that for you
<workmad3_> torarne: but if you let bundler do it, the gem won't be installed into the normal gem repo, it will only be available via 'bundle exec' magic
frogprince_mac has quit [Quit: Leaving...]
reset has quit [Quit: Leaving...]
freeayu__ has quit [Read error: Connection reset by peer]
<torarne> workmad3_: hmm, okey, so how do i set up installation instructions for my gem for users then? i assume they can't do gem install mygem, since the gemspec is not enough?
Mon_Ouie has joined #ruby
<torarne> workmad3_: some variant of git clone myrepo && bundle install && gem build mygem.spec && gem install mygem.gem?
<workmad3_> torarne: pretty much... you also won't be able to push it to rubygems until the dependencies are satisfied
<workmad3_> torarne: which all makes sense if you think about it... the gem hasn't been released, it could never be released and probably won't be released in the current form
<torarne> okey, that's fine
<workmad3_> torarne: if it's not a gem you control, it's generally advised to only depend on released versions
lggr has quit [Ping timeout: 246 seconds]
<torarne> but i need features that were patched in HEAD and haven't been released yet :/
<workmad3_> unfortunate
<JonnieCache> oh christ its "jimmy wales' scary face" month again
<JonnieCache> how time flies!
<torarne> is there a way to pull down the depend gem into vendor and ship it with my gem?
My_Hearing has joined #ruby
<torarne> to work around the whole bundle install thingie?
<workmad3_> torarne: not really... but what you can do is depend on a released version and conditionally monkey-patch the fixes in
Mon_Ouie has quit [Disconnected by services]
My_Hearing is now known as Mon_Ouie
Vainoharhainen has quit [Read error: Connection reset by peer]
margle has quit [Quit: Computer has gone to sleep.]
<workmad3_> torarne: which would mean you have the patches to the gem in your code-base, check to see if they exist in the gem and if they don't then you add them in your code
<workmad3_> torarne: it's a bit of a hack, but it allows a way around the issue that doesn't compromise the integrity of your dependencies
<torarne> workmad3_: i see. is that supported by gemspec etc?
monkegjinni has quit [Read error: No route to host]
<workmad3_> torarne: it isn't a gemspec feature
<torarne> will it work for users who do gem install mygem?
<workmad3_> torarne: it's something you'd do within your gem code
<torarne> oh
<torarne> hm
monkegjinni has joined #ruby
lggr has joined #ruby
freeayu has joined #ruby
fyolnish has joined #ruby
<Xeago> any designer willing to design a website for fizzbuzz?
<Xeago> bee's are allowed!
answer_42 has joined #ruby
<torarne> workmad3_: so if I do bundle install, and end up with "Using xcoder (0.1.12) from git://github.com/rayh/xcoder.git (at master) ", and then do gem build and gem install, will my installed gem then use xcoder from git (as installed by bundler)?
eikko has quit [Read error: Connection reset by peer]
eikko has joined #ruby
CodeFriar has joined #ruby
<torarne> workmad3_: cause when i do bundle install it says "Fetching: xcoder-0.1.12.gem", even if i had bundler install it from git
fyolnish has quit [Ping timeout: 240 seconds]
justsee has quit [Quit: Leaving...]
lggr has quit [Ping timeout: 245 seconds]
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
haxrbyte has joined #ruby
Guedes has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
rippa has quit [Ping timeout: 240 seconds]
hsbt_away is now known as hsbt
haxrbyte_ has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
lggr has joined #ruby
thomas`- has joined #ruby
awestroke has quit [Remote host closed the connection]
<matti> Hi Xeago ;]
<Xeago> hai :)
haxrbyte has quit [Ping timeout: 276 seconds]
<Xeago> what about a hose?
<Xeago> s/a/the
<matti> Hose?
samphippen has quit [Quit: Computer has gone to sleep.]
<Xeago> yano, like a firehose
<matti> Just got e-mail ;]
<Xeago> it's like an endless stream of fizzbuzz
<thomas`-> Hi everyone. I am having trouble understand the rules of OOP. To manage the files (for instance) that belong to my user class, which of the following is best (or please let me know if you have a better solution) : file = new File(user); file.insert(type, size, category); file.retreive_all(); OR file = new File(user, type, size, category); File::retrieve_all(user)
<Xeago> File::retrieve_all(user) looks like c, besides namespaces
lggr has quit [Ping timeout: 240 seconds]
<Xeago> why: you're passing an object instead of calling it on an object
<Xeago> User.files
<Xeago> if you can tightly couple them
dju has quit [Quit: ZNC - http://znc.in]
<thomas`-> hm
Orcris has quit [Ping timeout: 246 seconds]
KevinSjoberg has joined #ruby
freeayu has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
<burgestrand> There are no rules, only guidelines and context
<thomas`-> Xeago, i dont know actually. Is it better practive to have the files class inside the User class?
MHD has joined #ruby
<Xeago> thomas`-: depends on your scenario
<MHD> What is the general way to make factory methods in ruby?
freeayu has joined #ruby
<Xeago> you can also open up User from your File related stuff and add files methods
<Xeago> MHD: factorygirl
<shevy2> def foo
<shevy2> Something.new
<shevy2> end
<MHD> Wait
<MHD> Oh, right
<MHD> I want a Class factory
<shevy2> thomas`- that is not ruby code. do you come from PHP or something? "new File" is not proper
<MHD> for making, say HTML tags
<Xeago> MHD: look at gems that exist
<shevy2> thomas`- also - Foo::method() is longer to type than Foo.method()
<Xeago> don't make your own crap, you'll bathe in it soon
<MHD> I am not using it in production code
<MHD> I am using it to get good at ruby
<shevy2> MHD I think only rails uses "factory methods" :)
<MHD> okay
<shevy2> rails has its own specific ruby style
<shevy2> I dont even understand the ActiveRecord source code
samphippen has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
whaley has joined #ruby
<MHD> How do I make object creation memoize?
Hamed-R has quit [Quit: Leaving]
<shevy2> what?
3JTAAFCE6 has joined #ruby
<shevy2> why do you use so funny words
<shevy2> "memoize"
<MHD> Thing.new(:a).equal? Thing.new :a
<MHD> I am a hardcore functional programmer
<MHD> Thus the CS terminology
<Mon_Ouie> You use another method than new for getting your instances
<MHD> :/
<matti> shevy2: I can't even pronounce this "memoize".
dju has joined #ruby
<shevy2> matti: not even when drunk?
<MHD> matti: memo - ize
<matti> memooooblurg
lggr has joined #ruby
<MHD> Like memorize
<shevy2> what is wrong with == or === MHD?
<matti> French-sounding words in English ;p
<JonnieCache> memoize is not a fancy word
<shevy2> let me change my nick...
shevy2 is now known as shevy
<MHD> shevy2: not Common Lispy enough
<matti> JonnieCache: I am just being silly ;p
<JonnieCache> thats the almost first thing they teach you in cs
<shevy> the 2 is appended when my silly ISP disconnects me, then xchat reconnects me after half a minute...
<shevy> is memoize actually a proper english word?
<MHD> yes
<shevy> it reads as if someone forgot a 'r'
<matti> I don't know anything about CS ;/
<JonnieCache> memoization is just def foo; @foo ||= bar(); end
<Xeago> In computing, memoization is an optimization technique used primarily to speed up computer programs by having function calls avoid repeating the calculation of results for previously processed inputs. Memoization has also been used in other contexts (and for purposes other than speed gains), such as in simple mutually recursive descent parsing in a general top-down parsing algorithm that accommodates ambiguity and left recursion in polynomial t
<Xeago> ime and space. Although related to caching, memoization refers to a specific case of this optimization, distinguishing it from forms of caching such as buffering or page replacement. In the context of some logic programming languages, memoization is also known as tabling; see also lookup table.
<Xeago> there ya go :)
<shevy> I forgot to memorize memoize
<JonnieCache> lookup tables ftw
margle has joined #ruby
<shevy> JonnieCache, what does this mean... if @foo does not exist yet, call a method and assign that value to @foo ?
<Mon_Ouie> def foo; @foo ||= compute_foo; end
<MHD> Immutable graph reduction ftw
<matti> shevy: CS rap: sympathize with all the people that memoize...
<shevy> aha
<shevy> MHD I am going to call you the buzzword master!
<matti> Who Enjoiiiii is this?
<matti> ||=
<MHD> Oh, I can buzz much worse
<matti> Does not look like |^-^|=
<matti> Which is a Neko-ish.
Juul has quit [Ping timeout: 240 seconds]
<shevy> @foo |^-^|= generate_foo
<shevy> I am going to write a language that uses smileys as operators
<MHD> Brb, defining |^-^|= as an operator in Haskel
<matti> shevy: And for handling nil -- |o_O|=
<shevy> lol
<shevy> hahaha :)
<shevy> no wait
<shevy> that is not good
<shevy> look:
<shevy> |o_O|
<shevy> |O_o|
<shevy> there would be two nils
<MHD> left nil and right nil
<MHD> the difference is subtle
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
Takehiro has quit [Remote host closed the connection]
<matti> MHD: Devil lie in the details ;p
<MHD> I think I must find myself a prototype-based language now
<MHD> For all my runtime class creation needs
Markvilla has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
timonv has quit [Remote host closed the connection]
margle has quit [Client Quit]
samphippen has quit [Quit: Computer has gone to sleep.]
timonv has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
KevinSjoberg has joined #ruby
lggr has joined #ruby
samphippen has joined #ruby
<matti> Haha
justsee has quit [Quit: Leaving...]
<matti> We can have \|>_<|/ to handle exceptions.
<matti> ;d
timonv has quit [Ping timeout: 264 seconds]
<matti> Gundam style one ;p
Virunga has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
<JonnieCache> doesnt that already exist?
<thomas`-> Xeago, the only disadvantage to your User.files approach that i see is that you have to create a new instance of File class every time the user class is instantiated (rather than on demand). Is this correct?
<JonnieCache> i think theres a brainfuck variant that uses smileys
arietis has joined #ruby
<thomas`-> That is unless I accessed it via User->files()->the_method(etc)
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
chimay has quit [Quit: WeeChat 0.4.0-dev]
chimay has joined #ruby
vitoravelino is now known as vitoravelino`afk
lggr has joined #ruby
KevinSjoberg has joined #ruby
KevinSjoberg has quit [Client Quit]
<matti> JonnieCache: Hm. There is Ook! ...
<matti> JonnieCache: There are so many of them ;]
<whackatre> what is the best alternative to constructor overloading?
frogprince_mac has joined #ruby
<workmad3_> whackatre: to do what?
manizzle has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 260 seconds]
<whackatre> for example, let's say we have a rectangle class with default constructors width, height, x, and y.
<whackatre> but let's say we want to have another constructor that allows another rectangle to be copied
<whackatre> like, def copy_rect(rect)
<Mon_Ouie> The usual name for that operation is #replace
<Mon_Ouie> (e.g. String, Hash, and Array have it with this name)
Agis__ has quit [Quit: Agis__]
<workmad3_> man, it's been a while since I've used copy-constructors
lggr has joined #ruby
<workmad3_> whackatre: why not just duplicate or clone the rectangle? why invoke a copy-constructor style 'thing'?
<workmad3_> whackatre: e.g. 'new_rect = rect.dup'
josh^ has quit [Ping timeout: 246 seconds]
<whackatre> that's what i was thinking, but i'm just so used to java's style of multiple constructors. thanks.
<workmad3_> whackatre: even better, as long as you only want a shallow-copy, then you get .dup and .clone out-the-box with ruby ;)
jenrzzz has quit [Ping timeout: 245 seconds]
awestroke has joined #ruby
supd has joined #ruby
<Mon_Ouie> Ruby actually has #initialize_copy, which is the variant of #initialize that gets called when you use #dup or #clone
<Mon_Ouie> (It also has #initialize_clone and #initialize_dup if you need more specialization)
<gyre007> we are trying to install pg gem...but it's failing when building native extensions...saying t's missing libpq library....however that library IS installed....https://gist.github.com/3858077
<gyre007> Ive run out of ALL ideas...
<gyre007> anyone has any ??
slainer6_ has joined #ruby
<JonnieCache> maybe you need to tell it the path
josh^ has joined #ruby
<workmad3_> gyre007: what do you get if you run 'which pg_config'?
gani has joined #ruby
<gyre007> workmad3_, let me see
<gyre007> /usr/bin/pg_config
<workmad3_> gyre007: hmm, ok looking at the output again it does find that
lggr has quit [Ping timeout: 245 seconds]
<workmad3_> gyre007: looking at the output, it can't find the PQconnectdb function in the library
hsbt is now known as hsbt_away
<workmad3_> gyre007: which is worrying
<gyre007> yeah
<gyre007> weird
slainer68 has quit [Ping timeout: 240 seconds]
hsbt_away is now known as hsbt
josh^ has quit [Remote host closed the connection]
LouisGB has quit [Ping timeout: 260 seconds]
<gyre007> arrgh
timonv has joined #ruby
<workmad3_> gyre007: spotted something?
<gyre007> nope
fermion has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
reuf has quit [Quit: Leaving]
skaczor has joined #ruby
skaczor has quit [Remote host closed the connection]
<gyre007> workmad3_, we are not using RVM
manizzle has joined #ruby
<workmad3_> gyre007: the issue isn't with rvm directly there
wedtm|away is now known as wedtm
<workmad3_> gyre007: the issue is with the libssl stuff that libpq binds to... which gives you another avenue to check into
<gyre007> ssl ?
a_a_g has quit [Read error: Connection reset by peer]
<workmad3_> gyre007: and also shows you should look at the mkmf.log file for the gem build
a_a_g has joined #ruby
<gyre007> mkf log says that pQconnect has incorrect number of args ?
MikeyV27 has joined #ruby
frogprince_mac has quit [Read error: Connection reset by peer]
nari has joined #ruby
<gyre007> looks like the SSL stuff might be involved really
lggr has quit [Ping timeout: 246 seconds]
KevinSjoberg has joined #ruby
zz_chrismcg is now known as chrismcg
lggr has joined #ruby
MHD has quit [Ping timeout: 245 seconds]
dpk has joined #ruby
emergion has joined #ruby
monkegjinni has quit [Read error: No route to host]
monkegjinni has joined #ruby
prtksxna has joined #ruby
robertotauille has joined #ruby
ttt has quit [Remote host closed the connection]
ttt has joined #ruby
mmitchell has joined #ruby
bigmcq77 has quit [Quit: Computer has gone to sleep.]
skaczor has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 255 seconds]
skaczor has quit [Client Quit]
skaczor has joined #ruby
skaczor has quit [Read error: Connection reset by peer]
skaczor has joined #ruby
gani has quit [Quit: leaving..]
skaczor has quit [Remote host closed the connection]
lggr has joined #ruby
hemanth has quit [Ping timeout: 246 seconds]
freeayu has joined #ruby
skaczor has joined #ruby
mmitchell has quit [Remote host closed the connection]
GTK has joined #ruby
Takehiro has joined #ruby
nanderoo has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
gmci has quit [Quit: Computer has gone to sleep.]
GTK has quit [Client Quit]
Elhu has quit [Quit: Computer has gone to sleep.]
larissa has joined #ruby
Hamed-R has joined #ruby
lggr has joined #ruby
gmci has joined #ruby
corlinfive1 has joined #ruby
corlinfive has quit [Ping timeout: 246 seconds]
nilg` has quit [Ping timeout: 248 seconds]
corlinfive1 has quit [Ping timeout: 246 seconds]
diegoviola has quit [Ping timeout: 252 seconds]
lggr has quit [Ping timeout: 245 seconds]
fridim_ has joined #ruby
haxrbyte_ has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
Virunga has joined #ruby
justsee has quit [Quit: Linkinus - http://linkinus.com]
yalue has joined #ruby
cibs has quit [Quit: leaving]
frogprince_mac has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
erichmenge has joined #ruby
erichmenge has quit [Client Quit]
fridim_ has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 260 seconds]
Uranio has joined #ruby
judd7 has joined #ruby
lggr has joined #ruby
geekbri has joined #ruby
asobrasil has joined #ruby
margle has joined #ruby
margle has quit [Read error: Connection reset by peer]
mark_locklear has joined #ruby
indian has joined #ruby
indian has quit [Changing host]
indian has joined #ruby
krawchyk has joined #ruby
zenformatics1 has quit [Quit: Leaving.]
margle has joined #ruby
kaawee has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
verto|off is now known as verto
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
tommyvyo has quit [Quit: Computer has gone to sleep.]
freeayu has quit [Ping timeout: 256 seconds]
iamjarvo has joined #ruby
monkegjinni has quit [Ping timeout: 260 seconds]
freeayu has joined #ruby
lggr has joined #ruby
zenformatics1 has joined #ruby
duracrisis has joined #ruby
duracrisis has quit [Changing host]
duracrisis has joined #ruby
zenformatics1 has quit [Client Quit]
zenformatics1 has joined #ruby
mgrayson has joined #ruby
hsbt is now known as hsbt_away
lggr has quit [Ping timeout: 244 seconds]
dju has quit [Quit: ZNC - http://znc.in]
margle has quit [Quit: Computer has gone to sleep.]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
lggr has joined #ruby
zenformatics1 has quit [Quit: Leaving.]
yshh has quit [Remote host closed the connection]
samphippen has joined #ruby
rakl has quit [Quit: sleeping]
margle has joined #ruby
sonnym has quit [Ping timeout: 264 seconds]
lggr has quit [Ping timeout: 240 seconds]
zenformatics1 has joined #ruby
Takehiro has quit [Remote host closed the connection]
lggr has joined #ruby
Vert has joined #ruby
Hamed-R has quit [Ping timeout: 246 seconds]
Takehiro has joined #ruby
Jork1 has quit [Quit: Jork1]
williamherry has quit [Quit: WeeChat 0.3.7]
samphippen has quit [Quit: Computer has gone to sleep.]
Jork1 has joined #ruby
tommyvyo has joined #ruby
jgarvey has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
larissa has quit [Read error: Connection reset by peer]
larissa has joined #ruby
bwwrd has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
lggr has quit [Ping timeout: 245 seconds]
cdzombak has joined #ruby
wpaulson has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
samphippen has joined #ruby
krz has quit [Quit: krz]
LouisGB has joined #ruby
iamjarvo has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
iori has quit [Remote host closed the connection]
frogprince_mac has quit [Read error: Connection reset by peer]
Elhu has joined #ruby
<banister_> is there a general name for 'class method' that can apply to instances too?
<banister_> i.e class A; def self.hi; end; end A.hi is a class method
3JTAAFCE6 has quit [Remote host closed the connection]
<banister_> but: o = Object.new; def o.hi; end; feels awkward to call o.hi a class method
jlwestsr has joined #ruby
fyolnish has joined #ruby
awestroke has quit [Remote host closed the connection]
carloslopes has joined #ruby
IrishGringo has joined #ruby
Hamed-R has joined #ruby
Hamed-R has quit [Changing host]
Hamed-R has joined #ruby
monkegjinni has joined #ruby
zaydana has joined #ruby
zaydana has left #ruby [#ruby]
ksinkar has quit [Ping timeout: 245 seconds]
ly_gs has joined #ruby
Axsuul has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 260 seconds]
whaley has quit [Ping timeout: 248 seconds]
nitti has joined #ruby
IrishGringo has quit [Client Quit]
whaley has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
jlwestsr has quit [Ping timeout: 246 seconds]
sailias has joined #ruby
jlwestsr has joined #ruby
lggr has joined #ruby
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
Uranio has quit [Ping timeout: 255 seconds]
samphippen has joined #ruby
Uranio has joined #ruby
Takehiro has quit [Remote host closed the connection]
jeffreybaird has joined #ruby
chrisja has joined #ruby
cburyta has joined #ruby
iamjarvo has joined #ruby
mango_ has joined #ruby
awarner has joined #ruby
havenn has quit [Read error: Connection reset by peer]
havenn has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
GoGoGarrett has joined #ruby
lggr has joined #ruby
jeffreybaird has quit [Read error: Connection reset by peer]
jeffreybaird has joined #ruby
answer_42 has quit [Remote host closed the connection]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
ttt has quit [Remote host closed the connection]
answer_42 has joined #ruby
Coolhand has joined #ruby
jerius has joined #ruby
ffranz has joined #ruby
morozovm has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
ffranz has quit [Read error: Connection reset by peer]
busybox42 has quit [Ping timeout: 245 seconds]
ffranz has joined #ruby
Coolhand has quit [Read error: Connection reset by peer]
awestroke has joined #ruby
mmitchell has joined #ruby
banister_ has quit [Write error: Broken pipe]
werdnativ has quit [Quit: werdnativ]
joofsh has joined #ruby
lggr has joined #ruby
rh1n0 has joined #ruby
rh1n0 has left #ruby [#ruby]
chimay has quit [Ping timeout: 246 seconds]
joeycarmello has joined #ruby
busybox42 has joined #ruby
awarner has quit [Remote host closed the connection]
duracrisis has quit [Ping timeout: 252 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
wuzzzzaah has joined #ruby
prtksxna has quit [Remote host closed the connection]
DuoSRX has joined #ruby
supd has quit [Quit: Konversation terminated!]
Pochacco has joined #ruby
awarner has joined #ruby
_mak has quit [Remote host closed the connection]
frogprince_mac has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
margle has quit [Quit: Computer has gone to sleep.]
monkegjinni has joined #ruby
nari has quit [Ping timeout: 256 seconds]
nitti has quit [Remote host closed the connection]
lggr has joined #ruby
_mak has joined #ruby
nitti has joined #ruby
daniel_- has joined #ruby
margle has joined #ruby
margle has quit [Client Quit]
asteve has joined #ruby
Coolhand has joined #ruby
Takehiro has joined #ruby
arturaz has quit [Ping timeout: 264 seconds]
joeycarmello has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 246 seconds]
thomas`- has quit [Quit: Leaving]
hsbt_away is now known as hsbt
Qodosh has joined #ruby
wuzzzzaah has quit [Ping timeout: 245 seconds]
joshman_ has joined #ruby
Hamed-R has quit [Quit: Leaving]
elux has joined #ruby
lggr has joined #ruby
ltsstar has joined #ruby
wuzzzzaah has joined #ruby
verto is now known as verto|off
thmzlt has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
rovalent has joined #ruby
Nisstyre has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
iamjarvo has quit [Ping timeout: 246 seconds]
ananthakumaran has quit [Quit: Leaving.]
Pochacco has quit [Quit: Pochacco]
Takehiro has quit [Read error: No route to host]
Takehiro has joined #ruby
Qodosh has quit []
blazes816 has quit [Quit: blazes816]
daniel_- has quit [Quit: WeeChat 0.3.9]
daniel_- has joined #ruby
daniel_- has quit [Client Quit]
lggr has quit [Ping timeout: 248 seconds]
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
bluenemo has quit [Remote host closed the connection]
<mango_> what does this mean in ruby
<mango_> return [{count : 1}]
<Mon_Ouie> {count: 1} is just another syntax for {:count => 1}
<Mon_Ouie> i.e. it just returns an array that contains a hash
Guest59749 has quit [Changing host]
Guest59749 has joined #ruby
Guest59749 is now known as starship
slainer6_ has quit [Ping timeout: 240 seconds]
fermion has joined #ruby
<mango_> ah I see, ok. where 'count' is the key?
lggr has joined #ruby
a_a_g has quit [Quit: Leaving.]
samphippen has quit [Quit: Computer has gone to sleep.]
<Mon_Ouie> No, the key is :count, a symbol, it doesn't access a local variable or perform a method call
codespectator has joined #ruby
mgates has joined #ruby
rippa has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
Neomex has joined #ruby
stopbit has joined #ruby
<mango_> I see, ok
philcrissman has joined #ruby
slainer68 has joined #ruby
lggr has joined #ruby
mengu has joined #ruby
<mango_> @Mon_Ouie - thanks
dju has joined #ruby
beiter has joined #ruby
ksinkar has joined #ruby
larissa has quit [Quit: Leaving]
ksinkar has quit [Client Quit]
bbttxu_ has joined #ruby
<matti> Mon_Ouie: :)
LouisGB has quit [Read error: Connection reset by peer]
LouisGB has joined #ruby
Morkel has quit [Quit: Morkel]
wuzzzzaah has quit [Ping timeout: 252 seconds]
lggr has quit [Ping timeout: 246 seconds]
chimay has joined #ruby
wuzzzzaah has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
samphippen has joined #ruby
franksch has joined #ruby
<shevy> mango_ keep in mind the historic growth of this syntax
<shevy> before ruby 1.9 it was always
<shevy> :count => 1
<shevy> until the rails folks thought that was too much to type
<shevy> so it now is possible to do:
<shevy> count: 1
rabidpraxis has joined #ruby
lggr has joined #ruby
<matti> I want to do count, 1
<workmad3_> shevy: I think you give too much credit to the rails team there
<matti> ;]
<shevy> ruby 3.0 will be officially called ruails 1.0
<shevy> workmad3_ they are powerful
<matti> They suck
<shevy> lol I am going to use matti as my weapon of choice should I ever have to fight rails
dju has quit [Quit: ZNC - http://znc.in]
<matti> shevy: Arrr arrr
<matti> shevy: Arrr
<matti> ;D
ananthakumaran has joined #ruby
<shevy> yeah
<matti> shevy: But, get Zed A Shaw instead of me.
<shevy> nah
<matti> ;D
<shevy> he ragequitted before
<matti> Did he?
<matti> Zed?
<matti> Can't be
<workmad3_> matti: yeah, that doesn't sound like Zed...
<shevy> sure, he used to have a rant, but he took it off when he was too ashamed of it at a later time again
<matti> That was not Zed.
<shevy> !!!
<matti> ?!?!
<shevy> who else was it... his evil twin brother??
<matti> An impostor.
Pochacco has joined #ruby
<matti> Shaw A Ze
<matti> Shaw A Zed
<matti> ;]
<shevy> oh man
<kaleido> this would be a great time for a flash-in of speed racer with an exxagerated "unghgunnghghghngug"
<shevy> I am going to do this too
<matti> kaleido: Hahaha
dju has joined #ruby
<shevy> everytime I write controversial stuff, I am going to say it was my evil twin
<matti> shevy: Every time I write controversial stuff, I say you made me do it ;]
nitti has quit [Remote host closed the connection]
<franksch> trying to understand bundler, gems and so on - how does the generated gem in the pkg folder get loaded?
wuzzzzaah has quit [Quit: wuzzzzaah]
no_worries has joined #ruby
<matti> franksch: ?
dnstbr has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
carlyle has joined #ruby
<franksch> when I clone vagrant and do a bundle exec how does it know to use pkg/vagrant<version>.gem?
the_jeebster has joined #ruby
daniel_hinojosa has joined #ruby
margle has joined #ruby
<matti> franksch: I think it just look for *.gem and installs the first one there.
<franksch> I mean is it a convention or is it part of bundler
<matti> franksch: Probably rubygems.
<franksch> I am learning about ruby and all these tools so I am not sure what is a convention and which tool is doing what
FeurFrei has joined #ruby
cakehero has joined #ruby
ZubKonst_ has joined #ruby
awarner has quit [Remote host closed the connection]
<matti> franksch: gem / Ruby gems are what builds / assembles you a Gem file.
<JonnieCache> zed shaw is his own evil twin
<franksch> yes
<shevy> franksch bundler came after gem
<matti> franksch: Bundler is a dependency management / execution dependency mangement tool
<franksch> and then it stores it under pkg
<franksch> ok
<shevy> they try to be like the magical app that solves all problems
<matti> JonnieCache: We do.
<matti> JonnieCache: banister has two, even ;]
<shevy> rubygems is much simpler, every program has a .gem file
<shevy> and all installed .gem files are stored locally
<shevy> i.e. usually in a cache/ subdirectory
<shevy> like /usr/lib/ruby/gems/1.9.1/cache/ for some sane linux systems
<franksch> yes but the vagrant gem only stored under pkg not system-wide
<franksch> so I was curious how it could still find it
<shevy> insane linux systems like debian change this and thus confuse the poor souls who think that debian is great
<shevy> where is the vagrant gem?
<matti> shevy: Under the bed.
<shevy> lol
<workmad3_> shevy: bundler does just use rubygems, you realise? bundler basically only hooks in for dependency resolution
mohits has joined #ruby
<franksch> hehe
lggr has joined #ruby
ZubKonst has quit [Ping timeout: 246 seconds]
<shevy> workmad3_ bundler fails for me where gem does not
mohits has quit [Remote host closed the connection]
<workmad3_> shevy: rubygems fails for me where bundler does not :P
vmatiyko has joined #ruby
<shevy> bundler's fail chance is about ten times higher than gem's fail chance
<workmad3_> shevy: I've yet to have bundler fail on me
<shevy> it failed for me when I tried to official rails tutorial
<shevy> *the
<workmad3_> shevy: and I've had rubygems dependency resolution crap out on me nastily
<shevy> must be because of a stupid gem :)
<workmad3_> shevy: nope
whaley has quit [Remote host closed the connection]
<shevy> which gem failed for you?
<shevy> franksch where is vagrant-1.0.5.gem ?
<franksch> vagrant.1.1.0.dev gem is in my pkg folder in the cloned src tree
<shevy> ah so it is an unstable gem?
<shevy> the latest official one seems to be 1.0.5
<workmad3_> shevy: rack updated, which meant that rack application servers could pull in the new version (which was correct) but if that activated before rails (which couldn't use the latest version of rack) then boom
<franksch> shevy: yes I wanted to test a patch i wrote
<workmad3_> shevy: which only exploded because rubygems activates gems linearly rather than all at once
<shevy> franksch well, install it first? then look at the output of "gem list"
<franksch> and then I wanted to understand how this works
rippa has quit [Ping timeout: 248 seconds]
<franksch> gem list only contains vagrant 1.0.5 not 1.1.0.dev
<shevy> ok good
<workmad3_> shevy: as with many issues that need more complexity, the issue wasn't a single source of failure though... it was a convergence of correct circumstances into a failure
<shevy> well why does it not install 1.1.0?
<shevy> workmad3_ gem sucks too
<shevy> matz should ban bundler and gems
<workmad3_> shevy: in favour of what? :P
bigmcq77 has joined #ruby
<shevy> I dunno, he forgot to add add-on installations to ruby :(
fir_ed has quit [Read error: Connection reset by peer]
<shevy> languages like nimrod dont have gem-like things
ttt has joined #ruby
<shevy> so you have to download all manually
<franksch> but when I do bundle/exec vagrant it does use the 1.1.0.dev version
<shevy> franksch, hmmmm no idea how to resolve bundle issue. ask workmad3_ he knows :P
<workmad3_> franksch: what's in your Gemfile?
<franksch> ok
<franksch> source "http://rubygems.org" \n gemspec
rehat has joined #ruby
<workmad3_> franksch: ok, what's in your gemspec? :)
<shevy> lol
lggr has quit [Ping timeout: 256 seconds]
<workmad3_> franksch: I'd suggest gisting that, not pasting it in-chan
<franksch> one sec
robotmay has joined #ruby
lggr has joined #ruby
Nisstyre has quit [Ping timeout: 260 seconds]
<workmad3_> franksch: hmm, what was the original question sorry? was it basically 'how does bundle exec <whatever> activate the dev version rather than the installed version when I'm in the gem project folder'?
tagrudev has quit [Quit: late again]
ttt has quit [Ping timeout: 240 seconds]
<franksch> yeah I am trying to understand ruby conventions, best practices and how these tools work
<workmad3_> franksch: right, well in this case - bundler isn't activating the gem in the pkg/ directiory
rh1n0 has joined #ruby
<franksch> it seems to load it from pkg, but how does it know that is that a bundler convention
rh1n0 has left #ruby [#ruby]
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
undersc0re97 has joined #ruby
<workmad3_> franksch: what it's doing is setting things up to load the gems in the gemspec followed by setting things up to load the current project using the project directories
Pochacco has quit [Quit: Pochacco]
<workmad3_> franksch: 'bundle exec' is a bundler command for basically doing that
ananthakumaran has quit [Ping timeout: 255 seconds]
<franksch> ok but how does it know about pkg? I grepped the sources tree and there is no mention of pkg
<workmad3_> it doesn't know about pkg
<workmad3_> the gem in pkg is basically unused
AlbireoX has joined #ruby
<franksch> ph
<franksch> oh*
<franksch> hmm
uris has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
<workmad3_> that's just a build artifact... when you do 'bundle exec' it's running the code in lib/ basically
<franksch> ah
<shevy> bundler enriches franksch's life greatly
<franksch> I see
soulisson has joined #ruby
<shevy> I think workmad3_ is the only person here who knows much about bundler :)
<workmad3_> shevy: hardly :P
<franksch> bundler is now only used to setup the gem dependencies but the actual sources are interpreted
john687 has joined #ruby
steffes has joined #ruby
<john687> hi everyone
jeffreybaird has joined #ruby
<workmad3_> franksch: bundler basically sets things up so that the code that your ruby runtime sees are the gems in the gemspec and the code in lib/
lggr has quit [Ping timeout: 245 seconds]
<franksch> workmad3_: ok
AlbireoX`Laptop has joined #ruby
<franksch> that was what I wanted to know :)
AlbireoX has quit [Read error: Connection reset by peer]
adaoraul has joined #ruby
<john687> i just started to learn ruby and i have some questions...can anyone help me?
<franksch> I also heard about rvm
<shevy> john687 only if you ask questions
FeurFrei has quit [Ping timeout: 246 seconds]
Eplemosen has joined #ruby
<john687> thats true shevy :) ok my first question is: array is an instance of class?
axl_ has joined #ruby
Uranio has quit [Quit: WeeChat 0.3.8]
<workmad3_> john687: Array is an instance of Class, yes
<shevy> john687 hmmmm
monkegjinni has quit [Read error: No route to host]
<workmad3_> john687: but an array is an instance of Array
monkegjinni has joined #ruby
Uranio has joined #ruby
<burgestrand> And Array is a class
freeayu has quit [Remote host closed the connection]
lggr has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
<john687> ok i ask just to get it clear to my head, second question...when self is used within the definition of an instance method, it refers to the current instance of the class?
margle has quit [Quit: Computer has gone to sleep.]
nitti has joined #ruby
mahmoudimus has joined #ruby
<burgestrand> Not necessarily, but most often yes.
ltsstar has quit [Ping timeout: 260 seconds]
Nisstyre has joined #ruby
<awestroke> is it possible to use a certain rbenv version for a directory and all subdirectories
<awestroke> ?
<burgestrand> john687: self refers to self. Sometimes it will be a class, sometimes it will be an instance of a class. It is, however, always an object.
<wmoxam> anything is possible. Is it easy or practical is another question
<awestroke> sometimes it is the weird # object
Axsuul has joined #ruby
quest88 has joined #ruby
<matti> Interesting.
mahmoudimus has quit [Client Quit]
sspiff has quit [Remote host closed the connection]
CJNE has quit [Ping timeout: 276 seconds]
yshh has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
<workmad3_> wmoxam: not all things are possible... squaring the circle with a compass and straight-edge isn't possible :P
steffes has quit [Remote host closed the connection]
<john687> self it is an object like everything in ruby right? :)
<workmad3_> john687: it's always a reference to an object
<matti> john687: It refernces current object-ish.
<workmad3_> john687: it's basically the current 'context'
<wmoxam> workmad3_: lulz
<matti> john687: Like this in Python.
hekin has joined #ruby
<hekin> 0.0249 * 100 = 2.4899999999999998
<hekin> tested under Ruby 1.9.3p125
<workmad3_> hekin: yup
<hekin> any clue how to avoid that?
<workmad3_> hekin: welcome to floating point numbers
<hekin> i want it to be 2.49
lggr has joined #ruby
<hekin> :D
<workmad3_> hekin: so would we all
<workmad3_> hekin: unfortunately, we can't always get that wish
<hekin> workmad3_: would Float class help?
<workmad3_> hekin: no
<hekin> damn it
moshee has quit [Ping timeout: 260 seconds]
<workmad3_> hekin: BigDecimal might help
<hekin> cool
<hekin> thanks
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<john687> so to be clear when self is used in a method of a class, it refers to the method itself or to class?
<workmad3_> hekin: assuming that the issue is that 2.49 isn't representable, rather than 0.0249 not being representable
dakine has joined #ruby
<hekin> cool
yalue has quit [Remote host closed the connection]
<workmad3_> hekin: if 0.0249 isn't representable then you'll hit a floating point rounding error before your BigDecimal is created
axl_ has quit [Quit: axl_]
<hekin> yeah
<hekin> what do you mean by "representable"?
<hekin> workmad3_: what do you mean by "representable"?
<workmad3_> hekin: floating point numbers are binary representations of decimals
<hekin> workmad3_: you mean "abcde"
<hekin> ?
iamjarvo has joined #ruby
<hekin> BigDecimal.new("abcde")
<workmad3_> hekin: no, I mean 2.49 <-- that's a decimal representation of the number
<hekin> workmad3_: yeah, i know of that
axl_ has joined #ruby
<hekin> yeah
<workmad3_> hekin: however, not all decimal numbers can be encoded in a finite number of digits in binary
dakine has quit [Client Quit]
<workmad3_> hekin: in the same way that not all rational numbers can be represented in a finite number of digits in decimal
margle has joined #ruby
<workmad3_> hekin: e.g. 1/3
irleif has joined #ruby
<hekin> workmad3_: yeah, make sense, thanks a lot
beiter has quit [Quit: beiter]
<Xeago> val = value.split(",") if value.class == String
<Xeago> I want to be able to pass an array and a string as value
<Xeago> and have val be an array
<Xeago> is that correct?
<workmad3_> Xeago: I'd probably prefer value.is_a?(String)
<Xeago> ty, probably is what I was looking for
sent-hil has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
davidcelis has quit [Quit: K-Lined.]
frogprince_mac has quit [Quit: Leaving...]
<john687> public methods of a class can be redefined after an instance of that class is instantiated?
nitti_ has joined #ruby
<Xeago> private methods aswell with trickeries
<workmad3_> hekin: if you wanted to be sure, you should do 'require "bigdecimal"; val = BigDecimal(249) / BigDecimal(10000)'
<burgestrand> john687: yes, methods can be removed and added at runtime to pretty much all objects
<burgestrand> with a few exceptions
<hekin> workmad3_: let me try that
<workmad3_> hekin: that would let you start with a bigdecimal containing '0.0249'
<hekin> yeah
<hekin> it give me 0.0249
nitti__ has joined #ruby
quest88 has quit [Quit: quest88]
<hekin> workmad3_: no, it gives me an object
<workmad3_> hekin: BigDecimals are objects
<burgestrand> (you cannot define singleton methods on symbols, or numbers)
<john687> burgestrand: even if the class is instantiated?
<burgestrand> john687: yes
<Xeago> john687: yes
<workmad3_> hekin: the same as floats and integers are objects
lggr has joined #ruby
<Xeago> classes are objects aswell
<burgestrand> john687: you can even add and remove methods from an instance of a class, and only that instance will be affected
<hekin> workmad3_: yeah, everything in Ruby is object, :)
blazes816 has joined #ruby
davidcelis has joined #ruby
sirecote is now known as sirecote
nitti has quit [Ping timeout: 240 seconds]
jprovazn is now known as jprovazn_away
schaerli has joined #ruby
abstrusenick has joined #ruby
davidcelis has quit [Client Quit]
burgestrand has quit [Quit: Leaving.]
nitti_ has quit [Ping timeout: 240 seconds]
<john687> im still confused about that! when an instance of a class is instantiated, is it possible to define again a public method in that class?
<reactormonk> john687: sure, all dynamic
xbayrockx has quit []
Eplemosen has quit [Quit: NOPE]
lusory has quit [Ping timeout: 246 seconds]
monkegjinni has quit [Remote host closed the connection]
arturaz has joined #ruby
nitti__ has quit [Ping timeout: 260 seconds]
<JonnieCache> john687: you can change the class and have all the previously instantiated objects change too, or you can change just one object without affecting others
<JonnieCache> you can pretty much do what you want. its more a question of what is and isnt a good idea
TheFuzzb_ has joined #ruby
sent-hil has quit [Remote host closed the connection]
TheFuzzball has quit [Read error: Operation timed out]
irleif has quit [Quit: Computer has gone to sleep.]
TheFuzzb_ has quit [Excess Flood]
schaerli has quit [Remote host closed the connection]
<john687> ok i think i get it now...some practice will help even more ;)
nitti has joined #ruby
ly_gs has quit [Remote host closed the connection]
xpen has joined #ruby
dakine has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
kaawee has quit [Read error: Operation timed out]
anachronistic has joined #ruby
nitti_ has joined #ruby
kaawee has joined #ruby
fantazo has quit [Read error: Operation timed out]
Guedes has quit [Read error: Operation timed out]
elux has quit [Read error: Connection reset by peer]
fantazo has joined #ruby
elux has joined #ruby
nitti__ has joined #ruby
Guedes has joined #ruby
TheFuzzball has joined #ruby
apok has joined #ruby
<john687> ok i have another question more general this time...what is "foo" that i see almost everywhere?
mengu has quit [Ping timeout: 246 seconds]
<kaleido> an example
lggr has joined #ruby
<blazes816> foo, bar, and less commonly, baz are common terms to use as example labels for things, when the thing doesn't matter
nitti has quit [Ping timeout: 246 seconds]
irleif has joined #ruby
<blazes816> instead of describing a class User, I might just call it Foo, to be short
<john687> so it has nothing to do with ruby coding?
jerius has joined #ruby
<anachronistic> nope; part of geek humor (descends from the term 'fubar') :)
Neomex has quit [Quit: Neomex]
nitti_ has quit [Ping timeout: 245 seconds]
<kaleido> tango&cash ftw
ananthakumaran has joined #ruby
irleif has quit [Client Quit]
ixti has joined #ruby
carloslopes has quit [Quit: Leaving.]
rippa has joined #ruby
beneggett has joined #ruby
<john687> so foo and bar its just "names" for objects... that means it could be strings or numbers?
lggr has quit [Ping timeout: 246 seconds]
<rking> john687: Depends on context. Obviously foo.gsub 'a', 'b' is a string for every `foo`
<JonnieCache> its the same way x and n are used in mathematics
<rking> Unless you want to go down the route of class Fixnum; def gsub… end end
<rking> I bet you won't be the first. ☺
<john687> if i use foo + bar what will happen?
yoklov has joined #ruby
<rking> john687: If `foo` is a String, then String#+ will be called.
CannedCorn has joined #ruby
uris_ has joined #ruby
<CannedCorn> hey guys im wondering what the best way to setup a web server for pluggable apps is
<rking> CannedCorn: What are pluggable apps?
<CannedCorn> i want nginx to reverse proxy requests to rack based apps
bigmcq77 has quit [Quit: Computer has gone to sleep.]
uris has quit [Read error: Connection reset by peer]
<CannedCorn> rack based or potentially python
<rking> nginx has a builtin 'upstream' directive that works well.
<CannedCorn> what does that mean
Ethan has joined #ruby
Ethan has quit [Changing host]
Ethan has joined #ruby
lggr has joined #ruby
martinklepsch has joined #ruby
<CannedCorn> ok so that is cool but what I'm asking is, what kind of server would you use behind nginx
bradleyprice has joined #ruby
<CannedCorn> so you could have a bunch of folders containing either rack apps
Eplemosen has joined #ruby
<CannedCorn> or python apps and just serve them up correctly depending on what kind of app it is
<CannedCorn> is there anything like that
<CannedCorn> ?
lolmaus has quit []
<rking> You'd need a "middle-end" server that routes between them somehow.
Tarential has joined #ruby
<CannedCorn> is there such a thing
<rking> If I understand your scenario.
<CannedCorn> i thought there was a dynamic way to mount apps
<CannedCorn> lets start with just ruby
jerius has quit [Quit: Computer has gone to sleep.]
CannedCorn has quit [Client Quit]
<john687> so in foo+bar, bar is passed as an argument to foo's + method?
aganov has quit [Remote host closed the connection]
<rking> john687: Exactly.
bigmcq77 has joined #ruby
<john687> ok i got it..thanks :)
undersc0re97 has quit [Ping timeout: 252 seconds]
jerius has joined #ruby
john687 has quit [Quit: irc2go]
lggr has quit [Ping timeout: 260 seconds]
kitofr has quit [Read error: Connection reset by peer]
timonv has quit [Read error: No route to host]
maesbn has quit [Remote host closed the connection]
timonv has joined #ruby
Spami has quit [Ping timeout: 256 seconds]
Uranio has quit [Quit: WeeChat 0.3.8]
jerius has quit [Client Quit]
vmatiyko has quit [Quit: Page closed]
frogprince_mac has joined #ruby
frogprince_mac has quit [Read error: Connection reset by peer]
lggr has joined #ruby
frogprince_mac has joined #ruby
Uranio has joined #ruby
gmci has quit [Read error: Connection reset by peer]
nitti__ has quit [Remote host closed the connection]
dr_bob has quit [Quit: Leaving.]
hoelzro is now known as hoelzro|away
nitti has joined #ruby
mikepack has joined #ruby
lggr has quit [Read error: Connection reset by peer]
lggr has joined #ruby
gmci has joined #ruby
nateberkopec has joined #ruby
Asher has quit [Quit: Leaving.]
vmatiyko has joined #ruby
ElderFain_ has joined #ruby
Asher has joined #ruby
_mak has quit [Remote host closed the connection]
ElderFain has quit [Ping timeout: 272 seconds]
lggr has quit [Ping timeout: 255 seconds]
sent-hil has joined #ruby
SegFaultAX|work has joined #ruby
eldariof has quit []
margle has quit [Quit: Computer has gone to sleep.]
samphippen has quit [Quit: Computer has gone to sleep.]
wargasm has quit [Read error: Connection reset by peer]
franksch has quit [Ping timeout: 245 seconds]
F1skr has joined #ruby
lggr has joined #ruby
chrishunt has quit [Ping timeout: 246 seconds]
rovalent has quit [Quit: Linkinus - http://linkinus.com]
DarkStar1 has joined #ruby
<DarkStar1> evenining all. Am extremely new to ruby, and I've just been given the tarball of a site apparently developed in ruby. How can I find out what version it is so that I may install the same version on my server
irleif has joined #ruby
Solnse has joined #ruby
<epochwolf> DarkStar1: um… unless there is some reference in the docs, it's going to be a little hard to determine more than 1.9 or 1.8
<epochwolf> does the app have any jar files in it?
baroquebobcat has joined #ruby
philcrissman has quit [Remote host closed the connection]
eikko is now known as akem
lggr has quit [Ping timeout: 276 seconds]
patatras has joined #ruby
Ankhers has joined #ruby
akem is now known as akemEikko
baphled has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
<epochwolf> DarkStar1: I'm making tea and after it's brewed I'm leaving for work. If you want some help, speak up.
axl_ has quit [Quit: axl_]
lusory has joined #ruby
xpen has quit [Remote host closed the connection]
axl_ has joined #ruby
patatras has left #ruby [#ruby]
senny has quit [Remote host closed the connection]
DrShoggoth has joined #ruby
davidcelis has joined #ruby
<DarkStar1> epochwolf: sorry I got called away
<DarkStar1> I'm looking now
<epochwolf> ah
uris_ has quit [Read error: Connection reset by peer]
dju has quit [Quit: ZNC - http://znc.in]
uris has joined #ruby
dnstbr has quit [Quit: Computer has gone to sleep.]
<Xeago> anyone having alot of time?
yoklov has quit [Quit: bye!]
F1skr has quit [Quit: WeeChat 0.3.9]
<Xeago> do want idlefingers/railscasts textmate theme for (mac)vim
<epochwolf> If there is a jar file, you probably need to use jruby.
philcrissman has joined #ruby
<epochwolf> Xeago: pretty sure that's been done.
lggr has quit [Ping timeout: 245 seconds]
SegFaultAX|work has quit [Ping timeout: 244 seconds]
nykac has joined #ruby
codespectator has quit [Ping timeout: 245 seconds]
<DarkStar1> epochwolf: are the jar files in a specific directory path
<DarkStar1> So far I haven't found any
<DarkStar1> epochwolf: sec I'm so damn stupid at times
<blazes816> find . -name *.jar
AlbireoX`Laptop has quit [Remote host closed the connection]
<rking> find . -name \*.jar
AlbireoX has joined #ruby
<rking> Don't want those wildcards out in the wild.
mohits has joined #ruby
jso has quit []
lggr has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
harushimo has joined #ruby
<shevy> lol
<shevy> better wildcards than wildcats
mahmoudimus has joined #ruby
<epochwolf> DarkStar1: is there a file called
<epochwolf> "Gemfile" in the root of the project?
<DarkStar1> yeah
<DarkStar1> no jar files from grepping the folder project
Solnse has quit [Ping timeout: 256 seconds]
<DarkStar1> my computer is crashing. Need to reset
<epochwolf> DarkStar1: is there a Gemfile?
TomJ has quit [Quit: TomJ]
<harushimo> I'm writing a rock paper scissors game. I just want to see if I setup my hash correctly
<epochwolf> okay, good buye
<DarkStar1> epochwolf: yesh
<DarkStar1> there's a Gem file
AlbireoX has quit [Ping timeout: 246 seconds]
zenformatics1 has quit [Quit: Leaving.]
<epochwolf> DarkStar1: gist that for us and we might be able to guess which version you want
Diranged has joined #ruby
<Diranged> ive got an array of server:host pairs. .. ie, foo = [ 'localhost:123', 'foobar:4123' ]… in a ruby template i want to essentailly do a foo.join(',') .. but i want to strip out the port numbers entirely (and the semicolons)..
<Diranged> any thoughts on how to do that simply?
<epochwolf> Diranged: regex
<DarkStar1> epochwolf: don't know what a gist is but here is an pastebin: http://fpaste.org/OqZj/
AlbireoX has joined #ruby
<Diranged> epochwolf: im not sure how to do that though in a ruby template.. (really this is happening in a ruby template thats parsed by puppet.. but anyways)
timonv has quit [Remote host closed the connection]
mneorr has joined #ruby
Synthead has joined #ruby
daniel_- has quit [Quit: WeeChat 0.3.9]
<Diranged> is there a way to run a regex across the entire array of elements before i do the .join?
lggr has quit [Ping timeout: 255 seconds]
artm has quit [Quit: artm]
robotmay has quit [Remote host closed the connection]
ryanlecompte has joined #ruby
codespectator has joined #ruby
xclite has joined #ruby
busybox42 has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
dju has joined #ruby
<blazes816> Diranged: you could #map it
haxrbyte has joined #ruby
haxrbyte has quit [Remote host closed the connection]
a_a_g has joined #ruby
cj3kim has joined #ruby
<DarkStar1> epochwolf: any joy
<epochwolf> DarkStar1: well, it's a rails app
<Diranged> blazes816: can you give me any example syntax?
haxrbyte has joined #ruby
lggr has joined #ruby
<epochwolf> DarkStar1: it's also using an external repository for the source. I'm not sure you can install this.
beneggett has joined #ruby
SegFaultAX|work has joined #ruby
<blazes816> Diranged: my_array.map{|e| e.gsub /:\d+\z/, '' }.join
noxoc has quit [Quit: Leaving.]
<blazes816> ish
<DarkStar1> you gotta be kidding.
<epochwolf> DarkStar1: I'm not. Line 6 sources a git repository hosting a fork of refinerycms
<Diranged> blazes816: thats sweeet, thank you it works perfectly.
luckyruby has joined #ruby
<blazes816> you need access to git@ns1.synbioz.com
<blazes816> np
martinklepsch has quit [Ping timeout: 246 seconds]
<epochwolf> DarkStar1: line 21 does the same thing for another library
a_a_g1 has joined #ruby
<DarkStar1> Ok
<epochwolf> DarkStar1: since it uses ssh, you'll need either a private key or the password for that server.
<DarkStar1> sec let me check the war file I got
<epochwolf> wait, war file?
<blazes816> hahaha
<shevy> hmmm
<epochwolf> DarkStar1: that means you'll need to set up jruby…
bigmcq77 has quit [Quit: Computer has gone to sleep.]
<shevy> guys
<epochwolf> war files are used for java deployment.
<shevy> .sort_by! was not available before ruby 1.9 ?
<DarkStar1> sorry. I was talking to someone else whilst typing
a_a_g has quit [Ping timeout: 256 seconds]
<DarkStar1> I don't mean war file
<epochwolf> shevy: check the docs
<DarkStar1> I meant tar.gz file :)
<epochwolf> haha
<epochwolf> okay, I'm off to work
<DarkStar1> Ok I need to rest
artm has joined #ruby
<shevy> anyone could test please
carlyle has quit [Remote host closed the connection]
DarkStar1 has quit [Quit: DarkStar1]
<shevy> array = %w( a bc def ); array.sort_by!
<epochwolf> shevy: not your personal army.
hadees has quit [Quit: hadees]
<shevy> epochwolf I understand that you are not going to test. perhaps someone else could
<blazes816> check the docs for 1.8
<blazes816> i would if I had 1.8
<shevy> hmm ok
<epochwolf> Id on't have 1.8 installed
lggr has quit [Ping timeout: 245 seconds]
busybox42 has joined #ruby
<shevy> yeah I forgot that
<shevy> makes sense now :)
<shevy> if you guys don't have 1.8 installed, you can't test hehe
<shevy> I don't always think things through
eignerchris has joined #ruby
<harushimo> am I doing something wrong
<harushimo> I'm trying to compare the results but I'm getting an error
<shevy> what do you expect to return there harushimo
jlwestsr has quit [Ping timeout: 246 seconds]
jso has joined #ruby
<harushimo> I put the winning outcomes in the game
<shevy> well, P S R are supposed to be constants
Spooner has joined #ruby
Iszak has quit [Quit: User has gone to sleep.]
<harushimo> yes
ElderFain_ is now known as ElderFain
<shevy> and you did not define those constants before
<shevy> so ruby must give you a NameError
<harushimo> you are right
<harushimo> it is NameError
lggr has joined #ruby
<harushimo> I just started learning ruby. you knew right away
<shevy> you could define those constants
<blazes816> you probably wanted them to be strings
<shevy> well, you need to "think" like the ruby parser
<blazes816> but forgot to quote them
<shevy> FOO FO F are all constants
simao_ has joined #ruby
<shevy> "FOO" "FO" "F" are all strings
simao_ has quit [Client Quit]
<harushimo> oh okay
hekin has quit [Quit: hekin]
brianpWins has joined #ruby
<shevy> you can define a constant if you want like
<shevy> P = "something"
xclite has quit [Remote host closed the connection]
<harushimo> I want p to be return
Morkel has joined #ruby
<harushimo> I'm writing a rock paper scissors
simao_ has joined #ruby
simao_ has quit [Client Quit]
xclite has joined #ruby
wchun has quit [Quit: Leaving]
Diranged has left #ruby [#ruby]
<blazes816> harushimo: https://gist.github.com/3859855
<blazes816> that uses symbols, which I recommend for this
<harushimo> ok
<harushimo> thanks I didn't know you couldn't do this
<harushimo> why are putting :
<harushimo> couldn't we do r => then go into the hash table
<harushimo> or "r" => then the hash table
<harushimo> I setup my list with a player name and R, P, S
williamcotton has joined #ruby
lggr has quit [Ping timeout: 276 seconds]
<harushimo> please correct me if I'm not understanding this concept
deadghost has quit [Ping timeout: 246 seconds]
<Sou|cutter> how you represent r/p/s isn't important
<Sou|cutter> it can be a string, a symbol, an object
vitoravelino`afk is now known as vitoravelino
<harushimo> ok
<Sou|cutter> just be consistent
GoGoGarrett has quit [Remote host closed the connection]
<harushimo> ok
<harushimo> now I'm slowly getting it
jrist is now known as jrist-dogwalk
lggr has joined #ruby
<harushimo> so I can setup the hash table like this { r: => {:s => :r, :p => :p} (even without the colon)
<harushimo> from what your saying, it has to be consistent
evilsush1 has joined #ruby
<Sou|cutter> well the colons are creating symbols
ewag has quit [Ping timeout: 246 seconds]
xclite has quit [Remote host closed the connection]
evilsush1 has quit [Client Quit]
<harushimo> creating symbols what you do mean?
<Sou|cutter> so if you intend on representing rps with symbols, then that is what I mean by being consistent
schaerli has joined #ruby
hadees has joined #ruby
Virunga has quit [Remote host closed the connection]
jlwestsr has joined #ruby
xclite has joined #ruby
<harushimo> ok
burgestrand has joined #ruby
<harushimo> I setup my test list like this ["Harushimo", "P"] but I'm going to use the downcase method. It could be upper case or lowercase
<harushimo> that is a string
cantonic_ has joined #ruby
<harushimo> I setup this list last night
chrishunt has joined #ruby
<blazes816> you can call #to_sym on a string to get a symbol
<Sou|cutter> in that case you either want to stick with strings-only, or convert your strings to symbols
<blazes816> so you could do like, m1.downcase.to_sym
<blazes816> so you could pass 'R', 'r', or :r
pleal has joined #ruby
daniel_- has joined #ruby
daniel_- has joined #ruby
daniel_- has quit [Changing host]
<harushimo> oh okay
lggr has quit [Ping timeout: 256 seconds]
<harushimo> for both m1 and m2, we can do that
<harushimo> i got it
jimeh2 has quit [Ping timeout: 255 seconds]
duck_puncher has joined #ruby
cantonic has quit [Ping timeout: 240 seconds]
cantonic_ is now known as cantonic
lenswipe has joined #ruby
<lenswipe> hey guys
<harushimo> let me re work this function. I'll send another gist if I have any questions
<lenswipe> i nede to run a ruby gem from command line
<lenswipe> how would i go about it?
<harushimo> all of you are good teachers. I appreciate it
<lenswipe> its from terminal
<lenswipe> simply using the gem name gets me an error telling me command was not recognised
<harushimo> couldn't you use rvm for that
JonnieCache has quit [Ping timeout: 240 seconds]
pleal has left #ruby [#ruby]
<harushimo> doesn't rvm install the ruby gems
Synthead has quit [Read error: Connection reset by peer]
<epochwolf> lenswipe: which gem?
<Sou|cutter> lenswipe: not all, or even most, ruby gems come with executables
darthdeus has joined #ruby
<Sou|cutter> lenswipe: yeah, what are you trying to do exactly?
_md has joined #ruby
adaoraul has quit [Quit: Textual IRC Client: www.textualapp.com]
Jork1 has quit [Quit: Jork1]
morozovm has quit [Read error: Connection reset by peer]
<lenswipe> epochwolf, pagoda
<lenswipe> im trying to run the pagoda gem
<lenswipe> its for pagodabox, it works on windows but i cant get it to run under linux
morozovm has joined #ruby
<lenswipe> pagoda -a <app name> tunnel -c db1
CJNE has joined #ruby
ltsstar has joined #ruby
<harushimo> gem install pagoda.
lampe2 has joined #ruby
lggr has joined #ruby
<harushimo> if you are running linux
chussenot has quit [Quit: chussenot]
iamjarvo has quit [Ping timeout: 245 seconds]
<theRoUS> how can i tell the yardoc command that i want LICENCE.txt to use *no* markup rather than text? without modifying the LICENCE.txt file itself?
<lenswipe> Sou|cutter, im not on mac
<lenswipe> harushimo, yeah did that, that's why im here :p
<harushimo> what version of linux are you running
<epochwolf> lenswipe: and yet the solution is strangely the same.
<harushimo> or are you running mac os x
<harushimo> I just found that online. It seems that should work
<lenswipe> epochwolf, except it isnt....because i already added gems to my path
<lenswipe> harushimo, no, debian
<lenswipe> and see above
sepp2k has quit [Ping timeout: 246 seconds]
<Sou|cutter> lenswipe: if your path was correct you would not have this issue
<epochwolf> ^ this
<lenswipe> *sigh*
<harushimo> sudo didn't work
<theRoUS> basically, i want the effect of adding a '# @markup pre' to the top of LICENCE.txt, but imposed from a config file or the command line
<lenswipe> /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
<harushimo> if you did sudo gem install pagoda
<lenswipe> Sou|cutter, my path ^
<epochwolf> lol
<lenswipe> ...wtf? why isnt gems in there?!
<lenswipe> i added it
* epochwolf finds something else to do
murz has joined #ruby
CJNE has quit [Ping timeout: 244 seconds]
murz has quit [Client Quit]
sent-hil has quit [Remote host closed the connection]
mrsolo has joined #ruby
elsifaka has quit [Quit: Veloma e!]
voodoofish430 has joined #ruby
sebastianb has quit [Quit: leaving]
hotovson has joined #ruby
<harushimo> lenswipe, I'm suprised you can't install it
lggr has quit [Ping timeout: 264 seconds]
<lenswipe> harushimo, i can, and i did
<lenswipe> for some reason it seems not to be running
<lenswipe> harushimo, i never said i couldnt install it
deadghost has joined #ruby
<harushimo> my bad..I didn't know
<lenswipe> its k
<lenswipe> epochwolf, does this look right for a path?
<lenswipe> /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/bin/gem
workmad3_ is now known as workmad3
<lenswipe> "which gem" returns /usr/bin/gem
niklasb has joined #ruby
<lenswipe> $ pagoda -a taskmanager tunnel -c db1
<lenswipe> bash: pagoda: command not found
<epochwolf> lenswipe: not sure, I compile ruby myself. I dno't know what the stock install uses
<lenswipe> do i need to be adding the gems path or the ruby path?
<lenswipe> or both?:
F1skr has joined #ruby
ncr100 has joined #ruby
<epochwolf> lenswipe: nope, the path to the gem bin folder.
whaley has joined #ruby
Takehiro has quit [Remote host closed the connection]
<lenswipe> okay so which gem returns /usr/bin/gem
<lenswipe> but apparently i cant cd to there because "No such file or directory"
<lenswipe> srsly wtf?!
<epochwolf> That's /Users/marquis/.rvm/gems/ruby-1.9.3-p125@policy_builder/bin for me
hotovson has quit []
lggr has joined #ruby
<lenswipe> oh right...
<lenswipe> so i need to be adding /home/foo/.rvm/gems/rubyblahblahblah
rehat has quit [Remote host closed the connection]
<lenswipe> is that what i need to be adding to my path?
<epochwolf> lenswipe: no, not unless you have rvm install
<epochwolf> installed*
<lenswipe> i dont
shadoi has joined #ruby
<epochwolf> then it's off to google to find out the correct folder for your debian version
<lenswipe> what am i looking for
<lenswipe> correct folder for what? gems? ruby? mars?
<epochwolf> answers
dmiller has quit [Ping timeout: 246 seconds]
rehat has joined #ruby
hotovson has joined #ruby
tvw has quit [Read error: Connection reset by peer]
<lenswipe> *sigh*
<lenswipe> okay so i think the issue is that i installed the gem using sudo
<lenswipe> so its installed to somewhere protected
mgates has quit [Quit: mgates]
<epochwolf> lenswipe: you can't install gems without sudo
<lenswipe> so i try and install it without sudo and get this: ERROR: While executing gem ... (Gem::FilePermissionError)
<lenswipe> You don't have write permissions into the /var/lib/gems/1.8 directory.
<lenswipe> what do i do?
busybox42 has quit [Quit: Leaving.]
<lenswipe> epochwolf, i dont mean i installed gems, i mean i install this particular gem without sudo
busybox42 has joined #ruby
josh__ has joined #ruby
josh__ has quit [Remote host closed the connection]
<lenswipe> im assuming its possible to install a gem without using sudo
snearch has joined #ruby
<lenswipe> that seems to suggest so anyways
josh__ has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
<lenswipe> aha!
<lenswipe> i fixe dit
<lenswipe> fixed it*
Xeago has quit [Ping timeout: 246 seconds]
xaq has joined #ruby
<lenswipe> export PATH=$PATH:/var/lib/gems/1.8/bin
DarkStar1 has joined #ruby
snearch has quit [Max SendQ exceeded]
lvyiwang has joined #ruby
snearch has joined #ruby
sepp2k has joined #ruby
Bosma has joined #ruby
lggr has joined #ruby
alvaro_o has joined #ruby
xaq_ has joined #ruby
xaq has quit [Read error: Connection reset by peer]
sneakyness_wk has joined #ruby
hotovson has quit [Remote host closed the connection]
hotovson has joined #ruby
macmartine has joined #ruby
chrismcg is now known as zz_chrismcg
bricker has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
bigoldrock has joined #ruby
hotovson has quit [Client Quit]
hotovson has joined #ruby
<bigoldrock> easy question: How do I define an attr_accessor in one class, and then change the variable from another class? ... while keeping it with class scope ala @@ ?
peneconleche has joined #ruby
Guest42265 has quit [Ping timeout: 260 seconds]
thmzlt has quit [Remote host closed the connection]
Apocalypse has joined #ruby
nitti has quit [Remote host closed the connection]
thmzlt has joined #ruby
iamjarvo has joined #ruby
lenswipe has left #ruby ["Leaving"]
zommi has left #ruby [#ruby]
Synthead has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
mohits has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
shevy has quit [Ping timeout: 264 seconds]
zigomir has quit [Ping timeout: 255 seconds]
<waxjar> i don't understand the last part of your question bigoldrock
wallerdev has joined #ruby
jerius has joined #ruby
jerius has quit [Client Quit]
lvyiwang has left #ruby [#ruby]
jerius has joined #ruby
<LiquidInsect> bigoldrock: are you looking for something like Rails's cattr_accessor?
Takehiro has joined #ruby
Takehiro has quit [Remote host closed the connection]
Takehiro has joined #ruby
<bigoldrock> well... I want to have a variable that can change after the class is instantiated
<LiquidInsect> on the class, or the instance?
<bigoldrock> and have it be scoped as a class variable so other methods can use it
<LiquidInsect> see that's where you lose us
<LiquidInsect> other methods can use instance variables
lggr has joined #ruby
<bigoldrock> ah ha, so automatically scoped for other methods
GoGoGarrett has joined #ruby
_md has quit [Quit: Leaving...]
<bigoldrock> attr_access :instanceVar
<bigoldrock> objInstance.instanceVar = "some value"
asobrasil has left #ruby [#ruby]
<bigoldrock> and that should be all right?
mgates has joined #ruby
<LiquidInsect> attr_accessor, but yes
jerius has quit [Client Quit]
luckyruby has quit [Remote host closed the connection]
sent-hil has joined #ruby
<LiquidInsect> that gives you a pair of public methods for getting and setting that ivar
<x1337807x> Seems reasonable. Note that the ruby convention uses "snake case" for instance variables: instance_var instead of instanceVar
<waxjar> class X; attr_accessor :variable; some code that sets a value for @variabel; end x = X.new; x.variable = 'lol'; puts x.variable # => 'lol' ??
naquad has quit [Quit: ZNC - http://znc.in]
dmiller has joined #ruby
jgrevich has joined #ruby
<LiquidInsect> you mentioned "class scope" though
<LiquidInsect> it is possible to use instance variables on a class as well if that's what you want
Guest24198 is now known as kelotr
kelotr is now known as keltor
keltor has quit [Changing host]
keltor has joined #ruby
<bigoldrock> @iquidInsect so when other methods (where we defined attr_accessor) use :instanceVar what do they call it?
<LiquidInsect> I'd recommend against using class variables unless you know what you're doing, they're... kind of weird.
jrist-dogwalk is now known as jrist
josh__ has quit [Read error: Connection reset by peer]
<waxjar> attr_accessor is a convenient way of defining two methods, #variable and #variable=
ltsstar has quit [Ping timeout: 246 seconds]
josh__ has joined #ruby
<LiquidInsect> bigoldrock: Not sure what you're asking... When you use attr_accessor :some_variable in a class definition, you're defining two instance methods on that class, some_variable, and some_variable=
<LiquidInsect> you grok all that already?
<waxjar> they basically just return the instance variable with the name you feed to attr_accessor, so :lol returns @lol, :foo returns @foo, etc
<LiquidInsect> they're public methods that just set @some_variable on that instance
elaptics is now known as elaptics`away
<bigoldrock> ah ha, thanks
stonewall has joined #ruby
josh__ has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 276 seconds]
schaerli has quit [Remote host closed the connection]
Spooner has quit [Ping timeout: 246 seconds]
josh__ has joined #ruby
carlyle has joined #ruby
schaerli has joined #ruby
indian has quit [Ping timeout: 260 seconds]
shevy has joined #ruby
<burgestrand> bigoldrock: http://pastie.org/5025258
lggr has joined #ruby
twoism has joined #ruby
dmiller has quit [Remote host closed the connection]
<shevy> guys
<shevy> I have:
<shevy> attr_reader :string
<kaleido> thats wrong
<shevy> how can I make an alias called string? to this? alias string string?
Jork1 has joined #ruby
<bigoldrock> @burgestrand , thank you :)
<burgestrand> shevy: why do you need an alias?
<burgestrand> shevy: it’s already string
jamescarr has joined #ruby
<jamescarr> is capistrano dying?
<LiquidInsect> Does this method return a string, or a boolean?
<jamescarr> I can never seem to get help about it anymore
<shevy> it returns a string
<shevy> jamescarr probably, sinatra killed it or?
<burgestrand> shevy: ah, I see now, the questionmark wasn’t part of your question :P
<shevy> oh I mistook that
<shevy> thought capistrano was that webframework
moshee has quit [Ping timeout: 240 seconds]
moshee has joined #ruby
<shevy> "Capistrano is a utility and framework for executing commands in parallel on multiple remote machines, via SSH."
<waxjar> shevy, maybe :"string?"
<shevy> what was that other name... of that webframework... with like 4000 lines of code maximum or less?
<burgestrand> shevy: http://pastie.org/5025268
<burgestrand> camping
<shevy> thanks
<LiquidInsect> predicate method names are generally for methods that return a boolean, so it's a weird choice... but you should be able to do it with alias :string? :string
<shevy> aah camping
<shevy> I love question marks :)
<shevy> not the ! methods though
<shevy> app.run!
kaawee has quit [Ping timeout: 255 seconds]
<LiquidInsect> huh. You shouldn't need the quotes to make that a valid symbol...
<shevy> I hate that
<shevy> or... config.parse!
mneorr has quit [Remote host closed the connection]
<shevy> I need more beer, I feel agitated
<burgestrand> Also, felix the fearless is supposedly doing his jump soon :)
<waxjar> i wonder if #what?! would be possible :p
carloslopes has joined #ruby
<shevy> felix the who?
<shevy> waxjar hmm
stephenjudkins has joined #ruby
<LiquidInsect> they make sense in a few situations, reject vs reject! etc
<shevy> def wtf?!
<shevy> does not work :(
<shevy> syntax error, unexpected '!', expecting '\n' or ';'
<burgestrand> shevy: he’s jumping from a balloon from record height, aiming to break the sound barrier in free fall
<shevy> it seems the parser demands that the "?" would be the last token
<waxjar> ah, bummer
lggr has quit [Ping timeout: 246 seconds]
<shevy> burgestrand oh oh yeah... now I remember
<shevy> a bit dangerous to do that
<shevy> I remember that some other guy did something similar, like 40 years ago and was unconscious for a long time
<shevy> (during the fall)
<burgestrand> that's why you want autoreleasing parachutes
<shevy> cool LiquidInsect
<LiquidInsect> any string can be a method name but you'd have to use send to get around the parser
<shevy> ruby is so wicked
<shevy> well that is ok I think
<shevy> you can still invoke the method right?
<shevy> a bit annoying to type though
abstrusenick has quit [Quit: abstrusenick]
<LiquidInsect> yes, using send or public_Send
Uranio has quit [Quit: WeeChat 0.3.8]
workmad3 has quit [Ping timeout: 245 seconds]
darthdeus has quit [Quit: Linkinus - http://linkinus.com]
<Axsuul> How would I inherit a class that is one level higher in the module hierarchy? http://codepad.org/Tr9nECKu
<LiquidInsect> "wicked" is right... you can do downright evil stuff
adeponte has joined #ruby
wpaulson has joined #ruby
baphled has joined #ruby
<LiquidInsect> call a private method? sure! hide data in an instance variable on a symbol to hide it from the garbage collector? why not?
<burgestrand> Axsuul: you’ll have to reach it from the top-level namespace, typing out the full constant path
xyzodiac has joined #ruby
<Axsuul> burgestrand: thanks
<burgestrand> Axsuul: even so, Extreme is defined before Base
<burgestrand> Axsuul: so you need to define Base first
<shevy> Axsuul I would also define the parent classes first
<shevy> somehow the ruby parser likes that more
<burgestrand> Axsuul: by doing that, you might not need to type out the full name :)
<shevy> :)
yshh has quit [Remote host closed the connection]
<blazes816> I worked on an app where the method current_user returns :false if no user is logged in. this lead to adding a large number of methods to the :false symbol ala whinynils
_cheney has joined #ruby
<Axsuul> burgestrand: ah yes, you're right
lggr has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
<shevy> hehe
cj3kim has quit [Quit: This computer has gone to sleep]
<shevy> whinynils, nice word
kaawee has joined #ruby
<shevy> they have an epic fight against the happynils
fram has quit [Remote host closed the connection]
<shevy> I'm gonna teach teletubby-ruby to kids
timonv has quit [Remote host closed the connection]
robotmay has joined #ruby
keymone has joined #ruby
reset has joined #ruby
<sent-hil> In ruby source code I see a lot of `VALUE rb_cBasicObject;`
<sent-hil> I'm not able to find VALUE keyword in C lang though, what does it do?
nitti has joined #ruby
soulisson has quit [Quit: Quitte]
sarmiena_ has joined #ruby
cj3kim has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
akemEikko has quit [Ping timeout: 264 seconds]
<LiquidInsect> sent-hil: It's been a long time since I looked at C but I would imagine that's a macro defined somewhere
lggr has quit [Ping timeout: 255 seconds]
sepp2k1 has joined #ruby
philcrissman has quit [Remote host closed the connection]
<invisime> sent-hil: VALUE is just a type definition for any ruby object. (including ruby classes, modules, etc. everything is an object.)
sepp2k has quit [Ping timeout: 246 seconds]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<sent-hil> ah
<sent-hil> how do I find where it was first defined
lggr has joined #ruby
Takehiro has quit [Remote host closed the connection]
arturaz has quit [Read error: Connection reset by peer]
<LiquidInsect> typedef uintptr_t VALUE;
<sent-hil> burgestrand: whoa
Neomex has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<LiquidInsect> and uintptr_T is just a typedef for an unsigned int
__zfn__ has joined #ruby
locriani has quit [Remote host closed the connection]
<sent-hil> i guess i need to learn a little more c
<sent-hil> thx everyone!
nitti has quit [Ping timeout: 246 seconds]
locriani has joined #ruby
slainer68 has quit [Remote host closed the connection]
dakine has quit [Quit: Leaving]
c0rn_ has joined #ruby
reset has quit [Quit: Leaving...]
jgrevich_ has joined #ruby
Takehiro has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
robotmay has quit [Remote host closed the connection]
eldariof has joined #ruby
jgrevich has quit [Ping timeout: 244 seconds]
jgrevich_ is now known as jgrevich
sarmiena_ has quit [Quit: sarmiena_]
stephenjudkins has joined #ruby
alfism has joined #ruby
dmiller has joined #ruby
elux has quit [Quit: Leaving...]
DuoSRX has quit [Remote host closed the connection]
elux has joined #ruby
elux has quit [Client Quit]
kaawee has quit [Ping timeout: 246 seconds]
dmiller has quit [Remote host closed the connection]
sebastianb has joined #ruby
TomJ has joined #ruby
TomJ has joined #ruby
TomJ has quit [Changing host]
roadt has quit [Ping timeout: 246 seconds]
<shevy> user.public_send('total price') # WORKS!
<shevy> waaaaah
lggr has joined #ruby
<shevy> that works
<shevy> method names can have ' '
<shevy> but how do you pass arguments to it?
__zfn__ has quit [Ping timeout: 246 seconds]
baphled has quit [Ping timeout: 246 seconds]
<davidcelis> user.send('total price', *args, &block)
<shevy> oh
mucker has quit [Quit: leaving]
harryheintz has joined #ruby
harryheintz has quit [Client Quit]
zenformatics1 has joined #ruby
<shevy> oh yeah burgestrand ... I think this was the guy before Felix who jumped: http://en.wikipedia.org/wiki/Joseph_Kittinger
peneconleche has quit [Ping timeout: 246 seconds]
<burgestrand> Crazy guy
<burgestrand> They postponed the jump btw
<burgestrand> Started getting windy
<kaleido> still too windy?
<burgestrand> They had a 30m window but it started picking up again
lggr has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
jim_cooley has quit [Ping timeout: 260 seconds]
anachronistic has quit [Read error: Connection reset by peer]
keymone has quit [Quit: keymone]
anachronistic has joined #ruby
horofox has joined #ruby
samflores has joined #ruby
rehat has quit [Remote host closed the connection]
__zfn__ has joined #ruby
chrisja has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 256 seconds]
zii has quit [Read error: Connection reset by peer]
zii has joined #ruby
<A124> How can one modify instance of a class?
gmci has quit [Ping timeout: 246 seconds]
apok has quit [Quit: apok]
<samflores> A124: what do you mean with modify?
<Eplemosen> instance_eval?
baphled has joined #ruby
gmci has joined #ruby
lggr has joined #ruby
grizlo42 has joined #ruby
<A124> Eplemosen: Probably, thank you. But I can't access the docs now.. damn.
<bigoldrock> @A124 attr_accessor ?
nitti has joined #ruby
lenswipe has joined #ruby
<A124> bigoldrock: That's what I want to "inject" into an initialized instance.
<bigoldrock> ah ha, like this
chimay has quit [Quit: WeeChat 0.4.0-dev]
<bigoldrock> instance.instanceVar = "new value"
haxrbyte_ has joined #ruby
nitti has quit [Remote host closed the connection]
<bigoldrock> instanceVar being the attr_accessor
luckyruby has joined #ruby
schaerli has quit [Remote host closed the connection]
wchun has joined #ruby
<Eplemosen> object.instance_eval { code n stuff }
<Eplemosen> is that it?
<A124> bigoldrock: I'm not talking about class.
snearch has quit [Quit: Verlassend]
<A124> Eplemosen: Should be. I need docs.
<Eplemosen> for 1.9.3?
<bigoldrock> @A124 , you're talking about an instantiated object right?
nitti has joined #ruby
<bigoldrock> myObj = Object.new
<A124> Eplemosen: OK. I could not "inject" accessor by that. But thanks. This works.
<A124> Eplemosen: I appreciate. You are very kind. I could not fire browser right now. That's the thing. But I understand already. Thank you.
<Eplemosen> Oh ok
<Eplemosen> np
haxrbyte has quit [Ping timeout: 245 seconds]
crapshoot has joined #ruby
<crapshoot> Hi all!
<crapshoot> I have a question about Capistrano:
artm has quit [Quit: artm]
xaq_ has quit [Remote host closed the connection]
elux has joined #ruby
lggr has quit [Ping timeout: 276 seconds]
<crapshoot> Does anyone know a good way to register a top-level failure handler for all tasks, regardless of knowing a priori what ones exist, etc.?
solidus-river has joined #ruby
<solidus-river> hey guys, i'm using the fog gem in rails but i have a ruby oriented question
codespectator has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<solidus-river> it has a function i would like to use from the console but i cant find out how to gain access to it
<epochwolf> crapshoot: doesn't cap return an error code if it fails?
<solidus-river> its in the gemfile under the space
vlad_starkov has quit [Remote host closed the connection]
<solidus-river> Fog::Storage::AWS::Real
<crapshoot> Unfortunately I need this to be a handler to be registered into this Capistrano configuration itself, not something to run on the outside as a shim,
macmartine has quit [Quit: Computer has gone to sleep.]
<solidus-river> so how would i access functions within that space from the command line or elsewhere?
eikko has joined #ruby
adamkittelson has joined #ruby
lggr has joined #ruby
<crapshoot> Well, this is awesome. I suppose the Ruby Way (TM) would be to monkey patch something into the turd.
timmow has quit [Quit: is having a nap]
jimeh2 has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
h4mz1d has joined #ruby
salman has joined #ruby
wedtm is now known as wedtm|away
philcrissman has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
lggr has quit [Ping timeout: 252 seconds]
slainer68 has joined #ruby
acrocity has quit [Ping timeout: 240 seconds]
__zfn__ has quit [Quit: KVIrc 4.1.1 Equilibrium http://www.kvirc.net/]
stonewall has quit [Ping timeout: 245 seconds]
eikko is now known as akem
Juul has joined #ruby
acrocity has joined #ruby
<harushimo> I'm using symbols like it was suggested to me. I didn't know you could do it this way but I also want to use strings to get the winning strategy
fermion has quit [Quit: P]
<harushimo> like for example, m1.downcase.to_string(is that method call), where you can use symbols and strings
lggr has joined #ruby
huismon has left #ruby ["Leaving"]
awarner has joined #ruby
<harushimo> I also want be pass strings to the hash table
<harushimo> any suggestions
<harushimo> i'm working on it
solidus-river has quit [Ping timeout: 260 seconds]
jrajav has joined #ruby
<canton7> harushimo, use '#to_sym
<canton7> also #to_s, not #to_string
lenswipe has left #ruby ["Leaving"]
<harushimo> would I type m1.downcase.to_sym
<harushimo> like that
<harushimo> is that correct way
axl_ has quit [Quit: axl_]
lggr has quit [Ping timeout: 246 seconds]
<canton7> yup
<harushimo> I just about to test it
<harushimo> thank you
<harushimo> to_sym takes the symbol from the hash and return its as a string
<harushimo> am I right
apok has joined #ruby
<canton7> to_sym takes a string and turns it into a symbol
<harushimo> its the opposite
<harushimo> oh okay
<harushimo> sorry about that
<canton7> to_s takes something and turns it into a string
<harushimo> ok
piotr__ has joined #ruby
<harushimo> thank you
lggr has joined #ruby
<harushimo> this game is coming better
piotr_ has quit [Ping timeout: 256 seconds]
<A124> Is there a shell 'clear' alternative for pry or irb?
CJNE has joined #ruby
<ddd> clear?
<anachronistic> control+L on a mac
yxhuvud has quit []
rakl has joined #ruby
<A124> anachronistic: Awesome! Thanks! Same for Linux terminal
samflores is now known as samflores|away
<anachronistic> n/p. don't have a windows box but i'm sure there's something similar
<anachronistic> (For those windows users listening in anyway)
<A124> I have windows box, but work in virtual ^^
<salman> anyone from berkeley saas edx course
<salman> ??
yxhuvud has joined #ruby
brianosborne has joined #ruby
<ddd> for pry internally you would run the 'reset' command. the CTL-L is the terminal specifically (works on the terminal window itself)
brianosborne has left #ruby [#ruby]
<ddd> but if you want to *specifically* reset pry, you use 'reset
<ddd> '
<ddd> just to delineate the difference
deadghost has quit [Ping timeout: 256 seconds]
schaerli has joined #ruby
<A124> ddd: Nope, just the output. So I don't have to look at code when There is only progress bar. I'll find ANSI sequence for that.
<A124> But Thanks, Good to know.
<ddd> oh, nm, i'm wrong! because I just noticed I have mine remapped. My apologies for bad info!
<anachronistic> reset is likely to be removed from pry, if it hasn't happened already
<ddd> anachronistic: still there
solidus-river has joined #ruby
<solidus-river> sorry all i dc'd
daniel_-_ has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
CJNE has quit [Ping timeout: 260 seconds]
<solidus-river> how do i get to a namespace inside a gem i'm using to execute a function i'm confused on how to translate this rdoc into something to actually use in an instance
<anachronistic> ddd: word, yeah it's still there. i ran across this issue a little ways back and this comment: https://github.com/rweng/pry-rails/issues/19#issuecomment-7086485
<A124> Using elinks on modern pages sucks
daniel_- has quit [Read error: Operation timed out]
<ddd> anachronistic: ahhh
SegFaultAX|work has quit [Ping timeout: 256 seconds]
cj3kim has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
<ddd> and makes sense why the state was removed. reset not reloading anything you called it with. calls 'pry' directly.
<solidus-river> it says its in Fog::Storage::AWS::Real
<solidus-river> and its called put_bucket_logging
<solidus-river> but…. Fog::Storage::AWS::Real.put_bucket_logging is undefined
carlyle_ has joined #ruby
<harushimo> is pry similar to irb?
<harushimo> what is it
<harushimo> I never heard of it
<ddd> pry is a far more advanced irb.
<A124> "\e[2J" is the appropriate ANSI sequence.
<ddd> with a bunch of additional ecosystem gems its a full-on debugger
<harushimo> I've been using irb
jcoglan has quit [Ping timeout: 255 seconds]
lggr has joined #ruby
drule has joined #ruby
<ddd> harushimo: play with pry-full gem. metagem for pulling in the most commonly used (and useful) ecosystem gems for pry.
carlyle has quit [Ping timeout: 245 seconds]
<harushimo> how do I install it?
<harushimo> rvm install pry
chessteach has joined #ruby
<havenn> harushimo: gem install pry
<harushimo> ok
<solidus-river> anyone on translating that rdoc into how to use the function?
<anachronistic> +1 to pry-full
<ddd> if using rvm make a gemset with pry-full installed and play around. https://github.com/pry/pry for pry itself, https://github.com/pry/pry for the ecosystem, and https://github.com/pry/pry/wiki for more info
emmanuelux has joined #ruby
<harushimo> i just did a gem install of pry
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
<havenn> harushimo: They are suggesting: gem install pry-full
deadghost has joined #ruby
<harushimo> ok
<harushimo> cool
darule has quit [Ping timeout: 260 seconds]
darule has joined #ruby
samflores|away has quit [Quit: Leaving...]
<davidcelis> harushimo: http://rubygems.org/gems/pry-full
peneconleche has joined #ruby
<davidcelis> to see what components it includes
<harushimo> oh okay
samflores has joined #ruby
drule has quit [Ping timeout: 260 seconds]
rubious has joined #ruby
wallerdev has quit [Quit: wallerdev]
carlyle_ has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 246 seconds]
arietis has joined #ruby
mvangala_ has quit [Remote host closed the connection]
pettsson has joined #ruby
samuel02 has joined #ruby
lggr has joined #ruby
freakazoid0223 has joined #ruby
Russell^^ has joined #ruby
<harushimo> I'm putting this disclaimer here: this maybe a dumb question, i'm still going to ask it for my edification. Is Ruby considered to a scripting language?
<harushimo> I didn't think it was from what I reading
samflores has quit [Quit: Leaving...]
<harushimo> since everything in Ruby is an object
drule has joined #ruby
chrisramon has joined #ruby
<harushimo> I just want to ask that question
darule has quit [Ping timeout: 256 seconds]
bbttxu_ has quit [Quit: bbttxu_]
drule is now known as darule
a_a_g1 has quit [Quit: Leaving.]
seich- is now known as seich
harryheintz has joined #ruby
artm has joined #ruby
Orcris has joined #ruby
peneconleche has quit [Ping timeout: 240 seconds]
<shevy> harushimo ruby belongs to the scripting language family
A124 has quit [Quit: reboot]
<harushimo> I wasn't entirely sure
<shevy> like ... ruby python perl php... I'd say lua too
<harushimo> I know python is
<harushimo> and perl
<harushimo> I didn't think php fall under scripting languages
<harushimo> that is interesting to know
<shevy> on the other side of the spectrum are the classically compiled languages like C C++ Obj-C... I think java too (or at least until you make this .jar file?)
<shevy> you can use .php scripts locally just as well
harryheintz has quit [Client Quit]
<rubious> Sorry to be lame, can anyone see this?
<shevy> you can use php to process text, like awk sed or perl do
<shevy> rubious I can see your sentence, but not the girls shaking behind you
<harushimo> I know php can do that like python and ruby
peneconleche has joined #ruby
<rubious> woo
<shevy> harushimo I think both ruby and python are better languages than php :)
<harushimo> I know
hotovson has quit [Ping timeout: 245 seconds]
<harushimo> I agree with you 100 %
lggr has quit [Ping timeout: 252 seconds]
<harushimo> I know python and now, I'm learning ruby
<harushimo> I see a lot of jobs in RAILS actually
<harushimo> I'm learning ruby for that purpose too
<shevy> aha
<shevy> I never learned rails
<shevy> but I am going to learn python
peneconleche has quit [Client Quit]
<shevy> only 3.x though
<reactormonk> shevy: no regexp in stdlib? blub
<harushimo> you should take the course in coursera for learning python
<harushimo> its good course. I'm in that too
<shevy> reactormonk in python?
<reactormonk> shevy: yep
<shevy> the thing that annoys me the most about python is that transition from 2 to 3
<shevy> and that there are build scripts out there in the wild that require version 2 and fail with version 3
hotovson has joined #ruby
<shevy> it is making me very angry
<harushimo> right
<reactormonk> shevy: python2 vs. python :-)
<shevy> ok harushimo
<shevy> will look at this coursera thing (sounds spanish...)
starship is now known as eightydays
ryanf has joined #ruby
eightydays is now known as starship
akem has quit [Ping timeout: 240 seconds]
<harushimo> its an english. It was started by two stanford professors
<harushimo> udacity has course in python to build your own search engine
lggr has joined #ruby
<harushimo> see if anyone those help you.
J2EE has joined #ruby
Takehiro has quit [Remote host closed the connection]
<harushimo> I mean any of those courses will help you
<chrisramon> Hi, I am trying to install nokogiri on ubuntu 12, and i keep getting this error: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
<chrisramon> besides already installed the dependencies from nokogiri website
<Mon_Ouie> Object orientation doesn't prevent you from writing quick and short scripts to automatize some task
<Mon_Ouie> Which is pretty much all that you need to call it a scripting language
<rking> Mon_Ouie += 1
<shevy> hmmm damn... that course takes a bit long harushimo :(
Coolhand has quit [Remote host closed the connection]
<ddd> the fact that internally to ruby everything is an object isn't what defines it as a scripting language. thats internal implementation details. iirc, its because it isn't compile, and/or is interpreted that makes it a scripting language.
<ddd> err s/compile/compiled/
<harushimo> its a good course. I took it
<rking> Mon_Ouie: Though I've heard the "scripting" definition has more to do with embedding in other languages.
<shevy> yeah... hmm... but I dont think I have the time right now hmmmm
jarrett has joined #ruby
<harushimo> coursera one is seven weeks. They are pretty good at it.
<jarrett> Hello, does anyone have experience with Treetop? (Nobody in the #treetop channel)
zii has quit [Ping timeout: 246 seconds]
<shevy> never heard of treetop
<shevy> only of htop :)
drule has joined #ruby
<jarrett> It's a gem for generating parsers
jarrett has quit [Client Quit]
DarkStar1 has quit [Quit: Later coppenstoppers]
indian has joined #ruby
darule has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 244 seconds]
<sent-hil> offtopic...i used parslet parser yesterday with ok success, seemed much easier than treetop
_md has joined #ruby
jenrzzz has joined #ruby
<shevy> there he went away
Coolhand has joined #ruby
lggr has joined #ruby
mvangala has joined #ruby
evilsushi has quit [Quit: Lost terminal]
irleif has quit [Quit: Computer has gone to sleep.]
A124 has joined #ruby
bbttxu_ has joined #ruby
<sent-hil> shevy: what did you do :)
rovalent has joined #ruby
Tearan has joined #ruby
manizzle has quit [Ping timeout: 260 seconds]
Battuu has joined #ruby
samphippen has joined #ruby
nanderoo has quit [Quit: Leaving.]
TriTodd has quit [Ping timeout: 244 seconds]
lggr has quit [Ping timeout: 276 seconds]
JonnieCache has joined #ruby
benwoody has joined #ruby
xavii has joined #ruby
AlbireoX has quit [Remote host closed the connection]
jarred has joined #ruby
<A124> OP Question: Why we don't have pastie bot here?
<rking> A124: As opposed to pasting a gist URL?
lggr has joined #ruby
workmad3 has joined #ruby
<A124> rking: Pastie bot is kind of more.. comfortable and synta highlighting is nice for ruby on pastie also. Both #ruby-lang and #rubyonrails have the bot. Which seemed interesting to me.
rovalent has quit [Quit: Linkinus - http://linkinus.com]
<burgestrand> A124: no bot
<burgestrand> :(
wallerdev has joined #ruby
<burgestrand> Hasn't been for ages
<burgestrand> No bot when I joined like two years ago
eikko has joined #ruby
xavii has quit [Quit: Leaving]
ixti has quit [Quit: So Long, and Thanks for All the Fish!]
Virunga has joined #ruby
thmzlt has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<A124> burgestrand: Interesting.
crapshoot has quit [Quit: Lost terminal]
Criztian_ has joined #ruby
MikeyV27_ has joined #ruby
<A124> Time to make one.
<burgestrand> >> "Hi"
<burgestrand> A124: usually have another bot in here, not for pasties though.
<burgestrand> Or, used to, that bot has been gone lately as well. Lasted a few months.
lggr has quit [Ping timeout: 240 seconds]
<A124> burgestrand: Can you be a little more specific please? (for what?)
<burgestrand> Executing ruby snippets.
<burgestrand> >> 1 + 2
<burgestrand> And it would respond with 3.
Criztian has quit [Ping timeout: 245 seconds]
<A124> Ah.
thmzlt has joined #ruby
<burgestrand> Nice idea, for some reason those bots always crash and then they go away because the maintainers get bored fixing them.
grizlo42 has quit [Ping timeout: 246 seconds]
diegoviola has joined #ruby
<burgestrand> Anyhow, time for some gaming, ta-ta.
<A124> burgestrand: What do you play?
xavii has joined #ruby
JonnieCache has quit [Ping timeout: 246 seconds]
<burgestrand> A124: DotA, casually.
manizzle has joined #ruby
Takehiro has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
MikeyV27 has quit [Ping timeout: 246 seconds]
<A124> What I face now is a need of solid computer workbench. (Which is a little more for me. I'm ethusiast exhaustive, data oriented, .... user). And enabling Raspberry Pi to be a lightwight workstation nonstop online, irc, ruby.
MikeyV27_ has quit [Ping timeout: 246 seconds]
<A124> Anyone could give any tips for Ruby on RPi?
kaawee has joined #ruby
lggr has joined #ruby
hotovson has quit [Remote host closed the connection]
Battuu has quit [Ping timeout: 246 seconds]
<harushimo> what am I doing wrong? I can't get to display actual of element of the winner
KevinSjoberg has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mneorr has joined #ruby
Drager has joined #ruby
hotovson has joined #ruby
stephenjudkins has quit [Read error: Connection reset by peer]
schaerli has quit [Remote host closed the connection]
stephenjudkins has joined #ruby
theRoUS has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 252 seconds]
AlbireoX has joined #ruby
cjs226 has joined #ruby
hotovson has quit [Read error: No route to host]
rippa has quit [Ping timeout: 256 seconds]
zii has joined #ruby
zii has quit [Changing host]
zii has joined #ruby
stephenjudkins has quit [Client Quit]
lggr has joined #ruby
nitti has quit [Ping timeout: 240 seconds]
<harushimo> any suggestions
kirun has joined #ruby
<A124> harushimo: Look at the code, should theoretically work, but it not complete. Also rises Argiment Error
bluOxigen has quit [Ping timeout: 246 seconds]
<harushimo> I saw that
jenrzzz has quit [Ping timeout: 245 seconds]
<A124> So you ask about argument error or something other?
rubious has quit [Quit: Linkinus - http://linkinus.com]
<harushimo> few things I'm asking here: one I want to display the game winner obviously. What am I missing in terms of the parameters
Neomex has quit [Quit: Neomex]
elico has joined #ruby
<harushimo> do I need to break up the game parameter into two separate variables?
timonv has joined #ruby
userbard has joined #ruby
<harushimo> in theory, this code should work
Virunga has quit [Remote host closed the connection]
<A124> No.
<A124> Use "*game" not "* game"
<harushimo> I did this change: total = rps_result(game[0][1], game[1][1]) * game
<A124> Aside from that you use downcase on array.
lggr has quit [Ping timeout: 246 seconds]
<harushimo> I use downcase to keep in small letters that
<harushimo> now I'm getting undefined method call
<A124> harushimo: No, with the fix you did, it's ok.
<A124> You had wrong 3 things. Now it should work. " total = rps_result(game[0][1], game[1][1])"
vitoravelino is now known as vitoravelino`afk
<harushimo> excellent
<A124> harushimo: Not, that much. Because the game logic is not working properly :P
armenb has joined #ruby
<harushimo> you are correct. I should have put that in
<harushimo> that is my fault
lggr has joined #ruby
wedtm|away is now known as wedtm
<harushimo> for my strategy variable, do I need change something in the raise portion
<harushimo> I don't think I need it
dpk has joined #ruby
no_worries has quit [Remote host closed the connection]
<harushimo> I mean I don't think I need to change anything there because nosuchstrategy takes care of it
kirun has quit [Ping timeout: 255 seconds]
dnstbr has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.9]
amaurea has left #ruby [#ruby]
no_worries has joined #ruby
werdnativ has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
zeromodulus has quit [Remote host closed the connection]
salman has quit [Quit: Page closed]
mneorr has quit [Remote host closed the connection]
senny has joined #ruby
asv has joined #ruby
TriTodd has joined #ruby
lggr has quit [Ping timeout: 276 seconds]
Criztian_ has quit [Remote host closed the connection]
<armenb> Does anyone in here have anything to do with rubygems.org?
<armenb> or have any idea why it's not working?
mrsolo has joined #ruby
stkowski has joined #ruby
<wmoxam> armenb: it is working
<wmoxam> I just pushed a new gem to it
<A124> armenb: Same for me.
carloslopes has quit [Quit: Leaving.]
<asv> Hi. I'm having trouble installing watir in cygwin (Windows). Anybody knows anything about it?
<asv> I can paste error here
Agis__ has joined #ruby
<asv> $ gem install watir
<asv> Building native extensions. This could take a while...
<asv> ERROR: Failed to build gem native extension.
<asv> ERROR: Error installing watir:
<asv> /home/avilensky/.rvm/rubies/ruby-1.9.3-p194/bin/ruby.exe extconf.rb
<asv> checking for ffi.h... yes
<asv> checking for ffi_call() in -lffi... yes
<asv> checking for ffi_prep_closure()... yes
eikko has quit [Read error: Connection reset by peer]
<asv> checking for ffi_raw_call()... yes
<asv> checking for ffi_prep_raw_closure()... yes
lggr has joined #ruby
eikko has joined #ruby
lukaszk has quit [Ping timeout: 245 seconds]
colinbm has joined #ruby
hadees has quit [Quit: hadees]
imami|afk is now known as banseljaj
verto|off is now known as verto
<asv> which gem do I need in order to use assert()?
kirun has joined #ruby
carloslopes has joined #ruby
jcoglan has joined #ruby
duck_puncher has left #ruby [#ruby]
Xeago has joined #ruby
ltsstar has joined #ruby
Jork1 has quit [Quit: Jork1]
axl_ has joined #ruby
<asv> yoohoo, a simple question: which gem do I need in order to use assert()?
sent-hil has quit [Remote host closed the connection]
eldariof has quit []
morozovm has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 245 seconds]
Jork1 has joined #ruby
whaley has quit [Remote host closed the connection]
colinbm has quit [Quit: colinbm]
morozovm has joined #ruby
asv has quit [Quit: HydraIRC -> http://www.hydrairc.com <- The professional IRC Client :D]
krawchyk has quit [Remote host closed the connection]
aquaranto has quit [Remote host closed the connection]
yoklov has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
<davidcelis> minitest...?
rakl has quit [Quit: sleeping]
answer_42 has quit [Quit: WeeChat 0.3.9]
pskosinski is now known as sauer_braten
lggr has joined #ruby
<davidcelis> i mean, Test::Unit is just a wrapper around MiniTest::Unit
<davidcelis> so you don't need a gem at all
whaley has joined #ruby
<davidcelis> you just need a class that inherits from Test::Unit::TestCase or whatever
SegFaultAX|work has joined #ruby
stephenjudkins has joined #ruby
whaley has quit [Remote host closed the connection]
Skipp_OSX has joined #ruby
<Skipp_OSX> hello
flip_digits has joined #ruby
<davidcelis> hi
rakl has joined #ruby
robustus has quit [Quit: ZNC - http://znc.in]
lggr has quit [Ping timeout: 260 seconds]
jeffreybaird has quit [Read error: Connection reset by peer]
jeffreybaird has joined #ruby
Takehiro has quit [Remote host closed the connection]
jrist is now known as jrist-brb
jrist-brb has quit [Quit: o no u din't]
Chryson has joined #ruby
cburyta has quit [Remote host closed the connection]
drule is now known as darule
lggr has joined #ruby
nitti has joined #ruby
sauer_braten is now known as TheHeartCollecto
TheHeartCollecto is now known as pskosinski
morozovm has quit [Read error: Connection reset by peer]
morozovm has joined #ruby
chessteach has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
vitoravelino`afk is now known as vitoravelino
vlad_sta_ has joined #ruby
nitti_ has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
nitti has quit [Ping timeout: 260 seconds]
mark_locklear has quit [Remote host closed the connection]
lggr has joined #ruby
cburyta has joined #ruby
sailias has quit [Ping timeout: 244 seconds]
vlad_starkov has quit [Ping timeout: 240 seconds]
Drager has quit [Changing host]
Drager has joined #ruby
wedtm is now known as wedtm|away
dju has quit [Remote host closed the connection]
geekbri has quit [Remote host closed the connection]
jellosea has quit [Ping timeout: 252 seconds]
manizzle has quit [Ping timeout: 260 seconds]
morozovm has quit [Read error: Connection reset by peer]
morozovm has joined #ruby
jrajav has quit []
adamkittelson has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 260 seconds]
wedtm|away is now known as wedtm
bigmcq77 has joined #ruby
cburyta has quit [Remote host closed the connection]
blazes816 has quit [Quit: blazes816]
robertotauille has quit [Read error: Connection reset by peer]
ewag has joined #ruby
sent-hil has joined #ruby
robertotauille has joined #ruby
lggr has joined #ruby
ltsstar has quit [Quit: ltsstar]
CJNE has joined #ruby
vmatiyko has quit [Quit: Page closed]
Eplemosen has quit [Quit: NOPE]
jrist has joined #ruby
awarner has quit [Remote host closed the connection]
cburyta has joined #ruby
sailias has joined #ruby
Juul has quit [Quit: Leaving]
CJNE has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 252 seconds]
heftig has quit [Quit: leaving]
_md has quit [Quit: Leaving...]
robertotauille has quit [Quit: Leaving...]
<ZenGuy> I installined XDCC-Fetch with rvm and it doesn't work.. How can i completely remove it .. i tried rvmsudo gem cleanup XDCC-Fetch but it's still tehere when i run updatedb & locate
AlbireoX has quit [Remote host closed the connection]
verto is now known as verto|off
AlbireoX has joined #ruby
<ZenGuy> help please
morozovm has quit [Quit: morozovm]
Orcris has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
awestroke has quit [Remote host closed the connection]
carlyle has joined #ruby
carlyle has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 260 seconds]
Takehiro has joined #ruby
atmosx has joined #ruby
deadghost has quit [Ping timeout: 245 seconds]
zenformatics1 has quit [Quit: Leaving.]
AlbireoX has quit [Ping timeout: 240 seconds]
Agis__ has quit [Quit: Agis__]
timonv has quit [Remote host closed the connection]
etehtsea has joined #ruby
asteve has quit []
heftig has joined #ruby
ken_barber has joined #ruby
<Paradox> man
<Paradox> if i had $120k
<Paradox> i'd see if i could get a .rb domain name
<Paradox> then use them for rubygems
<Paradox> so every gem got gemname.rb
<ZenGuy> Paradox: are you paradox from snoonet ?
<Paradox> ZenGuy, that i am
<Paradox> :D
<ZenGuy> Paradox: oh
lggr has quit [Ping timeout: 256 seconds]
awestroke has joined #ruby
<Paradox> actaully, i'm currently working on an irc services bot
<Paradox> in ruby
wpaulson has joined #ruby
<Paradox> heh
elux has quit [Quit: Leaving...]
v0n has joined #ruby
no_worries has quit [Remote host closed the connection]
<ZenGuy> what fucntionality will it provide?
lggr has joined #ruby
wpaulson has quit [Client Quit]
reset has joined #ruby
Vinz| has joined #ruby
Takehiro has quit [Ping timeout: 260 seconds]
awestroke has quit [Remote host closed the connection]
<harushimo> rock_paper.rb:27:in `rps_game_winner': NoSuchStrategyError (NoSuchStrategyError)
<harushimo> from rock_paper.rb:36:in `<main>'
<harushimo> what is this error message mean?
alfism has quit [Quit: alfism]
whackatre has quit [Remote host closed the connection]
cburyta has quit [Remote host closed the connection]
und3f has quit [Quit: Leaving.]
<armenb> Gemfiles: do they need to be in my current directory for me to be able to run bundle commands?
margle has joined #ruby
deadghost has joined #ruby
whaley has joined #ruby
yoklov has quit [Quit: bye!]
<atmosx> rock paper scisors? heh
<Gate> armenb: nope, they must be in the current, or some parent directory
<harushimo> yea
<harushimo> how did you figure out
<harushimo> hehe
nitti has joined #ruby
<wting> Are json objects native to Ruby 1.9?
lggr has quit [Ping timeout: 260 seconds]
<invisime> wting: no. you need the json gem.
invisime has quit [Quit: Leaving.]
drowningchild has left #ruby ["Leaving"]
margle has quit [Client Quit]
senny has quit [Remote host closed the connection]
cjs226 has quit []
<wting> invisime: Thanks, I was getting confused by Ruby syntax thinking associative arrays were json objects.
mneorr has joined #ruby
<wting> well, "hashes"
rakl has quit [Quit: sleeping]
nitti_ has quit [Ping timeout: 245 seconds]
adeponte has quit [Remote host closed the connection]
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
lggr has joined #ruby
Skipp_OSX has left #ruby ["Leaving"]
zeromodulus has joined #ruby
v0n has quit [Quit: Leaving]
adeponte has joined #ruby
v0n has joined #ruby
<harushimo> any suggestions
wwoodrum has joined #ruby
<wwoodrum> hey guys
<Vinz_> harushimo: What if you remove .downcase from your if condition ?
<Vinz_> if strategy.include?(game[0][1]) && strategy.include?(game[1][1])
LLama has quit [Quit: IRC is just multiplayer notepad]
carloslopes has quit [Quit: Leaving.]
emergion has joined #ruby
<harushimo> let me try it
<wwoodrum> need help returning a string input times a velue entered.. ex. front_times('Chocolate', 2) → 'ChoCho'
<wwoodrum> front_times('Chocolate', 3) → 'ChoChoCho'
<wwoodrum> so far i have http://pastebin.com/Ejnp6386
<wwoodrum> but all im getting is ('chocolate', 3) --> ccc
<harushimo> yep that was it
<Vinz_> harushimo: :)
Ducblangis has joined #ruby
<harushimo> good call
<harushimo> I can't get the whole to appear
<harushimo> I think it is way I'm returning game function
<Vinz_> wwoodrum: "chocolate"[0, 3] * 3 ?
manizzle has joined #ruby
<Vinz_> irb(main):002:0> "Chocolate"[0,3] * 3
<Vinz_> => "ChoChoCho"
<armenb> I'm getting this error: "ERROR: Gem bundler is not installed, run `gem install bundler` first."
<wwoodrum> kk ill try ty
lggr has quit [Ping timeout: 240 seconds]
<armenb> but I swear I have a bundler installed.
<armenb> google tells me to do somethign with "~/.rvm/scripts/rvm", but I don't have one of those
jamescarr has quit [Ping timeout: 245 seconds]
<harushimo> gem install bundle
mvangala has quit [Remote host closed the connection]
<Vinz_> http://pastie.org/5026402 wwoodrum
<Vinz_> This works
<Vinz_> And does what you were describing
solidus-river has left #ruby [#ruby]
no_worries has joined #ruby
greenarrow has joined #ruby
lggr has joined #ruby
<armenb> gem install bundler doesn't work. it's lloking for something in my ~/.gem directory, which doesn't exist.
greenarrow has quit [Client Quit]
elaptics`away is now known as elaptics
samuel02 has quit [Remote host closed the connection]
cj3kim has quit [Quit: This computer has gone to sleep]
ngg_ has joined #ruby
samuel02 has joined #ruby
cj3kim has joined #ruby
rakl has joined #ruby
<wwoodrum> did this http://pastebin.com/xGFEncyh
<wwoodrum> seems to do the same thing just extra un needed code
<wwoodrum> ty very much Vinz
<wwoodrum> kudos
<armenb> those directions seem to make a lot of assumptions, right? why would I have a ~/.rvm directory?
<Vinz_> ;)
<Kudos> wwoodrum
jimeh2 has quit [Ping timeout: 240 seconds]
<Vinz_> Kudos (from Greek κῦδος, meaning 'glory') is a singular English word meaning acclaim or praise for exceptional achievement.
<atmosx> armenb: what are you trying to install??
<wwoodrum> lol yeah didn't know there was a kudos user in here as well
<Kudos> ;D
<Vinz_> Me neither :D
<wwoodrum> hah well anyways thanks again
<Vinz_> ¡De nada!
chussenot has joined #ruby
<armenb> atmosx: GitLab. http://www.gitlabhq.com
wwoodrum has quit [Quit: irc2go]
tommyvyo has joined #ruby
nadendla has joined #ruby
cj3kim has quit [Client Quit]
lggr has quit [Ping timeout: 256 seconds]
bapa has joined #ruby
ngg_ has left #ruby ["Leaving..."]
<armenb> I'm totally stuck on the "sudo -u gitlab bundle exec rake gitlab:app:status RAILS_ENV=production" step.
<armenb> because I'm in my home directory and bundle is looking for a Gemfile, and there's no Gemfile in my home directory
mneorr has quit [Remote host closed the connection]
dakine has joined #ruby
jimeh2 has joined #ruby
nitti has quit [Remote host closed the connection]
stephenjudkins has quit [Quit: stephenjudkins]
samuel02 has quit [Ping timeout: 256 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
whaley has quit [Remote host closed the connection]
lggr has joined #ruby
elaptics is now known as elaptics`away
frogprince_mac has quit [Remote host closed the connection]
elaptics`away is now known as elaptics
Morkel has quit [Quit: Morkel]
Spooner has joined #ruby
havenn has quit [Remote host closed the connection]
<nadendla> is there an irc channel for aws ec2 ruby users
<nadendla> ?
fr0gprince_ is now known as frogprince
<matti> nadendla: Not sure. I don't think so.
<matti> nadendla: Why?
lggr has quit [Ping timeout: 240 seconds]
jamjam has joined #ruby
digerati_ has joined #ruby
<nadendla> I have to mount several ebs volumes on an ec2 cluster since the max limit that we can mount on to an instance is 10 I have to shuffle by mounting and unmounting volumes depending on requirement , to do this I have to know which devices are already in use and which are not .. not sure how to do this
thmzlt has quit []
<nadendla> btw I am using aws-sdk rubygem
GeekOnCoffee has quit [Ping timeout: 244 seconds]
stkowski has quit [Remote host closed the connection]
lggr has joined #ruby
stkowski has joined #ruby
mmitchell has quit [Ping timeout: 244 seconds]
yxhuvud has quit [Ping timeout: 246 seconds]
sailias has joined #ruby
pskosinski has quit [Quit: A few unofficial Red Eclipse 1.3.1 (r4131) servers: http://altred.tk/toggle.rb (and no more global banning for saying that main dev is not very smart, what is truth anyway)]
<harushimo> I can't get the raise NoSuchStrategyError works
stkowski_ has joined #ruby
stkowski_ has quit [Remote host closed the connection]
stkowski_ has joined #ruby
userbard has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
emergion has joined #ruby
stkowski has quit [Ping timeout: 260 seconds]
stkowski_ is now known as stkowski
stkowski has quit [Remote host closed the connection]
skrewler has joined #ruby
nadendla has left #ruby [#ruby]
<harushimo> any suggestions
stkowski has joined #ruby
timonv has joined #ruby
skrewler has quit [Client Quit]
moshee has quit [Ping timeout: 276 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
dmiller has joined #ruby
Chryson has quit [Quit: Leaving]
rakl has quit [Quit: sleeping]
<Spooner> harushimo : Looks like it should raise that error to me. When I run it, it tells me "uninitialized constant NoSuchStrategyError" which means it is trying to raise it.
J2EE has quit [Quit: Kelebek Premium ¤ www.Kelebek.Org ¤]
<harushimo> Is it because I use "X"
<Spooner> harushimo : Is what because you use "X"?
lggr has quit [Ping timeout: 276 seconds]
<harushimo> it is trying compare X vs P
thone_ has joined #ruby
<harushimo> it should be invalid strategy for the game
<Spooner> Yes, it is seeing if X is in RPS, which it isn't so it raises the error. Not sure what you are struggling with...
<harushimo> when I put "P", the program executes fine
<harushimo> let me try understand raise
<Spooner> I don't understand what is going wrong for you ;)
lggr has joined #ruby
thone has quit [Ping timeout: 245 seconds]
nykac has left #ruby [#ruby]
<harushimo> I thought it suppose to give an error message
<Spooner> It does.
Takehiro has joined #ruby
<harushimo> oh okay.
cdzombak has quit []
<harushimo> I didn't understand the error message because it suppose to do it
<harushimo> I didn't think that was it
<harushimo> I thought there was more to the error message like Invalid strategy or something
<Spooner> Well, does NoSuchStrategyError inherit from StandardError?
<harushimo> yes
<Spooner> You can give more detail with raise WhateverError, "Full text explanation of what went wrong"
jgarvey has quit [Quit: Leaving]
Jork1 has quit [Quit: Jork1]
<matti> Spooner: ;]
<Spooner> matti How goes FizzBuzz?
sepp2k1 has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 245 seconds]
drule has joined #ruby
<matti> Spooner: Check github ;]
vitoravelino is now known as vitoravelino`afk
<matti> Spooner: Just finished Travis CI integration ;]
<Spooner> Do I have to? ;)
dakine has quit [Remote host closed the connection]
mgrayson has left #ruby [#ruby]
timonv has quit [Remote host closed the connection]
<matti> Spooner: ? ;d
Takehiro has quit [Ping timeout: 260 seconds]
<Spooner> I'm lazy.
<matti> Spooner: Pf.
darule has quit [Ping timeout: 240 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
darule has joined #ruby
mgates has quit [Quit: mgates]
<harushimo> thank you
<matti> Hi harushimo
<harushimo> hello
alanp has joined #ruby
lggr has joined #ruby
drule has quit [Ping timeout: 245 seconds]
jeffreybaird has quit [Quit: jeffreybaird]
wpaulson has joined #ruby
irleif has joined #ruby
emergion has joined #ruby
Jork1 has joined #ruby
piotr__ has quit [Ping timeout: 260 seconds]
iamjarvo has quit [Read error: Operation timed out]
love_color_text has joined #ruby
alanp_ has quit [Ping timeout: 244 seconds]
bradleyprice has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
g-ram has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
_7894 has joined #ruby
artm has quit [Quit: artm]
irleif has quit [Quit: Computer has gone to sleep.]
wpaulson_ has joined #ruby
Ankhers has quit [Remote host closed the connection]
Tearan has quit [Quit: Sleepy Badger....]
DrShoggoth has quit [Quit: Leaving]
cascalheira has joined #ruby
JonnieCache has joined #ruby
lagzilla has joined #ruby
atmosx has quit [Quit: WeeChat 0.3.8]
lggr has joined #ruby
Forevernade has joined #ruby
skogis has quit [Ping timeout: 260 seconds]
rakl has joined #ruby
blazes816 has joined #ruby
emergion has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<A124> Any tips for captcha solver? Simpler captcha.
wpaulson has quit [Ping timeout: 255 seconds]
wpaulson_ is now known as wpaulson
Tearan has joined #ruby
robertotauille has joined #ruby
wpaulson has quit [Client Quit]
rakl has quit [Client Quit]
ForevernadeAFK has quit [Ping timeout: 276 seconds]
flip_digits has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
stkowski has quit [Remote host closed the connection]
<Spooner> A124 : Yeah, give undergraduate psych students the job of doing it manually, telling them it is an important test.
h4mz1d has quit [Read error: Operation timed out]
stkowski has joined #ruby
<A124> Spooner: Heh.
cburyta has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
GoGoGarrett has quit [Remote host closed the connection]
stephenjudkins has joined #ruby
Xeago has quit [Remote host closed the connection]
<Spooner> A124 : Google is your friend on this, but I suspect it is far from trivial - especially if it isn't just to solve one specific captcha system.
cburyta has quit [Ping timeout: 240 seconds]
emmanuelux has quit [Remote host closed the connection]
<A124> Spooner: It's one specific. But I'd like to have to be able to solve more. But nothing fancy, as I'm not plannign to spam or automate anything that is only legal for human. I just got into trouble with "high volumes"
lggr has joined #ruby
<Spooner> A124 : Don't worry, I wasn't going to help or hinder ;)
joshman_ has quit [Quit: Computer has gone to sleep.]
philcrissman has quit [Remote host closed the connection]
QKO has quit [Ping timeout: 260 seconds]
<A124> Is there any way to in-block leave user to irb and then continue?
<Spooner> A124 : You want to use pry gem and binding.pry (irb is for losers).
<A124> Spooner: Is the same possible with irb?
bbttxu_ has quit [Quit: bbttxu_]
sent-hil has quit [Remote host closed the connection]
<A124> And anyway, I use both.
bigmcq77 has quit [Quit: Computer has gone to sleep.]
<Spooner> No idea.
robertotauille has quit [Quit: Linkinus - http://linkinus.com]
<armenb> gah, what the hell is wrong with ruby: http://pastebin.com/JN7R49d7
lggr has quit [Ping timeout: 252 seconds]
<armenb> what could be the problem there? I install bundler, then it tells me I don't have bundler installed.
bbttxu has left #ruby [#ruby]
etehtsea has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
bigmcq77 has joined #ruby
<A124> Spooner: irb is faster in certain situations. Also I need to find out formatting yet. I see the binding, Thank you.
hsbt is now known as hsbt_away
<Spooner> irb is certainly a lot faster to start up. I'll give you that.
<Spooner> armenb : Did you install Ruby for the user with rvm and then installed bundler using "sudo" so it was installed for the system, not for the user's Ruby?
lggr has joined #ruby
<armenb> Spooner: I'm confused. installing ruby for the system implies users can see it too, right?
<armenb> my ruby installation is in /usr/local/rvm, along with a copy of ruby buried in there somewhere.
<Spooner> armenb : It does, but if you install Ruby for the user and install the gem for the system, then Ruby can't access it.
arielpts- has quit [Excess Flood]
<Spooner> Question is, did you use sudo gem install or not?
nitti has joined #ruby
Jork1 has quit [Quit: Jork1]
arielpts has joined #ruby
arielpts has quit [Excess Flood]
<Spooner> Oh right, so you have system ruby, not user (user would be in /home/me/.rvm/rubies).
arielpts has joined #ruby
arielpts has quit [Excess Flood]
skogis has joined #ruby
arielpts has joined #ruby
arielpts has quit [Excess Flood]
Foxandxss has joined #ruby
arielpts has joined #ruby
arielpts has quit [Excess Flood]
<Spooner> armenb : Anyway, I've found that using sudo with gem if you have Ruby in ~, then Ruby won't see it.
arielpts has joined #ruby
arielpts has quit [Excess Flood]
<armenb> I don't have any ~/.rvm or ~/.gem directory anywhere.
pettsson has quit [Ping timeout: 255 seconds]
<armenb> (thanks for responding, I really appreciate your insight)
mikeg has joined #ruby
arielpts has joined #ruby
arielpts has quit [Excess Flood]
arielpts has joined #ruby
arielpts has quit [Excess Flood]
<ZenGuy> i'm usign ruby 1.8.7 and i'm having trouble runnign xdcc-fetch .. the original developer seemed to abandopn the project but at some point it worked on older distroshttp://sourceforge.net/projects/xdccfetch/files/ if you can download it and try to see what the problem I'd appreciate that .. you'll need gem install fxruby which requires sudo apt-getinstall libfox
banseljaj is now known as imami|afk
arielpts has joined #ruby
arielpts has quit [Excess Flood]
nitti has quit [Ping timeout: 240 seconds]
arielpts has joined #ruby
arielpts has quit [Excess Flood]
lggr has quit [Ping timeout: 245 seconds]
havenn has joined #ruby
arielpts has joined #ruby
<armenb> Spooner: do you happen to know the critical environment variables to have set with ruby/rvm/gems to make things work smoothly?
no_worries has quit [Remote host closed the connection]
colinbm has joined #ruby
arielpts has quit [Excess Flood]
arielpts has joined #ruby
arielpts has quit [Excess Flood]
<Spooner> armenb : I don't sorry. Generally, the recommendation is to install Ruby for users, not the whole system. Life runs more smoothly ;)
<A124> I'm runing all as root.
arielpts has joined #ruby
arielpts has quit [Excess Flood]
arielpts has joined #ruby
arielpts has quit [Excess Flood]
<Spooner> A124 : Yeah, it does work that way. Just nicer to avoid rooting everything.
arielpts has joined #ruby
arielpts has quit [Excess Flood]
<A124> And no, I'm not suicidal. Developer virtual machine.
<armenb> A124: can you tell me your output of "env|grep GEM"?
lggr has joined #ruby
arielpts has joined #ruby
arielpts has quit [Excess Flood]
zemanel has quit [Quit: Remote hottie closed the connection]
<Paradox> anyone know a non-eval way to parse a string, containing, say [0..30], into the ruby version of [0..30] ?
<A124> armenb: nothing
arielpts has joined #ruby
<Paradox> i want to take user input that lets them specify elements of an array
<Spooner> Paradox : Depends what it contains. If it is always that format, then just use a regexp - if it is complex, then not so easy to do.
<Paradox> and let them preform actions on them
<Paradox> Spooner, i want basically all the things people can do with raw arrays
<Paradox> but in a safe manner
<Paradox> that is, [1, 3, 4], [1..3], and [1...-1]
v0n has quit [Ping timeout: 246 seconds]
<Paradox> guess i should just regex it
macmartine has joined #ruby
<A124> armenb: I don't use rvm unless I need more versions. And in that case I load rvm only when needed not with profile
<armenb> by the way, what happens when you type "gem install bundler" on your system?
<armenb> does it tell you it's already installed?
<Spooner> You could regexp it to make sure it has nothing crazy in it and just eval it. If it is local input, then you don't have to be super-careful (unlike running source from a web input).
ffranz has quit [Quit: Leaving]
jenrzzz has joined #ruby
<Paradox> its for an irc bot
<A124> Nothing I guess
<A124> Installed
ken_barber has quit [Remote host closed the connection]
<armenb> I use rvm because I'm fruitlessly following install directions on gitlabhq.com
<A124> Umm.. so I have bundler on the other system.
colinbm has quit [Quit: colinbm]
<armenb> A124: ahh interesting. My system seems to keep forgetting that it installed it.
<Paradox> yeah
<Paradox> guess i'll strip anything but \d, -, .
<armenb> (i.e. that pastebin i posted earlier)
<A124> armenb: What distro?
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
<armenb> heh...a script-installed thing on RHEL5
CJNE has joined #ruby
<A124> I'm running, and always end up running Fedora Minimal for developer systems.
<Spooner> Paradox : I'd probably whitelist, rather than blacklist, but yeah, if the user started the process then there is no reason to hack it.
<armenb> i.e. no formal package or anything.
ffranz has joined #ruby
<armenb> i.e. a maintenance disaster.
havenn has quit [Ping timeout: 244 seconds]
ffranz has quit [Read error: Connection reset by peer]
<Tarential> even with packages red hat is a maintenance disaster
ken_barber has joined #ruby
<armenb> Tarential: amen to that...
lggr has quit [Ping timeout: 276 seconds]
<A124> Spooner: Do you remember half year ago when I was asking about scrapers and such?
imami|afk is now known as banseljaj
anachronistic has quit [Quit: anachronistic]
<A124> armenb: Hey. Do you work on Ruby extensions?
stopbit has quit [Quit: Leaving]
cburyta has joined #ruby
CJNE has quit [Ping timeout: 255 seconds]
vlad_sta_ has quit [Remote host closed the connection]
<armenb> A124: no, I don't. why?
skogis has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
<ElderFain> I need to gather all the children of node A, n nodes deep. so my first thought was "recursion!" but I hate recursion
<A124> armenb: Working on one. I just need to figure out string passing / StrinIO
<ElderFain> so then I'm thinking.. some mojo with inject?
vlad_starkov has joined #ruby
<Tarential> you are not allowed to hate recursion
chrisramon has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
<ZenGuy> i'm usign ruby 1.8.7 and i'm having trouble runnign xdcc-fetch .. the original developer seemed to abandopn the project but at some point it worked on older distroshttp://sourceforge.net/projects/xdccfetch/files/ if you can download it and try to see what the problem I'd appreciate that .. you'll need gem install fxruby which requires sudo apt-getinstall libfox
<Spooner> A124 : Nope. I don't remember last week too well :D
<ElderFain> so if node a has 2 children, and those children have 2 children, and those children have 2 children.. i'd say "node a, 1 level deep" and I'd get back the first two children. if i said "node a, 2 levels deep" i'd get back 4 children
<ElderFain> the first and second set of children
<matti> ZenGuy: What is the trouble you are having?
stephenjudkins has quit [Quit: stephenjudkins]
<A124> Spooner: Ah ok. So to put it short. I had problems .. enormous with memory. Not sure if that still applies for 1.9.3, but I guess so for the gem. So I wrote an efficient downloader myself. Just the captcha got in the way.
<ZenGuy> ruby XDCC-Fetch.rbw
<ZenGuy> ./src/GUI/Main_Window.rb:157:in `initialize': undefined method `icon=' for #<Main_Window:0xb7564200> (NoMethodError)
<ZenGuy> from ./src/GUI/Main_Window.rb:279:in `new'
<ZenGuy> from ./src/GUI/Main_Window.rb:279
<ZenGuy> from XDCC-Fetch.rbw:29:in `require'
<ZenGuy> from XDCC-Fetch.rbw:29
<ZenGuy> matti: thats the problem
<matti> Um.
<Spooner> ElderFain : You could just have an array and pass it and a level (so #add_children(array, level); array.push *children; children.each {|c| c.add_children array, level - 1 } if level > 0 end
<ZenGuy> this is after i was advised to edit src/GUI/Packet_List.rb line 31 to "include Fox"
<Paradox> any quick way to use delete_at and pass it an array of indices to delete at?
<Paradox> if not i can just use each
<ElderFain> Spooner: hmm
<ElderFain> chewing on it
h4mz1d has joined #ruby
elaptics is now known as elaptics`away
Takehiro has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
the_jeebster has quit [Quit: Leaving.]
libryder has joined #ruby
<libryder> when authors include executables in their gem, how is that done?
rabidpraxis has quit [Remote host closed the connection]
lggr has joined #ruby
mikepack has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 260 seconds]
dnstbr has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<A124> Umm.. multithreaded ruby uses single process? Hm.
stephenjudkins has joined #ruby
<stephenjudkins> ElderFain: why do you hate recursion?
<stephenjudkins> it sounds like the perfect tool for the job
<wmoxam> A124: depends on the interpreter
<wmoxam> A124: MRI uses green threads
kirun has quit [Quit: Client exiting]
uris has quit [Quit: Lost terminal]
rakl has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
nari has joined #ruby
dmiller has quit [Remote host closed the connection]
h4mz1d has quit [Ping timeout: 260 seconds]
lampe2 has quit [Quit: Verlassend]
bier has quit [Ping timeout: 252 seconds]
hotovson_ has joined #ruby
<A124> wmoxam: Yes. I read that. Any way to harness multiple cores?
reuf has joined #ruby
lggr has joined #ruby
rakl has quit [Client Quit]
chussenot has quit [Quit: chussenot]
recycle has joined #ruby
<wmoxam> A124: a) use multiple processes. b) use an interpreter that uses multiple cores (jruby, I think Rubinius does too)
havenn has joined #ruby
jimeh2 has quit [Ping timeout: 276 seconds]
shadoi has quit [Ping timeout: 260 seconds]
<A124> wmoxam: I could not find if I use Process.fork, do the processes share global variables?
jrist is now known as jrist-afk
elico has quit [Quit: elico]
<wmoxam> A124: it's easy to test ;)
<A124> Yeah. :D
<A124> Thanks for help.:)
<wmoxam> A124: but it sounds like you mean shared variables
<A124> Yes.
Russell^^ has quit [Quit: Russell^^]
lggr has quit [Ping timeout: 256 seconds]
leifmadsen has quit [Quit: This is how I roll; animal print pants outta control!]
mikepack has joined #ruby
recycle has quit [Remote host closed the connection]
josh^ has joined #ruby
savage- has joined #ruby
sneakyness_wk has quit [Quit: bro]
davidcelis has quit [Quit: K-Lined.]
<A124> wmoxam: Thank you! Even if Google is my friend, if I don't ask him right question, it does not give me the right answer.
havenn has quit [Ping timeout: 244 seconds]
<wmoxam> :D
<matti> ZenGuy: Did you had a look on this site?
lggr has joined #ruby
<ZenGuy> matti: yeah ruby gem install XDCC-Fetch didn't work
vlad_starkov has joined #ruby
<ZenGuy> matti: someone else is trying to use a later version of Fox to see if it'll work.. using an older version of fxruby didn't
axl_ has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
<ElderFain> stephenjudkins: I don't mentally parse recursion very well, I don't "think" recursively
joofsh has quit [Ping timeout: 240 seconds]
ryanlecompte has quit [Ping timeout: 264 seconds]
macmartine has quit [Quit: Computer has gone to sleep.]
bier has joined #ruby
<stephenjudkins> ElderFain: probably worth figuring it out, since it's by far the best solution to your problem that I can think of.
salman has joined #ruby
<blazes816> ElderFain: it's difficult to grasp mentally at first. a lot of times it helps if you can imagine it iteritively.
<blazes816> i.e. "side by side" instead of "one inside another", if that makes sense
<salman> how to sort hash values like {acrs for aeoopstt acrs foru acrs acemrs acemrs} alphabetically in ascending order
<A124> wmoxam: Still I'm a little puzzled about the pipes and fork.
<A124> wmoxam: Eventhough I myselw already wrote a multithreaded library.
<salman> this wont work sorted_words.sort{|a1,a2| a2[1]<=>a1[1]}
lggr has quit [Ping timeout: 256 seconds]
<wmoxam> A124: multiprocess works a bit different than multithread
<wmoxam> :p
<A124> wmoxam: Yes. I see that. I just don't understand 'fork' in the condition.
jenrzzz has quit [Ping timeout: 248 seconds]
<harushimo> how come I can't return the winner looking like this: ["Rob", "P"]
<harushimo> that is whole element
lggr has joined #ruby
mango_ has quit [Ping timeout: 246 seconds]
<ElderFain> yeah, i've hated recursion since I first learned about it 15 years ago haha
<ElderFain> so I've always avoided using it, and thankfully I don't have many problems that require it
<ElderFain> I did recognize this was a perfect problem for recursion =p
<ElderFain> guess I'll buckle down
vlad_starkov has quit [Ping timeout: 256 seconds]
<harushimo> any suggestiosn
<harushimo> I mean suggestions
<A124> wmoxam: Could you please enlighten me on that one?
jamjam has quit [Ping timeout: 246 seconds]
daniel_- has joined #ruby
juarlex has quit [Read error: Connection reset by peer]
anachronistic has joined #ruby
<Spooner> harushimo : You are using puts, which writes arrays out on separate lines. You want to use "p", not "puts" to get the output you want.
<salman> any hints.. ??
<harushimo> ok
daniel_-_ has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 244 seconds]
<harushimo> so many nuisances of ruby
<harushimo> that I'm learning
<harushimo> this is totally different from python
timonv has joined #ruby
lggr has joined #ruby
SegFaultAX|work has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
rakl has joined #ruby
jlwestsr has quit [Ping timeout: 246 seconds]
beneggett has quit [Quit: Computer has gone to sleep.]
manizzle is now known as WeLoveCP
indian has quit [Quit: Leaving]
timonv has quit [Ping timeout: 240 seconds]
xaq has joined #ruby
nitti has joined #ruby
reuf has quit [Quit: Leaving]
nari has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 240 seconds]
WeLoveCP is now known as manizzle
manizzle is now known as manizzle_
havenn has joined #ruby
daniel_hinojosa has quit [Quit: Leaving.]
nitti has quit [Ping timeout: 256 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
JonnieCache has quit [Ping timeout: 255 seconds]
lggr has joined #ruby
bambanx has joined #ruby
bambanx has left #ruby [#ruby]
sent-hil has joined #ruby
sent-hil has quit [Remote host closed the connection]
savage- has quit [Remote host closed the connection]
ryanlecompte has joined #ruby
stkowski has quit [Quit: stkowski]
rakl has quit [Quit: sleeping]
havenn has quit [Ping timeout: 264 seconds]
jlwestsr has joined #ruby
marcux has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
Takehiro has joined #ruby
hsbt_away is now known as hsbt
lggr has joined #ruby
eignerch_ has joined #ruby
Michael_ has joined #ruby
slainer68 has quit [Remote host closed the connection]
<Paradox> does anyone know of a stack style object, that i can set to have a limited size, and as new items are pushed to the top old ones fall off the bottom?
<Paradox> SizedQueue is close
sent-hil has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
eignerchris has quit [Ping timeout: 246 seconds]