baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.0, 2.3.3 & 2.2.6: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
agent_white has quit [Quit: brb]
nettoweb has joined #ruby
mostlybadfly has joined #ruby
versigtig has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
safetypin has joined #ruby
gusrub has joined #ruby
harfangk has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
boombox_ has joined #ruby
Uranio has joined #ruby
Uranio has left #ruby [#ruby]
kht has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
Toledo-afk is now known as croberts
mtkd has quit [Ping timeout: 258 seconds]
choke has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
mim1k has joined #ruby
Joufflu has quit [Quit: Leaving]
Xentil has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
DTZUZU has joined #ruby
boombox_ has quit [Remote host closed the connection]
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
t-recx has quit [Read error: No route to host]
cschneid_ has quit [Ping timeout: 240 seconds]
t-recx has joined #ruby
safetypin has quit [Quit: ZZZzzz…]
jhack has joined #ruby
jhack has quit [Client Quit]
jhack has joined #ruby
Xiti has joined #ruby
jhack has quit [Client Quit]
nofxx has quit [Ping timeout: 240 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
abdulmugni has quit [Read error: Connection reset by peer]
nadir has quit [Quit: Connection closed for inactivity]
pawnbox has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ResidentBiscuit has joined #ruby
cschneid_ has joined #ruby
pawnbox has quit [Ping timeout: 268 seconds]
marr has quit [Ping timeout: 240 seconds]
despai has quit [Ping timeout: 240 seconds]
kht has joined #ruby
despai has joined #ruby
cschneid_ has quit [Ping timeout: 240 seconds]
Rich_Morin1 has joined #ruby
hutch34 has joined #ruby
ur5us has joined #ruby
nfsnobody- is now known as nfsnobody
jhack has joined #ruby
bkxd has joined #ruby
despai has quit [Client Quit]
jhack has quit [Client Quit]
gloscombe_ has quit [Quit: gloscombe_]
jenrzzz has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
montanonic has quit [Ping timeout: 260 seconds]
TPug has joined #ruby
bkxd has quit [Ping timeout: 268 seconds]
duderonomy has joined #ruby
jphase has quit []
cdg has joined #ruby
longtran415 has quit [Ping timeout: 245 seconds]
elifoster has quit [Ping timeout: 240 seconds]
DaniG2k has joined #ruby
zeroDi has quit [Quit: WeeChat 1.7]
d^sh has quit [Ping timeout: 240 seconds]
d^sh has joined #ruby
agent_white has joined #ruby
gevans has quit [Remote host closed the connection]
<Rich_Morin1> !@#$% Adium copy/paste bug - "https://gist.github.com/RichMorin/e040044b109ba032b9338083b728b5cc"
gevans has joined #ruby
acosonic has quit [Read error: Connection reset by peer]
acosonic has joined #ruby
csk157 has joined #ruby
xen0fon has joined #ruby
pawnbox has joined #ruby
Rich_Morin1 has quit [Quit: Leaving.]
gevans has quit [Ping timeout: 240 seconds]
veduardo has joined #ruby
Rich_Morin has joined #ruby
lanc has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 260 seconds]
csk157 has quit [Ping timeout: 260 seconds]
gnufied has quit [Ping timeout: 258 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
lanc has joined #ruby
UnknownSoldier has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 240 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
_djbkd has quit [Quit: My people need me...]
csk has joined #ruby
banisterfiend has joined #ruby
duderonomy has quit [Ping timeout: 240 seconds]
kikesarebastards has joined #ruby
<kikesarebastards> can i write a network stack in ruby?
bheesham has joined #ruby
creature has joined #ruby
<creature> Hello. I'm having a devil of a time setting up rbenv on macOS. If there's a better channel than this, I am all ears.
<creature> I have installed rbenv via Homebrew. I have added a line to my .bashrc that reads "if which rbenv > /dev/null; then eval "$(rbenv init - --no-rehash)"; fi". That all works fine. But trying to run something (eg. "rbenv versions") results in infinitely forking processes.
<creature> (They spool hundreds of nested rbenv init - --no-rehash)
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
ncthom91 has joined #ruby
nadir has joined #ruby
t-recx has quit [Quit: t-recx]
ncthom91 has quit [Max SendQ exceeded]
cagomez has quit [Remote host closed the connection]
ncthom91 has joined #ruby
ncthom91 has quit [Max SendQ exceeded]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
kikesarebastards was kicked from #ruby by ruby[bot] [nickname is not suitable for this channel, see http://ruby-community.com/pages/user_rules]
nankyokusei has joined #ruby
gnufied has joined #ruby
ncthom91 has joined #ruby
Chagel has joined #ruby
ncthom91 has quit [Max SendQ exceeded]
ncthom91 has joined #ruby
raspado has quit [Quit: Leaving...]
al2o3-cr has joined #ruby
ncthom91 has quit [Client Quit]
newrubycoder has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
mikeiniowa has quit [Ping timeout: 260 seconds]
cagomez has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
cagomez has quit [Ping timeout: 260 seconds]
kht has quit [Ping timeout: 260 seconds]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
dc4 has quit [Ping timeout: 268 seconds]
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
gusrub has quit [Client Quit]
last_staff has quit [Quit: last_staff]
ecuanaso has joined #ruby
kht has joined #ruby
pawnbox has joined #ruby
sepp2k has quit [Quit: Leaving.]
bkxd has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
brent__ has quit [Ping timeout: 264 seconds]
duderonomy has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tvw has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 260 seconds]
dviola has quit [Quit: WeeChat 1.7]
TPug has joined #ruby
hutch34 has joined #ruby
skweek has joined #ruby
raul782 has quit [Remote host closed the connection]
montanonic has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rakm has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JoshS has joined #ruby
moei has quit [Quit: Leaving...]
jaiks has quit [Ping timeout: 276 seconds]
Chagel has quit [Ping timeout: 268 seconds]
AndBobsYourUncle has quit [Ping timeout: 240 seconds]
Chagel has joined #ruby
raul782 has joined #ruby
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tlahtoani has quit [Quit: Connection closed for inactivity]
mim1k has joined #ruby
raul782 has quit [Ping timeout: 255 seconds]
ruby-lang201 has joined #ruby
gdonald has joined #ruby
__Yiota has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
kht has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 255 seconds]
gevans has joined #ruby
gevans has quit [Remote host closed the connection]
safetypin has joined #ruby
gevans has joined #ruby
g_evans has joined #ruby
gevans has quit [Read error: Connection reset by peer]
ylecuyer has joined #ruby
gevans has joined #ruby
g_evans has quit [Read error: Connection reset by peer]
<ylecuyer> Hi, i'm trying to have an object with an internal state and I'd like to have one function with the implementation depending on the internal state of the object
ruby-lang201 has quit [Ping timeout: 260 seconds]
<ylecuyer> Something like what state_machines do
csk has quit [Quit: ZZZzzz…]
<ylecuyer> state :parked do def speed 0 end end
hanmac has left #ruby [#ruby]
<Zarthus> use pastebin if you want code to get pasted eleganrly :)
JeanCarloMachado has joined #ruby
<Zarthus> are you just looking for an if statement?
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
<ylecuyer> Zarthus: my bad: http://pastebin.com/TiJTui4Z
<ruby[bot]> ylecuyer: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/472e5fcaf67ec60dd97383b29f5c474f
<ruby[bot]> ylecuyer: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
jameser_ has joined #ruby
<Zarthus> ylecuyer: I think you're looking for @state = :parked, if @state == :parked return 0
Channel6 has joined #ruby
<ylecuyer> Zarthus: I don't wan't to use state_machines but I wan't to be able to code a class like the one given in the bin
ur5us_ has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
<ylecuyer> Zarthus: I think I have to find the way to implement the method not found in object rescue in order to apply the method defined in the state
jameser has quit [Ping timeout: 260 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Zarthus> is this some rails terms i'm not getting?
TPug has joined #ruby
<ylecuyer> Zarthus: no this has nothing related to rails it's pure ruby
duderonomy has quit [Ping timeout: 240 seconds]
<Zarthus> ylecuyer, I might be completely misunderstanding, but is this not what you want?
JeanCarloMachado has quit [Ping timeout: 255 seconds]
tildes has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
<ylecuyer> Zarthus: something like that but inverted, I don't want the implementation of speed to be dependent on the state, I want for each state to define a speed function
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 260 seconds]
<Zarthus> You could do something like `SpeedStruct = Struct.new(:state, :speed)
<Zarthus> then driving = SpeedStruct.new(:driving, 60)
<Zarthus> can't say i've ever considered this to be necessary though
<ylecuyer> Zarthus: an implementation like this: http://pastebin.com/0hGpn89q
<ruby[bot]> ylecuyer: as I told you already, please use https://gist.github.com
d^sh has quit [Ping timeout: 255 seconds]
<elomatreb> Why not just something simple along the lines of https://eval.in/739155 ?
bmurt has joined #ruby
montanonic has quit [Ping timeout: 240 seconds]
d^sh has joined #ruby
tildes has joined #ruby
<ylecuyer> Zarthus: elomatreb: because the implementation of speed will not be as simple, it's for readability
danielpclark has quit [Quit: Leaving]
<elomatreb> Maybe a hash consisting of states as keys and lambdas that calculate it as values?
bkxd has joined #ruby
UnknownSoldier has joined #ruby
xall_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
<ylecuyer> Zarthus: elomatreb: I think I have something, I have to use a mix of method_missing, instance_method and bind
<Zarthus> that sounds like an anti-saolution
jaiks has joined #ruby
veduardo has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
hays has joined #ruby
hays has quit [Remote host closed the connection]
gnufied has quit [Quit: Leaving]
amclain has quit [Quit: Leaving]
herbmillerjr has joined #ruby
Rodya_ has joined #ruby
bousquet has joined #ruby
Chagel has quit [Ping timeout: 240 seconds]
bruce_lee has quit [Ping timeout: 258 seconds]
bruce_lee has joined #ruby
DaniG2k has quit [Quit: leaving]
<Rich_Morin> Can anyone suggest something that could cause a Sinatra session entry to disappear between an after() callback and the succeeding before() callback - 'https://gist.github.com/RichMorin/e040044b109ba032b9338083b728b5cc'
j416 has quit [Ping timeout: 268 seconds]
duderonomy has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
jshjsh has joined #ruby
j416 has joined #ruby
JoshS has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Chagel has joined #ruby
gevans has quit [Remote host closed the connection]
bruce_lee has quit [Remote host closed the connection]
gevans has joined #ruby
Rodya_ has quit [Ping timeout: 255 seconds]
nofxx has joined #ruby
gevans has quit [Remote host closed the connection]
jameser_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Chagel has quit [Ping timeout: 240 seconds]
j416 has quit [Ping timeout: 255 seconds]
jameser has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
Channel6 has quit [Ping timeout: 240 seconds]
xall_ has quit [Quit: WeeChat 1.7]
xall has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JeanCarloMachado has joined #ruby
j416 has joined #ruby
deepbook5broo has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
eelster has joined #ruby
BabyMario has joined #ruby
tdy has quit [Ping timeout: 245 seconds]
bousquet has quit [Remote host closed the connection]
nictrasavios has left #ruby ["Ex-Chat"]
nankyokusei has joined #ruby
Channel6 has joined #ruby
balazs has quit [Ping timeout: 240 seconds]
Cohedrin has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
skweek has quit [Ping timeout: 260 seconds]
deepbook5broo has left #ruby [#ruby]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub has joined #ruby
tdy has joined #ruby
lanc has quit [Quit: zzZZZZzzZZZZzzZZzzZZZZzzzzzzzzz]
charliesome has joined #ruby
p0p0pr37 has quit [Read error: Connection reset by peer]
rkazak has quit [Read error: Connection reset by peer]
p0p0pr37 has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rakm has joined #ruby
ResidentBiscuit has joined #ruby
bkxd has joined #ruby
elifoster has joined #ruby
rkazak has joined #ruby
dc4 has joined #ruby
jshjsh is now known as JoshS
JeanCarloMachado has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ResidentBiscuit has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
Chagel has joined #ruby
UnknownSoldier has quit [Remote host closed the connection]
arescorpio has joined #ruby
Derperperd has quit [Ping timeout: 240 seconds]
Derperperd has joined #ruby
gusrub has quit [Remote host closed the connection]
balazs has joined #ruby
braincrash has quit [Quit: bye bye]
charliesome has joined #ruby
tlahtoani has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
enterprisey has joined #ruby
JeanCarloMachado has joined #ruby
cschneid_ has joined #ruby
cdg has joined #ruby
gusrub has joined #ruby
skweek has joined #ruby
gusrub has quit [Client Quit]
cdg has quit [Remote host closed the connection]
Rodya_ has joined #ruby
jeyraof^mbpr has joined #ruby
hutch34 has joined #ruby
cschneid_ has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
howdoi has joined #ruby
nanoz has joined #ruby
chouhoulis has quit [Remote host closed the connection]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobunny has joined #ruby
cagomez has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
blackwind_123 has quit [Ping timeout: 240 seconds]
dc4 has quit [Ping timeout: 240 seconds]
xall has quit [Ping timeout: 240 seconds]
cagomez has quit [Ping timeout: 240 seconds]
xall has joined #ruby
AnoHito_ has quit [Quit: Leaving]
aryaching has joined #ruby
tusharmalik has joined #ruby
JeanCarloMachado has quit [Ping timeout: 268 seconds]
JeanCarloMachado has joined #ruby
bkxd has joined #ruby
gix has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
gix has joined #ruby
nunchuck has quit [Read error: Connection reset by peer]
jaiks has quit [Ping timeout: 240 seconds]
jc_io has quit [Quit: WeeChat 0.3.7]
mech_V has joined #ruby
Tech has joined #ruby
hotpancakes has quit []
AnoHito has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
braincrash has joined #ruby
jaiks has joined #ruby
aryaching_ has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
ylecuyer has quit [Ping timeout: 260 seconds]
bigtawm has quit [Read error: Connection reset by peer]
Tech has quit [Read error: Connection reset by peer]
aryaching has joined #ruby
Tech has joined #ruby
CloCkWeRX has quit [Remote host closed the connection]
aryaching has quit [Read error: Connection reset by peer]
aryaching has joined #ruby
Channel6 has quit [Quit: Leaving]
CloCkWeRX has joined #ruby
jenrzzz has joined #ruby
aryaching_ has quit [Ping timeout: 260 seconds]
elifoster has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
rfizzle has joined #ruby
electrostat has quit [Quit: uwotm8]
electrostat has joined #ruby
jared_nyc has joined #ruby
montanonic has joined #ruby
Sammichmaker has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
pawnbox has joined #ruby
antoniobeyah has quit [Quit: Connection closed for inactivity]
AnoHito has quit [Quit: Leaving]
nankyokusei has quit [Ping timeout: 240 seconds]
CloCkWeRX has quit [Ping timeout: 240 seconds]
renchan has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
JeanCarloMachado has quit [Ping timeout: 255 seconds]
JeanCarloMachado has joined #ruby
AnoHito has joined #ruby
squ has joined #ruby
bkxd has joined #ruby
anisha has joined #ruby
CloCkWeRX has joined #ruby
Chagel has quit [Ping timeout: 240 seconds]
tusharmalik has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
bkxd has quit [Ping timeout: 268 seconds]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
RickHull has joined #ruby
sal_ has joined #ruby
sal_ has quit [Client Quit]
braincrash has quit [Ping timeout: 260 seconds]
braincrash has joined #ruby
jamesaxl has joined #ruby
rakm has joined #ruby
Chagel has joined #ruby
zenguy_pc has quit [Ping timeout: 258 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zenguy_pc has joined #ruby
triangles has joined #ruby
Burgestrand has joined #ruby
djellemah_ has joined #ruby
raul782 has joined #ruby
Burgestrand has quit [Client Quit]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
raul782 has quit [Ping timeout: 260 seconds]
ifctj has joined #ruby
Rodya_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BabyMario has quit [Quit: bye]
saneax-_-|AFK is now known as saneax
bocaneri has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
Rodya_ has quit [Ping timeout: 240 seconds]
arescorpio has quit [Quit: Leaving.]
ur5us_ has quit [Remote host closed the connection]
raul782 has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
rfizzle has quit [Quit: Textual IRC Client: www.textualapp.com]
JeanCarloMachado has joined #ruby
Tech has quit [Quit: Leaving]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cschneid_ has joined #ruby
_djbkd has joined #ruby
charliesome has joined #ruby
haraoka has joined #ruby
cschneid_ has quit [Ping timeout: 240 seconds]
_djbkd has quit [Client Quit]
minimalism has quit [Quit: minimalism]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
pilne has quit [Quit: Quitting!]
minimalism has joined #ruby
LoneHer__ has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
acalycine has joined #ruby
pawnbox has joined #ruby
Clarity has joined #ruby
tolerablyjake has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rippa has joined #ruby
brent__ has quit [Ping timeout: 260 seconds]
xen0fon has quit [Quit: xen0fon]
tolerablyjake has quit [Quit: Textual IRC Client: www.textualapp.com]
bkxd has joined #ruby
versigtig has quit [Quit: This computer has gone to sleep]
djbkd_ has joined #ruby
Anonymoose2 has joined #ruby
dionysus69 has joined #ruby
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
raul782 has quit [Remote host closed the connection]
reverberations has quit [Ping timeout: 240 seconds]
Tempesta has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
jgnagy_ has quit [Remote host closed the connection]
triangles has quit [Quit: Leaving]
al2o3-cr_ has joined #ruby
Tempesta has joined #ruby
al2o3-cr has quit [Disconnected by services]
al2o3-cr_ is now known as al2o3-cr
LoneHer__ has quit [Remote host closed the connection]
tlahtoani has quit [Quit: Connection closed for inactivity]
bkxd has joined #ruby
LoneHerm_ has joined #ruby
<jamesaxl> hi
Rodya_ has joined #ruby
Derperperd has quit [Ping timeout: 268 seconds]
esObe has quit [Remote host closed the connection]
esObe has joined #ruby
tusharmalik has joined #ruby
squ has quit [Ping timeout: 245 seconds]
Rodya_ has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
grh has joined #ruby
esObe has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
ta has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
aufi has joined #ruby
nankyokusei has joined #ruby
djbkd_ has quit []
ifctj has quit [Read error: Connection reset by peer]
ifctj has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
padi_ has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 240 seconds]
raldu has quit [Quit: Lost terminal]
montanonic has quit [Ping timeout: 240 seconds]
grh has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
padi_ has joined #ruby
pawnbox has quit [Ping timeout: 255 seconds]
teclator has joined #ruby
agit0 has joined #ruby
padi_ has quit [Remote host closed the connection]
ta has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
esObe has joined #ruby
JeanCarloMachado has joined #ruby
al2o3-cr has quit [Ping timeout: 255 seconds]
ifctj has quit [Ping timeout: 260 seconds]
esObe has quit [Remote host closed the connection]
jeyraof^mbpr has quit [Quit: This computer has gone to sleep]
esObe has joined #ruby
padi_ has joined #ruby
jeyraof^mbpr has joined #ruby
esObe has quit [Ping timeout: 240 seconds]
padi_ has quit [Ping timeout: 260 seconds]
Burgestrand has joined #ruby
bheesham has quit [Ping timeout: 240 seconds]
tildes has quit [Remote host closed the connection]
vondruch has joined #ruby
djbkd_ has joined #ruby
csk157 has joined #ruby
djbkd_ has quit [Remote host closed the connection]
djbkd_ has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
rafadc has joined #ruby
Derperperd has joined #ruby
JeanCarloMachado has joined #ruby
acalycine has quit [Quit: bye]
aganov has joined #ruby
djbkd_ has quit [Ping timeout: 240 seconds]
Definity has quit [Ping timeout: 255 seconds]
Axy has quit [Read error: Connection reset by peer]
x0f has quit [Ping timeout: 256 seconds]
Derperperd has quit [Ping timeout: 240 seconds]
Snickers has joined #ruby
Kahraman has joined #ruby
padi_ has joined #ruby
pawnbox has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Mia has joined #ruby
JoshS has quit [Ping timeout: 260 seconds]
vasilakisfil has joined #ruby
mark_66 has joined #ruby
Pumukel has joined #ruby
persand has joined #ruby
padi_ has quit [Ping timeout: 268 seconds]
Ishido has joined #ruby
aupadhye has joined #ruby
Morrolan_ has quit [Quit: Goodbye]
Morrolan has joined #ruby
Morrolan has quit [Client Quit]
jared_nyc has quit [Quit: Connection closed for inactivity]
Morrolan has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
<vasilakisfil> hello
JeanCarloMachado has quit [Ping timeout: 255 seconds]
JeanCarloMachado has joined #ruby
grh has joined #ruby
<vasilakisfil> I have a question. I have a parent class (say Animal) which has some sub classes (say Cat and Dog, Shark, Chicken..). On some of those subclasses, I include a module (say Walkable) in which I do a lot of memoization (say `can_move?` method memoizes the calculated value) and save the values in the class variables because I want the memoized value to be singleton, it's the same for every object of the class (and it's the same for
<vasilakisfil> every class in the Animal family). So whichever class calls `can_move?` method first, it memoizes the value of that method in a class variable @@can_move. Now I am wondering, given that class variables are shared between parent and children, is Ruby smart enough to actually have only one reference on memory for the @@can_move variable or does it create a new copy for each class, leading to excessive usage of memory (in my scenario
<vasilakisfil> the equivelant of `can_move?` saves a ton of data)
mikecmpbll has joined #ruby
mim1k has joined #ruby
persand has quit [Quit: persand]
mikecmpbll has quit [Quit: inabit. zz.]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
teclator has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
loechel has joined #ruby
x0f has joined #ruby
browndawg has quit [Ping timeout: 268 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
browndawg has joined #ruby
troulouliou_div2 has joined #ruby
loechel has quit [Ping timeout: 240 seconds]
enterprisey has quit [Ping timeout: 240 seconds]
JoshS has joined #ruby
jeyraof^mbpr has quit [Quit: This computer has gone to sleep]
felltir has joined #ruby
Sammichmaker has joined #ruby
Sammichmaker has joined #ruby
Sammichmaker has quit [Changing host]
<Burgestrand> vasilakisfil I can't say I entirely understand your question, but ruby's pretty much all about references, so even if each different "instance" of the variable (I doubt there are multiple instances, I believe it's just one) was it's own reference it would be of minimal impact on memory unless you had a bazillion subclasses each of them including the module (at which point your memory usage probably comes from the bazillion
<Burgestrand> subclasses)
last_staff has joined #ruby
jgnagy has joined #ruby
<Burgestrand> vasilakisfil i.e. https://eval.in/739302 — you can tell it's the same object_id no matter from where I access it
teclator has joined #ruby
<Bish> ?paste
<ruby[bot]> Bish: I don't know anything about paste
<Bish> where do i paste my stuff :(
<Burgestrand> ?code Bish
<ruby[bot]> Bish: We can't help you without your code, please post it to https://gist.github.com
<Burgestrand> :D
<Burgestrand> Bish although I do use eval.in most of the time since it also evaluates the rooby
<Burgestrand> >> "I am also from eval.in!"
<ruby[bot]> Burgestrand: # => "I am also from eval.in!" (https://eval.in/739303)
<Bish> Burgestrand: thanks
tomphp has joined #ruby
dhollinger has quit [Ping timeout: 264 seconds]
jgnagy has quit [Ping timeout: 260 seconds]
dhollinger has joined #ruby
hahuang61 has quit [Ping timeout: 258 seconds]
pandaant has joined #ruby
<vasilakisfil> Burg
<vasilakisfil> Burgestrand that helped a lot thanks!
<vasilakisfil> (the eval.in link)
<Burgestrand> vasilakisfil :)
aupadhye has quit [Ping timeout: 255 seconds]
TomyLobo has quit [Ping timeout: 255 seconds]
Lukefahr has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
moei has joined #ruby
mim1k has joined #ruby
opt9 has quit [Quit: Bye bye]
SirOlive_ has joined #ruby
skweek has joined #ruby
alexherbo2 has joined #ruby
SirOlive_ has quit [Max SendQ exceeded]
alexherbo2 has quit [Client Quit]
lxsameer has joined #ruby
Tramy has joined #ruby
nettoweb has joined #ruby
hahuang61 has joined #ruby
psychicist__ has joined #ruby
Beams has joined #ruby
nofxx has quit [Ping timeout: 255 seconds]
blackmesa has joined #ruby
jdm has joined #ruby
Tramy has quit [Quit: Bye]
marr has joined #ruby
<ytti_> how on earth does this make sense? Distribution removes files from standard library and packages them in new OS packages
<ytti_> that is seriously advanced stupid
<ytti_> like peer-reviewed breaking new grounds in the field of clinically stupid
willymox has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ketan has quit [Remote host closed the connection]
ketan has joined #ruby
aryaching_ has joined #ruby
haraoka has quit [Ping timeout: 240 seconds]
aryaching has quit [Ping timeout: 260 seconds]
<xpt> good job alpine team, you made my day :D
braincrash has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
TomyWork has joined #ruby
workmad3 has joined #ruby
tvw has joined #ruby
tvw has quit [Client Quit]
tvw has joined #ruby
tvw has quit [Remote host closed the connection]
Lukefahr has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
tvw has quit [Client Quit]
tvw has joined #ruby
Burgestrand has quit [Quit: Closing time!]
tvw has quit [Client Quit]
tvw has joined #ruby
Derperperd has joined #ruby
quiqua has joined #ruby
astrobunny has quit [Remote host closed the connection]
Derperperd has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
toretore has joined #ruby
lenwood has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby
binaryplease has joined #ruby
freddymungo_ has joined #ruby
Burgestrand has joined #ruby
bkxd has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
freddymungo_ has quit [Max SendQ exceeded]
binaryplease has quit [Quit: binaryplease]
MoskitoHero has joined #ruby
freddymungo_ has joined #ruby
freddymungo_ has quit [Max SendQ exceeded]
alexherbo2 has joined #ruby
alexherbo2 is now known as alex``
bkxd has quit [Ping timeout: 240 seconds]
TheHodge has joined #ruby
patarr has joined #ruby
Pumukel has joined #ruby
blackmesa has quit [Ping timeout: 268 seconds]
jgnagy has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
lenwood has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 268 seconds]
ResidentBiscuit has joined #ruby
nicolai86 has quit [Quit: ZNC - http://znc.in]
nicolai86 has joined #ruby
rafadc has quit [Quit: Bye!]
ResidentBiscuit has quit [Ping timeout: 240 seconds]
aryaching has joined #ruby
aryaching_ has quit [Ping timeout: 260 seconds]
jdm_ has joined #ruby
xall_ has joined #ruby
milardovich has joined #ruby
xall has quit [Ping timeout: 255 seconds]
jdm has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
braincrash has joined #ruby
Lukefahr has joined #ruby
blackmesa has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
jaruga______ has joined #ruby
Pumukel has quit [Remote host closed the connection]
jaruga_______ has joined #ruby
Pumukel has joined #ruby
xall_ has quit [Ping timeout: 260 seconds]
jaruga______ has quit [Ping timeout: 260 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
braincrash has quit [Ping timeout: 260 seconds]
ferr1 has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
mlkkk has joined #ruby
patarr has joined #ruby
Lukefahr has quit []
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Rodya_ has joined #ruby
Chagel has quit [Ping timeout: 260 seconds]
patarr has quit [Ping timeout: 260 seconds]
mim1k has joined #ruby
<phage> I'm importing a class from another file located in the same folder as the "main" ruby file. However, it requires I give it the full system path to the file I want to import for it to work. Any way I can tell it to look in the same folder?
<phage> I'm an idiot. Please disregard the above question.
acalycine has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
mostlybadfly has joined #ruby
acalycine has quit [Client Quit]
A124 has quit [Ping timeout: 276 seconds]
psychicist__ has quit [Ping timeout: 260 seconds]
A124 has joined #ruby
psychicist__ has joined #ruby
bkxd has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
MoskitoHero has quit [Ping timeout: 255 seconds]
hahuang61 has joined #ruby
aglorei has quit [Read error: Connection reset by peer]
aglorei has joined #ruby
psychicist__ has quit [Ping timeout: 260 seconds]
hahuang61 has quit [Ping timeout: 260 seconds]
Lukefahr has joined #ruby
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
aupadhye has joined #ruby
jameser has joined #ruby
mlkkk has quit [Remote host closed the connection]
milardovich has quit [Read error: No route to host]
milardovich has joined #ruby
felltir has quit [Remote host closed the connection]
SirOliver has joined #ruby
MoskitoHero has joined #ruby
Beams has quit [Quit: .]
xall_ has joined #ruby
peitur has joined #ruby
nettoweb1 has joined #ruby
peitur has quit [Client Quit]
braincrash has joined #ruby
tusharmalik has quit [Ping timeout: 260 seconds]
nettoweb has quit [Ping timeout: 255 seconds]
milardovich has quit [Remote host closed the connection]
SirOlive_ has joined #ruby
milardovich has joined #ruby
<Burgestrand> phage don't forget to post your answer for all us other idiots, you never know who it might help :)
<phage> Burgestrand: Fair :) I simply appended "./" in front of the file name :)
SirOliver has quit [Ping timeout: 255 seconds]
<phage> prepended, must be the correct term
milardov_ has joined #ruby
milardovich has quit [Remote host closed the connection]
despai has joined #ruby
vasilakisfil has quit [Ping timeout: 240 seconds]
<Burgestrand> hehe :)
quiqua has quit [Quit: Textual IRC Client: www.textualapp.com]
agent_white has quit [Ping timeout: 240 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SirOliver has joined #ruby
milardovich has joined #ruby
SirOlive_ has quit [Ping timeout: 240 seconds]
xall_ has quit [Ping timeout: 268 seconds]
milardov_ has quit [Ping timeout: 255 seconds]
davezd has joined #ruby
Derperperd has joined #ruby
cschneid_ has joined #ruby
xall_ has joined #ruby
cschneid_ has quit [Ping timeout: 240 seconds]
Derperperd has quit [Ping timeout: 240 seconds]
SirOliver has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Rodya_ has joined #ruby
opt9 has joined #ruby
SirOliver has joined #ruby
xall_ has quit [Ping timeout: 255 seconds]
vuoto has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
djellemah_ has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 240 seconds]
jose_leeto has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
vasilakisfil has joined #ruby
MoskitoHero has quit [Quit: Konversation terminated!]
SirOliver has quit [Quit: ZZZzzz…]
xen0fon has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
milardovich has quit [Remote host closed the connection]
xen0fon has quit [Client Quit]
milardovich has joined #ruby
bkxd has joined #ruby
milardovich has quit [Ping timeout: 255 seconds]
bkxd has quit [Ping timeout: 240 seconds]
tyang has joined #ruby
tyang_ has joined #ruby
Pumukel has joined #ruby
SirOliver has joined #ruby
Burgestrand has quit [Quit: Closing time!]
SirOliver has quit [Client Quit]
mlkkk has joined #ruby
tyang has quit [Ping timeout: 240 seconds]
psychicist__ has joined #ruby
eugenmayer has joined #ruby
loechel has joined #ruby
acosonic has quit [Read error: Connection reset by peer]
<eugenmayer> is it possible to create a Thor executable, but not only call ThorComman.start .. but rather also passing some default args?
tvw has quit [Ping timeout: 268 seconds]
mlkkk has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
aryaching_ has joined #ruby
newrubycoder has joined #ruby
flak has joined #ruby
csk has joined #ruby
loechel has quit [Ping timeout: 260 seconds]
Derperperd has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
bheesham has joined #ruby
rippa has quit [Ping timeout: 260 seconds]
flak has quit [Client Quit]
Pumukel has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
tonini has joined #ruby
bheesham has quit [Ping timeout: 260 seconds]
dn` has quit [Read error: Connection reset by peer]
dn` has joined #ruby
jsho has joined #ruby
<apeiros> phage: it's generally a bad idea to require a path relative to ".". It is brittle. Even more so if your executable doesn't enforce a specific working directory (which usually is the case - rare exceptions are tools like rake)
nadir has joined #ruby
tusharmalik has joined #ruby
newrubycoder has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
__Yiota has joined #ruby
millerti has joined #ruby
SirOliver has joined #ruby
newbie1 has joined #ruby
davezd has quit [Quit: Leaving]
SirOliver has quit [Client Quit]
ecuanaso has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
jeffreylevesque_ has joined #ruby
UnknownSoldier has joined #ruby
mim1k has joined #ruby
jeffreylevesque_ is now known as jeffreylevesque
pozvo[m] has joined #ruby
mlkkk has joined #ruby
Rodya_ has joined #ruby
sepp2k has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vasilakisfil has quit [Remote host closed the connection]
eugenmayer has quit [Quit: Leaving.]
vasilakisfil has joined #ruby
opt9 has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
<manveru> well, that's what require_relative is for...
safetypin has quit [Quit: ZZZzzz…]
cagomez has joined #ruby
sjums has left #ruby ["Leaving"]
johnzorn has quit [Ping timeout: 276 seconds]
tvw has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 268 seconds]
despai has quit [Ping timeout: 260 seconds]
johnzorn has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
despai has joined #ruby
bkxd has joined #ruby
glcx has joined #ruby
glcx has joined #ruby
glcx has quit [Changing host]
jeffreylevesque has quit [Read error: Connection reset by peer]
newbie1 has quit [Read error: Connection reset by peer]
newbie1 has joined #ruby
jeffreylevesque has joined #ruby
newbie1 has quit [Read error: Connection reset by peer]
newbie1 has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
hahuang61 has joined #ruby
newbie12 has joined #ruby
Derperperd has quit [Ping timeout: 260 seconds]
brent__ has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
newbie1 has quit [Ping timeout: 240 seconds]
raul782 has joined #ruby
jeffreylevesque has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
hahuang61 has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
synthroid has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
ResidentBiscuit has joined #ruby
stevenhong has joined #ruby
Pumukel has joined #ruby
ResidentBiscuit has quit [Ping timeout: 240 seconds]
stevenhong has quit [Remote host closed the connection]
Lukefahr has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
bmurt has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest69 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
milardovich has quit [Ping timeout: 240 seconds]
opt9 has joined #ruby
Guest69 has joined #ruby
pawnbox has quit [Remote host closed the connection]
newbie1 has joined #ruby
newbie1 has quit [Max SendQ exceeded]
rfoust has joined #ruby
griffindy has joined #ruby
yqt has joined #ruby
railswebdev has joined #ruby
newbie12 has quit [Ping timeout: 240 seconds]
pozvo[m] has left #ruby ["User left"]
ramortegui has joined #ruby
Clarity has quit [Remote host closed the connection]
rafadc has joined #ruby
t-recx has joined #ruby
nowhereman has joined #ruby
braincrash has quit [Ping timeout: 260 seconds]
Lukefahr has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
CrazyEddy has quit [Remote host closed the connection]
nowhereman has quit [Remote host closed the connection]
bgray_ is now known as bgray
safetypin has joined #ruby
Rodya_ has joined #ruby
Pumukel has quit [Remote host closed the connection]
dpreacher has joined #ruby
vuoto has quit [Remote host closed the connection]
nowhereman has joined #ruby
yqt has quit [Read error: Connection reset by peer]
UnknownSoldier is now known as tau
yqt has joined #ruby
nettoweb1 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
teclator has quit [Remote host closed the connection]
marahin has left #ruby ["Textual IRC Client: www.textualapp.com"]
chouhoul_ has joined #ruby
pozvo[m] has joined #ruby
jsho has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oqwe has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
yqt has quit [Read error: Connection reset by peer]
fuzzyhorns has joined #ruby
yqt has joined #ruby
yqt has quit [Max SendQ exceeded]
jmhmccr has quit [Read error: Connection reset by peer]
xen0fon has joined #ruby
jmhmccr has joined #ruby
pozvo[m] has left #ruby ["User left"]
Snickers has quit [Ping timeout: 240 seconds]
DLSteve has joined #ruby
jsho has joined #ruby
oqwe has quit []
blackmesa has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
psychicist__ has quit [Ping timeout: 260 seconds]
Guest69 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TvL2386 has joined #ruby
jhack has joined #ruby
Burgestrand has joined #ruby
Guest69 has joined #ruby
bkxd has joined #ruby
pawnbox has joined #ruby
jphase has joined #ruby
railswebdev has joined #ruby
thejoecarroll_ has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 240 seconds]
chouhoul_ has quit [Remote host closed the connection]
bheesham has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
thejoecarroll has joined #ruby
aganov has quit [Remote host closed the connection]
gnufied has joined #ruby
Fernando-Basso has joined #ruby
Burgestrand has quit [Quit: Closing time!]
mim1k has quit [Ping timeout: 260 seconds]
shinnya has joined #ruby
dpreacher has quit [Ping timeout: 240 seconds]
bheesham has quit [Ping timeout: 240 seconds]
ecuanaso has joined #ruby
jhack has quit [Quit: jhack]
milardovich has joined #ruby
Burgestrand has joined #ruby
TomyWork has quit [Remote host closed the connection]
braincrash has joined #ruby
grh has quit [Ping timeout: 268 seconds]
csk has quit [Quit: Bye]
milardovich has quit [Ping timeout: 240 seconds]
pandaant has quit [Remote host closed the connection]
teclator has joined #ruby
mlkkk has quit [Remote host closed the connection]
milardovich has joined #ruby
Guest69 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jsho has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
<agent_white> Mornin' folks
<jamesaxl> agent_white, hello
Guest69 has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
railswebdev has joined #ruby
miguelfernandes has joined #ruby
ych has joined #ruby
bheesham has joined #ruby
renchan has quit [Quit: Leaving...]
stevenhong has joined #ruby
stevenhong has quit [Remote host closed the connection]
stevenhong has joined #ruby
saneax is now known as saneax-_-|AFK
nettoweb has joined #ruby
ferr1 has quit [Quit: WeeChat 1.6]
TomyLobo has joined #ruby
naprimer_2 has joined #ruby
oncall-pokemon has joined #ruby
xen0fon has quit [Quit: xen0fon]
xen0fon has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
xen0fon has quit [Client Quit]
naprimer has quit [Ping timeout: 260 seconds]
SteenJobs has joined #ruby
mim1k has joined #ruby
chouhoul_ has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
herbmillerjr has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
bkxd has joined #ruby
despai has quit [Ping timeout: 240 seconds]
Derperperd has joined #ruby
ych has quit [Quit: Textual IRC Client: www.textualapp.com]
despai has joined #ruby
jhack has joined #ruby
phreakocious has quit [Quit: gotta go]
<soahccc> apeiros: Just wanted to let you know that your argument splitter is really nicely written, I like it a lot. It was quite easy to implement my few own custom syntax rules with just a few lines. Works like a charm now! Thanks again ;)
bkxd has quit [Ping timeout: 240 seconds]
<apeiros> :)
<apeiros> yw
patarr has joined #ruby
polishdub has joined #ruby
phreakocious has joined #ruby
hahuang61 has joined #ruby
Cymew has quit [Ping timeout: 240 seconds]
Derperperd has quit [Ping timeout: 240 seconds]
SteenJobs has quit [Quit: SteenJobs]
Snickers has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
<centrx> Ruby 2.4 holding up pretty well, no need for emergency minor point releases yet
Rodya_ has quit [Remote host closed the connection]
<centrx> 2.4.0!
eben has joined #ruby
Rodya_ has joined #ruby
Burgestrand has quit [Quit: Closing time!]
<dminuoso> centrx, I dont know, I segfault it regularly.
<dminuoso> I don't trust it!
<dminuoso> But that might have to do with the amount of Fiddle I use ;o
Rodya_ has quit [Remote host closed the connection]
JoshL- is now known as JoshL
JoshL is now known as JoshL_
blackmesa has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
JoshL_ is now known as JoshL
jeyraof^mbpr has joined #ruby
Derperperd has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
<rkeene> Alright, so Ruby is terrible in implementation... does jruby require ruby to build ?
renchan has joined #ruby
<dminuoso> rkeene, no.
<dminuoso> rkeene, jruby just requires maven, ant, make and a c++ compiler possibly.
<fuzzyhorns> rkeene: "terrible in implementation"?
<fuzzyhorns> you mean like the GIL?
eben has left #ruby [#ruby]
<rkeene> No, more basic -- just trying to compile extensions is broken at a fundamental level.
<fuzzyhorns> oh, like what extension? ive written a couple. it def can be a bit tricky
ych has joined #ruby
<dminuoso> rkeene, what part of it is broken?
<dminuoso> Im genuinely curious about your findings.
<rkeene> It assumes that the compiler you used to build the running Ruby will work to build the Ruby extension, which is fundamentally wrong -- at best you could look at the way the host system's Ruby was built, but the running Ruby is completely irrelevant to compiling
cschneid_ has joined #ruby
<fuzzyhorns> the "running Ruby"?
tdy has quit [Ping timeout: 240 seconds]
<rkeene> dminuoso, I created a bug report here: https://bugs.ruby-lang.org/issues/13215 where the Ruby guys say this is a RubyGem issue, so I opened a RubyGem issue here: https://github.com/rubygems/rubygems/issues/1840 where the RubyGem guys say they can't deal with it until the Ruby guys make Ruby less broken
grh has joined #ruby
bkxd has joined #ruby
<rkeene> fuzzyhorns, Yes -- the Ruby extension build system relies on Ruby, since Ruby is running it looks at how the running Ruby was built to determine some parts of how to build the extension... this is, of course, insane since there's no reason to assume that the extension being built will work for the running Ruby or that the same compiler toolchain is being used
tusharmalik has quit [Ping timeout: 260 seconds]
Guest69 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<fuzzyhorns> true enough, it's just chancing it that the extension author themselves was using the same setup, which they likely werent
<dminuoso> mmm drbrain is not here
<rkeene> Even worse, the running Ruby version has to match EXACTLY the version of Ruby you are using on the host
ebencooke has joined #ruby
<fuzzyhorns> ime the Ruby team is not super…helpfully responsive lol
<rkeene> Yeah
<fuzzyhorns> so i really feel for you
conta has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
ebencooke is now known as moseg
<dminuoso> rkeene, but I agree that ruby is a real mess internally.
<rkeene> So, I'm looking at moving to a less broken Ruby implemenation -- wondering if jRuby is better
<dminuoso> It's evolved over 2 decades without any real rewrite.
tdy has joined #ruby
kang0 has joined #ruby
<kang0> Anyone played with windows kodi and android?
<rkeene> dminuoso, Not really an excuse for this particular brokenness -- Tcl, for example, doesn't fail in this way (extensions use regular GNU autoconf)
<fuzzyhorns> rkeene: well, i've pretty in depth experience with jruby. my feelings are 1. the jvm is "heavy" in development but a boon in production, and 2. prepare yourself to discover bugs
<dminuoso> rkeene, its not an excuse, just an observation.
moseg is now known as alexmose
<dminuoso> though dont get me started on autoconf.
<dminuoso> its unbelievably horrible.
<rkeene> Sure -- but better than everything else
alexmose has quit [Quit: Leaving.]
<fuzzyhorns> rkeene: not a ton of bugs, but it is a possibility. i hit one after 2+ years of using in prod
alexmose has joined #ruby
milardovich has quit [Remote host closed the connection]
Guest69 has joined #ruby
<rkeene> Maybe I can convince the guys to move their stuff to Go and just drop Ruby altogether :-D
<fuzzyhorns> the other question is how comfortable you are debugging jvm and if you get any benefit from java extensions
<kang0> (kang0) How to stream videos from internet to android to Windows to tv
milardovich has joined #ruby
railswebdev has joined #ruby
<dminuoso> rkeene, but yeah, jruby is healthy internally
<dminuoso> its extremely well written.
<fuzzyhorns> rkeene: go is pretty nice, though im still like "why do i have nil in a new language"
<dminuoso> definitely take a look at it.
last_staff has quit [Quit: last_staff]
<fuzzyhorns> the jruby team is way, way nicer and more responsive too
<fuzzyhorns> many different times they helped me step through stuff so i could learn enough to be useful on my own
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> rkeene, also if you have issues, there's an very active community ( #jruby here on freenode ) that's always around.
<dminuoso> English speaking community even!
<fuzzyhorns> i ended up implementing a jruby wrapper around a java library at work that was super useful
<dminuoso> (This means a lot in the ruby world)
<fuzzyhorns> ^ yah
<rkeene> For compiling Ruby Gems with jRuby, what's involved ?
<dminuoso> <fuzzyhorns> the jruby team is way, way nicer and more responsive too
<dminuoso> <fuzzyhorns> many different times they helped me step through stuff so i could learn enough to be useful on my own
<dminuoso> ^-
bkxd has quit [Ping timeout: 260 seconds]
<dminuoso> rkeene, it would be sensible if you moved this into #jruby :)
kang0 has left #ruby ["AndroIRC"]
bkxd has joined #ruby
milardovich has quit [Ping timeout: 268 seconds]
versigtig has joined #ruby
chee is now known as unix
cdg_ has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
unix is now known as Guest42169
gdonald has joined #ruby
Guest42169 is now known as chee
blackmesa has quit [Ping timeout: 260 seconds]
alexmose has quit [Quit: Leaving.]
cdg has quit [Ping timeout: 268 seconds]
alexmose has joined #ruby
stevenhong has quit [Remote host closed the connection]
jhack has quit [Quit: jhack]
jhack has joined #ruby
TvL2386 has quit [Remote host closed the connection]
raspado has joined #ruby
ins64 has joined #ruby
aufi has quit [Quit: Leaving]
SteenJobs has joined #ruby
djbkd_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
stevenhong has joined #ruby
velu_aon[m] has joined #ruby
brent__ has joined #ruby
synthroid has quit [Remote host closed the connection]
bigkevmcd has quit [Read error: Connection reset by peer]
jeyraof^mbpr has quit [Quit: This computer has gone to sleep]
stevenhong has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
rafadc_ has joined #ruby
bigkevmcd has joined #ruby
grh has quit [Ping timeout: 240 seconds]
rafadc has quit [Ping timeout: 240 seconds]
aryaching has joined #ruby
szulak has joined #ruby
vasilakisfil has quit [Quit: Konversation terminated!]
synthroid has joined #ruby
aryaching_ has quit [Ping timeout: 260 seconds]
Uranio has joined #ruby
Uranio has left #ruby [#ruby]
Bish has quit [Quit: Lost terminal]
armyriad has joined #ruby
tusharmalik has joined #ruby
blackmesa has joined #ruby
djbkd_ has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 240 seconds]
djbkd_ has joined #ruby
jphase has quit [Read error: Connection reset by peer]
jphase has joined #ruby
modin has quit [Ping timeout: 245 seconds]
djbkd_ has quit [Ping timeout: 268 seconds]
troulouliou_div2 has quit [Quit: Leaving]
amclain has joined #ruby
bruce_lee has quit [Ping timeout: 268 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
Rodya_ has joined #ruby
repsol has joined #ruby
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: inabit. zz.]
mark_66 has quit [Remote host closed the connection]
aglorei has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 240 seconds]
aglorei has joined #ruby
Rodya_ has quit [Ping timeout: 255 seconds]
agit0 has joined #ruby
lukelukefahr has joined #ruby
repsol is now known as adrenaline
workmad3 has quit [Ping timeout: 240 seconds]
modin has joined #ruby
MoskitoHero has joined #ruby
Lukefahr has quit [Ping timeout: 260 seconds]
sepp2k has quit [Quit: Leaving.]
al2o3-cr has joined #ruby
glcx has quit [Quit: Quitte]
miguelfernandes has quit [Remote host closed the connection]
miguelfernandes has joined #ruby
fuzzyhorns has quit [Quit: Leaving.]
szulak has joined #ruby
xen0fon has joined #ruby
miguelfernandes has quit [Ping timeout: 255 seconds]
KCmetro has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
MoskitoHero has quit [Ping timeout: 240 seconds]
dman[m] has joined #ruby
mhib has joined #ruby
ych has quit [Quit: Textual IRC Client: www.textualapp.com]
rafadc_ has quit [Quit: Bye!]
gusrub has joined #ruby
rakm has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jaruga_______ has quit [Quit: jaruga_______]
hahuang61 has joined #ruby
aupadhye has quit [Quit: Leaving]
bigkevmcd has quit [Quit: Outta here...]
jhack has quit [Quit: jhack]
lukelukefahr has quit [Quit: Leaving]
jhack has joined #ruby
miguelfernandes has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
ecuanaso has joined #ruby
mim1k has joined #ruby
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
miguelfernandes has quit [Remote host closed the connection]
miguelfernandes has joined #ruby
miguelfernandes has quit [Remote host closed the connection]
miguelfernandes has joined #ruby
SeepingN has joined #ruby
_djbkd has joined #ruby
raspado has quit [Quit: Leaving...]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
kies has quit [Ping timeout: 240 seconds]
ramortegui has quit [Remote host closed the connection]
duderonomy has quit [Ping timeout: 255 seconds]
fuzzyhorns has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
<jamesaxl> could you give an explaination about ? after th function
<dminuoso> jamesaxl, through convention "?" methods are interrogative methods that will yield a boolean of sorts.
<dminuoso> But it's just a convention.
<dminuoso> .even? .odd? .stupid? .good? .small? .enabled?
ramortegui has joined #ruby
<dminuoso> think of it as the code talking to you. "10 even?" :-)
<dminuoso> the answer is: yes.
<jamesaxl> dminuoso, understood thanks a lot
terens has joined #ruby
ivanskie has joined #ruby
<ivanskie> 23
bheesham has quit [Ping timeout: 260 seconds]
__Yiota has joined #ruby
szulak has joined #ruby
mikecmpbll has joined #ruby
nuck has quit [Ping timeout: 258 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nuck has joined #ruby
gusrub has quit [Remote host closed the connection]
nanoz has joined #ruby
nanoz has joined #ruby
nanoz has quit [Changing host]
ketan has quit []
pilne has joined #ruby
dc4 has joined #ruby
andikr has quit [Remote host closed the connection]
bheesham has joined #ruby
ramortegui has quit [Remote host closed the connection]
daed has joined #ruby
csk157 has quit [Ping timeout: 255 seconds]
__Yiota has joined #ruby
<jamesaxl> if I define a function with a dlef on a class, than the function will be static
<dminuoso> We call them methods in Ruby.
<dminuoso> What do you mean by static?
packet0 has joined #ruby
packet0 has quit [Remote host closed the connection]
<fuzzyhorns> jamesaxl: you prob want def self.method
<dminuoso> The word "static" has been burned by C/C++. Do you mean static in the sense of "static member function" ?
<jamesaxl> dminuoso, I meant that I could call without an instance
<dminuoso> jamesaxl, we call them "class methods" and they would be defined like fuzzyhorns has desribed.
<dminuoso> they are basically "instance methods of the class object itself" :-)
<fuzzyhorns> ^ yes :)
<jamesaxl> dminuoso, yep like in python, because in python call it static
<jamesaxl> I do not mean static on C/C++ cause C/C++ i is a typed languages
<dminuoso> jamesaxl, okay. Well now you know the Ruby terminology. :)
<jamesaxl> dminuoso, I know it via Python :)
<jamesaxl> but it is not enaugh baby
Rodya_ has joined #ruby
dc4 has quit [Ping timeout: 240 seconds]
<jamesaxl> dminuoso, are you from Japan>
ramortegui has joined #ruby
<dminuoso> jamesaxl, no.
whathappens has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
duderonomy has joined #ruby
nowhereman has quit [Ping timeout: 260 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
abdulmugni has joined #ruby
<baweaver> 誰も実際にこれを読むことはありませんが、それは深遠に見えます。
lenwood has joined #ruby
* baweaver whistles innocently
mim1k has joined #ruby
<dminuoso> Gesundheit.
<dminuoso> baweaver, do you remember this old pre 2.0 gem that was filled with Ruby hacks?
<dminuoso> Things like unthawing objects, etc?
<baweaver> Facets?
<dminuoso> Nope
<baweaver> Not offhand then.
<dminuoso> It was just raw hacks to give you access to all the fancy ruby internals.
<baweaver> Facets had everything back in the day.
<dminuoso> cuz Im thinking of making my first gem where I expose as many ruby internals into ruby land.
<dminuoso> with just fiddle.
mim1k has quit [Ping timeout: 240 seconds]
buzz0763 has quit [Ping timeout: 258 seconds]
gusrub has joined #ruby
<jamesaxl> dminuoso, do you a recomanded book for ruby ?
<dminuoso> !books
<jamesaxl> dminuoso, do you know a recomanded book for ruby ?
<dminuoso> jamesaxl, Well Grounded Rubyist is the most recommended pick in here.
Rodya_ has quit [Quit: Leaving...]
<jamesaxl> dminuoso thanks a lot
terens has quit [Ping timeout: 268 seconds]
mhib has quit [Ping timeout: 260 seconds]
esObe has joined #ruby
bmurt has joined #ruby
<jamesaxl> it has 538 i should finish this night
montanonic has joined #ruby
Snickers has quit [Read error: Connection reset by peer]
Snickers has joined #ruby
mhib has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
Xentil has joined #ruby
<jamesaxl> that is nice, in ruby I can define method that belong to a class even outside the class :)
ins64 has quit [Quit: See ya]
miguelfernandes has quit []
ResidentBiscuit has joined #ruby
<baweaver> Also see the channel topic
<baweaver> we have a booklist now
Emmanuel_Chanel has quit [Quit: Leaving]
lenwood has quit [Remote host closed the connection]
mhib has quit [Read error: Connection reset by peer]
nowhereman has joined #ruby
lenwood has joined #ruby
JoshS has quit [Quit: Leaving]
Cohedrin has joined #ruby
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
dionysus70 is now known as dionysus69
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ColeHub has joined #ruby
<dminuoso> jamesaxl, I hate it.
<dminuoso> Id really love to be able to seal a class.
<dminuoso> In such a way that you cant reopen or modify it at all.
nunchuck has joined #ruby
creature has left #ruby [#ruby]
varesa_ is now known as varesa
<dminuoso> Though I guess.
<dminuoso> I could just freeze my classes.
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
Lord_of_Life has quit [Excess Flood]
Lord_of_Life has joined #ruby
reverberations has joined #ruby
Emmanuel_Chanel has joined #ruby
<jamesaxl> dminuoso, I see,
<jamesaxl> dminuoso, we could use to declare a methods and after define them, like in C/C++ .h and .cxx
<jamesaxl> I will use if I start something new
gizmore|2 has quit [Remote host closed the connection]
Anonymoose2 has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
bkxd has joined #ruby
gizmore has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
d10n-work has joined #ruby
xen0fon has quit [Ping timeout: 255 seconds]
maddmaxx has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.5]
ivanskie has quit [Read error: Connection reset by peer]
ifctj has joined #ruby
blackwind_123 has joined #ruby
ivanskie has joined #ruby
lenwood has quit [Quit: Konversation terminated!]
bocaneri has quit [Read error: Connection reset by peer]
lenwood has joined #ruby
Lord_of_Life has quit [Excess Flood]
Lord_of_Life has joined #ruby
esObe has quit [Remote host closed the connection]
raul782 has quit [Remote host closed the connection]
esObe has joined #ruby
esObe has quit [Ping timeout: 240 seconds]
esObe has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
antgel has joined #ruby
lenwood has quit [Ping timeout: 255 seconds]
manjaro-kde5- has joined #ruby
futilegames has joined #ruby
_aeris has joined #ruby
_aeris_ has quit [Remote host closed the connection]
bgray has quit [Ping timeout: 240 seconds]
_aeris is now known as _aeris_
Lyubo1 has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
tonini has quit [Quit: Connection closed for inactivity]
ecuanaso has joined #ruby
futilegames has quit [Quit: futilegames]
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
esObe has quit [Remote host closed the connection]
esObe has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
RickHull has quit [Ping timeout: 260 seconds]
wilbert has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
esObe has quit [Ping timeout: 255 seconds]
sepp2k has joined #ruby
honigkuchen has joined #ruby
<honigkuchen> what do I do if sidekiq crashes
elifoster has joined #ruby
SteenJobs has joined #ruby
<toretore> restart it?
enterprisey has joined #ruby
<honigkuchen> crash again
Silthias has joined #ruby
padi_ has joined #ruby
ColeHub has quit [Quit: Snooze.]
Silthias1 has quit [Ping timeout: 276 seconds]
ta has joined #ruby
ta__ has joined #ruby
ta has quit [Read error: Connection reset by peer]
zeroDi has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
benlieb has quit [Quit: benlieb]
padi_ has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
cats has quit [Quit: BURN HIS HOUSE DOWN]
cats has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
railswebdev has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest69 has quit [Quit: Textual IRC Client: www.textualapp.com]
bkxd has joined #ruby
Fernando-Basso has joined #ruby
<Radar> if a sidekiq crashes in a forest and there's nobody around to hear it, does it output any logs?
<Radar> honigkuchen: ^
whathapp_ has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
whathappens has quit [Ping timeout: 260 seconds]
jhack has quit [Quit: jhack]
bkxd has quit [Ping timeout: 260 seconds]
benlieb has joined #ruby
failshell has joined #ruby
montanonic has quit [Ping timeout: 255 seconds]
al2o3-cr_ has joined #ruby
bousquet has joined #ruby
gusrub__ has joined #ruby
gusrub has quit [Read error: Connection reset by peer]
al2o3-cr_ is now known as gr33n7007h
al2o3-cr has quit [Disconnected by services]
gr33n7007h is now known as al2o3-cr
whathapp_ has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
SteenJobs has joined #ruby
jdm_ has quit [Read error: Connection reset by peer]
jdm has joined #ruby
ldnunes has quit [Quit: Leaving]
xen0fon has joined #ruby
grh has joined #ruby
manjaro-kde5- has quit [Ping timeout: 255 seconds]
AndBobsYourUncle has joined #ruby
jphase has quit [Read error: No route to host]
jphase has joined #ruby
KCmetro_ has joined #ruby
failshell has quit []
antoniobeyah has joined #ruby
gusrub__ is now known as gusrub
maddmaxx has quit [Ping timeout: 260 seconds]
KCmetro has quit [Ping timeout: 240 seconds]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
KCmetro_ has quit [Client Quit]
ColeHub has joined #ruby
maddmaxx has joined #ruby
nowhereman has quit [Ping timeout: 240 seconds]
SteenJobs has quit [Quit: SteenJobs]
kirun has joined #ruby
rfoust has quit [Ping timeout: 268 seconds]
szulak has joined #ruby
AndBobsYourUncle has joined #ruby
SteenJobs has joined #ruby
djbkd_ has joined #ruby
dpreacher has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
crazyphil has joined #ruby
alecr has joined #ruby
djbkd_ has quit [Ping timeout: 260 seconds]
kies has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
bousquet has quit []
maddmaxx_ has joined #ruby
unshadow has joined #ruby
maddmaxx has quit [Ping timeout: 240 seconds]
maddmaxx__ has joined #ruby
maddmaxx__ is now known as maddmaxx
arashb has joined #ruby
maddmaxx_ has quit [Ping timeout: 268 seconds]
raul782 has joined #ruby
raul782 has quit [Remote host closed the connection]
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
raul782 has joined #ruby
<baweaver> honigkuchen: Monit pointed at the Sidekiq process to restart on fail / ram overusage / etc
kentnl has quit [Quit: No Ping reply in 180 seconds.]
SteenJobs has quit [Quit: SteenJobs]
kent\n has joined #ruby
neoncortex has joined #ruby
jhack has joined #ruby
<neoncortex> hi, there is any documentation for webkit-gtk? my google fu aren't helping
unshadow has quit [Quit: leaving]
xen0fon has quit [Quit: xen0fon]
xen0fon has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
montanonic has joined #ruby
braincrash has quit [Ping timeout: 260 seconds]
nofxx has joined #ruby
raspado has joined #ruby
bkxd has joined #ruby
braincrash has joined #ruby
gnufied has quit [Ping timeout: 240 seconds]
<baweaver> Looks like they just put up a beta version
<baweaver> Giving it a read through myself.
<jamesaxl> max_by(&:price) why we must use &?
blackmesa has joined #ruby
ta__ has quit [Remote host closed the connection]
ta has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
ta has quit [Remote host closed the connection]
<havenwood> jamesaxl: Try removing it -- what error do you get?
ta has joined #ruby
<havenwood> jamesaxl: :price.class #=> ?
<havenwood> jamesaxl: What is `:price`'s class?
szulak has quit [Quit: Textual IRC Client: www.textualapp.com]
<SeepingN> ugh! ssh.exec vs ssh.exec! What a waste of time, all because of a !
<SeepingN> very weird to see output printing "out of order"
grh has quit [Ping timeout: 260 seconds]
raul782 has quit [Remote host closed the connection]
quoboo has joined #ruby
<havenwood> jamesaxl: Consider the following:
<havenwood> >> square_it = :abs2.to_proc; square_it.call 5
<ruby[bot]> havenwood: # => 25 (https://eval.in/739618)
<havenwood> jamesaxl: This is the first half of what the `&` is doing: max_by(:price.to_proc)
<havenwood> jamesaxl: But you'd still get the argument error, because you're passing one argument (a proc) when a block is expected.
<havenwood> jamesaxl: The ampersand first calls #to_proc on your Symbol, then passes it as a block rather than as an argument.
<jamesaxl> havenwood, thank you very much for this explainantion
<jamesaxl> I understand it
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
alexmose has left #ruby [#ruby]
kies has quit [Quit: baaaaiiiiiiiiiii~]
markholmes has joined #ruby
tildes has joined #ruby
ur5us has quit [Remote host closed the connection]
<baweaver> havenwood: where does abs2 come from?
bheesham has quit [Quit: leaving]
<havenwood> baweaver: Numeric
<baweaver> &ri Kernel#abs2
<`derpy> No results
<baweaver> Ah, was thinking of it backwards
ur5us has joined #ruby
<baweaver> &ri Numeric
gnufied has joined #ruby
<baweaver> thought for half a second that 2 was an arg of some type
<baweaver> was about to get really excited and do some really dirty things to Ruby again
<baweaver> buuuuuuut that's probably a sign I need to get some coffee.
maddmaxx has quit [Ping timeout: 240 seconds]
chouhoul_ has quit [Remote host closed the connection]
tildes has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
<synstack> Thanks for that havenwood, learned something new
Immune_ has quit [Ping timeout: 260 seconds]
grh has joined #ruby
tyang_ has quit [Read error: Connection reset by peer]
mholmes has joined #ruby
vuoto has joined #ruby
markholmes has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
vuoto has quit [Client Quit]
gdonald has joined #ruby
shakygator has joined #ruby
synthroid has quit []
ur5us has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
tfitts has joined #ruby
Definity has joined #ruby
bmurt_ has joined #ruby
bmurt has quit [Ping timeout: 240 seconds]
Puffball has quit [Remote host closed the connection]
kht has joined #ruby
FrankD has quit [Changing host]
FrankD has joined #ruby
Puffball has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
bkxd has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
veloutin has joined #ruby
<jamesaxl> I see also that reby force users to decalre classes and modules in Pascale mode
<jamesaxl> ruby*
_djbkd has quit [Quit: My people need me...]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub has quit [Ping timeout: 268 seconds]
bkxd has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
_aeris_ has quit [Ping timeout: 240 seconds]
Guest24312 has joined #ruby
tomphp has joined #ruby
ecuanaso has joined #ruby
_aeris_ has joined #ruby
maattdd has joined #ruby
fuzzyhorns has quit [Quit: Leaving.]
newdan has joined #ruby
<newdan> Is it possible to get Bundler to make a binstub for irb?
Xeago has quit [Ping timeout: 240 seconds]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
kirun has quit [Quit: Konversation terminated!]
pskosinski has quit [Read error: Connection reset by peer]
pskosinski has joined #ruby
pskosinski is now known as Guest91609
Xeago has joined #ruby
jamesaxl has quit [Quit: Leaving]
renchan has quit [Remote host closed the connection]
polishdub has quit [Quit: Leaving]
pawnbox has quit [Remote host closed the connection]
<maattdd> c
pawnbox has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
milardov_ has joined #ruby
jose_leeto has quit [Quit: Leaving.]
nowhereman has joined #ruby
justAllgood has joined #ruby
justAllgood has left #ruby [#ruby]
milardovich has quit [Ping timeout: 260 seconds]
<crazyphil> I am trying to figure out how to take a bunch of nested json, and pull it up a level to the root of a new json document, and for some reason I can't figure out what I'm doing wrong here: https://paste.fedoraproject.org/paste/rGE~KP4idQ-pqsTgwhixf15M1UNdIGYhyRLivL9gydE= suggestions?
<jgnagy> your paste is missing things
<jgnagy> f1 for instance... is that a new hash?
<crazyphil> yes it is
JoshS has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
<crazyphil> as I wasn't sure how to modify the existing hash
<crazyphil> basically I want to take all the nested json under "fields", and bring it up to the top level
<crazyphil> and then remove "fields"
<newdan> crazyphil: I don't see how `k.nil?` will ever become true
<jgnagy> your "until k.nil?" loop doesn't have anything to ever make k.nil
<dminuoso> crazyphil, how do you want to handle conflicts?
<jgnagy> exactly
<jgnagy> you can modify existing hashes just by writing new keys to them
<crazyphil> well, let me paste the original code I got this from
<newdan> crazyphil: Maybe you meant `until !f.include?(k)`
<newdan> Also I highly recommend longer variable names
<jgnagy> I might just be tired, but I'm still not certain what this code is supposed to accomplish... maybe try describing what you're doing for me again, please?
<dminuoso> Yes,
<dminuoso> Use "piyo" instead of "n", and "fuga" instead of "k"
<dminuoso> or "piyo" instead of "ok"
<dminuoso> or hoge
<crazyphil> ok, there's the original code
<newdan> ...what
<crazyphil> it's used in logstash to process a field that has nested json, and bring all nested json up to the top level of the json document
<toretore> lol
<crazyphil> it works fine in an older version of logstash, however in the new version of logstash, they got rid of "event"
<crazyphil> so I was trying to take that code, and convert to using hashes
ivanskie_work has joined #ruby
<newdan> crazyphil: their `until` is different from yours
ivanskie has quit [Read error: No route to host]
ivanskie_work is now known as ivanskie
<crazyphil> yes, I noticed that, and in testing I noticed it went into an infinite loop
<crazyphil> and I couldn't figure out why
<newdan> crazyphil: They don't check k each loop, they check the hash's value for the key k
<jgnagy> because it loops effectively until "v" is nil
<jgnagy> this seems like an odd way to iterate over a data structure
grh has quit [Ping timeout: 240 seconds]
maattdd_ has joined #ruby
<newdan> crazyphil: The most direct translation from their code to yours would be `until f[k].nil?`
Derperperd has quit [Ping timeout: 260 seconds]
<jgnagy> they're looking at the keys and values in event['body'] and creating new top-level keys based on the old key name combined with a counter
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alecr has quit [Ping timeout: 260 seconds]
maattdd has quit [Ping timeout: 255 seconds]
<jgnagy> but they seem to just keep creating new keys, passing the same value to it
nowhereman has quit [Ping timeout: 268 seconds]
<jgnagy> I'm not sure how that would ever finish
<toretore> crazyphil: event.update(event.delete('body').inject({}){|h,(k,v)| h.merge(event.include?(k) ? "#{k}_1" : k => v) })
<jgnagy> they aren't modifying the value, and just keep checking if it is somehow nil now
<newdan> jgnagy: They're checking if there's anything in the toplevel hash that is already set at that key
<newdan> If there is, they increment the counter and try again. Until the hash value is nil? at which point they move the value into the toplevel
<crazyphil> ok, I just realized it would help to show the original document
<jgnagy> I suppose
<jgnagy> why not just prefix them and iterate over event['body'].keys
<newdan> crazyphil: What's your goal after your code is done?
<newdan> jgnagy: ¯\(°_o)/¯
<newdan> crazyphil: what do you want the document to look like
<crazyphil> there's the document, what I want to do is pull all the keys under "fields" up to the root
<crazyphil> keys and values I should say
<jgnagy> event['body'].each { |original_key, value| event["new_#{original_key}"] = value }
<crazyphil> so what logstash gives me now is "event.get" - so I can't reference the value directly
maattdd_ has quit [Read error: Connection reset by peer]
<crazyphil> so I need to do f = event.get('fields')
<newdan> jgnagy: It does something different... in the original the (perhaps likely) case of no collisions means no keys change
<crazyphil> so I need to do f = event.get('fields').to_hash actually
maattdd_ has joined #ruby
<jgnagy> keys change anyway if they're adding a counter to the end
maattdd has joined #ruby
<newdan> crazyphil: Where the original code says `event`, you want `f`. And where it says `event['body']` you want `f['fields']`
<newdan> jgnagy: They only add it to the end if the same key is already in use
<jgnagy> hmmm
<crazyphil> and for each key I need to create a new top level key via event.set('keyname', 'value')
<crazyphil> and yes, they add a number to a key name should it not be unique
hardest has quit [Ping timeout: 260 seconds]
<newdan> jgnagy: until won't execute if event[k].nil? is true right off the bat, in which case the original key doesn't change at all
<jgnagy> event['body'].each { |orig_key, value| event[orig_key] ? event["#{orig_key}_new"] = value : event[orig_key] = value }
<newdan> So now you're closer but you will overwrite "#{orig_key}_new" if that happens to collide :)
<crazyphil> and my problem is that they took away the event command
<crazyphil> I can event.get() or event.set() only now, I can't directly reference items
pskosinski_ has joined #ruby
<crazyphil> so I figured what I needed to do was to pull the whole hash into a variable, loop through, create and write each new key/v pair
patarr has quit [Ping timeout: 268 seconds]
maattdd_ has quit [Ping timeout: 260 seconds]
<jgnagy> event['body'].each { |okey, value| event.get(okey) ? event.set("#{okey}_crazyphil", value) : event.set(orig_key, value) }
Guest91609 has quit [Read error: Connection reset by peer]
<crazyphil> ok
<crazyphil> that might work
_djbkd has joined #ruby
<jgnagy> assuming that's how #set() works
ur5us has joined #ruby
<crazyphil> it is how their set works
newdan has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
mikecmpbll has quit [Quit: inabit. zz.]
<jgnagy> event.get('body').to_hash.each { |okey, value| event.get(okey) ? event.set("#{okey}_crazyphil", value) : event.set(okey, value) }
<crazyphil> oh, I just figured out why it wasn't working
<crazyphil> because I was trying to parse the top level "fields", without going into the inner json
milardov_ has quit [Read error: Connection reset by peer]
<jgnagy> hmmm
<crazyphil> I'll read up on how hashes work a bit more so I don't run into this in the future
kht has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
<jgnagy> well, I don't think event is a hash
<jgnagy> if it doesn't support []
ytti_ has quit [Ping timeout: 260 seconds]
<jgnagy> if you have a means to test the code and get output, you can do `puts "Event Class: #{event.class}"` in the code
<jgnagy> and see what gets printed to the screen
<jgnagy> probably some custom class, but that way you can lookup its methods and features
Fernando-Basso has quit [Quit: WeeChat 1.7]
* baweaver whispers pry
szulak has joined #ruby
<jgnagy> or that
ytti has joined #ruby
<baweaver> ?pry
<baweaver> bot?
<ruby[bot]> Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
<jgnagy> pry is good stuff
abdulmugni has quit [Read error: Connection reset by peer]
<dminuoso> pry is meh. real men lldb their code!
<baweaver> Butterflies.
<dminuoso> those work too
<dminuoso> just hard to find them this time of the year.
<jgnagy> if pry is meh, it is on the high-end of meh
whathappens has quit [Remote host closed the connection]
railswebdev has joined #ruby
skweek has joined #ruby
whathappens has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
dpreacher has left #ruby [#ruby]
<jgnagy> dminuoso used hijack?
Derperperd has joined #ruby
empower has joined #ruby
Xentil has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<empower> Should I learn Ruby or Python?
whathappens has quit [Ping timeout: 260 seconds]
<baweaver> Depends
<dminuoso> empower, Python.
<dminuoso> Python is the better language.
<dminuoso> template<T> is such a powerful feature.
<empower> What is template<T>?
pawnbox has joined #ruby
<empower> dminuoso: what is template<T>?
safetypin has quit [Quit: ZZZzzz…]
mikecmpbll has joined #ruby
<havenwood> empower: PEPs are something Python has too: https://www.python.org/dev/peps/pep-0292/
dmin7b5 has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
<havenwood> empower: Learn either or both. There is more than one way to do it.
<havenwood> empower: Just remember, Ruby is better.
<dminuoso> havenwood, fun fact. I actually submitted a PEP talking about how python causes brain damage.
<dminuoso> For reasons beyond my comprehension it was completely ignored.
pawnbox has quit [Ping timeout: 240 seconds]
<ytti> is this fun, are we having fun?
nofxxx has joined #ruby
ColeHub has quit [Quit: Snooze.]
<havenwood> dminuoso: There's no door leading out of Rejected. All paths one way.
<dminuoso> havenwood, idk. It was maybe 8-9 years ago. Im fairly certain it went through mail at the time.
<dminuoso> was it a mailing list perhaps?
despai has quit [Ping timeout: 240 seconds]
nofxx has quit [Ping timeout: 240 seconds]
empower has quit [Ping timeout: 260 seconds]
ecksit has joined #ruby
despai has joined #ruby
raul782 has joined #ruby
ColeHub has joined #ruby
tessi_zz has quit [Remote host closed the connection]
jdm has quit [Read error: Connection reset by peer]
jdm has joined #ruby
raul782 has quit [Ping timeout: 260 seconds]
montanonic has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
tlahtoani has joined #ruby
Definity has quit [Ping timeout: 260 seconds]
maattdd_ has joined #ruby
maattdd__ has joined #ruby
ColeHub has quit [Quit: Snooze.]
hutch34 has quit [Ping timeout: 240 seconds]
tusharmalik has quit [Ping timeout: 240 seconds]
maattdd has quit [Ping timeout: 260 seconds]
dmin7b5 has quit [Quit: Textual IRC Client: www.textualapp.com]
maattdd_ has quit [Ping timeout: 240 seconds]
jhack has quit [Quit: jhack]
hutch34 has joined #ruby
jhack has joined #ruby
kht has joined #ruby
pawnbox has joined #ruby
alan_w has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
Lord_of_Life has quit [Excess Flood]
nettoweb has joined #ruby
ResidentBiscuit has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
nettoweb has quit [Client Quit]
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Lord_of_Life has joined #ruby
stevenhong has joined #ruby
maattdd has joined #ruby
stevenhong has quit [Remote host closed the connection]
mholmes has quit [Ping timeout: 255 seconds]
stevenhong has joined #ruby
Definity has joined #ruby
maattdd__ has quit [Ping timeout: 240 seconds]
maattdd has quit [Read error: Connection reset by peer]
maattdd has joined #ruby
saneax-_-|AFK is now known as saneax
wilbert has quit [Ping timeout: 240 seconds]
nowhereman has joined #ruby
hutch34 has quit [Ping timeout: 268 seconds]
ecksit has quit [Ping timeout: 255 seconds]