havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 2.7.2, 2.6.6, 3.0.0-preview1: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.org | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | BLM <3 | Can't talk? Register/identify with NickServ
va5c0 has joined #ruby
va5c0 has quit [Client Quit]
<nakilon> alright, I'll use `ps -o rss= -p #{pid}`
drincruz has quit [Ping timeout: 240 seconds]
ur5us_ has quit [Remote host closed the connection]
ur5us_ has joined #ruby
filpAM has joined #ruby
dfucci has quit [Ping timeout: 264 seconds]
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
dfucci has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Nahra has quit [Ping timeout: 260 seconds]
Nahra has joined #ruby
dfucci has quit [Ping timeout: 240 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
TCZ is now known as LowEffortTroll
yusuf has joined #ruby
baojg_ has quit [Ping timeout: 264 seconds]
baojg has joined #ruby
dfucci has joined #ruby
drincruz has joined #ruby
yusuf has quit [Remote host closed the connection]
cow[moo] has joined #ruby
drincruz has quit [Ping timeout: 240 seconds]
dfucci has quit [Ping timeout: 260 seconds]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rudd0^ has quit [Ping timeout: 264 seconds]
vondruch has joined #ruby
vondruch has quit [Ping timeout: 264 seconds]
vondruch has joined #ruby
LowEffortTroll has quit [Quit: Diabe? tkwi w szczegó?ach]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
baojg_ has joined #ruby
baojg has quit [Ping timeout: 264 seconds]
duderonomy has joined #ruby
coyo has joined #ruby
coyo is now known as Guest81530
Guest81530 is now known as WarmasterConrad
baojg has joined #ruby
baojg_ has quit [Ping timeout: 264 seconds]
dfucci has joined #ruby
dfucci has quit [Ping timeout: 264 seconds]
donofrio_ has joined #ruby
_paul0 has joined #ruby
dfucci has joined #ruby
rheddry has quit [Ping timeout: 264 seconds]
paul0 has quit [Read error: Connection reset by peer]
donofrio has quit [Ping timeout: 246 seconds]
levifig has joined #ruby
Technodrome has joined #ruby
dfucci has quit [Ping timeout: 256 seconds]
Matadoer has quit [Quit: ciao]
Matadoer has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
cthulchu_ has quit [Ping timeout: 246 seconds]
DTZUZU has quit [Read error: Connection reset by peer]
Rudd0 has joined #ruby
DTZUZU has joined #ruby
meinside has joined #ruby
DTZUZU has quit [Ping timeout: 260 seconds]
baojg_ has joined #ruby
baojg has quit [Ping timeout: 264 seconds]
filpAM has quit [Ping timeout: 272 seconds]
ur5us_ has quit [Ping timeout: 264 seconds]
Swyper has quit [Remote host closed the connection]
roshanavand_ has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
CrazyEddy has left #ruby [#ruby]
roshanavand has quit [Ping timeout: 240 seconds]
roshanavand_ is now known as roshanavand
CrazyEddy has joined #ruby
adu has joined #ruby
Swyper has joined #ruby
teclator has quit [Ping timeout: 246 seconds]
skyikot has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
skyikot has joined #ruby
nicolas_ has joined #ruby
baojg has joined #ruby
nicolas_ has left #ruby [#ruby]
baojg_ has quit [Ping timeout: 264 seconds]
ur5us_ has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
dfucci has joined #ruby
ChmEarl has quit [Quit: Leaving]
supercoven has joined #ruby
supercoven has quit [Max SendQ exceeded]
supercoven has joined #ruby
supercoven has quit [Max SendQ exceeded]
supercoven has joined #ruby
supercoven has quit [Max SendQ exceeded]
supercoven has joined #ruby
supercoven has quit [Max SendQ exceeded]
supercoven has joined #ruby
dfucci has quit [Ping timeout: 240 seconds]
vk has joined #ruby
supercoven has quit [Max SendQ exceeded]
supercoven has joined #ruby
supercoven has quit [Max SendQ exceeded]
supercoven has joined #ruby
supercoven has quit [Max SendQ exceeded]
supercoven has joined #ruby
supercoven has quit [Max SendQ exceeded]
supercoven has joined #ruby
supercoven has quit [Max SendQ exceeded]
CrazyEddy is now known as CrazyEdd
akem__ has joined #ruby
akem_ has quit [Ping timeout: 264 seconds]
adu has quit [Quit: adu]
baojg_ has joined #ruby
baojg has quit [Ping timeout: 264 seconds]
baojg has joined #ruby
thanou has joined #ruby
thanou is now known as rubythanh
baojg_ has quit [Ping timeout: 264 seconds]
rubythanh has quit [Ping timeout: 245 seconds]
dcunit3d has quit [Ping timeout: 260 seconds]
Nahra has quit [Quit: leaving]
dcunit3d has joined #ruby
BSaboia has joined #ruby
ur5us_ has quit [Ping timeout: 264 seconds]
BSaboia has quit [Client Quit]
BSaboia has joined #ruby
BSaboia has quit [Client Quit]
vondruch has quit [Ping timeout: 240 seconds]
duderonomy has quit [Ping timeout: 260 seconds]
duderonomy has joined #ruby
teclator has joined #ruby
BenDover has joined #ruby
BSaboia has joined #ruby
dfucci has joined #ruby
ur5us_ has joined #ruby
gix- has quit [Ping timeout: 240 seconds]
robotmay has quit [Remote host closed the connection]
TomyWork has joined #ruby
robotmay has joined #ruby
vondruch has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
ur5us_ has quit [Quit: Leaving]
DaRock has joined #ruby
sonne has quit [Ping timeout: 246 seconds]
BSaboia has joined #ruby
BSaboia has quit [Client Quit]
BSaboia has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
BSaboia has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
axsuul has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
akem__ has quit [Quit: Leaving]
akem has joined #ruby
akem has quit [Remote host closed the connection]
akem has joined #ruby
Guest25513 has quit [Remote host closed the connection]
Guest25513 has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
BSaboia has joined #ruby
BSaboia has quit [Client Quit]
dcunit3d has quit [Ping timeout: 265 seconds]
_whitelogger has joined #ruby
BSaboia has joined #ruby
skyikot has quit [Ping timeout: 240 seconds]
BSaboia has quit [Quit: This computer has gone to sleep]
supercoven has joined #ruby
supercoven has quit [Max SendQ exceeded]
BSaboia has joined #ruby
supercoven has joined #ruby
supercoven has quit [Max SendQ exceeded]
supercoven has joined #ruby
supercoven has quit [Max SendQ exceeded]
supercoven has joined #ruby
supercoven has quit [Max SendQ exceeded]
supercoven has joined #ruby
supercoven has quit [Max SendQ exceeded]
arkinor has joined #ruby
fercell has joined #ruby
dcunit3d has joined #ruby
al2o3-cr has quit [Ping timeout: 256 seconds]
al2o3-cr has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
meinside has quit [Quit: Connection closed for inactivity]
plant_enjoyer has joined #ruby
akem has quit [Quit: Leaving]
akem has joined #ruby
akem has quit [Remote host closed the connection]
akem has joined #ruby
akem has quit [Remote host closed the connection]
roadie has joined #ruby
dfucci_ has joined #ruby
dfucci has quit [Ping timeout: 260 seconds]
akem has joined #ruby
roadie` has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
roadie` has quit [Client Quit]
roadie has joined #ruby
dfucci has joined #ruby
dfucci_ has quit [Ping timeout: 240 seconds]
dcunit3d has quit [Ping timeout: 272 seconds]
phage has joined #ruby
rippa has joined #ruby
phage has quit [Quit: Textual IRC Client: www.textualapp.com]
roadie has quit [Ping timeout: 272 seconds]
roadie has joined #ruby
rubydoc has quit [Ping timeout: 260 seconds]
rubydoc has joined #ruby
phaul has quit [Ping timeout: 260 seconds]
phaul has joined #ruby
duderonomy has joined #ruby
turt2live has quit [Quit: Bridge terminating on SIGTERM]
jo-so has quit [Quit: Bridge terminating on SIGTERM]
hsiktas[m] has quit [Quit: Bridge terminating on SIGTERM]
MeVegan[m] has quit [Quit: Bridge terminating on SIGTERM]
batisi[m] has quit [Quit: Bridge terminating on SIGTERM]
glimpse[m] has quit [Quit: Bridge terminating on SIGTERM]
danielk43[m] has quit [Quit: Bridge terminating on SIGTERM]
stan has quit [Quit: Bridge terminating on SIGTERM]
linuus[m] has quit [Quit: Bridge terminating on SIGTERM]
Hanma[m] has quit [Quit: Bridge terminating on SIGTERM]
gypsy5[m] has quit [Quit: Bridge terminating on SIGTERM]
otagi[m] has quit [Quit: Bridge terminating on SIGTERM]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cd has quit [Quit: cd]
stan has joined #ruby
BenDover has quit [Quit: BenDover]
evdubs has quit [Remote host closed the connection]
vondruch has quit [Ping timeout: 272 seconds]
arkinor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
infinityfye has joined #ruby
jo-so has joined #ruby
linuus[m] has joined #ruby
glimpse[m] has joined #ruby
turt2live has joined #ruby
MeVegan[m] has joined #ruby
Hanma[m] has joined #ruby
danielk43[m] has joined #ruby
gypsy5[m] has joined #ruby
hsiktas[m] has joined #ruby
otagi[m] has joined #ruby
batisi[m] has joined #ruby
phaul has quit [Ping timeout: 264 seconds]
rubydoc has quit [Ping timeout: 264 seconds]
rubydoc has joined #ruby
phaul has joined #ruby
drincruz has joined #ruby
evdubs has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rubydoc has quit [Ping timeout: 240 seconds]
phaul has quit [Ping timeout: 260 seconds]
ignorand_ has joined #ruby
phaul has joined #ruby
ignorand_ is now known as ignorand
phaul has quit [Ping timeout: 240 seconds]
drincruz has quit [Ping timeout: 256 seconds]
phaul has joined #ruby
drincruz has joined #ruby
rubydoc has joined #ruby
roadie has quit [Remote host closed the connection]
GodFather has joined #ruby
BenDover has joined #ruby
drincruz has quit [Ping timeout: 265 seconds]
plant_enjoyer has quit [Quit: Leaving]
vondruch has joined #ruby
filpAM has joined #ruby
TCZ has joined #ruby
lucasb has joined #ruby
vondruch has quit [Ping timeout: 246 seconds]
baojg_ has joined #ruby
baojg has quit [Ping timeout: 264 seconds]
akem has quit [Ping timeout: 272 seconds]
Mia has quit [Read error: Connection reset by peer]
Axy has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Axy has quit [Ping timeout: 265 seconds]
vondruch has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
roadie has joined #ruby
factormystic has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
Mia has quit [Ping timeout: 256 seconds]
BTRE has quit [Remote host closed the connection]
<nakilon> can Open3.popen3#gets cut string before \n for no reason?
Mia has joined #ruby
fercell has quit [Quit: WeeChat 2.9]
Axy has quit [Ping timeout: 265 seconds]
tosaraja has joined #ruby
Axy has joined #ruby
BTRE has joined #ruby
Mia has quit [Ping timeout: 240 seconds]
pothibo has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Axy has quit [Ping timeout: 240 seconds]
davispuh has joined #ruby
akem has joined #ruby
TomyWork has quit [Quit: Leaving]
baojg_ has quit [Remote host closed the connection]
baojg has joined #ruby
TCZ has quit [Remote host closed the connection]
tinco has joined #ruby
arkinor has joined #ruby
pothibo has quit [Quit: Connection closed]
ua has quit [Ping timeout: 260 seconds]
ChmEarl has joined #ruby
dfucci has quit [Ping timeout: 256 seconds]
GodFather has quit [Ping timeout: 260 seconds]
filpAM has quit [Quit: leaving]
filpAM has joined #ruby
maik_ has joined #ruby
arkinor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maik_ is now known as coonofdoom
coonofdoom has quit [Client Quit]
infinityfye has quit [Quit: Leaving]
dfucci has joined #ruby
dfucci has quit [Ping timeout: 240 seconds]
DaRock has quit [Ping timeout: 240 seconds]
cthulchu_ has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
ellcs has joined #ruby
skyikot has joined #ruby
vondruch has quit [Read error: Connection reset by peer]
pothibo has joined #ruby
dfucci has joined #ruby
TCZ has joined #ruby
drincruz has joined #ruby
dfucci has quit [Ping timeout: 264 seconds]
pothibo has quit [Quit: Connection closed]
Technodrome has joined #ruby
dfucci has joined #ruby
skyikot has quit [Ping timeout: 240 seconds]
rubydoc has quit [Ping timeout: 260 seconds]
<nakilon> there is a line from IO that ends like this: ",[2,9,1],[7,6,1],[7,1,1],[7,1,1],[7,6,1]]]\n", but .gets reads it as ",[2,9,1],[7,6,1],[7,1,1],[7,1,1],[7\n" and then "1]]]\n", so it breaks in two halves and loses two bytes in that place
phaul has quit [Ping timeout: 272 seconds]
rubydoc has joined #ruby
<nakilon> it's either an issue on side of Ruby's gets or Go's Println that emits this, guys in Go channel look like they have no idea either
<apotheon> What does Go's Println have to do with it?
rubydoc has quit [Ping timeout: 240 seconds]
dfucci has quit [Ping timeout: 272 seconds]
roadie has quit [Remote host closed the connection]
phaul has joined #ruby
rubydoc has joined #ruby
<nakilon> it prints the string that then Ruby reads
<apotheon> I have two ideas about how to narrow down the problem:
<apotheon> 1. Run whatever is using Println without the Ruby program reading from it, and pipe the results to a text file. See if there are any weird anomalies in the text written to file.
phaul has quit [Ping timeout: 256 seconds]
rubydoc has quit [Ping timeout: 240 seconds]
<apotheon> 2. Open irb and use #gets to open stdin, and force-feed the text to it to see if #gets breaks the input that way.
r29v has joined #ruby
<nakilon> 1. it prints data that it gets from Ruby a second before that
<nakilon> I'll try 2
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
rubydoc has joined #ruby
phaul has joined #ruby
postmodern has joined #ruby
<nakilon> looks like Go not only puts unneeded \n, but now I see that it can even print another Println call arg in between
Swyper has joined #ruby
<nakilon> maybe fmt needs some syncing set explicitely?
phaul has quit [Ping timeout: 240 seconds]
Besnik_b has joined #ruby
phaul has joined #ruby
dfucci has joined #ruby
akem_ has joined #ruby
TCZ has quit [Remote host closed the connection]
akem has quit [Ping timeout: 246 seconds]
Rudd0 has quit [Ping timeout: 265 seconds]
roadie has joined #ruby
rippa has joined #ruby
<nakilon> I still don't understand why it does not happen if I decode/encode the json before that, and why always on the same position
<Besnik_b> Hello! Seven months ago I tried to run some tests on a Redmine repo (involving translations, nothing fancy, not messing in any way with code) but I failed, despite of generous help from jhass and another gentleman whose name I don't remember. I remember though that we we're close to conclude that my Ruby installation was somehow strange or messed up. At this point, installing a Ruby-friendly distro in a USB stick and try again seems
<Besnik_b> like a solution. Is there any such distro anyone knows of? Any recommendation? I don't want to mess with my current OS just for a 30 seconds set of tests...
<jhass> Ubuntu, Fedora should be just fine for the standard options
dfucci has quit [Ping timeout: 264 seconds]
<Besnik_b> jhass, thank you! And you mean vanilla, right?
<jhass> it doesn't really matter much
<jhass> the flavours just come with different packages pre-installed after all
<jhass> it's not separate package repositories
phaul has quit [Remote host closed the connection]
phaul has joined #ruby
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
ellcs has quit [Ping timeout: 260 seconds]
skyikot has joined #ruby
ellcs has joined #ruby
dfucci has joined #ruby
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
ur5us has joined #ruby
ignorand has quit [Remote host closed the connection]
BSaboia has quit [Quit: This computer has gone to sleep]
dfucci has quit [Ping timeout: 240 seconds]
BSaboia has joined #ruby
weaksauce has joined #ruby
ellcs has quit [Ping timeout: 260 seconds]
Xiti` has joined #ruby
Xiti has quit [Ping timeout: 256 seconds]
duderonomy has joined #ruby
GodFather has joined #ruby
dfucci has joined #ruby
duderonomy has quit [Ping timeout: 256 seconds]
filpAM has quit [Ping timeout: 256 seconds]
davispuh has quit [Ping timeout: 246 seconds]
dfucci has quit [Ping timeout: 256 seconds]
<nakilon> I switched from "fmt.Println" to "os.Stdout.Write" with an idea that this package will print unbuffered but nope, Ruby's "gets" still cuts the string in the same place
<nakilon> maybe gets has limit? or I should use open3 in some unbuffered manner... still does not explain how the "\n" appears there, buffering should not insert the "\n" byte
davispuh has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
cliluw has quit [Ping timeout: 260 seconds]
filpAM has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
BSaboia has joined #ruby
roadie has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
BSaboia has quit [Client Quit]
roadie has joined #ruby
<nakilon> Go's github and google groups say STDOUT there is unbuffered while in fact strings from there come to Ruby's popen3 in a mess order and corrupted
gix has joined #ruby
<apotheon> seems sucky
<apotheon> also seems buffered . . . badly, perhaps
<apotheon> nakilon: I wonder if it's something about how the Println function interacts with STDOUT, so that a different output function would be a better choice for generating streams.
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<nakilon> apotheon as I said I already tried os.Stdout.Write; gonna google about buffering again, but it's like something they just don't even talk about, heh
r29v has quit [Quit: r29v]
roadie has quit [Ping timeout: 272 seconds]
duderonomy has joined #ruby
arkinor has joined #ruby
BSaboia has joined #ruby
BSaboia has quit [Read error: Connection reset by peer]
filpAM has quit [Quit: leaving]
DTZUZU has joined #ruby
cliluw has joined #ruby
cthulchu_ has quit [Read error: Connection reset by peer]
cthulchu_ has joined #ruby
Rudd0 has joined #ruby
cnsvc has joined #ruby
BSaboia has joined #ruby
roadie has joined #ruby
weaksauce has quit [Remote host closed the connection]
roadie has quit [Ping timeout: 272 seconds]
BenDover has quit [Quit: BenDover]
dfucci has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
dfucci has quit [Ping timeout: 240 seconds]
weaksauce has joined #ruby
roadie has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
roadie has quit [Ping timeout: 264 seconds]
dfucci has joined #ruby
<nakilon> so I started using string instead of []byte and the issue has mysteriously gone
Swyper has quit [Remote host closed the connection]
drincruz has quit [Ping timeout: 260 seconds]
ua has joined #ruby
roadie has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
GodFather has joined #ruby
Swyper has joined #ruby
Swyper has quit [Ping timeout: 264 seconds]
drincruz has joined #ruby
roadie has quit [Ping timeout: 272 seconds]
GodFather has quit [Ping timeout: 272 seconds]
et09 has joined #ruby
<et09> ok it's been forever - i have some code which repeatedly wants configure :foobar, :baz do [....] end
<et09> i can't remember how to "anonymize" the do block at the end
<et09> i have it as a lambda atm
<al2o3-cr> nakilon: string are immutable in go, on the other hand slices are mutable.
<et09> but if that works, not sure how to pass it in
drincruz has quit [Ping timeout: 272 seconds]
<leftylink> that sounds like & is called for here
<leftylink> just as one can say map(&:succ), one can say map(&my_lambda)
<et09> ah i see the block is just um, a third param to the configure function
<al2o3-cr> nakilon: ruby's io #gets splits at $/
<et09> this is what i'm trying to feed the proc/lambda into. what's the syntax?
<al2o3-cr> basically IFS input field separator
<leftylink> 23:52:36 < leftylink> just as one can say map(&:succ), one can say map(&my_lambda)
<et09> were you replying to me
<et09> ah
<al2o3-cr> wow, i just said IFS in ruby :P
ur5us has joined #ruby
<et09> ugh finally, FINALLY i got it
<et09> stupid html code edit view in froala wysiwyg editor inside rails_admin
<et09> had to override the js/css location to serve it from public/ in rails
<leftylink> that stands for Iron Fist Sect