havenwood changed the topic of #ruby to: Ruby 3.4.4, 3.3.8, 3.5.0-preview1 https://www.ruby-lang.org | Log https://libera.irclog.whitequark.org/ruby
o0x1eef has joined #ruby
nijunagetto has quit [Quit: nijunagetto]
msv has quit [Remote host closed the connection]
msv has joined #ruby
sleetdrop has joined #ruby
oznek has quit [Quit: Leaving]
nirvdrum741 has quit [Ping timeout: 276 seconds]
nirvdrum741 has joined #ruby
PauloEE has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Vonter has joined #ruby
inline has quit [Quit: Leaving]
<ih8u> o0x1eef: what's the point of bringing ai into this?
<ih8u> or i guess redis does caching?
<ih8u> definitely overkill for my humble server
<ih8u> we have a not insignificant amount of users, but we're not twitter-scale
inline has joined #ruby
<ih8u> right now we're serving our customers comfortably with a single good, old-fashioned vm behind an apache reverse proxy
<ih8u> if we ever get twitter-scale, the people whom i sell to can deal with the fallout from that
<ih8u> though i am looking into setting up rack attack, because we're just big enough to get an uncomfortable amount of attention from bad actors
<ih8u> even got ddos'ed once for lord-knows-what reason
Vonter has quit [Read error: Connection reset by peer]
<ih8u> anyway, if anyone's got tips for setting up rack attack (or similar) with roda, i would be very grateful
<ih8u> i've only found one resource about that specific use case, but it's more like that dude documenting his very specific setup which, aside from also including roda somewhere in the chain, does not resemble my situation at all, so his rack attack setup makes no sense to me as someone who's never used it before
<o0x1eef> Sidekiq is a library :) It lets you write a job as a class, and when you schedule the the job to run, it populates a redis queue with the class name, and any args you provided. Then a separate, dedicated process reads from the queue and actually executes the worker. Variations of this are popular in ruby web apps generally, even small ones.
<o0x1eef> For example, this is how we could implement polling with some task that will run for a long time.
<ih8u> am i missing something or is redis a commercial product?
<ih8u> also, can anyone familiar with unpoly tell me how to define `up-params` so they actually work?
<ih8u> omg this is so stupid
<ih8u> this is what we get when we try to cram "applications" into static text documents
<ih8u> this is why web dev sucks
<ih8u> why on earth is the poll repeatedly calling the original url the view is loaded from if i specifically told it to poll a different path?
<ih8u> the path i defined is being called, but why is the original url also being called repeatedly?
<ih8u> so stupid
sleetdrop has quit [Ping timeout: 252 seconds]
<ih8u> alright, that one's on me
<ih8u> still can't get up-poll's up-params to show up in the request, though
sunyour has quit [Quit: sunyour]
sunyour has joined #ruby
grenierm has joined #ruby
crespire has joined #ruby
Evil-Bob has quit [Quit: The Lounge - https://thelounge.chat]
Evil-Bob has joined #ruby
crespire1 has quit [Ping timeout: 260 seconds]
Linux_Kerio has joined #ruby
schne1der has joined #ruby
infinityfye has joined #ruby
<mikko> how come .zip(1..) is so much slower than .with_index and doing +1 inside the loop every time
<o0x1eef> Redis is a corporate company nowadays, but it started as a open source hobby project and it recently returned to an open source license (after a brief perioid where the license was changed and a ton of negative drama followed)
szkl has quit [Quit: Connection closed for inactivity]
grenierm has quit [Ping timeout: 272 seconds]
sleetdrop has joined #ruby
sleetdrop has quit [Client Quit]
sleetdrop has joined #ruby
sleetdrop has quit [Client Quit]
PauloEE has joined #ruby
PauloEE has quit [Changing host]
PauloEE has joined #ruby
sleetdrop has joined #ruby
sleetdrop has quit [Remote host closed the connection]
sleetdrop has joined #ruby
<havenwood> mikko: The zip version is doing an intermediary Array.
<havenwood> mikko: An aside, but should be `0..` or `index(1)` to be the same.
<havenwood> mikko: I suspect if you `with_index(1).to_a` it'll be much closer speed and memory.
<havenwood> The to_a is the expensive bit.
<havenwood> Though benchmarking it, still faster to with_index with a to_a. Optimized operation without needing to iterate.
<havenwood> Closes some of the gap.
FetidToot has quit [Read error: Connection reset by peer]
fantazo has joined #ruby
Rounin has quit [Ping timeout: 265 seconds]
Rounin has joined #ruby
jmcgnh has quit [Ping timeout: 244 seconds]
pastelowl has quit [Ping timeout: 244 seconds]
pastelowl has joined #ruby
jmcgnh has joined #ruby
infinityfye has quit [Killed (NickServ (GHOST command used by infinityfye__))]
infinityfye__ has joined #ruby
infinityfye__ has quit [Quit: Leaving]
victori has quit [Ping timeout: 268 seconds]
victori- has joined #ruby
infinityfye has joined #ruby
dorian has quit [Remote host closed the connection]
dorian has joined #ruby
oznek has joined #ruby
reset has joined #ruby
fantazo has quit [Quit: Lost terminal]
dionysus69 has joined #ruby
user71 has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
dionysus70 has joined #ruby
dionysus70 is now known as dionysus69
dionysus69 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
szkl has joined #ruby
benjaminwil has quit [Remote host closed the connection]
benjaminwil has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
schne1der has quit [Ping timeout: 272 seconds]
meimei has quit [Remote host closed the connection]
pounce has quit [Remote host closed the connection]
meimei has joined #ruby
pounce has joined #ruby
user71 has quit [Quit: Leaving]
cappy has joined #ruby
pounce has quit [Ping timeout: 248 seconds]
pounce has joined #ruby
R2robot has quit [Ping timeout: 248 seconds]
R2robot has joined #ruby
rvalue- has joined #ruby
rvalue has quit [Ping timeout: 276 seconds]
rvalue- is now known as rvalue
___nick___ has joined #ruby
<The_Camel_> so warm.
<The_Camel_> 26 degrees C.
<The_Camel_> can't focus or do shit.
<weaksauce_> 78 f is a nice day
<weaksauce_> people be weak
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
<The_Camel_> weaksauce_, I grew up half my life in 20-25-35 degrees, but the rest of my childhood/teenhood life was in an area where 13-15 degrees is the norm.
<The_Camel_> weaksauce_, my body has adapted to prefer the cold now.
<The_Camel_> weaksauce_, https://i.imgur.com/41RvKnS.png
<The_Camel_> this is why I said I needed 10-15TB of data....
<weaksauce_> that's a lot of stuff
fantazo has joined #ruby
inline_ has joined #ruby
inline has quit [Ping timeout: 244 seconds]
<The_Camel_> weaksauce_, yeah, I save what generally "shouldn't" be on the internet free.
<The_Camel_> weaksauce_, because one day it will not be anymore :P
<The_Camel_> weaksauce_, I'd save more but there's also a level of sanity limit
<The_Camel_> so
<The_Camel_> weaksauce_, I prefer/try to consume the media more than store it. that way it's consumed rather than hoarded.
<The_Camel_> weaksauce_, time is always the problem though.
<The_Camel_> need more of it.
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
Albarello has joined #ruby
victori has joined #ruby
victori- has quit [Ping timeout: 248 seconds]
<The_Camel_> 5 more freaking UI pages to make. UGH.
<The_Camel_> that's 5 more days of work.
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
infinityfye has quit [Read error: Connection reset by peer]
victori- has joined #ruby
victori has quit [Ping timeout: 260 seconds]
victori- has quit [Ping timeout: 248 seconds]
victori has joined #ruby
cappy has quit [Quit: Leaving]
victori has quit [Read error: Connection reset by peer]
victori has joined #ruby
<mikko> havenwood: oh cool, i didn't realize you can give #with_index a starting index, that's why i had the +1 inside the block
<mikko> it's surprising to me that the #zip does an intermediate array though
victori has quit [Ping timeout: 260 seconds]
FetidToot has joined #ruby