<JRubyGithub>
[jruby] mkristian force-pushed test-add-classloader-to-instance-config from 4c034b4 to 2fb08ac: http://git.io/vYFiC
<JRubyGithub>
jruby/test-add-classloader-to-instance-config 8e24fb8 Christian Meier: allow to add classloader to instance config...
<JRubyGithub>
jruby/test-add-classloader-to-instance-config aa27da8 Christian Meier: revert recent addition of adding classloader to LOAD_PATH or GEM_PATH...
<JRubyGithub>
jruby/test-add-classloader-to-instance-config a89c081 Christian Meier: bring the add classloader to the scriping containers
JRubyGithub has left #jruby [#jruby]
donV has quit [Read error: Connection reset by peer]
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #jruby
rsim has joined #jruby
blaines has quit [Ping timeout: 256 seconds]
rsim1 has quit [Ping timeout: 258 seconds]
pitr-ch has joined #jruby
pitr-ch_ has joined #jruby
blaines has joined #jruby
pitr-ch has quit [Ping timeout: 246 seconds]
camlow325 has quit [Read error: Connection reset by peer]
camlow325 has joined #jruby
djbkd has joined #jruby
elia has quit [Quit: Computer has gone to sleep.]
tenderlove has quit [Read error: Connection reset by peer]
elia has joined #jruby
elia has quit [Client Quit]
tenderlove has joined #jruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #jruby
brightball has joined #jruby
subbu is now known as subbu|lunch
tenderlove has quit [Ping timeout: 246 seconds]
elia has joined #jruby
dinfuehr has joined #jruby
tenderlove has joined #jruby
rsim1 has joined #jruby
rsim has quit [Ping timeout: 258 seconds]
dinfuehr has quit [Ping timeout: 244 seconds]
elia has quit [Quit: Computer has gone to sleep.]
tenderlove has quit [Ping timeout: 244 seconds]
tenderlove has joined #jruby
elia has joined #jruby
elia has quit [Quit: Computer has gone to sleep.]
tenderlove has quit [Read error: Connection reset by peer]
_whitelogger____ has joined #jruby
frank_____ has joined #jruby
tenderlove has quit [Ping timeout: 246 seconds]
knowtheory has joined #jruby
mjc_ has joined #jruby
tenderlove has joined #jruby
yfeldblum has joined #jruby
jeregrine has joined #jruby
nirvdrum has quit [Ping timeout: 265 seconds]
tenderlo_ has joined #jruby
tenderlove has quit [Read error: Connection reset by peer]
rsim has joined #jruby
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rsim1 has quit [Ping timeout: 258 seconds]
sdogruyol has quit [Ping timeout: 255 seconds]
sdogruyol has joined #jruby
sdogruyol has quit [Client Quit]
mrmargolis has quit [Ping timeout: 255 seconds]
dinfuehr has joined #jruby
robbyoconnor has quit [Quit: Konversation terminated!]
dinfuehr has quit [Ping timeout: 244 seconds]
mrmargolis has joined #jruby
nirvdrum has joined #jruby
tenderlo_ has quit [Read error: Connection reset by peer]
tenderlove has joined #jruby
shellac has joined #jruby
mrmargolis has quit [Read error: Connection reset by peer]
mrmargol_ has joined #jruby
elia has joined #jruby
elia has quit [Client Quit]
tenderlo_ has joined #jruby
tenderlove has quit [Read error: Connection reset by peer]
<lukas>
do people here use rvm or rbenv instead?
<havenwood>
lukas: chruby
mrmargolis has joined #jruby
<lukas>
any particular reason?
<lukas>
hmm, the first impression of chruby is pretty good
elia has joined #jruby
<lukas>
my biggest problem right now is the seemingly random segfault when using rvm.el
<havenwood>
lukas: I'm only speaking for myself.
<havenwood>
I actually thought we were in #ruby. :O
<lukas>
haha, oops
mrmargol_ has quit [Ping timeout: 246 seconds]
<lukas>
not enough joins/parts to be in #ruby
<lukas>
although...
<Antiarc>
I use rvm because I've used rvm forever
<xardion>
this isn't really a jruby specific question (though I am seeing this with jruby, it also happens with just java), but has anyone else had the problem where wrapping an OutputStreamWriter around System.out to do UTF-8 encoding will mangle a single character?
<xardion>
and it's specific to System.out. If I pass in a different OutputStream, like a socket, it doesn't happen
<xardion>
I've also tried using java.io.FileDescriptor.out wrapped in a FileOutputStream
<Antiarc>
Do you have an example? Might it be a terminal setting?
<xardion>
the same thing happens
<Antiarc>
What happens if you run your program and pipe stdout to a file - does it end up mangled?
elia has quit [Quit: Computer has gone to sleep.]
nirvdrum has quit [Remote host closed the connection]
<xardion>
well, it's really bizarre, because this is like a 90MB CSV file being generated from a ResultSet, and the 5 proceeding rows have the exact same string generated from the same value in the db, and that character is converting to UTF-8 like it should
<xardion>
Antiarc, that's what I'm doing, it ends up mangled in the file
<Antiarc>
Do you have an example of the mangled text?
elia has joined #jruby
<xardion>
it's a single 3-byte UTF-8 sequence shown up as 6 bytes of efbfbd (replacement character)
<xardion>
there's several preceeding instances of it that convert properly. It's just this one line, it inexplicably does this
<Antiarc>
Do you have a minimal repro case? Sounds interesting to poke at
<xardion>
not really, because I can only get it to happen with this particular query
<Antiarc>
There isn't an extra byte inserted somewhere, or something weird like that?
<xardion>
Nope, I was looking for exactly that
<xardion>
and if I'm outputting to a socket instead, this doesn't happen
<Antiarc>
That character falls outside of the BMP
elia has joined #jruby
<Antiarc>
So there may just be something weird happening WRT surrogate pairs handling
nirvdrum has joined #jruby
<Antiarc>
Maybe a BOM issue?
<xardion>
it's just so weird that it only does it one time
<sluukkonen>
hm, what's the recommended way of going from a Ruby Hash to java.util.HashMap<String, String>?
<xardion>
if it did it on every line that string appeared, I'd have something to work with
<Antiarc>
Can you capture the byte string in between the last successful instance and the first failed one?
<xardion>
oh good point, maybe there's something at the end of the preceeding line that's doing this
elia has quit [Client Quit]
yfeldblum has quit [Remote host closed the connection]
<xardion>
no such luck, and this byte sequence also occurs AFTER this mangling, but it's fine on those line
rsim has quit [Quit: Leaving.]
<xardion>
there is a BufferedWriter around this whole thing, but I've tried fiddling with the buffer size to see if something there was causing it
<xardion>
it always happens on the exact same line, with that character
<Antiarc>
That says data issue to me, but I don't know what off the top of my head
robbyoconnor has joined #jruby
<xardion>
that's the thing, this is coming from a single field in a single row of a database
<xardion>
so the data is the same for every instance this string appears
<xardion>
and I verified that by dumping the byte[] before it even gets sent into the BufferedWriter
<xardion>
they are all identical
<xardion>
and like I said, if the wrapped output stream is a socket (the usual case), this doesn't happen
<xardion>
I haven't tried directly opening a FileOutputStream on the file I'm piping it to, instead of going through stdout
<xardion>
I'll do that, see what happens
<Antiarc>
sluukkonen: Have you tried just calling #to_java on your hash? IIRC RubyHash implement Map
elia has joined #jruby
dinfuehr has joined #jruby
<xardion>
yeah, this definitely has something to do specifically with stdout
<xardion>
going directly to the file avoids the issue
<xardion>
this is the weirdest thing I've ever seen
elia has quit [Client Quit]
yfeldblum has joined #jruby
robbyoconnor has quit [Read error: Connection reset by peer]
<xardion>
trying it locally on my mac to see if it's something specific to the box I'm on
<sluukkonen>
hm, I tried that but it didn't seem to work, iterating through it calling #put manually on a HashMap I created did though. But maybe there was something else wrong... I'll have to try that again.
dinfuehr has quit [Ping timeout: 272 seconds]
<xardion>
nope, happens there too, so it's not an OS thing
<xardion>
or a java version thing, because this is 1.7.0_55
<xardion>
mind. totally blown.
<Antiarc>
To be clear, you have a Java method which takes Map<String, String> and won't accept an automatically-coerced Hash?
<Antiarc>
IIRC, it shouldn't be an issue because of type erasure - generics' type parameters only matter at compile time
<sluukkonen>
yeah never mind, had another problem (the Hash was actually empty :p) there
<sluukkonen>
btw, how do you guys manage jar (from maven) dependencies for gems? I'm sure someone has come up with a better solution than manually copying them to the lib folder
djbkd has quit [Remote host closed the connection]
<Antiarc>
sluukkonen: jbundler is decent for apps, but I dunno about gems. I'm still shipping the jar
tenderlove has quit [Read error: Connection reset by peer]
tenderlo_ has joined #jruby
elia has joined #jruby
blaines has joined #jruby
djbkd has joined #jruby
<Antiarc>
sluukkonen: You could maybe assume that maven is available on the system path and use maven to install POM as part of the gem postinstall stuff, maybe?
<sluukkonen>
I think it's best to package with the gem
<sluukkonen>
but just something to copy all the jar files and automatically generate the require statements in the corret order would be nice
<sluukkonen>
wow, I can't type english tonight. missing words all over the place
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #jruby
shellac has quit [Quit: Computer has gone to sleep.]
baroquebobcat_ has joined #jruby
blaines_ has joined #jruby
yosafbridge has quit [Ping timeout: 250 seconds]
blaines has quit [Ping timeout: 250 seconds]
eam has quit [Ping timeout: 250 seconds]
baroquebobcat has quit [Ping timeout: 250 seconds]
eregon has quit [Ping timeout: 250 seconds]
tarcieri has quit [Ping timeout: 250 seconds]
lukas has quit [Ping timeout: 250 seconds]
baroquebobcat_ is now known as baroquebobcat
eregon has joined #jruby
eam has joined #jruby
yosafbridge has joined #jruby
tarcieri has joined #jruby
wallmani_ has joined #jruby
wallmani_ is now known as lukas
lukas has quit [Changing host]
lukas has joined #jruby
camlow325 has quit [Read error: Connection reset by peer]
camlow325 has joined #jruby
dinfuehr has joined #jruby
drbobbeaty has quit [Read error: Connection reset by peer]
drbobbeaty has joined #jruby
<rtyler>
sluukkonen: sounds like you need some gradle love ;)
dinfuehr has quit [Ping timeout: 244 seconds]
<rtyler>
sluukkonen: there's the jar-dependencies gem, which allows you to specify transitive dependencies which jbundler, ruby-maven and jruby/gradle all respect and take advantage of
tenderlo_ has quit [Read error: Connection reset by peer]
AnoHito has quit [Quit: Leaving]
bbrowning is now known as bbrowning_away
cremes has quit [Remote host closed the connection]
cremes has joined #jruby
nateberkopec has quit [Quit: Leaving...]
elia has quit [Quit: Computer has gone to sleep.]
AnoHito has joined #jruby
cultureulterior1 has quit [Quit: cultureulterior1]
djbkd has quit [Remote host closed the connection]
djbkd has joined #jruby
lanceball is now known as lance|afk
elia has joined #jruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #jruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #jruby
djbkd has quit [Remote host closed the connection]
drbobbeaty has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cajone has joined #jruby
cajone has left #jruby [#jruby]
shellac has joined #jruby
mrmargolis has quit [Remote host closed the connection]
dinfuehr has joined #jruby
dinfuehr has quit [Ping timeout: 240 seconds]
elia has quit [Quit: Computer has gone to sleep.]
djbkd has joined #jruby
_djbkd has joined #jruby
nateberkopec has joined #jruby
djbkd has quit [Read error: Connection reset by peer]
kares has quit [Remote host closed the connection]
skade has joined #jruby
_djbkd has quit [Remote host closed the connection]
djbkd has joined #jruby
samphippen has joined #jruby
dinfuehr has joined #jruby
djbkd has quit [Remote host closed the connection]
dinfuehr has quit [Ping timeout: 255 seconds]
mrmargolis has joined #jruby
tcrawley is now known as tcrawley-away
bjfish2 has joined #jruby
havenwood has quit [Ping timeout: 246 seconds]
shellac has quit [Quit: Computer has gone to sleep.]
djbkd has joined #jruby
mrmargolis has quit [Remote host closed the connection]
cristianrasch has quit [Quit: Leaving]
baroquebobcat has quit [Quit: baroquebobcat]
skade has quit [Quit: Computer has gone to sleep.]
havenwood has joined #jruby
samphippen has quit [Read error: Connection reset by peer]