<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
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."
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
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.
<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
<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
<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.]
<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
<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>
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
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)
<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>
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]
<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?
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>
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?
* 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]
<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]
<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.]
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
<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]
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]
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
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}