<weaksauce>
take from it what you will if anything
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
alfiemax has joined #ruby
karapetyan has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
ResidentBiscuit has joined #ruby
cdg has quit [Remote host closed the connection]
<arand>
weaksauce: That looks really nice indeed.
gnufied has quit [Ping timeout: 276 seconds]
alfiemax has quit [Ping timeout: 264 seconds]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
Guest93774 is now known as lemur
lemur has quit [Changing host]
lemur has joined #ruby
lemur is now known as baweaver
allcentury has joined #ruby
chouhoulis has quit [Ping timeout: 248 seconds]
negatifze has joined #ruby
nchambers is now known as uplime
negatifze has quit [Client Quit]
ryzokuken has quit [Quit: Connection closed for inactivity]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
allcentury has quit [Ping timeout: 240 seconds]
phaul has quit [Quit: WeeChat 2.0.1]
phaul has joined #ruby
dviola has joined #ruby
gnufied has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.0.1]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
<arand>
weaksauce: I would be inclined to name them something which reflect their mutating nature (i.e. with a '!'), is that usually done with methods like these?
eblip has joined #ruby
def_jam has joined #ruby
<weaksauce>
yeah, that's correct arand
eb0t has quit [Ping timeout: 252 seconds]
eb0t- has quit [Ping timeout: 265 seconds]
eblip is now known as eb0t
ta_ has quit [Ping timeout: 246 seconds]
def_jam is now known as eb0t-
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul has quit [Ping timeout: 260 seconds]
Dimik has joined #ruby
ta_ has joined #ruby
duckpuppy has joined #ruby
alfiemax has joined #ruby
jameser has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
jameser has quit [Remote host closed the connection]
epochwolf has quit [Read error: Connection reset by peer]
jameser has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
epochwolf has joined #ruby
lytol has quit [Remote host closed the connection]
ResidentBiscuit has quit [Remote host closed the connection]
jxv has joined #ruby
mostlybadfly has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
alfiemax has joined #ruby
DenSchub has quit [Ping timeout: 248 seconds]
jxv has quit [Quit: string can snapped]
ycyclist has quit [Ping timeout: 260 seconds]
dinfuehr has quit [Ping timeout: 276 seconds]
dinfuehr has joined #ruby
DenSchub has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby
cthulchu_ has joined #ruby
cthu has quit [Ping timeout: 246 seconds]
nowhere_man has joined #ruby
karapetyan has joined #ruby
nowhereman_ has quit [Ping timeout: 260 seconds]
Yzguy has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
ta_ has quit [Ping timeout: 260 seconds]
Psybur_ has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
gnufied has quit [Ping timeout: 246 seconds]
Psybur has quit [Ping timeout: 240 seconds]
epochwolf has quit [Ping timeout: 260 seconds]
pilne has quit [Quit: Leaving]
Psybur_ is now known as Psybur
Psybur has quit [Changing host]
Psybur has joined #ruby
imode has quit [Ping timeout: 264 seconds]
marr has quit [Ping timeout: 248 seconds]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
epochwolf has joined #ruby
duckpuppy has joined #ruby
cdg has joined #ruby
ycyclist has joined #ruby
<ycyclist>
So I am trying to do a case statement on something.class, and it always goes to the else case.
<ycyclist>
What's with that?
duckpuppy has quit [Ping timeout: 264 seconds]
ta_ has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
dinfuehr_ has joined #ruby
tolerablyjake has joined #ruby
tolerablyjake has quit [Client Quit]
dinfuehr has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
mrush has quit [Ping timeout: 240 seconds]
mrush has joined #ruby
mrush is now known as Guest86850
ghormoon has quit [Ping timeout: 240 seconds]
roshanavand has quit [Quit: Leaving.]
Frenchiie has joined #ruby
ghormoon has joined #ruby
tolerablyjake has joined #ruby
<Radar>
ycyclist: code plz
ghormoon has quit [Excess Flood]
n0m4d1c has quit [Ping timeout: 260 seconds]
tolerablyjake has quit [Client Quit]
<ycyclist>
Sorry. I went around it by using if statements. I was in a hurry. Let me see if I can get it back.. Sorry man.
<ycyclist>
Ok. I really did look at that twice. Trying again.
<baweaver>
Anyways, I need to go grab food. Be back later.
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
AJA4350 has quit [Quit: AJA4350]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
memo1 has joined #ruby
<ycyclist>
Ok. I get it now. However, magic is not very auditable. I think making a string out of it, or using if statements is clearer. I really do appreciate your energies, however.
ta_ has joined #ruby
<ycyclist>
I know that overloading can be handy, but it can also be a time-sink for research into vernacular when people don't want to spend such time.
<ycyclist>
Please accept my complements, however, for your knowledge. That is good to know, and I may use it some day. Not this time, though.
<ycyclist>
Compliments.
jameser has quit [Remote host closed the connection]
jameser has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
milardovich has joined #ruby
dnewkerk has joined #ruby
GinoMan has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has quit [Client Quit]
jenrzzz has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
roshanavand has joined #ruby
ramfjord has joined #ruby
ryandv has joined #ruby
ryzokuken has joined #ruby
pddman has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
ryandevilla has joined #ruby
ryandv has quit [Ping timeout: 246 seconds]
willmichael has quit [Ping timeout: 264 seconds]
willmichael has joined #ruby
duckpuppy has joined #ruby
dviola has quit [Quit: WeeChat 2.0.1]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
duckpuppy has quit [Ping timeout: 240 seconds]
Psybur has quit [Ping timeout: 240 seconds]
GinoMan has quit [Ping timeout: 264 seconds]
ryandevilla has quit [Ping timeout: 246 seconds]
Gnut__ has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 264 seconds]
xorgnak has quit [Ping timeout: 252 seconds]
kn-928 has quit [Quit: WeeChat 2.0.1]
Gnut_ has joined #ruby
ta_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
DEac- has quit [Ping timeout: 240 seconds]
DEac- has joined #ruby
jackjackdripper has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
jackjackdripper has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
trautwein has quit [Quit: ZNC 1.6.5 - http://znc.in]
trautwein has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ta_ has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
Yzguy has quit [Quit: Zzz...]
jeffreylevesque has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
milardovich has quit []
jenrzzz has quit [Ping timeout: 260 seconds]
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has joined #ruby
ledestin has quit [Ping timeout: 240 seconds]
Yzguy has joined #ruby
gix has joined #ruby
gix- has quit [Ping timeout: 240 seconds]
duckpuppy has joined #ruby
Dimik has quit [Ping timeout: 264 seconds]
duckpuppy has quit [Ping timeout: 240 seconds]
eckhardt_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
unreal_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
unreal has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has quit [Ping timeout: 264 seconds]
ta_ has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
sauvin_ has joined #ruby
jenrzzz has joined #ruby
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anisha has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
ta_ has joined #ruby
willmichael has quit [Ping timeout: 246 seconds]
nicesignal has quit [Remote host closed the connection]
willmichael has joined #ruby
ramfjord has joined #ruby
nicesignal has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
karapetyan has joined #ruby
jackjackdripper has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ramfjord has joined #ruby
armyriad has quit [Quit: Leaving]
ltd has quit [Quit: leaving]
ltd has joined #ruby
dnewkerk has quit [Ping timeout: 260 seconds]
ltd has quit [Client Quit]
ltd has joined #ruby
willmichael has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 240 seconds]
willmichael has joined #ruby
sauvin_ is now known as bocaneri
nadir has joined #ruby
pastorinni has joined #ruby
jamesaxl has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
duckpuppy has joined #ruby
memo1 has quit [Ping timeout: 264 seconds]
duckpuppy has quit [Ping timeout: 264 seconds]
ta_ has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
armyriad has joined #ruby
cdg has joined #ruby
sidx64 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
sidx64 has quit [Client Quit]
sidx64 has joined #ruby
armyriad has quit [Remote host closed the connection]
sidx64 has quit [Read error: Connection reset by peer]
roelof has joined #ruby
<roelof>
I try to solve level 4 of the ruby warrior. But I see this error ` comparising Fixnum with nil failed ` with this code : http://lpaste.net/363679
<roelof>
what did I do wrong ?
andikr has joined #ruby
krandi has joined #ruby
krandi has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 240 seconds]
sidx64_ has quit [Ping timeout: 268 seconds]
sidx64 has joined #ruby
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
banisterfiend has quit [Max SendQ exceeded]
jackjackdripper has quit [Quit: Leaving.]
JoshS has joined #ruby
nachoman has quit []
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
<dminuoso>
>> nil < 5
<ruby[bot]>
dminuoso: # => undefined method `<' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/972990)
<dminuoso>
>> 5 < nil
<ruby[bot]>
dminuoso: # => comparison of Fixnum with nil failed (ArgumentError) ...check link for more (https://eval.in/972991)
<dminuoso>
roelof: ^-
<roelof>
am now at level 6 of ruby warrior but im really stuck. I want that if the health is not enough the warrior steps one back and rest but of I use this code I see a message that I can only perform one action at the time
<roelof>
how to solve this ?
<dminuoso>
roelof: Do you have a ruby specific question?
nachoman has joined #ruby
<roelof>
yep . how I can make this work in ruby. I try to learn some ruby by using this site
<ss942>
funny behaviour when I type ruby -v as a root it says me 2.5.0 when I type this with casual user it says ruby is not installed
<ss942>
what the hell?
qba73 has joined #ruby
WhereIsMySpoon has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
alfiemax has joined #ruby
qba73 has quit [Remote host closed the connection]
<dminuoso>
ss942: different PATH environment variables probably.
qba73 has joined #ruby
ramfjord has joined #ruby
willmichael has quit [Read error: Connection reset by peer]
<dminuoso>
ss942: "ruby is not installed" just means "I was not able to find an executable named `ruby` in any of the directories specified in PATH"
willmichael has joined #ruby
karapetyan has joined #ruby
WhereIsMySpoon_ has quit [Ping timeout: 265 seconds]
cdg has joined #ruby
WhereIsMySpoon_ has joined #ruby
cdg_ has joined #ruby
ryzokuken has quit [Quit: Connection closed for inactivity]
dinfuehr_ is now known as dinfuehr
ramfjord has quit [Ping timeout: 246 seconds]
karapetyan has quit [Ping timeout: 240 seconds]
qba73 has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
Burgestrand has joined #ruby
cdg has quit [Ping timeout: 276 seconds]
cdg__ has joined #ruby
cdg_ has quit [Ping timeout: 246 seconds]
workmad3_ has joined #ruby
<WhereIsMySpoon>
Burgestrand: hey :) wonder if you’re up for solving a little conundrum I’ve come up against again? :)
<Burgestrand>
WhereIsMySpoon part of the deal is that you invite everybody to solve it and not just me :) i.e. post it in here and hope for luck
<WhereIsMySpoon>
True! :)
<Burgestrand>
No promises from my side, slightly more busy today!
ramfjord has quit [Ping timeout: 240 seconds]
<WhereIsMySpoon>
Alright then, the output of the EasyAudio::Stream is buffers of floats. I (and burg who was helping me yesterday) figured it would be floats -1 to +1, however it seems to be of a larger range…I”m getting numbers from +7 to -6 or so even by moderately raising my voice
<WhereIsMySpoon>
Wondering what the heck these numbers are…from the code its definitely amplitude, but why its not measuring in -1 to +1 I have no idea
<WhereIsMySpoon>
Tis quite confusing
workmad3 has quit [Ping timeout: 240 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg__ has quit [Ping timeout: 276 seconds]
riotjones has joined #ruby
Burgestrand has quit [Quit: Closing time!]
ramfjord has joined #ruby
mikecmpb_ has joined #ruby
karapetyan has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Ping timeout: 264 seconds]
shuforov has joined #ruby
rabajaj has joined #ruby
qba73 has joined #ruby
duckpuppy has joined #ruby
Guest33581 has joined #ruby
yosafbridge has quit [Quit: Leaving]
snapcase_ has quit [Quit: Reconnecting]
snapcase has joined #ruby
viuo has left #ruby [#ruby]
alex`` has joined #ruby
KeyJoo has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
yosafbridge has joined #ruby
Burgestrand has joined #ruby
<Burgestrand>
WhereIsMySpoon your audio library should tell you what the range is I believe, i.e. portaudio docs, if they don't it's probably some standard format
<WhereIsMySpoon>
Burgestrand: EasyAudio is sending stream[:sampleFormat] = API::Float32 as the format, which is defined in ffi-portaudio as 0x1
<WhereIsMySpoon>
which looks like it should just be -1 to +1 values
<WhereIsMySpoon>
there are very little docs for these libs
sidx64 has joined #ruby
karapetyan has quit [Remote host closed the connection]
howdoi has joined #ruby
Burgestrand has quit [Quit: Closing time!]
armando has quit [Ping timeout: 256 seconds]
Serpent7776 has joined #ruby
armando has joined #ruby
mikecmpb_ has quit [Quit: inabit. zz.]
mikecmpbll has joined #ruby
tomphp has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
gnufied has joined #ruby
tomphp has quit [Client Quit]
cdg has joined #ruby
shuforov has quit [Read error: Connection reset by peer]
shuforov has joined #ruby
toks has joined #ruby
cdg has quit [Ping timeout: 245 seconds]
ramfjord has joined #ruby
gnufied has quit [Ping timeout: 264 seconds]
Burgestrand has joined #ruby
Matthew1 has quit []
c0ncealed has quit [Remote host closed the connection]
c0ncealed has joined #ruby
Burgestrand has quit [Client Quit]
ramfjord has quit [Ping timeout: 256 seconds]
amelliaa has quit [Quit: -]
guardianx has joined #ruby
hfp_work has quit [Quit: bye]
toks has quit [Quit: Leaving]
hfp_work has joined #ruby
tcopeland has quit [Quit: tcopeland]
duckpuppy has joined #ruby
dviola has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guardianx has quit []
nachoman has joined #ruby
Psybur has joined #ruby
Cavallari has joined #ruby
jimmylu2333 has joined #ruby
za1b1tsu has quit [Quit: Leaving]
tomphp has joined #ruby
tomphp has quit [Client Quit]
ryzokuken has joined #ruby
alex`` has quit [Quit: WeeChat 2.0.1]
jeffreylevesque has joined #ruby
ldnunes has joined #ruby
am55 has joined #ruby
suukim has quit [Remote host closed the connection]
tomphp has joined #ruby
AJA4350 has joined #ruby
duckpuppy has joined #ruby
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
roelof has joined #ruby
<roelof>
Where can I the best ask question if im stuck with ruby warriors
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nachoman has quit []
banisterfiend has joined #ruby
<plasmik>
I need to compile some C-Ruby stuff, it has 'require mkmf' line, and this mkmf file spits errors and tells me to install developer tools
KeyJoo has quit [Ping timeout: 264 seconds]
tomphp has joined #ruby
<plasmik>
I am in msys2, ruby 2.4.0
<plasmik>
developer tools are outdated for me
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
<plasmik>
though project is made for Ruby 1.8.2
jcalla has joined #ruby
tcopeland has joined #ruby
<plasmik>
mkmf.rb file is part of ruby installation
rfoust has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gnufied has joined #ruby
rwb has quit [Ping timeout: 240 seconds]
Psybur has quit [Remote host closed the connection]
ss942 has left #ruby [#ruby]
milardovich has joined #ruby
Psybur has joined #ruby
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
karapetyan has joined #ruby
ghcaf has joined #ruby
ghcaf has quit [Remote host closed the connection]
dcluna has quit [Ping timeout: 248 seconds]
karapetyan has quit [Remote host closed the connection]
synthroid has joined #ruby
karapetyan has joined #ruby
dcluna has joined #ruby
jimmylu2333 has joined #ruby
karapetyan has quit [Remote host closed the connection]
jimmylu2333 has quit [Client Quit]
belmoussaoui has joined #ruby
stoffus_ has joined #ruby
perzival has joined #ruby
karapetyan has joined #ruby
stoffus has quit [Ping timeout: 240 seconds]
willmichael has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 246 seconds]
goatish has joined #ruby
sidx64 has joined #ruby
ramfjord has joined #ruby
willmichael has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
DTZUZO has joined #ruby
mtkd has quit []
cdg has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
karapetyan has quit [Remote host closed the connection]
mtkd has joined #ruby
mydog2 has joined #ruby
minimalism has joined #ruby
<mydog2>
mron...
<mydog2>
morn
karapetyan has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
milardovich has quit [Remote host closed the connection]
<roelof>
good afternoon here
<phaul>
pretty miserable afternoon here
<roelof>
here too. the whole day rain , rain and rain
alfiemax has quit [Remote host closed the connection]
bmurt has joined #ruby
bmurt has quit [Client Quit]
roelof has quit [Quit: Page closed]
duckpuppy has joined #ruby
psychicist__ has joined #ruby
bmurt has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
anisha has quit [Quit: This computer has gone to sleep]
duckpuppy has quit [Ping timeout: 256 seconds]
tomphp has joined #ruby
Burgestrand has joined #ruby
qba73 has quit [Ping timeout: 264 seconds]
banisterfiend has joined #ruby
milardovich has joined #ruby
goatish has quit [Remote host closed the connection]
banisterfiend has quit [Read error: Connection reset by peer]
goatish has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
arquebus has joined #ruby
karapetyan has quit [Remote host closed the connection]
duckpuppy has joined #ruby
arup_r has joined #ruby
<arup_r>
I want to match if a string contains upper case, lower case, and numeric characters. What I tried http://rubular.com/r/vHGcQmx3l7 is wrong. What is the correct regex ?
Burgestrand has quit [Quit: Closing time!]
roshanavand has quit [Quit: Leaving.]
TomyWork has quit [Remote host closed the connection]
pastorinni has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
<dminuoso>
arup_r: It matches..
pastorinni has quit [Remote host closed the connection]
<phaul>
you have lower case z where you meant upper case? otherwise you get a match if your regexp matches any part of the string. I'm guessing you want too match if the regexp matches the entire string. to do that use begin string end string anchors in the regexp \A, \z
<phaul>
s/too/to/
<arup_r>
hm I want the string will contain only a-zA-Z0-9 nothing else
mikecmpbll has joined #ruby
willmichael has quit [Read error: Connection reset by peer]
willmichael has joined #ruby
banisterfiend has joined #ruby
<phaul>
arup_r: what I said about matching the entire string ^^
arquebus has quit [Quit: Konversation terminated!]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhereman_ has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banisterfiend has quit [Client Quit]
arup_r has quit []
willmichael has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby
arquebus has quit [Client Quit]
nowhere_man has quit [Ping timeout: 246 seconds]
rippa has joined #ruby
karapetyan has joined #ruby
ramfjord has joined #ruby
<dminuoso>
Which drunken lord decided to use \A to signal beginning and \z to signal end?
willmichael has joined #ruby
<dminuoso>
I mean considering ASCII codes fine I get it, but this is not intuitive.
milardovich has quit [Remote host closed the connection]
<phaul>
yeah, I always have to look up which one is upper :)
milardovich has joined #ruby
<phaul>
most ppl just use ^ and $ without realizing that that's different semantics
karapetyan has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
shuforov has quit [Quit: Leaving]
shuforov has joined #ruby
jeffreylevesque has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
rwb has joined #ruby
milardovich has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 264 seconds]
alex`` has joined #ruby
milardovich has joined #ruby
<nemesit|znc>
anyone know how to get the json 1.8.1 gem to install on osx?
<mydog2>
anyone here work on side projects for $$$
<mydog2>
and happens to be in us/north america??
kapil___ has quit [Quit: Connection closed for inactivity]
milardovich has quit [Remote host closed the connection]
schneider has quit [Read error: Connection reset by peer]
schneider has joined #ruby
<dminuoso>
I dont work for three dollars.
<dminuoso>
You'd have to spam a bit more to make it worth my while.
DTZUZO has quit [Ping timeout: 245 seconds]
kapil___ has joined #ruby
duckpuppy has joined #ruby
allcentury has joined #ruby
jamesaxl has quit [Quit: WeeChat 2.0.1]
griffindy has joined #ruby
griffindy has quit [Client Quit]
milardovich has joined #ruby
jamesaxl has joined #ruby
rafik has joined #ruby
Burgestrand has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 246 seconds]
banisterfiend has joined #ruby
tvw has joined #ruby
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
ryandevilla1 has joined #ruby
Sr_X has joined #ruby
milardovich has joined #ruby
tomphp has joined #ruby
milardovich has quit [Remote host closed the connection]
tomphp has quit [Client Quit]
tomphp has joined #ruby
Psybur has quit [Ping timeout: 248 seconds]
oleo has joined #ruby
Rapture has joined #ruby
samort7 has joined #ruby
milardovich has joined #ruby
plasmik has quit [Quit: WeeChat 2.0.1]
rafik has quit [Ping timeout: 248 seconds]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Psybur has joined #ruby
GinoMan has joined #ruby
mzo has joined #ruby
roshanavand has joined #ruby
netherwolfe has joined #ruby
mzo has quit [Client Quit]
qba73 has joined #ruby
xuyuheng has joined #ruby
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
Burgestrand has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
milardovich has quit [Remote host closed the connection]
schneider has quit [Read error: Connection reset by peer]
schneider has joined #ruby
morfin60 has joined #ruby
<morfin60>
hello
ramfjord has quit [Ping timeout: 264 seconds]
<morfin60>
i am not sure how implement that: i have class A and classes B,C,D inherited from this class, all of them have method to parse all pages called collect_blocks of resource(pool) and i parse them until there is no output, this method is protected and used in multiple public methods of classes, any clue how can i pass code to process single page?
<morfin60>
i realized how dumb was idea trying collect all blocks in huge array and want to rewrite code to process page-by-page
raynold has quit [Quit: Connection closed for inactivity]
jamiejackson2577 has quit [Ping timeout: 264 seconds]
psychicist__ has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
ramfjord has joined #ruby
yrstrly has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
<yrstrly>
Hi, could somebody help me? Got a really basic question about classes I have these two classes : https://imgur.com/a/g4L6N and when I run these code lines Todolist.new, Todo.new("get the milk"), @to_do_list.add(@to_do), I get the error undefined method `add' for nil:NilClass (NoMethodError) even though it's clearly defined in the class and is being applied to an instance of the class
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
xuyuheng has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
clemens3 has quit [Ping timeout: 248 seconds]
TaintedTrust has quit [Ping timeout: 245 seconds]
synthroid has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
xuyuheng has joined #ruby
<mzo>
yrstrly: @to_do_list only exists within the Todolist class
<mzo>
it's an instance variable
<mzo>
even if it did exist, it's just an array. not a Todolist. so you wouldn't call .add on it
<yrstrly>
yes but the method add is defined in that class too
<yrstrly>
so why can't I add it?
za1b1tsu has joined #ruby
<mzo>
you can call .add on an instance of the Todolist class. nothing else.
<mzo>
@to_do_list is not an instance of the Todolist class, so you can't call .add on it.
synthroid has joined #ruby
synthroid has quit [Remote host closed the connection]
synthroi_ has joined #ruby
<yrstrly>
why is it not? it's defined in the initialize method for the class, so whenever Todolist.new is entered @to_do_list, an instance of the class Todolist, which is an empty array, will be created?
<yrstrly>
I need to change the push in the method definition?
ramfjord has quit [Ping timeout: 260 seconds]
<mzo>
within the context of the Todolist class, @to_do_list is an Array
<mzo>
outside of the context of the Todolist class, @to_do_list is not anything.
<mzo>
that's why it evaluates to nil
<mzo>
there is no context where @to_do_list is an instance of the Todolist class
Silthias has joined #ruby
aufi has quit [Quit: Leaving]
<phaul>
instance variables despite the name don't point to intances :)
Burgestrand has quit [Quit: Closing time!]
schneider has joined #ruby
duckpuppy has joined #ruby
tolerablyjake has joined #ruby
roshanavand has quit [Quit: Leaving.]
<WhereIsMySpoon>
fucks sake this stupid goddamn library is doing my head in
cagomez has joined #ruby
<WhereIsMySpoon>
im trying to use easy_audio https://github.com/lsegal/easy_audio and im just getting hangs like 70% of the time I try to close an EasyAudio::Stream object
<WhereIsMySpoon>
its nuts
schneider has quit [Ping timeout: 264 seconds]
duckpuppy has quit [Ping timeout: 264 seconds]
<yrstrly>
okay I think I understand, so what can I do to change my code so it works?
wnd-trans has joined #ruby
ldnunes has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
iamdevnul_ has joined #ruby
mr-robert_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GinoMan has quit [Ping timeout: 260 seconds]
nowhere_man has joined #ruby
Silthias has left #ruby [#ruby]
musl_ has joined #ruby
Fraeon has joined #ruby
ghoti_ has joined #ruby
<phaul>
yrstrly: If you want your code to be debugged, paste the whole thing in a gist. see topic.
xuyuheng has quit [Ping timeout: 260 seconds]
jackjackdripper has joined #ruby
Xeago_ has joined #ruby
knight_ has joined #ruby
stairmast0r has joined #ruby
Burgestrand has joined #ruby
atta_ has joined #ruby
MarcWeber has joined #ruby
ccooke_ has joined #ruby
shuforov has quit [Ping timeout: 264 seconds]
sjums has joined #ruby
balo_ has joined #ruby
KeyJoo has joined #ruby
karapetyan has quit [Remote host closed the connection]
<yrstrly>
I'd just like to know how to properly generate an instance, if I've not done it correctly, as I understood it, if you call Todolist.new, you'll have an empty array assigned to variable @to_do_list
<phaul>
x = TodoList.new ; x.add(Todo.new('get milk'))
segy_ has joined #ruby
DTZUZO has joined #ruby
<phaul>
you can factor out the call to Todo.new into a local variable too, just like x
WhereIsMySpoon has quit [Quit: WhereIsMySpoon]
cyberRodent_ has joined #ruby
nowhereman_ has quit [*.net *.split]
segy has quit [*.net *.split]
ericmath1son has quit [*.net *.split]
knight__ has quit [*.net *.split]
Freijo has quit [*.net *.split]
brodul has quit [*.net *.split]
MarcWebe1 has quit [*.net *.split]
sjums_ has quit [*.net *.split]
stairmast0r_ has quit [*.net *.split]
ccooke has quit [*.net *.split]
mrBen2k2k2k has quit [*.net *.split]
cyberRodent has quit [*.net *.split]
atta has quit [*.net *.split]
ghoti has quit [*.net *.split]
redondos has quit [*.net *.split]
erlend has quit [*.net *.split]
wnd has quit [*.net *.split]
badeball has quit [*.net *.split]
VladGh_ has quit [*.net *.split]
balo has quit [*.net *.split]
mrBen2k2k2k_ has quit [*.net *.split]
musl has quit [*.net *.split]
gbailey has quit [*.net *.split]
Fenhl has quit [*.net *.split]
auv has quit [*.net *.split]
iamdevnul has quit [*.net *.split]
Lloyd has quit [*.net *.split]
mr-robert has quit [*.net *.split]
HalcyonicStorm has quit [*.net *.split]
amitchellbullard has quit [*.net *.split]
coffeejunk has quit [*.net *.split]
biox has quit [*.net *.split]
zachary12 has quit [*.net *.split]
Xeago has quit [*.net *.split]
ncopa2 has quit [*.net *.split]
nettie has quit [*.net *.split]
brodul_ has joined #ruby
segy_ is now known as segy
cyberRodent_ is now known as cyberRodent
Xeago_ is now known as Xeago
amitchellbullard has joined #ruby
iamdevnul_ is now known as iamdevnul
mr-robert_ is now known as mr-robert
brodul_ is now known as brodul
wnd-trans is now known as wnd
biox has joined #ruby
erlend has joined #ruby
badeball has joined #ruby
gbailey has joined #ruby
<yrstrly>
Thanks phaul, so there's nothing wrong with how I've defined the classes and methods?
zachary12 has joined #ruby
ericmathison has joined #ruby
sriehl has quit [Ping timeout: 240 seconds]
VladGh has joined #ruby
halbbalda has quit [Ping timeout: 240 seconds]
<phaul>
bad indentations :)
Azure has quit [Ping timeout: 264 seconds]
naquad has quit [Ping timeout: 260 seconds]
GinoMan has joined #ruby
cschneid has quit [Remote host closed the connection]
cschneid has joined #ruby
<phaul>
I think it's fine
schneider has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
sriehl has joined #ruby
sriehl has joined #ruby
sriehl has quit [Changing host]
cdg has joined #ruby
ta_ has quit [Remote host closed the connection]
naquad has joined #ruby
halbbalda has joined #ruby
dn` has quit [Ping timeout: 255 seconds]
coffeejunk has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
<yrstrly>
It now runs, but when I call add and then print the array, it hasn't been pushed into it
jcarl43 has joined #ruby
<yrstrly>
It's still empty
kn-928 has quit [Quit: WeeChat 2.0.1]
rikkipitt has joined #ruby
conta has quit [Ping timeout: 246 seconds]
HalcyonicStorm has joined #ruby
Lloyd has joined #ruby
nettie has joined #ruby
Fenhl has joined #ruby
cdg_ has joined #ruby
auv has joined #ruby
za1b1tsu has quit [Read error: Connection reset by peer]
<phaul>
I also removed the unneeded Array inharitance
ta_ has quit [Ping timeout: 246 seconds]
<yrstrly>
thanks very much
ryandevilla1 has quit [Ping timeout: 263 seconds]
ncopa2 has joined #ruby
yrstrly has quit [Quit: Page closed]
Jeff_D has joined #ruby
jamiejackson2577 has joined #ruby
xuyuheng has quit [Ping timeout: 264 seconds]
GinoMan has quit [Ping timeout: 240 seconds]
morfin60 has quit [Remote host closed the connection]
<Jeff_D>
Can someone point me to equivalent Ruby code for the `gem install --explain` command? Capturing and scraping terminal output doesn't seem like the best way forward
yadnesh has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has joined #ruby
orbyt_ has joined #ruby
andikr has quit [Remote host closed the connection]
xuyuheng has joined #ruby
Flonk has quit [Ping timeout: 268 seconds]
jamiejackson2577 has quit [Ping timeout: 276 seconds]
jamiejackson2577 has joined #ruby
<havenwood>
Jeff_D: For example, try: Gem::Specification.find_by_name('rails').dependencies.map(&:to_s)
oncall-pokemon has quit [Quit: Connection closed for inactivity]
Burgestrand has quit [Quit: Closing time!]
ramfjord has joined #ruby
<Jeff_D>
ah; thank you very much
aupadhye has quit [Ping timeout: 240 seconds]
imode has joined #ruby
netherwolfe has quit [Ping timeout: 264 seconds]
xuyuheng has quit [Ping timeout: 240 seconds]
za1b1tsu has joined #ruby
GinoMan has joined #ruby
ryzokuken has joined #ruby
jamiejackson2577 has quit [Ping timeout: 268 seconds]
ramfjord has quit [Ping timeout: 276 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Yxhuvud has quit [Remote host closed the connection]
darkhanb has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blzn has joined #ruby
Yxhuvud has joined #ruby
rwb has quit [Ping timeout: 264 seconds]
willmichael has quit [Ping timeout: 240 seconds]
redondos has joined #ruby
qba73 has quit [Remote host closed the connection]
xuyuheng has joined #ruby
qba73 has joined #ruby
ta_ has joined #ruby
willmichael has joined #ruby
<Jeff_D>
@havenwood Thanks for that; I was looking for something that does the equivalent of, say, `gem install rails --explain`, which lists specific versions of dependencies, dependencies of dependencies, and so on; it seems odd that I have to walk the dependency tree and build a gem list explicitly. But if that's what it takes, oh well
<IshMael_>
Can someone explain to me, why there isnt a self on the key?(method_name) on the second line?
shpoont has quit [Client Quit]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<phaul>
IshMael_: it's about what self is. If you have time watch https://youtu.be/X2sgQ38UDVY, that should explain what self is
<phaul>
but it's a lot more than what you are asking
clemens3 has quit [Ping timeout: 256 seconds]
<IshMael_>
phaul: yep try to get it in my head ;) but on that example i got stuck
xuyuheng has joined #ruby
IshMael_ has quit [*.net *.split]
Mike11 has quit [*.net *.split]
Rapture has quit [*.net *.split]
willmichael has quit [*.net *.split]
nettie has quit [*.net *.split]
auv has quit [*.net *.split]
Lloyd has quit [*.net *.split]
gbailey has quit [*.net *.split]
biox has quit [*.net *.split]
funnel has quit [*.net *.split]
belmoussaoui has quit [*.net *.split]
dcluna has quit [*.net *.split]
WhereIsMySpoon_ has quit [*.net *.split]
hahuang65_ has quit [*.net *.split]
jordanm has quit [*.net *.split]
unreal_ has quit [*.net *.split]
ghormoon has quit [*.net *.split]
jrm has quit [*.net *.split]
jinie has quit [*.net *.split]
oz has quit [*.net *.split]
cjohnson has quit [*.net *.split]
_derpy has quit [*.net *.split]
rideh has quit [*.net *.split]
exchgr has quit [*.net *.split]
m27frogy has quit [*.net *.split]
rubemlrm has quit [*.net *.split]
volix has quit [*.net *.split]
Tempesta has quit [*.net *.split]
p0p0pr37 has quit [*.net *.split]
boshhead has quit [*.net *.split]
morfin has quit [*.net *.split]
mahlon has quit [*.net *.split]
madhatter has quit [*.net *.split]
havenwood has quit [*.net *.split]
ciscam has quit [*.net *.split]
linduxed has quit [*.net *.split]
Exagone313 has quit [*.net *.split]
ByronJohnson has quit [*.net *.split]
justinmcp has quit [*.net *.split]
jamesaxl has quit [Quit: WeeChat 2.0.1]
Mike11 has joined #ruby
willmichael has joined #ruby
nettie has joined #ruby
auv has joined #ruby
Rapture has joined #ruby
IshMael_ has joined #ruby
oz has joined #ruby
WhereIsMySpoon_ has joined #ruby
rideh has joined #ruby
cjohnson has joined #ruby
jinie has joined #ruby
funnel has joined #ruby
Lloyd has joined #ruby
dcluna has joined #ruby
hahuang65_ has joined #ruby
m27frogy has joined #ruby
madhatter has joined #ruby
unreal_ has joined #ruby
jrm has joined #ruby
ghormoon has joined #ruby
exchgr has joined #ruby
Tempesta has joined #ruby
biox has joined #ruby
volix has joined #ruby
morfin has joined #ruby
_derpy has joined #ruby
rubemlrm has joined #ruby
belmoussaoui has joined #ruby
gbailey has joined #ruby
mahlon has joined #ruby
jordanm has joined #ruby
p0p0pr37 has joined #ruby
boshhead has joined #ruby
justinmcp has joined #ruby
linduxed has joined #ruby
havenwood has joined #ruby
Exagone313 has joined #ruby
ByronJohnson has joined #ruby
ciscam has joined #ruby
rafik has joined #ruby
auv has quit [Max SendQ exceeded]
jrm has quit [Max SendQ exceeded]
Tempesta has quit [Max SendQ exceeded]
belmoussaoui has quit [Max SendQ exceeded]
ghormoon has quit [Max SendQ exceeded]
Exagone313 has quit [Max SendQ exceeded]
funnel has quit [Max SendQ exceeded]
ghormoon has joined #ruby
funnel has joined #ruby
belmoussaoui has joined #ruby
jottr has joined #ruby
<phaul>
basically your gist has too little to tell what self is. But when you are inside a def inside a class statement self would refer to the instance of the class that receives the instance method.
Tempesta has joined #ruby
epochwolf has quit [Ping timeout: 260 seconds]
trautwein has quit [Ping timeout: 260 seconds]
Tempesta has quit [Changing host]
Tempesta has joined #ruby
<phaul>
when a receiver is self most of the time it can be omitted
jrm has joined #ruby
d^sh has quit [Ping timeout: 260 seconds]
<IshMael_>
phaul: thanks for the link to the video , but watched that already a few times
<phaul>
it can'tbe ommited in certain cases, when the syntax confuses the interpreter, like slef.class
<phaul>
self.class
auv has joined #ruby
<phaul>
class would otherwise be a keyword
<apeiros>
or self.foo =
Xeago has quit [Ping timeout: 260 seconds]
yadnesh has quit [Ping timeout: 260 seconds]
ldepandis has joined #ruby
<IshMael_>
phaul: the code is from the Hashie GEM , which is an example from the book "Metaprogramming Ruby 2" by Paolo Perrotta
<IshMael_>
so i just wondered why there is a self.[] when i also can access the keys in that hash without the self in front
<phaul>
[] requires self because the intrepreter doesn't like a bare [] operator without a receiver it. key? is fine with an implicit receiver. It's mostly just syntax really
shpoont has joined #ruby
<IshMael_>
phaul .. that seems to clearify it. thanks for your time and help!
<apeiros>
[] would be an array literal otherwise
<apeiros>
but in the given case, there's also another reason
<apeiros>
they don't use `self[arg1, arg2, …]` as one would usually do
<apeiros>
they use `self.[](arg1, …)`, which is uncommon.
<apeiros>
the reason being that they pass a block. and the syntax sugared form can't take one
<IshMael_>
so far on "ruby is easily readable" :)
atmosx has left #ruby ["WeeChat 1.4"]
<apeiros>
oh, actually it can when it's passed in &block form :-/
<apeiros>
not sure then why they used `self.[](method_name, &blk)` instead of `self[method_name, &blk]`
tcopeland has joined #ruby
<apeiros>
IshMael_: it mostly is. there are always tradeoffs.
rafik has joined #ruby
<IshMael_>
apeiros: thats right! i took me not long to get into ruby. but well the topic metaprogramming and the concepts behind are sometimes like a hard, little nut until i can grasp it
pastorinni has joined #ruby
xuyuheng has joined #ruby
<apeiros>
IshMael_: funny enough, it seems more complex than it actually is
cdg has joined #ruby
<IshMael_>
apeiros: jep .., isnt that fun :-D
<apeiros>
as weird as it is, it just takes a bit of time to unravel the simplicity ;-)
jshjsh has joined #ruby
<apeiros>
(and accepting some of the "cheating" required to get it to work out)
<IshMael_>
apeiros: i hope you are right .. i've just worked trough the first 60 pages, but that gave already a lot of insight. and im sure there is more to come
<apeiros>
for example: there are no class methods in ruby, only instance methods. what people call class methods in ruby, are really just instance methods too.
ledestin has joined #ruby
<apeiros>
i.e. there's not multiple "levels" where methods can exist, only one :)
<apeiros>
and all you have to figure out is to which class/module a method belongs
<IshMael_>
apeiros: yep, got that already. any class is an object too
<IshMael_>
it just depends on the "point of view"
<phaul>
altough lot tools like Yard calls them class methods, maybe even ri - I'm not sure
<IshMael_>
method lookup (one step to the right and up) is learned
<apeiros>
phaul: sure. it's convenient.
<phaul>
I guess you just have to know that it's cheat and it's all fine :)
<phaul>
yep
<apeiros>
I call it class methods too
<apeiros>
it's a lot shorter than instance method of the singleton_class
<IshMael_>
phaul: what me got worried was that in the ruby source there seems to be a different name for eigenclasses(singleton classes) and metaclasses
<apeiros>
ah, dminuoso can probably better explain that
<IshMael_>
so first i thought that they are 2 totally differnt things, but they are not
xuyuheng has quit [Ping timeout: 246 seconds]
JoshS has quit [Ping timeout: 260 seconds]
cdg has quit [Ping timeout: 264 seconds]
tomphp has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
erlend has quit [Ping timeout: 264 seconds]
ResidentBiscuit has joined #ruby
erlend has joined #ruby
xuyuheng has joined #ruby
mtkd has joined #ruby
milardovich has joined #ruby
ResidentBiscuit has quit [Ping timeout: 245 seconds]
AndBobsYourUncle has joined #ruby
shpoont has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xuyuheng has quit [Ping timeout: 246 seconds]
milardovich has quit [Ping timeout: 240 seconds]
jshjsh has quit [Quit: Leaving]
minimalism has quit [Ping timeout: 260 seconds]
Sr_X has quit [Quit: Konversation terminated!]
Sr_X has joined #ruby
alex`` has quit [Ping timeout: 256 seconds]
vcavallo_ has joined #ruby
rafik has quit [Ping timeout: 264 seconds]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rafik has joined #ruby
shpoont has joined #ruby
vcavallo_ has quit [Remote host closed the connection]