meinside has quit [Quit: Connection closed for inactivity]
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
SeepingN has joined #ruby
gueorgui has joined #ruby
SeepingN has quit [Ping timeout: 240 seconds]
tanju has joined #ruby
tanju has quit [Read error: Connection reset by peer]
iNs has quit [Ping timeout: 240 seconds]
cnsvc has quit [Ping timeout: 240 seconds]
rzjian has quit [Quit: WeeChat 3.0]
_aeris_ has quit [Ping timeout: 240 seconds]
iNs has joined #ruby
_aeris_ has joined #ruby
vondruch has joined #ruby
coniptor has quit [Ping timeout: 272 seconds]
viporli has quit [Remote host closed the connection]
schaerli_ has joined #ruby
bsdbandit-01 has joined #ruby
viporli has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
schaerli has quit [Read error: Connection reset by peer]
Axy has quit [Read error: Connection reset by peer]
bsdbandit-01 has quit [Read error: Connection reset by peer]
viporli has quit [Remote host closed the connection]
viporli has joined #ruby
coniptor has joined #ruby
schaerli__ has joined #ruby
schaerli_ has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
jl4 has joined #ruby
orbyt_ has quit [Ping timeout: 264 seconds]
coffeejunk has quit [Ping timeout: 246 seconds]
cstrahan has quit [Ping timeout: 244 seconds]
kermit has quit [Ping timeout: 244 seconds]
darthThorik has quit [Ping timeout: 246 seconds]
coffeejunk has joined #ruby
kermit has joined #ruby
darthThorik has joined #ruby
cstrahan has joined #ruby
kristian_on_linu has joined #ruby
viporli has quit [Remote host closed the connection]
viporli has joined #ruby
al2o3-cr has joined #ruby
baojg__ has quit [Remote host closed the connection]
Technodrome has joined #ruby
Axy has joined #ruby
Mia has quit [Ping timeout: 240 seconds]
akem has joined #ruby
viporli has quit [Ping timeout: 240 seconds]
ZeroFux has joined #ruby
foul_owl has quit [Ping timeout: 240 seconds]
LtHummus has quit [Ping timeout: 256 seconds]
akem has quit [Ping timeout: 256 seconds]
LtHummus has joined #ruby
SeepingN has joined #ruby
SeepingN has quit [Ping timeout: 256 seconds]
m27frogy has joined #ruby
linoge has joined #ruby
foul_owl has joined #ruby
jl4 has quit [Ping timeout: 264 seconds]
CrimisoK` has joined #ruby
somazero has joined #ruby
CrimisoK` has left #ruby [#ruby]
TCZ has joined #ruby
jl4 has joined #ruby
ZeroFux has quit [Remote host closed the connection]
siery has quit [Ping timeout: 246 seconds]
siery has joined #ruby
akem has joined #ruby
vondruch has quit [Ping timeout: 256 seconds]
drnerdius has joined #ruby
drnerdius has quit [Client Quit]
_aeris_ has quit [Remote host closed the connection]
siery has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
dionysus69 has joined #ruby
dionysus69 has quit [Changing host]
_aeris_ has joined #ruby
bsdbandit-01 has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
ruurd has joined #ruby
ShekharReddy has joined #ruby
titanbiscuit has quit [Ping timeout: 256 seconds]
jl4 has quit [Ping timeout: 240 seconds]
TCZ has quit [Quit: Kindergarten is elsewhere!]
schaerli__ has quit [Ping timeout: 256 seconds]
rzjian has joined #ruby
vondruch has joined #ruby
jl4 has joined #ruby
ShekharReddy has quit []
cliluw has quit [Ping timeout: 264 seconds]
TCZ has joined #ruby
FrankyCyborg has joined #ruby
dionysus69 has quit [Ping timeout: 256 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
jl4 has quit [Ping timeout: 272 seconds]
BSaboia has joined #ruby
SeepingN has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cthulchu_ has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
rzjian has quit [Ping timeout: 264 seconds]
siery has joined #ruby
coniptor has quit [Ping timeout: 240 seconds]
coniptor has joined #ruby
Technodrome has joined #ruby
cloud69 has quit [Quit: Connection closed for inactivity]
dionysus69 has joined #ruby
dionysus69 has quit [Changing host]
dionysus69 has joined #ruby
cowgomoo has joined #ruby
TCZ has quit [Remote host closed the connection]
BSaboia has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
ChmEarl has joined #ruby
coniptor has quit [Ping timeout: 240 seconds]
prion has joined #ruby
<adam12>
I wonder if the Rubygems CDN is having issues.
coniptor has joined #ruby
<adam12>
A Twitter search says yes.
BSaboia has joined #ruby
batisi[m] has quit [Quit: Idle for 30+ days]
BSaboia has quit [Client Quit]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
coniptor has quit [Ping timeout: 264 seconds]
bsdbandit-01 has joined #ruby
thinkpad has quit [Ping timeout: 264 seconds]
thinkpad has joined #ruby
coniptor has joined #ruby
BSaboia has joined #ruby
dionysus69 has quit [Quit: Konversation terminated!]
dionysus69 has joined #ruby
Raboo has joined #ruby
queip has quit [Remote host closed the connection]
queip has joined #ruby
hiroaki has joined #ruby
jl4 has joined #ruby
pwnd_sfw has quit [Ping timeout: 256 seconds]
pwnd_sfw has joined #ruby
Raboo has quit [Quit: leaving]
Rudd0^ has joined #ruby
kristian_on_linu has quit [Remote host closed the connection]
s2013 has joined #ruby
Rudd0 has quit [Ping timeout: 272 seconds]
bsdbandit-01 has quit [Read error: Connection reset by peer]
hassox has joined #ruby
coniptor has quit [Ping timeout: 264 seconds]
queip has left #ruby ["Konversation terminated!"]
Raboo has joined #ruby
schne1der has quit [Quit: schne1der]
coniptor has joined #ruby
roshanavand has joined #ruby
roshanavand1 has joined #ruby
roshanavand has quit [Ping timeout: 246 seconds]
roshanavand1 is now known as roshanavand
bsdbandit-01 has joined #ruby
iNs has quit [Ping timeout: 240 seconds]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has joined #ruby
iNs has joined #ruby
thinkpad has quit [Ping timeout: 256 seconds]
thinkpad has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
iNs has quit [Ping timeout: 240 seconds]
iNs has joined #ruby
BSaboia has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
BSaboia has quit [Client Quit]
lucasb has joined #ruby
<prion>
what are the most underrated methods on array/string/enumerable
<prion>
or ones ruby has that you miss in other languages
howdoi has joined #ruby
<havenwood>
prion: Enumerable#tally is a fun newish one. :)
<havenwood>
prion: Array#permutation and friends can be handy.
<havenwood>
prion: Gotta love #cycle.
<havenwood>
prion: String#grapheme_clusters too.
<prion>
tally is cool
<prion>
i called it histogram but i think tally is better
BSaboia has joined #ruby
BSaboia has quit [Client Quit]
thinkpad has quit [Ping timeout: 240 seconds]
bsdbandit-01 has joined #ruby
thinkpad has joined #ruby
vondruch has quit [Read error: Connection reset by peer]
noboruma has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
noboruma has quit [Ping timeout: 246 seconds]
noboruma has joined #ruby
TomyWork has quit [Remote host closed the connection]
coniptor has quit [Ping timeout: 264 seconds]
ua has quit [Ping timeout: 256 seconds]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
stryek has joined #ruby
ua has joined #ruby
dcunit3d has quit [Ping timeout: 240 seconds]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
coniptor has joined #ruby
bsdbandit-01 has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
bsdbandit-01 has quit [Read error: Connection reset by peer]
bsdbandit-01 has joined #ruby
TCZ has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
bambanx has joined #ruby
TCZ has quit [Remote host closed the connection]
BSaboia has joined #ruby
brunosaboia_ has joined #ruby
thinkpad has quit [Ping timeout: 246 seconds]
BSaboia has quit [Ping timeout: 256 seconds]
thinkpad has joined #ruby
iNs_ has joined #ruby
iNs has quit [Quit: bubye]
coniptor has quit [Ping timeout: 260 seconds]
coniptor has joined #ruby
thinkpad has quit [Ping timeout: 246 seconds]
thinkpad has joined #ruby
cuerbot has joined #ruby
gix has joined #ruby
elcuervo has quit [Ping timeout: 256 seconds]
alextee has quit [Ping timeout: 260 seconds]
alextee has joined #ruby
cnsvc has joined #ruby
cliluw has joined #ruby
bsdbandit-01 has joined #ruby
naftilos76 has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bsdbandit-01 has quit [Read error: Connection reset by peer]
bsdbandit-01 has joined #ruby
<naftilos76>
I am saving multiple mqtt messages in mysql with ruby scripts and after struggling for days i have managed to get a time of 1-2ms per each message. Does that sound like a value that can be further optimized? I am using mysql2 gem and grouping messages within every insert in mysql.
<naftilos76>
using ruby 3.0
<naftilos76>
i am hoping to reach around 1000 messages per sec but that requires 0.8ms/message at the worst. Do you thing it is possible?
<naftilos76>
a message would look like: {"user_uid":"0518c44e44a3da6a230e93d545d2bf964a0fdd83","value":29.5,"timestamp":"2021-01-04 17:41:43.295 +0200"}
<naftilos76>
and off course the topic name
<havenwood>
naftilos76: Can you collate and bulk insert in smallish batches?
alextee has quit [Ping timeout: 256 seconds]
<naftilos76>
i am already doing that. that is combining multiple message into one insert.
<havenwood>
naftilos76: Ah, gotcha.
<naftilos76>
i am hoping to do this with ruby otherwise i will have to do it with C++ :)
brunosaboia_ has quit [Ping timeout: 256 seconds]
brunosaboia_ has joined #ruby
<naftilos76>
havenwood: do you thing it will be much faster with C++ ? The saving-to-db part is the one that wories me. Most of the other suff is done via sockets (sent & received)
thinkpad has quit [Ping timeout: 265 seconds]
thinkpad has joined #ruby
<naftilos76>
sorry, i will ask at the right channel - no worries
<havenwood>
naftilos76: I'd expect the I/O parts to be slow and the C++/Ruby/other lang parts to be fast enough to not matter much, but YMMV.
<havenwood>
naftilos76: h20-mruby look like about 10x the data update rate as a nice Roda-based Rack app there ^
alextee has joined #ruby
<naftilos76>
havenwood: thanks really interesting
coniptor has quit [Ping timeout: 264 seconds]
factormystic has quit [Read error: Connection reset by peer]
factormystic has joined #ruby
cliluw has quit [Ping timeout: 260 seconds]
cliluw has joined #ruby
wornt has quit [Remote host closed the connection]
nofxx_ has quit [Remote host closed the connection]
wornt has joined #ruby
nofxx_ has joined #ruby
coniptor has joined #ruby
dfucci has quit [Ping timeout: 264 seconds]
cahoots has joined #ruby
<cahoots>
hi, what's the easiest way to run a shell command and print out each bit of stdout as soon as it's printed (which can be done with system(...)), but also return stdout as a string at the end?
naftilos76 has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
scriptonaut has joined #ruby
cloud69 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
Emmanuel_Chanel has quit [Ping timeout: 256 seconds]
<havenwood>
scriptonaut: Seems getting the ascii art to look pretty might be a challenge. I'd think recursive checking would work great as long as the hash isn't terribly deeply nested.
<scriptonaut>
ya I actually had it printing correctly, it was just not very intuitive to read
<scriptonaut>
I like having the pretty ascii art to connect it
<scriptonaut>
it's been a challenge
<scriptonaut>
each hash has roughly 3 keys on average
<scriptonaut>
no more than 4, so I also have to pad the other hash keys after the initial one
dfucci has joined #ruby
dfucci has quit [Ping timeout: 240 seconds]
dfucci has joined #ruby
Emmanuel_Chanel has joined #ruby
iNs_ has quit [Ping timeout: 240 seconds]
Emmanuel_Chanel has quit [Ping timeout: 256 seconds]
Technodrome has joined #ruby
orbyt_ has joined #ruby
dfucci has quit [Ping timeout: 272 seconds]
BSaboia has quit [Quit: This computer has gone to sleep]
jl4 has quit [Ping timeout: 260 seconds]
ramenboy has joined #ruby
ramenboy has quit [Client Quit]
linoge has quit [Remote host closed the connection]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gray-_-wolf has joined #ruby
dfucci has joined #ruby
bambanx has quit [Quit: Leaving]
iNs has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
cthulchu_ has quit [Ping timeout: 258 seconds]
roshanavand has quit [Ping timeout: 260 seconds]
jl4 has joined #ruby
coniptor has quit [Ping timeout: 240 seconds]
sounxrt has joined #ruby
sounxrt has left #ruby [#ruby]
sounxrt has joined #ruby
sounxrt has quit [Client Quit]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
michxf has joined #ruby
bsdbandit-01 has joined #ruby
dfucci has quit [Ping timeout: 246 seconds]
bsdbandit-01 has quit [Read error: Connection reset by peer]
jl4 has quit [Ping timeout: 265 seconds]
also_uplime has quit [Quit: quit]
coniptor has joined #ruby
michxf has quit [Quit: michxf]
ur5us_ has quit [Remote host closed the connection]
ur5us_ has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
kristian_on_linu has joined #ruby
siery has quit [Read error: Connection reset by peer]
siery has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
phenom has quit [Ping timeout: 260 seconds]
siery has quit [Read error: Connection reset by peer]
phenom has joined #ruby
iNs has quit [Ping timeout: 240 seconds]
coniptor has quit [Ping timeout: 260 seconds]
coniptor has joined #ruby
kristian_on_linu has quit [Remote host closed the connection]