jhass[m] changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.2, 3.0.4, 2.7.6: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
stomper2 has quit [Ping timeout: 268 seconds]
helveticamono has joined #ruby
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 268 seconds]
helveticamono has quit [Ping timeout: 268 seconds]
moldorcoder7 has quit [Ping timeout: 268 seconds]
stomper2 has quit [Ping timeout: 265 seconds]
stomper2 has joined #ruby
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 268 seconds]
helveticamono has joined #ruby
toshiba__ has joined #ruby
cuntor2 has quit [Ping timeout: 252 seconds]
stomper2 has joined #ruby
helveticamono has quit [Ping timeout: 252 seconds]
toshiba__ has quit [Ping timeout: 252 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 268 seconds]
stomper2 has joined #ruby
<weaksauce> D_A_N which status are you talking about?
cuntor2 has quit [Ping timeout: 268 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 252 seconds]
stomper2 has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
cuntor2 has quit [Ping timeout: 265 seconds]
helveticamono has joined #ruby
helveticamono has quit [Changing host]
helveticamono has joined #ruby
niv has quit [Quit: Powered by LunarBNC: https://LunarBNC.net]
cuntor2 has joined #ruby
zoknert has joined #ruby
grokify has quit [Ping timeout: 268 seconds]
stomper2 has quit [Ping timeout: 268 seconds]
helveticamono has quit [Client Quit]
toshiba__ has joined #ruby
zoknert has quit [Ping timeout: 265 seconds]
cuntor2 has quit [Ping timeout: 268 seconds]
grokify has joined #ruby
grokify has quit [Read error: Connection reset by peer]
grokify has joined #ruby
stomper2 has joined #ruby
helveticamono has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
toshiba__ has quit [Ping timeout: 268 seconds]
John_Ivan has quit [Ping timeout: 268 seconds]
Al2O3 has quit [Quit: I'm quitting, thanks for all the sharks.]
cuntor2 has joined #ruby
niv has joined #ruby
stomper2 has quit [Ping timeout: 260 seconds]
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 252 seconds]
grokify has quit [Ping timeout: 264 seconds]
<D_A_N> weaksauce: all of them
cuntor2 has joined #ruby
yossarian has quit [Quit: And then he took off.]
stomper2 has quit [Ping timeout: 268 seconds]
stomper2 has joined #ruby
<D_A_N> well they're consistent every where
<D_A_N> and shared between comments and articles
<D_A_N> seems like comments should have a has_one relationship to statuses and so should articles
<D_A_N> i'm new to ruby, trying to figure out what *_helper_spec files do
<weaksauce> oh not the status of the request
cuntor2 has quit [Ping timeout: 268 seconds]
<D_A_N> right, the "private, public, archived" etc
<weaksauce> but the status of the comments / articles
<D_A_N> seems like that should be status_id and have a link to another table that contains those
<D_A_N> s/link/has_one relationship/g
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 268 seconds]
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 265 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 268 seconds]
stomper2 has joined #ruby
jpn has joined #ruby
cuntor2 has quit [Ping timeout: 268 seconds]
eddof13 has joined #ruby
cuntor2 has joined #ruby
yossarian has joined #ruby
yossarian has quit [Changing host]
yossarian has joined #ruby
eddof13 has quit [Client Quit]
jpn has quit [Ping timeout: 268 seconds]
stomper2 has quit [Ping timeout: 268 seconds]
toshiba__ has joined #ruby
grokify has joined #ruby
cuntor2 has quit [Ping timeout: 268 seconds]
grokify has quit [Remote host closed the connection]
cuntor2 has joined #ruby
grokify has joined #ruby
toshiba__ has quit [Ping timeout: 265 seconds]
stomper2 has joined #ruby
hololeap has quit [Quit: Bye]
yossarian has quit [Quit: And then he took off.]
hololeap has joined #ruby
cuntor2 has quit [Ping timeout: 268 seconds]
yossarian has joined #ruby
yossarian has quit [Changing host]
yossarian has joined #ruby
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 265 seconds]
stomper2 has joined #ruby
TomyLobo has quit [Read error: Connection reset by peer]
cuntor2 has quit [Ping timeout: 252 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 260 seconds]
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 268 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 260 seconds]
toshiba__ has joined #ruby
nirvdrum has joined #ruby
cuntor2 has quit [Ping timeout: 268 seconds]
grokify has quit [Remote host closed the connection]
stomper2 has joined #ruby
grokify has joined #ruby
toshiba__ has quit [Ping timeout: 268 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 268 seconds]
toshiba__ has joined #ruby
cuntor2 has quit [Ping timeout: 265 seconds]
stomper2 has joined #ruby
grokify has quit [Remote host closed the connection]
yossarian has quit [Remote host closed the connection]
yossarian has joined #ruby
yossarian has quit [Changing host]
yossarian has joined #ruby
toshiba__ has quit [Ping timeout: 265 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 268 seconds]
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 252 seconds]
stomper2 has quit [Ping timeout: 268 seconds]
stomper2 has joined #ruby
grokify has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
cuntor2 has joined #ruby
grokify has quit [Remote host closed the connection]
stomper2 has quit [Ping timeout: 268 seconds]
toshiba__ has joined #ruby
cuntor2 has quit [Ping timeout: 260 seconds]
cuntor2 has joined #ruby
toshiba__ has quit [Ping timeout: 260 seconds]
nirvdrum has quit [Quit: nirvdrum]
toshiba__ has joined #ruby
nirvdrum has joined #ruby
cuntor2 has quit [Ping timeout: 265 seconds]
ur5us has quit [Ping timeout: 264 seconds]
cuntor2 has joined #ruby
toshiba__ has quit [Ping timeout: 268 seconds]
toshiba__ has joined #ruby
grokify has joined #ruby
cuntor2 has quit [Ping timeout: 268 seconds]
ur5us has joined #ruby
stomper2 has joined #ruby
grokify has quit [Ping timeout: 246 seconds]
victori has quit [Read error: Connection reset by peer]
toshiba__ has quit [Ping timeout: 268 seconds]
victori has joined #ruby
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 252 seconds]
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 252 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 260 seconds]
toshiba__ has joined #ruby
cuntor2 has quit [Ping timeout: 252 seconds]
stomper2 has joined #ruby
toshiba__ has quit [Ping timeout: 268 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 265 seconds]
toshiba__ has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
cuntor2 has quit [Ping timeout: 265 seconds]
cuntor2 has joined #ruby
toshiba__ has quit [Ping timeout: 260 seconds]
toshiba__ has joined #ruby
cuntor2 has quit [Ping timeout: 260 seconds]
stomper2 has joined #ruby
D_A_N has quit [Quit: leaving]
toshiba__ has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 265 seconds]
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 268 seconds]
jpn has joined #ruby
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 268 seconds]
jpn has quit [Ping timeout: 248 seconds]
nirvdrum has quit [Quit: nirvdrum]
toshiba__ has joined #ruby
cuntor2 has quit [Ping timeout: 265 seconds]
cuntor2 has joined #ruby
otisolsen70 has joined #ruby
otisolsen70 has quit [Remote host closed the connection]
toshiba__ has quit [Ping timeout: 265 seconds]
otisolsen70 has joined #ruby
Sankalp has quit [Ping timeout: 265 seconds]
Sankalp has joined #ruby
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 268 seconds]
cuntor2 has joined #ruby
jetchisel has quit [Ping timeout: 260 seconds]
walez___ has joined #ruby
stomper2 has quit [Ping timeout: 246 seconds]
cuntor2 has quit [Ping timeout: 252 seconds]
jetchisel has joined #ruby
stomper2 has joined #ruby
<sam113101> why is it that Hash#select returns a Hash while Hash#max_by returns an array?
stomper2 has quit [Ping timeout: 268 seconds]
stomper2 has joined #ruby
cuntor2 has joined #ruby
Sankalp has quit [Ping timeout: 252 seconds]
stomper2 has quit [Ping timeout: 268 seconds]
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 250 seconds]
cuntor2 has joined #ruby
Sankalp has joined #ruby
jpn has joined #ruby
stomper2 has quit [Ping timeout: 250 seconds]
jpn has quit [Ping timeout: 250 seconds]
stomper2 has joined #ruby
teclator has joined #ruby
cuntor2 has quit [Ping timeout: 268 seconds]
ur5us has quit [Ping timeout: 246 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 252 seconds]
toshiba__ has joined #ruby
cuntor2 has quit [Ping timeout: 252 seconds]
cuntor2 has joined #ruby
toshiba__ has quit [Ping timeout: 252 seconds]
moldorcoder7 has joined #ruby
stomper2 has joined #ruby
dionysus69 has joined #ruby
cuntor2 has quit [Ping timeout: 268 seconds]
TomyWork has joined #ruby
Furai has quit [Remote host closed the connection]
Furai has joined #ruby
stomper2 has quit [Ping timeout: 260 seconds]
niv has quit [Quit: Powered by LunarBNC: https://LunarBNC.net]
Rounin has joined #ruby
Rounin has quit [Changing host]
Rounin has joined #ruby
stomper2 has joined #ruby
niv has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 268 seconds]
toshiba__ has joined #ruby
cuntor2 has quit [Ping timeout: 268 seconds]
hightower3 has quit [Ping timeout: 268 seconds]
cuntor2 has joined #ruby
hightower2 has joined #ruby
toshiba__ has quit [Ping timeout: 246 seconds]
walez___ has quit [Quit: Leaving]
walez__ has joined #ruby
stomper2 has joined #ruby
hightower3 has joined #ruby
hightower2 has quit [Ping timeout: 265 seconds]
ur5us has joined #ruby
cuntor2 has quit [Ping timeout: 265 seconds]
hightower3 has quit [Ping timeout: 246 seconds]
jpn has joined #ruby
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 265 seconds]
arahael has quit [Ping timeout: 265 seconds]
stomper2 has joined #ruby
idiocrash_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cuntor2 has quit [Ping timeout: 264 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 248 seconds]
stomper2 has joined #ruby
arahael has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
cuntor2 has quit [Ping timeout: 268 seconds]
moldorcoder7 has quit [Read error: Connection reset by peer]
cuntor2 has joined #ruby
moldorcoder7 has joined #ruby
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
stomper2 has quit [Ping timeout: 260 seconds]
jvalleroy has joined #ruby
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 268 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 250 seconds]
stomper2 has joined #ruby
Sankalp has quit [Ping timeout: 250 seconds]
cuntor2 has quit [Ping timeout: 268 seconds]
Sankalp has joined #ruby
cuntor2 has joined #ruby
jpn has joined #ruby
stomper2 has quit [Ping timeout: 265 seconds]
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 265 seconds]
cuntor2 has joined #ruby
jpn has quit [Ping timeout: 265 seconds]
stomper2 has quit [Ping timeout: 260 seconds]
toshiba__ has joined #ruby
cuntor2 has quit [Ping timeout: 260 seconds]
stomper2 has joined #ruby
jpn has joined #ruby
toshiba__ has quit [Ping timeout: 260 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 265 seconds]
jpn has quit [Ping timeout: 246 seconds]
toshiba__ has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
cuntor2 has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
stomper2 has joined #ruby
toshiba__ has quit [Ping timeout: 268 seconds]
<leftylink> pandabot rb "because Hash#select is from #{{}.method(:select).owner} and Hash#max_by is from #{{}.method(:max_by).owner}"
<pandabot> "because Hash#select is from Hash and Hash#max_by is from Enumerable" - https://carc.in/#/r/dveu
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 252 seconds]
dionysus70 has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
dionysus70 is now known as dionysus69
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 268 seconds]
cuntor2 has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
dionysus69 has joined #ruby
stomper2 has quit [Ping timeout: 268 seconds]
toshiba__ has joined #ruby
cuntor2 has quit [Ping timeout: 268 seconds]
cuntor2 has joined #ruby
toshiba__ has quit [Ping timeout: 248 seconds]
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 250 seconds]
jpn has quit [Ping timeout: 268 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 268 seconds]
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 268 seconds]
ur5us has quit [Ping timeout: 250 seconds]
cuntor2 has joined #ruby
jpn has joined #ruby
stomper2 has quit [Ping timeout: 268 seconds]
stomper2 has joined #ruby
toshiba__ has joined #ruby
cuntor2 has quit [Ping timeout: 265 seconds]
cuntor2 has joined #ruby
toshiba__ has quit [Ping timeout: 268 seconds]
stomper2 has quit [Ping timeout: 268 seconds]
toshiba__ has joined #ruby
Sankalp has quit [Ping timeout: 246 seconds]
cuntor2 has quit [Ping timeout: 268 seconds]
cuntor2 has joined #ruby
toshiba__ has quit [Read error: Connection reset by peer]
toshiba__ has joined #ruby
ur5us has joined #ruby
cuntor2 has quit [Ping timeout: 264 seconds]
Sankalp has joined #ruby
stomper2 has joined #ruby
ur5us has quit [Ping timeout: 248 seconds]
toshiba__ has quit [Ping timeout: 264 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 264 seconds]
toshiba__ has joined #ruby
cuntor2 has quit [Ping timeout: 268 seconds]
stomper2 has joined #ruby
toshiba__ has quit [Ping timeout: 268 seconds]
stomper2 has quit [Remote host closed the connection]
stomper2 has joined #ruby
stomper2 has quit [Remote host closed the connection]
stomper2 has joined #ruby
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 248 seconds]
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 248 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 265 seconds]
toshiba__ has joined #ruby
cuntor2 has quit [Ping timeout: 264 seconds]
stomper2 has joined #ruby
toshiba__ has quit [Ping timeout: 250 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 268 seconds]
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 265 seconds]
jpn has quit [Ping timeout: 260 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 260 seconds]
stomper2 has joined #ruby
hightower2 has joined #ruby
cuntor2 has quit [Ping timeout: 252 seconds]
cuntor2 has joined #ruby
hightower2 has quit [Ping timeout: 268 seconds]
stomper2 has quit [Ping timeout: 268 seconds]
cuntor2 has quit [Ping timeout: 268 seconds]
jpn has joined #ruby
stomper2 has joined #ruby
cuntor2 has joined #ruby
cuntor2 has quit [Read error: Connection reset by peer]
cuntor2 has joined #ruby
jpn has quit [Ping timeout: 265 seconds]
stomper2 has quit [Ping timeout: 246 seconds]
cuntor2 has quit [Remote host closed the connection]
stomper2 has joined #ruby
cuntor2 has joined #ruby
jpn has joined #ruby
stomper2 has quit [Ping timeout: 260 seconds]
leah2 has quit [Ping timeout: 244 seconds]
leah2 has joined #ruby
leah2 has quit [Remote host closed the connection]
toshiba__ has joined #ruby
leah2 has joined #ruby
jpn has quit [Ping timeout: 260 seconds]
VG9t has joined #ruby
cuntor2 has quit [Ping timeout: 260 seconds]
jetchisel has quit [Ping timeout: 260 seconds]
D_A_N has joined #ruby
stomper2 has joined #ruby
jetchisel has joined #ruby
VG9t has quit [Ping timeout: 258 seconds]
leah2 has quit [Ping timeout: 264 seconds]
toshiba__ has quit [Ping timeout: 264 seconds]
cuntor2 has joined #ruby
jpn has joined #ruby
VG9t has joined #ruby
stomper2 has quit [Ping timeout: 264 seconds]
jetchisel has quit [Ping timeout: 264 seconds]
toshiba__ has joined #ruby
cuntor2 has quit [Ping timeout: 265 seconds]
jetchisel has joined #ruby
leah2 has joined #ruby
cuntor2 has joined #ruby
jpn has quit [Ping timeout: 265 seconds]
toshiba__ has quit [Ping timeout: 252 seconds]
jetchisel has quit [Ping timeout: 260 seconds]
stomper2 has joined #ruby
jpn has joined #ruby
jetchisel has joined #ruby
cuntor2 has quit [Ping timeout: 260 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 260 seconds]
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 268 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 265 seconds]
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 248 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 252 seconds]
hightower2 has joined #ruby
toshiba__ has joined #ruby
cuntor2 has quit [Ping timeout: 268 seconds]
onyx has joined #ruby
onyx_ has joined #ruby
stomper2 has joined #ruby
toshiba__ has quit [Ping timeout: 264 seconds]
<adam12> D_A_N: I'll occasionally put statuses inside another table and use a JOIN between them, but they aren't normally shared among other models. I'd probably have an article_statuses and comments_statuses.
stomper2 has quit [Ping timeout: 268 seconds]
VG9t has quit [Remote host closed the connection]
VG9t has joined #ruby
stomper2 has joined #ruby
VG9t has quit [Remote host closed the connection]
VG9t has joined #ruby
hightower2 has quit [Ping timeout: 268 seconds]
cuntor2 has joined #ruby
royo25 has joined #ruby
RickHull has joined #ruby
stomper2 has quit [Ping timeout: 265 seconds]
toshiba__ has joined #ruby
cuntor2 has quit [Ping timeout: 260 seconds]
stomper2 has joined #ruby
zoknert has joined #ruby
toshiba__ has quit [Ping timeout: 265 seconds]
cuntor2 has joined #ruby
zoknert has quit [Ping timeout: 268 seconds]
stomper2 has quit [Ping timeout: 268 seconds]
stomper2 has joined #ruby
John_Ivan has joined #ruby
cuntor2 has quit [Ping timeout: 264 seconds]
tdcw has joined #ruby
cuntor2 has joined #ruby
_73 has quit [Ping timeout: 264 seconds]
stomper2 has quit [Ping timeout: 250 seconds]
hightower2 has joined #ruby
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 260 seconds]
cuntor2 has joined #ruby
desnudopenguino has quit [Quit: desnudopenguino]
stomper2 has quit [Ping timeout: 260 seconds]
desnudopenguino has joined #ruby
grokify has joined #ruby
eddof13 has joined #ruby
toshiba__ has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
royo25 has quit [Quit: Bye]
cuntor2 has quit [Ping timeout: 265 seconds]
stomper2 has joined #ruby
grokify has quit [Remote host closed the connection]
toshiba__ has quit [Ping timeout: 268 seconds]
grokify has joined #ruby
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 252 seconds]
grokify has quit [Ping timeout: 248 seconds]
toshiba__ has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cuntor2 has quit [Ping timeout: 264 seconds]
stomper2 has joined #ruby
toshiba__ has quit [Ping timeout: 248 seconds]
cuntor2 has joined #ruby
eddof13 has joined #ruby
stomper2 has quit [Ping timeout: 252 seconds]
eddof13 has quit [Client Quit]
RickHull has quit [Quit: Leaving]
dionysus69 has joined #ruby
toshiba__ has joined #ruby
cuntor2 has quit [Ping timeout: 252 seconds]
stomper2 has joined #ruby
toshiba__ has quit [Ping timeout: 260 seconds]
cuntor2 has joined #ruby
cuntor2 has quit [Remote host closed the connection]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 250 seconds]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
toshiba__ has joined #ruby
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
cuntor2 has quit [Ping timeout: 268 seconds]
eddof13 has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
jpn has quit [Ping timeout: 268 seconds]
eddof13 has quit [Client Quit]
eddof13 has joined #ruby
toshiba__ has quit [Ping timeout: 268 seconds]
stomper2 has joined #ruby
jpn has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
cuntor2 has joined #ruby
cuntor2 has quit [Remote host closed the connection]
stomper2 has quit [Ping timeout: 260 seconds]
stomper2 has joined #ruby
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 268 seconds]
tdcw has quit [Ping timeout: 260 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
cuntor2 has quit [Ping timeout: 268 seconds]
<depesz> hi. I can't seem to find example. I need to run a program, send some input to it, wait for response, do something else, and then repeat: send data to program, and wait for it to respond. Anyone has an example?
tdcw has joined #ruby
stomper2 has joined #ruby
tdcw has quit [Ping timeout: 268 seconds]
grokify has joined #ruby
cuntor2 has joined #ruby
grokify has quit [Remote host closed the connection]
stomper2 has quit [Ping timeout: 246 seconds]
toshiba__ has joined #ruby
nyuszika7h has quit [Remote host closed the connection]
nyuszika7h has joined #ruby
cuntor2 has quit [Ping timeout: 248 seconds]
stomper2 has joined #ruby
toshiba__ has quit [Ping timeout: 268 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 265 seconds]
tdcw has joined #ruby
stomper2 has joined #ruby
grokify has joined #ruby
cuntor2 has quit [Ping timeout: 268 seconds]
<adam12> depesz: What kind of program?
cuntor2 has joined #ruby
VG9t has quit [Ping timeout: 258 seconds]
<adam12> I'm assuming it's run local and not something you need TCP for?
grokify has quit [Ping timeout: 250 seconds]
<depesz> Local.
stomper2 has quit [Ping timeout: 265 seconds]
<depesz> psql, if it matters
<adam12> depesz: Maybe expect? https://github.com/abates/ruby_expect
stomper2 has joined #ruby
<depesz> I was hoping it will be simple enough to just use popen*
cuntor2 has quit [Ping timeout: 252 seconds]
<adam12> depesz: It uses PTY.spawn in the background. I'm sure you could do something similar.
leah2 has quit [Ping timeout: 260 seconds]
<depesz> Looks like overkill. I guess I'll rethink how to do what i need
cuntor2 has joined #ruby
VG9t has joined #ruby
stomper2 has quit [Ping timeout: 260 seconds]
<adam12> depesz: What are you doing?
<depesz> Trying to diagnose a problem with postgresql. Very long story
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 260 seconds]
cuntor2 has joined #ruby
leah2 has joined #ruby
stomper2 has quit [Ping timeout: 264 seconds]
toshiba__ has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cuntor2 has quit [Ping timeout: 264 seconds]
stomper2 has joined #ruby
toshiba__ has quit [Ping timeout: 264 seconds]
VG9t has quit [Ping timeout: 258 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 265 seconds]
toshiba__ has joined #ruby
joto has quit [Ping timeout: 252 seconds]
cuntor2 has quit [Ping timeout: 265 seconds]
stomper2 has joined #ruby
toshiba__ has quit [Ping timeout: 260 seconds]
cuntor2 has joined #ruby
cuntor2 has quit [Remote host closed the connection]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 246 seconds]
eddof13 has joined #ruby
stomper2 has joined #ruby
TomyWork has quit [Remote host closed the connection]
cuntor2 has quit [Ping timeout: 246 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 265 seconds]
toshiba__ has joined #ruby
cuntor2 has quit [Ping timeout: 268 seconds]
cuntor2 has joined #ruby
toshiba__ has quit [Ping timeout: 268 seconds]
stomper2 has joined #ruby
_onyx_ has joined #ruby
cuntor2 has quit [Ping timeout: 260 seconds]
<sam113101> I don't like how ruby does flooring division by default
cuntor2 has joined #ruby
<leftylink> module AlwaysFdiv refine(Integer) { alias :/ :fdiv } end; using AlwaysFdiv 3 / 4
<leftylink> pandabot: rb module AlwaysFdiv refine(Integer) { alias :/ :fdiv } end; using AlwaysFdiv 3 / 4
<pandabot> stderr: -e:2:in `<main>': undefined method `AlwaysFdiv' for main:Object (NoMethodError) - exit 1 - https://carc.in/#/r/dvhm
<leftylink> pandabot: rb module AlwaysFdiv refine(Integer) { alias :/ :fdiv } end; using AlwaysFdiv; 3 / 4
<pandabot> 0.75 - https://carc.in/#/r/dvhn
<leftylink> the best part of course is the :/ in the middle since it expresses the emotions of doing such a thing
stomper2 has quit [Ping timeout: 260 seconds]
<sam113101> I didn't know fdiv() was a thing, I just put .to_f everywhere
<leftylink> r is shorter anyway though
<leftylink> pandabot: rb 3 / 4r
<pandabot> (3/4) - https://carc.in/#/r/dvho
<sam113101> but that gives you a rational not a float
<leftylink> that seems desirable to me, I hate floats
<sam113101> hehe
stomper2 has joined #ruby
grokify has joined #ruby
mikecmpbll has joined #ruby
grokify has quit [Remote host closed the connection]
cuntor2 has quit [Ping timeout: 268 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 268 seconds]
cuntor2 has quit [Ping timeout: 252 seconds]
stomper2 has joined #ruby
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 265 seconds]
toshiba__ has joined #ruby
cuntor2 has quit [Ping timeout: 260 seconds]
cuntor2 has joined #ruby
tdcw has quit [Ping timeout: 268 seconds]
toshiba__ has quit [Ping timeout: 250 seconds]
_ht has joined #ruby
fandre1986 has joined #ruby
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 265 seconds]
grokify has joined #ruby
cuntor2 has joined #ruby
grokify has quit [Remote host closed the connection]
stomper2 has quit [Ping timeout: 252 seconds]
jpn has quit [Ping timeout: 252 seconds]
tdcw has joined #ruby
stomper2 has joined #ruby
tdcw has quit [Ping timeout: 246 seconds]
cuntor2 has quit [Ping timeout: 265 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 268 seconds]
grokify has joined #ruby
toshiba__ has joined #ruby
cuntor2 has quit [Ping timeout: 248 seconds]
stomper2 has joined #ruby
toshiba__ has quit [Ping timeout: 246 seconds]
grokify has quit [Ping timeout: 246 seconds]
tdcw has joined #ruby
stomper2 has quit [Ping timeout: 265 seconds]
grokify has joined #ruby
stomper2 has joined #ruby
goldfish has joined #ruby
grokify has quit [Remote host closed the connection]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 252 seconds]
grokify has joined #ruby
walez___ has joined #ruby
Aminda has quit [Remote host closed the connection]
toshiba__ has joined #ruby
grokify has quit [Remote host closed the connection]
Aminda has joined #ruby
walez__ has quit [Ping timeout: 265 seconds]
cuntor2 has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
cuntor2 has joined #ruby
toshiba__ has quit [Ping timeout: 265 seconds]
toshiba__ has joined #ruby
fandre1986 has quit [Quit: Connection closed]
cuntor2 has quit [Ping timeout: 265 seconds]
cuntor2 has joined #ruby
toshiba__ has quit [Ping timeout: 268 seconds]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 244 seconds]
grokify has joined #ruby
jpn has joined #ruby
cuntor2 has joined #ruby
grokify has quit [Ping timeout: 244 seconds]
stomper2 has quit [Ping timeout: 244 seconds]
grokify has joined #ruby
<AstrallyForged> <leftylink> that seems desirable to me, I hate floats
<AstrallyForged> would you say it seems…
* AstrallyForged sunglasses
<AstrallyForged> …rational?
toshiba__ has joined #ruby
<adam12> lol
grokify has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 244 seconds]
cuntor2 has quit [Ping timeout: 260 seconds]
jpn has quit [Ping timeout: 265 seconds]
grokify has joined #ruby
cuntor2 has joined #ruby
pkubaj has quit [Ping timeout: 265 seconds]
scottg489 has quit [Quit: ZNC 1.8.2 - https://znc.in]
scottg489 has joined #ruby
clemens3 has quit [Quit: WeeChat 2.7]
toshiba__ has quit [Ping timeout: 244 seconds]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
toshiba__ has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
grokify has quit [Remote host closed the connection]
cuntor2 has quit [Ping timeout: 244 seconds]
_ht has quit [Quit: _ht]
grokify has joined #ruby
stomper2 has joined #ruby
grokify has quit [Remote host closed the connection]
toshiba__ has quit [Ping timeout: 244 seconds]
grokify has joined #ruby
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 265 seconds]
grokify has quit [Remote host closed the connection]
stomper2 has joined #ruby
grokify has joined #ruby
cuntor2 has quit [Ping timeout: 252 seconds]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
cuntor2 has joined #ruby
ur5us has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stomper2 has quit [Ping timeout: 265 seconds]
otisolsen70 has quit [Quit: Leaving]
<sam113101> is there a function that does this in the standard library?
walez___ has quit [Read error: Connection reset by peer]
<sam113101> takes two arrays and intersparse them, like [a, b, c] + [0, 1] becomes [a, 0, b, 1, c]
tdcw has quit [Ping timeout: 244 seconds]
walez___ has joined #ruby
tdcw has joined #ruby
<leftylink> oh, that's a zip, then a flatten, then a compact since they're of different lengths
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 244 seconds]
grokify has quit [Remote host closed the connection]
cuntor2 has joined #ruby
<sam113101> not bad
stomper2 has quit [Ping timeout: 244 seconds]
wand has joined #ruby
grokify has joined #ruby
stomper2 has joined #ruby
<leftylink> I wanted to use transpose for that task but transpose just won't take arrays of different length
<leftylink> so you'd have to do something silly like use fill and then delete all those elements later on
grokify has quit [Remote host closed the connection]
walez___ has quit [Ping timeout: 244 seconds]
cuntor2 has quit [Ping timeout: 265 seconds]
cuntor2 has joined #ruby
grokify has joined #ruby
stomper2 has quit [Ping timeout: 265 seconds]
grokify has quit [Remote host closed the connection]
toshiba__ has joined #ruby
cuntor2 has quit [Ping timeout: 268 seconds]
grokify has joined #ruby
nmollerup has quit [Quit: Leaving]
grokify has quit [Remote host closed the connection]
stomper2 has joined #ruby
Guimauve has joined #ruby
toshiba__ has quit [Ping timeout: 252 seconds]
stomper2 has quit [Client Quit]
stomper2 has joined #ruby
cuntor2 has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
stomper2 has quit [Ping timeout: 252 seconds]
grokify has joined #ruby
toshiba__ has joined #ruby
cuntor2 has quit [Ping timeout: 244 seconds]
grokify has quit [Ping timeout: 244 seconds]
stomper2 has joined #ruby
toshiba__ has quit [Ping timeout: 265 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 268 seconds]
Fleeno has joined #ruby
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 244 seconds]
cuntor2 has joined #ruby
grokify has joined #ruby
moldorcoder7 has quit [Ping timeout: 268 seconds]
stomper2 has quit [Ping timeout: 244 seconds]
grokify has quit [Ping timeout: 244 seconds]
stomper2 has joined #ruby
Fleeno has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cuntor2 has quit [Ping timeout: 244 seconds]
finsternis has quit [Read error: Connection reset by peer]
onyx has quit [Read error: Connection reset by peer]
onyx_ has quit [Read error: Connection reset by peer]
_onyx_ has quit [Read error: Connection reset by peer]
stomper2 has quit [Ping timeout: 265 seconds]
mikecmpbll has quit [Ping timeout: 265 seconds]
stomper2 has joined #ruby
mikecmpbll has joined #ruby
mikecmpbll has quit [Ping timeout: 244 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 265 seconds]
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 268 seconds]
jimeh has quit [Remote host closed the connection]
cuntor2 has joined #ruby
jimeh has joined #ruby
jimeh has quit [Remote host closed the connection]
jimeh has joined #ruby
Guimauve has quit [Quit: Client closed]
stomper2 has quit [Ping timeout: 268 seconds]
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 244 seconds]
jimeh has quit [Remote host closed the connection]
cuntor2 has joined #ruby
jimeh has joined #ruby
tdcw has quit [Ping timeout: 260 seconds]
stomper2 has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby
stomper2 has joined #ruby
cuntor2 has quit [Read error: Connection reset by peer]
jimeh has quit [Remote host closed the connection]
cuntor2 has joined #ruby
jimeh has joined #ruby
stomper2 has quit [Ping timeout: 265 seconds]
jimeh has quit [Remote host closed the connection]
tdcw has joined #ruby
gcd has quit [Remote host closed the connection]
stomper2 has joined #ruby
grokify has joined #ruby
tdcw has quit [Ping timeout: 244 seconds]
cuntor2 has quit [Ping timeout: 265 seconds]
stomper2 has quit [Client Quit]
grokify has quit [Ping timeout: 265 seconds]
stomper2 has joined #ruby
zoknert has joined #ruby
Aminda has quit [Remote host closed the connection]
gcd has joined #ruby
Aminda has joined #ruby
cuntor2 has joined #ruby
tdcw has joined #ruby
trunasx has joined #ruby
stomper2 has quit [Ping timeout: 252 seconds]
zoknert has quit [Ping timeout: 244 seconds]
perrierjouet has quit [Quit: WeeChat 3.6]
jimeh has joined #ruby
perrierjouet has joined #ruby
jimeh has quit [Remote host closed the connection]
tdcw has quit [Ping timeout: 246 seconds]
stomper2 has joined #ruby
Rounin has quit [Ping timeout: 260 seconds]
cuntor2 has quit [Ping timeout: 244 seconds]
trunasx has quit [Ping timeout: 260 seconds]
zoknert has joined #ruby
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 244 seconds]
zoknert has quit [Ping timeout: 260 seconds]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
stomper2 has joined #ruby
cuntor2 has quit [Ping timeout: 265 seconds]
cuntor2 has joined #ruby
jimeh has joined #ruby
finsternis has joined #ruby
mikecmpbll has quit [Ping timeout: 260 seconds]
stomper2 has quit [Ping timeout: 244 seconds]
goldfish has quit [Ping timeout: 264 seconds]
toshiba__ has joined #ruby
tdcw has joined #ruby
cuntor2 has quit [Ping timeout: 268 seconds]
tdcw has quit [Ping timeout: 244 seconds]
stomper2 has joined #ruby
toshiba__ has quit [Ping timeout: 265 seconds]
cuntor2 has joined #ruby
stomper2 has quit [Ping timeout: 265 seconds]
toshiba__ has joined #ruby
grokify has joined #ruby
cuntor2 has quit [Ping timeout: 260 seconds]
grokify has quit [Remote host closed the connection]