pwnd_nsfw` has quit [Read error: Connection reset by peer]
fphilipe has joined #ruby
olddogbarks has quit [Quit: ZZZzzz…]
drincruz_ has joined #ruby
buckworst has joined #ruby
fphilipe has quit [Ping timeout: 272 seconds]
buckworst has quit [Client Quit]
lucasb has quit [Quit: Connection closed for inactivity]
buckworst has joined #ruby
drincruz_ has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
turbo_choo has joined #ruby
ftj has joined #ruby
ftj has quit [Client Quit]
ftj has joined #ruby
ftj has quit [Client Quit]
ftj has joined #ruby
ftj has quit [Client Quit]
dviola has quit [Quit: WeeChat 2.7]
ftj has joined #ruby
galaxie has joined #ruby
ftj has quit [Client Quit]
fratis has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
dasher00 has quit [Ping timeout: 260 seconds]
fratis has quit [Read error: Connection reset by peer]
valarray has quit [Quit: Bye Bye]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
dinfuehr has quit [Ping timeout: 260 seconds]
dinfuehr has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
ur5us has joined #ruby
LtHummus has joined #ruby
splud_wurk has quit [Quit: splud_wurk]
alexherbo2 has quit [Ping timeout: 272 seconds]
cthulchu_ has joined #ruby
olddogbarks has joined #ruby
duderonomy has joined #ruby
olddogbarks has quit [Client Quit]
olddogbarks has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
drincruz_ has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
cthulchu_ has quit [Ping timeout: 240 seconds]
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
sergioro has joined #ruby
ttoocs has joined #ruby
fphilipe has joined #ruby
code_zombie has joined #ruby
fphilipe has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
gix- has joined #ruby
gix has quit [Disconnected by services]
PuercoPope has joined #ruby
_whitelogger has joined #ruby
coffeex3 has quit [Ping timeout: 272 seconds]
gix- has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
klaas_ has joined #ruby
m17 has quit [Ping timeout: 240 seconds]
m17 has joined #ruby
klaas has quit [Ping timeout: 240 seconds]
gix has joined #ruby
nofxx has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
turbo_choo has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
Swyper has joined #ruby
s3nd1v0g1us has quit [Quit: WeeChat 2.6]
drincruz_ has quit [Ping timeout: 260 seconds]
Swyper has quit []
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nofxx has quit [Remote host closed the connection]
kapil_ has joined #ruby
olddogbarks has quit [Quit: ZZZzzz…]
tpanarch1st has quit [Ping timeout: 255 seconds]
alfiemax has joined #ruby
nofxx has joined #ruby
turbo_choo has joined #ruby
gix has quit [Ping timeout: 265 seconds]
fphilipe has joined #ruby
Intelo_ has joined #ruby
fphilipe has quit [Ping timeout: 240 seconds]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fphilipe has joined #ruby
jenrzzz has joined #ruby
sauvin has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
threwahway has joined #ruby
<threwahway>
when i bundler install it says Using i18n 0.9.5 but when i jekyll serve --watch bunder/runtime.rb says "you already activated i18n 1.7.0 but your gemfile requires 0.9.5" :(
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest51 has joined #ruby
alfiemax has quit [Remote host closed the connection]
code_zombie has quit [Quit: Leaving]
conta has joined #ruby
alfiemax has joined #ruby
darkstardevx has quit [Ping timeout: 240 seconds]
darkstardev13 has quit [Ping timeout: 260 seconds]
<stdedos>
However, it does not work with Net::HTTP functions. It's my first monkeypatch, so, what am I missing?
TCZ has joined #ruby
john2496 has joined #ruby
codefriar has quit [Ping timeout: 272 seconds]
drincruz_ has joined #ruby
codefriar has joined #ruby
m_antis has quit [Quit: m_antis]
MrCrackPot has joined #ruby
openstruct has joined #ruby
<openstruct>
I'm playing around with Net::HTTP. When I open a connection via `.new` then `.start`, what determines the amount between the last request and when the TCP connection moves into a CLOSE_WAIT state?
<openstruct>
Is that Ruby's GC?
ellcs1 has quit [Ping timeout: 240 seconds]
ellcs1 has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
Swyper has quit [Remote host closed the connection]
TomyWork has quit [Remote host closed the connection]
ttoocs has quit [Ping timeout: 272 seconds]
ellcs1 has joined #ruby
conta1 has quit [Quit: conta1]
markopasha has joined #ruby
kinduff has quit [Quit: Leaving]
kinduff has joined #ruby
kinduff has joined #ruby
kinduff has quit [Changing host]
TCZ has quit [Quit: Bye Bye]
prestorium has quit [Quit: prestorium]
greengriminal has joined #ruby
kapil_ has joined #ruby
codefriar has quit [Ping timeout: 268 seconds]
fercell has joined #ruby
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
clemens3 has quit [Ping timeout: 265 seconds]
millerti has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
dionysus69 has quit [Ping timeout: 260 seconds]
Swyper has joined #ruby
cisco has quit [Ping timeout: 240 seconds]
cisco has joined #ruby
cisco is now known as Guest13027
Deesl has joined #ruby
Intelo_ has quit [Ping timeout: 268 seconds]
Guest13027 has quit [Ping timeout: 246 seconds]
openstruct has quit [Quit: WeeChat 2.4]
cisco_ has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
akemhp has joined #ruby
m_antis has joined #ruby
Swyper has quit [Remote host closed the connection]
citizentwo has quit [Ping timeout: 240 seconds]
citizentwo has joined #ruby
gix has joined #ruby
Swyper has joined #ruby
markopasha has quit [Ping timeout: 265 seconds]
cisco_ has quit [Quit: leaving]
m_antis has quit [Quit: m_antis]
Intelo_ has joined #ruby
Kilo`byte has quit [Quit: ZNC - 1.6.0 - http://znc.in]
kinduff has quit [Remote host closed the connection]
pr0ton has joined #ruby
Kilo`byte has joined #ruby
Intelo_ has quit [Ping timeout: 260 seconds]
pr0ton has quit [Quit: pr0ton]
m_antis has joined #ruby
cthulchu_ has joined #ruby
Swyper has quit [Remote host closed the connection]
chalkmonster has quit [Quit: WeeChat 2.7]
citizentwo has quit [Remote host closed the connection]
minall has quit [Quit: minall]
citizentwo has joined #ruby
kristian_on_linu has joined #ruby
citizentwo has quit [Remote host closed the connection]
citizentwo has joined #ruby
coffeex3 has joined #ruby
m_antis has quit [Quit: m_antis]
minall has joined #ruby
schne1der has quit [Quit: schne1der]
LtHummus has quit [Ping timeout: 272 seconds]
LtHummus has joined #ruby
schne1der has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
fphilipe has quit [Ping timeout: 260 seconds]
gigetoo has joined #ruby
Kilo`byte has quit [Quit: ZNC - 1.6.0 - http://znc.in]
wildtrees has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kristian_on_linu has quit [Remote host closed the connection]
Kilo`byte has joined #ruby
Intelo_ has joined #ruby
Fernando-Basso has joined #ruby
<threwahway>
jesus christ ruby is such a pile of shit lmao
threwahway has left #ruby ["Leaving"]
<al2o3-cr>
what a nice young man
<havenwood>
Happy Valentine's Day, Ruby! <3
<havenwood>
al2o3-cr: They were trying to launch a Jekyll blog with a version of i18n that's higher than any version that's been released. How dare Ruby?!
<al2o3-cr>
oh, dear.
schne1der has quit [Ping timeout: 272 seconds]
<al2o3-cr>
havenwood: have you dabbled with sorbet?
<havenwood>
al2o3-cr: yes
<al2o3-cr>
how'd you find it?
<havenwood>
C++
<havenwood>
:P
<adam12>
facepalm.gif
<al2o3-cr>
:P
Intelo_ has quit [Ping timeout: 265 seconds]
<havenwood>
al2o3-cr: We use a full set of Ruby, so Sorbet isn't a great match. For folk targeting its subset of Ruby, it looks nice.
fphilipe has joined #ruby
<al2o3-cr>
been testing it out, seems not to bad tbh
<havenwood>
al2o3-cr: Soutaro's recent demos of Steep are actually really exciting to me. Soutaro is doing ruby/ruby-signature and Steep, which is both written in Ruby and support Ruby. It's not as far along as Steep and isn't used in production (yet).
<al2o3-cr>
havenwood: anyway of getting an array of arguments when using the ... syntax easily?
<al2o3-cr>
or is this not possible?
<havenwood>
al2o3-cr: not possible
<havenwood>
al2o3-cr: the ... syntax doesn't feel fully baked to me
ExoUNX has joined #ruby
<havenwood>
al2o3-cr: it's really a pass-through feature
<ExoUNX>
greetings :D
<havenwood>
ExoUNX: hi!
<al2o3-cr>
ah, ok.
<havenwood>
al2o3-cr: it's currently ... only, alone, meant to be passed on
<al2o3-cr>
havenwood: i've not test but can you pass ... to block args?
<al2o3-cr>
*tested
<ExoUNX>
this will be loaded question so be gentle please ;)
LtHummus_ has joined #ruby
<al2o3-cr>
ExoUNX: o/
<al2o3-cr>
ExoUNX: we'll be gentle :)
<ExoUNX>
I'm coming from php (laravel) and python (django) so I have pretty good idea on the RoR concept. However I'm curious if there's a good guide/documentation on how to properly setup a RoR app (other than the codebase)
<al2o3-cr>
havenwood: seems not, even with parens
<ExoUNX>
so getting it ready for production
<ExoUNX>
how it's web environment should be
<jhass>
mh, I don't think there is because there's just so many variables to it, scale, platform, ops experience, opinions
LtHummus has quit [Ping timeout: 268 seconds]
<jhass>
actual tech it uses, I probably can't even come up with all of them
<ExoUNX>
right, I'll be using ansible to provision CentOS 8 LXC instances, no docker
badaircloger has quit [Read error: Connection reset by peer]
<ExoUNX>
example I would use ansible to install php (and extensions), nginx, manage certs and configs
<ExoUNX>
pretty simple and traditional in this case
<ExoUNX>
once I get a good foundation on how to have secure and performant infrastructure for Ruby I can apply that elsewhere
<jhass>
the biggest choice you can make in this case is probably the appserver to use, maybe how to install ruby
<havenwood>
ExoUNX: You don't *need* NGINX with Ruby, but it's very popular to use it and just reverse proxy to your Ruby app.
<ExoUNX>
yah, nginx isn't required for much but it's definitely goto reverse proxy
<jhass>
going for a reverse proxy setup gives the app the freedom to choose the appserver and keep your scripts a bit more reusable probably
<ExoUNX>
also it gives me good TLS management + TLS 1.3 :D
<jhass>
honestly just find the in your opinion cleanest way to install the ruby version you need onto CentOS 8
<al2o3-cr>
i always remember nginx as nix-ng (next-generation) don't ask me why :P
<jhass>
everything else is running gem install bundler; bundle install --deployment; setup systemd service for appserver; setup reverse proxy
<jhass>
and from then one you'll notice soon enough if there's something to tweak
<ExoUNX>
yah, so does ruby use a process manager like Swoole or PM2 or something like php-fpm
alexherbo24 has joined #ruby
<jhass>
there certainly is stuff but with systemd I say it's not needed
<jhass>
your appserver is just gonna be a dependency to your rails app and give you a bundle exec the_appserver some_socket_path
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo24 is now known as alexherbo2
<jhass>
appserver examples and most popular being puma and unicorn
<jhass>
but there's more
<ExoUNX>
is there a good balance of ease, performance, and reliability
Ai9zO5AP has quit [Ping timeout: 246 seconds]
<jhass>
which one suits best in the end tends to be quite specific to your workload but either will bring you a long way before you notice any differences
badaircloger has joined #ruby
<jhass>
and swapping out is really easy usually
* al2o3-cr
tries to find a solution to ...
<jhass>
it's pretty well abstracted
<jhass>
so what I'm trying to say I think is, don't worry too much at this stage :)
<jhass>
pick something and go for it
<jhass>
you might rather want to spend sometime on how to install ruby, especially on CentOS since the ruby ecosystem tends to like to stay on rather recent ruby versions
<ExoUNX>
Puma is looking good
<jhass>
so it might prove to be beneficial to your upgrade path to avoid the system package
<ExoUNX>
well it's CentOS 8 so it should be more recent thankfully
<ExoUNX>
but I know the pain using CentOS 7 for new php, python, and node apps lol
<havenwood>
jhass: Jemalloc plus Debian, RHEL and CentOS packages got me interested. I hope it progresses.
<jhass>
cool :)
<jhass>
yeah jemalloc is worth a lot indeed
<jhass>
but I mean you can just preload it, no?
<adam12>
Run FreeBSD and then you can have jemalloc all the time .. :)
<havenwood>
jhass: yeah, totally, just more likely to not end up with it working and folk don't
duderono_ has quit [Ping timeout: 260 seconds]
<jhass>
just checked, I run at least one app with LD_PRELOAD=/usr/lib/libjemalloc.so and already half-forgot that I do :D
<adam12>
I wonder how much the landscape will change when Falcon becomes more host-it-all style (SSL termination, static files, etc). Comparable to when mod_rails launched?
coffeex3 has quit [Ping timeout: 272 seconds]
<jhass>
you'd run that on port 443 directly?
<adam12>
jhass: Possibly. One less piece.
<adam12>
jhass: I already go non-traditional for most of my deploys where I run Caddy instead of nginx.
<jhass>
dunno, HTTP parsing is hard and I'd rather not have my apps memory leaked...
<jhass>
TLS termination is hard too
TCZ has joined #ruby
<jhass>
and lastly there's also easier things than privelege dropping
<jhass>
but I guess you could hook it up to systemd socket activation to avoid that one
<adam12>
Can run it unpriv'd and masquerade the traffic too... but I agree it has it's warts.
<adam12>
I've come to appreciate simplier, and not having nginx+some acme client in the mix as become very enjoyable.
<adam12>
Ditching systemd has been quite nice too, but I built something for FreeBSD.
<jhass>
I just have a central haproxy in front of the other VMs/containers/whatever for my personal setup
<jhass>
one time setup
royal_screwup21 has joined #ruby
sagax has joined #ruby
<adam12>
jhass: Do you terminate SSL on the haproxy instance?
<jhass>
yeah
<jhass>
since I own the VM host
<ExoUNX>
thanks I'll take a look
<ExoUNX>
I just want to make sure I do this as correctly as possibly given my requirements
<ExoUNX>
and again if there's any good documentation or official guides I'd appreciate the share
lineus has quit [Ping timeout: 240 seconds]
olddogbarks has quit [Quit: ZZZzzz…]
xco has joined #ruby
citizentwo has quit [Remote host closed the connection]
citizentwo has joined #ruby
<al2o3-cr>
havenwood: i've figured out a way, bit it's not pretty :(
cd has joined #ruby
royal_screwup21 has quit [Remote host closed the connection]
<al2o3-cr>
&>> for assert, opt in pairs(require'socket':tcp():connect('127.1',9367):getoption('node-relay')) do if assert then print(opt) end end
<rubydoc>
stderr: -e:4: syntax error, unexpected ':', expecting ')'... check link for more (https://carc.in/#/r/8k6m)
<al2o3-cr>
oops, wrong buffer
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
citizentwo has quit [Remote host closed the connection]
citizentwo has joined #ruby
fercell has quit [Quit: WeeChat 2.7]
pinpox- has joined #ruby
pinpox has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
burningserenity has quit [Quit: Leaving.]
tau has joined #ruby
TorpedoSkyline has joined #ruby
fphilipe has quit [Ping timeout: 272 seconds]
citizentwo has quit [Remote host closed the connection]
fphilipe has joined #ruby
tau has quit [Quit: tau]
ExoUNX has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
markopasha has joined #ruby
<wildtrees>
if I am reading a file and appending/writing a file in sinatra from different routes using the default webbrick backend, do I need to implement some sort of locking or I may experiences races/failures? or does ruby handle that with files?
ur5us has joined #ruby
<adam12>
wildtrees: Webrick is multi-threaded. I'd lock the file before writing, or handle it atomically somehow.
<adam12>
wildtrees: You _might_ be protected by the GVL but I wouldn't rely on it.
citizentwo has joined #ruby
<wildtrees>
whats GVL stand for? I have heard of GIL before in interpreters, global interpreter lock ?
<havenwood>
wildtrees: Global VM Lock
<adam12>
wildtrees: It's the same.
<havenwood>
wildtrees: (VM instead of interpreter.)
citizentwo has quit [Ping timeout: 265 seconds]
impermanence has quit [Ping timeout: 272 seconds]
<al2o3-cr>
what if matz done away with the lock? would everything be better or worse?
minall has quit [Quit: minall]
tau has joined #ruby
alexherbo2 has joined #ruby
ExoUNX has joined #ruby
alexherbo20 has joined #ruby
troulouliou_dev has joined #ruby
alexherbo2 has quit [Ping timeout: 260 seconds]
ExoUNX has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexherbo2 has joined #ruby
ExoUNX has joined #ruby
ExoUNX has quit [Client Quit]
alexherbo20 has quit [Ping timeout: 272 seconds]
Fernando-Basso has quit [Quit: Leaving]
davispuh has joined #ruby
leitz has quit [Quit: Leaving]
ur5us has quit [Ping timeout: 240 seconds]
olddogbarks has quit [Quit: I am functioning within established parameters.]
<TCZ>
wildtrees: maybe you have put route instead of post
<wildtrees>
I am using axios, just checked my route via curl with -F and the correct form data, seems to responding correctly, think I am using axios wrong :(
TCZ has quit [Quit: Bye Bye]
lucasb has quit [Quit: Connection closed for inactivity]