adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.2, 2.7.4, 2.6.8: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
easbarbosa has joined #ruby
<easbarbosa> hey, how can I find if a directory is a sub-directory of another like:
<easbarbosa> > "/home/xxx/.bashrc".children? "/home/xxx"
gggp_ has joined #ruby
<easbarbosa> true
<easbarbosa> either Dir or Pathname, could not find a function for that
<easbarbosa> .start_with? works but its meh
<weaksauce> easbarbosa don't think there's anything built in
<weaksauce> you'd want to use the expanded path to make the helper
<weaksauce> so normalize the path to an absolute path and startswith would probably suffice unless you have some weird path
flooose has quit [Ping timeout: 256 seconds]
gggp__ has joined #ruby
gggp has joined #ruby
gggp_ has quit [Ping timeout: 258 seconds]
gggp__ has quit [Ping timeout: 272 seconds]
lunarkitty has quit [Quit: Connection closed for inactivity]
mrkz_c has joined #ruby
gr33n7007h has quit [Ping timeout: 268 seconds]
gr33n7007h has joined #ruby
FetidToot has joined #ruby
Rounin has quit [Ping timeout: 240 seconds]
gggp has quit [Read error: Connection reset by peer]
gggp has joined #ruby
goepsilongo has quit [Quit: Konversation terminated!]
<easbarbosa> weaksauce: indeed, for now that will do, I may come up with a better solution later
<easbarbosa> weaksauce: thanks
jetchisel has joined #ruby
lunarkitty has joined #ruby
mrkz_c has quit [Quit: Connection closed for inactivity]
neshpion has quit [Quit: neshpion]
gggp_ has joined #ruby
gggp has quit [Ping timeout: 252 seconds]
gggp__ has joined #ruby
gggp_ has quit [Ping timeout: 272 seconds]
gggp_ has joined #ruby
gggp__ has quit [Ping timeout: 245 seconds]
grawlinson has quit [Quit: SIGTERM]
gggp__ has joined #ruby
gggp_ has quit [Ping timeout: 250 seconds]
gggp_ has joined #ruby
grawlinson has joined #ruby
gggp__ has quit [Ping timeout: 256 seconds]
gggp__ has joined #ruby
gggp_ has quit [Ping timeout: 258 seconds]
desnudopenguino has quit [Ping timeout: 276 seconds]
desnudopenguino has joined #ruby
gggp_ has joined #ruby
jtdowney has quit [Quit: Bye]
jtdowney has joined #ruby
gggp__ has quit [Ping timeout: 258 seconds]
roadie has joined #ruby
gggp__ has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
gggp_ has quit [Ping timeout: 272 seconds]
gggp_ has joined #ruby
gggp__ has quit [Ping timeout: 258 seconds]
gggp__ has joined #ruby
gggp_ has quit [Ping timeout: 258 seconds]
desnudopenguino has quit [Ping timeout: 245 seconds]
gggp_ has joined #ruby
gggp__ has quit [Ping timeout: 258 seconds]
fdan has joined #ruby
<fdan> still checking if anyone is around for a help about passenger + ruby
Oxfuxxx has quit [Quit: leaving]
gggp_ has quit [Ping timeout: 245 seconds]
<kluk> isn't there a way write a lambda with positionally-named arguments in ruby? something like -> { #1 + #2 } being equivalent to ->(a, b){ a + b }
<leftylink> sure.
<leftylink> it's _1
<leftylink> just like it is with blocks
pandabot has joined #ruby
lunarkitty has quit [Quit: Connection closed for inactivity]
roadie has quit [Ping timeout: 272 seconds]
fdan has quit [Ping timeout: 246 seconds]
thiccdaddy has quit [Quit: Ping timeout (120 seconds)]
kluk has quit [Ping timeout: 250 seconds]
thiccdaddy has joined #ruby
chromis has quit [Ping timeout: 256 seconds]
jmcgnh has quit [Excess Flood]
finsternis has quit [Ping timeout: 256 seconds]
ansimita has quit [Ping timeout: 252 seconds]
ikonia_ has quit [Ping timeout: 245 seconds]
ged has quit [Ping timeout: 245 seconds]
chromis has joined #ruby
weaksauce has quit [Ping timeout: 256 seconds]
ged has joined #ruby
finsternis has joined #ruby
ikonia has joined #ruby
jmcgnh has joined #ruby
roadie has joined #ruby
_ht has joined #ruby
elf_fortrezz has joined #ruby
fdan has joined #ruby
<fdan> how can i server an application using passenger and nginx
<fdan> i get this message 2021/08/07 08:38:20 [error] 11144#0: *4 "/etc/nginx/public/index.html" is not found (2: No such file or directory), client: 127.0.0.1, server: _, request: "HEAD / HTTP/1.1", host: "0.0.0.0"
easbarbosa has quit [Ping timeout: 272 seconds]
<leftylink> that seems fairly easy to rectify by making that file exist, then
<leftylink> or changing the path
bandithijo has quit [Ping timeout: 268 seconds]
<fdan> leftylink i have got that working
<fdan> but i want passenger + nginx to serve the web app i have on port number 5000
<leftylink> cool, wishing luck!
<fdan> can i get any answers on that setup
Oxfuxxx has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h has quit [Client Quit]
elf_fortrezz has quit [Quit: Client closed]
elf_fortrezz has joined #ruby
elf_fortrezz has quit [Client Quit]
elf_fortrez has joined #ruby
bandithijo has joined #ruby
elf_fortrez has quit [Ping timeout: 246 seconds]
fdan has quit [Ping timeout: 246 seconds]
reset has quit [Quit: reset]
Rounin has joined #ruby
Oxfuxxx has quit [Ping timeout: 258 seconds]
Oxfuxxx has joined #ruby
henninb has joined #ruby
jetchisel has quit [Ping timeout: 252 seconds]
roadie has quit [Ping timeout: 256 seconds]
ua_ has quit [Ping timeout: 240 seconds]
roadie has joined #ruby
fmccann has joined #ruby
Melantha has joined #ruby
roadie has quit [Ping timeout: 258 seconds]
roadie has joined #ruby
fmccann has quit [Quit: Exeunt!]
roadie has quit [Ping timeout: 272 seconds]
flooose has joined #ruby
roadie has joined #ruby
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
Oxfuxxx has quit [Ping timeout: 256 seconds]
Oxfuxxx has joined #ruby
rem has joined #ruby
fdan has joined #ruby
henninb has quit [Quit: leaving]
<fdan> could anyone help me serve python application using passenger and nginx
mrkz_c has joined #ruby
bandithijo has quit [Quit: WeeChat 3.2-rc1]
graywolf has joined #ruby
tankf33der has joined #ruby
Oxfuxxx has quit [Ping timeout: 258 seconds]
Oxfuxxx has joined #ruby
<adam12> fdan: Wasn't this a Ruby application originally?
xall has joined #ruby
roadie has joined #ruby
coffeejunk has quit [Quit: Ping timeout (120 seconds)]
yosafbridge has quit [Quit: Leaving]
forvelin has quit [Quit: No Ping reply in 180 seconds.]
smarton has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
kapil has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
forvelin has joined #ruby
kapil has joined #ruby
smarton has joined #ruby
graywolf has quit [Quit: WeeChat 3.2]
yosafbridge has joined #ruby
smarton has quit [Client Quit]
smarton has joined #ruby
forvelin has quit [Quit: No Ping reply in 180 seconds.]
kapil has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
kapil has joined #ruby
smarton has quit [Client Quit]
forvelin has joined #ruby
xall has quit [Quit: Client closed]
Oxfuxxx has quit [Ping timeout: 250 seconds]
Jam666 has quit [Ping timeout: 265 seconds]
Oxfuxxx has joined #ruby
Oxfuxxx has quit [Read error: Connection reset by peer]
Oxfuxxx has joined #ruby
yosafbridge has quit [Quit: Leaving]
swaggboi has quit [Quit: C-x C-c]
yosafbridge has joined #ruby
elf_fortrez has joined #ruby
swaggboi has joined #ruby
ua_ has joined #ruby
mrkz_c has quit [Quit: Connection closed for inactivity]
constxd has quit [Ping timeout: 245 seconds]
roadie has quit [Ping timeout: 252 seconds]
ollysmith has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
roadie has joined #ruby
ollysmith has joined #ruby
bdnelson has joined #ruby
elf_fortrez has quit [Ping timeout: 246 seconds]
fdan has quit [Ping timeout: 246 seconds]
graywolf has joined #ruby
lunarkitty has joined #ruby
Oxfuxxx has quit [Ping timeout: 245 seconds]
Oxfuxxx has joined #ruby
Oxfuxxx has quit [Read error: Connection reset by peer]
Oxfuxxx has joined #ruby
roadie has quit [Read error: Connection reset by peer]
roadie has joined #ruby
gr33n7007h has joined #ruby
reset has joined #ruby
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
_ht has quit [Ping timeout: 258 seconds]
Oxfuxxx has quit [Ping timeout: 276 seconds]
Oxfuxxx has joined #ruby
weaksauce has joined #ruby
rem has quit [Quit: WeeChat 3.2]
vaillancourtmax has joined #ruby
mrkz_c has joined #ruby
ansimita has joined #ruby
ur5us__ has joined #ruby
ur5us__ has quit [Ping timeout: 258 seconds]
ur5us__ has joined #ruby
graywolf has quit [Quit: WeeChat 3.2]
ua_ has quit [Ping timeout: 258 seconds]
ua_ has joined #ruby
ur5us__ has quit [Ping timeout: 258 seconds]
<rg> i call them implicit block args.
vaillancourtmax has quit [Ping timeout: 250 seconds]
ua_ has quit [Ping timeout: 258 seconds]
ua_ has joined #ruby
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
desnudopenguino has joined #ruby
ua__ has joined #ruby
ua_ has quit [Ping timeout: 258 seconds]