baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.5.0, 2.4.3, 2.3.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
itp_student|1913 has joined #ruby
clemens3 has quit [Ping timeout: 240 seconds]
itp_student|1913 has quit [Client Quit]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
enigma_ has quit [Quit: Leaving]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid has quit [Remote host closed the connection]
rrutkowski has quit [Ping timeout: 256 seconds]
itp_student|1913 has joined #ruby
itp_student|1913 has quit [Client Quit]
maum has joined #ruby
Azure|dc has quit [Read error: Connection reset by peer]
itp_student|1913 has joined #ruby
<zenspider> anyone know of good formula to generate color gradients through the full spectrum? I want really smooth gradients w/ 12_000 unique values.
Azure has joined #ruby
itp_student|1913 has quit [Client Quit]
SynSynack has joined #ruby
itp_student|1913 has joined #ruby
itp_student|1913 has quit [Client Quit]
jenrzzz has quit [Ping timeout: 240 seconds]
itp_student|1913 has joined #ruby
itp_student|1913 has quit [Client Quit]
cschneid has joined #ruby
jenrzzz has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
cschneid has quit [Ping timeout: 248 seconds]
konsolebox has joined #ruby
itp_student|1913 has joined #ruby
itp_student|1913 has quit [Client Quit]
adlerdias has joined #ruby
adlerdias has quit [Client Quit]
adlerdias has joined #ruby
nowhereman_ has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
nowhereman_ has joined #ruby
konsolebox has quit [Ping timeout: 252 seconds]
konsolebox has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
dviola has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
adlerdias has quit [Quit: adlerdias]
ogres has joined #ruby
nowhereman_ has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
nowhereman_ has joined #ruby
starseed0000 has quit [Ping timeout: 265 seconds]
bauruine has quit [Ping timeout: 276 seconds]
knight33 has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
jxv has quit [Quit: string can snapped]
hahuang61 has joined #ruby
mtkd has quit []
hahuang61 has quit [Ping timeout: 240 seconds]
mjolnird has joined #ruby
GodFather has joined #ruby
cschneid has joined #ruby
mjolnird has quit [Remote host closed the connection]
hahuang65 has quit [Quit: WeeChat 2.0.1]
hahuang65 has joined #ruby
Dimik has quit [Ping timeout: 248 seconds]
hahuang65 has quit [Quit: WeeChat 2.0.1]
hahuang65 has joined #ruby
bigblind has quit [Ping timeout: 268 seconds]
marr has quit [Ping timeout: 240 seconds]
goatish has quit [Quit: Hibernating]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul has quit [Ping timeout: 248 seconds]
lexruee has joined #ruby
lexruee has quit [Remote host closed the connection]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sameerynho has quit [Ping timeout: 240 seconds]
vutral|kali has quit [Ping timeout: 248 seconds]
AJA4350 has quit [Remote host closed the connection]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
AJA4350 has joined #ruby
hahuang65 has quit [Quit: WeeChat 2.0.1]
hahuang65 has joined #ruby
hahuang65 has quit [Client Quit]
hahuang65 has joined #ruby
GodFather has quit [Ping timeout: 256 seconds]
GodFather has joined #ruby
phenom has quit [Ping timeout: 276 seconds]
dinfuehr has quit [Ping timeout: 265 seconds]
vutral|kali has quit [Ping timeout: 248 seconds]
dinfuehr has joined #ruby
tvw has quit [Ping timeout: 256 seconds]
hahuang65 has quit [Quit: WeeChat 2.0.1]
hahuang65 has joined #ruby
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
bmurt has joined #ruby
arescorpio has joined #ruby
hahuang61 has joined #ruby
hahuang65 has quit [Quit: WeeChat 2.0.1]
Barrt has quit [Quit: Leaving]
vutral|kali has quit [Ping timeout: 265 seconds]
hahuang65 has joined #ruby
hahuang65 has quit [Client Quit]
hahuang65 has joined #ruby
hahuang61 has quit [Ping timeout: 268 seconds]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
hahuang65 has quit [Quit: WeeChat 2.0.1]
hahuang65 has joined #ruby
hahuang65 has quit [Client Quit]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
hahuang65 has joined #ruby
hahuang65 has quit [Client Quit]
hahuang65 has joined #ruby
gizmore has joined #ruby
gizmore|2 has quit [Ping timeout: 256 seconds]
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
cdg has joined #ruby
bigblind has joined #ruby
cpallares_ has quit [Ping timeout: 252 seconds]
hahuang65 has quit [Quit: WeeChat 2.0.1]
cpallares has joined #ruby
hahuang65 has joined #ruby
cdg has quit [Ping timeout: 245 seconds]
bigblind has quit [Ping timeout: 256 seconds]
vutral|kali has quit [Ping timeout: 276 seconds]
RougeR has quit [Ping timeout: 268 seconds]
lightstalker has quit [Ping timeout: 240 seconds]
SteenJobs has joined #ruby
ledestin has joined #ruby
hahuang65 has quit [Quit: WeeChat 2.0.1]
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
vutral|kali has joined #ruby
hahuang65 has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang65 has quit [Client Quit]
jottr has joined #ruby
hahuang65 has joined #ruby
karapetyan has quit [Remote host closed the connection]
cdg has joined #ruby
AJA4350 has quit [Quit: AJA4350]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
Mr_Tea has joined #ruby
<Mr_Tea> how do I get a keypress without halting execution?
hahuang61 has joined #ruby
cschneid has quit [Remote host closed the connection]
cpallares has quit [Ping timeout: 268 seconds]
vutral|kali has quit [Ping timeout: 245 seconds]
hahuang61 has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Quit: WeeChat 2.0.1]
hahuang65 has joined #ruby
LocaMocha is now known as Sauvin
jottr has quit [Ping timeout: 245 seconds]
cpallares has joined #ruby
Guest53556 has quit [Ping timeout: 268 seconds]
ogres has quit [Quit: Connection closed for inactivity]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
orbyt_ has joined #ruby
dviola has quit [Quit: WeeChat 2.0.1]
ianmalcolm has quit [Ping timeout: 240 seconds]
Mr_Tea has quit [Read error: Connection reset by peer]
Mr_Tea has joined #ruby
cpallares has quit [Ping timeout: 265 seconds]
cschneid has joined #ruby
hahuang65 has quit [Quit: WeeChat 2.0.1]
eldritch has quit [Ping timeout: 268 seconds]
milardovich has quit [Remote host closed the connection]
Map has joined #ruby
vutral|kali has quit [Ping timeout: 260 seconds]
Map is now known as Guest35240
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ianmalcolm has joined #ruby
cpallares has joined #ruby
govg has joined #ruby
cschneid has quit [Ping timeout: 256 seconds]
eldritch has joined #ruby
eldritch has quit [Max SendQ exceeded]
arescorpio has quit [Quit: Leaving.]
eldritch has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
milardovich has joined #ruby
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
bigblind has joined #ruby
vutral|kali has quit [Ping timeout: 260 seconds]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
bigblind has quit [Ping timeout: 260 seconds]
cdg has quit [Remote host closed the connection]
Mr_Tea has quit [Read error: Connection reset by peer]
Mr_Tea has joined #ruby
Mr_Tea has quit [Remote host closed the connection]
darkhanb has joined #ruby
darkhanb has quit [Client Quit]
darkhanb has joined #ruby
trautwein has quit [Quit: ZNC 1.6.5 - http://znc.in]
trautwein has joined #ruby
<havenwood> require 'io/console'; $stdin.getch
vutral|kali has quit [Ping timeout: 276 seconds]
knight33 has quit [Ping timeout: 268 seconds]
DTZUZU has quit [Ping timeout: 260 seconds]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
konsolebox has quit [Ping timeout: 240 seconds]
konsolebox has joined #ruby
ianmalcolm has quit [Ping timeout: 248 seconds]
vutral|kali has quit [Excess Flood]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
hahuang61 has quit [Ping timeout: 260 seconds]
cpallares has quit [Ping timeout: 256 seconds]
nadir has quit [Quit: Connection closed for inactivity]
ianmalcolm has joined #ruby
eldritch has quit [Ping timeout: 268 seconds]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cpallares has joined #ruby
darkhanb has joined #ruby
chouhoulis has quit [Remote host closed the connection]
pastorinni has joined #ruby
eckhardt has joined #ruby
eldritch has joined #ruby
eldritch has quit [Max SendQ exceeded]
eldritch has joined #ruby
bonhoeffer has quit [Ping timeout: 276 seconds]
bonhoeffer has joined #ruby
DTZUZU has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
jenrzzz has joined #ruby
bonhoeffer has joined #ruby
bigblind has joined #ruby
konsolebox has quit [Ping timeout: 256 seconds]
bonhoeffer has quit [Remote host closed the connection]
konsolebox has joined #ruby
bonhoeffer has joined #ruby
luminous has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
bigblind has quit [Ping timeout: 265 seconds]
hahuang61 has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang61 has quit [Ping timeout: 240 seconds]
k-factor has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
LocaMocha has joined #ruby
k-factor has left #ruby [#ruby]
Sauvin has quit [Ping timeout: 276 seconds]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
LocaMocha has quit [Ping timeout: 260 seconds]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
rippa has joined #ruby
pastorinni has quit [Remote host closed the connection]
GodOfSea has joined #ruby
<GodOfSea> hi
LocaMocha has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bonhoeffer has joined #ruby
<GodOfSea> I am getting a psych error everytime I do bundle exec rake db:migrate RAILS_ENV=production
cpallares has quit [Ping timeout: 240 seconds]
<GodOfSea> I checked all the yml files for errors but there are none
<GodOfSea> i am getting a psych syntax error
<GodOfSea> I have been scratching my head for the past 3 hours
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
konsolebox has quit [Ping timeout: 256 seconds]
konsolebox has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
sidx64 has joined #ruby
bonhoeffer has joined #ruby
<GodOfSea> Anyone ?
vondruch has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
eckhardt has joined #ruby
bonhoeffer has joined #ruby
ianmalcolm has quit [Ping timeout: 248 seconds]
eldritch has quit [Ping timeout: 240 seconds]
ryzokuken has joined #ruby
jottr has joined #ruby
cthulchu_ has joined #ruby
<havenwood> ?rails GodOfSea
<ruby[bot]> GodOfSea: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<havenwood> GodOfSea: Show the full error?
cpallares has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
darkhanb has joined #ruby
bonhoeffer has joined #ruby
darkhanb has quit [Client Quit]
jamesaxl has joined #ruby
<GodOfSea> havenwood https://pastebin.com/8mMYQrKt
<ruby[bot]> GodOfSea: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/cb90c1b14482b3d60ccf528af7677af1
<ruby[bot]> GodOfSea: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
bonhoeffer has quit [Remote host closed the connection]
ianmalcolm has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
bonhoeffer has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
orbyt_ has joined #ruby
darkhanb has joined #ruby
eldritch has joined #ruby
eldritch has quit [Max SendQ exceeded]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
ryzokuken has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eldritch has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
ta_ has joined #ruby
DTZUZU has quit [Ping timeout: 245 seconds]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
PhoenixMage has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
ryzokuken has joined #ruby
DTZUZO has joined #ruby
cdg has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
jottr has joined #ruby
DTZUZO has quit [Ping timeout: 260 seconds]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
cdg has quit [Ping timeout: 245 seconds]
DTZUZO has joined #ruby
nadir has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
ryzokuken13 has joined #ruby
GodOfSea has quit [Ping timeout: 268 seconds]
DTZUZU has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
ryzokuken13 has quit [Remote host closed the connection]
aufi has joined #ruby
aufi has quit [Remote host closed the connection]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
eckhardt has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
Xiti` has quit [Quit: Xiti`]
bonhoeffer has joined #ruby
Xiti has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 256 seconds]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
hahuang61 has joined #ruby
Cohedrin has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
aufi has joined #ruby
bonhoeffer has joined #ruby
ianmalcolm has quit [Ping timeout: 248 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ianmalcolm has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
bonhoeffer has quit [Remote host closed the connection]
sidx64 has joined #ruby
bonhoeffer has joined #ruby
n008f4g_ has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
bigblind has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oleo has quit [Quit: Leaving]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
bigblind has quit [Ping timeout: 276 seconds]
apeiros has quit [Remote host closed the connection]
bonhoeffer has quit [Remote host closed the connection]
sidx64 has joined #ruby
bonhoeffer has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
phate408 has joined #ruby
bonhoeffer has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
KeyJoo has joined #ruby
sidx64_ has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
sidx64 has quit [Ping timeout: 248 seconds]
bonhoeffer has joined #ruby
amatas has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
DTZUZU has quit [Ping timeout: 240 seconds]
DTZUZO has quit [Ping timeout: 240 seconds]
sidx64_ has quit [Ping timeout: 265 seconds]
jottr has joined #ruby
bonhoeffer has joined #ruby
cschneid has joined #ruby
n008f4g_ has quit [Ping timeout: 256 seconds]
bonhoeffer has quit [Remote host closed the connection]
DTZUZO has joined #ruby
bonhoeffer has joined #ruby
sidx64 has joined #ruby
cschneid has quit [Ping timeout: 245 seconds]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
DTZUZO has quit [Ping timeout: 260 seconds]
bonhoeffer has quit [Remote host closed the connection]
dionysus69 has joined #ruby
bonhoeffer has joined #ruby
DTZUZO has joined #ruby
DTZUZU has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
sidx64 has joined #ruby
suukim has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
conta has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
hahuang61 has joined #ruby
bonhoeffer has joined #ruby
DTZUZO has quit [Ping timeout: 245 seconds]
bonhoeffer has quit [Remote host closed the connection]
cadillac_ has quit [Ping timeout: 260 seconds]
bonhoeffer has joined #ruby
cadillac_ has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
guardianx has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
Dimik has joined #ruby
bonhoeffer has joined #ruby
schneider has joined #ruby
andikr has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
vondruch has quit [Ping timeout: 256 seconds]
bonhoeffer has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
karapetyan has joined #ruby
clemens3 has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
yeshurun has joined #ruby
yeshurun has left #ruby [#ruby]
jenrzzz has quit [Ping timeout: 276 seconds]
bonhoeffer has quit [Remote host closed the connection]
bigblind has joined #ruby
bonhoeffer has joined #ruby
KramerC has quit [Ping timeout: 248 seconds]
schneider has quit [Ping timeout: 276 seconds]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
bigblind has quit [Ping timeout: 256 seconds]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
KramerC has joined #ruby
vondruch has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
schneider has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
devil_tux has joined #ruby
devil_tux has quit [Client Quit]
bonhoeffer has quit [Remote host closed the connection]
devil_tux has joined #ruby
bonhoeffer has joined #ruby
luminous has quit []
Burgestrand has joined #ruby
guardianx has quit []
ryzokuken has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
ryzokuken has joined #ruby
hahuang61 has joined #ruby
bonhoeffer has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
hahuang61 has quit [Ping timeout: 248 seconds]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
mtkd has joined #ruby
karapetyan has quit [Remote host closed the connection]
sidx64 has joined #ruby
sidx64 has quit [Client Quit]
bonhoeffer has quit [Remote host closed the connection]
karapetyan has joined #ruby
bonhoeffer has joined #ruby
vikas027 has joined #ruby
<vikas027> Hey All, Can someone pls help me why my script is not working with bundle but working otherwise https://dpaste.de/asLt Strangely, this behavior is only on Alpine not OSX
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
TomyWork has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
sidx64 has joined #ruby
bauruine has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
roshanavand has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
aupadhye has joined #ruby
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
bigblind has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
kapil___ has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bonhoeffer has quit [Remote host closed the connection]
ohcibi has quit [Quit: No Ping reply in 180 seconds.]
klaas has quit [Read error: Connection reset by peer]
bonhoeffer has joined #ruby
iNs has quit [Ping timeout: 260 seconds]
mlehrer_ has quit [Excess Flood]
ohcibi has joined #ruby
mlehrer has joined #ruby
klaas has joined #ruby
brodul_ has joined #ruby
Yxhvd has quit [Quit: No Ping reply in 180 seconds.]
brodul has quit [Ping timeout: 255 seconds]
jamesaxl has quit [Ping timeout: 268 seconds]
nicesignal has quit [Ping timeout: 256 seconds]
izaac has quit [Ping timeout: 240 seconds]
izaac has joined #ruby
Yxhuvud has joined #ruby
iNs has joined #ruby
nicoulaj has quit [Ping timeout: 240 seconds]
Drakevr has quit [Ping timeout: 240 seconds]
morfin has quit [Ping timeout: 240 seconds]
nicesignal has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
nicoulaj has joined #ruby
bonhoeffer has joined #ruby
morfin has joined #ruby
Drakevr has joined #ruby
devil_tux has quit [Ping timeout: 265 seconds]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
claudiuinberlin has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
jottr has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
marr has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
McSoFake has joined #ruby
bonhoeffer has joined #ruby
riotjones has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
cdg has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
cdg has quit [Ping timeout: 265 seconds]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
guille-moe has joined #ruby
KeyJoo has quit [Ping timeout: 248 seconds]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has quit [Ping timeout: 252 seconds]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
cthulchu_ has quit [Read error: Connection reset by peer]
cthulchu_ has joined #ruby
Beams has joined #ruby
claudiuinberlin has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
sjums has quit [Quit: Connection reset by beer]
sjums has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
sjums has quit [Client Quit]
bonhoeffer has joined #ruby
sidx64 has joined #ruby
akm980 has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
schneider has quit [Ping timeout: 265 seconds]
Beams_ has joined #ruby
goatish has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
Beams has quit [Ping timeout: 256 seconds]
sjums has joined #ruby
sjums has quit [Client Quit]
bonhoeffer has quit [Remote host closed the connection]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bonhoeffer has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
akm980 has quit [Quit: Page closed]
bonhoeffer has quit [Remote host closed the connection]
tomphp has joined #ruby
bonhoeffer has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
phaul has joined #ruby
bigblind has quit [Ping timeout: 256 seconds]
bonhoeffer has quit [Remote host closed the connection]
bigblind has joined #ruby
bonhoeffer has joined #ruby
marius has quit [Quit: baj]
leitz has joined #ruby
jaruga has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
Dimik has quit [Ping timeout: 276 seconds]
jaruga has left #ruby [#ruby]
bonhoeffer has joined #ruby
hahuang61 has joined #ruby
marius has joined #ruby
soniya29 has joined #ruby
<leitz> I feel like a pariah; getting stuff done with Ruby and barely using objects I create.
bonhoeffer has quit [Remote host closed the connection]
adlerdias has joined #ruby
bonhoeffer has joined #ruby
marius has quit [Remote host closed the connection]
marius has joined #ruby
faces has joined #ruby
InfinityFye has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
Bish has quit [Quit: leaving]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
marius has quit [Quit: baj]
marius has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
mtkd has quit [Ping timeout: 260 seconds]
bonhoeffer has joined #ruby
marius has quit [Client Quit]
mtkd has joined #ruby
marius has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
sameerynho has joined #ruby
marius has quit [Client Quit]
ryzokuken has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has quit [Quit: conta]
conta has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
soniya29 has quit [Quit: Leaving]
bonhoeffer has joined #ruby
xfbs has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
schneider has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
sidx64 has joined #ruby
InfinityFye has left #ruby ["Leaving"]
bigblind has quit [Ping timeout: 260 seconds]
bigblind has joined #ruby
<tbuehlmann> so, what's a nice way to programmatically call `foo.or(bar).or(baz)` for a an array `conditions = [foo, bar, baz]`?
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
ryzokuken has joined #ruby
InfinityFye has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
tomphp has quit [Client Quit]
InfinityFye has left #ruby [#ruby]
bonhoeffer has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
<darix> tbuehlmann: hm?
tomphp has joined #ruby
tomphp has quit [Client Quit]
bonhoeffer has quit [Remote host closed the connection]
tomphp has joined #ruby
tomphp has quit [Client Quit]
bonhoeffer has joined #ruby
ryzokuken has quit [Client Quit]
<phaul> tbuehlmann: can you inject &:or on the array? Depends on what you need...
<tbuehlmann> I'd like to do that, but what'd be your initial object?
claudiuinberlin has joined #ruby
<tobiasvl> yeah, it would be [foo, bar, baz].reduce(&:or)
<phaul> you dont need one with inject, either you start with initial object or not
<phaul> >> [].inject(0, :+)
<ruby[bot]> phaul: # => 0 (https://eval.in/966658)
<phaul> >> [].inject(false, &:or)
<ruby[bot]> phaul: # => false (https://eval.in/966659)
<tbuehlmann> the first element will be the initial object, AFAIR
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
<phaul> I mean if the array is empty you can default to false or something, as in my examle
<phaul> but it depends n your needs.
marius has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
bonhoeffer has quit [Remote host closed the connection]
sjums has joined #ruby
bonhoeffer has joined #ruby
bigblind has quit [Ping timeout: 245 seconds]
sjums has quit [Client Quit]
<tbuehlmann> ah, I misread the documentation!
sjums has joined #ruby
cschneid has joined #ruby
<tbuehlmann> I thought when omitting the initial object the first element is going to be the memo object, effectively calling foo.or(foo).or(bar).or(baz), but it really will be foo.or(bar).or(baz). thanks a lot
jrabe has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
vikas027 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> 12:11 tobiasvl | yeah, it would be [foo, bar, baz].reduce(&:or)
<dminuoso> This.
<dminuoso> Is the way to do it.
<dminuoso> tbuehlmann: btw, want a cool notion of inject/reduce?
<dminuoso> tbuehlmann: https://wiki.haskell.org/wikiupload/3/3e/Right-fold-transformation.png in ruby this would be: obj.reduce(z, &f)
<dminuoso> Though sadly inject behaves as a left fold, so https://wiki.haskell.org/wikiupload/5/5a/Left-fold-transformation.png
ReinH has quit [Quit: Connection closed for inactivity]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
<tbuehlmann> now tell me which one is slighty faster, [foo, bar, baz].reduce(&:or) or [foo, bar, baz].reduce(:or) :P
<dminuoso> asm>> [foo, bar, baz].reduce(&:or)
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/966671
yonahw has joined #ruby
<dminuoso> asm>> [foo, bar, baz].reduce(:or)
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/966672
RougeR has joined #ruby
RougeR has quit [Changing host]
RougeR has joined #ruby
cschneid has quit [Ping timeout: 268 seconds]
<dminuoso> tbuehlmann: Intuition says &:or
ryzokuken has joined #ruby
marius has quit [Quit: baj]
kapil___ has quit [Quit: Connection closed for inactivity]
yonahw_ has quit [Ping timeout: 240 seconds]
<dminuoso> tbuehlmann: this picture makes it much easier to properly utilize reduce/inject, because you can think of it as a structural transformation from a list into a calculation.
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cavallari has joined #ruby
Cavallari has quit [Client Quit]
<jrabe> Are there any known differences in the behavior of Kernel#trap on Linux vs. FreeBSD when multiple threads are active?
bonhoeffer has quit [Remote host closed the connection]
<dminuoso> if you had some `app = -> a, b { a << b }`, then list.inject([], &add) is a noop
<dminuoso> which is really cool to look at
bonhoeffer has joined #ruby
Psybur has joined #ruby
marius has joined #ruby
<dminuoso> so you can reverse a list like this
<dminuoso> >> prep = -> a, b { p a; a.prepend b }; [1,2,3].inject([], &prep)
<ruby[bot]> dminuoso: # => [] ...check link for more (https://eval.in/966674)
<dminuoso> whops
<dminuoso> >> prep = -> a, b { a.prepend b }; [1,2,3].inject([], &prep)
<ruby[bot]> dminuoso: # => undefined method `prepend' for []:Array (NoMethodError) ...check link for more (https://eval.in/966675)
<dminuoso> >> prep = -> a, b { a.unshift b }; [1,2,3].inject([], &prep)
<ruby[bot]> dminuoso: # => [3, 2, 1] (https://eval.in/966676)
nowhere_man has joined #ruby
<dminuoso> the less you think in terms of "memo", the healthier your code becomes
terens has joined #ruby
<terens> I hate rescue nil
bigblind has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marius has quit [Client Quit]
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
marius has joined #ruby
nowhereman_ has quit [Ping timeout: 256 seconds]
bonhoeffer has quit [Remote host closed the connection]
phaul has quit [Quit: WeeChat 2.0.1]
marius has quit [Client Quit]
phaul has joined #ruby
bonhoeffer has joined #ruby
fribmendes has joined #ruby
fribmendes has quit [Client Quit]
_aeris_ has quit [Remote host closed the connection]
_aeris has joined #ruby
fribmendes has joined #ruby
_aeris is now known as _aeris_
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
AJA4350 has joined #ruby
soniya29 has joined #ruby
soniya29_ has joined #ruby
bigblind has quit [Ping timeout: 256 seconds]
ldnunes has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
sjums has quit [Quit: Connection reset by beer]
bonhoeffer has joined #ruby
jamesaxl has joined #ruby
sjums has joined #ruby
soniya29 has quit [Client Quit]
soniya29_ has quit [Client Quit]
hahuang61 has joined #ruby
Cavallari has joined #ruby
shinnya has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
marius has joined #ruby
DTZUZO has joined #ruby
bonhoeffer has joined #ruby
Burgestrand has quit [Quit: Closing time!]
Burgestrand has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
bonhoeffer has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 256 seconds]
bonhoeffer has joined #ruby
Florent974 has joined #ruby
<Florent974> hi
Fusselgesicht has joined #ruby
<Florent974> I have 2 dates, one is : today = Time.now.strftime("%d-%m-%Y) and bd = "01-12-1980"
<Florent974> I wish to be able to show age
<Florent974> anyone can help me ?
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
<jrabe> Florent974, require 'date'; ((Date.today - Date.parse('1980-12-01')) / 365.25).floor.to_s + " years"
<jrabe> you can subtraact dates using the minus operator, but don't call strftime first
cadillac_ has quit [Read error: Connection reset by peer]
bonhoeffer has quit [Remote host closed the connection]
hayden___ has quit [Quit: Connection closed for inactivity]
bonhoeffer has joined #ruby
<Florent974> jrabe, thank you very much!
guille-moe has quit [Ping timeout: 268 seconds]
Burgestrand has quit [Quit: Closing time!]
brodul_ is now known as brodul
tcopeland has quit [Quit: tcopeland]
cadillac_ has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
<al2o3-cr> i quite like this one; (Time.now - Time.utc(1980, 12, 1).to_i).year - 1970
bonhoeffer has joined #ruby
sidx64 has joined #ruby
<Florent974> al2o3-cr, not a problem if i'm located in gmt+4 ?
<al2o3-cr> give an hour or two ;P
<Florent974> ok
<Florent974> al2o3-cr, thanks!
bonhoeffer has quit [Remote host closed the connection]
Florent974 has quit [Quit: Page closed]
bonhoeffer has joined #ruby
leitz has quit [Quit: Nappy time]
tomphp has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
<jrabe> ah, the #year is nice
lightstalker has joined #ruby
zanoni has joined #ruby
bonhoeffer has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
bigblind has joined #ruby
Serpent7776 has joined #ruby
Azure has quit [Read error: Connection reset by peer]
bonhoeffer has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 276 seconds]
bonhoeffer has joined #ruby
claudiuinberlin has joined #ruby
claudiuinberlin has quit [Client Quit]
Azure has joined #ruby
claudiuinberlin has joined #ruby
zapata has quit [Read error: Connection reset by peer]
zapata has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
bonhoeffer has quit [Remote host closed the connection]
SteenJobs has joined #ruby
bonhoeffer has joined #ruby
SteenJobs has quit [Client Quit]
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
John_Ivan has joined #ruby
psychicist__ has quit [Ping timeout: 256 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
psychicist__ has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
riotjoe has joined #ruby
fribmendes has quit [Quit: Zzzz...]
tomphp has joined #ruby
tomphp has quit [Client Quit]
riotjones has quit [Ping timeout: 260 seconds]
<jrabe> Is there a clean way to prevent a thread (in this case a thin web server) from trapping signals? Ideally without patching Kernel#trap?
mtkd has quit [Ping timeout: 248 seconds]
Zaab1t has joined #ruby
mtkd has joined #ruby
jeffreylevesque has quit [Ping timeout: 248 seconds]
<TomyWork> i want to store times in a json. is there some canonical format that i can use that ruby will accept, regardless of locale, OS and such?
<TomyWork> date+time, that is
<TomyWork> 2018-03-05 12:37:12 GMT or something
guille-moe has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
schneider has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby
<canton7> TomyWork, iso8601?
<canton7> that's the bog-standard date/time serialization format. It's standard to use it in json as well
fribmendes has joined #ruby
fribmendes has quit [Client Quit]
RougeR has quit [Ping timeout: 256 seconds]
Burgestrand has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
<TomyWork> ok, but it's a configuration json
<TomyWork> json5 actually
vondruch has quit [Quit: vondruch]
<TomyWork> (cause i was annoyed with the lack of trailing commas and comments ^^)
schneider has quit [Read error: Connection reset by peer]
schneider has joined #ruby
ldnunes has quit [Read error: Connection reset by peer]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
John_Ivan has quit [Ping timeout: 248 seconds]
vondruch has joined #ruby
karapetyan has quit [Remote host closed the connection]
bonhoeffer has quit [Ping timeout: 240 seconds]
Burgestrand has quit [Quit: Closing time!]
<dminuoso> >> [1,2,3,4,5].inject([]) { |l, r| [1, l] }
<ruby[bot]> dminuoso: # => [1, [1, [1, [1, [1, []]]]]] (https://eval.in/966708)
sameerynho has quit [Ping timeout: 268 seconds]
GodFather has quit [Ping timeout: 256 seconds]
Ltem has joined #ruby
synthroid has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has quit [Quit: conta]
tomphp has joined #ruby
tomphp has quit [Client Quit]
conta has joined #ruby
ldnunes has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
mcr1 has quit [Ping timeout: 252 seconds]
_aeris_ has quit [Ping timeout: 255 seconds]
<dminuoso> Let's play a game. Who here can give me a gist, listing the exact semantics of the keyword "next" ?
fribmendes has joined #ruby
_aeris_ has joined #ruby
RougeR has joined #ruby
Flonk has joined #ruby
tcopeland has joined #ruby
bigblind has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
ryzokuken has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby
ryzokuken has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
karapetyan has joined #ruby
Burgestrand has joined #ruby
karapetyan has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 240 seconds]
<TomyWork> isnt there a spec?
SynSynack has quit [Quit: Не разучиться мечтать... любить...]
karapetyan has joined #ruby
DTZUZO has quit [Ping timeout: 256 seconds]
Ltem has quit [Remote host closed the connection]
Ltem has joined #ruby
bigblind has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
schneider has quit [Ping timeout: 260 seconds]
<dminuoso> TomyWork: Hah. There's an ISO standard that no longer is relevant. But the point is just whether regular ruby users understand their language well enough.
schneider- has joined #ruby
fribmendes has quit [Quit: Zzzz...]
drewmcmillan has joined #ruby
<TomyWork> well, i have yet to use it in non-trivial circumstances ^^
fribmendes has joined #ruby
memo1 has joined #ruby
<TomyWork> HNNNNNG, why does Time.new accept strings as its first parameter
<TomyWork> took me way too long to figure out why it's cutting off everything but the year
luminous has joined #ruby
luminous has quit [Client Quit]
fribmendes has quit [Client Quit]
<dminuoso> TomyWork: So what do you think "next" does?
luminous has joined #ruby
luminous has quit [Changing host]
luminous has joined #ruby
luminous has joined #ruby
<TomyWork> dminuoso returns a value from a block to the caller, instructing it to go to the next item
<TomyWork> i'm pretty sure there's more involved behind the scenes, but that's how i use it
luminous has quit [Client Quit]
karapetyan has joined #ruby
luminous has joined #ruby
luminous has quit [Client Quit]
tubbo has joined #ruby
karapetyan has quit [Remote host closed the connection]
mcr1 has joined #ruby
<dminuoso> TomyWork: Alright! So how is `next` different from `return` ?
karapetyan has joined #ruby
<dminuoso> TomyWork: And furthermore, you dont always use `next` from inside a block.
<dminuoso> For loops for example.
<TomyWork> tbh i have no idea what exactly happens if you return from a block
<TomyWork> i'd rather just not do it
<dminuoso> asm>> for i in (1..3); puts 1; end
<TomyWork> seems unclean, if it works
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/966751
<dminuoso> Or well, I guess it formally creates a block. TIL.
<dminuoso> TomyWork: It absolutely works.
<dminuoso> Just begs the question what it does.
<dminuoso> TomyWork: And then there's break.
<dminuoso> So now you have `break`, `next`, `return`. All three are effectively non local gotos.
joe_from_maine has joined #ruby
<TomyWork> basically
<TomyWork> and i'd rather avoid non-local gotos :)
<dminuoso> TomyWork: they are the essence of imperative programming
<TomyWork> err, how is next non-local?
schneider- has quit [Ping timeout: 265 seconds]
<dminuoso> asm>> proc{ next }
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/966758
<TomyWork> the thing is, return crosses scopes
cdg has joined #ruby
<TomyWork> what happens if your block is run on another thread?
<dminuoso> TomyWork: ^- see the disassmbled bytecode? See that "jump" instruction?
<dminuoso> Oh I guess next is a local goto _here_
<dminuoso> but how about
<dminuoso> asm>> p { next }
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/966759
<TomyWork> does the original function still return?
<dminuoso> Oh well! Next is a local goto indeed.
<dminuoso> asm>> p { break }
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/966760
<dminuoso> There we go!
<dminuoso> break was the non local goto.
<TomyWork> nopnop
<TomyWork> yeah i figured break was something like a throw
<dminuoso> TomyWork: and return is a throw too.
<TomyWork> that's how i implemented it in my expression parser ^^
<dminuoso> asm>> proc{ return 10 }
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/966761
<dminuoso> TomyWork: So the reason both are non local, is that they jump into preset catch tables.
<dminuoso> TomyWork: you can observe this from the fact that if you return from a _proc_, it doesn't straight up transfer control to the caller of the proc, but into.. well this is where things get really messy.
<TomyWork> and that is why i avoid it :)
<TomyWork> one does not simply walk out of a procedure from a block
<TomyWork> s/procedure/function/
<dminuoso> TomyWork: This is a _crude_, incompletely and partially incorrect list: https://gist.github.com/dminuoso/fba06a2323bbedf946ef144eb4f500f2
<dminuoso> (the reason is that its incorrect is that the semantics of `return` are far more bizarre)
cdg has quit [Ping timeout: 260 seconds]
<TomyWork> funny how return has the simplest description
<dminuoso> I think out of all, "next" is best described with "transfer control to end of current block"
<TomyWork> yet is the biggest mindfuck
<dminuoso> TomyWork: It doesn't. It's wrong.
cdg has joined #ruby
<TomyWork> line 10 is wrong too
<TomyWork> you discount the condition
<dminuoso> TomyWork: well I now know how to phrase next correctly
<dminuoso> the correct form is very simple
<TomyWork> yup
synthroid has quit [Remote host closed the connection]
<dminuoso> "transfer control to end of current block"
<dminuoso> + stack maintainance
<dminuoso> asm>> loop { next}
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/966771
_aeris_ has quit [Remote host closed the connection]
<dminuoso> asm>> loop { next 10; }
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/966773
<dminuoso> so "push on stack, transfer control"
_aeris_ has joined #ruby
<TomyWork> what stack maintenance is there to do?
<TomyWork> oh right, dynamic language
<TomyWork> discarding locals
<dminuoso> no it just pushes the argument on the current stack thats all
<dminuoso> so that it becomes the return value of the block
fribmendes has joined #ruby
Guest9062 has quit [Ping timeout: 276 seconds]
<dminuoso> TomyWork: So how about this
ananth99 has joined #ruby
<dminuoso> TomyWork: without running this, tell me how this would behave
synthroid has joined #ruby
<dminuoso> def m(); yield; end; m &proc{ break }
dionysus69 has quit [Ping timeout: 260 seconds]
<dminuoso> TomyWork: The basic notion is, that during compilation the catch table has to be known.
<dminuoso> But from that scope there exists no catch table
eb0t- has quit [Quit: WeeChat 1.9.1]
<dminuoso> It doesnt fit completely tohugh
mcr1 has quit [Ping timeout: 256 seconds]
<dminuoso> >> def q; yield; end; def m; while true; q &proc{ break }; end; end; m
<ruby[bot]> dminuoso: # => break from proc-closure (LocalJumpError) ...check link for more (https://eval.in/966775)
<TomyWork> "def m(); yield; end" is equivalent to "def m(&block); block.call; end", right?
<dminuoso> >> >() { proc{ break }.() }.()
<ruby[bot]> dminuoso: # => /tmp/execpad-03c2d6e47620/source-03c2d6e47620:2: syntax error, unexpected '>' ...check link for more (https://eval.in/966776)
<dminuoso> >> ->() { proc{ break }.() }.()
<ruby[bot]> dminuoso: # => break from proc-closure (LocalJumpError) ...check link for more (https://eval.in/966777)
<dminuoso> TomyWork: Usually yes.
<TomyWork> dminuoso you got a slight lisp there
<dminuoso> >> ->() { proc{ break }[] }[]
<ruby[bot]> dminuoso: # => break from proc-closure (LocalJumpError) ...check link for more (https://eval.in/966779)
<dminuoso> if you prefer
eb0t has quit [Quit: WeeChat 1.9.1]
<dminuoso> >> def m; break; end
<ruby[bot]> dminuoso: # => /tmp/execpad-9136ce6ca1f1/source-9136ce6ca1f1: /tmp/execpad-9136ce6ca1f1/source-9136ce6ca1f1:2: Inva ...check link for more (https://eval.in/966780)
<dminuoso> >> define_method(:m, &proc{ break }); m
<ruby[bot]> dminuoso: # => nil (https://eval.in/966781)
luminous has joined #ruby
<ananth99> Hello all, came across a peculiar issue where a valid photo url(http://s3-us-west-2.amazonaws.com/images.verifymybiz.com/location_photos/photos/000/085/493/original/preci.jpg.jpg?1515869697) when downloaded to my computer gets recognised as a damaged file. I used the following function to download the image.
<ananth99> file = open(file_path, "wb")
<ananth99> file_path = "/tmp/location_photos/#{file_name}"
<ananth99> file_name = SecureRandom.uuid.split('-').join[0..45].to_s + '.png'
<ananth99> ```
<ananth99> file.close
<ananth99> ```
<ananth99> I have no idea as to why the image seems to be damaged after it's downloaded. Any pointers on this would be really helpful! TIA
<dminuoso> >> proc{ break }[]
<dminuoso> TomyWork: No matter how hard I try, I cant find any satisfactory explanation for all of this.
<TomyWork> ananth99 next time, please pastebin your code
<dminuoso> Apart from "Lots of if/else" spaghetti in the YARV compiler.
<TomyWork> especially if you markdown it ^^
<ananth99> TomyWork Duly noted. :)
<TomyWork> ananth99 what happens if you curl/wget the file
zanoni has left #ruby [#ruby]
<dminuoso> arahael: What is your `open` here?
<dminuoso> Is that supposed to be Kernel#open?
<ananth99> TomyWork I tried saving the file from chrome as well. Same issue persists.
<TomyWork> ananth99 so it's not a ruby problem?
<ananth99> open is from OpenURI
jcalla has joined #ruby
<ananth99> TomyWork trying to figure that out. I mean can this issue be fixed by fetching the photo in a different way?
<ananth99> I'll try cURL and post here
<Burgestrand> ananth99 Your image is a WebP, not jpg
<dminuoso> Burgestrand: You! You're the guilty one.
<dminuoso> You are the reason my simple view on return/break/next is kaputt.
<Burgestrand> :)
<dminuoso> You broke it without repairing it.
<Burgestrand> ananth99 If you open your URL in e.g. Safari you'll also see a broken image, because Safari no like webp
<ananth99> How did you figure out that it was a WebP
<Mon_Ouie> What did your vision expect Thread.new { break 5 } to do?
<Burgestrand> ananth99 I downloaded it and ran `file` on it: data: RIFF (little-endian) data, Web/P image, VP8 encoding, 1900x919, Scaling: [none]x[none], YUV color, decoders should clamp
ldepandis has joined #ruby
<Burgestrand> Mon_Ouie it's nice to see an old familiar name in here, I'm glad you're still around :)
<Mon_Ouie> Nice to see you too :)
alex`` has joined #ruby
Papierkorb has joined #ruby
n0m4d1c has joined #ruby
schneider- has joined #ruby
Papierkorb has left #ruby ["Konversation terminated!"]
lightstalker has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
<ananth99> Burgestrand thanks for the tip. :)
tubbo has quit [Ping timeout: 240 seconds]
<Burgestrand> ananth99 yw :) managed to fix it?
<ananth99> Burgestrand: Yes. We just went around using the "identify" cmd that imagemagick provides. Didn't know "file" cmd could do it. Very sweet ~!
riotjoe has quit [Remote host closed the connection]
bmurt has joined #ruby
riotjones has joined #ruby
lightstalker has joined #ruby
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
<Burgestrand> ananth99 Nice :)
memo1 has quit [Ping timeout: 256 seconds]
Cthulu201 has joined #ruby
tubbo has joined #ruby
k0mpa has joined #ruby
gheegh has joined #ruby
hahuang61 has joined #ruby
mtkd has quit [Ping timeout: 256 seconds]
terens has quit [Quit: Leaving]
DLSteve has joined #ruby
mtkd has joined #ruby
goatish has quit [Quit: Hibernating]
hahuang61 has quit [Ping timeout: 252 seconds]
griffindy has joined #ruby
Ltem has quit [Quit: bbl]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
griffindy has quit [Ping timeout: 245 seconds]
n0m4d1c has quit [Remote host closed the connection]
alex`` has quit [Ping timeout: 256 seconds]
nickjj_ has joined #ruby
jottr_ has joined #ruby
synthroi_ has joined #ruby
mozzarel1 has joined #ruby
hr3f has joined #ruby
universal has joined #ruby
eb0t has joined #ruby
craysiii_ has joined #ruby
eblip has joined #ruby
kspencer_ has joined #ruby
brodul_ has joined #ruby
mbr__ has joined #ruby
Phate has joined #ruby
mniip has quit [Quit: This page is intentionally left blank.]
McSoFake_ has joined #ruby
craysiii has quit [Ping timeout: 276 seconds]
kspencer has quit [Ping timeout: 276 seconds]
byte512 has quit [Ping timeout: 276 seconds]
universa1 has quit [Ping timeout: 276 seconds]
phate408 has quit [Read error: Connection reset by peer]
href has quit [Read error: Connection reset by peer]
McSoFake has quit [Remote host closed the connection]
nicoulaj has quit [Read error: Connection reset by peer]
brodul has quit [Ping timeout: 276 seconds]
synthroid has quit [Read error: Connection reset by peer]
n13z has quit [Ping timeout: 276 seconds]
mozzarella has quit [Ping timeout: 276 seconds]
saksida has quit [Ping timeout: 276 seconds]
mbr has quit [Ping timeout: 276 seconds]
jottr has quit [Ping timeout: 276 seconds]
c0ncealed has quit [Ping timeout: 276 seconds]
nickjj has quit [Ping timeout: 276 seconds]
joast has quit [Ping timeout: 276 seconds]
balo has quit [Ping timeout: 276 seconds]
kspencer_ is now known as kspencer
brodul_ is now known as brodul
hr3f is now known as href
craysiii_ is now known as craysiii
Papierko- has joined #ruby
mozzarel1 is now known as mozzarella
mniip has joined #ruby
balo has joined #ruby
byte512 has joined #ruby
n13z has joined #ruby
c0ncealed has joined #ruby
Mia has quit [Read error: Connection reset by peer]
nicoulaj has joined #ruby
saksida has joined #ruby
psmolen has quit [Ping timeout: 260 seconds]
karapetyan has quit [Remote host closed the connection]
tubbo has quit [Ping timeout: 252 seconds]
n0m4d1c has joined #ruby
iNs has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
nowhere_man has joined #ruby
fribmendes has quit [Quit: Zzzz...]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
shoogz has quit [Read error: Connection reset by peer]
oleo has joined #ruby
karapetyan has quit [Remote host closed the connection]
psmolen has joined #ruby
iNs has joined #ruby
karapetyan has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
bigblind has quit [Ping timeout: 265 seconds]
karapetyan has quit [Remote host closed the connection]
synthroi_ has quit [Remote host closed the connection]
karapetyan has joined #ruby
synthroid has joined #ruby
guille-moe has quit [Ping timeout: 256 seconds]
guille-moe has joined #ruby
kapil___ has joined #ruby
nickjj_ is now known as nickjj
fribmendes has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
nowhere_man has quit [Ping timeout: 260 seconds]
nowhereman_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
Rapture has joined #ruby
karapetyan has joined #ruby
haxx0r has joined #ruby
<haxx0r> can i post rails related question?
<dminuoso> ?rails haxx0r
<ruby[bot]> haxx0r: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<kspencer> why not use #rubyonrails
sagax has joined #ruby
haxx0r has left #ruby [#ruby]
aScottishBoat has joined #ruby
nowhereman_ has quit [Ping timeout: 260 seconds]
pastorinni has joined #ruby
tubbo has joined #ruby
nowhereman_ has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
milardovich has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
bonhoeffer has joined #ruby
tubbo has quit [Ping timeout: 252 seconds]
tubbo has joined #ruby
DTZUZO has joined #ruby
netherwolfe has joined #ruby
cschneid has joined #ruby
nielsk has quit [Quit: So Long, and Thanks for All the Fish]
joast has joined #ruby
nielsk has joined #ruby
nielsk has quit [Remote host closed the connection]
nielsk has joined #ruby
nielsk has quit [Remote host closed the connection]
ldnunes has quit [Read error: Connection reset by peer]
nielsk has joined #ruby
ldnunes has joined #ruby
momomo has joined #ruby
<momomo> is there a deep_merge that actuall works ?
<momomo> <%
<momomo> :email_password => {
<momomo> locals = locals.deep_merge({
<momomo> :wrapper_attributes => 'class="aaabbbss"'
<momomo> },
<momomo> :password => {
<momomo> :render => locals[:account_exist],
<momomo> :tip => 'Please create a strong password',
<momomo> :append_partial => '../partials/elements/toggle_password_visibility_button'
<Mon_Ouie> !kick momomo
<momomo> }
momomo was kicked from #ruby by ruby[bot] [kickable offense, see http://ruby-community.com/pages/user_rules]
karapetyan has quit [Remote host closed the connection]
<morfin> lol
<darix> Mon_Ouie: now i dont get the value for the password!
<darix> you meanie
karapetyan has joined #ruby
aScottishBoat has quit [Ping timeout: 240 seconds]
momomo has joined #ruby
<momomo> anyone?
<momomo> i am back
karapetyan has quit [Ping timeout: 240 seconds]
<momomo> we are using middleman... if i want to add a function to Hash .. where do I do that ?
<Mon_Ouie> momomo: Please use gist to share code, don't copy paste it on the channel
<momomo> Mon_Ouie: Ok, but the channel is dead ... we shouldnt be so sensitive
<momomo> where would this method be added? https://stackoverflow.com/a/5581667
<momomo> So that it works on a hash directly
hahuang61 has joined #ruby
<momomo> "monkey-patching" ?
<Mon_Ouie> monkey patching just means adding methods to a class you didn't create
<Mon_Ouie> Which is what the second snippet of that answer does
<momomo> But where do i add that code? How do I get ruby to read it in?
<momomo> We are using middleman ... i have some files .. general_helpers.rb and a few otherws
<momomo> Mon_Ouie:
<momomo> Tried to copy and paste it into general_helpers .. and a own file Hash.rb but to no avail
nielsk has quit [Quit: So Long, and Thanks for All the Fish]
nielsk has joined #ruby
<Mon_Ouie> You put it in a ruby file that you execute or require from some other file
<Mon_Ouie> It's just a regular piece of code
hahuang61 has quit [Ping timeout: 248 seconds]
nielsk has quit [Client Quit]
nielsk has joined #ruby
jottr_ has joined #ruby
desperek has joined #ruby
troys has joined #ruby
schneider- has quit [Ping timeout: 240 seconds]
zautomata has joined #ruby
zautomata has quit [Changing host]
zautomata has joined #ruby
chouhoulis has joined #ruby
<momomo> is there a way to protoype a method into a class in ruby ?
<bougyman> modules are used for that.
<bougyman> well, closest thing to prototyping a method that ruby has.
<al2o3-cr> what about refinements
schneider- has joined #ruby
SeepingN has joined #ruby
<momomo> bougyman: any example ?
<momomo> just add a random method to Hash ?
<momomo> bougyman: ive tried https://hastebin.com/uyahisetax.rb
<momomo> but I am getting a startup error saying the method include is private
<momomo> on Hash
suhdood has joined #ruby
<momomo> config.rb:210:in `initialize': private method `include' called for GeneralHelpers::Hash:Class (NoMethodError)
clemens3 has quit [Quit: upgrading vbox..]
inerthia has quit [Ping timeout: 240 seconds]
marxarelli|afk is now known as marxarelli
k0mpa has quit [Read error: Connection reset by peer]
jnollette has quit [Read error: Connection reset by peer]
_aeris_ has quit [Read error: Connection reset by peer]
aguestuser has quit [Write error: Connection reset by peer]
_aeris_ has joined #ruby
aguestuser has joined #ruby
schneider- has quit [Ping timeout: 256 seconds]
inerthia has joined #ruby
inerthia has joined #ruby
inerthia has quit [Changing host]
<Mon_Ouie> Use `class Hash; include CoreExtensions::Hash; end' (include is private so it cannot be called with an explicit receiver)
schneider- has joined #ruby
<momomo> Mon_Ouie: I am guessing that would be the same as just copy and paste that method into the class here ... i get no error but the method is still not available on other {} objects
<momomo> doing just class Hash; def recursive_merge() ... ; is not enough
<momomo> right after, config.rb:212:in `initialize': undefined method `merge_recursive' for {}:Hash (NoMethodError)
<momomo> Can you make this work?
<Mon_Ouie> When do you load the file in which you defined merge_recursive?
vutral|kali has quit [Ping timeout: 260 seconds]
<Mon_Ouie> Also you recursive_merge != merge_recursive
jnollette has joined #ruby
<momomo> The hastebin are all in the same file .. pasted in a config.rb which seems to run when I start middleman ..
schneider- has quit [Ping timeout: 268 seconds]
<Mon_Ouie> The file you pasted runs just fine in Ruby
amatas has quit [Quit: amatas]
amatas has joined #ruby
synthroid has quit [Remote host closed the connection]
<momomo> Does it matter if it is part of another file ... or does it have to be in a file of its own ?
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
adlerdias has quit [Quit: adlerdias]
adlerdias has joined #ruby
<Mon_Ouie> It doesn't. One thing that may matter is if Hash does not refer to ::Hash but some other Hash class defined in a module. Does using 'class ::Hash' behave the same way?
conta has quit [Ping timeout: 268 seconds]
clemens3 has joined #ruby
cthulchu_ has quit [Ping timeout: 276 seconds]
Burgestrand has quit [Quit: Closing time!]
amatas has quit [Client Quit]
amatas has joined #ruby
starseed0000 has joined #ruby
adlerdias has quit [Client Quit]
adlerdias has joined #ruby
Serpent7776 has quit [Quit: Leaving]
memo1 has joined #ruby
cdg has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
cdg has joined #ruby
netherwolfe_ has joined #ruby
jnollette has quit [Remote host closed the connection]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jnollette has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
synthroid has joined #ruby
amelliaa has joined #ruby
dviola has joined #ruby
netherwolfe has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
heftig has quit [Remote host closed the connection]
heftig has joined #ruby
heftig has quit [Read error: Connection reset by peer]
vutral|kali has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
mtkd has quit [Ping timeout: 248 seconds]
heftig has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
gheegh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
cadillac_ has joined #ruby
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
aScottishBoat has joined #ruby
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
<momomo> is there a deepmerge that can merge and take a lambda ?
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
Papierko- has left #ruby ["Konversation terminated!"]
<apeiros> momomo: you can write one rather trivially
<apeiros> blocks can accept blocks ever since ruby 1.9 iirc
<momomo> apeiros: i am a stranger to ruby .. so difficult right now ... i found some incomplete examples .. here is one :
roshanavand has joined #ruby
anisha has joined #ruby
gheegh has joined #ruby
andikr has quit [Remote host closed the connection]
anisha has quit [Client Quit]
alex`` has joined #ruby
momomo has quit [Remote host closed the connection]
<apeiros> uh, ok, bye.
momomo has joined #ruby
<momomo> I was disconnected ... did I miss something?
<apeiros> ah
[Butch] has joined #ruby
<apeiros> no. I was about to write something. also this channel is logged re "did I miss something"
<apeiros> I can help you write your own implementation if you want.
cadillac_ has quit [Ping timeout: 256 seconds]
cadillac_ has joined #ruby
cthulchu has joined #ruby
talntid has left #ruby [#ruby]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
clemens3 has quit [Ping timeout: 248 seconds]
momomo has quit [Ping timeout: 256 seconds]
TomyWork has quit [Ping timeout: 240 seconds]
dviola has quit [Quit: WeeChat 2.0.1]
aupadhye has quit [Ping timeout: 256 seconds]
hahuang61 has joined #ruby
schneider- has joined #ruby
hahuang61 has quit [Ping timeout: 252 seconds]
karapetyan has joined #ruby
schneider- has quit [Ping timeout: 256 seconds]
anjen has joined #ruby
d10n-work has joined #ruby
darkhanb has joined #ruby
tubbo has quit [Ping timeout: 252 seconds]
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
samort7 has joined #ruby
jcarl43 has joined #ruby
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
n0m4d1c has joined #ruby
samort7 has quit [Client Quit]
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
samort7 has joined #ruby
samort7 has quit [Client Quit]
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
samort7 has joined #ruby
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
schneider- has joined #ruby
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
cadillac_ has quit [Ping timeout: 248 seconds]
luminous has quit [Quit: Connection closed for inactivity]
cadillac_ has joined #ruby
guille-moe has quit [Ping timeout: 240 seconds]
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
cdg has joined #ruby
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
cdg has quit [Ping timeout: 265 seconds]
marr has joined #ruby
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
Cohedrin has joined #ruby
bigblind has joined #ruby
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
Cohedrin has quit [Client Quit]
aufi has quit [Quit: Leaving]
tomlukeywood has joined #ruby
tomlukeywood has quit [Remote host closed the connection]
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
rhebz916 has joined #ruby
schneider- has quit [Ping timeout: 260 seconds]
gheegh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
biberu has joined #ruby
warrshrike has joined #ruby
<warrshrike> heys
<warrshrike> getting strange behaviour from my class
<warrshrike> class Users def initialize @users = [] end def insertUser u @users << u end end
<warrshrike> so this is the class
<warrshrike> bb = Users.new; bb.insertUser User.new 11, true
<warrshrike> this is the code
<warrshrike> `insertUser': undefined method `<<' for false:FalseClass (NoMethodError)
<warrshrike> this is the error^
<warrshrike> anyone?
<warrshrike> brothers?
<warrshrike> sisters?
eckhardt has joined #ruby
tubbo has joined #ruby
aScottishBoat has quit [Ping timeout: 248 seconds]
<gizmore> warrshrike: you are sending << to a boolean
<gizmore> No such method on that false boolean
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<TheMoonMaster> warrshrike: also you probably want `insert_user`, not `insertUser`
gheegh has joined #ruby
hahuang61 has joined #ruby
<apeiros> warrshrike: the code you provided does not actually raise the exception you say
rhebz916 has quit [Quit: Leaving]
sanscoeur has joined #ruby
<apeiros> please don't paste fake code. that makes it just harder for everybody.
hahuang65 has joined #ruby
sanscoeur has quit [Read error: Connection reset by peer]
sanscoeur has joined #ruby
hahuang65 has quit [Client Quit]
warrshrike_ has joined #ruby
<apeiros> (and that's after fixing the obvious bugs like Users vs. User and missing newlines/;)
<warrshrike_> sorry i got dc'd
<warrshrike_> Im doing: @users << u
<apeiros> ?log warrshrike
<ruby[bot]> apeiros: I don't know anything about log
<warrshrike_> @users is an array
<ruby[bot]> warrshrike: You can find a log of this channel at https://irclog.whitequark.org/ruby/
<apeiros> ?logs warrshrike
warrshrike has quit [Ping timeout: 260 seconds]
<warrshrike_> thanks! but it isnt boolean right?
schneider- has joined #ruby
<apeiros> not in the code you provided. but since that's not the real code, what's the point?
<warrshrike_> okay here is the complete code...
memo1 has quit [Ping timeout: 248 seconds]
<warrshrike_> TheMoonMaster: anything wrong with camel casing? :/
<apeiros> progress. now the full exception.
<warrshrike_> RubymineProjects/HelperBot/user.rb:29:in `insertUser': undefined method `<<' for false:FalseClass (NoMethodError) from /mnt/c/Users/ali_a/RubymineProjects/HelperBot/user.rb:72:in `<top (required)>' from -e:1:in `load' from -e:1:in `<main>'
kapil___ has quit [Quit: Connection closed for inactivity]
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> warrshrike_: you probably should take a look at that yaml file
mcr1 has joined #ruby
<apeiros> so yes, @users is a boolean. real code matters.
orbyt_ has joined #ruby
<warrshrike_> there is no yml file...yet
<warrshrike_> oh.
X-Jester is now known as X-Jester_
<apeiros> also think about `bb.insertUser User.new 11, true`
<apeiros> is true an argument for insertUser or for new? why? and how should ruby decide?
Xiti has quit [Quit: Xiti]
<warrshrike_> okay yeah i need parenthesis
X-Jester_ is now known as X-Jester
<warrshrike_> imo. ruby stresses a lot on no parens so its easy to go overboard
daveomcd has joined #ruby
<warrshrike_> also ruby's runtime errors can be a ticking time bomb for some like me who is unable to do TDD
<daveomcd> I'm getting the following error, I use rvm but from what I can tell my certs are up to date... anyone know some commands that I could use to verify that and even correct?: Faraday::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
tubbo has quit [Quit: WeeChat 2.0.1]
gheegh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Beams_ has quit [Quit: .]
gheegh has joined #ruby
amelliaa has quit [Quit: -]
clemens3 has joined #ruby
dionysus69 has joined #ruby
<morfin> SSLv3?
tubbo has joined #ruby
<daveomcd> or perhaps the error isn't as much about my system but saying the destination's certificate is failing?
lytol has joined #ruby
jerikl has joined #ruby
starseed0000 has quit [Ping timeout: 260 seconds]
anisha has joined #ruby
\void has joined #ruby
Xiti has joined #ruby
starseed0000 has joined #ruby
<dostoyevsky> > undefined method `type_suffix' for #<struct :"CommonTree type_suffix"=nil> (NoMethodError)
rstandy has joined #ruby
<dostoyevsky> I wonder what kind of struct data type antlr is using here
<apeiros> looks like a normal Struct
<rstandy> hello, is there a way to silence ruby deprecation warnings for a specific command line program?
sameerynho has joined #ruby
<apeiros> though the name looks funny
<apeiros> oh lol, it's not the name. it's the struct member.
hahuang61 has quit [Ping timeout: 260 seconds]
<apeiros> dostoyevsky: the struct member's name is "CommonTree :type_suffix", not just type_suffix
jnollette has quit [Remote host closed the connection]
arkymad has joined #ruby
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
mr_foto has joined #ruby
jnollette has joined #ruby
rstandy has quit [Client Quit]
RougeR has quit [Ping timeout: 240 seconds]
jottr_ has quit [Ping timeout: 256 seconds]
<dostoyevsky> apeiros: Yeah, thanks
lxsameer has joined #ruby
nowhereman_ has quit [Ping timeout: 276 seconds]
mr_foto has quit []
cdg has joined #ruby
daveomcd has quit [Quit: Leaving]
jottr_ has joined #ruby
drewmcmillan has joined #ruby
jerikl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 256 seconds]
cdg has quit [Ping timeout: 265 seconds]
arkymad has quit [Read error: Connection reset by peer]
n008f4g_ has joined #ruby
<dostoyevsky> So it wasn't too hard after all to port that antlr parser from Java to ruby... :)
fr4nt1c has joined #ruby
<dostoyevsky> (The grammar.g used Java syntax at places)
jerikl has joined #ruby
pastorinni has quit [Remote host closed the connection]
ogres has joined #ruby
claudiuinberlin has joined #ruby
lightstalker has quit [Ping timeout: 240 seconds]
n0m4d1c has quit [Remote host closed the connection]
mtkd has quit [Ping timeout: 256 seconds]
claudiuinberlin has quit [Client Quit]
n0m4d1c has joined #ruby
hahuang61 has joined #ruby
mr_foto has joined #ruby
mtkd has joined #ruby
milardovich has quit [Remote host closed the connection]
bigblind has quit [Quit: Ping timeout (120 seconds)]
n0m4d1c has quit [Remote host closed the connection]
milardovich has joined #ruby
bigblind has joined #ruby
milardov_ has joined #ruby
fribmendes has quit [Quit: Zzzz...]
hahuang61 has quit [Ping timeout: 245 seconds]
joe_from_maine has quit [Ping timeout: 240 seconds]
milardovich has quit [Ping timeout: 260 seconds]
go|dfish has quit [Remote host closed the connection]
hahuang65 has joined #ruby
lightstalker has joined #ruby
<ule> Hey guys, I'm trying to create a breadcrumb from a hash
karapetyan has quit [Remote host closed the connection]
joe_from_maine has joined #ruby
fribmendes has joined #ruby
fribmendes has quit [Client Quit]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<apeiros> ule: you want to print the keys, not the values.
<apeiros> also you want breadth first, not depth. so before recurring, you should print all keys first.
claudiuinberlin has joined #ruby
karapetyan has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
lxsameer has quit [Ping timeout: 260 seconds]
warrshrike_ has quit [Quit: Page closed]
orbyt_ has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has quit [Ping timeout: 240 seconds]
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
logoscoder has joined #ruby
<ule> apeiros: ok
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamiejackson has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<ule> apeiros: at the first iteration it gives me A as key and the rest as value right
<ule> so, I guess after getting this A, I should imidialy start recursivelly looking at each key inside value
<ule> thats why I thought to call the recursion passing(v)
<ule> :/
<apeiros> recursion is the right approach, yes
<apeiros> but since you have breadth first, you need two iterations. the first iteration is to print the current level. the second iteration is to recurse
nowhereman_ has joined #ruby
<ule> yes, thats what I have there.. h.each (first iteration), and recursion inside that
<apeiros> no, that's not what you have there. you have a single iteration which recurs. that gives you depth-first
cdg has joined #ruby
<ule> so if I understood well, I need v.each as well
<ule> let me try
herbmillerjr has quit [Excess Flood]
herbmillerjr has joined #ruby
tubbo has quit [Ping timeout: 255 seconds]
suukim has quit [Quit: Konversation terminated!]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
tvw has quit [Remote host closed the connection]
drewmcmillan has joined #ruby
milardov_ has quit [Remote host closed the connection]
hahuang61 has joined #ruby
alex`` has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<ule> A -> B
<ule> A -> F
<ule> apeiros: I guess now its time to call the recursion right?
stairmast0r_ has joined #ruby
<apeiros> ule: sorry, opting for the easy solution for me for now. here's a working example: https://gist.github.com/apeiros/a81b1ff315a517bbaaac7f5f8d00492e
hahuang61 has quit [Ping timeout: 240 seconds]
<ule> apeiros: in your example, stack is the previous level?
tubbo has joined #ruby
<apeiros> I'd say no. depends on your understanding of "previous level". it's more like the current location.
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
raynold has joined #ruby
<baweaver> Oh hey, keypaths
<apeiros> add debug outputs as necessary to understand what's going on. I'm a bit busy.
lightstalker has quit [Remote host closed the connection]
<ule> thank you very much apeiros
<apeiros> yw
milardovich has joined #ruby
lightstalker has joined #ruby
bonhoeffer has quit [Ping timeout: 260 seconds]
samort7_ has joined #ruby
aufi has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
samort7 has quit [Ping timeout: 240 seconds]
<ule> baweaver: nice one as well. I didn't know about that reduce with 3 elements
milardovich has quit []
tubbo has quit [Ping timeout: 265 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
<apeiros> baweaver: interesting solution. but the current version of yours is depth-first too
<apeiros> the example ule gave was breadth-first
<apeiros> I wondered whether there's a way to do it without a stack and/or without two iterations
<ule> I found this one googling here: https://gist.github.com/crwang/6a9d6ab3b248debb5131
jerikl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ule> actually, this one:
agent_white has quit [Quit: brb]
alex`` has joined #ruby
tomphp has quit [Client Quit]
agent_white has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
adlerdias has quit [Ping timeout: 260 seconds]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jcalla has quit [Ping timeout: 240 seconds]
InfinityFye has joined #ruby
n0m4d1c has joined #ruby
AJA4350 has quit [Ping timeout: 252 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
marr has joined #ruby
Sambsquanch has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jerikl has joined #ruby
AJA4350 has joined #ruby
claudiuinberlin has joined #ruby
joe_from_maine has quit [Quit: Lost terminal]
ledestin has joined #ruby
Dimik has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jcalla has joined #ruby
gheegh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pastorinni has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Psybur has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 265 seconds]
vutral|kali has quit [Read error: Connection reset by peer]
stairmast0r has quit [Quit: bye]
<dminuoso> ule: Its not 3 elements.
<ule> dminuoso: what do you mean?
govg has joined #ruby
<ule> oh in the reduce parameters there? gotcha
<dminuoso> ule: In somewhat simplified terms { |(a, b)| ... } is the same as { |p| a, b = p}
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> ule: So in a way it just assumes the second argument itself is an array, or something that can be coerced using to_ary
<dminuoso> >> f = proc{ |(a,b)| p a }; f[ [1,2,3] ]
<ruby[bot]> dminuoso: # => 1 ...check link for more (https://eval.in/967050)
eckhardt has joined #ruby
<dminuoso> >> f = proc{ |(a,b)| p b }; f[ [1,2,3] ]
<ruby[bot]> dminuoso: # => 2 ...check link for more (https://eval.in/967051)
stairmast0r_ is now known as stairmast0r
InfinityFye has quit [Ping timeout: 240 seconds]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
<dminuoso> As you can see in this example, Im passing just a single argument.
mcr1 has quit [Ping timeout: 256 seconds]
meinside has quit [Quit: Connection closed for inactivity]
govg has quit [Ping timeout: 276 seconds]
stairmast0r has quit [Changing host]
stairmast0r has joined #ruby
<ule> When using a recursive logic, how can I return the value instead of using "puts" in the middle of the method?
gheegh has joined #ruby
<ule> if I add an acumulator like foo << x, or foo += x it doesn't work because I need to declare foo = '' when I start the method
Zaab1t has quit [Quit: Zaab1t]
bmurt has joined #ruby
bmurt has quit [Remote host closed the connection]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
<dminuoso> ule: Depends. If you are using a lambda you can just use "return", inside a block/proc you have to use "next" instead.
<dminuoso> ule: Inside a proc/block "next" semantically means return in the way you would expect it.
suhdood has quit [Read error: Connection reset by peer]
<dminuoso> ule: Personally I dont like to think of it as an "accumulator" either, because it kind of destroys the notion of what reduce/inject is algebraically.
<dminuoso> ule: https://wiki.haskell.org/wikiupload/5/5a/Left-fold-transformation.png - so effectively you just provide some binary operation and fold the array together.
<ule> humm let me try
<ule> check
<dminuoso> that argument you pass into inject is because you have this asymmetric thing for the first argument. if you dont supply an argument, then the whole thing is shifted by one
<dminuoso> ule: This gives rise to some powerful ideas
<dminuoso> such as
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<dminuoso> >> prepend = -> e, a { a.unshift e }; [1,2,3,4,5].reduce([], &prepend)
<ruby[bot]> dminuoso: # => undefined method `unshift' for 1:Fixnum (NoMethodError) ...check link for more (https://eval.in/967052)
<dminuoso> >> prepend = -> a, e { a.unshift e }; [1,2,3,4,5].reduce([], &prepend)
<ruby[bot]> dminuoso: # => [5, 4, 3, 2, 1] (https://eval.in/967053)
<dminuoso> ule: this lets you cleanly separate the folding concept from the code that invokes it
<dminuoso> or makes it more obvious what this means
<dminuoso> [1,2,3,4,5].inject(&:+)
<dminuoso> >> [1,2,3,4,5].inject(&:+)
<ruby[bot]> dminuoso: # => 15 (https://eval.in/967054)
<dminuoso> ule: now imagine you had a function that takes a tree, and an element, and inserts that element into the tree.
<dminuoso> ule: you can then transform a list into that tree with just list.inject(&func)
X-Jester has quit [Quit: leaving]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
X-Jester has joined #ruby
hahuang61 has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
tomphp has joined #ruby
SeepingN has quit [Ping timeout: 260 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang61 has quit [Ping timeout: 240 seconds]
claudiuinberlin has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
InfinityFye has joined #ruby
tubbo has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jerikl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has quit [Ping timeout: 245 seconds]
<ule> sweet, working with Ruby is like using Vim
<ule> learning courve never ends
mtkd has joined #ruby
<ule> :P
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 240 seconds]
alex`` has quit [Ping timeout: 256 seconds]
zapata has quit [Quit: WeeChat 2.0.1]
zapata has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
Cavallari1 has joined #ruby
tomphp has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Cavallari has quit [Ping timeout: 240 seconds]
Cavallari1 is now known as Cavallari
jamiejackson has quit [Ping timeout: 256 seconds]
samort7_ has quit [Remote host closed the connection]
samort7 has joined #ruby
sanscoeu_ has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
tubbo has quit [Quit: WeeChat 2.0.1]
mcr1 has joined #ruby
sidx64 has joined #ruby
sanscoeur has quit [Ping timeout: 248 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jcalla has quit [Ping timeout: 268 seconds]
jcalla has joined #ruby
bigblind has quit [Quit: Ping timeout (120 seconds)]
bigblind has joined #ruby
Cavallari has quit [Quit: Cavallari]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby
jcalla has quit [Ping timeout: 245 seconds]
ldnunes has quit [Quit: Leaving]
schneider- has quit [Ping timeout: 248 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang61 has quit [Ping timeout: 245 seconds]
SeepingN has joined #ruby
<dminuoso> >> pair = -> a, e { [e, a] }; [1,2,3,4,5].reduce([], &pair)
<ruby[bot]> dminuoso: # => [5, [4, [3, [2, [1, []]]]]] (https://eval.in/967068)
Ltem has joined #ruby
<dminuoso> ule: And there's some also interesting things to look at
<dminuoso> like
<dminuoso> >> append = -> a, e { [*a, e] }; [1,2,3,4,5].inject([], &append)
<ruby[bot]> dminuoso: # => [1, 2, 3, 4, 5] (https://eval.in/967071)
<dminuoso> Which I guess you can more compactly write as
<dminuoso> >> [1,2,3,4,5].reduce([], &:push)
<ruby[bot]> dminuoso: # => [1, 2, 3, 4, 5] (https://eval.in/967072)
<dminuoso> >> [1,2,3,4,5].reduce([], &:unshift)
<ruby[bot]> dminuoso: # => [5, 4, 3, 2, 1] (https://eval.in/967073)
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<al2o3-cr> dminuoso: you don't need the ampersand for reduce/inject ;)
<dminuoso> al2o3-cr: I dont care to learn which magic methods happen to not need it.
<dminuoso> It's far too random, so & is more consistent.
tomphp has joined #ruby
<dminuoso> >> [1,2,3].map(:to_s)
<ruby[bot]> dminuoso: # => wrong number of arguments (given 1, expected 0) (ArgumentError) ...check link for more (https://eval.in/967079)
<dminuoso> >> [1,2,3].select(:to_s)
<ruby[bot]> dminuoso: # => wrong number of arguments (given 1, expected 0) (ArgumentError) ...check link for more (https://eval.in/967080)
gheegh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ogres has quit [Quit: Connection closed for inactivity]
tomphp has quit [Client Quit]
madgen has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jerikl has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
tomphp has joined #ruby
jcalla has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
[Butch] has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
sanscoeu_ has quit [Remote host closed the connection]
nowhereman_ has quit [Ping timeout: 268 seconds]
sanscoeur has joined #ruby
pastorinni has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
leitz has joined #ruby
pastorinni has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
madgen_ has joined #ruby
madgen has quit [Read error: Connection reset by peer]
biberu has quit []
fribmendes has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
cdg has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
go|dfish has joined #ruby
cdg has joined #ruby
apeiros has quit [Remote host closed the connection]
synthroid has quit []
tomphp has quit [Client Quit]
cdg has quit [Ping timeout: 245 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
mtkd has quit [Read error: Connection reset by peer]
amatas has quit [Quit: amatas]
tomphp has joined #ruby
mtkd has joined #ruby
tomphp has quit [Client Quit]
jerikl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
tomphp has quit [Client Quit]
Ltem has quit [Quit: good night]
n0m4d1c has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jnollette has quit [Remote host closed the connection]
jnollette has joined #ruby
jnollette has quit [Remote host closed the connection]
jnollette has joined #ruby
dmitriy_ has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
dmitriy_ has quit [Read error: Connection reset by peer]
jcalla has quit [Quit: Leaving]
madgen_ has quit [Quit: Lost terminal]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jaruga has joined #ruby
<leitz> Can you use start_with? and a regexp? Trying to match two digits and an underscore.
aufi has quit [Remote host closed the connection]
<gizmore> leitz: use regex with ^ (start marker) ?
<leitz> gizmore, that's Plan B. I though the ^ also negated the match.
<leitz> Though I'm easily confused.
<gizmore> in a char class [^1-3] means NOT 1-3
<gizmore> but else the ^ is "text start" or string start or whatever
<gizmore> like /^[0-9]{2}_/iD
<leitz> Ah, so /^[0-9][0-9]_/ should do me.
<gizmore> mine is nice :P
<gizmore> mine is nicer :P *
<leitz> what's the "iD" at the end?
<gizmore> caseInsensitive and D is something for newlines
memo1 has joined #ruby
<gizmore> lets google for regex modifiers
<gizmore> D is for $/end behaviour
workmad3 has joined #ruby
<gizmore> at least in PHP
tomphp has joined #ruby
<gizmore> like /^foo$/D matches only end of all the lines
<leitz> and shell. There's more to the line, i just need to drop it if matched.
<gizmore> and /^foo$/ matches also every foo\n
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<gizmore> ommiting /D often is not what you want
<gizmore> (in my php experience so far)
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<leitz> In this case I can drop the entire line.
<leitz> Matching from ^[0-9]{2}_
<gizmore> looks fine to me
<gizmore> if you want to make your sequel workers ponder, use ^[2106574983][21768ß5943][_]
<gizmore> if you want to make your sequel workers ponder, use ^[2106574983][2176805943][_] *
<elomatreb> Take care that ^ in Ruby means "Start of line", not "Start of string" (which would be \A)
InfinityFye has quit [Quit: Leaving]
<gizmore> elomatreb: leitz: which might be changed with a modifier?
<leitz> elomatreb, yup. In this case string and line start in the same place.
<elomatreb> Oh, I seem to have lost my scrollback/context
jaruga has quit [Quit: jaruga]
Fusselgesicht has quit [Quit: leaving]
mtkd has quit []
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ryzokuken has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adlerdias has joined #ruby
<leitz> Here's the final line so far: if not line.match(/^[0-9]{2}_/)
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leitz> I'm filtering out lines like: 00_Prologue
tomphp has joined #ruby
beerich has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<elomatreb> \d is a shortcut for [0-9], but that's just style
karapetyan has joined #ruby
bmurt has joined #ruby
<beerich> Anybody have a solid grasp on setting instance_variables?
<baweaver> @var = value
<baweaver> Though I assume you mean something a bit more dynamic.
desperek has quit [Quit: xoxo]
<beerich> yes
<baweaver> What's the end goal?
<beerich> I have an incoming hash
<beerich> I want to assign the same ivars to the values
<baweaver> leitz: use `unless`. Also, english `not` is not really used
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<baweaver> What's the issue?
<beerich> nothing is being assigned
<beerich> line 15 is the culprit
dviola has joined #ruby
<beerich> I just added teh output
adlerdias has quit [Quit: adlerdias]
<al2o3-cr> >> k = :foo; instance_variable_set "@#{k.to_sym}", 7
<ruby[bot]> al2o3-cr: # => 7 (https://eval.in/967095)
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<al2o3-cr> beerich: you're missing the @
n008f4g_ has quit [Ping timeout: 245 seconds]
<beerich> man I thought i tried that
<beerich> ok then
<beerich> why is it not already a symbol coming in as a hash key?
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<al2o3-cr> it is
<beerich> just tested it and it's already a symbol
<al2o3-cr> yes
<al2o3-cr> but instance variables require @ prepended to them
<beerich> ok the instance variable @ sign, yes I get that part
<beerich> but a symbol coerced to a symbol makes no sense
<beerich> and i might have assumed the method name would have flushed that out
<al2o3-cr> i'd didn't see your hash at the bottom
FrostCandy has joined #ruby
<beerich> ya it arrives to the method as a symbol
<al2o3-cr> but your right it doesn't need coercing
<beerich> I'm messing with it now
<beerich> ok this works: instance_variable_set("@#{k}", v) if instance_variables.include?("@#{k}".to_sym)
<beerich> ok thanks for the guidance
<al2o3-cr> np
dionysus69 has quit [Ping timeout: 255 seconds]
beerich has quit []
vutral|kali has quit [Ping timeout: 240 seconds]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
xfbs has quit []
ts__ has joined #ruby
[Butch] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LocaMocha is now known as Sauvin
[Butch] has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
cagomez has joined #ruby
fr4nt1c has quit [Remote host closed the connection]
jenrzzz_ has joined #ruby
tcopeland has quit [Quit: tcopeland]
jenrzzz has quit [Ping timeout: 256 seconds]
DTZUZO has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
McSoFake_ has quit [Quit: Konversation terminated!]
anjen has quit [Quit: anjen]
lytol has quit [Remote host closed the connection]
druonysus has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Mike11 has joined #ruby
jenrzzz_ has quit [Ping timeout: 248 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
karapetyan has quit [Remote host closed the connection]
drewmcmillan has joined #ruby
karapetyan has joined #ruby
jerikl has joined #ruby
pastorinni has quit [Remote host closed the connection]
apeiros has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros has quit [Ping timeout: 256 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
eckhardt has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
samort7 has quit []
cdg has joined #ruby
stairmast0r has quit [Ping timeout: 256 seconds]
dviola has quit [Quit: WeeChat 2.0.1]
hahuang65 has quit [Quit: WeeChat 2.0.1]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Mike11 has quit [Quit: Leaving.]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
clemens3 has quit [Ping timeout: 260 seconds]
cdg has quit [Ping timeout: 260 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
hahuang61 has joined #ruby
gheegh has joined #ruby
milardovich has joined #ruby
hahuang65 has quit [Client Quit]
rapha has quit [Quit: WeeChat 2.0-dev]
axsuul has quit [Quit: Peace]
goatish has joined #ruby
hahuang65 has joined #ruby
hahuang65 has quit [Client Quit]
cschneid has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
hahuang65 has quit [Client Quit]
hahuang61 has quit [Ping timeout: 240 seconds]
phaul has quit [Ping timeout: 248 seconds]
hahuang65 has joined #ruby
hahuang65 has quit [Client Quit]
apeiros has joined #ruby
cagomez has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
memo1 has quit [Ping timeout: 260 seconds]
phaul has joined #ruby
hahuang65 has quit [Client Quit]
hahuang65 has joined #ruby
SteenJobs has joined #ruby
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
hahuang65 has quit [Client Quit]
apeiros has quit [Ping timeout: 252 seconds]
n0m4d1c has quit [Ping timeout: 252 seconds]
hahuang65 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang65 has quit [Client Quit]
<leitz> baweaver, "unless" is better. When I have to negate I prefer english to symbol, though.
jenrzzz has joined #ruby
hahuang65 has joined #ruby
<leitz> Brain mostly dead.