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
<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]
<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.