jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xcv has quit [Remote host closed the connection]
mojjojo has quit [Quit: mojjojo]
fuhgeddaboudit has quit [Ping timeout: 272 seconds]
xcv has joined #ruby
cpruitt has quit [Quit: cpruitt]
javon has joined #ruby
amacgregor has joined #ruby
lfox has joined #ruby
xcv has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
mojjojo has joined #ruby
Jetchisel has joined #ruby
et__ has quit [Quit: Leaving.]
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
et__ has joined #ruby
yjmsf20 has joined #ruby
mojjojo has quit [Client Quit]
VTLob has quit [Quit: VTLob]
et__ has left #ruby [#ruby]
Briareos1 has joined #ruby
timonv_ has joined #ruby
athst has quit [Quit: athst]
danshultz has quit [Remote host closed the connection]
xcv has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
danshultz has joined #ruby
baroquebobcat has joined #ruby
yjmsf20 has quit [Ping timeout: 260 seconds]
sergicles has quit [Quit: sergicles]
threesome has joined #ruby
timonv_ has quit [Ping timeout: 264 seconds]
saarinen has quit [Quit: saarinen]
aspiers has quit [Read error: No route to host]
danshultz has quit [Ping timeout: 245 seconds]
brunto has quit [Ping timeout: 272 seconds]
baroquebobcat has quit [Client Quit]
emocakes has joined #ruby
jeffdb has joined #ruby
Arzaga has joined #ruby
brunops has quit [Ping timeout: 240 seconds]
asteros has quit [Quit: asteros]
tjbiddle has quit [Quit: tjbiddle]
baroquebobcat has joined #ruby
brunto has joined #ruby
nobitanobi has joined #ruby
<nobitanobi>
hihi
<xibalba>
byebye
<nobitanobi>
:(
aspiers has joined #ruby
cbetta_afk is now known as cbetta
hogeo has joined #ruby
baroquebobcat has quit [Ping timeout: 240 seconds]
brunops has joined #ruby
aryaching has joined #ruby
<DouweM>
aw
<DouweM>
hi nobitanobi
<nobitanobi>
DouweM, hi!
Megtastique has joined #ruby
threesome has quit [Ping timeout: 246 seconds]
_Andres_ has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
echevemaster has quit [Ping timeout: 246 seconds]
nwertman has joined #ruby
petey has joined #ruby
araujo has quit [Ping timeout: 272 seconds]
tharindu_ has joined #ruby
hogeo has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
araujo has joined #ruby
predator117 has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
predator117 has joined #ruby
cbetta is now known as cbetta_afk
yjmsf20 has joined #ruby
hogeo has joined #ruby
jonathanwallace has quit [Ping timeout: 246 seconds]
xcv has quit [Remote host closed the connection]
yjmsf20 has quit [Ping timeout: 246 seconds]
xcv has joined #ruby
brunops has quit [Ping timeout: 246 seconds]
araujo has quit [Ping timeout: 272 seconds]
Atrophius has quit [Ping timeout: 245 seconds]
brunops has joined #ruby
ravster has joined #ruby
bbloom has joined #ruby
<bbloom>
a year or two ago, i read an article containing graphs of dynamic/metaprogramming construct usage over time. it showed that over the initial period of time, ruby programs do a lot of metaprogramming, but eventually stablize to something relatively static.
<bbloom>
does anybody know where i can find that article?
endash_ has quit [Quit: endash_]
tjbiddle has joined #ruby
kevind has quit [Quit: kevind]
xcv has quit [Ping timeout: 252 seconds]
aspires has quit []
kobain has joined #ruby
cpruitt has joined #ruby
Zesty has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamesaanderson has joined #ruby
aspires has joined #ruby
kobain_ has quit [Ping timeout: 252 seconds]
shime has quit [Ping timeout: 265 seconds]
Arzaga has quit [Quit: Computer has gone to sleep.]
Krinkle has joined #ruby
Fezzler has joined #ruby
iamjarvo has joined #ruby
robustus has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Client Quit]
Arzaga has joined #ruby
Arzaga has quit [Client Quit]
ehc has quit [Quit: ehc]
robustus has joined #ruby
tylersmith has quit [Remote host closed the connection]
kobain has quit [Remote host closed the connection]
<IceDragon>
"Ruby: You shoot yourself in the foot and then have to justify it to all your friends who are still naively using Perl."
gyre007 has quit [Remote host closed the connection]
gyre007 has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
cpruitt has joined #ruby
subbyyy has quit [Read error: Operation timed out]
cpruitt has quit [Client Quit]
Liothen has quit [Quit: System of a down……]
_maes_ has joined #ruby
xcv has quit [Ping timeout: 272 seconds]
_maes_ has quit [Client Quit]
gyre007 has quit [Ping timeout: 260 seconds]
pragmatism has quit [Ping timeout: 272 seconds]
YuviPanda has left #ruby ["Leaving..."]
dhruvasagar has quit [Ping timeout: 264 seconds]
jetblack_ has quit [Quit: leaving]
baroquebobcat has quit [Quit: baroquebobcat]
tjbiddle has quit [Quit: tjbiddle]
iliketur_ has quit [Quit: zzzzz…..]
jcromart_ has joined #ruby
petey has quit [Remote host closed the connection]
timonv has joined #ruby
petey has joined #ruby
root_empire has joined #ruby
freerobby has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
root_empire has quit [Read error: Connection reset by peer]
petey has quit [Ping timeout: 265 seconds]
nobitanobi has quit [Ping timeout: 245 seconds]
sergicles has joined #ruby
jamesaanderson has quit [Ping timeout: 260 seconds]
root_empire has joined #ruby
theKayhan has quit [Remote host closed the connection]
sergicles has quit [Client Quit]
end_guy has quit [Ping timeout: 240 seconds]
CaptainJet has quit []
CaptainJet has joined #ruby
falood has joined #ruby
jeffdb has joined #ruby
jamesaanderson has joined #ruby
nullsign_ is now known as nullsign
subbyyy has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asteros has joined #ruby
tjbiddle has joined #ruby
s2013 has quit [Ping timeout: 272 seconds]
marr has quit [Ping timeout: 252 seconds]
<tjbiddle>
Anyone know how to disable debug ERB logging?
lukec has quit [Quit: lukec]
theKayhan has joined #ruby
aspires has quit []
CaptainJet has quit []
<RubyPanther>
bbloom: I don't know the article, but I remember in the past at one of the Ruby conventions, a bunch of smart people sat down and created a resource injection system for Ruby, then they went home and decided Ruby could already meet the use cases with mixins.
<bbloom>
RubyPanther: i'm mostly interested from a VM-designers perspective. this idea that most of the time code takes the fast-path after some initial "settling" period is interesting to me. was hoping to find those graphs to illustrate that point
jeffdb has quit [Quit: jeffdb]
dwgill has quit [Quit: Leaving]
CaptainJet has joined #ruby
root_empire has quit [Ping timeout: 265 seconds]
michael_lee has joined #ruby
kaldrenon has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
kaldrenon has quit [Read error: Operation timed out]
eka has joined #ruby
otherj has joined #ruby
michael_lee has quit [Read error: Connection reset by peer]
shadoi has quit [Quit: Leaving.]
michael_lee has joined #ruby
Hanmac has joined #ruby
citrin has joined #ruby
psyl0n has quit [Remote host closed the connection]
subbyyy_ has joined #ruby
pragmatism has joined #ruby
Hanmac1 has quit [Ping timeout: 265 seconds]
jlast has joined #ruby
eka has quit [Ping timeout: 264 seconds]
user4599 has joined #ruby
<user4599>
Hey, is anyoen here?
subbyyy has quit [Ping timeout: 264 seconds]
michael_lee has quit [Read error: Connection reset by peer]
<user4599>
Hello is anyone out there?
Lewix has quit [Remote host closed the connection]
user4599 has quit [Client Quit]
matheuscaceres has quit [Quit: matheuscaceres]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_lee has joined #ruby
lfox has quit [Quit: ZZZzzz…]
aspires has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
michael_lee has quit [Read error: Connection reset by peer]
Megtastique has quit []
Kricir has joined #ruby
javierbuilder has joined #ruby
javierbuilder has quit [Max SendQ exceeded]
nowthatsamatt has quit [Quit: nowthatsamatt]
hamakn has joined #ruby
jgrevich has quit [Quit: jgrevich]
michael_lee has joined #ruby
endash has quit [Quit: endash]
roadt has joined #ruby
gdakram_ has joined #ruby
<pontiki>
shades of The Wall
<pontiki>
o/~ All alone, or in twos / The ones who really love you / Walk up and down outside the wall / Some hand in hand / Some gathering together in bands / The bleeding hearts and the artists / Make their stand // And when they've given you their all / Some stagger and fall after all it's not easy / banging your heart against some mad buggers Wall ~/o
gdakram_ has quit [Client Quit]
gdakram_ has joined #ruby
gdakram has quit [Read error: Connection reset by peer]
gdakram_ is now known as gdakram
danshultz has joined #ruby
ylluminate has joined #ruby
digital-ghost has quit [Remote host closed the connection]
habanany has joined #ruby
estebistec has joined #ruby
Mars__ has quit [Remote host closed the connection]
julweber has quit [Remote host closed the connection]
heidi has joined #ruby
brian___ has quit [Quit: brian___]
Liothen has joined #ruby
iliketur_ has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
tharindu_ has quit [Quit: Leaving...]
coldie has quit [Read error: Connection reset by peer]
athst has quit [Quit: athst]
GoodTimes has quit [Ping timeout: 252 seconds]
mercwithamouth has quit [Ping timeout: 246 seconds]
jcromart_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iliketur_ has quit [Ping timeout: 264 seconds]
sergicles has joined #ruby
autumn has quit [Ping timeout: 246 seconds]
autumn has joined #ruby
varfoo has joined #ruby
nobitanobi has joined #ruby
darkf has joined #ruby
taternuts has joined #ruby
taternuts has left #ruby [#ruby]
asteros has quit [Quit: asteros]
hackeron_ has quit [Read error: Connection reset by peer]
heidi has quit [Quit: Leaving.]
hackeron has joined #ruby
Kricir has quit [Remote host closed the connection]
Briareos1 has quit [Remote host closed the connection]
heftig_ is now known as heftig
habanany has quit [Ping timeout: 264 seconds]
aryaching has joined #ruby
zeade has joined #ruby
user5555 has joined #ruby
<user5555>
Hey, is anyone here?
<sevenseacat>
no.
<user5555>
Is thsi the freenode for ruby coding?
<user5555>
I am trying to decide whether to learn ruby or go with python?
<user5555>
Do you know which would be better?
<sevenseacat>
thats a loaded question
io_syl has joined #ruby
<user5555>
I already paid for a ruby course and am about to finish it.
<jrobeson>
neither are better.. they are both good
<pontiki>
yes
<jrobeson>
in different ways
<sevenseacat>
asking which language is better in a channel dedicated to one of the two
<pontiki>
it's better to learn ruby or go with python
<jrobeson>
hah :)
<havenwood>
user5555: learn Ruby
mmcdaris has quit [Quit: mmcdaris]
<havenwood>
user5555: forsake the snake
<jrobeson>
python is nice.. don't so so mean to it!
<user5555>
Well, does anyone know where I could learn to build bots with ruby by chance? I'm eventually wanting to build websites, and I heard RoR was good for the backend, no?
<pontiki>
learn as many languages and frameworks as you can
<pontiki>
what kind of bots?
<jrobeson>
oh pontiki .. hi btw
<user5555>
I'm new to programming, I can't afford to go back to college for CS so have to teach myself.
<jrobeson>
user5555, it's possible that there are better libraries for interacting with reddit in python
<pontiki>
go ask it in a #java forum and they'll tell you java
<pontiki>
ask it in a Go forum and they'll tell you Go
<jrobeson>
but we wouldn't know.. none of us have looked
<jrobeson>
if some people are actually going to help you with your bot..and they use python, and you want their help
<pontiki>
user5555: what would be the downside of just starting
<jrobeson>
then python would be better
theKayhan has quit [Ping timeout: 264 seconds]
<jrobeson>
but if you plan on figuring stuff out yourself.. just pick one..
<user5555>
pontiki: I dont know how to really start I guess.
<user5555>
IDK.
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
amacgregor_ has quit [Ping timeout: 246 seconds]
<pontiki>
user5555: the key thing you need to learn, then, is how to come up with a problem, and break it down
<pontiki>
this has absolutely nothing to do with the language you choose to implement in
<user5555>
IC.
<user5555>
Ok, I will try to figure it out I guess.
<user5555>
I'm going to code.
pragmatism has quit [Quit: Leaving...]
<user5555>
I think maybe that is best plan.
<pontiki>
i'm going to suggest you pick up "Think Like a Programmer" by Anton Spraul.
Animawish has joined #ruby
Guest53381 has quit [Quit: w0ots...]
<user5555>
Animawish, you go to University of Utah?
<Animawish>
yessir
<Animawish>
are you an IP wizard
<user5555>
I graduated from there.
<pontiki>
Also, "The Pragmatic Programmer" by Dave Thomas and Andy Hunt
<Animawish>
what year?
estebistec has quit [Remote host closed the connection]
<user5555>
2011.
<user5555>
pontiki: I'm not ignoreing you btw :P.
<Animawish>
sweet
<pontiki>
it's ok
mephux has joined #ruby
<Animawish>
i'm starting up in the EAE program. not totally sold on it but since I plan to work on games and it's technically a CS major i figure why not :p
<pontiki>
Another, if you can find it, is "Programming Pearls" by Jon Bentley
<user5555>
pontiki: Can I ask about those two books?
<user5555>
Are those two focused on ruby?
<pontiki>
ask away
<pontiki>
no
subbyyy_ has quit [Ping timeout: 240 seconds]
<pontiki>
they are focused on the craft of software engineering
<user5555>
Ok, then I guess what would be the benefit (not questioning it, just curious).
<user5555>
Animawish: What year are you?
<Animawish>
freshman
Monie has joined #ruby
<user5555>
IC.
<Animawish>
my first semester here
<pontiki>
ok, so, user5555, bear in mind this is my opinion
<user5555>
pontiki: ok
dhruvasagar has quit [Ping timeout: 272 seconds]
<pontiki>
but to me, software engineering, the craft of writing good software applications that do what you want them to, that work for others, has very very little to do with which language you pick, and very much to do with how you understand how to solve problems.
rezzack has quit [Quit: Leaving.]
jbellone has quit [Quit: leaving]
parduse has quit []
<pontiki>
learning a syntax of a language is probably the easiest part of it all
parduse has joined #ruby
sergicles has quit [Quit: sergicles]
dhruvasagar has joined #ruby
<sevenseacat>
ive heard good things about chris pine's "learn to program"
julweber has joined #ruby
Tarential has quit [Excess Flood]
<user5555>
pontiki: So, basically, I should stick with ruby, learn to program and think about programming, and then after doing that, it shoulnd't matter the langauge.
<pontiki>
i have as well; i just have not read it
<pontiki>
that's a start
<Animawish>
did you graduate in CS user5555?
Tarential has joined #ruby
<pontiki>
do not ever learn or rely on a single language
<user5555>
Animawish: No.
<pontiki>
nor a single framework
<pontiki>
goodness
Kricir has joined #ruby
<Animawish>
ballet then?
<pontiki>
i'm sound rather like the diserada now, arent i?
<Animawish>
I hear we've got a great ballet program
<user5555>
pontiki: Its ok, its undertandable.
<user5555>
pontiki: basically learn to program, don't worry about the language.
iliketur_ has joined #ruby
<user5555>
pontiki: I guess I will just build shit and move on from there.
parduse has quit [Killed (hobana.freenode.net (Nickname regained by services))]
<user5555>
pontiki: I guess asking questions like this is stupid.
<pontiki>
user5555: here's what i see. you've made an initial investment in learning ruby. it's worth your time honing your expertise in that language, and understanding how to solve problems in it
<pontiki>
and eventually, pick up python.
<pontiki>
and perl
<pontiki>
and lispo
<pontiki>
s/o$//
<user5555>
pontiki: One last question, are there any sites that go over things to build. Like goals and you find way to build it with ruby?
<lewellyn>
and C and...
<user5555>
pontiki: Puzzles I guess.
parduse has joined #ruby
<pontiki>
ruby koans still about, folks?
<pontiki>
project euler
<ddd>
yedp
<ddd>
s/d//
<pontiki>
pick up an old textbook on data structure and algorithms, and implement them in ruby
<pontiki>
lipschutz's book is still around someplaces
<user5555>
IC, so go with ruby koans and then go project euler.
<user5555>
Then maybe build some stuff too.
<pontiki>
don knuth's books are epic
timonv has joined #ruby
<user5555>
THen move onto ruby on rails and build stuff.
<pontiki>
it's a start, hey
<pontiki>
be curious
<pontiki>
make something every day
<pontiki>
read a lot
vlad_starkov has joined #ruby
hogeo has quit [Remote host closed the connection]
<pontiki>
i need to stop now because all i'm doing it pontificating and offering platitudes
<user5555>
I wish I could, but I'm limited on time.
<ddd>
invest time and effort. get skills in return
<user5555>
I work a full time job now. I want to move into programming though.
<user5555>
But, I make time after work.
<user5555>
I have PTO this week, that is why I can chat.
<pontiki>
you'll either do it, or you won't
browndawg has joined #ruby
<pontiki>
i'll never be a good painter because i only have time for it 2 hours a week in class
julweber has quit [Ping timeout: 252 seconds]
<user5555>
pontiki: I think that if that is all the time that person has, its better than doing nothing.
<pontiki>
bingo
<user5555>
pontiki: The painter that is.
<pontiki>
me,
binaryplease has quit [Ping timeout: 272 seconds]
<pontiki>
i'm the painter
<ddd>
either its a passion or its not. invest your time in passions. not passing personal fads
vlad_starkov has quit [Read error: Connection reset by peer]
<pontiki>
good words
<user5555>
pontiki: Fair enough, I'm going to go code now unless you have any last thoughts or advice.
<pontiki>
nope
<pontiki>
oh maybe
<pontiki>
don't trust anything you hear on irc
<pontiki>
do your own research
timonv has quit [Ping timeout: 260 seconds]
<pontiki>
there i'm done
<ddd>
computers for me are a passion. all things computers. its the one thing that I *always* return to of all the different things I try or have tried in my life.
<user5555>
pontiki: This is doing research in a way :). Anyhow, see you and thanks for the chat.
<ddd>
thats a passion. i invest my time and effort in that. I do diesel mechanic studies because its what's needed where i live. I invest every other waking moment to computers in some form or another
amacgregor has quit [Ping timeout: 246 seconds]
ringaroses has quit [Ping timeout: 252 seconds]
<ddd>
thats how you know what your 'calling' is. invest in that
michael_lee has quit [Quit: Ex-Chat]
<user5555>
IC.
<user5555>
Ok, well, going to do that now.
<user5555>
Going to go program.
<user5555>
See you all.
<ddd>
later
<user5555>
Thanks again.
Kricir has quit [Remote host closed the connection]
user5555 has quit [Quit: Page closed]
danshult_ has joined #ruby
LexicalScope has quit [Ping timeout: 265 seconds]
<pontiki>
best of
Mars__ has joined #ruby
s2013 has joined #ruby
amacgregor has joined #ruby
danshultz has quit [Ping timeout: 245 seconds]
Astralum has quit [Read error: Connection reset by peer]
Astralum has joined #ruby
echevemaster has joined #ruby
araujo has joined #ruby
danshult_ has quit [Ping timeout: 248 seconds]
Astralum has quit [Read error: Connection reset by peer]
Astralum has joined #ruby
i8igmac has joined #ruby
Mars___ has joined #ruby
Mars__ has quit [Read error: Connection reset by peer]
nixie has joined #ruby
petey has joined #ruby
sheap has joined #ruby
sergicles has joined #ruby
sayan has joined #ruby
brunops has quit [Ping timeout: 240 seconds]
Astralum has quit [Read error: Connection reset by peer]
fedesilv_ has joined #ruby
IceDragon has quit [Quit: Space~~~]
Astralum has joined #ruby
s2013 has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 265 seconds]
mando has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nowthatsamatt has joined #ruby
Barrin6 has joined #ruby
fedesilva has quit [Ping timeout: 264 seconds]
Arzaga has joined #ruby
braincrash has quit [Quit: bye bye]
dhruvasagar has quit [Ping timeout: 264 seconds]
braincrash has joined #ruby
Kabaka has joined #ruby
nari has joined #ruby
eka has joined #ruby
Atrophius has quit [Ping timeout: 260 seconds]
io_syl has quit []
g0bl1n has quit [Ping timeout: 272 seconds]
amoli has quit [Ping timeout: 264 seconds]
sayan has joined #ruby
eka has quit [Ping timeout: 246 seconds]
s2013 has joined #ruby
kenichi has quit [Read error: Connection reset by peer]
andrew______ has joined #ruby
vpretzel has quit [Remote host closed the connection]
andrew______ is now known as andrewt
vpretzel has joined #ruby
vpretzel has quit [Read error: Connection reset by peer]
yacks has quit [Ping timeout: 252 seconds]
amacgregor has quit [Ping timeout: 246 seconds]
Monie has joined #ruby
jlast has quit [Remote host closed the connection]
citrin has quit [Remote host closed the connection]
vpretzel has joined #ruby
mephux has quit [Ping timeout: 240 seconds]
yacks has joined #ruby
wmoxam has joined #ruby
pothibo has joined #ruby
mephux has joined #ruby
fleegle has joined #ruby
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
Mars___ has quit [Remote host closed the connection]
tylersmith has joined #ruby
<i8igmac>
can some one help me with a little socket error handle
<i8igmac>
s=TCPServer.new('localhost',80); rescue, 'port already in use'
sayan has quit [Ping timeout: 252 seconds]
<andrewt>
ahuman has quit [Quit: No Ping reply in 180 seconds.]
ahuman has joined #ruby
brunops has joined #ruby
tharindu_ has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jkhwan has quit [Ping timeout: 272 seconds]
soba has joined #ruby
falood has quit [Remote host closed the connection]
otherj has quit []
<i8igmac>
how can i report the error of s=TCPServer.new('localhost',80); rescue
<i8igmac>
if its permission denied
mando has quit [Remote host closed the connection]
mando has joined #ruby
Aloysius1 has quit [Remote host closed the connection]
Kricir has joined #ruby
Aloysius1 has joined #ruby
Lewis has joined #ruby
poutine has quit [Ping timeout: 248 seconds]
<bnagy>
look at the exception?
Animawish has quit [Quit: Animawish]
<bnagy>
or use multiple rescue statements
poutine has joined #ruby
mando has quit [Ping timeout: 246 seconds]
nixie has quit [Ping timeout: 245 seconds]
iliketur_ has quit [Ping timeout: 264 seconds]
nonamehero has quit [Quit: RIP]
vlad_starkov has joined #ruby
jamesaanderson has joined #ruby
LexicalScope has joined #ruby
sayan has joined #ruby
ifmatch has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
pragmatism has joined #ruby
LadyRainicorn has joined #ruby
katterstrophe has joined #ruby
krainboltgreene has joined #ruby
vlad_starkov has joined #ruby
OdNairy has joined #ruby
OdNairy has quit [Client Quit]
rezzack has joined #ruby
katterstrophe has quit [Ping timeout: 240 seconds]
LexicalScope has quit [Read error: Connection reset by peer]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
monzie has joined #ruby
funburn has joined #ruby
baroquebobcat has joined #ruby
jerius has joined #ruby
liamkeily has joined #ruby
browndawg has quit [Quit: Leaving.]
danshultz has joined #ruby
sayan has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
zz_tsykoduk is now known as tsykoduk
aryaching has quit [Ping timeout: 265 seconds]
danshultz has quit [Ping timeout: 252 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lewix has quit [Remote host closed the connection]
Animawish has joined #ruby
jerius has quit []
ifmatch has quit [Ping timeout: 252 seconds]
aspires has quit []
Mars__ has joined #ruby
aspires has joined #ruby
achru has joined #ruby
monzie has quit [Quit: Leaving]
Spami has joined #ruby
iliketur_ has joined #ruby
Guest72999 has joined #ruby
<Guest72999>
d
funburn has quit [Read error: Connection reset by peer]
Guest72999 is now known as MrLinuxSwigger
<MrLinuxSwigger>
:)
vlad_starkov has quit [Remote host closed the connection]
hogeo has joined #ruby
iliketur_ has quit [Max SendQ exceeded]
phansch has joined #ruby
<MrLinuxSwigger>
i guess being a Software Designer is being in the same vein as a engineer
vlad_starkov has joined #ruby
aryaching has joined #ruby
jgrevich has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<Demerzel>
trying to get that nickname? method to be private but not having any luck
<LadyRainicorn>
class << obj
<LadyRainicorn>
private methname
<LadyRainicorn>
end
CaptainJet has quit []
Monie has joined #ruby
julweber has joined #ruby
<Demerzel>
LadyRainicorn: that worked! What does that do exactly?
<LadyRainicorn>
It opens obj's singleton class and declares methname private.
<Demerzel>
not sure about the class << object_instance do ... end syntax
<LadyRainicorn>
There's no do.
<Demerzel>
oh right
<Demerzel>
will that affect any future instances created from the class?
<Demerzel>
e.g. from my pastebin, if nickname? wasn't private and I used that syntax, would it make all future Person's have a private nickname? or only the instance I just changed?
<Demerzel>
time to experiment!
BizarreCake has quit [Read error: Connection reset by peer]
funburn has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<Demerzel>
holy crap
vlad_starkov has joined #ruby
<Demerzel>
it just affects the instance
<Demerzel>
good to know :-)
Xeago has joined #ruby
<LadyRainicorn>
Yeah, that's what you want right?
<Demerzel>
thanks LadyRainicorn
julweber has quit [Ping timeout: 265 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
<Demerzel>
yup
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<LadyRainicorn>
ok np
<pontiki>
nini
tsykoduk is now known as zz_tsykoduk
rjhunter has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
marcgg has joined #ruby
rjhunter has quit [Ping timeout: 240 seconds]
Lewis has joined #ruby
Xeago has quit [Remote host closed the connection]
timonv has joined #ruby
<GreatSUN>
re
user258467 has joined #ruby
vikhyat_ has joined #ruby
vikhyat has quit [Ping timeout: 245 seconds]
marcgg_ has quit [Ping timeout: 260 seconds]
gdakram has quit [Quit: gdakram]
stkowski has quit [Quit: stkowski]
h_kon has joined #ruby
Mon_Ouie has joined #ruby
gdakram has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
phansch_ has joined #ruby
lsmola has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
Lewis has quit [Ping timeout: 272 seconds]
Speed has joined #ruby
hogeo has joined #ruby
pwestlund_away is now known as pwestlund
braoru has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
ahawkins has quit [Read error: Connection reset by peer]
h0rrorvacui has quit [Quit: Leaving]
phansch has quit [Ping timeout: 240 seconds]
kevinykchan has joined #ruby
cina_ has quit [Remote host closed the connection]
apeiros has joined #ruby
funburn has quit [Quit: funburn]
Elhu has joined #ruby
brunops has quit [Quit: leaving]
gdakram has quit [Quit: gdakram]
Hobogrammer has joined #ruby
jeffdb has quit [Quit: jeffdb]
Bosox20051 has joined #ruby
hogeo has quit [Remote host closed the connection]
Bosox20051 has quit [Remote host closed the connection]
krainboltgreene has quit [Ping timeout: 265 seconds]
cina has joined #ruby
Kricir has joined #ruby
timonv has joined #ruby
Bosox20051 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
threesome has joined #ruby
vpretzel has joined #ruby
jgrevich has quit [Quit: jgrevich]
hogeo has joined #ruby
vpretzel has quit [Ping timeout: 264 seconds]
fixl has joined #ruby
dagobah has joined #ruby
Jetchisel has joined #ruby
kalleth_ has quit [Read error: Connection reset by peer]
xfce-x64 has joined #ruby
sputnik13 has joined #ruby
Kricir has quit [Remote host closed the connection]
zipper has quit [Ping timeout: 240 seconds]
<xfce-x64>
Can some1 please make program for me to add two input from user .. I want to try on my own webserver ..
hogeo has quit [Remote host closed the connection]
rdark has joined #ruby
charliesome has joined #ruby
<sevenseacat>
make it yourself?
<sevenseacat>
a program that adds two inputs is kinda trivial
<LadyRainicorn>
??+p
<LadyRainicorn>
@xfce-x64
Salsa has joined #ruby
xk_id has joined #ruby
shime has joined #ruby
jprovazn has joined #ruby
tyfighter has joined #ruby
<xfce-x64>
sevenseacat, Please do it
tagrudev has joined #ruby
<xfce-x64>
I want to test
<LadyRainicorn>
xfce-x64: ??+p
<sevenseacat>
lol
<bnagy>
guess it's homework season again
<LadyRainicorn>
Your question has been answered.
timonv has quit [Remote host closed the connection]
kalleth has joined #ruby
Salsa has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
zipper has joined #ruby
phil_b has joined #ruby
camilasan has joined #ruby
<apeiros>
xfce-x64: this channel is to help, not to do your work. if you want work done for you, pay someone.
<bnagy>
what's ??+p, anyway?
timonv has joined #ruby
phil_b has quit [Ping timeout: 264 seconds]
jbpros has joined #ruby
zz_tsykoduk is now known as tsykoduk
<LadyRainicorn>
It's a dc program that takes two user inputs, adds them, and outputs the result.
nbrosnahan has joined #ruby
<bnagy>
ahhh dc. Wow. Haven't used that in.. nevermind
andikr has joined #ruby
<lewellyn>
let's not start the bc vs dc holy war ;)
Es0teric has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
phansch_ has quit [Remote host closed the connection]
shime has quit [Ping timeout: 272 seconds]
bigkevmcd has joined #ruby
<LadyRainicorn>
RPN is the one true notation!
Es0teric has quit [Client Quit]
<LadyRainicorn>
I actually still use dc for command line math stuff
jhaals has joined #ruby
<LadyRainicorn>
It works fairly well.
tyfighter has quit [Quit: tyfighter]
Elhu has quit [Quit: Computer has gone to sleep.]
intuxicated has joined #ruby
aganov has joined #ruby
Rix has quit [Ping timeout: 264 seconds]
yacks has quit [Quit: Leaving]
tylersmith has joined #ruby
wallerdev has quit [Quit: wallerdev]
Arzaga has quit [Quit: Computer has gone to sleep.]
ahawkins has joined #ruby
browndawg has quit [Quit: Leaving.]
tylersmith has quit [Ping timeout: 260 seconds]
rjhunter has joined #ruby
funburn has joined #ruby
Rix has joined #ruby
nemesit|znc has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
coderhs has joined #ruby
rjhunter has quit [Ping timeout: 264 seconds]
aagdbl has quit [Quit: Leaving.]
fleegle has quit [Remote host closed the connection]
tsykoduk is now known as zz_tsykoduk
dhruvasagar has quit [Ping timeout: 272 seconds]
d45h has joined #ruby
kizzx2 has joined #ruby
dhruvasagar has joined #ruby
yugui is now known as yugui_zzz
cina has quit [Ping timeout: 272 seconds]
zipper has quit [Ping timeout: 272 seconds]
cina has joined #ruby
zipper has joined #ruby
julweber has joined #ruby
sayan has quit [Ping timeout: 272 seconds]
larssmit has joined #ruby
browndawg has joined #ruby
sayan has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
coderhs has quit [Quit: Leaving]
mrnugget has joined #ruby
michael_lee has joined #ruby
gtsiftsis has joined #ruby
michael_lee has quit [Max SendQ exceeded]
alup has joined #ruby
michael_lee has joined #ruby
ahawkins has quit [Remote host closed the connection]
zz_CripperZ is now known as CripperZ
hogeo has quit [Remote host closed the connection]
CripperZ is now known as N00D
timonv has quit [Remote host closed the connection]
hogeo has joined #ruby
mengu has quit [Remote host closed the connection]
amacgregor_ has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
relix has joined #ruby
vpretzel has joined #ruby
amacgregor_ has quit [Read error: No route to host]
amacgregor_ has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
Garo__ has joined #ruby
liamkeily has quit [Ping timeout: 252 seconds]
noyb has joined #ruby
michael_lee has quit [Max SendQ exceeded]
gasbakid has joined #ruby
<Garo__>
Hello. I have a library which contains functions inside a module (Opscode::Aws::Ec2). In other block, I can list the functions with Opscode::Aws::Ec2.instance_methods(false) which prints [:ec2] (ec2 is the function). How ever if I try to execute the ec2 function I get this error: "undefined method `ec2' for Opscode::Aws::Ec2:Module". Any ideas what I'm doing wrong?
claymore has joined #ruby
michael_lee has joined #ruby
vpretzel has quit [Ping timeout: 252 seconds]
ahawkins has joined #ruby
blaxter_ has joined #ruby
aagdbl has joined #ruby
hogeo has quit [Remote host closed the connection]
cina has quit [Quit: leaving]
gyre007 has joined #ruby
olivier_bK has joined #ruby
Elhu has joined #ruby
<LadyRainicorn>
You can't execute the methods of a module without including it in a class or object.
<LadyRainicorn>
Well you're ignoring failure to load a dependency, which is bad.
<LadyRainicorn>
And you should do that at the top.
michael_lee has quit [Max SendQ exceeded]
<LadyRainicorn>
And you probably want a class.
<Garo__>
LadyRainicorn: care to elaborate?
<LadyRainicorn>
It is not good for modules to have state.
<LadyRainicorn>
Look at your ec2 function.
<LadyRainicorn>
rescue logs an error and continues.
<LadyRainicorn>
This is bad.
michael_lee has joined #ruby
zz_tsykoduk is now known as tsykoduk
<Garo__>
yeah, I know that it has a state. It's not my module and not my function. The aws cookbook is a commonly used cookbook in the Chef community and in my case I can't do any changes to that, but I just have to use it as-is.
sherwyn has quit [Remote host closed the connection]
<Garo__>
well I suppose that I could fork that module into my project and fix these problens if I don't find any other choises
<LadyRainicorn>
The specific problem here is that new_resource is not defined.
<LadyRainicorn>
I get the feeling you are using this in a way it qasn't intended to be.
<LadyRainicorn>
This looks like a module meant for inclusion in a specific class.
cbetta_afk is now known as cbetta
<Garo__>
yeah, that might very well be the case and that my poor Chef knowledge is shooting me in my foot :(
<LadyRainicorn>
First, the code is shit.
cbetta is now known as cbetta_afk
<LadyRainicorn>
Second, you need to instantiate whatever thing this is meant for and use that.
<LadyRainicorn>
This module just doesn't contain the required code anywhere.
phansch has joined #ruby
vikhyat_ has quit [Remote host closed the connection]
<Garo__>
LadyRainicorn: ok, thanks. Seems that I have to revisit my plan and learn how this module was supposed to be used in the first place and then think if I should reimplement it so that it would be better code in terms of error handling etc
Kricir has joined #ruby
amacgregor_ has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
subbyyy has joined #ruby
<Garo__>
LadyRainicorn: your input was greatly appreciated :)
jhaals has joined #ruby
<LadyRainicorn>
np
shime has joined #ruby
subbyyy_ has quit [Ping timeout: 240 seconds]
jhaals_ has joined #ruby
tsykoduk is now known as zz_tsykoduk
troessner has joined #ruby
blackmes1 has joined #ruby
roolo has joined #ruby
aryaching has quit [Ping timeout: 265 seconds]
jhaals has quit [Ping timeout: 264 seconds]
michael_lee has quit [Max SendQ exceeded]
michael_lee has joined #ruby
marr has joined #ruby
xfce-x64 has left #ruby ["Leaving"]
Lewix has joined #ruby
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
rjhunter has joined #ruby
Lewix has quit [Remote host closed the connection]
charliesome has joined #ruby
obs has joined #ruby
Lewix has joined #ruby
ghr has joined #ruby
rezzack has quit [Quit: Leaving.]
obs has quit [Client Quit]
obs has joined #ruby
drumusician has joined #ruby
rjhunter has quit [Ping timeout: 264 seconds]
vpretzel has joined #ruby
sevenseacat has quit [Remote host closed the connection]
timonv has joined #ruby
michael_lee has quit [Max SendQ exceeded]
matchaw_ has quit [Remote host closed the connection]
Azure has quit [Quit: My MBP went to sleep.]
vifo has joined #ruby
michael_lee has joined #ruby
matchaw has joined #ruby
<vifo>
Hey guys. I am quite new to ruby and struggling a bit with "nil"ness and "empty"ness.
yfeldblum has joined #ruby
<tobiasvl>
vifo: fire away
<vifo>
Say i have a variable a, possibly nil. Is there a better way to check for emptyness that "if (@a.nil? == false and @a)"?
dhruvasagar has quit [Read error: Connection reset by peer]
<shevy>
this is awful
<vifo>
I mean @a.
<shevy>
what is "emptyness" btw?
enape_101 has joined #ruby
vpretzel has quit [Ping timeout: 252 seconds]
<vifo>
emptyness here: variable a == "", so a is a string or undef
<vifo>
nil i mean.
<shevy>
ok, so with emptyness you mean an object taht is either nil, or a string object without size
avril14th has joined #ruby
<vifo>
yes, for this particular case
liamkeily has joined #ruby
nvrch has joined #ruby
<shevy>
puts 'Exists. ' unless @a.nil? or @a.empty?
<vifo>
Okay, but still two comparisons are needed?
yfeldblum has quit [Ping timeout: 240 seconds]
<shevy>
well you want to check on two different conditions
<shevy>
first you need to check nil vs. non-nil
<shevy>
seconds you want to check if the string object has size 0 or not
<vifo>
Exactly.
<shevy>
I think rails has some addition
<avril14th>
you have Rails::blank for strings, but nothing like nil or empty for arrays
<shevy>
yeah
<avril14th>
blank is nil or ""
<vifo>
I understand that nil cannot provide .empty?, thought there would be some magic though
<tobiasvl>
vifo: not sure what languages you know, but in ruby empty strings are not falsy, so you do need two checks
<shevy>
vifo yeah, rails magic :D
<avril14th>
you do do try vifo
<avril14th>
if array.try(:empty?)
enape_101 has quit [Ping timeout: 264 seconds]
<avril14th>
this is a two in one
<shevy>
what is #try ?
<vifo>
tobiasvl: Perl, for >10 years now. So ruby seems both familiar and completely different to me :)
<shevy>
it attempts to take over the world, I think
<RubyRonin>
using rails, attempting to pull each payment out of the payment table
popl has joined #ruby
popl has joined #ruby
<shevy>
RubyRonin when you have code like this, something seems to not make sense. why would you want to iterate when you then call other methods anyway
<shevy>
@customer.payment.each do |payment|
<shevy>
@customer.payment.all
<shevy>
besides
<shevy>
where do you use |payment| ?
<LadyRainicorn>
I am pretty sure that's not taking over the world.
<shevy>
hehe
<RubyRonin>
I don't, I tired and it didn't work
<RubyRonin>
tried
Mon_Ouie has quit [Ping timeout: 272 seconds]
<shevy>
RubyRonin tried where or how?
zipper has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Remote host closed the connection]
xk_id has quit [Quit:
<shevy>
RubyRonin there is no Object#all btw and if it is rails specific it would have to go into #rubyonrails - if I were you, I would write a method that will do the <tr><td> generation inside of it, and you should then only feed it the array you want to display
hogeo has quit [Remote host closed the connection]
popl has quit [Ping timeout: 240 seconds]
tziOm has joined #ruby
<lewiz>
I'm looking at some Ruby code that is trying to read from a file: cache_path + user_path. e.g. this might be /myapp/cache/usr/scripts/scriptname. On UNIX this works okay but for Windows we fail as: C:\myapp\cache\c:\usr\scripts\scriptname is invalid due to the c: in the second path. Is there a function I can use that will sanely sanitise the name?
hogeo has joined #ruby
gwb3 has quit [Quit: leaving]
liamkeily has joined #ruby
Hanmac1 has quit [Ping timeout: 246 seconds]
gwb3 has joined #ruby
Hanmac has joined #ruby
<oddalot>
maybe regex?
Astralum has quit [Ping timeout: 265 seconds]
blaxter_ is now known as blaxter
gwb3 has quit [Client Quit]
hogeo has quit [Remote host closed the connection]
camilasan has joined #ruby
gwb3 has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
liamkeily has quit [Ping timeout: 260 seconds]
<lupine>
File.join generally
<lupine>
lewiz, although it might not work for this specific case without making user_path relative
Jdubs has joined #ruby
<Jdubs>
Hello! o/
preller has quit [Ping timeout: 264 seconds]
<Jdubs>
Anyone awake enough to help me out? :)
zipper has joined #ruby
Hanmac1 has joined #ruby
Kricir has quit [Remote host closed the connection]
<canton7-mac>
Ask, and there's a chance you'll receive :P
<lewiz>
lupine: I see. Do you know of a good way to make user_path relative? I know I can just detect "n:\" and strip it by hand but it seems there might be a "correct" way?
<Jdubs>
Sweet!
dhruvasagar has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
<Jdubs>
Okay: I'm deleting an object from a group of objects that are used to make a table. I've checked the store to make sure it gets deleted, and it does. However, the list doesn't update :( Any idea?
dhruvasagar has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
<canton7-mac>
context? database?
<Jdubs>
I'm using deleteRecord if that's what you mean?
marr has quit [Ping timeout: 264 seconds]
<canton7-mac>
deleteRecord on *what*. What is it that you're calling deleteRecord on?
<Jdubs>
an item in a collection of models
hogeo has joined #ruby
rjhunter has joined #ruby
<canton7-mac>
who defined the method 'deleteRecord'?
<Jdubs>
they are used in an {{#each }} to make a table
<canton7-mac>
what library are you using?
<Jdubs>
ember data
<Jdubs>
aww crap
<Jdubs>
LOL
<Jdubs>
im in the wrong room
<Jdubs>
sigh
<Jdubs>
Sorry it's late :(
<canton7-mac>
heh, no worries
<Jdubs>
wow its 4am
<Jdubs>
why am i working :/
<Jdubs>
still at the office too lol
gwb3 has quit [Quit: leaving]
gasbakid has quit [Ping timeout: 272 seconds]
xk_id has quit [Quit:
aryaching has quit []
<Jdubs>
canton7-mac: so what are you doing up so late :P
gwb3 has joined #ruby
Kricir has quit [Ping timeout: 264 seconds]
julweber has joined #ruby
sergicles has joined #ruby
<Rydekull>
late? it has just been lunch
JohnBat26 has joined #ruby
<Jdubs>
where are you?
<Jdubs>
its 4am here
<Jdubs>
lol
gasbakid has joined #ruby
<canton7-mac>
Jdubs, lunch is just coming up
<canton7-mac>
GMT here
julweber has quit [Read error: Connection reset by peer]
mklappstuhl has quit [Remote host closed the connection]
julweber has joined #ruby
phil_b has joined #ruby
Astralum has joined #ruby
<Jdubs>
you in the uk?
<canton7-mac>
yeah
<Jdubs>
cool
<Jdubs>
I'm getting married there this month!
<canton7-mac>
ooh very nice! whereabouts?
cina has quit [Ping timeout: 264 seconds]
gasbakid_ has joined #ruby
<Jdubs>
Clearwater castle in glouchestershire (however you spell it)
indigo has quit [Quit: Leaving]
mephux has quit [Ping timeout: 246 seconds]
gasbakid has quit [Ping timeout: 265 seconds]
<canton7-mac>
cool, looks like a nice place
<workmad3>
Jdubs: gloucestershire
<workmad3>
Jdubs: pronounced 'glos-ter-shire'
mephux has joined #ruby
<Jdubs>
My family lives in swansea area
<workmad3>
Jdubs: and not (as I have heard once) 'glue-chester-shire' :)
hogeo has quit [Remote host closed the connection]
* workmad3
grew up in gloucestershire
Yan__ has quit [Ping timeout: 272 seconds]
<Jdubs>
workmad3 I haven't seen the castle in person, have you ever seen it?
<workmad3>
nope
mengu has quit [Remote host closed the connection]
<Jdubs>
I got really bad news about the wedding the other day
<workmad3>
I didn't realise there was a castle nearby :)
<Jdubs>
apparently i have to give a speech :(
<Jdubs>
i don't do speeches...
<workmad3>
me neither
nhhagen has quit [Remote host closed the connection]
<workmad3>
I managed to avoid speeches at my wedding (apart from a very brief one from my best man)
mengu has joined #ruby
postmodern has quit [Quit: Leaving]
Hanmac1 has quit [Ping timeout: 265 seconds]
gasbakid_ has quit [Read error: Connection reset by peer]
Weazy has quit [Ping timeout: 272 seconds]
Czupa has joined #ruby
browndawg has quit [Quit: Leaving.]
Hanmac has joined #ruby
<Jdubs>
man, im just afraid im going to freak out or break down or something
<Jdubs>
only speech i ever gave in college was to about 10 people, and i was shaking
<Jdubs>
and my voice was quivering
<Jdubs>
this is going to be like 50+ people
Yan__ has joined #ruby
<workmad3>
just thank everyone for coming, say that you hope they're enjoying themselves and pass on to the best man
Elhu has quit [Quit: Computer has gone to sleep.]
<workmad3>
and remember that it's your wedding, not theirs ;)
<Jdubs>
That's only slightly true lol
<Jdubs>
The wedding is more for everyone else than it is for us
<Jdubs>
we already got married, this is for the families
<pontiki>
workmad3++
<pontiki>
that is cool, Jdubs
<Jdubs>
Yeah, it will be nice though
<Jdubs>
We are going on honeymoon in the maldives
<Jdubs>
Anyone ever been there?
<Jdubs>
I hope it's nice
<shevy>
no mosquitoes?
Weazy has joined #ruby
<pontiki>
omg, it's so lovely
ewnd9 has quit [Ping timeout: 264 seconds]
vpretzel has joined #ruby
Yan__ has quit [Ping timeout: 272 seconds]
<pontiki>
i've not been, yet, but it's one of my hoped-for destinations
aryaching has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
vlad_starkov has joined #ruby
falood has quit [Remote host closed the connection]
emocakes has joined #ruby
emocakes has quit [Client Quit]
<pontiki>
do you like to dive, Jdubs ?
<Jdubs>
used to be a certified scuba diver many years ago
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lunarjar has quit [Ping timeout: 240 seconds]
<pontiki>
cool
<pontiki>
the water is supposed to super clear, like the carribean
vpretzel has quit [Ping timeout: 245 seconds]
<pontiki>
and warm :)))))
liamkeily has joined #ruby
lunarjar has joined #ruby
<Jdubs>
sweet!
<Jdubs>
i think we are going to go snorkling when we aren't busy ;)
Bira has joined #ruby
flagg0204 has quit [Ping timeout: 240 seconds]
himsin has quit [Quit: himsin]
yfeldblum has joined #ruby
amoli has joined #ruby
dhruvasagar has quit [Ping timeout: 265 seconds]
agent_white has quit [Quit: Lost terminal]
nhhagen has joined #ruby
lunarjar has quit [Ping timeout: 240 seconds]
nhhagen has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
<pontiki>
well, best of, congrats, and all that
<pontiki>
and really, workmad3 is so right about the speech
kitak has quit [Remote host closed the connection]
<pontiki>
keep it very simple, short, people will love you for it
jbpros has quit [Ping timeout: 252 seconds]
<workmad3>
yeah, leave the long speech with inappropriate jokes up to the best man
robbyoconnor has quit [Ping timeout: 264 seconds]
<Jdubs>
Thanks guys :)
mklappstuhl has joined #ruby
<Jdubs>
i miss working with ruby
<Jdubs>
they moved me from backend to frontend :(
<workmad3>
Jdubs: boo :(
<workmad3>
Jdubs: compile a ruby interpreter with emscriptem and write your code using ruby? :)
<Jdubs>
lol
<Jdubs>
:P
<workmad3>
Jdubs: how about coffeescript? :)
<Jdubs>
yeah im using cs
lsmola has quit [Ping timeout: 252 seconds]
flagg0204 has joined #ruby
<Jdubs>
Ember is a harsh mistress ill say that
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
mklappstuhl has quit [Ping timeout: 272 seconds]
Xaitec_ has joined #ruby
Beoran__ has quit [Ping timeout: 246 seconds]
jamesaanderson has joined #ruby
jkamenik has joined #ruby
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
shime has quit [Ping timeout: 265 seconds]
jbpros has joined #ruby
yokel has quit [Ping timeout: 260 seconds]
sayan has quit [Ping timeout: 264 seconds]
ringaroses has joined #ruby
vlad_starkov has joined #ruby
danshultz has joined #ruby
browndawg has joined #ruby
darkf has quit [Quit: Leaving]
amoli has quit [Ping timeout: 264 seconds]
zmansiv has quit [Ping timeout: 252 seconds]
x0nic has quit [Ping timeout: 252 seconds]
sailias has joined #ruby
GoodTimes has joined #ruby
zmansiv has joined #ruby
x0nic has joined #ruby
Elhu has joined #ruby
Aloysius1 has quit [Quit: No Ping reply in 180 seconds.]
Aloysius1 has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
lsmola has joined #ruby
nari has quit [Ping timeout: 246 seconds]
Beoran__ has joined #ruby
yokel has joined #ruby
mboyd has joined #ruby
camilasan has quit [Remote host closed the connection]
jbpros has quit [Read error: Connection reset by peer]
matheuscaceres has quit [Quit: matheuscaceres]
Xaitec_ has quit [Remote host closed the connection]
ringaroses has quit [Read error: Connection timed out]
Yan__ has joined #ruby
zipper has quit [Ping timeout: 272 seconds]
yokel has quit [Ping timeout: 264 seconds]
camilasan has joined #ruby
spychalski has joined #ruby
yokel has joined #ruby
freerobby has quit [Quit: Leaving.]
d45h has quit []
cbetta is now known as cbetta_afk
ewnd9 has joined #ruby
sailias has quit [Ping timeout: 272 seconds]
mrfoto has joined #ruby
xcv has quit [Remote host closed the connection]
xcv has joined #ruby
browndawg has left #ruby [#ruby]
zipper has joined #ruby
yokel has quit [Ping timeout: 264 seconds]
Mapley has quit [K-Lined]
<vlad_starkov>
Question: anyone know how to properly set ruby environment variables to run .rb scripts from Automator app in OSX Mavericks?
yokel has joined #ruby
browndawg has joined #ruby
Mapley has joined #ruby
xcv has quit [Ping timeout: 272 seconds]
maycon has joined #ruby
marr has joined #ruby
ckinni has joined #ruby
yokel has quit [Ping timeout: 264 seconds]
yokel has joined #ruby
zipper has quit [Quit: leaving]
Jetchisel has quit [Ping timeout: 260 seconds]
zipper has joined #ruby
pipework has quit [Ping timeout: 265 seconds]
yalue has joined #ruby
mklappstuhl has joined #ruby
browndawg has quit [Read error: Connection reset by peer]
timmillwood has quit [Read error: Operation timed out]
browndawg has joined #ruby
drumusician has quit [Ping timeout: 264 seconds]
patant has joined #ruby
nari has joined #ruby
wmoxam has quit [Ping timeout: 264 seconds]
yokel has quit [Ping timeout: 272 seconds]
rjhunter has quit [Remote host closed the connection]
vpretzel has joined #ruby
matheuscaceres has joined #ruby
kraljev has joined #ruby
<kraljev>
hello, File#each_line
defendguin has quit [Quit: Leaving.]
<kraljev>
only gives one line per iteration
<kraljev>
how can i get, let's say 100?
<kraljev>
it has to be lazy, of course.
yokel has joined #ruby
lucazi has joined #ruby
flops has joined #ruby
nhhagen has joined #ruby
vpretzel has quit [Ping timeout: 240 seconds]
<kraljev>
anyone?
sayan has joined #ruby
<olivier_bK>
give me one minute
lucazi has quit [Ping timeout: 252 seconds]
yokel has quit [Ping timeout: 252 seconds]
cpruitt has joined #ruby
Yan__ has quit [Read error: Operation timed out]
yfeldblum has joined #ruby
browndawg has quit [Read error: Connection reset by peer]
<cbetta>
How do I make a function like belongs_to for my class that gets inherited? Aka I want something like: class B < A; do_something :foo; end
<cbetta>
What would A look like?
s_e has quit [Excess Flood]
zipper has joined #ruby
nbrosnahan has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yokel has quit [Ping timeout: 272 seconds]
yokel has joined #ruby
RaCx has joined #ruby
niop has joined #ruby
s_e has joined #ruby
mjs2600 has joined #ruby
<niop>
hi folks, the jruby channel is typically rather quiet. I have a simply but frustrating issue if commment might be made on it here. When I run this code:
<niop>
require "java"
<niop>
java_import "java.io.File"
<niop>
puts ::File.expand_path 'myfile.txt'
<niop>
an error is produced:
<niop>
NoMethodError: undefined method `expand_path' for Java::JavaIo::File:Class
breakingthings has joined #ruby
habanany has joined #ruby
<KevinSjoberg>
I would love some help with this. I have this {"E1"=>0.4875, "E2"=>0.4875, "E3"=>0.0075, "E4"=>0.0175} which defines a key with a defined probability of likelihood to be picked. I now want to get a random key according to the rules of probability.
Yan__ has quit [Ping timeout: 272 seconds]
drumusician has joined #ruby
maycon has quit [Quit: Saindo]
vlad_starkov has quit [Remote host closed the connection]
Yan__ has joined #ruby
<cbetta>
niop ruby version?
drumusician has quit [Remote host closed the connection]
<KevinSjoberg>
Could I maybe the the probabilities and make a new array of cumulative sums and then binary search that array for a random value between 0 and 1? Given that the probabilities sum up to 1?
yokel has quit [Ping timeout: 264 seconds]
<KevinSjoberg>
take*
DouweM has quit [Ping timeout: 246 seconds]
xuefl has joined #ruby
nebula__ has quit [Ping timeout: 264 seconds]
yokel has joined #ruby
almarshall has joined #ruby
drumusician has joined #ruby
GreatSUN has quit [Ping timeout: 250 seconds]
michael_lee has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mengu is now known as rmengu
almarshall has quit [Client Quit]
<niop>
cbetta: great, just sitting waiting and thinking about KevinSjoberg's issue. ruby version is the one that comes with jruby, which is 1.9
xuefl has quit [Ping timeout: 245 seconds]
almarshall has joined #ruby
<cbetta>
so jruby 1.9?
<niop>
jruby 1.7.5, with ruby 1.9.3
phansch has quit [Remote host closed the connection]
<niop>
possibly jruby came with that version of ruby, forgotten now.
plotter has joined #ruby
IceDragon has joined #ruby
<niop>
but it must have else it would be more recent version of ruby.
ravster has joined #ruby
<cout>
KevinSjoberg: total_weight = h.values.reduce(:+); r = rand(total_weight); t = 0; h.each { |value, prob| t += prob; return value if r < t }
yokel has quit [Ping timeout: 272 seconds]
<cout>
I needed exactly what you asked for a few months ago :)
Hanmac1 has joined #ruby
yokel has joined #ruby
osvico has quit [Ping timeout: 264 seconds]
sayan has quit [Ping timeout: 260 seconds]
<Hanmac1>
KevinSjoberg:
<Hanmac1>
>> data={"E1"=>0.4875, "E2"=>0.4875, "E3"=>0.0075, "E4"=>0.0175};i=0;p r= rand(); data.find {|k,v| r > v + i ? (i+=v;false) : true}
<cout>
yeah I guess mine expects whole number probabilities
<cout>
since that's what I needed when I wrote it
kevind has joined #ruby
<maasha>
Hi
Bira has quit [Remote host closed the connection]
sayan has joined #ruby
<KevinSjoberg>
Hanmac1, cout: Thanks, I'll look into that.
yokel has quit [Ping timeout: 272 seconds]
jerius has joined #ruby
yokel has joined #ruby
Xaitec has quit [Read error: Connection reset by peer]
sayan has quit [Excess Flood]
pedda has joined #ruby
mmitchell has joined #ruby
Xaitec has joined #ruby
sayan has joined #ruby
<niop>
cbetta: solved in jruby. JavaFile = java.io.File to prevent java import clobbering the ruby class of the same name.
mrfoto has quit []
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<niop>
*#jruby channel
<cbetta>
aha
<cbetta>
makes sense
zeeraw has joined #ruby
lkba has joined #ruby
yakko has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
zipper has quit [Ping timeout: 264 seconds]
yokel has quit [Ping timeout: 265 seconds]
kobain has joined #ruby
yokel has joined #ruby
dhruvasagar has joined #ruby
tesuji has joined #ruby
<mboyd>
ah nuts, I'm having trouble with proxying a call to instance_eval again. it seems that when instance_eval is called it actually has access to the scope it is being called from - and if you proxy the call to instance_eval it no longer has access to the scope it was originally called from
zipper has joined #ruby
tesuji has quit [Excess Flood]
brian___ has quit [Quit: brian___]
jwest has quit [Quit: WeeChat 0.4.1]
freerobby has joined #ruby
yfeldblum has joined #ruby
tesuji has joined #ruby
blaskovicz has joined #ruby
<banister>
mboyd not sure what u mean by that, you probably need to show some code :P
cpruitt has joined #ruby
Demerzel has quit [Remote host closed the connection]
phansch has joined #ruby
freerobby has quit [Client Quit]
fedesilva has quit [Remote host closed the connection]
taion809 is now known as zz_taion809
nbrosnahan has joined #ruby
ckinni has joined #ruby
krawchyk has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
<mboyd>
banister: yeah, good point
kcombs has joined #ruby
lucazi has quit [Ping timeout: 272 seconds]
rjhunter has joined #ruby
yokel has joined #ruby
kevind has quit [Quit: kevind]
lucazi has joined #ruby
nowthatsamatt has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
wmoxam has joined #ruby
rjhunter has quit [Ping timeout: 246 seconds]
mojjojo has joined #ruby
xcv has joined #ruby
sailias has joined #ruby
wmoxam has quit [Client Quit]
yokel has quit [Read error: Connection reset by peer]
v0n has joined #ruby
wmoxam has joined #ruby
yokel has joined #ruby
kevind has joined #ruby
h_kon has quit [Remote host closed the connection]
saltnvinegar has joined #ruby
ravster has quit [Quit: Leaving.]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hersha has joined #ruby
d45h has joined #ruby
<shevy>
mboyd is the magic of ruby confusing you? :>
<mboyd>
it is!
<mboyd>
:)
Macaveli has joined #ruby
* IceDragon
sprinkles some magic dust on shevy
<IceDragon>
morning
kevinykchan has joined #ruby
<shevy>
mboyd it's for me as well, ruby can become very complex
<shevy>
method_missing is the devil
ehc has joined #ruby
<IceDragon>
shevy: you mean any of the *_missing methods
<shevy>
I dont know any other
Kricir has joined #ruby
<IceDragon>
const_missing
<shevy>
hmm
Plazma has left #ruby [#ruby]
<shevy>
aha
<shevy>
a hook
ckinni has joined #ruby
<shevy>
I even wrote it down
<IceDragon>
:P
bean has joined #ruby
<shevy>
never saw it in use so far
asobrasil has joined #ruby
<IceDragon>
I've used it once
yokel has quit [Ping timeout: 245 seconds]
javon_ has joined #ruby
<IceDragon>
to cheat a module with constants: so it called the method with the same name
sayan has quit [Read error: No route to host]
blandflakes has joined #ruby
yokel has joined #ruby
ckinni has quit [Client Quit]
_maes_ has joined #ruby
ckinni has joined #ruby
_maes_ has quit [Client Quit]
sng|Zzz is now known as synergy_
pong42 has quit [Quit: Ex-Chat]
achru has quit [Remote host closed the connection]
phansch has quit [Remote host closed the connection]
ravster has joined #ruby
zipper has quit [Read error: Operation timed out]
blackmes1 has joined #ruby
baordog_ has joined #ruby
interactionjaxsn has joined #ruby
wallerdev has joined #ruby
liamkeily has quit [Ping timeout: 264 seconds]
phantummm has joined #ruby
phansch has joined #ruby
ambushsabre has joined #ruby
<maasha>
workmad3: hrmph. I still don't get it. I better take a break.
<workmad3>
maasha: that implementation doesn't actually call commands
<workmad3>
maasha: that wasn't something I bothered with
<workmad3>
maasha: the idea was that .call would execute a command, returning the result
lukec has joined #ruby
<workmad3>
maasha: and the PipelineChain .call method would chain them together
<IceDragon>
workmad3: can I adopt your code?
Yan__ has quit [Ping timeout: 246 seconds]
iamchrisf has joined #ruby
<workmad3>
IceDragon: sure, go for it :)
<IceDragon>
ヽ(^ヮ^)ノ♪
sailias has quit [Ping timeout: 245 seconds]
<maasha>
workmad3: Right. However, I guess my problem is that I would like to process each line/record one at a time and thus avoid reading in all data in memory.
LadyRainicorn has joined #ruby
zipper has joined #ruby
sailias has joined #ruby
noop has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
b00stfr3ak has quit [Ping timeout: 252 seconds]
<workmad3>
maasha: you'd need to alter that a bit, probably with some block yielding, but it's still doable ;)
synergy_ is now known as sng|afk
<workmad3>
maasha: remember, that was just a PoC for the basic pipeline, not a full implementation
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phantasm66 has joined #ruby
<maasha>
workmad3: yup, some clever Enumerator - but I have been stuck with this problem for a while now.
<workmad3>
shouldn't need clever enumerator stuff
<workmad3>
you just need to use the Popen3 stuff to get the streams you need
amritanshu_RnD has quit [Read error: Connection reset by peer]
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
<workmad3>
hell, with popen3 stuff, you could probably connect the input/output streams up directly, so you'd yield the output from command1 and pass it into command2 as the input, and so on down the chain until you get to your 'final' block, where you can just pull out the results :)
javon has quit [Ping timeout: 252 seconds]
olleromo has joined #ruby
d45h has quit []
hogeo has quit [Remote host closed the connection]
Bira has joined #ruby
<maasha>
workmad3: ah, the commands cat, cut, grep are just place holders for ruby methods I want to use. So no popen3
fedesilva has quit [Read error: Connection reset by peer]
<PPH>
warjar I know I'm trying to work this around too
Bira has quit [Ping timeout: 260 seconds]
mark_locklear has joined #ruby
claymore has joined #ruby
maasha has quit [Ping timeout: 250 seconds]
enebo has joined #ruby
gtsiftsis has quit [Ping timeout: 246 seconds]
<PPH>
I will try to refactor it in small methods, with short lines, maybe everything will clarify :)
tagrudev has quit [Remote host closed the connection]
<waxjar>
PPH, i don't actually know what the class's supposed to do, but usually when you need to know a lot about the the attributes/state of another object, something's wrong.
<waxjar>
i think they call it "tell, don't ask"
rmengu has quit [Remote host closed the connection]
idoru has quit [Read error: Connection reset by peer]
johnnyfuchs has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yan__ has quit [Read error: Operation timed out]
sambao21 has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
danshultz has joined #ruby
<PPH>
waxjar, yeah I feel some of these lines aren't in the good class
po10 has joined #ruby
Thanatermesis has joined #ruby
Thanatermesis has quit [Changing host]
Thanatermesis has joined #ruby
tommyvyo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lfox has joined #ruby
johnnyfuchs has left #ruby [#ruby]
niop has quit [Quit: Leaving]
ewnd9 has quit [Ping timeout: 264 seconds]
zipper has quit [Ping timeout: 260 seconds]
jprovazn has quit [Quit: Leaving]
Mon_Ouie has joined #ruby
habanany has quit [Ping timeout: 272 seconds]
tommyvyo has joined #ruby
zipper has joined #ruby
zeade has quit [Quit: Leaving.]
iamjarvo has joined #ruby
Yan__ has joined #ruby
<shevy>
PPH you should first analyze what you got here
kevind has quit [Quit: kevind]
<shevy>
your constructer accepts one argument
<shevy>
so this is the only bottleneck you really depend on
<shevy>
the rest of the code in initialize could reside in other methods too
<PPH>
shevy, ok
<shevy>
I usually bundle it into the run() method
<shevy>
or rather, the run() method calls the respective separate methods
<PPH>
shevy, I see
<shevy>
which are small, and do the work
d45h has joined #ruby
<PPH>
ok
jkamenik has quit [Quit: Leaving.]
tesuji has quit [Ping timeout: 240 seconds]
MrZYX|off is now known as MrZYX
Advocation has joined #ruby
Briareos1 has joined #ruby
d45h has quit []
elux has quit [Remote host closed the connection]
elux has joined #ruby
Macaveli has quit [Remote host closed the connection]
<olivier_bK>
i get an error with my ruby script for backup mysql
habanany has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
po10 has quit [Excess Flood]
drag00n has joined #ruby
po10 has joined #ruby
pwestlund is now known as pwestlund_away
patant has quit [Quit: patant]
s2013 has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 265 seconds]
banister has joined #ruby
adac has joined #ruby
<adac>
is it possible to check if a linux process is running from ruby via ruby code?
<hoelzro>
adac: sure
<hoelzro>
what's the use case?
nhhagen has quit [Remote host closed the connection]
pipework has joined #ruby
jlast has quit [Read error: Connection reset by peer]
alekst has joined #ruby
jlast has joined #ruby
zeeraw has joined #ruby
jlast_ has joined #ruby
peb7268 has joined #ruby
sng|afk is now known as synergy_
<peb7268>
Hi, im trying to use capybara for some tests but they only pass when my window is maximized. Has anyone else seen this issue? I googled it but maybe I didnt type the right query bc I didnt see much on it.
ahawkins has quit [Ping timeout: 272 seconds]
jlast has quit [Ping timeout: 245 seconds]
<adac>
hoelzro, just wanted to check if a linux process is running or not
<hoelzro>
adac: right, but why?
<hoelzro>
you can use /proc
<hoelzro>
but there might be better tools depending on the situation
<hoelzro>
or there might a better way to do what you're trying to do
nwertman has joined #ruby
<adac>
hoelzro, I have to go now. Be back online bit later. Thank you and see you then!
vpretzel has quit [Ping timeout: 260 seconds]
sailias has quit [Ping timeout: 245 seconds]
Hanmac has joined #ruby
MrZYX is now known as MrZYX|off
adac has quit [Quit: Leaving]
momomomomo has quit [Quit: momomomomo]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac1 has quit [Ping timeout: 272 seconds]
mojjojo has quit [Quit: mojjojo]
s2013 has joined #ruby
mikeg has joined #ruby
vpretzel has joined #ruby
LadyRainicorn has quit [Ping timeout: 264 seconds]
<peb7268>
Anybody got any guesses?
randomnick_ has joined #ruby
matheuscaceres has quit [Quit: matheuscaceres]
ckinni has joined #ruby
yfeldblum has quit [Remote host closed the connection]
d45h has joined #ruby
pskosinski has joined #ruby
Atrophius has joined #ruby
heidi has joined #ruby
LadyRainicorn has joined #ruby
zipper has quit [Quit: Lost terminal]
dhruvasagar has quit [Ping timeout: 260 seconds]
pipework has quit [Ping timeout: 248 seconds]
tylersmith has quit [Remote host closed the connection]
mojjojo has joined #ruby
DouweM has joined #ruby
niop has joined #ruby
rippa has joined #ruby
cascalheira has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
matheuscaceres has joined #ruby
jetblack has joined #ruby
<niop>
hi folks, having issues with require on a subfolder containing rb files. it should just be require "subfolder" to load all the ruby modules, and then module.function()?
mjs2600 has joined #ruby
<niop>
when i try that i get: LoadError: no such file to load -- subfolder
TMM has quit [Quit: Ex-Chat]
kevind has joined #ruby
<DouweM>
you can't just require a directory, you need to require a file. that file can then require the other files. or you can loop over all files in a directory, and require all of them
sailias has joined #ruby
mojjojo has quit [Ping timeout: 252 seconds]
<niop>
ahhh ic. so the practice then would to have a directory initaliser that requires modules in the directory. why didn't i think of that.
<olivier_bK>
ity to get the return valu of my command @mysqldump
<shevy>
LadyRainicorn knows what's evil - she was forced to code in PHP!
<LadyRainicorn>
Redefining instance_eval is *evil**.
TigerWolf has quit [Ping timeout: 260 seconds]
<mboyd>
I'm trying to do it to work around an issue with proxying instance_eval
<kenichi>
haha, yes ok instance_eval is
mojjojo has joined #ruby
<DouweM>
wut. who wants to redefine instance_eval
<DouweM>
that's black magic
<LadyRainicorn>
There is no legitimate reason to do that ever.
petey_ has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
<lupine>
that's a dangerous statement
<mboyd>
heh
<DouweM>
right. who's looking to do that? mboyd?
<LadyRainicorn>
Yep.
<DouweM>
WHY I ask of you
<mboyd>
yeah, me
mjs2600 has quit [Remote host closed the connection]
<shevy>
WHY
<IceDragon>
mboyd: are you sure there is no other way to solve the problem?
apeiros has joined #ruby
<shevy>
LET'S BURN HIM
<LadyRainicorn>
Agreed.
<IceDragon>
shevy: can frost burns work?
mikepack has joined #ruby
jhaals has joined #ruby
<shevy>
IceDragon nah we need a certain temperature
<IceDragon>
ahhh
<DouweM>
let's ddos his computer and hope it explodes
* IceDragon
droops
<mboyd>
IceDragon: everything else I've tried has not worked - and I think the issue is that in the case I'm running into, instance_eval actually needs to be executed in the specific scope that has access to the variables being referenced to work, passing instance_eval through the method_missing method loses that scope
<IceDragon>
!
<IceDragon>
O:
<DouweM>
what's the problem you're trying to solve?
<IceDragon>
I just remembered something
<shevy>
he wants to write the ultimate AI in ruby
mojjojo has quit [Client Quit]
<mboyd>
hah
<IceDragon>
mboyd: eval has a second argument, binding
gr33n7007h has quit [Ping timeout: 248 seconds]
<mboyd>
yeah, I've looked at that
blaxter has quit [Quit: foo]
sambao21 has quit [Quit: Computer has gone to sleep.]
<IceDragon>
however the binding for an Object is private..
<h0rrorvacui>
He wants to write ruby code that writes ruby code?
blaskovicz has quit [Max SendQ exceeded]
mojjojo has joined #ruby
blaskovicz has joined #ruby
jhaals has quit [Client Quit]
banister has joined #ruby
apeiros has quit [Ping timeout: 248 seconds]
<shevy>
yeah
<_br_>
... meta programming
<shevy>
that is the meta of all the metas
sambao21 has joined #ruby
timonv has joined #ruby
sambao21 has quit [Client Quit]
<LadyRainicorn>
There is no highest order of meta.
ghr has quit [Quit: Computer has gone to sleep.]
<_br_>
meta's all the way
<DouweM>
mboyd's meta programming is getting dangerously close to instanity
burlyscudd has joined #ruby
sambao21 has joined #ruby
<yfeldblum>
mboyd: instance_eval is a simple way of getting a binding and evalling in the context of that binding
* Hanmac
's mind is gone thanks meta programming ... that coward runs away ;P
<LadyRainicorn>
mboyd's issue is that instance_eval is defined.
* IceDragon
hangs unto Hanmac's foot
<LadyRainicorn>
He would need to undefine it in the proxy class.
<IceDragon>
come back!
ambushsabre has joined #ruby
gigetoo has quit [Remote host closed the connection]
s2013 has quit [Ping timeout: 245 seconds]
<zener79>
\whois
olivier_bK has quit [Ping timeout: 264 seconds]
ffranz has quit [Quit: Leaving]
<LadyRainicorn>
(I am not sure if remove_method or undef is the right way to do that, and I haven't a console handy.)
<shevy>
you just like to watch misery and pity, admit it h0rrorvacui
atrli has joined #ruby
<atrli>
hi
<mboyd>
every time I try that I get worse failures :/
gigetoo has joined #ruby
<shevy>
GOOD
<shevy>
you are on the right way
Kricir has joined #ruby
<shevy>
3 hours down the road you will have realized how evil it all was
mojjojo has quit [Quit: mojjojo]
ffranz has joined #ruby
<mboyd>
hah
heidi has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<atrli>
I dunno why when I do a "bundle install" I get an error like this: "Can't find the postgreSQL client library (libpq) I have installed libpq-dev but I get the same, any ideas?
tvw has joined #ruby
<mboyd>
ok, so can someone tell me how to take a method from one object and assign it to another, so that a.methodname actually points to b.methodname?
<mboyd>
I'm pretty sure that would solve the issue, is it possible to do in ruby?
jbpros has joined #ruby
<h0rrorvacui>
call the other method in another method?
<mboyd>
I think I've done it in python :/
peb7268 has quit []
<workmad3>
atrli: do you get anything if you do 'which pg_config' ?
<LadyRainicorn>
Are the objects of the same class?
diegoviola has joined #ruby
<mboyd>
h0rrorvacui: if I do that I lose the scope with the variable being used in the instance_eval
<LadyRainicorn>
If not, this is very very very dark magic.
<LadyRainicorn>
If so, it is dark magic.
<workmad3>
mboyd: that isn't your problem there, tbh
jbpros has quit [Client Quit]
<mboyd>
they are not, and yes, it probably is dark magic
sandeepk has joined #ruby
<workmad3>
mboyd: your problem is that you're using the string version of instance_eval rather than the block form
<LadyRainicorn>
Are you really, really sure you want to do that?
<atrli>
workmad3: /usr/bin/pg_config
<mboyd>
workmad3: yes, but that's not a problem I can solve
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir has joined #ruby
jonathanwallace has joined #ruby
CaptainJet has joined #ruby
jcromart_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 246 seconds]
three18ti has quit [Quit: goodbye]
<IceDragon>
mboyd: I tested it this time
momomomomo has quit [Quit: momomomomo]
<IceDragon>
:)
Lewix has joined #ruby
<IceDragon>
the method will do "nothing" if the instance_eval isn't set
Advocation has quit [Quit: Advocation]
apeiros has joined #ruby
hiall has quit [Ping timeout: 264 seconds]
parduse has quit [Ping timeout: 260 seconds]
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
arietis has joined #ruby
hiyosi has quit [Ping timeout: 246 seconds]
parduse has joined #ruby
phansch_ has joined #ruby
phansch has quit [Ping timeout: 246 seconds]
banister has joined #ruby
newbiehacker has quit [Quit: Leaving]
petey has joined #ruby
platzhirsch has joined #ruby
<platzhirsch>
So guys, what language to exercise interview questions?
Spami has joined #ruby
<_br_>
assembly
<hoelzro>
English?
saarinen has joined #ruby
three18ti has joined #ruby
<rdark>
yiddish
<popl>
Deutsche
<IceDragon>
Haskell ?
<popl>
!
<_br_>
Svenska!
timonv_ has quit [Remote host closed the connection]
<platzhirsch>
okay, very good suggestions so far
<platzhirsch>
IceDragon: and you are out
nanoyak has joined #ruby
<IceDragon>
:O But the functional goodness man
<Hanmac1>
platzhirsch: depends how nerdy the job is ... it could be Klingon ;P
phansch has joined #ruby
phansch_ has quit [Ping timeout: 246 seconds]
<platzhirsch>
C and Java seem reasonable. I started with Python, but some implementations for instance linked lists seem kind of awkward and out of place
<platzhirsch>
maybe this is better in Ruby
<_br_>
alternative Dothranki
zeeraw has joined #ruby
BizarreCake has quit [Read error: Connection reset by peer]
kaldrenon has joined #ruby
<platzhirsch>
oh is it spelled with an n?
<platzhirsch>
I always heared Dothraki
iamchrisf has joined #ruby
heidi has joined #ruby
iliketur_ has joined #ruby
<_br_>
No, you are right, my fingers are just to big ^^
<platzhirsch>
xDD
s2013 has quit [Ping timeout: 252 seconds]
<mboyd>
IceDragon: new code, new error!
<mboyd>
by the way, i appreciate your help looking at this :)
<IceDragon>
o_o but but but
<IceDragon>
my code is bullet proof!
<IceDragon>
well
endash_ has joined #ruby
<IceDragon>
I forgot to give it a kelvar helmet
<IceDragon>
BUT STILL
endash_ has quit [Client Quit]
jlebrech has quit [Ping timeout: 272 seconds]
enebo has joined #ruby
<IceDragon>
mboyd: can you give me the test code as well?
<IceDragon>
Whatever tid bits you where using to test it
<mboyd>
let me see if I can get it down to the bare minimum
michael_lee has quit [Remote host closed the connection]
lxsameer has joined #ruby
<lxsameer>
does gemcutter is the old name of rubygems.org
ExCa|iBuR has joined #ruby
<mboyd>
IceDragon: bre minimum is posted
mojjojo has quit [Quit: mojjojo]
<mboyd>
*bare
almarshall has joined #ruby
<IceDragon>
O: AHA!
Lewix has quit [Remote host closed the connection]
<IceDragon>
Meta Programming strikes again!
iamjarvo_ has joined #ruby
krainbol_ has quit [Ping timeout: 246 seconds]
soheil has joined #ruby
psyprus has quit [Ping timeout: 240 seconds]
Elhu has joined #ruby
tedstriker has quit [Quit: Anti-Fraping status set.]
petey has quit [Remote host closed the connection]
pranny has joined #ruby
psyprus has joined #ruby
x0nic has quit [Ping timeout: 260 seconds]
petey has joined #ruby
b00stfr3ak has quit [Read error: Connection reset by peer]
divi_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
platzhirsch has left #ruby [#ruby]
ahawkins has quit [Ping timeout: 252 seconds]
iamjarvo has quit [Ping timeout: 246 seconds]
x0nic has joined #ruby
Lewix has joined #ruby
phantummm has quit [Quit: phantummm]
pranny has quit [Client Quit]
tylersmith has joined #ruby
MrZYX|off is now known as MrZYX
jbpros has joined #ruby
pranny has joined #ruby
iamjarvo_ has quit [Ping timeout: 248 seconds]
nobitanobi has quit [Read error: Connection reset by peer]
ahawkins has joined #ruby
petey has quit [Ping timeout: 248 seconds]
Mon_Ouie has quit [Ping timeout: 245 seconds]
nobitanobi has joined #ruby
tylersmith has quit [Remote host closed the connection]
typicalbender has joined #ruby
phantummm has joined #ruby
vlad_starkov has joined #ruby
iamjarvo has joined #ruby
jrobeson has quit [Read error: Connection reset by peer]
jonnyro has joined #ruby
julweber has joined #ruby
pipework has quit [Ping timeout: 245 seconds]
preller has quit [Read error: Operation timed out]
<IceDragon>
mboyd: Okay this is the last push :D
<IceDragon>
try it now
cbetta_afk is now known as cbetta
tylersmith has joined #ruby
ArchBeOS-work has quit [Read error: Connection reset by peer]
javon_ has quit [Ping timeout: 265 seconds]
sandeepk has quit [Quit: Leaving...]
typicalbender has quit [Ping timeout: 240 seconds]
typicalbender has joined #ruby
polaco has joined #ruby
iamjarvo has quit [Ping timeout: 245 seconds]
michaeldeol has quit [Remote host closed the connection]
jlast_ has quit [Remote host closed the connection]
julweber has quit [Ping timeout: 246 seconds]
xcv has quit [Remote host closed the connection]
jlast has joined #ruby
nobitanobi has quit [Read error: Connection reset by peer]
xcv has joined #ruby
typicalbender1 has joined #ruby
ExCa|iBuR has quit [Ping timeout: 245 seconds]
nobitanobi has joined #ruby
typicalbender has quit [Read error: Connection reset by peer]
haukur has quit []
<mboyd>
IceDragon: not going to work, you changed the test!
<IceDragon>
wouldn't work
iamchrisf has quit [Quit: iamchrisf]
<mboyd>
but it does for the first one: real.instance_eval "puts test"
<mboyd>
try it
ArchBeOS-work has joined #ruby
ArchBeOS-work has quit [Changing host]
ArchBeOS-work has joined #ruby
<mboyd>
that's my whole problem
davy_ has quit [Remote host closed the connection]
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
davy_ has joined #ruby
xcv has quit [Ping timeout: 240 seconds]
typicalbender1 has quit [Ping timeout: 245 seconds]
petey has quit [Remote host closed the connection]
sailias1 has joined #ruby
coderhs has quit [Ping timeout: 260 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
petey has joined #ruby
<havenwood>
magz: rvm actually even supports chruby, with rvm you get mrvm (mini-rvm) that uses chruby to select your Ruby and just installs Rubies with rvm.
sailias has quit [Ping timeout: 248 seconds]
Banistergalaxy has joined #ruby
<magz>
seems interesting, havenwood
<havenwood>
But I think most chruby users use ruby-install or build Ruby themselves.
kraljev has joined #ruby
<kraljev>
Hey, how can I make ruby desktop app
<kraljev>
in HTML5, using probably webkit
phus1on has quit [Quit: .]
rmengu has joined #ruby
<shevy>
in html you use javascript
Tarential has quit [Excess Flood]
<kraljev>
I'd like to call ruby functions in javascript
<kraljev>
exactly
lukec has quit [Quit: lukec]
<shevy>
we all would love to but a browser like firefox knows only javascript
Tarential has joined #ruby
<havenwood>
kraljev: platform agnostic or particular to one?
cpruitt has quit [Quit: cpruitt]
AndChat| has quit [Ping timeout: 240 seconds]
alekst has quit [Quit: Leaving...]
<kraljev>
preferably agnosic
ExCa|iBuR has quit [Ping timeout: 245 seconds]
narcan has joined #ruby
<kraljev>
i have been doing similar things with C++ and qt-webkit
petey has quit [Ping timeout: 245 seconds]
<kraljev>
javascript could call C++ functions
nbrosnahan has quit [Ping timeout: 252 seconds]
<havenwood>
kraljev: about a year ago i was playing around with manually creating an OS X app with Sinatra and Webkit, kinda insane but work: https://github.com/havenwood/sinatra-dot-app
enape_101 has quit [Ping timeout: 240 seconds]
nomenkun has joined #ruby
petey has joined #ruby
pagios has quit [Ping timeout: 246 seconds]
<havenwood>
kraljev: uses apache-callback-mac
spider-mario has quit [Ping timeout: 260 seconds]
sailias1 has quit [Ping timeout: 246 seconds]
<havenwood>
kraljev: yeah, i dunno
jonathanwallace has quit [Ping timeout: 248 seconds]
magz has quit [Quit: Ex-Chat]
nanoyak has quit [Quit: Computer has gone to sleep.]
shoMo has quit [Ping timeout: 245 seconds]
Mars__ has joined #ruby
mzdravkov has joined #ruby
cbetta is now known as cbetta_afk
<havenwood>
kraljev: maybe check out decaf, ship that with your app so you can use Ruby entirely and just not javascript at all: http://trydecaf.org/
<havenwood>
:P
rubyracer has joined #ruby
davy_ has quit [Remote host closed the connection]
nbrosnahan has joined #ruby
<kraljev>
is it in a gem form?
RaCx has joined #ruby
<shevy>
cool
<havenwood>
kraljev: oh dang, it is OS X only as well >.>
<h0rrorvacui>
havenwood awesome I didn't even know decaf existed
Jdubs has quit [Remote host closed the connection]
<havenwood>
kraljev: but no, it isn't a gem, only ships as an .app
<Hanmac1>
kraljev: i like to use C macros to bind C++ functions to ruby methods ;P
Hanmac1 is now known as Hanmac
enape_101 has joined #ruby
<kraljev>
Apparently TideSDK is the only option, then
heidi has quit [Quit: Leaving.]
diegoviola has joined #ruby
shadoi has joined #ruby
bline79 has quit [Remote host closed the connection]
pagioss has joined #ruby
fomatin has joined #ruby
shoMo has joined #ruby
bline79 has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
ahawkins has quit [Read error: Connection reset by peer]
petey has quit [Remote host closed the connection]
coderhs has joined #ruby
petey has joined #ruby
heidi has joined #ruby
petey has quit [Read error: Connection reset by peer]
wpgreenway has quit [Quit: Connection closed for inactivity]
petey has joined #ruby
jonathanwallace has joined #ruby
spider-mario has joined #ruby
typicalbender has joined #ruby
mjs2600 has quit [Remote host closed the connection]
jbpros has joined #ruby
petey has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
petey has joined #ruby
xk_id has quit [Quit:
Asher has quit [Quit: Leaving.]
sailias has joined #ruby
typicalbender1 has joined #ruby
typicalbender has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<lewiz>
h0rrorvacui: I have some existing code that generates pathnames with / and I'm compare those strings with the output of a stat which uses \ names.
<atraa>
is there a way to read the whole content of a file? I'm using a iterator with the file.each_line to read all the content
<atraa>
can I do it in one step ?
<MrZYX>
atraa: File.read
<cout>
lewis: will File.absolute_path or File.expand_path give you a canonical pathname?
ehc has quit [Quit: ehc]
<bnagy>
no
Mars__ has quit [Remote host closed the connection]
<atraa>
oh nice thanks you MrZYX
<cout>
rubyhacker1 is the one you want to ask
Briareos1 has quit [Remote host closed the connection]
petey_ has joined #ruby
petey has quit [Read error: Connection reset by peer]
Mars__ has joined #ruby
<bnagy>
anyway as far as ruby is concerned / is canonical
<lewiz>
cout: I'll check now, thanks
* Hanmac1
point and laugh about windows path names
Hanmac1 is now known as Hanmac
pranny has joined #ruby
pranny has quit [Client Quit]
athst has quit [Ping timeout: 245 seconds]
<lewiz>
cout: Yes, I think that does what I need. Thank you
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
burlyscudd has joined #ruby
iamjarvo_ has joined #ruby
<bnagy>
wtf
Hanmac1 has joined #ruby
<Hanmac1>
bnagy there is File::Separator, but i didnt see a ruby where its different than "/"
iamjarvo has quit [Remote host closed the connection]
iamjarvo_ has quit [Read error: Connection reset by peer]
<bnagy>
it never is
iamjarvo has joined #ruby
<cout>
Hanmac1: have you tried running ruby on System 6? I think there it would be |
petey_ has quit [Remote host closed the connection]
Mars__ has quit [Ping timeout: 246 seconds]
<cout>
(if one were to be silly enough to write a port)
<Hanmac1>
ther is also File::SEPARATOR #=> "/" and File::ALT_SEPARATOR #=> nil
Hanmac1 is now known as Hanmac
shaunbaker has joined #ruby
<h0rrorvacui>
File::ALT_SEPARATOR is for platform specific seperators
achru has joined #ruby
<h0rrorvacui>
Ruby just converts for the platform and uses "/" internally?
<cout>
I see, it's hard-coded to / in file.c
nanoyak has joined #ruby
Mars__ has joined #ruby
<cout>
but that's because nobody has done a port to a platform that doesn't support / in the C library
<Hanmac>
its funny that you can create directories with windows that you cant delete anymore because of broken path ;D
soulcake has quit [Read error: Connection reset by peer]
kraljev2 has joined #ruby
jkhwan has quit [Remote host closed the connection]
<h0rrorvacui>
For the windows retarded, how do you do that?
almarshall has joined #ruby
athst has joined #ruby
jkhwan has joined #ruby
soulcake has joined #ruby
<cout>
Hanmac: Alt-255?
Jetchisel has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac>
hm i need to look for that video again ... but i was some kind of shell command that you can add something in the path that you can not delete the path again anymore in windows (you need a linux to delete that specific path)
iamjarvo has joined #ruby
drumusician has quit [Read error: Operation timed out]
jonathanwallace has quit [Ping timeout: 246 seconds]
kraljev has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
<maasha>
suggestions for a way to concatenate lazy enumerators (Ruby2 here with lazy)
<maasha>
?
lulz has joined #ruby
<MrZYX>
maasha: example?
iamjarvo has quit [Read error: Connection reset by peer]
enape_101 has quit [Ping timeout: 246 seconds]
phansch has quit [Quit: Leaving]
mboyd has quit [Quit: This computer has gone to sleep]
<xeno>
So, there appears to be nothing on the internet about --user-install except a passing reference to it without explanation on how to use it. How do you use it?
Lewix has quit [Remote host closed the connection]
threesome has quit [Ping timeout: 272 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<Moca_lambda>
xeno it is likely used in the commandline
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<xeno>
For instance, this fails for me: $ gem --user-install crack ERROR: Invalid option: --user-install. See 'gem --help'.
orionstein has joined #ruby
jlebrech has joined #ruby
jamesaanderson has joined #ruby
vx9r has joined #ruby
kpshek has quit []
<waxjar>
xeno: gem help install
danshultz has quit [Ping timeout: 248 seconds]
<xeno>
Yes, I don't see it there either. Perhaps it's gone in 2.0.0.
ph8 has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jragon has quit [Ping timeout: 252 seconds]
blandflakes has quit [Quit: Page closed]
<waxjar>
it's not :)
pagioss has joined #ruby
lfox has quit [Quit: ZZZzzz…]
jbpros has quit [Quit: jbpros]
claymore has quit [Quit: Leaving]
sailias has quit [Quit: Leaving.]
<Moca_lambda>
waxjar wil you be able to take a look at my error log?
<waxjar>
note that gem works with "commands" like git does, so it'd be gem install crack --user-install.
<gr33n7007h>
What the difference between system(), ``, %x()?
asteros has quit [Quit: asteros]
<waxjar>
Moca_lambda: just ask the question if you have one :)
interact_ has joined #ruby
colonolGron has joined #ruby
dangerousdave has joined #ruby
burlyscudd has joined #ruby
<Moca_lambda>
my build of gitlab is failing because a library of some sort is not installing. I can't figure out why it isn't installing though'
petey has quit [Remote host closed the connection]
interact_ has quit [Remote host closed the connection]
petey has joined #ruby
tylersmi_ has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
<xeno>
Well, I installed a gem in a local area ~/a/mygems, and put $HOME/a/mygems in my $PATH, but my script doesn't see it. There must be another configuration requirement.
dangerousdave has quit [Ping timeout: 248 seconds]
Hanmac1 has joined #ruby
charliesome has quit [Ping timeout: 252 seconds]
LF4 has quit [Quit: leaving]
<waxjar>
ruby searches $LOAD_PATH for dependencies, iirc.
charliesome has joined #ruby
<waxjar>
that's a global variable, btw, not an environment variable
m8 has quit [Quit: Sto andando via]
<entropy1995>
Has anybody done Test First Ruby?
Hanmac has quit [Ping timeout: 260 seconds]
petey has quit [Ping timeout: 246 seconds]
charliesome has quit [Client Quit]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phantasm66 has quit [Quit: *sleeeep….]
coderhs has quit [Read error: Connection timed out]
breakingthings has quit []
sheap has quit [Quit: Lost terminal]
charliesome has joined #ruby
<Hanmac1>
$LOAD_PATH is also an magic variable because its read-only ;P
Hanmac1 is now known as Hanmac
Jdubs has quit [Remote host closed the connection]
Lewix has joined #ruby
blaskovicz has quit [Quit: Leaving.]
zoo-zed has joined #ruby
kcombs has quit [Remote host closed the connection]
jkline has quit [Quit: jkline]
Hanmac has quit [Quit: Leaving.]
Briareos1 has joined #ruby
typicalbender has quit [Quit: Leaving.]
ffranz has quit [Quit: Leaving]
zoo-zed has quit [Client Quit]
ravster has quit [Quit: Leaving.]
lsmola has quit [Ping timeout: 240 seconds]
soheil has quit [Read error: Connection reset by peer]
vx9r has quit [Ping timeout: 252 seconds]
zoo-zed has joined #ruby
Hanmac has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
alvaro_o has joined #ruby
lsmola has joined #ruby
Hanmac1 has joined #ruby
<xeno>
Nope, it still doesn't see ~/a/mygems after I set export LOAD_PATH=$LOAD_PATH:$HOME/a/mygems.
typicalbender has joined #ruby
coderhs has joined #ruby
<waxjar>
<waxjar> that's a global variable, btw, not an environment variable
Hanmac has quit [Ping timeout: 240 seconds]
<waxjar>
i forgot the one-liner to add something to it, but It's easy to find on google.
tannerburson has quit [Quit: tannerburson]
vx9r has joined #ruby
matheuscaceres has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
nanoyak has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
Astral_ has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
<xeno>
Ok. Sorry. I got several distractions here. My apologies.
kirun has quit [Quit: Client exiting]
Astralum has quit [Ping timeout: 245 seconds]
tylersmi_ is now known as tylersmith
mjs2600 has joined #ruby
mengu has quit []
petey has joined #ruby
maasha has quit [Ping timeout: 250 seconds]
platzhirsch has left #ruby [#ruby]
shadoi has joined #ruby
Hanmac has joined #ruby
jerius_ has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
<entropy1995>
Anyone wanna help with Rspec?
Hanmac1 has quit [Ping timeout: 246 seconds]
ixti has joined #ruby
mary5030 has quit [Ping timeout: 246 seconds]
<MrZYX>
entropy1995: ask your real question and you might find out
sepp2k1 has quit [Quit: Leaving.]
<entropy1995>
it "converts freezing temperature" do
<entropy1995>
ftoc(32).should == 0
<entropy1995>
end
<entropy1995>
I'm a bit confused with how I can make this portion of the spec pass?
coderhs has quit [Read error: Connection timed out]
<MrZYX>
what version of RSpec are you using?
<Hanmac>
ask wikipedia about the curect formula, and turn it into ruby code
jerius has joined #ruby
terrellt has joined #ruby
<entropy1995>
2.14.1
<momomomomo>
entropy1995: ftoc(32).should eq(0)
tylersmi_ has joined #ruby
coderhs has joined #ruby
<momomomomo>
floc is pretty vague, though, I'd rename it :p
<momomomomo>
ftoc*
<momomomomo>
float to char~?
tylersmith has quit [Read error: Connection reset by peer]
zz_taion809 is now known as taion809
<entropy1995>
ftoc is fahrenheit to celsius
<momomomomo>
temp_ftoc would be obvious
<momomomomo>
entropy1995: der, from your current example
iliketur_ has quit [Quit: zzzzz…..]
<momomomomo>
temp_convert_f_to_c
<momomomomo>
bleu I'm nitpicking and it's not even my code :o
<MrZYX>
entropy1995: since you're using 2.14 and are learning rspec I'd recommend to start with the new expect syntax: expect(ftoc(32).to eq(0)
drag00n has quit [Ping timeout: 260 seconds]
g3orge has joined #ruby
iliketur_ has joined #ruby
<MrZYX>
but it should work already, what's your issue with that test?
<entropy1995>
I keep getting syntax errors and was confused with .should
jlast_ has joined #ruby
<MrZYX>
make a gist of all your code and errors
narcan has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pwestlund_away has quit [Ping timeout: 260 seconds]
mklappstuhl has quit [Remote host closed the connection]
<MrZYX>
entropy1995: so the second "type" of methods, class methods, can be called directly on the class, like Temperature.ftoc(32)
* Hanmac
still knows the greeting sentence of the Tavern in old Tristram ;P
<MrZYX>
Moca_lambda: well, it might not have all required headers available, don't fear to open a ticket in their bug tracker
<entropy1995>
ok, but would I be using "expect(ftoc(32).to eq(0)" this ?
<Moca_lambda>
MrXYZ that is what I think is the issue. Something that needs root installation is missing
tkuchiki has joined #ruby
<MrZYX>
entropy1995: not exactly, if the method should be contained in a class you have to call it in one of the ways I've shown, that's not different in a test
colonolGron has quit [Quit: leaving]
workmad3 has quit [Quit: Lost terminal]
coderhs has quit [Read error: Connection timed out]
<MrZYX>
Moca_lambda: since you have shell access you could probably hack it in with something like the toast package manager, but yeah, try to get support from the team directly
saltnvinegar has quit [Client Quit]
<h0rrorvacui>
it would be expect(ftoc(32)).to eq(0)
coderhs has joined #ruby
<Moca_lambda>
MrXYZ I don't get why they don't allow root access. This is a fun way to learn Ruby :P trying to hack something to work
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
kitak has joined #ruby
<MrZYX>
Moca_lambda: it's container stuff as far as I understood it, so with root access you'd be able to tamper with other users gears
derebos has joined #ruby
jkline has joined #ruby
<MrZYX>
since you could write all sorts of stuff to the shared kernel and what not
<entropy1995>
I've got this so far "class Temperature
<MrZYX>
entropy1995: start by learning ruby, you seem a hell lot confused by rspec in the process of that
drumusician has quit [Ping timeout: 245 seconds]
ace_striker has joined #ruby
blaskovicz has joined #ruby
<Moca_lambda>
Mr XYZ so basically they're running one giant application spread across either 1 linux or many linux instances, where the OpenShift application with root access grants you universal rights to everyones stuff
<MrZYX>
entropy1995: you don't use rspec to _define_ methods, you use it to _test_ methods
Hanmac has quit [Ping timeout: 245 seconds]
<h0rrorvacui>
It looks like you are wanting to define your specs inside of the class definition
Hanmac has joined #ruby
<Moca_lambda>
*correction: unix not linux
<MrZYX>
entropy1995: I'd suggest you to just forget all the rspec stuff for now
<ace_striker>
learning "tricks" and getting "tips" then you need to throw your mone
<ace_striker>
*money
<Moca_lambda>
h0rrorvacui : 12/03/2011: This book is in the very preliminary stages. None of the content is guaranteed to be thorough or accurate. See the About Page.
mikepack_ has quit [Ping timeout: 252 seconds]
<h0rrorvacui>
So, its still great
aspires has quit []
<ace_striker>
app academy was recently featured on Tech-crunch
julweber has joined #ruby
<Moca_lambda>
entropy1995 are you 18?
<entropy1995>
yeah
<Moca_lambda>
are you planning on building stuff in Ruby on Rails?
fedesilva has quit [Remote host closed the connection]
<entropy1995>
that's the goal but it's difficult learning on my own
mansi has quit [Remote host closed the connection]
<Moca_lambda>
Do you understand programming basics?
aspires has joined #ruby
petey has quit [Remote host closed the connection]
tonni_ has joined #ruby
<entropy1995>
I understand the very basics, yes
<h0rrorvacui>
No offense but he was mixing his test inside is production code. I think he'd best be served with a ruby lesson before stepping into Ruby on Rails.
jedimind has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
shaunbaker has quit [Remote host closed the connection]
shadoi has quit [Quit: Leaving.]
<h0rrorvacui>
Just learn ruby.
petey has joined #ruby
<h0rrorvacui>
so you don't mix rails and ruby
<Moca_lambda>
If you understand the basics of coding, I would just work through rails tutorials that teach you the stuff beyond conditional statements, etc.
<h0rrorvacui>
I'd not do that :P
tonni has quit [Ping timeout: 246 seconds]
<entropy1995>
why not ?
vlad_starkov has quit [Remote host closed the connection]
<Moca_lambda>
but h0rrorvacui makes a good point. learn ruby itself first
<entropy1995>
How long should I focus on Ruby before Rails ?
<h0rrorvacui>
If you do know the basics of programming then ruby will be a quick learn.
wald0 has joined #ruby
<wald0>
checking for ruby/thread.h... no
<wald0>
i have this error trying to gem install mysql2 in debian wheezy
<ace_striker>
wald0: install sql-dev first
mjs2600 has quit [Remote host closed the connection]
<Hanmac>
wald0 have you the ruby-full package installed?
<ace_striker>
most gems need them
<Moca_lambda>
entropy1995 if you are comfortable learning at a fast pace, try to learn Ruby in a week, but that means like 12 hour sessions each day. Optimally you'd want at least a couple hundred hours mastering a language, but with time, I'd say 60 hours would be a decent amount
MrZYX is now known as MrZYX|off
* wald0
installing ruby-full
petey has quit [Ping timeout: 246 seconds]
<wald0>
i can rm -rf /var/lib/gems to cleanup everything ? i mean, its safe ?
<ace_striker>
wald0: it will sudo apt-get will take care ..
<entropy1995>
what do you guys think of coding bootcamps?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coderhs has quit [Read error: Connection timed out]
Asher has joined #ruby
Bira has quit [Ping timeout: 246 seconds]
VTLob has quit [Quit: VTLob]
<ace_striker>
bootcamps are good for generating ideas and getting exposure to good coding habits
<Moca_lambda>
<h0rrorvacui>: Do you code for a living?
<h0rrorvacui>
Yes
<ace_striker>
h0rrorvacui: what's wrong in alabama ?
iamchrisf has quit [Quit: iamchrisf]
<momomomomo>
ace_striker: s/he's forgotten about the good food apparently
Hanmac has quit [Ping timeout: 248 seconds]
<h0rrorvacui>
I live in an extremely rural area. The stacks here are .net. I have no where I can code ruby. :(
fridim__ has joined #ruby
asobrasil has left #ruby [#ruby]
snath has joined #ruby
<h0rrorvacui>
But yeah we do have good food.
<ace_striker>
momomomomo: you name reminds me of food though ..
<Moca_lambda>
At least your stack isn't JavaScript everywhere
<h0rrorvacui>
It makes you fat though.
<Moca_lambda>
fried chicken?
<momomomomo>
my name is just my name * 5
<ace_striker>
yes..no issues with that..
mercwithamouth has quit [Ping timeout: 248 seconds]
<momomomomo>
:o
timonv has joined #ruby
<ace_striker>
h0rrorvacui: one don't need a place..one just a irc,pc,and internet to get going.
jerius has quit [Ping timeout: 240 seconds]
enape_101 has quit [Ping timeout: 246 seconds]
<ace_striker>
one can do freelancing from anywhere these days.
jetblack has joined #ruby
<h0rrorvacui>
Yeah, but I've found already that my degree and location turn clients off.
DrShoggoth has joined #ruby
<h0rrorvacui>
ace_striker you from Alabama?
<Moca_lambda>
ace_striker I disagree somewhat. Coding on your own is possible, but networking is great too. People can teach you things tutorials can't
sergicles has joined #ruby
burlyscudd has quit [Quit: Leaving.]
<ace_striker>
yes...then probably if you got good skills ..you should get yourself hired by some company ..there are lot of need for RoR and ruby developers in san fran.
<ace_striker>
h0rrorvacui: ^^
ununPentium has joined #ruby
<h0rrorvacui>
Yeah, I've always coded solo except a few projects in college.
<momomomomo>
Aye, it's easier to get interviews there if you live there for a while anyhow
almarshall has quit [Quit: almarshall]
<Moca_lambda>
Or you can just start building some food/animal/chat related app, let some old guy give you $100,000 and code Ruby/Rails for 3 months
<ace_striker>
Moca_lambda: it agree with you..isolation is not a solution ..but to learn something one needs space and isolation....
gyre007 has quit [Remote host closed the connection]
saltnvinegar has joined #ruby
<h0rrorvacui>
I don't think I've met another programmer in person in months.
<Moca_lambda>
ace_striker true. a mix of both is best then.
timonv has quit [Ping timeout: 260 seconds]
<ace_striker>
railsyard is giving 500 hours of free hosting
<ace_striker>
launch an app there..apply for googleadsense and get paid..
<Moca_lambda>
ace_striker do you know any other free hosting services? OpenShift has failed me with a lack of libraries
<Moca_lambda>
<h0rrorvacui> I am working on something where people can collab remotely.
<momomomomo>
well, h0rrorvacui do some googling, and make a trek if need be; but don't lament that there's nothing around there
typicalbender1 has joined #ruby
<ace_striker>
h0rrorvacui: one has to reach the threshold ..to make things easier...(It's like raise your standard or find something easy like wood cuting ) no offense though
typicalbender has quit [Read error: Connection reset by peer]
iamchrisf has joined #ruby
<h0rrorvacui>
Absolutely nothing but some kayaking club.
<h0rrorvacui>
lol
<h0rrorvacui>
Closet things are in Atlanta.
thecreators has joined #ruby
<bnagy>
#firstworldproblems
<Moca_lambda>
I've never been to a meetup before either.
mikeg has quit [Remote host closed the connection]
<Moca_lambda>
I mean a meetup.com meetup
<ace_striker>
remember : one thing :: always be with open source ..
bean has joined #ruby
<momomomomo>
didn't I just link to a JS, OSS, startup, and mobile app meet ups in/near birmingham h0rrorvacui ? http://tinyurl.com/llv4v44
canton7-mac has joined #ruby
iamchrisf has quit [Client Quit]
<h0rrorvacui>
I don't live near birmingham thats hundreds of miles away and my primary vehicle is a motorcycle.
entropy1995 has quit [Quit: ChatZilla 0.9.90.1 [Firefox 25.0.1/20131112160018]]
<h0rrorvacui>
I'm fine a lone atm. I'm arranging to move to the Tampa, FL area if things work out.
<ace_striker>
h0rrorvacui: believe me..keep building stuff and within 6 months ..you will be in san fran
<h0rrorvacui>
I don't want to live in san fran
<ace_striker>
who wouldn't...kill me.
<h0rrorvacui>
I'm apparently 1/million
<Moca_lambda>
motorcycle? In summer, you must have a lot of joy riding all around
<ace_striker>
it's serious business..common.
Guest17057 has joined #ruby
<Moca_lambda>
I wouldn't wanna live there either. It rains practically year round
elux has quit [Quit: Bye!]
<ace_striker>
we got 2/million
<h0rrorvacui>
I don't joy ride. My dad's friend was just killed by a car.
<h0rrorvacui>
I drive a motorcycle because its cheap.
<Moca_lambda>
you're better off in silicon valley if you want to travel all the way to CA
<jblack>
ace_striker: There's a lot more than just san fran. the seattle area comes to mind quickly
<h0rrorvacui>
I'd only visit Cali. I like the east coast.
<ace_striker>
jblack: then there is NY too.
<Moca_lambda>
NYC has a startup scene.
<h0rrorvacui>
Maybe Arizona. I visited Scottsdale and liked it.
<Moca_lambda>
Wait, you live near Atlanta? Doesn't Atlanta have a tech scene too?
<h0rrorvacui>
Yeah a nice one too.
Hanmac1 has quit [Ping timeout: 252 seconds]
<jblack>
There's also research triangle in north carolina
Hanmac has joined #ruby
havenwood has joined #ruby
canton7-mac has quit [Ping timeout: 260 seconds]
<h0rrorvacui>
I like Cary, North Carolina
<ace_striker>
problem is not..what you like..
<h0rrorvacui>
I know.
aspires has quit []
<ace_striker>
problem..is your are in remote location..and we are looking for round-about to fill that gap.
<ace_striker>
probably ..you should attend hackathons..they are generally free..and lot of prizes to win.
<Moca_lambda>
lol ace_striker I don't think horror is in a 'problem' situation just yet. Seems like he has .NET work streaming in.
<h0rrorvacui>
I don't code in .net.
<h0rrorvacui>
I don't use .net.
<ace_striker>
.net sucks
<h0rrorvacui>
I make my money doing frontend work.
<Moca_lambda>
oh my bad, somebody else said they use .net just now
<ace_striker>
UI/UX right.
<h0rrorvacui>
Or CMS for the local mom and pop
<h0rrorvacui>
I spend more time doing JS or PHP
<h0rrorvacui>
PHP!!
<h0rrorvacui>
I hate php
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ace_striker>
h0rrorvacui: http://www.mhacks.org/ ..this hackathon will help you in networking..and filling the gap..
hadees has quit [Quit: hadees]
<ace_striker>
probably.
<jalcine>
Php isn't that bad
<Moca_lambda>
ace_striker seems really bent on helping you, not many people like that in the world today
vlad_starkov has joined #ruby
<Moca_lambda>
jalcine until you have to manage 100,000 lines of PHP code
<ace_striker>
Moca_lambda: what exactly you mean ?
<Moca_lambda>
ace_striker I mean that you are going out of your way to assist someone else. People don't do that often
athst has quit [Quit: athst]
iamjarvo_ has joined #ruby
<emocakes>
php is amazing
<ddd>
far more often on the ruby chans than you might think
charliesome has joined #ruby
<ace_striker>
Let's starts that from now..
<momomomomo>
#rubyonrails is the one where I get most of my headaches