apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
cooldman224 has quit [Remote host closed the connection]
<apeiros> sounds like you're using the wrong language
jan1337z has quit [Quit: System is going down.]
<izzy278> yeah, anything with an interpretor or a JIT
<apeiros> so, why're you here then?
mrsolo has joined #ruby
taternuts has joined #ruby
mercwithamouth has joined #ruby
h4mz1d has quit [Ping timeout: 245 seconds]
<izzy278> you people need enlightenment. Write in pascal.
wm3|zzz has quit [Ping timeout: 252 seconds]
<izzy278> or c++
<apeiros> ah, just good old trolling
pwh has joined #ruby
<apeiros> you're not very good at it, though
<platzhirsch> izzy278: your name is displayed pink in my IRC client
<platzhirsch> just saying..
<MrZYX> hm, I'm bored, so
<MrZYX> izzy278: we don't blame you for writing pascal or c++, you don't blame us for writing ruby, deal?
<izzy278> deal, my apologies
<izzy278> just looking for a debate
<platzhirsch> A debate is with a moderator
vlad_starkov has joined #ruby
<MrZYX> language debates are largely religious, no gain in them
izzy278 has quit [Quit: irc2go]
<apeiros> yeah, this way to start a debate lets you rather look at a boot kicking you out of the channel rather than at any meaningful debate ;-)
rehat has joined #ruby
<platzhirsch> lol
Stalkr_ has quit [Quit: Leaving...]
<apeiros> and I think most ruby users already know that ruby is slow. news at 11…
Soliah has joined #ruby
<FMJaggy> I thought this was a good reference on why abstraction is sometimes useful: http://www.youtube.com/watch?v=2Ex8EEv-WPs
<godd2> Wait, Ruby is slow? Shit, can you guys help me with an ASM question?
pwh has quit [Client Quit]
<MrZYX> hm, I only know a bit atmel asm
<FMJaggy> particuarly the idea that the better you handle abstractions, the less credit you get for it
<godd2> You guys, what if we make an object oriented processor?
<godd2> oh, AND make it mine bitcoin well
<platzhirsch> godd2: don't tell anyone
codezombie has quit [Quit: Linkinus - http://linkinus.com]
paulodiniz_ has joined #ruby
apeiros has quit [Remote host closed the connection]
<sam113101> what about a java processor
fuhgeddaboudit has joined #ruby
apeiros has joined #ruby
<MrZYX> I'm sure that already exists :P
<sam113101> does it?
deception has joined #ruby
<MrZYX> no idea. But I wouldn't be surprised at all
<godd2> yea, there are JVM processors
<platzhirsch> A Java processor? Is that if you build a CPU inside of Minecraft?
jb41 has quit [Ping timeout: 264 seconds]
<lupine> modern arm cores can execute most java bytecode natively
pwh has joined #ruby
<lupine> it's pretty sexy tech
paulodiniz_ has quit [Client Quit]
<sam113101> lupine: seriously?
pwh has quit [Client Quit]
<lupine> yes
<lupine> arm has three different instruction sets now, bless 'em
vlad_starkov has quit [Ping timeout: 240 seconds]
<lupine> arm, thumb, and jvm bytecode
<sam113101> is arm considered a "clean" architecture?
<lupine> *shrug*
dagnachew has joined #ruby
<lupine> it doesn't seem to cost them a lot
vxxr has joined #ruby
<lupine> I do get a fillip out of JIT + JRuby + an enabled JVM
LMolr has quit [Quit: Leaving]
<lupine> "My ruby script is running natively on the CPU!", I cry
i_s has quit [Remote host closed the connection]
kitak has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
Fire-Dragon-DoL has left #ruby [#ruby]
digifiv5e has quit [Ping timeout: 268 seconds]
jan1337z has joined #ruby
s2013- has quit [Quit: Textual IRC Client: www.textualapp.com]
mlpinit has joined #ruby
chrishough has quit [Quit: chrishough]
s2013- has joined #ruby
lockweel has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.0/20130910160258]]
volty has quit [Quit: Konversation terminated!]
mlpinit has quit [Remote host closed the connection]
katsrc has joined #ruby
petey has quit [Remote host closed the connection]
deception has quit [Ping timeout: 248 seconds]
aaronmcadam has quit [Quit: Leaving...]
digifiv5e has joined #ruby
digifiv5e is now known as Guest77997
boskop has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
alx- has joined #ruby
zz_taion809 is now known as taion809
dagnachew has quit [Quit: WeeChat 0.4.1]
Kricir has joined #ruby
dagnachew has joined #ruby
justsee has joined #ruby
dagnachew has quit [Client Quit]
platzhirsch1 has joined #ruby
platzhirsch has quit [Ping timeout: 245 seconds]
petey has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
boskop has quit [Remote host closed the connection]
twoism has quit [Remote host closed the connection]
xk_id has quit [Quit:
jan1337z has quit [Quit: System is going down.]
IcyDragon has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
elux has quit [Quit: Bye!]
Aryasam has quit [Ping timeout: 260 seconds]
Stalkr^ has quit [Quit: Leaving...]
Aryasam has joined #ruby
IceDragon has quit [Ping timeout: 256 seconds]
robonerd has joined #ruby
<robonerd> ok, decided i can't come back to ruby as i'm a fan of stronger typing now
twoism has joined #ruby
<popl> robonerd: Is there a reason you decided to share this with #ruby?
<robonerd> yea to give back
<popl> golly
twoism has quit [Remote host closed the connection]
stevenhaddox has quit [Quit: Connection closed for inactivity]
kofno has joined #ruby
echevemaster_ has quit [Quit: Leaving]
xk_id has joined #ruby
GeissT has joined #ruby
MrZYX is now known as MrZYX|off
cj3kim_ has quit [Remote host closed the connection]
TomRone has joined #ruby
kofno has quit [Ping timeout: 260 seconds]
LaPetiteFromage has joined #ruby
User_ has quit [Read error: Operation timed out]
marsLantern has joined #ruby
<petey> is there a special way to install compass using rbenv?
<petey> or would i still run gem install compass
bradhe has joined #ruby
martxel has quit [Quit: WeeChat 0.4.1]
bradhe has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
<banister`sleep> robonerd what language are you using now?
<robonerd> banister`sleep not sure yet. i've been looking at a lot over the past couple of days. opa, go, another look at python, etc
<robonerd> any suggestions to look over?
martxel has joined #ruby
martxel has quit [Changing host]
martxel has joined #ruby
kobain_ has joined #ruby
kobain has quit [Ping timeout: 260 seconds]
<robonerd> i'd like something static typed, but possibly dynamic as that is nice
<banister`sleep> robonerd python hasn't exactly got static typing
kobain_ has quit [Client Quit]
kvirani has joined #ruby
<robonerd> ah
<robonerd> so subtract python :P
Aryasam has quit [Ping timeout: 264 seconds]
<lupine> doesn't ruby have a static typing system ?
<lupine> "there's a gem for that", etc
awkisopen has quit [Ping timeout: 260 seconds]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
<petey> my rbenv isn't picking up my newly installed ruby
<petey> its still choosing the system's ruby
<petey> even though i added the export path and the rbenv init -
<robonerd> lupine really?
<banister`sleep> robonerd so someone who didn't even know python is dynamically typed is seeking to 'give back' to the ruby community by telling us you prefer static typing? :P
heftig has joined #ruby
<robonerd> sharin' what i can, bro
<robonerd> rofl
<robonerd> read the 2 'points'
Aryasam has joined #ruby
awkisopen has joined #ruby
<banister`sleep> scala does seem pretty cool
<robonerd> yep
Stalkr^ has joined #ruby
<lupine> I can't say I dislike static typing
<petey> is "which ruby" supposed to be going to: rbenv/shims/ruby
<petey> im assuming system ruby is /usr/bin/ruby
<lupine> are you using rbenv ?
<robonerd> wow
<petey> yes
<lupine> then yes
<robonerd> lupine, that looks amazing
<petey> ah okay cool thanks lupine
lsoa has quit [Ping timeout: 248 seconds]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
Stalkr^ has quit [Ping timeout: 245 seconds]
emergion has joined #ruby
baroquebobcat has joined #ruby
Guest77997 has quit [Changing host]
Guest77997 has joined #ruby
Guest77997 is now known as guyz
tomzx_mac_ has joined #ruby
ravster has left #ruby [#ruby]
kvirani has quit [Remote host closed the connection]
snovak has joined #ruby
tomzx_mac has quit [Ping timeout: 264 seconds]
kvirani has joined #ruby
VTLob has quit [Quit: VTLob]
jonahR has quit [Read error: Connection reset by peer]
Nogbit has joined #ruby
lukec has quit [Quit: lukec]
jonahR has joined #ruby
rcosta_ has quit [Read error: Connection reset by peer]
taternuts has quit [Read error: Connection reset by peer]
s0ber has joined #ruby
rcosta has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
kvirani has quit [Ping timeout: 276 seconds]
taternuts has joined #ruby
taternuts has quit [Client Quit]
Aryasam has quit [Ping timeout: 240 seconds]
s2013- has quit [Quit: Textual IRC Client: www.textualapp.com]
baroquebobcat has quit [Quit: baroquebobcat]
mercwithamouth has quit [Ping timeout: 248 seconds]
peregrine81 has joined #ruby
TryX has joined #ruby
kvirani has joined #ruby
<TryX> man
threesome has quit [Ping timeout: 260 seconds]
Kricir has joined #ruby
<TryX> is ther a huge advantage for ruby 2.0.0 or 1.9.3
<TryX> im new to ruby so i figure ishuld learn the newer version
peregrine81 has quit [Max SendQ exceeded]
JumpMast3r has joined #ruby
TryX has quit [Remote host closed the connection]
r0bglees0n has quit [Ping timeout: 240 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
Kricir has quit [Ping timeout: 268 seconds]
kofno has joined #ruby
nfk has quit [Quit: yawn]
peregrine81 has joined #ruby
xk_id has quit [Quit:
polaco_zZz is now known as polaco
mrapple has quit [Ping timeout: 240 seconds]
IceDragon_ has joined #ruby
Hanmac1 has joined #ruby
<zastern> Something nobody who sits near me at work can answer: What does it mean when I require something, and it returns false, or returns true? In both cases it seems to be working.
emergion has quit [Quit: Computer has gone to sleep.]
IcyDragon has quit [Ping timeout: 256 seconds]
hanmac has quit [Ping timeout: 252 seconds]
baroquebobcat has joined #ruby
<sam113101> zastern: "Loads the given name, returning true if successful and false if the feature is already loaded."
bradhe has quit [Remote host closed the connection]
<sam113101> and "If the file named cannot be found, a LoadError will be raised."
greenrose1 has joined #ruby
platzhirsch1 has left #ruby [#ruby]
Nogbit has quit [Quit: Leaving.]
paulodiniz has joined #ruby
greenrose has quit [Ping timeout: 245 seconds]
tomzx_mac has joined #ruby
marsLantern has quit [Quit: marsLantern]
tomzx_mac_ has quit [Ping timeout: 245 seconds]
mrapple has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has joined #ruby
kofno has quit [Ping timeout: 264 seconds]
petey has quit [Remote host closed the connection]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
chrishough has joined #ruby
robonerd has left #ruby ["..."]
vlad_starkov has quit [Ping timeout: 245 seconds]
TDJACR has quit [Ping timeout: 260 seconds]
ce_afk is now known as cescalante
cmarques has joined #ruby
CaptainPone is now known as Catie
petey has joined #ruby
n_blownapart has joined #ruby
chrishough has quit [Quit: chrishough]
cmarques has quit [Ping timeout: 245 seconds]
Cyrus has joined #ruby
AdmiraI has joined #ruby
JZTech101 has quit [Ping timeout: 260 seconds]
popl has quit [Quit: We must make an idol of our fear, and call it God.]
bradhe has joined #ruby
zodiak has quit [Read error: Connection reset by peer]
n_blownapart has quit [Remote host closed the connection]
jarin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jrubus has joined #ruby
JZTech101 has joined #ruby
snovak has joined #ruby
paulodiniz has quit [Quit: paulodiniz]
bradhe has quit [Ping timeout: 268 seconds]
popl has joined #ruby
w3pm has joined #ruby
paulodiniz_ has joined #ruby
sniffingcats has quit [Quit: Til rivido Idisti!]
w3pm has quit [Client Quit]
snovak has quit [Ping timeout: 245 seconds]
jrubus has left #ruby [#ruby]
Davey has joined #ruby
pwh has joined #ruby
snickle has quit [Quit: snickle]
tylersmith has joined #ruby
zodiak has joined #ruby
emergion has joined #ruby
w3pm has joined #ruby
emergion has quit [Client Quit]
radic_ has joined #ruby
radic has quit [Disconnected by services]
vlad_starkov has joined #ruby
Kricir has joined #ruby
huoxito has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
vlad_starkov has quit [Read error: Operation timed out]
JimmyNeutron has joined #ruby
justsee has quit [Ping timeout: 260 seconds]
nitish has joined #ruby
Kricir has quit [Ping timeout: 248 seconds]
cj3kim_ has joined #ruby
Monie has joined #ruby
einarj has joined #ruby
rcosta has quit [Remote host closed the connection]
devyn has quit [Read error: Connection reset by peer]
einarj has quit [Read error: Operation timed out]
devyn has joined #ruby
w3pm has quit [Quit: This computer has gone to sleep]
<reactormonk> what's a good way to toggle an external process on and off?
brianpWins has joined #ruby
tkuchiki has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
JumpMast3r has joined #ruby
barrylj has joined #ruby
<barrylj> hi i am teaching a course in 2 weeks and am trying to collect some developer demographic data to help refine how i release my software. please consider filling out the linked survey, it will take 2 minutes of your time and you get to view the results when you're done: https://docs.google.com/forms/d/1QwygSPDVDh9pJ78Bh1Sm0LipSjWIbtBr1-9SFCcI7tU/viewform
<popl> barrylj: Nope.
<popl> barrylj: no Starbucks gift card?
<popl> at least my university offered a Starbucks gift card
<sam113101> yeah I want a gift card
baroquebobcat has joined #ruby
polaco is now known as polaco_zZz
brianpWins has quit [Ping timeout: 264 seconds]
<barrylj> knowledge or lattè
mansi has quit [Ping timeout: 248 seconds]
JimmyNeutron has quit [Quit: Leaving]
pwh has quit [Quit: pwh]
|jemc| has joined #ruby
<jrobeson> barrylj, i don't like the phrasing
DanKnox_away is now known as DanKnox
<jrobeson> I prefer interacting with GUI's more than command-lines, even if they force me to do things in ways I don't want
<jrobeson> i think you're putting too much bias in the question there for some people who dn't really think about the difference
<barrylj> edited due to responses thus far
<barrylj> it was prior: I prefer interacting with GUI's more than command-lines, even if they are less programmable
<jrobeson> i don't understand why you add the "even if " whatever
<jrobeson> why not .. just.. prefer GUIs more than command lines
pwh has joined #ruby
<jrobeson> i generally use a cli for many things.. but.. i did configure my firewall with a gui
<jrobeson> the additional context was useful to see all the open and unopened ports/services on the same line
JumpMast3r has quit [Quit: JumpMast3r]
<jrobeson> err same screen
fuhgeddaboudit_ has joined #ruby
fuhgeddaboudit_ has quit [Read error: Connection reset by peer]
fuhgeddaboudit_ has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
cescalante is now known as ce_afk
nitish has quit [Remote host closed the connection]
pwh has quit [Quit: pwh]
polaco_zZz is now known as polaco
kvirani has quit [Remote host closed the connection]
kvirani has joined #ruby
thepumpkin has quit [Remote host closed the connection]
iliketurtles has joined #ruby
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
kvirani has quit [Ping timeout: 276 seconds]
n_blownapart has joined #ruby
n_blownapart has quit [Remote host closed the connection]
vxxr has quit [Quit: leaving]
snickle has joined #ruby
JumpMast3r has joined #ruby
barrylj has quit [Ping timeout: 250 seconds]
peregrine81 has quit []
fuhgeddaboudit has quit [Quit: Ex-Chat]
Nisstyre-laptop has joined #ruby
zz_michael_mbp is now known as michael_mbp
iliketurtles has quit [Quit: zzzzz…..]
Nisstyre-laptop is now known as nisstyre
sirupsen has joined #ruby
Alina-malina has quit [Ping timeout: 256 seconds]
polaco is now known as polaco_zZz
thedonvaughn has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
Kricir has joined #ruby
Es0teric has joined #ruby
DanKnox is now known as DanKnox_away
Es0teric has quit [Client Quit]
mary5030 has joined #ruby
thedonvaughn has quit [Quit: WeeChat 0.4.1]
s2013{Texas} is now known as s2013
jonahR has quit [Quit: jonahR]
Kricir has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Ping timeout: 264 seconds]
godd2 has quit [Quit: Page closed]
mrsolo has quit [Quit: This computer has gone to sleep]
katsrc has quit [Remote host closed the connection]
paulodiniz_ has quit [Quit: paulodiniz_]
bradhe has joined #ruby
felixjet__ has joined #ruby
yfeldblum has joined #ruby
dodosan has quit [Remote host closed the connection]
labrat__ has joined #ruby
hackingoff has quit [Read error: Connection reset by peer]
dodosan has joined #ruby
mrsolo has joined #ruby
<agent_white> If I have a condition inside of a method that fails, how do I loop the method until the correct condition is met?
paulodiniz_ has joined #ruby
<agent_white> I.e. "Enter a number, unless this number is 5, enter another number"
bradhe has quit [Ping timeout: 260 seconds]
felixjet_ has quit [Ping timeout: 264 seconds]
leehambley has quit [Ping timeout: 245 seconds]
leehambley has joined #ruby
kofno has joined #ruby
thedonvaughn has joined #ruby
tylersmith has quit [Ping timeout: 264 seconds]
kofno has quit [Ping timeout: 245 seconds]
Guest55247 has quit [Quit: leaving]
<jrobeson> agent_white, look over the ruby conditionals
<jrobeson> and loops
<jrobeson> there is one that matches your needs exactly
kitak has quit [Remote host closed the connection]
<agent_white> jrobeson: Yeah I have a feeling I'm using the wrong one.
eka has quit [Quit: Computer has gone to sleep.]
kitak has joined #ruby
<agent_white> I think ima need a code critique once I finish this tic-tac-toe haha
<jrobeson> have you run through the ruby koans?
<jrobeson> if not.. it's a good idea
<agent_white> jrobeson: Koans?
<agent_white> jrobeson: Ah I see... I'll czech it out. I've just used Why's/Hardway/bastard's book/pickaxe... seems like I always get tripped up when I move from blocks to classes.
Es0teric has joined #ruby
dnyy has quit [Ping timeout: 248 seconds]
jonahR has joined #ruby
paulodiniz_ has quit [Quit: paulodiniz_]
ewnd9 has joined #ruby
mmm has joined #ruby
AdmiraI has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cj3kim_ has quit [Read error: Connection reset by peer]
cj3kim_ has joined #ruby
BizarreCake has joined #ruby
snovak has joined #ruby
lectrick has quit [Ping timeout: 248 seconds]
lectrick has joined #ruby
mary5030 has quit [Remote host closed the connection]
paulodiniz_ has joined #ruby
snovak has quit [Ping timeout: 256 seconds]
fourq has quit [Ping timeout: 248 seconds]
fuhgeddaboudit_ has quit [Ping timeout: 252 seconds]
fourq has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
ukd1 has joined #ruby
m00nlight has joined #ruby
zorg24 has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
Kricir has joined #ruby
fridim__ has quit [Read error: Operation timed out]
sirupsen has quit []
IceDragon_ has quit [Quit: Space~~~]
mattp_ has quit [Ping timeout: 248 seconds]
mattp_ has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Ping timeout: 264 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
Soliah has quit [Quit: Soliah]
T_T has quit [Remote host closed the connection]
kazuuu has quit [Remote host closed the connection]
zorg24 has joined #ruby
paulodiniz_ has quit [Quit: paulodiniz_]
quoin has quit [Remote host closed the connection]
r0bglees0n has joined #ruby
mary5030 has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
DanKnox_away is now known as DanKnox
quoin has joined #ruby
leehambley has quit [Ping timeout: 260 seconds]
amacgregor_ has joined #ruby
jonahR has quit [Quit: jonahR]
leehambley has joined #ruby
robbyoconnor has joined #ruby
mary5030 has quit [Remote host closed the connection]
m00nlight has quit [Remote host closed the connection]
amacgregor has quit [Ping timeout: 245 seconds]
m00nlight has joined #ruby
Nogbit has joined #ruby
huoxito has quit [Quit: Leaving]
Quashie has quit [Ping timeout: 248 seconds]
sirupsen has joined #ruby
wallerdev has quit [Quit: wallerdev]
T_T has joined #ruby
thomasxie has joined #ruby
Quashie_ has joined #ruby
nari has joined #ruby
mattp_ has quit [Ping timeout: 248 seconds]
Alina-malina has joined #ruby
Quashie_ is now known as Quashie
mary5030 has joined #ruby
kazuuu has joined #ruby
mattp_ has joined #ruby
Aryasam has joined #ruby
|jemc| has quit [Ping timeout: 261 seconds]
dmiller has quit [Remote host closed the connection]
Aryasam has quit [Quit: Bye]
tov_ has joined #ruby
mrsolo has joined #ruby
postmodern has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
mansi has joined #ruby
cj3kim_ has joined #ruby
zastern has quit [Remote host closed the connection]
amacgregor has joined #ruby
amacgregor_ has quit [Ping timeout: 264 seconds]
AdmiraI has joined #ruby
nari has quit [Ping timeout: 252 seconds]
mansi has quit [Ping timeout: 245 seconds]
Kricir has joined #ruby
cj3kim_ has quit [Ping timeout: 264 seconds]
i8igmac has joined #ruby
lyanchih has joined #ruby
DanKnox is now known as DanKnox_away
Kricir has quit [Ping timeout: 268 seconds]
sayan has joined #ruby
lukec has joined #ruby
snickle has quit [Quit: snickle]
nouitfvf has quit [Ping timeout: 260 seconds]
lyanchih has quit [Client Quit]
lyanchih has joined #ruby
lyanchih has quit [Client Quit]
sayan has quit [Excess Flood]
sayan has joined #ruby
sirupsen has quit []
dmiller has joined #ruby
coderhs has joined #ruby
DanKnox_away is now known as DanKnox
kunday has joined #ruby
dmiller has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
justsee has joined #ruby
kunday has quit [Client Quit]
kunday has joined #ruby
bradhe has quit [Remote host closed the connection]
Clooth has quit [Read error: Connection reset by peer]
Cheos has joined #ruby
nisstyre has quit [Quit: Leaving]
browndawg has joined #ruby
tehKitten has quit [Ping timeout: 264 seconds]
thedonvaughn has quit [Ping timeout: 245 seconds]
kitak has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
kitak has joined #ruby
petey has quit [Remote host closed the connection]
ChronocityLC has joined #ruby
dnyy has joined #ruby
tehKitten has joined #ruby
petey has joined #ruby
osvico has quit [Ping timeout: 245 seconds]
brianpWins has joined #ruby
mihirrege has joined #ruby
dash_ has joined #ruby
|jemc| has joined #ruby
lukec has quit [Quit: lukec]
marsLantern has joined #ruby
ChronocityLC has quit [Ping timeout: 248 seconds]
tomzx_mac has quit [Ping timeout: 256 seconds]
marsLantern_ has joined #ruby
leonidlm has joined #ruby
wildroman has joined #ruby
marsLantern has quit [Ping timeout: 260 seconds]
marsLantern_ is now known as marsLantern
xjiujiu has joined #ruby
dmiller has joined #ruby
thesheff17 has quit [Ping timeout: 268 seconds]
sayan has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
wildroman has quit [Remote host closed the connection]
sayan has joined #ruby
alx- has quit [Quit: Leaving...]
sevenseacat has joined #ruby
leonidlm has quit [Ping timeout: 245 seconds]
robonerd has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
<robonerd> honest question, why don't people just build web apps in C?
<robonerd> it's the fastest or w/e so, *shrug*
xjiujiu has joined #ruby
bradhe has joined #ruby
<popl> C is hard.
<CalvinnHobbes> I would guess build times
<robonerd> well it's certainly harder. ok i can see that.
<robonerd> hm
<popl> C is very close to the metal.
<sevenseacat> this guy again?
<popl> sevenseacat: Me?
<robonerd> but even in computer programs, often C is chosen for speed, not speed of development
<robonerd> so why does it seem there is so little web app dev in C? if any
<popl> robonerd: How many applications have you developed in C?
<sevenseacat> no, robonerd
<robonerd> well mostly just libraries, not full blown apps
adambeynon has joined #ruby
emergion has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
marsLantern has quit [Remote host closed the connection]
Kricir has joined #ruby
marsLantern has joined #ruby
sayan has quit [Excess Flood]
<sevenseacat> looks like its already well-answered
bradhe has joined #ruby
<robonerd> yea, i'm enjoying this read
mihirrege has quit [Remote host closed the connection]
<robonerd> seems like a better idea all the time
sayan has joined #ruby
mihirrege has joined #ruby
TryX has joined #ruby
<sevenseacat> don't let common sense stop you then
bradhe has quit [Remote host closed the connection]
<TryX> anyone help me install ruby 2.00?
<TryX> new to ruby
<TryX> is it even worth it to learn ruby in 2.00 even?>
kazuuu has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 248 seconds]
dangerousdave has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
<robonerd> sevenseacat it's not that i must use C, i just wonder what specifically the benefits of web centric langs are. just an interesting thought for me on a saturday evening
<robonerd> when it comes down to it, web apps are what? programs that serve html content over http/network. would you agree?
<robonerd> html documents, even more specifically
kitak has quit [Remote host closed the connection]
<CalvinnHobbes> TryX: as opposed to learning 1.X version of Ruby?
kitak has joined #ruby
<TryX> ya
quoin has quit [Remote host closed the connection]
<popl> robonerd: I suggest becoming more familiar with different languages first -- then you will understand what the deal is.
<robonerd> i'm familiar with php, ruby, c, and objective C
quoin has joined #ruby
<robonerd> sql too i suppose
<CalvinnHobbes> if you learn one it won't be that hard to go between
<CalvinnHobbes> If you have a specific goal (learn RoR or Sinatra) and are following a guide/book/screencast just set up your env to match theirs
<TryX> i have 1.8 installed, by default.
<TryX> when i try there is always an exception
<TryX> err problem*
sayan has quit [Excess Flood]
<CalvinnHobbes> you're on OSX?
<TryX> gets very annoying
<TryX> ya
<TryX> just got a mac
<TryX> first one, never knew they had ruby isntalled by default
<CalvinnHobbes> an exception during install?
sayan has joined #ruby
<popl> robonerd: What web frameworks do you know that are written in C?
plotcock87 has quit [Quit: plotcock87]
<TryX> sorry, what i meant is that when i try to configure ruby and my enviroment, something goes wrong
wallerdev has joined #ruby
<popl> what do you mean?
<popl> there's an error? what's the error?
<CalvinnHobbes> TryX: you really should look into RVM or rbenv which allows you to more easily set up and switch between environments
<TryX> well i was follwing a tut. earlier on installing RVM and ruby
<CalvinnHobbes> what is the error?
<robonerd> popl none
<robonerd> but that's what i'm wondering
<CalvinnHobbes> and what is the tut
<TryX> i will look for it one sec
ananthakumaran has joined #ruby
quoin has quit [Ping timeout: 245 seconds]
<popl> robonerd: I think that stackoverflow response answered your question fairly succinctly.
<TryX> so when i did rvm requirements
cj3kim has joined #ruby
<robonerd> ty
<TryX> it just stalled when installing certain things like opensll
<popl> are you sure it wasn't just building something?
sayan has quit [Excess Flood]
<CalvinnHobbes> yeah those builds can take awhile
DanKnox is now known as DanKnox_away
sayan has joined #ruby
Soda has joined #ruby
<TryX> it would go on forever....
<TryX> i had to spot it
<popl> forever?
<popl> how long did you wait?
<TryX> 20 mins?
Nogbit has quit [Quit: Leaving.]
<popl> Are you asking me? :)
<TryX> is that normal??
<CalvinnHobbes> did you try brew update beforehand?
konia-ladik11 has joined #ruby
<TryX> i did brew doctor
<popl> If you have something misconfigured, maybe.
<TryX> not update
<TryX> i dont
<TryX> its a fresh install
robonerd has left #ruby ["..."]
<s2013> are there any nlp libraries for ruby?
<popl> s2013: yes.
<s2013> anything you can recommend for a beginner?
<CalvinnHobbes> so you are at the step brew install ....
<popl> s2013: did you do a web search?
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
Nogbit has joined #ruby
<s2013> yeah its mostly just discussions. and i found something called treat but i was looking more for any recommendation. its more of a curiosity anyways
browndawg has quit [Ping timeout: 256 seconds]
<popl> s2013: best to just dig into something and figure out what suits you best
petey has quit [Remote host closed the connection]
<CalvinnHobbes> TryX: If I was trying to solve this problem I would brew install each individual component until I isolated the problem ones, and then google around or let them try to install for awhile
T_T has quit [Remote host closed the connection]
TryX has quit [Remote host closed the connection]
mrsolo has quit [Quit: Leaving]
<jrobeson> i really really don't like that gwan author guy
<r0bglees0n> who's that
<popl> g'wan, tell us
<jrobeson> it was just on a stack overflow page i closed
<jrobeson> the one linked earlier in regards to why not write webapps in c
<popl> ctrl-shift-T
<jrobeson> don't care enough
<popl> then stfu :P
<jrobeson> don't care about that either
<jrobeson> i do what i want
<jrobeson> i shouldn't let that jerk get my goat anyways.. to even bother mentioning him
* Hanmac1 writes C++ gems for Ruby ... so i have SPEED and STYLE ;D
Hanmac1 is now known as Hanmac
<popl> Hanmac: you shouldn't use speed
<Hanmac> popl its maybe important for 3D rendering
AdmiraI has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jrobeson> Hanmac, he was talking about the drug
<Hanmac> oh ;D
<jrobeson> c'mon guys.. let's all write our apps in C
<jrobeson> right now
browndawg has joined #ruby
<popl> don't tell me what to do
<sam113101> why
<jrobeson> sam113101, i'm not being serious
<popl> no, he's wasting valuable cycles
<sam113101> I don't like managing memory manually
<popl> LET'S GET HIM GUYS
<Hanmac> jrobeson: lets go back in time ... use punch cards XD
wildroman has joined #ruby
<popl> Hanmac: DUDE
<jrobeson> if i really wanted more speed than ruby.. i'd write write the app code in lua .. and any importan routines from existing C libraries
<popl> Hanmac: I saw a YouTube video of some guy who made a punchcard reader with an Arduino
<popl> Hanmac: It was neat.
<jrobeson> oh neat
<jrobeson> lua jit is pretty fast
<Hanmac> lua might be neat ... but its not so nice as ruby
wildroman has quit [Remote host closed the connection]
<popl> I've never written anything in Lua.
<jrobeson> but it's better than javascript
<jrobeson> and better than C
<popl> Computercraft in Minecraft uses Lua
<popl> IIRC
<sam113101> I wrote scripts for awesome wm in lua, but that's about it
<sam113101> didn't like it
<popl> why not?
<jrobeson> seems like if one wanted to move certain logic above your ruby app and you ran nginx.. then you could do that in lua
<sam113101> can't remember
<jrobeson> array indices starting at 1 always feels weird
<kunday> /join #js
<sam113101> kunday: DON'T
<popl> jrobeson: have you ever used Fortran?
<jrobeson> nope.. a bit before my time
<popl> C is before my time.
<jrobeson> the oldest language i've used that wasn't C was COBOL
|jemc| has quit [Ping timeout: 252 seconds]
<popl> I've used a lot of different languages.
<jrobeson> i did write a little in basic, but definitely not the same basic as the original one
justsee has quit [Ping timeout: 245 seconds]
<jrobeson> and so it is
browndawg has quit [Read error: Connection reset by peer]
<jrobeson> i've tried out a bunch.. but i can't say i spent enough time to become decent in more than a few
<popl> I liked Fortran
<jrobeson> i tried writing chicken recently.. but not hard enough
wildroman has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
wildroman has quit [Remote host closed the connection]
xjiujiu has quit [Ping timeout: 248 seconds]
xjiujiu has joined #ruby
wildroman has joined #ruby
noop has joined #ruby
<popl> Fortran helped me learn about row-major versus column-major ordering.
dodosan has quit [Remote host closed the connection]
quoin has joined #ruby
nouitfvf has joined #ruby
quoin has quit [Ping timeout: 248 seconds]
ndrei has joined #ruby
snovak has joined #ruby
iliketurtles has joined #ruby
s2013 has quit [Quit: Leaving]
haxrbyte has quit [Remote host closed the connection]
Sel has joined #ruby
<Sel> Can someone tell me how to make ruby rand exclude a number? For example a random number between 1 and 10 excluding 5.
alx- has joined #ruby
bluehavana has joined #ruby
<Hanmac> Sel like that?
<Hanmac> >> ([*1..10] - [5]).sample
<eval-in> Hanmac => 4 (https://eval.in/49683)
browndawg has joined #ruby
<Sel> let me try.
bradhe has joined #ruby
ukd1 has quit [Remote host closed the connection]
<Sel> Hanmac that does not seem to work.
<Sel> For example I did rand([1..5] - [2]) and it returned 2
<Hanmac> Sel "not working" is not a valid error message
<Sel> For example I did rand([*1..5] - [2]) and it returned 2
<Hanmac> Sel, why didnt you use my line of code?
<popl> >> ([*1..5] - [2]).sample
<eval-in> popl => 4 (https://eval.in/49684)
<popl> hm
iliketurtles has quit [Quit: zzzzz…..]
<Sel> I wanted to try lower numbers, to try to get the excluded number faster.
snovak has quit [Ping timeout: 248 seconds]
<Sel> I tried your line with same results, it is still returning what is supposed to be excluded.
vlad_starkov has joined #ruby
<Hanmac> Sel then you do it wrong
Kricir has joined #ruby
bradhe has quit [Ping timeout: 268 seconds]
thomasxie has quit [Read error: Connection reset by peer]
<Sel> 1.9.3p392 :073 > rand(*[1..10] - [5]) => 5
<Sel> oh wrong!
<Sel> let me try it right way
<Hanmac> Sel we tryed to tell you multible times that use "sample" not rand
<popl> one of the hazards of manipulating code you do not understand is not knowing where to put the operators, Sel :P
<popl> e.g. *[1..10] instead of [*1..10]
<Sel> ok works, sorry, real late for me!
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Ping timeout: 268 seconds]
ix007 has quit [Ping timeout: 276 seconds]
<Sel> Thanks Hanmac
threesome has joined #ruby
Monie has joined #ruby
panda|party has joined #ruby
CalvinnHobbes has quit [Ping timeout: 245 seconds]
CalvinnHobbes has joined #ruby
Monie has quit [Client Quit]
ix007 has joined #ruby
radpanda has quit [Ping timeout: 268 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
wildroman has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 245 seconds]
relix has joined #ruby
carraroj has joined #ruby
parzo has joined #ruby
nari has joined #ruby
srji has joined #ruby
Nogbit has left #ruby [#ruby]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
agent_white has quit [Quit: leaving]
xjiujiu has joined #ruby
dodosan has joined #ruby
xjiujiu has quit [Max SendQ exceeded]
quoin has joined #ruby
carraroj has quit [Remote host closed the connection]
xjiujiu has joined #ruby
claymore has joined #ruby
staafl has joined #ruby
carraroj has joined #ruby
carraroj has quit [Client Quit]
carraroj has joined #ruby
sarkis has quit [Ping timeout: 240 seconds]
nari has quit [Ping timeout: 260 seconds]
cj3kim has quit [Remote host closed the connection]
quoin has quit [Ping timeout: 248 seconds]
GeissT has quit [Ping timeout: 252 seconds]
Cork has quit [Ping timeout: 264 seconds]
leonidlm has joined #ruby
DrCode has quit [Ping timeout: 240 seconds]
Nenor has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
carraroj has quit [Ping timeout: 245 seconds]
staafl has quit [Read error: Connection reset by peer]
intuxicated has quit [Ping timeout: 251 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
Cork has joined #ruby
DrCode has joined #ruby
ehaliewicz has quit [Ping timeout: 248 seconds]
bricker`LA has quit [Ping timeout: 268 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
yacks has quit [Read error: Connection reset by peer]
carraroj has joined #ruby
nouitfvf_ has joined #ruby
nouitfvf has quit [Ping timeout: 240 seconds]
intuxicated has joined #ruby
nouitfvf_ has quit []
wm3|zzz has joined #ruby
Notte has joined #ruby
visof has joined #ruby
visof has quit [Client Quit]
visof has joined #ruby
bradhe has joined #ruby
dmiller has joined #ruby
spider-mario has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
quoin has joined #ruby
wildroman has joined #ruby
vlad_starkov has joined #ruby
dmiller has quit [Ping timeout: 248 seconds]
wildroman has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 264 seconds]
wildroman has joined #ruby
moshee has quit [Read error: Operation timed out]
emergion has joined #ruby
moshee has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
browndawg has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Ping timeout: 260 seconds]
Kricir has joined #ruby
predator217 has joined #ruby
sayan has quit [Ping timeout: 248 seconds]
kidoz has joined #ruby
Kricir has quit [Ping timeout: 268 seconds]
predator117 has quit [Ping timeout: 260 seconds]
wallerdev has quit [Quit: wallerdev]
DrCode has quit [Remote host closed the connection]
m8 has joined #ruby
DrCode has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
ThePicard has quit [Ping timeout: 245 seconds]
xcfox has joined #ruby
adambeynon has joined #ruby
wildroman has quit [Remote host closed the connection]
blackmesa has joined #ruby
Cork has quit [Quit: .]
wildroman has joined #ruby
LMolr has joined #ruby
i8igmac has quit [Quit: Leaving]
i8igmac has joined #ruby
St_Marx has quit [Quit: Leaving]
blackmesa has quit [Remote host closed the connection]
user64 has joined #ruby
bradhe has joined #ruby
blackmesa has joined #ruby
bradhe has quit [Remote host closed the connection]
einarj has joined #ruby
user64 has quit [Remote host closed the connection]
leonidlm has quit [Ping timeout: 260 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
kidoz has quit [Quit: Ухожу я от вас]
Dave has joined #ruby
Dave is now known as Guest37850
carraroj has quit [Ping timeout: 248 seconds]
Clooth has joined #ruby
zoee has joined #ruby
Cheos has quit [Ping timeout: 268 seconds]
bricker`LA has joined #ruby
<blackmesa> can somebody help me interpreting my :should_receive error? https://gist.github.com/anonymous/e2a70385702830d7b5c4
zxiest has joined #ruby
cj3kim has joined #ruby
<blackmesa> sry wrong chan
Es0teric has quit [Quit: Computer has gone to sleep.]
parzo has quit [Ping timeout: 260 seconds]
zxiest has quit [Client Quit]
m00nlight has quit [Remote host closed the connection]
leonidlm has joined #ruby
Lewix has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 260 seconds]
average has joined #ruby
<average> hey
<average> having some trouble with rbenv
<average> getting this when trying to compile Command-T
<average> user@user-K56CM:~/sources/Command-T$ rake
<average> /home/user/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': /home/user/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/x86_64-linux/digest/sha1.so: undefined symbol: rb_Digest_SHA1_Init - /home/user/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/x86_64-linux/digest/sha1.so (LoadError)
<average> from /home/user/.rbenvversions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36::in `require'
<average> sorry for the paste
<average> please let me know if you have some ideas what's going on
Es0teric has joined #ruby
<average> (btw I'm running on a 64bit Ubuntu)
scottstamp has joined #ruby
<scottstamp> Uh... did 2.0.0 remove [].empty? and [].shift or am I just going crazy? http://pastie.org/private/yhaj7p7jfpxm9ahyh8t2a
neo_ has joined #ruby
<apeiros> scottstamp: you. crazy. that stuff still exists :-)
<scottstamp> I figured as much, look at the error in that pastie though.
iliketurtles has joined #ruby
<apeiros> >> [RUBY_VERSION, [].respond_to? :empty?, [].respond_to? :shift]
<eval-in> apeiros => /tmp/execpad-804a0298f269/source-804a0298f269:2: syntax error, unexpected tSYMBEG, expecting ']' ... (https://eval.in/49707)
<scottstamp> Code's right.
iliketurtles has quit [Client Quit]
<apeiros> hrm
<apeiros> >> [RUBY_VERSION, [].respond_to?(:empty?), [].respond_to?(:shift)]
<eval-in> apeiros => ["2.0.0", true, true] (https://eval.in/49708)
<popl> \o/
<apeiros> scottstamp: @channel is nil
<apeiros> *@channels
<scottstamp> How? O_O
<apeiros> class scope and instance scope are not the same
<apeiros> line 2 & 3, self == SimpleIrcBot
<apeiros> line 6 & 7, self == *instance of* SimpleIrcBot, NOT SimpleIrcBot itself
<popl> apeiros++
<scottstamp> But they're inside the class... ?
<apeiros> scottstamp: no
<scottstamp> I'm already in the class in def channel, so why can't I modify class variables?
<apeiros> scottstamp: an instance variable belongs to an *object*
<scottstamp> :s
<apeiros> not to a lexical scope
<apeiros> the *class* is a different object than *an instance of that class*
<scottstamp> hmm.
popl has quit [Quit: We must make an idol of our fear, and call it God.]
<scottstamp> so if I remove the @ and do self.class.channels, should that work?
<apeiros> not the same self -> not the same ivars
<Hanmac> or you put that stuff in initialize
<apeiros> class SimpleIrcBot; class << self; attr_reader :channels; end; end
<apeiros> add that and you can access SimpleIrcBot's ivar via SimpleIrcBot.channel
sevenseacat has quit [Quit: Leaving.]
<apeiros> gah, f'ing plural :)
<apeiros> add that and you can access SimpleIrcBot's ivar via SimpleIrcBot.channels (or within the method, via self.class.channels)
snovak has joined #ruby
<scottstamp> Gotcha. Nice thing to know about apeiros, thanks for the explanation. Hanmac's fix worked just as well though, I'll be passing the array to init anyways.
ben___ has joined #ruby
<average> uhm
davidcelis has quit [Ping timeout: 256 seconds]
<average> Command-T anyone ?
BadQuanta has quit [Ping timeout: 261 seconds]
ben___ is now known as Guest2034
<apeiros> average: ?
leonidlm has quit [Ping timeout: 252 seconds]
Guest2034 has quit [Client Quit]
<average> apeiros: I'm trying to compile this plugin written in Ruby for Vim
<average> apeiros: it's called Command-T and I think it's very popular
<average> and I'm getting some errors
ruby_ben has joined #ruby
<apeiros> ah. can't help with vim.
<average> 12:26 < average> user@user-K56CM:~/sources/Command-T$ rake
<average> 12:26 < average> /home/user/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': /home/user/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/x86_64-linux/digest/sha1.so: undefined symbol: rb_Digest_SHA1_Init - /home/user/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/x86_64-linux/digest/sha1.so (LoadError)
bradhe has joined #ruby
<average> 12:26 < average> from /home/user/.rbenvversions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36::in `require'
erichmenge has quit [Ping timeout: 256 seconds]
<average> apeiros: I don't know how to fix those. I'm more of a Python/Perl guy, I don't know Ruby very well
browndawg has joined #ruby
<ruby_ben> anyone know of any resources/links that have moderately difficult recursion problems?
snovak has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
davidcelis has joined #ruby
erichmenge has joined #ruby
<average> ruby_ben: what do you mean ?
Clooth has quit [Remote host closed the connection]
<ruby_ben> i've been having trouble finding practice questions on recursion
Clooth has joined #ruby
<ruby_ben> recursion questions along the lines of fibonacci and above
justsee has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
<average> ruby_ben: yeah, uhm, I'm preparing on some algorithm problems as well, if you want I'll share with you the place I solve problems from
<ruby_ben> that'd be awesome
nfk has joined #ruby
<average> ruby_ben: ignore the first website, it's in romanian
<average> ruby_ben: all the others are in english
yacks has joined #ruby
<average> ruby_ben: I'm 100% sure you will find what you need if you stick to that list
<average> ruby_ben: do you know the complexity of the Fibonacci recursion implementation ?
<average> ruby_ben: if not, have a look at what I wrote here about it http://stackoverflow.com/questions/15557670/running-time-tn-of-recursive-function/15558076#15558076
<ruby_ben> average: thanks i'm looking at them right now. no i don't, right now i'm focusing on understanding how to approach recursion problems
nari has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
justsee has quit [Ping timeout: 256 seconds]
Cork has joined #ruby
wildroman has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
leonidlm has joined #ruby
<average> ruby_ben: a closely related problem(a more mathematical aspect) to that of recursion, is the topic of recurrences. Fibonacci is just one type of recursion, there are many other types. If you are interested in finding closed form of recurrences to kill the problem quickly, you can use generating functions. Or for some of them you can use some linear algebra. For more information on this, have a look at this book called GenerationFunctionology by Herbert S. Wi
<average> ruby_ben: you will find more on recurrence in general in the book Concrete Mathematics by Graham, Patashniek and Knuth
<average> You have enough food for thought for at least a year
<average> good luck
amacgregor_ has joined #ruby
<ruby_ben> average: thanks for everything, appreciate it
<average> ruby_ben: you're welcome
<ruby_ben> average: one more thing, i find that mathematical situations are my weakest link because i haven't taken discrete mathematics. know of any good resources/book for that?
Hanmac has quit [Read error: Connection reset by peer]
Hanmac1 has joined #ruby
amacgregor has quit [Ping timeout: 260 seconds]
wildroman has joined #ruby
kunday has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cheos has joined #ruby
neo_ has quit [Quit: This computer has gone to sleep]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
coderhs has quit [Ping timeout: 264 seconds]
leonidlm has quit [Ping timeout: 260 seconds]
Clooth has quit [Ping timeout: 248 seconds]
mklappstuhl has joined #ruby
<atmosx> morning
vlad_starkov has quit [Remote host closed the connection]
schaerli has joined #ruby
srji has quit [Ping timeout: 264 seconds]
Cheos has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
jonkri has joined #ruby
Notte has quit [Remote host closed the connection]
nouitfvf has joined #ruby
ewnd9 has quit [Read error: Operation timed out]
quoin has quit [Remote host closed the connection]
<shevy> hey atmosx
<atmosx> :-)
leehambley has quit [Ping timeout: 260 seconds]
leonidlm has joined #ruby
srji has joined #ruby
leehambley has joined #ruby
xjiujiu has quit [Remote host closed the connection]
srji has quit [Client Quit]
user64 has joined #ruby
Guest37850 has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
cads has quit [Ping timeout: 245 seconds]
michael_mbp is now known as zz_michael_mbp
Stalkr_ has joined #ruby
user64 has quit [Remote host closed the connection]
zz_michael_mbp is now known as michael_mbp
lkba has joined #ruby
decoponio has joined #ruby
snearch has joined #ruby
schaerli has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
soheil has joined #ruby
JohnBat26 has joined #ruby
User has joined #ruby
rdark has joined #ruby
ewnd9 has joined #ruby
mercwithamouth has joined #ruby
khoury has joined #ruby
<khoury> hey people
<khoury> I run zsh, does anyone have any advice on how to speed up the terminal, when you first open it up or open a new session?
freeayu has joined #ruby
soheil has quit [Ping timeout: 264 seconds]
zorg24 has quit [Ping timeout: 260 seconds]
<shevy> perhaps the #zsh guys know more about that
snovak has joined #ruby
<shevy> I myself run bash, until I will replace it with a pseudo-ruby shell one day
seyha has joined #ruby
seyha has quit [Client Quit]
bradhe has joined #ruby
emergion has joined #ruby
jan1337z has joined #ruby
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
snovak has quit [Ping timeout: 260 seconds]
spider-mario has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
quoin has joined #ruby
kunday has joined #ruby
dodosan has quit [Remote host closed the connection]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
wm3|zzz is now known as workmad3
allsystemsarego has joined #ruby
Kricir has joined #ruby
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
spider-mario has joined #ruby
quoin has quit [Ping timeout: 245 seconds]
einarj has quit [Remote host closed the connection]
zorg24 has joined #ruby
leonidlm has quit [Ping timeout: 268 seconds]
Kricir has quit [Ping timeout: 240 seconds]
ThePicard has joined #ruby
blackmes1 has joined #ruby
browndawg has quit [Ping timeout: 268 seconds]
Aryasam has joined #ruby
browndawg has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
decoponyo has joined #ruby
elaptics`away is now known as elaptics
ruby_ben has quit [Quit: Page closed]
<shevy> hmm
<shevy> in ruby, ENV['HOME'] may not be always set, right?
<shevy> reason I ask is I set a constant that makes use of $HOME
preller has quit [Ping timeout: 264 seconds]
preller has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
dnyy has quit [Ping timeout: 248 seconds]
Guest85414__ has quit [Ping timeout: 248 seconds]
HavokOC has quit [Ping timeout: 248 seconds]
niftylettuce has quit [Ping timeout: 248 seconds]
<Mon_Ouie> There's Dir.home
<jrobeson> but what is its detection based on?
<Mon_Ouie> It doesn't say it in the documentation, but from glancing at the source it doesn't look like it's using $HOME
emergion has quit [Quit: Computer has gone to sleep.]
<shevy> hmm
<shevy> interesting
Aryasam has quit [Ping timeout: 260 seconds]
<shevy> "Returns the home directory of the current user or the named user if given."
<shevy> return rb_home_dir(u, rb_str_new(0, 0));
HavokOC has joined #ruby
<shevy> where u is
<shevy> u = StringValueCStr(user);
<Mon_Ouie> If it can't detect the user, it uses $HOME and raises an error if it isn't set. Otherwise, it tries getpwnam.
<shevy> hmm
<Mon_Ouie> (and just returns nil if it isn't available)
leonidlm has joined #ruby
Macaveli has joined #ruby
xjunior has quit [Remote host closed the connection]
snearch has quit [Quit: Verlassend]
Aryasam has joined #ruby
kaldrenon has joined #ruby
oozeman has joined #ruby
Liothen has quit [Quit: System of a down……]
oozeman has quit [Client Quit]
Deele has joined #ruby
oozeman has joined #ruby
emergion has joined #ruby
kaldrenon has quit [Ping timeout: 260 seconds]
oozeman has quit [Quit: maybe rejoin]
Aryasam has quit [Ping timeout: 248 seconds]
Xeago has joined #ruby
Aryasam has joined #ruby
Xeago has quit [Remote host closed the connection]
Aryasam has quit [Ping timeout: 248 seconds]
sniffingcats has joined #ruby
MrZYX|off is now known as MrZYX
Stalkr_ has quit [Read error: Connection reset by peer]
einarj has joined #ruby
mengu has joined #ruby
wildroman has quit [Remote host closed the connection]
bobdobbs has joined #ruby
jibi has joined #ruby
justsee has quit [Ping timeout: 248 seconds]
mengu has quit [Client Quit]
bradhe has joined #ruby
<bobdobbs> If I run a program that is an installed gem, I get an error that says that a ruby executable can't be found
timonv has joined #ruby
<bobdobbs> "bad interpreter: /usr/bin/ruby1.9.1: no such file or directory"
<bobdobbs> How can I fix this?
<r0bglees0n> bobdobbs: name of gem?
<bobdobbs> bourbon. also neat'
<r0bglees0n> 'which bourban'
<atmosx> r0bglees0n: what ruby version do you use? you use a manager?
<bobdobbs> "usr/local/bin/bourbon"
<r0bglees0n> delete it, modify it, im not sure which. there's a gem in your $PATH with a ref to a ruby you deleted i gues.
<r0bglees0n> i guess.*
Desert_eagle has quit [Ping timeout: 245 seconds]
<r0bglees0n> atmosx: i use chruby
<atmosx> err blah
<atmosx> r0bglees0n: I was asking bobdobbs but anyway...
* atmosx laundry
einarj has quit [Remote host closed the connection]
Desert_eagle has joined #ruby
<r0bglees0n> sure
<bobdobbs> I'm using ruby ruby1.9.1, installed using rbenv
<bobdobbs> I'm on ubuntu linux, if that makes a difference.
<bobdobbs> certainly installing ruby on ubuntu has been hell. I don't know if it's different in other distros
<r0bglees0n> put ~/.rbenv/shims in front of /usr/local/bin in your $PATH.
<bobdobbs> ok...
wildroman has joined #ruby
doebi has joined #ruby
User has quit [Read error: Connection reset by peer]
bradhe has quit [Ping timeout: 259 seconds]
<bobdobbs> ok, I've done that. And I've sourced my zprofile. I'm still getting the error
<r0bglees0n> paste your export line
<bobdobbs> export line?
toah has joined #ruby
<bobdobbs> PATH=$PATH:$HOME/.rbenv/shims
<r0bglees0n> export PATH=..
<bobdobbs> ah, ok
<r0bglees0n> that puts it at the end
<r0bglees0n> you want to put it at the front
<bobdobbs> ah, ok
ewnd9 has quit [Ping timeout: 260 seconds]
<bobdobbs> so now I have: PATH=$HOME/.rbenv/shims, before anything else
<r0bglees0n> ok
<r0bglees0n> and now?
<bobdobbs> now there's no path to the gem, it seems
<r0bglees0n> ok
<r0bglees0n> which gem
<r0bglees0n> whats it say
<bobdobbs> "zsh: command not found: bourbon"
<r0bglees0n> also which ruby
<bobdobbs> 'which ruby' now returns "/home/mantis/.rbenv/shims/ruby"
<r0bglees0n> good
<r0bglees0n> and gem?
<bobdobbs> ok
<r0bglees0n> gem install bourban; rbenv rehash
Kricir has joined #ruby
<r0bglees0n> then try again
<bobdobbs> "/home/mantis/.rbenv/shims/gem"
<bobdobbs> ok
<bobdobbs> gah!
Aryasam has joined #ruby
<bobdobbs> "/usr/bin/env: bash: No such file or directory"
SirFunk has quit [Ping timeout: 245 seconds]
defrag has quit [Ping timeout: 245 seconds]
<r0bglees0n> you need to install bash
<r0bglees0n> aptitude install bash
<bobdobbs> I have bash installed.
<r0bglees0n> what line did that raise on?
kaichanvong has quit [Quit: _]
carraroj has joined #ruby
<Morrolan> Does /usr/bin/env exist?
<bobdobbs> lets see...
SirFunk has joined #ruby
kaichanvong has joined #ruby
<bobdobbs> Morrolan: yes
<bobdobbs> I don't think it's a problem with bash.
<bobdobbs> I think that altering my path did something
<r0bglees0n> can you paste the line you entered and the error?
<bobdobbs> sure
<Morrolan> And manually issuing `/usr/bin/env bash` works? Then yea, the issue is somewhere else, and a full traceback might help. :)
<bobdobbs> gem install bourban; rbenv rehash
<bobdobbs> /usr/bin/env: bash: No such file or directory
<r0bglees0n> ok
<r0bglees0n> echo $PATH
<r0bglees0n> paste it
<bobdobbs> Morrolan: how do I get a full traceback?
mklappstuhl has quit [Remote host closed the connection]
<r0bglees0n> it looks like /usr/local/bin isnt there
Kricir has quit [Ping timeout: 240 seconds]
<bobdobbs> r0bglees0n: http://hastebin.com/meviyodewe.js
<r0bglees0n> you want to add it to the *end*.
<bobdobbs> wait a sec...
<r0bglees0n> yes
<r0bglees0n> its how i said
<r0bglees0n> add /usr/local/bin to end of $PATH
Speed has joined #ruby
kaichanvong has quit [Client Quit]
<bobdobbs> I've got a suspicion that altering my path like this will lead to trouble.
<r0bglees0n> well, you didn't preserve /usr/local/bin when you rewrote the $PATH.
<bobdobbs> I mean, I'd like to get my gems being able to use ruby, but putting that line before my other path definitions probably breaks a whole lot of other stuff
<bobdobbs> I think I'm seeing evidence of this breakage: I can't execute basj
<bobdobbs> *bash
<r0bglees0n> you gave the shims higher precendence over everything else, but you also totally forgot to add back /usr/local/bin (which would have been there as a custom path)
quoin has joined #ruby
<r0bglees0n> so now nothing in /usr/local/bin is being found
<r0bglees0n> it's easy to fix
<r0bglees0n> you also somehow installed ubuntu-ruby, and installed gems with that
<r0bglees0n> then removed the ruby
<r0bglees0n> but kept the gems
dodosan has joined #ruby
<r0bglees0n> thats why 'bourbon' blows up like it does
<bobdobbs> If I've lost /usr/local/bin, then I'll have lost a lot of other stuff as well. And I won't know what other stuff I've lost until I encounter more breakage
timonv has quit [Remote host closed the connection]
<r0bglees0n> another solution is to keep the same precendence(shims at the end), but remove bourbon from /usr/local/bin (and any other gem bins you may have installed)
<bobdobbs> r0bglees0n: I purged the default ruby and gems ages ago. As far as I can tell, my system is clean of them
<r0bglees0n> no its clearly not
<r0bglees0n> we can see that perfectly
<r0bglees0n> if you want help stop making assumptions and listen to what im telling you
<bobdobbs> damn. I'm haunted by the ruby that will not die
Desert_eagle has quit [Ping timeout: 248 seconds]
Desert_eagle has joined #ruby
browndawg has quit [Quit: Leaving.]
zoee has quit [Ping timeout: 245 seconds]
<bobdobbs> oh crap. I can't source my zprofile anymore. I get the error '/usr/bin/env: bash: No such file or directory'
Desert_eagle has quit [Read error: Operation timed out]
<r0bglees0n> yeah
<r0bglees0n> what editor do you use?
dodosan has quit [Ping timeout: 268 seconds]
<bobdobbs> emacs
<r0bglees0n> /usr/local/bin/emacs ~/.zprofile
<r0bglees0n> adjust the $PATH
<r0bglees0n> close your terminal, open a new one
<r0bglees0n> back to normal.
sayan has joined #ruby
<bobdobbs> oh cool. that does it. I can access bash now
schaerli has joined #ruby
<bobdobbs> and I'm also back to the gem not being able to find ruby
<r0bglees0n> ok
<r0bglees0n> paste the error
<r0bglees0n> ok
<r0bglees0n> you left shims at the front right?
kaichanvong has joined #ruby
<r0bglees0n> /usr/local/bin at the end?
Desert_eagle has joined #ruby
<bobdobbs> no...
<r0bglees0n> you need to do that
<bobdobbs> hmmm
<bobdobbs> well, as far as I can tell, if I do that, my environment will become unpredictable.
<r0bglees0n> no
<r0bglees0n> it wont
<r0bglees0n> _but_
<r0bglees0n> im not going to force you to figure it out
<r0bglees0n> take my advice or leave it
<r0bglees0n> either way im done
<bobdobbs> like, if I have to manually include usr/local/bin, then I'll have to include other stuff as well...
closer has quit [Ping timeout: 260 seconds]
<bobdobbs> but I won't be able to tell until things break
<r0bglees0n> /usr/local/bin is never in your $PATH and probably never was.
<bobdobbs> exactly
staafl has joined #ruby
<r0bglees0n> uh no
<r0bglees0n> i mean
<r0bglees0n> you added it yourself
<r0bglees0n> it obviously was in your $PATH, ubuntu is installing all package executables in there
sayan has quit [Ping timeout: 248 seconds]
<bobdobbs> well, no. I didn't. Not manually anyway.
<bobdobbs> well, right. So I didn't have to add it manually in my zprofile
<r0bglees0n> i get youre probably new to computers or whatever but i dont have the time to go through this. you append to the default $PATH like this: export PATH=$PATH:/custom/path
<r0bglees0n> its nothing strange
<r0bglees0n> youre giving ~/.rbenv/shims higher precendence
<r0bglees0n> thats all
<bobdobbs> ok, I'll give it a shot
pellenation has joined #ruby
<r0bglees0n> you can add ~/.rbenv/shims to the END of your path too
<r0bglees0n> but if you do
<r0bglees0n> 'rm /usr/local/bin/bourbon'
<r0bglees0n> since it'd have higher precendence
<r0bglees0n> you will also need to install the gem. 'gem install bourbon'. it is installed for the ubuntu-ruby you deleted, not the rbenv ruby
<bobdobbs> Isn't it bad to remove things manually? Shouldn't I use the package manager, (ie, gems) instead?
<r0bglees0n> its already fucked man
Desert_eagle has quit [Ping timeout: 248 seconds]
<r0bglees0n> you removed the ruby it installed with
wildroman has quit [Remote host closed the connection]
<bobdobbs> no, I didn't
<bobdobbs> I installed bourbon with gem
<r0bglees0n> oh jesus
<r0bglees0n> sorry
closer has joined #ruby
<r0bglees0n> cant explain this :D
<r0bglees0n> gems are bound to ruby
<r0bglees0n> so when you say 'gem install foo' it is being installed by the ruby running 'gem'.
h4mz1d has joined #ruby
<r0bglees0n> so it is bound to the ruby you deleted
<r0bglees0n> you cant remove it with gem anymore
<r0bglees0n> you deleted the gem you installed it with
<r0bglees0n> and the new 'gem' has environment settings specific to the rbenv riby
<r0bglees0n> ruby*
braoru has joined #ruby
<bobdobbs> that's weird. I installed my systems default ruby months ago. I installed bourbon today
<r0bglees0n> nooooo idea
axeman- has joined #ruby
<r0bglees0n> id bet all my money on user error though
<bobdobbs> damn
staafl has quit [Quit: Leaving]
ehaliewicz has joined #ruby
corpuscle has joined #ruby
axeman- has quit [Remote host closed the connection]
corpuscle has quit [Client Quit]
lkba has quit [Ping timeout: 248 seconds]
<r0bglees0n> if you really want to fix this, add ~/.rbenv/shims to your path (with /usr/local/bin), like this: export PATH="$PATH:/usr/local/bin:$HOME/.rbenv/shims"
<r0bglees0n> then rm /usr/local/bin/bourbon
osvico has joined #ruby
<r0bglees0n> then gem install bourbon
<r0bglees0n> rbenv rehash
<r0bglees0n> 'bourbon'
<r0bglees0n> done
<bobdobbs> ok. shims is already in my path, so I'll do the rest...
robbyoconnor has quit [Ping timeout: 248 seconds]
pellenation has quit [Quit: Leaving.]
<bobdobbs> ok, thanks.
<bobdobbs> I can run bourbon now!
<bobdobbs> \o/
<r0bglees0n> great
ehaliewicz has quit [Ping timeout: 256 seconds]
<bobdobbs> thank you
<r0bglees0n> yep
cody-- has joined #ruby
carraroj has quit [Ping timeout: 260 seconds]
Desert_eagle has joined #ruby
<shevy> Hanmac1 why are you not on #openrubyrmk
<Hanmac1> shevy i forget to join ... did i miss something?
Hanmac1 is now known as Hanmac
<shevy> quintus is back \o/
platzhirsch has joined #ruby
<platzhirsch> What's state of things with Ruby 2.0.0 and pry with pry-debugger?
<banister`sleep> platzhirsch you experiencing problems/
<platzhirsch> banister`sleep: well, it works in the most cases, there are just some methods where it breaks down and does not behave as expected
<banister`sleep> platzhirsch how does it behave when it behaves strangely? i.e what do u expect it to do, versus what does it do?
sepp2k has quit [Read error: Connection reset by peer]
<platzhirsch> for instance, where I enter n for next and it does not jump the line, but goes in, not exactly the first method, but a depper nested method
<platzhirsch> pry (0.9.12.2), pry-byebug (1.1.1), pry-debugger (0.2.2), pry-rails (0.3.2)
ewnd9 has joined #ruby
<banister`sleep> platzhirsch don't have both pry-byebug and pry-debugger installed, if u're on 2.0, then uninstall pry-debugger
<platzhirsch> I will try to find an example where the problem occurs so I can describe is more precisely
mklappstuhl has joined #ruby
m8 has quit [Quit: Sto andando via]
<platzhirsch> ah right, pry-byebug was the fork
Aryasam has quit [Ping timeout: 252 seconds]
apeiros has quit [Remote host closed the connection]
pellenation has joined #ruby
apeiros has joined #ruby
m8 has joined #ruby
VTLob has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
spider-mario has joined #ruby
Aryasam has joined #ruby
<platzhirsch> banister`sleep: Okay, it became a bit worse actually. I think this was one of the reasons by I reverted to pry-byebug 1.1.1 from 1.1.2. For instance there is an object, has an enumerator with each_with_index and when I "step" then it goes into method missing
<platzhirsch> I am sorry, apparently the API implemented the method_missing method for their class handle some methods. It works fine now :) sorry for waking you up
Nenor has quit [Quit: Nenor]
konia-ladik11 has quit [Ping timeout: 256 seconds]
spider-mario_ has joined #ruby
spider-mario has quit [Ping timeout: 260 seconds]
coderhs has joined #ruby
bradhe has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
roadt has joined #ruby
pellenation has quit [Quit: Leaving.]
<roadt> hi, in ruby, i can (1..3).each(&:to_s), what's meaning of & operator here really?
Notte has joined #ruby
<roadt> i mean why & can apply to a symbol..?
<Mon_Ouie> It means "pass the next object as a block to the method"
<Mon_Ouie> It works by calling object.to_proc
paulodiniz_ has joined #ruby
<Mon_Ouie> (also if the object is nil, then it will pass no block to the method)
<roadt> Mon_Ouie, ah.. ah! i see.
<roadt> Mon_Ouie, it's nice.
<roadt> Mon_Ouie, tk you
blackmes1 has quit [Ping timeout: 240 seconds]
bradhe has quit [Ping timeout: 256 seconds]
toah has quit [Remote host closed the connection]
<roadt> Mon_Ouie, i take it as consistent syntax defined opposite to `def each(&block)` .. quite make sense.
<roadt> Mon_Ouie, i lost that part. fool.
<roadt> Mon_Ouie, thank you.
<banister`sleep> roadt btw that code will do nothing
eka has joined #ruby
<banister`sleep> roadt each() only makes sense if the code in the block has side effects, but to_s has none
Nenor has joined #ruby
<banister`sleep> you probably mean map()
Kricir has joined #ruby
<Hanmac> psst, you spoilering the whole surprise ;D
<roadt> banister`sleep, yeah, that's code i write temporarily to ask question. bad example. thanks for reminder this. :)
<banister`sleep> ah np
kreisys has joined #ruby
AlHafoudh has joined #ruby
AlHafoudh has quit [Max SendQ exceeded]
<Hanmac> banister currently ary.map(&:to_i) is a little bit slower than ary.map {|o| o.to_i} imo there is no good reason for that ... i will make a request on ruby-ticker for that
Desert_eagle has quit [Ping timeout: 260 seconds]
AlHafoudh has joined #ruby
AlHafoudh has quit [Max SendQ exceeded]
Desert_eagle has joined #ruby
kirun has joined #ruby
bwwrd has joined #ruby
Kricir has quit [Ping timeout: 256 seconds]
zarubin has joined #ruby
Guest85414__ has joined #ruby
dnyy has joined #ruby
niftylettuce has joined #ruby
AlHafoudh has joined #ruby
<r0bglees0n> Hanmac: one creates a Proc, the other doesn't.
<Hanmac> r0bglees0n: hm yeah but i try to make the first one faster because i like it more
<r0bglees0n> its not going to be a bottleneck
<r0bglees0n> it actually is a bit smart about it
<r0bglees0n> it creates one proc
<r0bglees0n> regardless of the size of 'ary'
cody-- has quit [Quit: derp]
xjiujiu has joined #ruby
khoury has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
<Hanmac> r0bglees0n: i just had the idea to make &:to_i better when they are used with symbol literal (i think there might be a way to improve it)
<r0bglees0n> well, the Proc captures this: lambda { |e| e.public_send(self) }
<r0bglees0n> self being :to_i
<r0bglees0n> id guess matz could have made a short-cut for that and not create the Proc but you can do some stupid stuff
<r0bglees0n> class Job; def to_proc; # go async; proc {}; end; &Job.new
<r0bglees0n> the shell syntax for background jobs applied to ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
Scorchin_ is now known as Scorchin
pellenation has joined #ruby
<banister`sleep> i'd liike to see: ary.map(:to_i)
<banister`sleep> there is greater chance for optimisation there too
zoee has joined #ruby
Aryasam has quit [Ping timeout: 245 seconds]
Aryasam has joined #ruby
leehambley has quit [Ping timeout: 261 seconds]
skulker has joined #ruby
DrCode has quit [Ping timeout: 240 seconds]
Sel has quit [Ping timeout: 256 seconds]
jibi has quit [Ping timeout: 260 seconds]
spider-mario_ has quit [Quit: No Ping reply in 180 seconds.]
DrCode has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
spider-mario has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
h4mz1d has quit [Ping timeout: 252 seconds]
Macaveli has quit [Quit: Computer has gone to sleep.]
bwwrd has quit [Quit: Textual IRC Client: www.textualapp.com]
paulodiniz_ has quit [Quit: paulodiniz_]
leehambley has joined #ruby
huoxito has joined #ruby
petey has joined #ruby
petey has quit [Remote host closed the connection]
pellenation has quit [Quit: Leaving.]
skulker has quit [Remote host closed the connection]
chairabanta has joined #ruby
wildroman has joined #ruby
wildroman has quit [Remote host closed the connection]
skulker has joined #ruby
wildroman has joined #ruby
lkba has joined #ruby
skulker has quit [Remote host closed the connection]
xk_id has joined #ruby
TDJACR has joined #ruby
skulker has joined #ruby
freeayu has quit [Remote host closed the connection]
okinomo has joined #ruby
petey has joined #ruby
LMolr has quit [Ping timeout: 264 seconds]
robbyoconnor has joined #ruby
robbyoconnor has quit [Client Quit]
threesome has quit [Read error: Operation timed out]
ananthakumaran has quit [Quit: Leaving.]
ravster has joined #ruby
Aryasam has quit [Ping timeout: 245 seconds]
raphaelivan has joined #ruby
colonolGron has joined #ruby
Aryasam has joined #ruby
Desert_eagle has quit [Ping timeout: 264 seconds]
paulodiniz_ has joined #ruby
leehambley has quit [Ping timeout: 247 seconds]
Popple has joined #ruby
Aryasam has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
Aryasam has joined #ruby
leehambley has joined #ruby
chairabanta has quit [Quit: Leaving...]
ajaxJK has joined #ruby
<ajaxJK> hi
<ajaxJK> good book to begin ruby on rails
<ajaxJK> i have programming experince in C
bradhe has quit [Ping timeout: 264 seconds]
Aryasam has quit [Ping timeout: 264 seconds]
defrag has joined #ruby
kindjal has joined #ruby
capnmalarkey has joined #ruby
intuxicated has quit [Remote host closed the connection]
Kricir has joined #ruby
jonkri has quit [Quit: jonkri]
<taion809> ajaxJK: try #rubyonrails
T_T has joined #ruby
sniffingcats has quit [Quit: Til rivido Idisti!]
schaerli_ has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
schaerli has quit [Read error: Connection reset by peer]
T_T has quit [Remote host closed the connection]
Nenor has quit [Quit: Nenor]
Aryasam has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
rdark has quit [Read error: Operation timed out]
anekos has quit [Quit: Tiarra 0.1+svn-39036: SIGTERM received; exit]
anekos has joined #ruby
okinomo has quit [Ping timeout: 268 seconds]
chairabanta has joined #ruby
chairabanta has quit [Remote host closed the connection]
chairabanta has joined #ruby
visof has quit [Quit: Leaving]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
Notte has quit [Remote host closed the connection]
<linduxed> hey guys, i was wondering if with rspec it's possible to write multiple conditions for for before blocks in my spec_helper
neo_ has joined #ruby
<linduxed> so a common condition would be config.before(:each, js: true)
<linduxed> but i was wondering if it's possible to do config.before(:each, js: true, feature: true)
neo_ has quit [Client Quit]
workmad3 has quit [Read error: Operation timed out]
mklappstuhl has joined #ruby
Aryasam has quit [Ping timeout: 264 seconds]
colonolGron has quit [Quit: Lost terminal]
neo_ has joined #ruby
Desert_eagle has joined #ruby
neo_ has quit [Client Quit]
kvirani has joined #ruby
RDash[AW] is now known as RDash
neo_ has joined #ruby
petey has quit [Remote host closed the connection]
neo_ has quit [Client Quit]
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mklappstuhl has quit [Ping timeout: 245 seconds]
xjiujiu has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
<shevy> long live ruby!
rdark has joined #ruby
pwh has joined #ruby
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
BillCriswell has joined #ruby
raphaelivan has quit [Ping timeout: 252 seconds]
zoee has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
kaichanvong has quit [Quit: _]
<platzhirsch> Long live Ruby!
<platzhirsch> what's going on
sepp2k has joined #ruby
kaichanvong has joined #ruby
LMolr has joined #ruby
aaronmcadam has joined #ruby
T_T has joined #ruby
fridim__ has joined #ruby
Desert_eagle has quit [Ping timeout: 245 seconds]
noop has quit [Ping timeout: 268 seconds]
noop has joined #ruby
thesheff17 has joined #ruby
SteveBenner9 has quit [Quit: Leaving]
adambeynon has joined #ruby
sniffingcats has joined #ruby
forcefsck has joined #ruby
threesome has joined #ruby
aaronmcadam has quit [Quit: Leaving...]
aaronmcadam has joined #ruby
petey has joined #ruby
floridities87 has joined #ruby
dmiller has joined #ruby
gr33n7007h has joined #ruby
bradhe has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
bradhe has quit [Ping timeout: 260 seconds]
kindjal has joined #ruby
kindjal has quit [Client Quit]
browndawg has joined #ruby
xk_id has quit [Quit:
quoin has quit [Remote host closed the connection]
quoin has joined #ruby
Kricir has joined #ruby
Desert_eagle has joined #ruby
Monie has joined #ruby
quoin has quit [Ping timeout: 245 seconds]
plotter has joined #ruby
Kricir has quit [Ping timeout: 252 seconds]
tatsuya_o has joined #ruby
beilabs_ has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lukec has joined #ruby
tonni_ has quit [Read error: Connection reset by peer]
tonni has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
BillCriswell has quit [Remote host closed the connection]
wildroman has quit [Remote host closed the connection]
paulodiniz_ has quit [Quit: paulodiniz_]
Macaveli has joined #ruby
npras has joined #ruby
Notte has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
wesside_ has joined #ruby
Es0teric has joined #ruby
mercwithamouth has joined #ruby
Es0teric has quit [Max SendQ exceeded]
kunday has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wesside has quit [Ping timeout: 260 seconds]
kaspergrubbe has quit [Remote host closed the connection]
colonolGron has joined #ruby
randomnick_ has joined #ruby
<randomnick_> whats wrong with this code?
<hoelzro> well
<hoelzro> the implementation for + and - are odd
<hoelzro> considering they don't return an Account object
ananthakumaran1 has joined #ruby
ananthakumaran1 has quit [Max SendQ exceeded]
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
alx- has quit [Read error: Connection reset by peer]
kazuuu has joined #ruby
<randomnick_> hmm i found this in the well grounded rubyist book
crazymykl has joined #ruby
paulodiniz has joined #ruby
devoldmx has joined #ruby
colonolGron has quit [Quit: Lost terminal]
wildroman has joined #ruby
tonni has quit [Read error: Connection reset by peer]
<randomnick_> :<
quoin has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alx- has joined #ruby
<Mon_Ouie> acc -= 5 expands to acc = acc - 5. acc - 5 decreases the balance by 5 and returns the new balance.
tonni has joined #ruby
<randomnick_> i get this error: mod.rb:22:in `<main>': undefined method `-' for #<Account:0x000000010ccdc0 @balance=20> (NoMethodError)
<Mon_Ouie> (Those definitions of + and -, with side effects, are indeed quite horrible)
<atmosx> Mon_Ouie: to me looks okay
<atmosx> but I didn't actually run the code
<atmosx> randomnick_: maybe the book is using an older version of ruby
<randomnick_> i think so
<Mon_Ouie> randomnick_: You didn't type def -(x)
<Mon_Ouie> You typed def –(x) (the hyphen is longer)
wallerdev has joined #ruby
devoldmx3 has quit [Ping timeout: 245 seconds]
<Mon_Ouie> atmosx: I mean that if you run "a - 5; a.balance", the balance will change. It doesn't compute a difference at all, it changes acc.
fuhgeddaboudit_ has joined #ruby
kaspergrubbe has joined #ruby
i_s has joined #ruby
huoxito has quit [Quit: Leaving]
Macaveli has quit [Quit: Computer has gone to sleep.]
kaspergr_ has joined #ruby
spider-mario has joined #ruby
npras is now known as supertramp_npras
cody-- has joined #ruby
T_T has quit [Remote host closed the connection]
supertramp_npras is now known as puru
<randomnick_> this code works though
<randomnick_> programming aint easy ;/
kaspergrubbe has quit [Ping timeout: 245 seconds]
<Mon_Ouie> Did you say what I said?
leonidlm has quit [Read error: Operation timed out]
pwh has quit [Quit: pwh]
Monie has joined #ruby
puru is now known as npras
Muz has quit [Ping timeout: 276 seconds]
quoin has quit [Ping timeout: 248 seconds]
jibi has joined #ruby
forced_request has joined #ruby
capnmalarkey has quit [Ping timeout: 248 seconds]
capnmalarkey_ has joined #ruby
mlpinit has joined #ruby
Alex- has joined #ruby
alx- has quit [Read error: Connection reset by peer]
<Popple> Anyone here have experience running a ruby script in an OS X Automator action? Mine throws an error on one of my include statements.
<Popple> Duh, sorry *require statement.
Alex- has quit [Read error: Connection reset by peer]
wildroman has quit [Remote host closed the connection]
i_s has quit [Remote host closed the connection]
Monie has quit [Quit: Textual IRC Client: www.textualapp.com]
alx- has joined #ruby
Honza85 has joined #ruby
slyv has joined #ruby
slyv has quit [Max SendQ exceeded]
nari has quit [Ping timeout: 256 seconds]
Guest10437 has joined #ruby
<Morrolan> Popple: What's the error, and can you show some code?
mlpinit has quit [Remote host closed the connection]
dmiller has joined #ruby
T_T has joined #ruby
<Morrolan> And a wild guess: If the script was written before Ruby 1.9, and you're now running it in > 1.9, you'll run into the issue with the current directory not being part of Ruby's load path anymore.
wildroman has joined #ruby
Honza85 has quit [Quit: ~ Trillian Astra - www.trillian.im ~]
<Popple> Morrolan: http://pastebin.com/urchXYQh
<Popple> See if that works. The script runs just fine anywhere else.
bradhe has joined #ruby
rehat has quit [Remote host closed the connection]
snovak has joined #ruby
<Morrolan> 'xmlsimple' isn't part of Ruby's stdlib, must be a third-party gem.
einarj has joined #ruby
<Morrolan> My guess is that, whatever user automator runs as, doesn't have access to it for one reason or another. Can you upload the error message?
leehambley has quit [Ping timeout: 308 seconds]
<Popple> It's only when I run it through Automator where it errors.
<Popple> Morrolan: Here's the error I get http://d.pr/i/qbIH+
<Popple> Right. I've installed the gem. That's my thought as well. I just don't know how to give Automator access to the gem; that's what I'm stuck on.
<Popple> See my previous message for the error.
<Morrolan> Where did you install the gem to?
dmiller has quit [Read error: Operation timed out]
<Morrolan> Probably in a folder in your user's home, using one of the many ruby version managers?
leehambley has joined #ruby
kvirani has quit [Remote host closed the connection]
<Popple> I opened up a Terminal window (which defaults to my user home directory) and typed 'gem install xml-simple'
kvirani has joined #ruby
kvirani has quit [Remote host closed the connection]
<Popple> Successfully installed: http://d.pr/i/dj2D+
<Morrolan> Ehm, okay. Can you look what the GEM_HOME environment variable contains?
<Morrolan> `echo $GEM_HOME`
cody-- has quit [Quit: derp]
bradhe has quit [Ping timeout: 248 seconds]
<Popple> `/Users/Matthew/.rvm/gems/ruby-2.0.0-p247`
einarj has quit [Ping timeout: 256 seconds]
<Morrolan> Okay. Due to using RVM, ruby, and the various gems, will be installed inside your user's folder.
snovak has quit [Ping timeout: 256 seconds]
mary5030 has joined #ruby
<Morrolan> Given that you did not set up RVM for the user which automator uses, this one will probably use the system-wide Ruby, which is undesireable anyway.
mary5030 has quit [Remote host closed the connection]
cody-- has joined #ruby
mary5030 has joined #ruby
<Morrolan> I'm unsure what the best solution is. Personally I'd just set up RVM for the user used by Automator, and install the required gems.
NealJ has joined #ruby
<Morrolan> But there might be a better, Automator-specific, way.
<Popple> That makes sense. I'll see what I can do. Thanks!
Kricir has joined #ruby
kazuuu has quit [Remote host closed the connection]
<Morrolan> Another solution would be to install Ruby 2.0, and its gems, system-wide, and then tell the script to use that version.
T_T has quit [Remote host closed the connection]
<Morrolan> Just make sure *not to overwrite the system-provided Ruby*
chairabanta has quit [Quit: Leaving...]
yacks has quit [Quit: Leaving]
<Morrolan> On Linux you'd commonly install additional Rubies into /opt, I'm not sure if this convention is used on OSX, too.
<Morrolan> Lastly, I'm no sysadmin, so take what I say with a grain of salt. :P
niklasb has joined #ruby
tkuchiki has quit [Remote host closed the connection]
staafl has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
doebi has left #ruby ["WeeChat 0.4.1"]
h4mz1d has joined #ruby
<Popple> Haha, thanks for your help!
s2013 has joined #ruby
Notte has quit [Remote host closed the connection]
T_T has joined #ruby
<sniffingcats> [3, 12, 5].something { |x| (x < 10) ? x : nil} => [3, 5] is there something like this?
<sniffingcats> well, more like: [3, 12, 5].something { |x| (x < 10) ? x+1 : nil} => [4, 6]
platzhirsch has quit [Ping timeout: 264 seconds]
dodosan has joined #ruby
Aryasam has joined #ruby
|jemc| has joined #ruby
prasanna has joined #ruby
radic_ has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Ping timeout: 260 seconds]
radic has joined #ruby
lukec has quit [Quit: lukec]
blackmes1 has joined #ruby
T_T has quit [Remote host closed the connection]
dodosan has quit [Ping timeout: 248 seconds]
Aryasam has quit [Ping timeout: 260 seconds]
Popple has quit [Quit: Textual IRC Client: www.textualapp.com]
s_kilk has joined #ruby
AlHafoudh has quit [Quit: Computer has gone to sleep.]
h4mz1d has quit [Ping timeout: 240 seconds]
Popple has joined #ruby
s_kilk has quit [Quit: Leaving]
cody-- has quit [Quit: derp]
<Hanmac> sniffingcats: the first is a select, the second is a select combined with an map ..
<sniffingcats> Hanmac: Yeah, I know that I have select+map but I wonder if I can't do it in one loop
sarkis has joined #ruby
wildroman has quit [Remote host closed the connection]
paulodiniz has quit [Quit: paulodiniz]
<Hanmac> not that i know ... sorry :( ... but you could use map + compact
Splourian has joined #ruby
Splourian has left #ruby [#ruby]
Desert_eagle has quit [Ping timeout: 248 seconds]
djbkd has joined #ruby
s_kilk has joined #ruby
aryaching has joined #ruby
<djbkd> is there a write-up or documentation on how to relocate a ruby installation to a non-standard dir (/opt/something instead of /usr/local) ? i have the ruby binary working but hung up on load path for rubygems.rb cannot load such file -- rubygems.rb (LoadError)
braoru has quit [Ping timeout: 245 seconds]
<djbkd> using 2.0.0p247
paulodiniz has joined #ruby
mansi has joined #ruby
blackmesa has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
Desert_eagle has joined #ruby
s_kilk has quit [Quit: Leaving]
s_kilk has joined #ruby
<sniffingcats> Hanmac: thank you
<s2013> stupid quesiton but .size and .bytesize return pretty much the same result right for the msot part
<s2013> especially on strings
nouitfvf has quit []
AndChat| has joined #ruby
<Hanmac> s2013 it depends on your strings
<s2013> >> "sasdfasdfdsfasdfadf".size
<eval-in> s2013 => 19 (https://eval.in/49769)
Nenor has joined #ruby
<s2013> >> "sasdfasdfdsfasdfadf".bytesize
<eval-in> s2013 => 19 (https://eval.in/49770)
<s2013> something like that i guess
<Hanmac> >> ["äöü".size, "äöü".bytesize]
<eval-in> Hanmac => [3, 6] (https://eval.in/49771)
<s2013> so for non standard characters its different?
<fryguy> it depends on the non-standard character, and it depends on the encoding that you are using
Banistergalaxy has quit [Ping timeout: 248 seconds]
quoin has joined #ruby
rehat has joined #ruby
tomzx_mac has joined #ruby
aryaching_ has joined #ruby
aryaching has quit [Ping timeout: 241 seconds]
baroquebobcat has joined #ruby
zorg24 has quit [Ping timeout: 248 seconds]
user64 has joined #ruby
dmiller has joined #ruby
user64 has quit [Remote host closed the connection]
mihirrege has quit [Ping timeout: 240 seconds]
mrsolo has joined #ruby
kreisys has quit [Quit: Computer has gone to sleep.]
coderhs has quit [Ping timeout: 248 seconds]
bradhe has joined #ruby
quoin has quit [Ping timeout: 245 seconds]
snovak has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
chairabanta has joined #ruby
prasanna has quit [Remote host closed the connection]
npras has left #ruby [#ruby]
bradhe has quit [Ping timeout: 260 seconds]
panda|party is now known as radpanda
pwh has joined #ruby
snovak has quit [Ping timeout: 252 seconds]
Deele has quit [Ping timeout: 260 seconds]
zorg24 has joined #ruby
ehaliewicz has joined #ruby
Xaitec has joined #ruby
lapinferoce has joined #ruby
Kricir has joined #ruby
rcs has quit [Ping timeout: 248 seconds]
brianpWins has quit [Quit: brianpWins]
havenwood has joined #ruby
dangerousdave has joined #ruby
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
rcs has joined #ruby
Deele has joined #ruby
Kricir has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
carraroj has joined #ruby
adambeynon has joined #ruby
mengu has joined #ruby
blaze has joined #ruby
blaze is now known as Guest96955
pwh has quit [Quit: pwh]
Xaitec has quit [Remote host closed the connection]
Muz has joined #ruby
vince_prignano has joined #ruby
vince_prignano has quit [Remote host closed the connection]
vince_prignano has joined #ruby
quoin has joined #ruby
wallerdev has quit [Quit: wallerdev]
kaspergr_ has quit [Remote host closed the connection]
dodosan has joined #ruby
fourqq has joined #ruby
relix has joined #ruby
ananthakumaran1 has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
jduan1981 has joined #ruby
<shevy> guys got a question
<shevy> I have one module, one method in it
diegoviola has joined #ruby
<shevy> module Foo; def self.test
dodosan has quit [Ping timeout: 268 seconds]
<shevy> so far so fine
lapinferoce has left #ruby ["Konversation terminated!"]
<shevy> is there a simple way to make this work both standalone but also as a mixin? I am assume there is, of course, but what is the recommended or best way to do so?
<banister`sleep> shevy module_function
<banister`sleep> >> module Foo; module_function; def baby; "hi"; end; end [Foo.baby, Class.new.extend(Foo).baby]
<eval-in> banister`sleep => private method `baby' called for #<Class:0x42004f3c> (NoMethodError) ... (https://eval.in/49782)
<banister`sleep> >> module Foo; module_function; def baby; "hi"; end; end [Foo.baby, Class.new.extend(Foo).send(:baby)]
<eval-in> banister`sleep => undefined method `[]' for nil:NilClass (NoMethodError) ... (https://eval.in/49783)
<banister`sleep> k
<banister`sleep> >> module Foo; module_function; def baby; "hi"; end; end [Foo.baby, Class.new.tap { |v| v.extend(Foo) }.send(:baby)]
<eval-in> banister`sleep => undefined method `[]' for nil:NilClass (NoMethodError) ... (https://eval.in/49784)
<banister`sleep> hehe igu
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
quoin has quit [Ping timeout: 260 seconds]
pellenation has joined #ruby
Desert_eagle has quit [Ping timeout: 245 seconds]
AdmiraI has joined #ruby
Bry8Star{T2 has joined #ruby
djbkd has left #ruby [#ruby]
TehCraw has joined #ruby
LMolr has quit [Ping timeout: 248 seconds]
schaerli_ has quit [Remote host closed the connection]
nouitfvf has joined #ruby
hiyosi has quit [Read error: Connection reset by peer]
<TehCraw> 'afternoon, fellow Ruby enthusiasts.
<TehCraw> Good news..........
<TehCraw> I don't have a question today. :D
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
vince_prignano has quit [Remote host closed the connection]
Desert_eagle has joined #ruby
vince_prignano has joined #ruby
clov3r has joined #ruby
hiyosi has joined #ruby
mansi has quit [Remote host closed the connection]
vince_prignano has quit [Remote host closed the connection]
pwh has joined #ruby
vince_prignano has joined #ruby
braoru has joined #ruby
schaerli has joined #ruby
coderhs has joined #ruby
rehat has quit [Remote host closed the connection]
<Hanmac> banister`sleep: you forgot the ; before the []
schaerli has quit [Remote host closed the connection]
<banister`sleep> >> module Foo; module_function; def baby; "hi"; end; end ; [Foo.baby, Class.new.tap { |v| v.extend(Foo) }.send(:baby)]
<eval-in> banister`sleep => ["hi", "hi"] (https://eval.in/49788)
LMolr has joined #ruby
<banister`sleep> Hanmac thx bb
<pontiki> (he write's ruby in his sleep!)
paulodiniz has quit [Ping timeout: 248 seconds]
* TehCraw often dreams of writing code, and usually breaks it beyond repair in said dream.
xcfox has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
Popple has quit [Quit: Computer has gone to sleep.]
<pontiki> me too
<pontiki> i'm also on irc in my dreams... too weird
* Hanmac managed to crash one of his dreams with an SegFault ... oO ... and in one dream i got an StackError
<pontiki> did you wake up?
Popple has joined #ruby
dmiller has joined #ruby
<TehCraw> Hanmac, that's hilarious.
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
carraroj has quit [Read error: Connection reset by peer]
ndrei_ has joined #ruby
bradhe has joined #ruby
<Hanmac> TehCraw in one dream i was trapped in a "wake-up" sequence where i always thought that i finally worked up ... the first time its funny, the sixth time not so much
carraroj has joined #ruby
kaspergrubbe has joined #ruby
<banister`sleep> Hanmac you still have yet to really wake up my fren (*ceiling starts melting*)
<pontiki> error loop in the bootstrap ROM
wallerdev has joined #ruby
relix has joined #ruby
<TehCraw> That sounds rather frustrating actually. It's funny hearing about it though. xD
<shevy> is there a way from the commandline to transfer a text file into a .pdf file?
relix has quit [Client Quit]
kaspergrubbe has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
<TehCraw> Maybe with some library. I don't know off hand
jbrechtel has joined #ruby
<atmosx> On rails, I'm writing a test for email-downcase: before { @user.email != @user.email.downcase }; it { should_not be_valid } but it's a semantic error. Whatever the email comes up with a failed test. Any ideas?
<pontiki> a2ps
Spami has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
ndrei has quit [Ping timeout: 256 seconds]
Alina-malina has quit [Read error: error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac]
Alina-malina has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
<shevy> thanks TehCraw, thought there may have been some nifty way with prawn or another ruby software but this should suffice
carraroj has quit [Ping timeout: 245 seconds]
ehaliewicz has quit [Ping timeout: 248 seconds]
creature has joined #ruby
<TehCraw> You could always make it into a script and release it on Github..
<TehCraw> Then there would be a nifty way. :)
<creature> Hello. I'm trying to get my head around what's going on here. Hopefully my intent is clear from this test case I've written. When I run this, I get 'stack level too deep'. https://gist.github.com/creature/9f194b69f22a6687068f
<havenwood> shevy: pandoc does a lot more than pdf, and is written in Haskell not Ruby, but that't be what i'd use from command line
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
kazuuu has joined #ruby
<pontiki> a2ps | ps2pdf works great
<shevy> ack
<shevy> last time haskell wanted of me to download some +100 MB thingy or such
<havenwood> shevy: pandoc-ruby gem doesn't have a bin, but prolly just cause there is already the pandoc tool
<pontiki> pandoc-ruby is just a library wrapper
<havenwood> yup
<havenwood> not a port >.>
Kricir has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
codecop has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
zarubin has quit [Read error: Operation timed out]
fourqq has quit [Ping timeout: 248 seconds]
Kricir has quit [Ping timeout: 264 seconds]
alx- has quit [Quit: Leaving...]
BraddPitt has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
vim_shim has quit [Ping timeout: 264 seconds]
zarubin has joined #ruby
|jemc| has quit [Ping timeout: 268 seconds]
row248 has joined #ruby
<TehCraw> Would you guys get mad if I asked what Unit Testing framework you prefer? I'm sure that's been a discussion here about a million times. :P
Davey has joined #ruby
raphaelivan has joined #ruby
<Morrolan> It's not one of the three beehives question.
<Morrolan> Using RSpec, myself.
riku has quit [Disconnected by services]
riku- has joined #ruby
<TehCraw> Thanks, Morrolan.
pwh has quit [Quit: pwh]
<TehCraw> For future reference - and the will to not get killed - what are the three beehive questions?
jbrechtel has quit [Remote host closed the connection]
<pontiki> rspec, here, as well
<prophile> tasty tasty rspec
<Morrolan> TehCraw: Rails, Ruby version managers, and, uh, text editors, I think.
<TehCraw> So I shouldn't ask which IDE is best then? Thanks. LOL
Vivid_ has joined #ruby
<MrZYX> yes, please don't ask that
endash has joined #ruby
<TehCraw> I shall not.
timonv has joined #ruby
T_T has joined #ruby
colonolGron has joined #ruby
<Morrolan> Indeed. And don't ask about rvm vs rbenv vs chruby vs ... either. And don't mention Rails. :P
wildroman has joined #ruby
<prophile> do they cancel?
tylersmith has joined #ruby
<TehCraw> I'm kinda glad that Rails is in that list. I'm rather tired of Googling information on Ruby, and coming back with 10 results on how to do it with Rails.
<TehCraw> I'm not building websites, thanks. :P
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
<Morrolan> Oh, it's not that the whole channel hates Rails. It's just that a few people in here have a strong opinion of it.
<Morrolan> And since those people don't share the same opinion... :P
pygospa has quit [Disconnected by services]
TheRealPygo has joined #ruby
obs has joined #ruby
BrianJ has joined #ruby
browndawg has quit [Read error: Connection timed out]
<pontiki> and there's a nice channel over there -> called #rubyonrails, just happy and waiting to take your rails questions and comments
skulker has quit [Read error: Connection reset by peer]
Popple has quit [Quit: Computer has gone to sleep.]
quoin has joined #ruby
Popple has joined #ruby
skulker has joined #ruby
ndrei_ has quit [Read error: Connection reset by peer]
<TehCraw> Makes sense. If I ever get back into website building, I'd probably use it. Until such time though, I don't want it in the way. ;)
browndawg has joined #ruby
jbrechtel has joined #ruby
<pontiki> 'course, there's all the plain ruby questions asked over there, too :>
Xeago has quit [Remote host closed the connection]
rehat has joined #ruby
cody-- has joined #ruby
axeman- has joined #ruby
elaptics is now known as elaptics`away
yacks has joined #ruby
bricker`LA has quit [Ping timeout: 248 seconds]
aryaching has joined #ruby
quoin has quit [Ping timeout: 245 seconds]
aryaching_ has quit [Ping timeout: 264 seconds]
nfk is now known as Kamijou_Touma
zastern has joined #ruby
bricker`LA has joined #ruby
Guest10437 has quit [Remote host closed the connection]
w3pm has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
neo_ has joined #ruby
s_kilk has quit [Ping timeout: 248 seconds]
Lewix has joined #ruby
iliketurtles has joined #ruby
neo_ has quit [Client Quit]
andy_n has joined #ruby
Popple has quit [Quit: Computer has gone to sleep.]
kazuuu has quit [Remote host closed the connection]
a6c1d60fc84 has joined #ruby
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
T_T has quit [Remote host closed the connection]
a6c1d60fc84 has left #ruby [#ruby]
pellenation has quit [Quit: Leaving.]
mklappstuhl has quit [Read error: Connection reset by peer]
andy_n has quit [Remote host closed the connection]
bradhe has joined #ruby
bricker`LA has quit [Ping timeout: 252 seconds]
row248 has quit [Quit: Leaving]
spider-mario has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
snovak has joined #ruby
mklappstuhl has joined #ruby
dualbus has left #ruby ["WeeChat 0.3.8"]
jbrechtel has quit [Remote host closed the connection]
TheRealPygo is now known as pygospa
bradhe has quit [Ping timeout: 266 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
snovak has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
nouitfvf has quit []
browndawg has quit [Read error: Connection timed out]
ewnd9 has quit [Ping timeout: 268 seconds]
Gabri has joined #ruby
decoponyo has quit [Quit: Leaving...]
browndawg has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
kosc has joined #ruby
colonolGron has quit [Ping timeout: 260 seconds]
kosc has quit [Client Quit]
Popple has joined #ruby
pellenation has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
NealJ has quit [Quit: :c]
timonv has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
Gabri has quit [Remote host closed the connection]
pwh has joined #ruby
w3pm has quit [Quit: This computer has gone to sleep]
aryaching_ has joined #ruby
colonolGron has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
dagnachew has joined #ruby
dagnachew has quit [Client Quit]
dagnachew has joined #ruby
moosya has quit [Quit: moosya]
dagnachew has quit [Client Quit]
dagnachew has joined #ruby
dagnachew has quit [Client Quit]
w3pm has joined #ruby
dhruvasagar has joined #ruby
BadQuanta has joined #ruby
kaspergrubbe has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
Soda has joined #ruby
banghous_ has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
coderhs has quit [Ping timeout: 252 seconds]
S0da has joined #ruby
banghouse2 has quit [Ping timeout: 248 seconds]
rdark has quit [Quit: leaving]
cj3kim_ has joined #ruby
BizarreCake has quit [Ping timeout: 263 seconds]
w3pm has quit [Quit: This computer has gone to sleep]
BillCriswell has joined #ruby
<Hanmac> shevy do you know the game "TimeHollow"?
alx- has joined #ruby
<shevy> nope
Soda has quit [Ping timeout: 268 seconds]
dagnachew has joined #ruby
kaspergrubbe has quit [Ping timeout: 260 seconds]
Popple has quit [Quit: Computer has gone to sleep.]
dagnachew has quit [Client Quit]
haxrbyte has joined #ruby
<Hanmac> shevy: look at this: http://youtu.be/sACLmz5j3BQ
browndawg has left #ruby [#ruby]
T_T has joined #ruby
Davey has joined #ruby
floridities87 has quit [Ping timeout: 245 seconds]
haxrbyte has quit [Remote host closed the connection]
Popple has joined #ruby
mklappstuhl has joined #ruby
<banister`sleep> Hanmac gutentag, did u watch A.T yet?
jduan1981 has quit [Quit: jduan1981]
capnmalarkey_ has quit [Quit: capnmalarkey_]
s2013 has quit [Quit: Leaving]
floridities87 has joined #ruby
bradhe has joined #ruby
HavokOC has quit [Changing host]
HavokOC has joined #ruby
HavokOC has joined #ruby
HavokOC has quit [Changing host]
randomnick_ has quit [Read error: Connection reset by peer]
bradhe has quit [Read error: Connection reset by peer]
<shevy> Hanmac I cant watch those japanese cartoons man
TheFuzzball has quit [Quit: Leaving...]
bradhe has joined #ruby
Hanmac1 has joined #ruby
pwh has quit [Quit: pwh]
motto has joined #ruby
<Hanmac1> banister`sleep: did you get my messages?
nkts has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
m8 has quit [Ping timeout: 248 seconds]
tatsuya_o has joined #ruby
Sel has joined #ruby
Hanmac1 is now known as Hanmac
<Sel> Does Capybara's find_window have to be exact?
<Hanmac> banister`sleep: did i need to ping you again?
DrCode has quit [Ping timeout: 240 seconds]
mephux has quit [Ping timeout: 248 seconds]
quoin has joined #ruby
<banister`sleep> Hanmac no, link
noop has quit [Ping timeout: 240 seconds]
jduan1981 has joined #ruby
vince_prignano has quit [Read error: Connection reset by peer]
<Sel> For example can you do PART of a window's title.
<Hanmac> banister`sleep: yeah, the FlamePrincessKing was awesome i want so see how she kicks Azulas ass from Avatar ;P
<Hanmac> the back story with Shuko was very interesting (first i thought this ghost would be Finns Mother or similar)
vince_prignano has joined #ruby
tylersmith has quit [Ping timeout: 256 seconds]
pwh has joined #ruby
mephux has joined #ruby
kaspergrubbe has joined #ruby
schaerli has joined #ruby
<banister`sleep> Hanmac LINK
tatsuya_o has quit [Ping timeout: 264 seconds]
The-Mad-Pirate has joined #ruby
raphaelivan has quit [Quit: Leaving.]
jbrechtel has joined #ruby
tkuchiki has joined #ruby
schaerli has quit [Remote host closed the connection]
adambeynon has joined #ruby
sniffingcats has quit [Quit: Til rivido Idisti!]
ravster has quit [Quit: Leaving.]
HighSociety has joined #ruby
tylersmith has joined #ruby
leonidlm has joined #ruby
TehCraw has quit [Quit: Leaving]
eka has quit [Quit: Computer has gone to sleep.]
AdmiraI has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pushpak has joined #ruby
robert_ has quit [Ping timeout: 256 seconds]
dmiller has joined #ruby
mary5030 has quit [Remote host closed the connection]
quoin has quit [Ping timeout: 245 seconds]
robonerd has joined #ruby
<robonerd> anyone used webmachine?
tkuchiki has quit [Remote host closed the connection]
fuhgeddaboudit_ has quit [Ping timeout: 252 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
Stalkr^ has joined #ruby
<Stalkr^> Does Ruby developers prefer tab or space indentation? 2 or 4 spaces?
dangerousdave has joined #ruby
<hoelzro> Stalkr^: 2 spaces
einarj has joined #ruby
<creature> 2 spaces, no tabs.
jbrechte_ has joined #ruby
lukec has joined #ruby
<Stalkr^> Okay, I will remember that. My text editor defaults to 4, but will change to 2 whenever I remember
dmiller has quit [Ping timeout: 240 seconds]
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
zarubin has quit [Ping timeout: 260 seconds]
<Hanmac> for my own projects i prefer tabs because its more consequent because i have both c++ and ruby files in one
jbrecht__ has joined #ruby
snovak has joined #ruby
robustus has quit [Ping timeout: 245 seconds]
vince_prignano has quit [Remote host closed the connection]
jbrechtel has quit [Ping timeout: 260 seconds]
jbrechte_ has quit [Ping timeout: 245 seconds]
<Stalkr^> I never really understood the difference, I guess it's because spaces behave the same in every editor, where tab can be weird? Don't know though
kazuuu has joined #ruby
robustus has joined #ruby
snovak has quit [Ping timeout: 240 seconds]
pwh has quit [Quit: pwh]
dhruvasagar has quit [Ping timeout: 245 seconds]
chairabanta has quit [Quit: Leaving...]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
Kricir has joined #ruby
Vivid_ has quit [Remote host closed the connection]
cads has joined #ruby
kazuuu has quit [Ping timeout: 264 seconds]
<zastern> I presume I am totally understanding how 'include' works? Because Line 19 in the top file gives me undefined method 'endpoint'
<zastern> Zendeath::Commands.endpoint also gives me undefined method
<MrZYX> include adds instance methods
<MrZYX> if you want to call a modules methods on another module you'd need to use extend
Kricir has quit [Ping timeout: 245 seconds]
<zastern> Ok fair enough, but shouldn't i still be able to do Zendeath::Commands.endpoint directly?
<MrZYX> no
<zastern> gah.
havenwood has quit [Remote host closed the connection]
<MrZYX> it's defined inside the module, not on the Module object in Zendeath::Commands
<MrZYX> if you want both to work, include/extend and calling them on the Module instance, have a look at module_function which copies the methods to the instance
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
Heero has joined #ruby
HighSociety has quit [Remote host closed the connection]
cj3kim_ has quit [Remote host closed the connection]
Guest96955 has quit [Quit: Leaving]
aryaching_ has quit []
S0da has quit [Read error: Connection reset by peer]
pwh has joined #ruby
cody-- has quit [Quit: derp]
aryaching has joined #ruby
axeman- has quit [Remote host closed the connection]
robert__ has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
wildroman has quit [Remote host closed the connection]
cj3kim has joined #ruby
dodosan has joined #ruby
dankest has joined #ruby
maletor has joined #ruby
kyllesdk has joined #ruby
gr33n7007h has quit [Ping timeout: 245 seconds]
skulker has quit [Read error: Connection reset by peer]
aryaching has quit []
skulker has joined #ruby
AdmiraI has joined #ruby
ehaliewicz has joined #ruby
skulker has quit [Read error: Connection reset by peer]
skulker has joined #ruby
blkcrwn has joined #ruby
dodosan_ has joined #ruby
dodosan has quit [Read error: Connection reset by peer]
alx- has quit [Quit: Leaving...]
alx- has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Popple has quit [Quit: Computer has gone to sleep.]
randomnick_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
michael_mbp is now known as zz_michael_mbp
jbrecht__ has quit [Remote host closed the connection]
zz_michael_mbp is now known as michael_mbp
baroquebobcat has joined #ruby
allsystemsarego has quit [Quit: Leaving]
tylersmith has quit [Ping timeout: 264 seconds]
Teddy2steper has joined #ruby
vim_shim has joined #ruby
dankest has quit [Quit: Peace]
jduan1981 has quit [Quit: jduan1981]
fuhgeddaboudit_ has joined #ruby
dankest has joined #ruby
gr33n7007h has joined #ruby
lurch_ has joined #ruby
thepumpkin has joined #ruby
braoru has quit [Ping timeout: 245 seconds]
fuhgeddaboudit_ has quit [Client Quit]
fuhgeddaboudit has joined #ruby
Kricir has joined #ruby
quazimodo has joined #ruby
<quazimodo> why is irb and ruby not letting me use Date.today but pry is?
<sam113101> quazimodo: you need to require it first
<sam113101> maybe pry uses it internally so you don't have to, or I don't know
<quazimodo> yep gotcha
<quazimodo> i forgot yeah
RDash is now known as RDash[AW]
apeiros has quit [Remote host closed the connection]
quoin has joined #ruby
apeiros has joined #ruby
bradhe has quit [Remote host closed the connection]
Teddy2steper has quit [Remote host closed the connection]
s_kilk has joined #ruby
AdmiraI has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sniffingcats has joined #ruby
dmiller has joined #ruby
dmiller has quit [Read error: Operation timed out]
|jemc| has joined #ruby
dodosan has joined #ruby
obs has quit [Quit: Konversation terminated!]
mrsolo has quit [Quit: Leaving]
diegoviola has quit [Quit: WeeChat 0.4.1]
dankest has quit [Quit: Peace]
mrsolo has joined #ruby
vlad_starkov has joined #ruby
dodosan_ has quit [Ping timeout: 245 seconds]
AdmiraI has joined #ruby
obs has joined #ruby
cj3kim has quit [Remote host closed the connection]
w3pm has joined #ruby
lurch_ has quit [Quit: lurch_]
quoin has quit [Ping timeout: 248 seconds]
Soda has joined #ruby
<s_kilk>
s_kilk has quit [Quit: Leaving]
<robonerd> well said
Apocalypse has quit [Ping timeout: 260 seconds]
kyllesdk has quit [Quit: Leaving.]
workmad3 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Apocalypse has joined #ruby
cj3kim has joined #ruby
dodosan_ has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
dodosan has quit [Read error: Connection reset by peer]
raphaelivan has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
agent_white has joined #ruby
mrsolo has joined #ruby
s2013[nyj] has joined #ruby
relix has joined #ruby
Popple has joined #ruby
bradhe has joined #ruby
kazuuu has joined #ruby
Xeago has quit [Remote host closed the connection]
forcefsck has quit [Quit: Ex-Chat]
spider-mario has quit [Remote host closed the connection]
<shevy> Stalkr^ tab vs. spaces difference can become annoying when you want to indent both comments and code. when I noticed I started to indent my comments so that it can align to code, I switched to 2 spaces instead and never went back to tabs
KobraKao has joined #ruby
petey has quit [Remote host closed the connection]
T_T has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
braoru has joined #ruby
kaspergrubbe has joined #ruby
volty has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
T_T has joined #ruby
bradhe has quit [Remote host closed the connection]
braoru has quit [Remote host closed the connection]
tommylommykins has quit [Remote host closed the connection]
tommylommykins has joined #ruby
visof has joined #ruby
kazuuu has quit [Read error: Connection reset by peer]
Raboo has quit [Ping timeout: 260 seconds]
kazuuu has joined #ruby
zarubin has joined #ruby
kazuuu has quit [Read error: Connection reset by peer]
kazuuu has joined #ruby
<Sel> Anyone in here that can help me with capybara's find_window()?
kaichanvong has quit [Quit: _]
<robonerd> anyone used webmachine?
<atmosx> at's that?
<atmosx> a nokogiri clone?
<robonerd> what's the lowest level 'web' wrapper?
<robonerd> if i want to kinda start at 'bare metal' of web and build my own ruby framework
kaichanvong has joined #ruby
<bnagy> cgi
<fryguy> robonerd: you should consider looking at rack, at least for inspiration
<robonerd> thanks fryguy
claymore has quit [Ping timeout: 260 seconds]
leonidlm has quit [Ping timeout: 245 seconds]
pellenation has quit [Quit: Leaving.]
LMolr has quit [Quit: Leaving]
LMolr has joined #ruby
<atmosx> robonerd: web-machine looks lke a small sinatra, but there are at least 15 http microframeworks out there. Some of them pretty well done.
<robonerd> so many? dang
<robonerd> are there any review sites that give an overview?
<atmosx> yes
vim_shim has quit [Ping timeout: 256 seconds]
Liothen has joined #ruby
<atmosx> hmm
codecop has quit [Remote host closed the connection]
<atmosx> robonerd: there othhers though https://www.ruby-toolbox.com/categories/web_app_frameworks
<atmosx> this is very barebones for example http://camping.io
Nenor has quit [Quit: Nenor]
cooldman224 has joined #ruby
<robonerd> so hard to choose :P
cj3kim has quit [Remote host closed the connection]
T_T has quit [Remote host closed the connection]
Popple has quit [Quit: Computer has gone to sleep.]
Krajsnick has joined #ruby
Xeago has joined #ruby
KobraKao has quit [Ping timeout: 264 seconds]
snovak has joined #ruby
quoin has joined #ruby
leehambley has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 256 seconds]
cj3kim_ has joined #ruby
yfeldblum has joined #ruby
KobraKao has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leehambley has joined #ruby
enebo has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
Xeago_ has joined #ruby
Guedes has left #ruby [#ruby]
colonolGron has quit [Quit: Lost terminal]
jduan1981 has joined #ruby
Lewix_ has joined #ruby
rcs has quit [Ping timeout: 252 seconds]
vim_shim has joined #ruby
threesome has quit [Ping timeout: 268 seconds]
sambao21 has joined #ruby
bradhe has joined #ruby
Lewix has quit [Ping timeout: 252 seconds]
quoin has quit [Ping timeout: 256 seconds]
ThePicard has quit [Ping timeout: 260 seconds]
AdmiraI has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
s2013[nyj] has quit [Quit: Leaving]
havenwood has joined #ruby
snovak has quit [Ping timeout: 245 seconds]
rcs has joined #ruby
dmiller has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
ThePicard has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
kreisys has joined #ruby
w3pm has left #ruby ["Leaving"]
polaco_zZz is now known as polaco
|jemc| has quit [Ping timeout: 246 seconds]
Davey has joined #ruby
i_s has joined #ruby
AdmiraI has joined #ruby
dash_ has quit [Quit: dash_]
leehambley has quit [Ping timeout: 260 seconds]
mklappstuhl has joined #ruby
leehambley has joined #ruby
Speed has quit [Ping timeout: 260 seconds]
Popple has joined #ruby
jduan1981 has quit [Quit: jduan1981]
staafl has quit [Ping timeout: 260 seconds]
sirupsen has joined #ruby
jbrechtel has joined #ruby
Hanmac1 has joined #ruby
linduxed has quit [Ping timeout: 245 seconds]
vDubG__ has quit [Ping timeout: 260 seconds]
TryX has joined #ruby
jduan1981 has joined #ruby
_Minos_ has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
<TryX> hey can someone help me with installing gem/ruby??
<TryX> its driving me crazy
<TryX> gem update --system 2.0.3
<TryX> ERROR: While executing gem ... (Gem::Exception)
<TryX> Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
Hanmac has quit [Ping timeout: 264 seconds]
<TryX> is the error i get and i have openssl installed
<zaltekk> openssl dev libs?
<TryX> shuoldnt autolibs handle that??
<zaltekk> no idea
bricker`LA has joined #ruby
lsoa has joined #ruby
<TryX> anyone can help me out?
ewnd9 has joined #ruby
Heero has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
xk_id has joined #ruby
Stygia has joined #ruby
zorg24 has quit [Ping timeout: 260 seconds]
<fryguy> TryX: the error message tells you exactly what to do. if you think it's not correct, bring it up with whoever packaged your ruby installation
<bnagy> you need openssl dev libs and a bunch of other stuff if you're building fully by hand
<Stygia> Hey, question, is anyone here using rubygems-integration on Debian? I am on stable, but it seems that even though I have rubygems-integration installed, the rails skeleton I just created complains that certain dependencies are not met (For example, rails itself in version = 3.2.6), although I do have them installed (In case of rails, I have rails and rails3, in 3.2.6-1)
<bnagy> if you want the easy way out use ruby-install or something
<TryX> im using the hartl turotorial to install ruby
emergion has joined #ruby
<bnagy> no idea what that is, sorry
<TryX> and RoR
<bnagy> I forgot to memorise the Internet this morning
<Stygia> It seems to me that rubygems-integration was meant to do this, but it doesn't immediately seem to. It should be noted I am using rails3 and ruby2.0
Krajsnick has quit [Remote host closed the connection]
<bnagy> Stygia: you might have more luck in one of the rails channels
<Stygia> bnagy, Ah, thanks for the suggestion, this did seem to be to be ruby-related in general, as it's about ruby dependency management. But it would easily be rails-specific, unless, are Gemfiles a general thing in ruby?
Xeago_ has quit [Remote host closed the connection]
<bnagy> well I've never heard of 'rubygems-integration'
<Stygia> bnagy, Fair enough, it's a Debian package.
<bnagy> gemfiles and dependency management is definitely a general ruby thing
i_s has quit [Remote host closed the connection]
<bnagy> but mostly for vanilla ruby it's just gem install and stuff works :P
LMolr has quit [Quit: Leaving]
TryX has quit [Remote host closed the connection]
Kricir has joined #ruby
<Stygia> bnagy, Yea I know, was just hoping to somehow get the debian packages accepted by rails as satisfying my dependencies. :) Thanks anyway.
mengu has quit [Quit: Leaving]
<MrZYX> .6 is outdated anyway and has security issues
randomautomator has joined #ruby
<banister`sleep> Hanmac1 this is your kind of thing http://www.youtube.com/watch?v=LATKP6Dj9X8
enebo has quit [Quit: enebo]
cooldman224 has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
|jemc| has joined #ruby
BillCriswell has quit [Remote host closed the connection]
jbrechtel has quit [Remote host closed the connection]
zorg24 has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
Soda has quit [Remote host closed the connection]
nerdy has joined #ruby
sepp2k1 has joined #ruby
BillCriswell has joined #ruby
visof has quit [Ping timeout: 264 seconds]
Monie has joined #ruby
mrsolo has joined #ruby
sepp2k has quit [Ping timeout: 252 seconds]
paulodiniz has joined #ruby
BillCriswell has quit [Remote host closed the connection]
randomautomator has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
randomautomator has joined #ruby
visof has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
quoin has joined #ruby
IPGlider has joined #ruby
quazimodo has quit [Ping timeout: 260 seconds]
paulodiniz has quit [Client Quit]
IPGlider has quit [Client Quit]
eoinkelly has joined #ruby
jibi has quit [Quit: .]
vlad_starkov has quit [Ping timeout: 248 seconds]
obs has quit [Quit: Konversation terminated!]
bradhe has quit [Remote host closed the connection]
snovak has joined #ruby
bugsinlights has joined #ruby
dangerousdave has quit [Ping timeout: 246 seconds]
niklasb has quit [Quit: WeeChat 0.4.1]
mrsolo has quit [Quit: This computer has gone to sleep]
ewnd9 has quit [Ping timeout: 264 seconds]
gstamp has joined #ruby
polaco is now known as polaco_zZz
mayday_jay has joined #ruby
mayday_jay has left #ruby [#ruby]
snovak has quit [Ping timeout: 240 seconds]
dorei has joined #ruby
tonni has quit [Read error: Connection reset by peer]
randomautomator has quit [Read error: Connection reset by peer]
<dorei> hello, how can I add on-the-fly a method to an object ?
quoin has quit [Ping timeout: 252 seconds]
tonni has joined #ruby
<MrZYX> def object.method; ....; end
v0n has joined #ruby
<dorei> x = SomeClass.new
mklappstuhl has quit [Remote host closed the connection]
<dorei> how can i add a method to x ?
i_s has joined #ruby
<MrZYX> def x.method; ...; end
<volty> def x.my_method ...
<dorei> thanks :)
quazimodo has joined #ruby
jduan1981 has quit [Quit: jduan1981]
quoin has joined #ruby
nkts has quit [Quit: x]
jduan1981 has joined #ruby
kazuuu has quit [Remote host closed the connection]
linduxed has joined #ruby
Jdubs has joined #ruby
i_s has quit [Ping timeout: 264 seconds]
<Lewix_> javascript scoping and hoisting is a mess
agjacome has joined #ruby
<Jdubs> Hey guys, I have a activerecord object with a before_create to make a token value. It works fine in console, but in my rspec tests it's not properly creating the value before saving. Any idea what could cause the disconnect?
<MrZYX> -> #rubyonrails
<banister`sleep> Lewix_ use cs bb
<Lewix_> banister`sleep: what?
<banister`sleep> coffeescript
Lewix_ is now known as Lewix
mklappstuhl has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
<Lewix> banister`sleep: ah
kazuuu has joined #ruby
<Lewix> banister`sleep: im afraid it'll be a pain with newer versions of javascript
aaronmcadam has quit [Quit: Leaving...]
skulker has quit [Remote host closed the connection]
<banister`sleep> Lewix ES6 was to a large part influenced by coffeescript
<banister`sleep> so i don't think it will be an issue
<Lewix> banister`sleep: exactly
kirun has quit [Quit: Client exiting]
gr33n7007h has quit [Ping timeout: 264 seconds]
visof has quit [Quit: Leaving]
<Lewix> banister`sleep: how would CoffeeScript work with the new for/of loops implemented by es6 when they already have for/of loops of their own?
<banister`sleep> Lewix it would probably just change the way coffee scripts for/of loops are compiled
<Lewix> so it's not backward compatible
<Lewix> which is always a pain
polaco_zZz is now known as polaco
ismlages has quit [Remote host closed the connection]
aaronmcadam has joined #ruby
bklang has quit [Ping timeout: 248 seconds]
AdmiraI is now known as get9
larissa has joined #ruby
aaronmcadam has quit [Ping timeout: 246 seconds]
zarubin has quit [Ping timeout: 248 seconds]
lukec has quit [Quit: lukec]
motto has quit [Quit: Sto andando via]
pwh has quit [Quit: pwh]
mklappstuhl has quit [Remote host closed the connection]
petey has joined #ruby
mklappstuhl has joined #ruby
paulodiniz has joined #ruby
Stalkr^ has quit [Quit: Leaving...]
Kricir has quit [Remote host closed the connection]
enriclluelles has joined #ruby
lunks has joined #ruby
<lunks> Is there a reasonable way to iterate through an array and return the value from the first block that returns not-nil?
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lunks> something like detect with map
<bnagy> find
<lunks> find returns the item from the array, not what was evaluated in the block, bnagy
MrZYX is now known as MrZYX|off
Davey has quit [Quit: Computer has gone to sleep.]
<bnagy> just operate on it once you find it
<volty> arr.map { ... }.find
<bnagy> or map find, but that can be slow
<bnagy> or each and break( value )
dodosan_ has quit [Remote host closed the connection]
<volty> inject & break ? can be combined?
<bnagy> not sure about inject break
vlad_starkov has joined #ruby
<bnagy> huh, seems it can
<bnagy> >> [1,2,3].inject(0) {|a,i| a+=i;break i if i==2;a}
<eval-in> bnagy => 2 (https://eval.in/49803)
<bnagy> doesn't seem like a useful pattern though
bradhe has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
<lunks> VALID_STATUSES.map{ |klass| (obj = self.class.const_get(klass).new(user)) && obj.matches? && obj }.reject(&:nil?).first
<lunks> This is very ugly
<bnagy> sure is
<lunks> Any tips on improving it?
GeissT has joined #ruby
SeySayux has quit [Ping timeout: 245 seconds]
einarj has joined #ruby
mercwithamouth has quit [Read error: Connection reset by peer]
<bnagy> well you could store the actual class in VALID_STATUSES
<volty> [1,2,3].inject(nil) { |result, i| result = ... ; break if result }
kazuuu has quit [Remote host closed the connection]
huoxito has joined #ruby
<bnagy> and yeah I would probably use each/break
jbrechtel has joined #ruby
rehat has quit [Remote host closed the connection]
<volty> i do agree, i'm just exercising
<bnagy> so like STATUSES.each {|status_klass| thing=status_klass.new(whatever); break thing if whatever tests match}