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