• cheeser
  • ernimril
  • joed
  • kinabalu
  • lunk
  • ojacobson
  • r0bby
  • ThaDon
  • ricky_clarkson
  • topriddy

« 2019-04-16


2019-04-18 »

Nick Message Date
AMcBain [AMcBain!] has joined ##java [12:04]
pd09041999 [pd09041999!~pd0904199@] has joined ##java [12:09]
kicked pd09041999 (Banned: please fix your connection. you're bouncing in and out. this ban will expire after 7d) [12:09]
wisey [wisey!] has joined ##java [12:10]
cfoch [cfoch!uid153227@gateway/web/] has joined ##java [12:10]
whaley sounds like the wrong question [12:14]
whaley "is java fast enough for the problem I am trying to solve so I don't have drop to a lower level language?" is the correct question. [12:14]
Diablo-D3 honestly I agree [12:16]
DrDonkey [DrDonkey!~DrDonkey@unaffiliated/drdonkey] has joined ##java [12:16]
Diablo-D3 and if you have to ask that question and you're already using java [12:16]
Diablo-D3 you're doing something wrong [12:16]
ArcherL [ArcherL!~ArcherL@unaffiliated/archerl] has joined ##java [12:20]
computeiro [computeiro!~computeir@] has joined ##java [12:48]
Jantz [Jantz!~IceChat9@2407:7000:8d04:100:5d6f:457b:dbb3:221d] has joined ##java [01:03]
ogradyd [ogradyd!~Thunderbi@2a02:8070:88bf:9df0::17f] has joined ##java [01:04]
Goplat [Goplat!~Goplat@reactos/developer/Goplat] has joined ##java [01:07]
Samian [Samian!Samian@] has joined ##java [01:28]
Samian Hi [01:28]
Samian How can "how many lines of code is the program?" be a meaningful question if the numbers can be fudged by breaking up statements and putting braces on separate lines? [01:28]
led_dark_1 [led_dark_1!~Thunderbi@] has joined ##java [01:31]
tokam [tokam!~tokam@unaffiliated/tokam] has joined ##java [01:33]
Diablo-D3 Samian: use a standard calculator for it. [01:34]
ernimril Samian, it is not a meaningful question [01:34]
Diablo-D3 arguments like this turn into lawyering very quickly, and everyone hates it [01:34]
Diablo-D3 and yes, its a very not meaningful question [01:34]
Diablo-D3 [01:35]
Diablo-D3 Diablo-D3's title: " -2000 Lines Of Code" [01:35]
ernimril Samian, if your project follows a style guide you can use it to see how much code change every week, but how to interpret and act on that data is a complicated thing [01:35]
Diablo-D3 go read the above story. [01:35]
ernimril on average 1 bug per X lines, so if you can remove X lines and keep functionality you also remove one bug [01:37]
bobek [bobek!~bobek@unaffiliated/bobek] has joined ##java [01:38]
Samian ernimril if it's not meaningful, why do I so often hear how many lines of code a program is [01:40]
Diablo-D3 Samian: its meaningful across a language [01:41]
Diablo-D3 if someone tells me they have 100k lines of C, eh, big deal [01:41]
ernimril Samian, because most people are morons... :-) [01:41]
ernimril Samian, it still gives you an idea how much time was spent developing the code [01:42]
Diablo-D3 if they tell me they have 100k lines of, say, kotlin [01:43]
Diablo-D3 then thats a pretty sizable chunk of code [01:43]
Diablo-D3 Samian: the problem is, what you need to measure, and cant, is how long it took the programmer to think [01:44]
Diablo-D3 like, lets say I want to solve a problem in perl [01:45]
Diablo-D3 a pretty big sizable one [01:45]
Diablo-D3 I will sit, without the editor open, for a good part of the morning, just contemplating my coffee [01:46]
Samian Diablo-D3 that's a really good point [01:46]
Diablo-D3 a few hours, just thinking about the problem [01:46]
Diablo-D3 and then I will write a dozen or two lines of perl [01:46]
Diablo-D3 and I will have done what most programmers cant do in a week. [01:46]
Diablo-D3 it will be indistinguishable from line noise, unmaintainable, but otherwise perfect. [01:46]
Diablo-D3 optimal languages will be designed for programmer ergonomics. [01:47]
Diablo-D3 if you select languages based on that, java was the least shitty language until kotlin was invented. [01:47]
wisey [wisey!] has joined ##java [01:48]
Diablo-D3 java, usually, lets me produce the most amount of actual functional code that actually does the thing I want, with the least amount of excess thinking [01:49]
JavaGeek [JavaGeek!JavaGeek@unaffiliated/javageek] has joined ##java [01:49]
rruizt [rruizt!] has joined ##java [01:50]
esro [esro!] has joined ##java [01:50]
exonity01 [exonity01!~exonity01@unaffiliated/exonity01] has joined ##java [01:52]
average [average!~qweq@unaffiliated/average] has joined ##java [01:58]
average !seen me [01:58]
average !seen whatever [01:58]
OnceMe [OnceMe!~OnceMe@unaffiliated/onceme] has joined ##java [01:59]
spinningCat [spinningCat!~berat@] has joined ##java [02:01]
spinningCat channel #wicket is sol silent :/ [02:01]
sauvin [sauvin!sauvin@about/linux/staff/sauvin] has joined ##java [02:02]
immibis [immibis!] has joined ##java [02:02]
average parted the channel: [02:03]
wisey [wisey!] has joined ##java [02:10]
newbieG [newbieG!~bhaskar@] has joined ##java [02:13]
DTZUZO [DTZUZO!] has joined ##java [02:14]
newbieG Why we can not bind call to methodA at compile time? Here its clear that which methodA we want to call they could have resolve at compile to --> [02:15]
odinsbane What? [02:20]
newbieG odinsbane: We are doing this --> X obj1 = new X(); -- then we are doing this -- obj1.methodA(); -- Isn't we are explicitly saying what version of methodA to call [02:23]
odinsbane newbieG: obj1 has a methodA and that will be called. It is clear. [02:24]
newbieG odinsbane: but java reslove it at runtime not at compile time [02:27]
odinsbane Why do you say that? [02:27]
sliekas99 [sliekas99!~mantas@] has joined ##java [02:31]
newbieG odinsbane:Just wannna ask why thats the case [02:31]
odinsbane newbieG: I don't think it is. [02:32]
odinsbane newbieG: You seem to be confounding issues. I don't know the details of method dispatch, I know much of it is compile time, but it is also jvm dependent. [02:33]
indistylo [indistylo!~aruns_@] has joined ##java [02:33]
odinsbane It sounds like, you think obj2.methodA() should resovle to the X#methodA but it doesn't because obj2 is a Y not an X. Then you are conflating that with compile time method resolution. [02:36]
wisey [wisey!] has joined ##java [02:36]
spinningCat can i ask some java wicket questions here? [02:38]
odinsbane spinningCat: you can try. [02:38]
spinningCat hmm ok good to know [02:39]
spinningCat wicket channel is so silent and not much people there [02:39]
surial spinningCat: Usage of java libs is entirely on-topic. The only java-related thing that isn't okay here is applets, and android (and both because all sorts of advice common to all java projects don't apply to them). [02:40]
newbieG odinsbane: [02:42]
newbieG odinsbane: I am unable to understand the explanation of Run Time Poly. [02:43]
eckon [eckon!] has joined ##java [02:45]
odinsbane newbieG: They're saying "Cruntime polymorphism, the compiler cannot know what the actual method will do when it gets called. [02:47]
odinsbane eg, consider a method: static public void run(Runnable r){; } The run method of r is completely unknown to the compiler. [02:48]
wisey [wisey!] has joined ##java [02:48]
supernovah [supernovah!~supernova@] has joined ##java [02:48]
odinsbane The only thing the compiler knows is that r is a Object and a Runnable, so it has [02:49]
nickel8448 [nickel8448!~rahul@2a02:8084:d6be:8300:61f6:29c3:95c5:c1c2] has joined ##java [02:50]
Zee- [Zee-!~Zee-@] has joined ##java [02:53]
surial newbieG: interface Shootable { void shoot(); } class Camera implements Shootable { public void shoot() { click(); }} class Gun implements Shootable {public vvoid shoot() { boom(); }} [02:53]
ket [ket!~jil@2607:f298:6:a016::c10:cabe] has joined ##java [02:54]
surial newbieG: then, let's have: Shootable s = flipACoin() ? new Camera() : new Gun(); s.shoot(); [02:54]
surial newbieG: That's runtime polymorphism. In javva, all non-static methods are runtime polymorphic and you can't opt out. [02:54]
odinsbane They also seem to be trying to show the difference when you have two distinct methods. static void meth(X x){...} and static void meth(Y y){...} where in your example. meth(obj2) would resolve to meth(X x) at *compile time* because your object is referenced by an X. [03:00]
palasso [palasso!~palasso@unaffiliated/palasso] has joined ##java [03:04]
nebulae [nebulae!~nebulae@2a02:587:a3b:c000:9c0b:d7a4:6b94:9c48] has joined ##java [03:09]
fyrril [fyrril!~fyrril@2605:a601:7012:7200:545c:a32a:f914:fafa] has joined ##java [03:09]
Tichodroma [Tichodroma!~lutz@fsf/member/Tichodroma] has joined ##java [03:09]
led_dark_1 [led_dark_1!~Thunderbi@] has joined ##java [03:10]
beStKodErEveR [beStKodErEveR!~dannyD@2001:1ba8:160e:e100:54cb:e4c1:2a04:da15] has joined ##java [03:12]
Chuguniy [Chuguniy!~Chuguniy@] has joined ##java [03:20]
ogradyd [ogradyd!~Thunderbi@2a02:8070:88bf:9df0::17f] has joined ##java [03:21]
indistylo [indistylo!~aruns_@] has joined ##java [03:25]
mayurvpatil [mayurvpatil!~mayurvpat@] has joined ##java [03:28]
Matthijs [Matthijs!~quassel@unaffiliated/matthijs] has joined ##java [03:32]
lxsameer [lxsameer!~lxsameer@unaffiliated/lxsameer] has joined ##java [03:47]
OnceMee [OnceMee!~OnceMe@unaffiliated/onceme] has joined ##java [03:54]
runlevel7 [runlevel7!~runlevel7@unaffiliated/runlevel7] has joined ##java [04:01]
iam730 [iam730!~iam730@] has joined ##java [04:01]
Muzer [Muzer!] has joined ##java [04:03]
genpaku [genpaku!~genpaku@] has joined ##java [04:06]
ynyounuo [ynyounuo!~ynyounuo@unaffiliated/ynyounuo] has joined ##java [04:14]
Lymia [Lymia!] has joined ##java [04:15]
henbruas [henbruas!~henbruas@unaffiliated/henbruas] has joined ##java [04:18]
georgelappies [georgelappies!~georgelap@] has joined ##java [04:19]
JD-Robbs [JD-Robbs!~JD-Robbs@] has joined ##java [04:21]
VegetarianFalcon [VegetarianFalcon!uid258908@gateway/web/] has joined ##java [04:28]
georgelappies [georgelappies!~georgelap@] has joined ##java [04:29]
enoq [enoq!] has joined ##java [04:36]
eknadon [eknadon!] has joined ##java [04:37]
sa02irc [sa02irc!] has joined ##java [04:38]
sbeex [sbeex!~sbeex@] has joined ##java [04:43]
sbeex good morning, I would like to generate some documentation based on a project source code (goal extract "events" and determine consumers/producers and generate a "map" of who produce/consume what. Any suggestions about libraries which might helps ? I think reflection is my friend ? [04:44]
karab44 [karab44!~karab44@unaffiliated/karab44] has joined ##java [04:58]
magz [magz!] has joined ##java [05:02]
TwistedParticle [TwistedParticle!] has joined ##java [05:02]
r3m1 [r3m1!~r3m1@] has joined ##java [05:03]
r3m1 hell [05:03]
r3m1 using a PrintWriter, is it possible to set a property on the PrintWriter instance so that, say, every double is formatted with a fixed number of decimals every time I call writer.print(myDouble) [05:03]
[twisti] not that i know of, but that seems trivial to realize as a wrapper [05:05]
Maldivia according to the docs "The string produced by String.valueOf(double) is translated into bytes " [05:05]
[twisti] Maldivia: im going off that he wants that string to be formatted a certain way [05:10]
lucid-lullaby [lucid-lullaby!lucid-lull@gateway/vpn/privateinternetaccess/lucid-lullaby] has joined ##java [05:11]
Avaray [Avaray!] has joined ##java [05:11]
AcTiVaTe [AcTiVaTe!] has joined ##java [05:25]
enoq [enoq!] has joined ##java [05:27]
pd09041999 [pd09041999!~pd0904199@] has joined ##java [05:32]
kicked pd09041999 (Banned: please fix your connection. you're bouncing in and out. this ban will expire after 7d) [05:32]
royal_screwup21 [royal_screwup21!89de72f1@gateway/web/cgi-irc/] has joined ##java [05:36]
DTZUZO [DTZUZO!] has joined ##java [05:39]
rorx [rorx!] has joined ##java [05:45]
r3m1 [twisti]: yes that's what I want [05:49]
r3m1 in C++ you can set stream properties so that any floating point values given to a stream is formatted as you want, and I was wondering if there was an equivalent [05:49]
waz [waz!~waz@pdpc/supporter/active/waz] has joined ##java [05:49]
r3m1 I will go with the wrapper [05:49]
r3m1 if valueOf a function defined in any base class or interface ? [05:56]
togo [togo!~togo@2a01:5c0:1a:c171:3ee7:9c4a:6828:3ea8] has joined ##java [06:10]
Addax r3m1: yes... [06:11]
Addax and java doesn't have an equivalent to cout and cin, so the exact analogue is not possible [06:11]
learningc [learningc!] has joined ##java [06:18]
indistylo [indistylo!~aruns_@] has joined ##java [06:19]
odinsbane I don't really get why not just use printf and be explicit about what you're doing. What would your wrapper be around? [06:19]
sonOfRa odinsbane: since he's a c++ programmer, you can do things like "std::cout << std::boolalpha << someTrueBool" and it'll print "true" rather than "1". Also a lot of formatting options for outputting padded numbers, hexadecimal, whatever. [06:20]
ArcherL [ArcherL!~ArcherL@unaffiliated/archerl] has joined ##java [06:21]
sa02irc [sa02irc!] has joined ##java [06:28]
enoq [enoq!] has joined ##java [06:28]
OnceMee is gui both web and desktop app? [06:38]
learningc [learningc!~learningc@2001:d08:d6:3d60:4815:d996:2930:90a8] has joined ##java [06:43]
odinsbane gui is an acronym. Graphical User Interface. [06:46]
learningc [learningc!~learningc@2001:d08:d6:3d60:4815:d996:2930:90a8] has joined ##java [06:48]
waz [waz!~waz@pdpc/supporter/active/waz] has joined ##java [06:55]
ilhami [ilhami!~ilhami@unaffiliated/ilhami] has joined ##java [06:55]
kicked ilhami (Banned: fuck you racist this ban will expire after 30d) [06:55]
sa02irc [sa02irc!] has joined ##java [06:58]
Matthijs [Matthijs!~quassel@unaffiliated/matthijs] has joined ##java [07:01]
Muzer [Muzer!] has joined ##java [07:05]
indistylo [indistylo!~aruns_@] has joined ##java [07:09]
ztychr [ztychr!~ztychr@unaffiliated/ztychr] has joined ##java [07:21]
imnotfat [imnotfat!5eafea84@gateway/web/freenode/ip.] has joined ##java [07:23]
imnotfat any idea why new java.sql.Time(36000) returns 11 instead of 10? [07:23]
imnotfat sry, i meant "new java.sql.Time(3600*10*1000) (so 10 hours in milliseconds) [07:24]
cheeser show us [07:24]
cheeser Paste the code (and any errors) in a pastebin where we can see it. See ~pastebin for options. Also see ~testcase for good examples as to how to help us help you quickly diagnose and solve problems. [07:24]
ArcherL [ArcherL!~ArcherL@unaffiliated/archerl] has joined ##java [07:26]
imnotfat cheeser, [07:26]
yawkat because it's a shit class [07:27]
yawkat just use LocalTime and transform that to Time [07:27]
imnotfat i cant because i use orm to map to database, and the JDBC driver converts the postgres date into java.sql.time [07:27]
yawkat yes, so do time.toLocalTime [07:27]
deebo hmm, circular dependecies in spring boot app on centos7, but not on ubuntu 18.04 [07:28]
mohsen_1 [mohsen_1!~mohsen@] has joined ##java [07:28]
yawkat oh also, the postgres jdbc driver supports java.time directly i believe [07:29]
yawkat so you may be able to config it to skip java.sql.Time altogether [07:29]
cheeser weird. i get 5 hours using that ... [07:30]
yawkat yes, it's tz dependent :) [07:30]
yawkat java.sql.Time sucks. [07:30]
cheeser ha! that's dumb. :) [07:30]
yawkat well, it's consistent with java.util.Date that way, which is actually an instant [07:31]
yawkat the single-long constructor of java.sql.Time takes an epoch timestamp [07:32]
raztoki [raztoki!~a0sle@unaffiliated/a0sle] has joined ##java [07:36]
headcr4sh [headcr4sh!] has joined ##java [07:38]
headcr4sh [headcr4sh!] has joined ##java [07:40]
conan [conan!] has joined ##java [07:40]
headcr4sh [headcr4sh!] has joined ##java [07:40]
headcr4sh [headcr4sh!] has joined ##java [07:41]
headcr4sh [headcr4sh!] has joined ##java [07:42]
tokam [tokam!~tokam@unaffiliated/tokam] has joined ##java [07:44]
indistylo [indistylo!~aruns_@] has joined ##java [07:47]
Maldivia imnotfat: as yawkat pointed out new Time(10h) is 10h from epocs, and then converted to your local timezone, which apparently is 1h away, thus 11h :D [07:48]
sonOfRa oh dear, ilhami reared its head again? [07:48]
peaceguy [peaceguy!~yu68@unaffiliated/peaceguy] has joined ##java [07:49]
imnotfat yawkat, thanks, that worked. Im still not being able to use localTime directly though, im trying to figure out whether its from the orm library or something else, because i bumped by driver version to 42.2.5 [07:51]
yawkat [07:52]
yawkat yawkat's title: "Using Java 8 Date and Time classes" [07:52]
yawkat your orm has to support it too, though. [07:52]
Maldivia imnotfat: to show it [07:53]
yawkat if thats not possible, using java.sql.Time and converting to LocalTime as much as possible is okay [07:53]
ArcherL [ArcherL!~ArcherL@unaffiliated/archerl] has joined ##java [08:06]
Nicmavr [Nicmavr!~Nicmavr@unaffiliated/nicmavr] has joined ##java [08:06]
conan [conan!] has joined ##java [08:10]
DrowningElysium [DrowningElysium!uid190788@gateway/web/] has joined ##java [08:16]
zeden [zeden!~user@unaffiliated/zeden] has joined ##java [08:16]
zeden [zeden!~user@unaffiliated/zeden] has joined ##java [08:21]
mayurvpatil [mayurvpatil!~mayurvpat@] has joined ##java [08:22]
shan [shan!uid207478@gateway/web/] has joined ##java [08:29]
indistylo [indistylo!~aruns_@] has joined ##java [08:33]
zeden_ [zeden_!~user@unaffiliated/zeden] has joined ##java [08:54]
ron Maldivia: my condolences :) [08:55]
q9929t [q9929t!~Thunderbi@] has joined ##java [08:56]
whaley [whaley!~whaley@] has joined ##java [08:57]
t2mkn [t2mkn!~t2mkn@] has joined ##java [08:58]
yawkat [USN-3949-1] OpenJDK 11 vulnerability "Java applets or applications could be made to expose sensitive information." [09:00]
yawkat i thought java 11 didnt have applets anymore? [09:00]
cheeser it doesn't afaik [09:01]
yawkat i guess they just used the same old message for the security notice then [09:02]
shicks2525 [shicks2525!] has joined ##java [09:06]
steven__ [steven__!] has joined ##java [09:07]
whoever [whoever!~trevor@unaffiliated/whoever] has joined ##java [09:10]
whoever hi all, is there a build in method to see if a list/array has only one entrry one or multiple times ? or would I still need to itterate? [09:13]
Stummi yawkat, it seems to refer this CVE, which affects a range version starting at java 8: [09:13]
Stummi *7 [09:14]
ArcherL [ArcherL!~ArcherL@unaffiliated/archerl] has joined ##java [09:15]
whaley whoever: check the length property of the array or the size() method of a collection and see if it's == to 1 [09:15]
conan [conan!] has joined ##java [09:16]
t2mkn_ [t2mkn_!~t2mkn@] has joined ##java [09:17]
whoever whaley: that would work, but what abou [a,a,a,a,..] [09:17]
whaley whoever: what is [a,a,a,a,..] supposed to represent? [09:17]
vdamewood [vdamewood!~vdamewood@unaffiliated/vdamewood] has joined ##java [09:17]
Stummi whoever, so you want to know if a list contains exactly one distinct item? [09:18]
whoever whaley: the same value at multiple indices [09:18]
whoever Stummi: yes [09:18]
Stummi either:, or add the list into a set and check size [09:19]
whaley whoever: oh sorry, I misread your question. Yes, if you have a collection or an array, you will need to iterate (or convert to a Set, which means implicitly iterating) [09:19]
vinleod [vinleod!~vdamewood@unaffiliated/vdamewood] has joined ##java [09:25]
mluser-home [mluser-home!] has joined ##java [09:27]
regorianer [regorianer!] has joined ##java [09:33]
mohsen_1 arraylist.contains()* [09:34]
mohsen_1 whoever: will tell you if the list contains one or more of the item [09:36]
dmlloyd [dmlloyd!uid331705@redhat/jboss/dmlloyd] has joined ##java [09:36]
whaley [whaley!~whaley@] has joined ##java [09:36]
mayurvpatil [mayurvpatil!~mayurvpat@] has joined ##java [09:38]
whoever whaley: thank you, since i saw .blank and it is simular .emty, I was hoping that there might be a convienience method for what I wanted to do [09:40]
r3m1 how do I String.format("%f", someDouble) so that it is displayed with 3 decimals ? [09:40]
Stummi %.3f [09:40]
r3m1 bonus question; does it rounds the value, truncate ? [09:40]
r3m1 Thx Stummi [09:40]
Maldivia whoever: if list.indexOf(ovj) == list.lastIndexOf(obj) <-- only once (assuming indexOf != -1) [09:41]
jamezp [jamezp!~jamezp@redhat/jboss/jamezp] has joined ##java [09:41]
Stummi tias [09:42]
Stummi r3m1, Try it and see. You learn much more by experimentation than by asking without having even tried. [09:42]
Stummi about your bonus question [09:42]
cheeser whoever: new HashSet(list).size() == 1 [09:42]
cheeser *boom* [09:42]
Maldivia cheeser: -> e.equals(obj)).count() [09:43]
whoever ahhh ya, leave it to cheeser i didn't think of using hashset like that [09:43]
bluezone [bluezone!uid104970@gateway/web/] has joined ##java [09:44]
Maldivia well, if the list only contains the same object, then it's list list.size() [09:45]
[twisti] Maldivia: that seems a LOT worse, performancewise, than any list with a hash backing [09:45]
Maldivia [twisti]: well, there are few different things in the channel now; I was assuming a list say [a,b,c,d,a,e,f] and then wanting to check if a was there 1 or multiple times [09:46]
Maldivia [twisti]: in which case HashSet, distinct, etc wouldn't work without a filter [09:47]
[twisti] i guess its too vaguely defined to make claims like that [09:48]
Maldivia also, in most cases hashCode() and equals() should have similar performance characteristics; unless immutable types with the hash cached [09:49]
nyherba [nyherba!~alureon@unaffiliated/proxa] has joined ##java [09:49]
[twisti] with hash based i meant something that uses hashes to split things into buckets [09:50]
henbruas [henbruas!~henbruas@unaffiliated/henbruas] has joined ##java [09:51]
Maldivia and what list is backed by such ? [09:51]
Addax what's the goal, again? [09:52]
Maldivia don't think anyone know 100% :D [09:52]
[twisti] yes, good point [09:52]
whoever Addax: assuming a list had multiple items that they where all they same item if an iteration was required [09:55]
Maldivia whoever: can the list ONLY have the same item, or can it be [a,b,c] also ? [09:55]
Addax in english? [09:56]
whoever Maldivia: it would be either, with the goal beeing to see if more than one item, where they all the same [09:56]
Maldivia ah ok, you want to know, given a List l, does it only contains one unique item, potentially repeated many times? [09:56]
Addax so you are trying to see if a list containing multiple entries are actually referring to the same entry every time: [a,a,a,a,a] literally [09:57]
Maldivia meaning [a] = true, [a,a,a,a] = true, [a,b] = false [09:57]
Addax right [09:57]
cheeser HashSet ftw! [09:57]
Maldivia if that is the case, then cheeser's solution is by far the easiest :D [09:57]
Addax I'd be stupid about it: if(HashSet<>(list).size()==1) [09:57]
whoever well cheeser already offered up hashset(list).size [09:57]
Addax boom [09:57]
Addax straightforward, easy, faster than some solutions [09:57]
Maldivia I was understanding it first as given List l and Object o, find out if o is 1 or multiple times in l :) [09:58]
mohsen_1 whoever: and just because you're not doing an iteration, doesn't mean an iteration isn't happening under the hood [09:58]
whoever shhh cheeser let the youngin's fight it out :-) [09:58]
cheeser eh? [09:58]
whoever mohsen_1: correct [09:58]
whoever cheeser: they are trying to come up with a 'better'way [09:59]
cheeser unpossible! [09:59]
Addax what's the metric for "better?" [09:59]
cheeser Addax: something *they* came up with instead! :D [10:00]
whoever cheeser: ...they don't know that you wrote java in one night B-) [10:00]
mohsen_1 whoever: complexity analysis can define that [10:00]
whoever Addax: i don't know, what is is ? [10:00]
cheeser whoever: it was over lunch but whatever. [10:00]
Addax whoever: Without a metric for defining "better" you really don't know what the "better" way is, because you don't know what "better" means [10:01]
whoever and i was accounting for potty breaks in that .. damn [10:01]
Addax cheeser's suggestion has the advantage of being a one-liner [10:01]
Rapture [Rapture!] has joined ##java [10:01]
cheeser and probably about as efficient as you're gonna get [10:02]
Addax complexity of his solution is ... 1 (although behind the scenes it's more, but even then, construction of a hashset is pretty bloody efficient, just involved calculating the hash of the object) [10:02]
whoever Addax: but 'better ' is subjective where efficent is objective [10:02]
mohsen_1 haha [10:02]
Addax whoever: so ... we're back to what I asked. What's the metric for efficiency being used? [10:03]
mohsen_1 one metric can be optimized on memory usage [10:03]
mohsen_1 one metric can be `being fast` [10:03]
Addax ... for example, yes [10:03]
mohsen_1 whoever: so define it [10:04]
whoever Addax: well chesser said hashmap and you can't get much more minimal then that, and you and a few others kept talking about it, so I assumed you where deaming up a more efficent way then hashmap(list) without an iteration [10:05]
indistylo [indistylo!~aruns_@] has joined ##java [10:05]
Addax he said hashset, not hashmap [10:05]
Addax and I reiterated that [10:06]
cheeser speaking of iterations... [10:06]
whoever that was a typo, thank you for pointing it out [10:06]
Addax well, you made it more than once :) [10:06]
cheeser it was a Big O' problem... [10:07]
Addax boooo [10:08]
whoever ooh dear cheeser save me from my typos [10:08]
mohsen_1 whoever: complexity analysis [10:09]
mitch0 deer chaser [10:09]
mohsen_1 next [10:09]
mohsen_1 Another satisfied customer. Next! [10:09]
whoever et tu Addax B-) [10:09]
cheeser mitch0: the low budget sequel to the classic movie [10:09]
Addax you keep using words and phrases that don't seem to fit [10:09]
mitch0 ) [10:10]
whoever they fit, its just too early for you [10:10]
Addax possible, but "et tu" is rather famously used to interact with a betrayer, and to my knowledge, I've done nothing to you except try to help [10:11]
Addax so it's a little odd without more context, I guess [10:12]
mluser-home [mluser-home!] has joined ##java [10:13]
whoever Addax: correct but what is the literal translation "and you " [10:14]
Addax into latin? "et tu," of course. [10:16]
ztychr [ztychr!~ztychr@unaffiliated/ztychr] has joined ##java [10:16]
greggerz [greggerz!~greggerz@unaffiliated/greggerz] has joined ##java [10:17]
[twisti] i would say that "et tu" is universally assumed to be a reference to "et tu, brute", indicating you feel betrayed by the person you are adressing [10:20]
jink I always feel betrayed, no matter the language I use. [10:21]
Matthijs [Matthijs!~quassel@unaffiliated/matthijs] has joined ##java [10:22]
Addax nobody tell jink, he'll get his when the time comes, bwaahahahaaha [10:23]
whoever ...ah jink bless his lil ol' hart [10:24]
Addax we'll see his heart in our hands soon, mwwwwwheee hee hee hee hee [10:24]
Addax actually now hopes jink has a long long safe life with no heart-extractions at all, actually [10:25]
Addax for one thing, that sounds painful [10:25]
SirNapkin1334 [SirNapkin1334!~SirNapkin@2601:648:8780:e0:789e:5fe4:b6c8:7357] has joined ##java [10:26]
gregf_ [gregf_!557335c9@gateway/web/freenode/ip.] has joined ##java [10:26]
smecin [smecin!~ypatra@unaffiliated/ypatra] has joined ##java [10:27]
smecin parted the channel: "Leaving" [10:27]
jandresen [jandresen!~jacob@] has joined ##java [10:28]
pd09041999 [pd09041999!~pd0904199@2405:205:e:76ec:b947:d342:39bf:a39c] has joined ##java [10:29]
kicked pd09041999 (Banned: please fix your connection. you're bouncing in and out. this ban will expire after 7d) [10:29]
zeroquake [zeroquake!~textual@2620:1e2:20:4100:d965:17ea:3d84:8bbe] has joined ##java [10:29]
whoever it will be a sequal to the exersist [10:29]
whoever you can rip his hart out with bare hand or use vb code, which would be more interaining and just as painful for jandresen haaahaaahhaa [10:30]
Addax the exorcist already had a sequel [10:30]
zeden_ [zeden_!~user@unaffiliated/zeden] has joined ##java [10:31]
mindCrime [mindCrime!~mindCrime@] has joined ##java [10:32]
whoever it can always have one (or 6 more) and this sequal better not suck like all other movie seequal. make him squal like a pig and fly around violently [10:33]
whoever all right so i cant even get my fingures to correctly spell exorcist [10:33]
whoever ahh, thats better finaly they start to listen to my brain [10:34]
fin_ger [fin_ger!~fin_ger@] has joined ##java [10:34]
wisey [wisey!] has joined ##java [10:36]
plarsen [plarsen!~plarsen@redhat/jboss/pdpc.professional.plarsen] has joined ##java [10:38]
jandresen [jandresen!~jacob@] has joined ##java [10:39]
RedSoxFan07 [RedSoxFan07!] has joined ##java [10:39]
cheeser whoever: speling is not yor thing is it? [10:46]
zeden__ [zeden__!~user@unaffiliated/zeden] has joined ##java [10:47]
Addax or, grammer either! [10:47]
cyberz [cyberz!~cyberz@] has joined ##java [10:48]
freeone3000 Hey, what version of Java introduced SIMD autovectorization for doubles? I see a performance difference for ints in JDK11 but not for doubles. [10:50]
Regon [Regon!~Regon@unaffiliated/regon] has joined ##java [10:51]
rippa [rippa!] has joined ##java [10:54]
tang^ [tang^!~tang^@] has joined ##java [10:59]
surial whoever: cheeser's solution has plenty of downsides. The question, as others seem to have sort of been trying to raise, is what's the parameters and conditions here? [10:59]
surial whoever: for example, if your input is a list with 500,000 unique entries in it, the creation of that hashset is quite pricey; it's not just a full iteration but also a calculation of many hashes, it does NOT exit early (after the first 2 different ones, you can conclude the input is not 'all the same thing'), and adds another ~500k array worth of memory to your heap. [11:00]
surial whoever: it is, undoubtedly, clean and easy to read though. [11:00]
surial whoever: a bigger question might perhaps be why you have this data structure in the first place. Sounds like you should have been using set all along. [11:01]
Addax surial: also note the example data: [a,a,a,a,a] - small list, simple data representations [11:01]
surial the example appeared to have the purpose of illustrating the required behaviour, not to illustrate expected inputs. [11:01]
surial But mostly, for saying a hell of a lot in the past 30 minutes, whoever was real sparse on factuals here. [11:02]
Addax yeah [11:02]
Addax so given the lack of specific data elements, it's safe IMO to assume "normal" bounds on data sizes, and hashset would perform well enough there [11:02]
Addax but yes, one does wonder about the problem domain [11:02]
surial Hmm, I am observing an interesting situation here. If I ran into the situation where I have this need and can't really foresee throwing a huge dataset at it with many different items, but can't _ENTIRELY_ disregard that from ever happening (code has this tendency to evolve and be adapted to new features), I'd just write... [11:04]
surial if (list.isEmpty()) return false; T a = list.get(0); for (T b : list) { if (a == null && b != null) return false; if (!a.equals(b)) return false; } return true; [11:04]
surial And yet, I'm not really disagreeing with you and cheeser's conclusion that the hashset thing is just pragmatically speaking 'better'. [11:05]
surial So I'm not really dogfooding the advice. [11:05]
sunri5e_ [sunri5e_!~sunri5e@unaffiliated/sunri5e] has joined ##java [11:05]
surial possibly if this happened to me I'd be able to say more about the actual problem domain.. and I probably wouldn't run into the situation: "I really need to know if this list contains precisely 1 distinct item, no more, no less" in the first place. [11:05]
cheeser given the homework nature of the question, it's the "right" answer. [11:05]
cheeser otherwise, bloom filters, etc. for more robust solutions [11:06]
surial cheeser: yes, perhaps that's the underlying nature here: It's homeworky so fuck it whatever. The readable thing wins, and without a real life scenario underlying any of it there's no point discussion performance. [11:06]
julius_ [julius_!c2726879@gateway/web/freenode/ip.] has joined ##java [11:06]
julius_ hi [11:06]
cheeser pretty much [11:06]
surial julius_: hello. [11:06]
cheeser it's a single iteration anyway [11:06]
julius_ in a single thread program, how can this active in here: HikariPool-2 - Timeout failure stats (total=10, active=10, idle=0, waiting=0) ever be 10? or does hikari add some kind of async in the mix? [11:07]
zeden__ [zeden__!~user@unaffiliated/zeden] has joined ##java [11:07]
Addax julius_: maybe connections are being released late [11:07]
cheeser you know that hikari launches threads, right? [11:08]
mohsen_1 julius_: that's quite probable [11:08]
cheeser are you properly closing connections? [11:08]
cheeser i'm guessing not [11:08]
surial julius_: or the much simpler explanation: In your thread you ask hikari for a connection.. and then you do that a second time. [11:08]
julius_ but im running con.close() everywhere i open a connection right after usage [11:08]
Addax plus: { Connection conn=getConnection(); /* use connection */ } might "leak" connections until hikari cleans them up [11:08]
Addax try-with-resources [11:08]
Addax Addax, try-with-resources is a way of using resources without having to remember to close them - [11:08]
surial pretty sure hikari does NOT go: "Oh, same thread, I'll give you the same object one more", given that a connection has transactions all that, maybe you wanted 2 simultaneous transactions for some fucked up reason. [11:08]
surial oh, and that. [11:08]
surial julius_: you're runnign con.close()? You fucked up then. [11:09]
surial julius_: you don't call that. [11:09]
cheeser um. yeah, you do. [11:09]
surial julius_: try (Connection con = obtainConnectionFromHikari()) { do shit with the connection } [11:09]
surial that's how you're supposed to do it. [11:09]
progart [progart!~kamee@] has joined ##java [11:09]
cheeser that's one way, sure. [11:09]
surial Connection con = obtainConnection(); do shit with it; con.close(); // This is NOT how you do it. [11:10]
Addax idly notes that that calls con.close()... [11:10]
cheeser arguably the better way but not always possible [11:10]
surial if 'do shit with it' throws an exception or returns early or whatnot, your close won't fire. [11:10]
surial Oh, the pedantic brigade showing up again. [11:10]
Addax ... yes, well, you arrived a while back [11:10]
surial jesus fucking christ. newbie, folks. They need to use ARM, that's easy. If they have Connection as a field they need to do a lot more than 'just call close()' somewhere. [11:10]
surial julius_: ignore the old fogies. Find the places you obtain connection instances. Put them _ALL_ into ARM blocks, and therefore, remove all your close() methods. If you store a connection object in a field anywhere, let us know, you need to do some more effort if you do that (but check if you can just.. not do that, that's generally superior). [11:12]
mohsen_1 cheeser: why are you suggesting not con.close() manually? [11:12]
cheeser i'm ... not? [11:13]
mohsen_1 cheeser: so what's generally wrong with con.close()? [11:13]
julius_ surial: yes ive changed the code to try() {..... lets test that [11:13]
cheeser nothing? [11:13]
surial mohsen_1: read up on ARM. [11:13]
surial mohsen_1: basically? You NEED TO CALL CLOSE. Must. [11:14]
Addax mohsen_1: the problem is that con=getConn(); doSomething(con); con.close()... close might not run, because of exceptions, etc [11:14]
cheeser yes, it's better to use try with resources but it's not always an option and not always a choice. [11:14]
surial mohsen_1: there's no way to do that except in a finally block. which is a shitload of typing and error prone. ARM automates it. It's just syntax sugar and yeah the close() method is invoked. The problem isn't with the notion of invoking close. The problem is the notion of typing 'in.close();' in your source code. [11:14]
surial It implies you might forget. [11:14]
mohsen_1 julius_: put a breakpoint at where you use the connection, and check if a exception is being thrown [11:16]
mohsen_1 you can make sure if the con.close() is being called by debuging line-by-line [11:17]
surial julius_: mohsen_1 doesn't know what he's talking about. [11:18]
surial julius_: Best not listen. [11:18]
cheeser eyes surial [11:18]
surial What's going on right now? The answer is obviously: Protect ALL your attempts to make a connection with ARM. Only if you can't, let us know and we'll take it from there. [11:20]
mohsen_1 julius_: if con.close() is not being called that's the reason hikaripool is having 10 active threads, if it is, then you should check for the internals of hikaripool to see if it creates thread itself [11:20]
surial Is anyone disagreeing with this (well, other than mohsen_1, who virtually always pipes up with advice which is completely wrong but sounds vaguely believable). [11:20]
Addax I don't think anyone is disgreeing with what the assertion, including mohsen_1 [11:20]
cheeser sighs [11:20]
Addax it's just your preferred delivery style that sucks [11:20]
cheeser i've in fact said so TWICE now [11:20]
Addax I think we get it: you can't hear it. But everyone else can, and we're letting you know so you can say "even though I don't hear it, maybe it's there." [11:21]
morrowyn [morrowyn!] has joined ##java [11:23]
julius_ surial: ok ive removed the con.close and replaced it with try(Connection con = dataSource.getConnection(); PreparedStatement pst = con.prepareStatement( ..... )) {... still hikari tells me "connection is not available" almost immediately when the network part of the application starts running [11:24]
cheeser i guess you'll need ot attach that debugger after all? [11:25]
surial julius_: [1] did you do this everywhere, and [2] is recursion going on? [11:25]
julius_ surial: yes.... no more con.close() are found in eclipse and no recursion [11:25]
surial sounds unlikely. Time to debug. [11:25]
julius_ cheeser: yes....just dont know where exactly [11:25]
julius_ the line where hikari closes connections would be a nice start [11:26]
cheeser show us [11:29]
cheeser Paste the code (and any errors) in a pastebin where we can see it. See ~pastebin for options. Also see ~testcase for good examples as to how to help us help you quickly diagnose and solve problems. [11:29]
julius_ ok, i had one method where i used the old try {} and no con.close. that code was added recently [11:29]
julius_ setting hikari to debug showed: WARN 2248 --- [l-2 housekeeper] com.zaxxer.hikari.pool.ProxyLeakTask : Connection leak detection triggered for org.postgresql.jdbc.PgConnection@48a55bf on thread main, stack trace follows [11:29]
julius_ and the stracktrace showed the method [11:30]
julius_ [11:30]
julius_ thats the line for spring / application.config [11:31]
julius_ thx for the help guys [11:31]
cheeser all better? [11:31]
borkr [borkr!] has joined ##java [11:38]
robotcars [robotcars!] has joined ##java [11:38]
r3m1 [r3m1!] has joined ##java [11:40]
julius_ yep [11:41]
julius_ one more con.close() would have solved it [11:41]
julius_ but i see that the try() { way is safer [11:41]
Addax it is [11:43]
hussam [hussam!uid193284@gateway/web/] has joined ##java [11:44]
zeden__ [zeden__!~user@unaffiliated/zeden] has joined ##java [11:48]
zeden [zeden!~user@unaffiliated/zeden] has joined ##java [11:52]
raztoki [raztoki!~a0sle@unaffiliated/a0sle] has joined ##java [11:52]
robotcars i am using which is java/jruby on oracle linux, if I cli `embulk run config.yml` sometimes it will die with a fatal error for JRE, if I run the command immediately a second time it might work? so it 'randomly' fails. writes a hs_error_pid#.log file. can someone guide me on how to evaluate the log file or the issue and trouble shoot what causes the random fatal execution? [11:55]
robotcars robotcars's title: "GitHub - embulk/embulk: Embulk: Pluggable Bulk Data Loader." [11:55]
freeone3000 robotcars: hs_error_pid#.log is a (reduced) memory dump and a native stack trace. You can open it with JVisualVM and see what the memory looks like at the time, but the stacktrace should be fairly legible with any text editor. [11:57]
robotcars i opened it in text editor, no idea what i'm looking for [11:58]
freeone3000 robotcars: The bit that looks like a stacktrace is a stacktrace. It's for all threads, so see which one caught the signal and backtrace from there. [11:58]
freeone3000 You only get these for *native* crashes, so there's a problem in the JVM (unlikely) or some JNI code (very likely) [11:59]
nadir [nadir!uid134094@gateway/web/] has joined ##java [12:01]
robotcars ty, i'm checking out visualvm and looking for jni info [12:01]
wisey [wisey!] has joined ##java [12:02]
millerti [millerti!] has joined ##java [12:03]
robotcars freeone3000, how do I open hs_error.log on visualvm? [12:03]
mbooth robotcars: Open in a text editor, you'll find stack traces [12:05]
nopf [nopf!] has joined ##java [12:07]
veegee [veegee!] has joined ##java [12:08]
Jigsy` [Jigsy`!~Jigsy@unaffiliated/jigsy] has joined ##java [12:10]
srisri [srisri!~srisri@] has joined ##java [12:10]
conan [conan!] has joined ##java [12:12]
indistylo [indistylo!~aruns_@] has joined ##java [12:13]
robotcars # Problematic frame: [12:16]
robotcars # C [] do_lookup_x+0x80 [12:16]
robotcars Current thread (0x00007fa3bcf9d000): JavaThread "0016:task-0000" daemon [_thread_in_native, id=38310, stack(0x00007fa350af4000,0x00007fa350bf5000)] [12:16]
robotcars thread_in_native, is happening in JVM? [12:17]
wisey [wisey!] has joined ##java [12:17]
LKoen [LKoen!] has joined ##java [12:17]
robotcars seems to apply [12:19]
robotcars robotcars's title: "Determine Where the Crash Occurred" [12:19]
sunri5e [sunri5e!~sunri5e@unaffiliated/sunri5e] has joined ##java [12:21]
freeone3000 robotcars: _thread_in_native is a flag showing that the thread in question is in a native frame. it's executing something from ld-linux called do_lookup_x, which is called during so loading as part of dl_fixup [12:26]
regorianer parted the channel: [12:26]
freeone3000 robotcars: Could you do a quick `ldd` over your native dependencies to ensure that all of the dynamic symbols are resolvable? [12:27]
DJ_Dichotomy [DJ_Dichotomy!~DJ_Dichot@] has joined ##java [12:27]
sunri5e [sunri5e!~sunri5e@unaffiliated/sunri5e] has joined ##java [12:31]
robotcars sorry freeone3000, getting tied up with someone in the office. [12:32]
robotcars ill be back [12:32]
tokam [tokam!~tokam@unaffiliated/tokam] has joined ##java [12:34]
dob1 [dob1!~dob1@unaffiliated/dob1] has joined ##java [12:39]
dez [dez!uid92154@fedora/deSouza] has joined ##java [12:50]
Montrose [Montrose!~Montrose@2601:804:202:94de:8d8f:2f09:fa39:1b8] has joined ##java [12:53]
orbyt_ [orbyt_!~orbyt@] has joined ##java [01:02]
conan [conan!~conan@] has joined ##java [01:05]
wisey [wisey!] has joined ##java [01:08]
[rg] [[rg]!] has joined ##java [01:08]
[rg] is this the rule that allows this expression: new array[]{1,2,3} [01:09]
[rg] VariableInitializer: [01:09]
[rg] Expression [01:09]
[rg] ArrayInitializer [01:09]
cheeser don't paste here [01:09]
[rg] only 3 lines [01:09]
cheeser topicsmite [rg] [01:10]
cheeser And the wrath of /TOPIC descended with terrible fury upon [rg]. And all the people marvelled, saying, Behold, we too should read the /TOPIC, lest we be stricken. And all the people read the /TOPIC, and went away edified. [01:10]
cheeser but yes, it would seem so. [01:10]
[rg] lol [01:10]
[rg] kjv bible qoute? [01:10]
cheeser ish. :) [01:10]
[rg] ok, neat [01:11]
[rg] i never cared for the jls but it's starting to become handy [01:11]
[twisti] why though ? [01:12]
[rg] i'm also just now starting to get a feel for java programming, even though I've been using it for the last ~3 years [01:12]
[rg] [twisti]: why what? [01:12]
[twisti] why is it coming in handy ? not to disparage the jls, but how is knowing that section is what allows that expression helping you ? [01:13]
whaley [whaley!] has joined ##java [01:13]
cheeser what better way to learn the syntax? :) [01:13]
[rg] ^^ [01:13]
[rg] sometimes java stuff makes no sense, like lamda's [01:14]
sa02irc [sa02irc!] has joined ##java [01:14]
[rg] also, as my prof qoutes, to know that you can use underscores in numbers [01:14]
[rg] or the identifiers extend to infinity etc [01:14]
cheeser and beyond! [01:15]
[rg] it just makes more sense when you understand why stuff works [01:15]
[rg] and what can be composed from the language, like understanding c type defs and type declarations [01:15]
dob1 on lombok, using delombok in ant tasks how can I specify more "<format value="something" />" = [01:16]
dob1 ? [01:16]
cheeser you're "modern" enough to be using lombok but still using ant? [01:16]
dob1 cheeser, I am using the ant task from gradle [01:16]
cheeser twitches [01:17]
dob1 it's so bad? [01:17]
[rg] the other thing is, gui's which still eludes me, i'm either over complicating things or maybe I have to look at the source [01:17]
waz [waz!~waz@pdpc/supporter/active/waz] has joined ##java [01:19]
dob1 cheeser, right now I am doing this but it's not working [01:22]
dob1 delombok works, the format option is ignored [01:22]
sonOfRa surial: ^ [01:26]
steven__ [steven__!~shicks252@] has joined ##java [01:27]
nyherba [nyherba!~alureon@unaffiliated/proxa] has joined ##java [01:28]
jcnmark6 [jcnmark6!] has joined ##java [01:28]
sonOfRa dob1: one of the lombok author hangs out here, so you might get an answer out of them if you stick around for a bit. They even use ant, too! [01:29]
cheeser shudders [01:31]
wisey [wisey!] has joined ##java [01:32]
progart [progart!~kamee@] has joined ##java [01:32]
progart [progart!~kamee@] has joined ##java [01:33]
surial dob1: but if you run java jar lombok.jar delombok (all that), it does do what you want? [01:33]
[twisti] ant, ouch [01:34]
surial it's not ant, it's calling the delombok ant task from gradle. I think. [01:34]
surial in any case, delomboking is kinda by definition not 'build on rails by convention' maven style. [01:35]
[twisti] can gradle not use maven plugins ? [01:35]
surial presumably. [01:35]
surial is there a delombok maven plugin? [01:35]
[twisti] yes, and i found it to be very good [01:35]
nyherba [nyherba!~alureon@unaffiliated/proxa] has joined ##java [01:35]
surial dob1: Ah well there's one option. [01:35]
surial dob1: You can also just invoke lombok.jar as a java jar to be executed, though passing in all those classpaths can get testy I guess. Perhaps the format thing is just broken.. If you can reproduce this in a build.xml and file it, I'll look at it tomorrow. [01:36]
[twisti] dob1: if that would be helpful, i could dig up our pom.xml, we use the maven lombok plugin to delombok in order to produce full javadocs [01:36]
Addax I was actually kinda impressed by delombok :) [01:36]
indistylo [indistylo!~aruns_@] has joined ##java [01:39]
robotcars freeone3000, when I do ldd, I get 'not a dynamic executable' [01:42]
funeral [funeral!~Funeral@] has joined ##java [01:43]
dob1 surial, it's not a big problem, from command line it works. But I can say that it recognize the format option, for example if I write format(foobar: "something") it doesn't work, I need to use format(value: "something"). the fact is that it seems to be ignoring this "something" [01:48]
i-make-robots [i-make-robots!~dan@] has joined ##java [01:48]
DrowningElysium [DrowningElysium!uid190788@gateway/web/] has joined ##java [01:49]
indistylo [indistylo!~aruns_@] has joined ##java [01:50]
dob1 I tried to use a map too, like format(value: [emptyLines:'blank', generateDelombokComment:'skip']) for example, but no luck [01:50]
LKoen [LKoen!] has joined ##java [01:52]
deebo any ideas how it would be possible for build time to affect run time in spring framework? new checkout, servers A, B and C, jars built on C have circular dependency issues with 100% same code [01:55]
deebo jars built on A or B can be transferred to C and they run fine [01:56]
deebo it's a valid circular dependency issue, but this is just too weird to ignore [01:56]
trafaret1 [trafaret1!~user@] has joined ##java [01:56]
deebo B and C centos with same openjdk version, A is ubuntu with sameish openjdk version [01:56]
trafaret1 hi there [01:56]
twoone [twoone!] has joined ##java [01:59]
Sasazuka [Sasazuka!~Sasazuka@unaffiliated/sasazuka] has joined ##java [02:02]
robotcars freeone3000, continuing to look, I see a number of java/lang/UnsatisfiedLinkError. what could cause these to be unavailable only some of the time? [02:02]
[twisti] different class loaders ? [02:03]
robotcars even if running the failed command again results in successful execution? [02:04]
robotcars not a java developer, just trying to debug something to maybe submit a bug report [02:05]
[twisti] no, that doesnt sound like a class loader issue [02:05]
zquad [zquad!] has joined ##java [02:06]
nyherba [nyherba!~alureon@unaffiliated/proxa] has joined ##java [02:06]
wisey [wisey!] has joined ##java [02:10]
ricky_clarkson robotcars: Missing or incompatible non-Java library. [02:11]
zquad I am creating a webservlet A which extends another B. I need to inject a dependeny I into B. In java i would call super( I ) in the constructor of B. The thing is the dependency is a bean. How do I inject the bean into B? [02:11]
ricky_clarkson E.g., if you're running Java code shipped with a 32-bit native lib, but running it on a 64-bit JVM, or trying to run Java code shipped with a Windows DLL on Linux. [02:12]
[rg] [[rg]!] has joined ##java [02:12]
robotcars ty ricky_clarkson. how would I tell if the app is using 32-bit native libs? [02:14]
freeone3000 robotcars: `file` or `ldd` show this information. [02:16]
sonOfRa If you run ldd on one of the libraries, do the addresses contain *16* hex letters, or *8*? [02:16]
freeone3000 Also, "not a dynamic executable" on your .SO files? You ran it overt the wrong file. [02:16]
sonOfRa oh, yeah. that's not good [02:17]
robotcars 16, /lib64/ (0x00007f0608831000) [02:19]
borkr [borkr!] has joined ##java [02:19]
robotcars yea, sorry I was running ldd on the binary [02:19]
robotcars all the dump files have 1 of 2 problematic frames [02:20]
robotcars or [02:20]
[rg] parted the channel: [02:22]
freeone3000 there we go [02:29]
freeone3000 So you're using 64-bit native libs. You need to be running a 64-bit JVM (It shows up in `java -version` which one you're running). You also need in either java.library.path or LD_PRELOAD [02:31]
robotcars openjdk version "1.8.0_201" [02:32]
robotcars OpenJDK Runtime Environment (build 1.8.0_201-b09) [02:32]
robotcars OpenJDK 64-Bit Server VM (build 25.201-b09, mixed mode) [02:32]
freeone3000 That's 64-bit. [02:33]
freeone3000 Okay, so that aligns. Next up, That's a weird name for that file. [02:33]
freeone3000 Do you know where that file is? [02:33]
t2mkn [t2mkn!~t2mkn@] has joined ##java [02:34]
robotcars yes. i'm thinking that embulks jdbc loader was forcing me to use 11.0, but I installed 17 [02:34]
robotcars was using a symlink to rename the driver and tell it was 11. [02:35]
zquad parted the channel: [02:35]
robotcars just upgraded the app and pointed it to the real driver. and trying again [02:35]
robotcars was a hacky way to get it working before, may be causing my current issue. [02:36]
robotcars now trying this [02:37]
robotcars [SQL Server Native Client 11.0] [02:37]
robotcars Driver=/opt/microsoft/msodbcsql17/lib64/ [02:37]
robotcars embulk seems to only work if I name the driver SQL Server Native Client 11.0 [02:37]
cheeser yeah, so this is heavily in to tech support and should go to the vendor [02:37]
wisey [wisey!] has joined ##java [02:38]
robotcars yea. [02:38]
robotcars still died even with proper driver file, lib64/ [02:38]
robotcars still odd that it works 87% of the time (typically fails 13% loading 100 tables) [02:39]
Sasazuka__ [Sasazuka__!~Sasazuka@unaffiliated/sasazuka] has joined ##java [02:39]
ArcherL [ArcherL!~ArcherL@unaffiliated/archerl] has joined ##java [02:47]
freeone3000 yeah turns out you can't just swap a native depend for some random other dll, issue solved. [02:47]
maryo [maryo!~Maryo@unaffiliated/maryo] has joined ##java [02:48]
maryo [maryo!~Maryo@unaffiliated/maryo] has joined ##java [02:49]
deavmi [deavmi!~deavmi@] has joined ##java [02:52]
whaley [whaley!~whaley@] has joined ##java [02:53]
Anthaas [Anthaas!~Anthaas@unaffiliated/anthaas] has joined ##java [02:55]
kingrodian [kingrodian!~kingrodia@] has joined ##java [02:57]
wisey [wisey!] has joined ##java [03:01]
ArcherL [ArcherL!~ArcherL@unaffiliated/archerl] has joined ##java [03:04]
gelignite [gelignite!] has joined ##java [03:06]
indistylo [indistylo!~aruns_@] has joined ##java [03:07]
Gazooo [Gazooo!~Gazooo@] has joined ##java [03:07]
maryo [maryo!~Maryo@unaffiliated/maryo] has joined ##java [03:10]
ArcherL [ArcherL!~ArcherL@unaffiliated/archerl] has joined ##java [03:11]
paws_ [paws_!uid89121@gateway/web/] has joined ##java [03:14]
orbyt_ [orbyt_!~orbyt@] has joined ##java [03:17]
indistylo [indistylo!~aruns_@] has joined ##java [03:18]
con3 [con3!] has joined ##java [03:18]
ArcherL [ArcherL!~ArcherL@unaffiliated/archerl] has joined ##java [03:18]
kazimuth [kazimuth!~kazimuth@] has joined ##java [03:19]
LtHummus [LtHummus!] has joined ##java [03:20]
ArcherL [ArcherL!~ArcherL@unaffiliated/archerl] has joined ##java [03:22]
progart [progart!~kamee@] has joined ##java [03:23]
wisey [wisey!] has joined ##java [03:25]
steven__ [steven__!] has joined ##java [03:26]
Galactus [Galactus!~Galactus@unaffiliated/galactus] has joined ##java [03:37]
whaley [whaley!~whaley@] has joined ##java [03:46]
nickel8448 [nickel8448!~rahul@2a02:8084:d6be:8300:61f6:29c3:95c5:c1c2] has joined ##java [03:52]
Shoe0nHead [Shoe0nHead!uid204639@gateway/web/] has joined ##java [03:56]
nickel8448 [nickel8448!~rahul@] has joined ##java [03:59]
conan [conan!] has joined ##java [04:03]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [04:07]
leonardoz [leonardoz!b36c0dcc@gateway/web/freenode/ip.] has joined ##java [04:09]
TimMc [TimMc!~timmc@wikipedia/phyzome] has joined ##java [04:12]
TimMc parted the channel: [04:12]
conan [conan!] has joined ##java [04:22]
JD-Robbs [JD-Robbs!~JD-Robbs@] has joined ##java [04:22]
tokam [tokam!~tokam@unaffiliated/tokam] has joined ##java [04:24]
peaceguy_ [peaceguy_!~yu68@unaffiliated/peaceguy] has joined ##java [04:25]
peaceguy_ [peaceguy_!~yu68@unaffiliated/peaceguy] has joined ##java [04:26]
cliluw [cliluw!~cliluw@unaffiliated/cliluw] has joined ##java [04:30]
ricky_clarkson So my hit-and-run diagnosis worked? Nice. I feel like House. [04:43]
cheeser did you insult an intern or make a sexist comment at one of the "lady doctors" ? [04:43]
nonconvergent [nonconvergent!c72f2503@gateway/web/freenode/ip.] has joined ##java [04:46]
ricky_clarkson I am not legally permitted to disclose that operation. [04:46]
immibis [immibis!] has joined ##java [04:47]
ricky_clarkson Holy crap Guice is bad at error messages (or I can't read them). [04:47]
cheeser ah, pending litigation. the bane every great soul. [04:47]
leonardoz_ [leonardoz_!b36c0dcc@gateway/web/freenode/ip.] has joined ##java [04:56]
leonardoz parted the channel: [05:04]
leonardoz [leonardoz!b36c0dcc@gateway/web/freenode/ip.] has joined ##java [05:04]
steven__ [steven__!] has joined ##java [05:05]
t2mkn [t2mkn!~t2mkn@] has joined ##java [05:07]
indistylo [indistylo!~aruns_@] has joined ##java [05:11]
arkadio [arkadio!wvvs@gateway/shell/panicbnc/x-jnmnxjnfgcftlxgv] has joined ##java [05:39]
ashka [ashka!~postmaste@pdpc/supporter/active/ashka] has joined ##java [05:39]
indistylo [indistylo!~aruns_@] has joined ##java [05:41]
EgonX [EgonX!] has joined ##java [05:45]
LKoen [LKoen!] has joined ##java [05:51]
zulutango [zulutango!] has joined ##java [05:52]
iam730 [iam730!] has joined ##java [05:54]
ogradyd [ogradyd!~Thunderbi@2a02:8070:88bf:9df0::17f] has joined ##java [05:55]
jamezp [jamezp!~jamezp@redhat/jboss/jamezp] has joined ##java [05:56]
woof_woof [woof_woof!] has joined ##java [06:12]
woof_woof Hello, I need to interact with a child process that is designed around unix pipes (man 2 pipe, for what I mean -- not stdout / stdin). They are supported by both Windows and Linux. I'm hoping I can do this somehow with plain Java without having to write JNI, though at the moment I'm failing to see a way through it. Any suggestions would be appreciated. [06:16]
SirNapkin1334 [SirNapkin1334!~SirNapkin@2601:648:8780:e0:7cc7:8c96:e814:ad57] has joined ##java [06:17]
ghorg [ghorg!] has joined ##java [06:18]
wisey [wisey!] has joined ##java [06:20]
con3 [con3!] has joined ##java [06:23]
enzogeek [enzogeek!~enzo4@] has joined ##java [06:26]
Viciouss [Viciouss!~viciouss@unaffiliated/viciouss] has joined ##java [06:33]
freeone3000 nothing in java, sorry. somebody esle may have written it already. [06:34]
indistylo [indistylo!~aruns_@] has joined ##java [06:42]
Nicmavr [Nicmavr!~Nicmavr@unaffiliated/nicmavr] has joined ##java [06:46]
wisey [wisey!] has joined ##java [06:52]
indistylo [indistylo!~aruns_@] has joined ##java [07:03]
zulutango [zulutango!] has joined ##java [07:03]
vdamewood [vdamewood!~vdamewood@unaffiliated/vdamewood] has joined ##java [07:05]
dez [dez!uid92154@fedora/deSouza] has joined ##java [07:08]
waz [waz!~waz@pdpc/supporter/active/waz] has joined ##java [07:09]
magyar [magyar!~magyar@unaffiliated/magyar] has joined ##java [07:12]
wisey [wisey!] has joined ##java [07:20]
woof_woof Thanks. [07:20]
srisri [srisri!] has joined ##java [07:23]
nyherba [nyherba!~alureon@unaffiliated/proxa] has joined ##java [07:24]
wisey [wisey!] has joined ##java [07:36]
indistylo [indistylo!~aruns_@] has joined ##java [07:43]
whaley [whaley!] has joined ##java [07:46]
wisey [wisey!] has joined ##java [07:58]
dj_pi [dj_pi!] has joined ##java [08:02]
Jantz [Jantz!~IceChat9@2407:7000:8d04:100:5d6f:457b:dbb3:221d] has joined ##java [08:07]
con3 [con3!] has joined ##java [08:11]
Kundry_Wag [Kundry_Wag!] has joined ##java [08:14]
nyherba [nyherba!~alureon@unaffiliated/proxa] has joined ##java [08:24]
erg0s1 [erg0s1!~erg0s1@] has joined ##java [08:24]
indistylo [indistylo!~aruns_@] has joined ##java [08:24]
erg0s1 [erg0s1!~erg0s1@] has joined ##java [08:25]
yawkat [yawkat!] has joined ##java [08:25]
erg0s1 [erg0s1!~erg0s1@] has joined ##java [08:26]
Kundry_Wag [Kundry_Wag!] has joined ##java [08:27]
Lindseaa [Lindseaa!~Lindseaa@] has joined ##java [08:27]
shicks2525 [shicks2525!] has joined ##java [08:30]
waz [waz!~waz@pdpc/supporter/active/waz] has joined ##java [08:31]
conan [conan!] has joined ##java [08:40]
r4m1 [r4m1!] has joined ##java [08:46]
wisey [wisey!] has joined ##java [08:47]
ZDisorder [ZDisorder!~shiranpur@unaffiliated/shiranpuri] has joined ##java [08:53]
cpt-oblivious [cpt-oblivious!~quassel@freebsd/user/cpt-oblivious] has joined ##java [08:53]
sunrunner20_ [sunrunner20_!~sunrunner@unaffiliated/sunrunner20] has joined ##java [08:53]
cheets_ [cheets_!sid201914@gateway/web/] has joined ##java [08:55]
DiabloD3 [DiabloD3!] has joined ##java [08:55]
peltre_ [peltre_!sid268329@gateway/web/] has joined ##java [08:55]
sonOfRa_ [sonOfRa_!sonOfRa@unaffiliated/sonofra] has joined ##java [08:55]
DemonWav_ [DemonWav_!~DemonWav@unaffiliated/demonwav] has joined ##java [08:56]
sud0 [sud0!~Death@hackspaceuy/member/sud0] has joined ##java [08:57]
omonk_ [omonk_!~omonk@unaffiliated/omonk] has joined ##java [08:57]
rorx_ [rorx_!] has joined ##java [08:58]
Ring0` [Ring0`!~ringo@unaffiliated/ring0/x-8667941] has joined ##java [08:58]
iGeek [iGeek!JavaGeek@unaffiliated/javageek] has joined ##java [09:00]
mundus2018 [mundus2018!~mundus201@unaffiliated/mundus2018] has joined ##java [09:01]
cyth [cyth!~cythrawll@unaffiliated/cythrawll] has joined ##java [09:02]
Nightwing52 [Nightwing52!] has joined ##java [09:02]
polyrob_ [polyrob_!~rob@unaffiliated/mickn] has joined ##java [09:02]
ket [ket!~jil@2607:f298:6:a016::c10:cabe] has joined ##java [09:03]
Fairy [Fairy!~Fairy@unaffiliated/fairy] has joined ##java [09:03]
Kundry_Wag [Kundry_Wag!] has joined ##java [09:04]
indistylo [indistylo!~aruns_@] has joined ##java [09:05]
Kundry_Wag [Kundry_Wag!] has joined ##java [09:06]
Deeewayne [Deeewayne!~dwayne@2605:a601:a803:7800:ffaf:2fa4:84dc:10e4] has joined ##java [09:08]
rruizt [rruizt!] has joined ##java [09:08]
acetakwas [acetakwas!~acetakwas@] has joined ##java [09:08]
merkazu [merkazu!sid148003@gateway/web/] has joined ##java [09:08]
pppingme [pppingme!~pppingme@unaffiliated/pppingme] has joined ##java [09:09]
Raptors [Raptors!Raptors@2600:3c01:e001:391c::100] has joined ##java [09:09]
Nightwing52 [Nightwing52!] has joined ##java [09:10]
wisey [wisey!] has joined ##java [09:27]
dtnsb [dtnsb!~parker@] has joined ##java [09:32]
DTZUZO [DTZUZO!] has joined ##java [09:33]
zeden [zeden!~user@unaffiliated/zeden] has joined ##java [09:40]
forgottenone [forgottenone!~forgotten@] has joined ##java [09:44]
wisey [wisey!] has joined ##java [09:49]
RedSoxFan07 [RedSoxFan07!] has joined ##java [10:07]
indistylo [indistylo!~aruns_@] has joined ##java [10:07]
waz [waz!~waz@pdpc/supporter/active/waz] has joined ##java [10:12]
thebope [thebope!~thebope@pdpc/supporter/student/thebope] has joined ##java [10:14]
Shio_ [Shio_!] has joined ##java [10:16]
KeyJoo [KeyJoo!~KeyJoo@] has joined ##java [10:20]
Goplat [Goplat!~Goplat@reactos/developer/Goplat] has joined ##java [10:21]
Kundry_Wag [Kundry_Wag!] has joined ##java [10:25]
Montrose_ [Montrose_!~Montrose@] has joined ##java [10:27]
pioto [pioto!~pioto@unaffiliated/pioto] has joined ##java [10:28]
Shio_ [Shio_!] has joined ##java [10:37]
DTZUZO [DTZUZO!] has joined ##java [10:40]
Kundry_Wag [Kundry_Wag!] has joined ##java [10:44]
Kundry_Wag [Kundry_Wag!] has joined ##java [10:45]
ertiportline [ertiportline!~ertiportl@unaffiliated/ertiportline] has joined ##java [10:54]
nyherba [nyherba!~alureon@unaffiliated/proxa] has joined ##java [10:58]
dez [dez!uid92154@fedora/deSouza] has joined ##java [11:00]
indistylo [indistylo!~aruns_@] has joined ##java [11:05]
t2mkn [t2mkn!~t2mkn@] has joined ##java [11:08]
RoriconKnight [RoriconKnight!~RoriconKn@] has joined ##java [11:28]
whaley [whaley!] has joined ##java [11:31]
VegetarianFalcon [VegetarianFalcon!uid258908@gateway/web/] has joined ##java [11:36]
nyherba [nyherba!~alureon@unaffiliated/proxa] has joined ##java [11:37]
whaley [whaley!] has joined ##java [11:48]
veegee_ [veegee_!veegee@gateway/vpn/privateinternetaccess/veegee] has joined ##java [11:51]
veegee [veegee!veegee@gateway/vpn/privateinternetaccess/veegee] has joined ##java [11:54]
indistylo [indistylo!~aruns_@] has joined ##java [11:55]
maryo [maryo!~Maryo@unaffiliated/maryo] has joined ##java [11:56]