Info

Login

Channels

APIs

Credits

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

« 2019-03-24

2019-03-25

2019-03-26 »

Nick Message Date
amosbird hmm, java 11 also breaks android sdkmanager [12:01]
Jantz [Jantz!~IceChat9@2407:7000:8d04:100:e4a8:19f:6a50:e3ec] has joined ##java [12:02]
Jantz [Jantz!~IceChat9@2407:7000:8d04:100:e4a8:19f:6a50:e3ec] has joined ##java [12:11]
[rg] parted the channel: [12:12]
t2mkn [t2mkn!~t2mkn@43.226.3.173] has joined ##java [12:20]
n35xdxb0_ [n35xdxb0_!~n35xdxb0@cpc130684-camd16-2-0-cust706.know.cable.virginm.net] has joined ##java [12:20]
chonkin parted the channel: [12:30]
cheeser android isn't java so that's ok. [12:30]
Crash1hd [Crash1hd!~Crash1hd@unaffiliated/crash1hd] has joined ##java [12:30]
n35xdxb0_ [n35xdxb0_!~n35xdxb0@cpc130684-camd16-2-0-cust706.know.cable.virginm.net] has joined ##java [12:38]
immibis [immibis!~immibis@125-238-72-168-fibre.sparkbb.co.nz] has joined ##java [12:40]
AMcBain [AMcBain!~Art@047-006-242-094.res.spectrum.com] has joined ##java [12:54]
Fossfile [Fossfile!~Fossfile@bzq-109-66-31-222.red.bezeqint.net] has joined ##java [12:56]
t2mkn [t2mkn!~t2mkn@43.226.3.173] has joined ##java [01:02]
smecin [smecin!~ypatra@unaffiliated/ypatra] has joined ##java [01:25]
g00s [g00s!~g00s@unaffiliated/g00s] has joined ##java [01:36]
rajrajraj [rajrajraj!uid72176@gateway/web/irccloud.com/x-qrnosxwejdowzkyn] has joined ##java [01:38]
CombatVet [CombatVet!~CombatVet@gateway/tor-sasl/combatvet] has joined ##java [01:40]
Crash1hd [Crash1hd!~Crash1hd@unaffiliated/crash1hd] has joined ##java [01:47]
CombatVet [CombatVet!~CombatVet@gateway/tor-sasl/combatvet] has joined ##java [01:55]
xeno [xeno!~xeno@unaffiliated/xeno] has joined ##java [02:16]
duckpuppy [duckpuppy!~duckpuppy@h243.8.30.71.dynamic.ip.windstream.net] has joined ##java [02:17]
learningc [learningc!~learningc@mti-37-145.tm.net.my] has joined ##java [02:25]
learningc [learningc!~learningc@mti-37-145.tm.net.my] has joined ##java [02:27]
untrck [untrck!uid353408@gateway/web/irccloud.com/x-ytdkvzljohnghtkm] has joined ##java [02:29]
ogradyd [ogradyd!~Thunderbi@2a02:8070:88bf:9df0::b68] has joined ##java [02:32]
forgottenone [forgottenone!~forgotten@176.88.97.248] has joined ##java [02:43]
SmearedBeard [SmearedBeard!~SmearedBe@unaffiliated/smearedbeard] has joined ##java [02:52]
puppy_za [puppy_za!uid277586@gateway/web/irccloud.com/x-piqagpjoqklosdmb] has joined ##java [02:52]
Smeared_Beard [Smeared_Beard!~SmearedBe@unaffiliated/smearedbeard] has joined ##java [02:58]
learningc [learningc!~learningc@mti-37-145.tm.net.my] has joined ##java [03:06]
learningc [learningc!~learningc@mti-37-145.tm.net.my] has joined ##java [03:07]
CombatVet [CombatVet!~CombatVet@gateway/tor-sasl/combatvet] has joined ##java [03:07]
learningc [learningc!~learningc@mti-37-145.tm.net.my] has joined ##java [03:08]
learningc [learningc!~learningc@mti-37-145.tm.net.my] has joined ##java [03:10]
learningc [learningc!~learningc@mti-37-145.tm.net.my] has joined ##java [03:11]
learningc [learningc!~learningc@mti-37-145.tm.net.my] has joined ##java [03:15]
learningc [learningc!~learningc@mti-37-145.tm.net.my] has joined ##java [03:18]
learningc [learningc!~learningc@mti-37-145.tm.net.my] has joined ##java [03:20]
nickel8448 [nickel8448!~rahul@45.56.154.157] has joined ##java [03:20]
OnceMe [OnceMe!~OnceMe@unaffiliated/onceme] has joined ##java [03:21]
VegetarianFalcon [VegetarianFalcon!uid258908@gateway/web/irccloud.com/x-qsjdcribkchszbbn] has joined ##java [03:23]
rohdef [rohdef!~rohdef@90.184.72.135.1.fullrate.ninja] has joined ##java [03:28]
palasso [palasso!~palasso@unaffiliated/palasso] has joined ##java [03:38]
Hanii [Hanii!~Hanii@2a00:23c5:c587:a800:8448:9865:67b6:2ceb] has joined ##java [03:40]
progart [progart!~kamee@5.77.254.89] has joined ##java [03:43]
karab44 [karab44!~karab44@unaffiliated/karab44] has joined ##java [03:45]
satifant [satifant!~sati@unaffiliated/satifant] has joined ##java [03:48]
learningc [learningc!~learningc@mti-37-145.tm.net.my] has joined ##java [03:59]
Chuguniy [Chuguniy!~Chuguniy@80.232.218.96] has joined ##java [04:10]
bzlotnik [bzlotnik!bzlotnik@nat/redhat/x-ujrtgksbcvenfsjv] has joined ##java [04:13]
very_sneaky [very_sneaky!~very_snea@221.121.132.39] has joined ##java [04:14]
kernel-sanders [kernel-sanders!~rts-sande@185.60.252.150] has joined ##java [04:16]
Matthijs [Matthijs!~quassel@unaffiliated/matthijs] has joined ##java [04:19]
esro [esro!~esro@user119-167.otvarta.com.pl] has joined ##java [04:33]
esro [esro!~esro@user119-167.otvarta.com.pl] has joined ##java [04:34]
acidjnk [acidjnk!~acid@mue-88-130-58-215.dsl.tropolys.de] has joined ##java [04:36]
sa02irc [sa02irc!~sa02irc@155-079-043-212.ip-addr.inexio.net] has joined ##java [04:40]
beStKodErEveR [beStKodErEveR!~dannyD@94.234.40.17] has joined ##java [04:47]
nindustr1 [nindustr1!~nindustri@unaffiliated/nindustries] has joined ##java [04:47]
CombatVet [CombatVet!~CombatVet@gateway/tor-sasl/combatvet] has joined ##java [04:50]
bnyio [bnyio!~bnyio@alcatraz.open-xchange.com] has joined ##java [04:53]
magz [magz!~magz@68-168-184-223.fttp.usinternet.com] has joined ##java [05:01]
themsay [themsay!~themsay@149.254.234.86] has joined ##java [05:09]
nindustries Hi, will DigestUtils.sha256Hex((new URL("....10GB.file.....")).openStream()); be loaded onto memory completely? [05:23]
nindustries in other words, does DigestUtils do streaming or does it load the complete file into memory [05:25]
Maldivia well, I would read the doc for DigestUtils to see what it says... [05:26]
Maldivia but I would assime it doesn't [05:26]
Maldivia or rather, I would assume it streams and doesn't store all in mem :D [05:26]
yawkat javadoc digestutils [05:27]
yawkat I have no documentation for digestutils [05:27]
Maldivia (I'm assuming apache commons codec) [05:28]
sbeex [sbeex!~sbeex@46.140.90.107] has joined ##java [05:28]
yawkat TIL that maven poms can have a logo tag [05:29]
Maldivia yawkat: time to put on your site ? :D [05:29]
yawkat thats why im looking :D [05:29]
Diablo-D3 .... what?! [05:29]
learningc [learningc!~learningc@mti-37-145.tm.net.my] has joined ##java [05:29]
sbeex [Flyway] Hi, do you know how I could log some statements during execution of a JavaMigration script ? It's the first time I have to deal with it and I would like to print some statements. Thx in advance [05:29]
yawkat sbeex: same as anywhere else? [05:30]
sbeex sout do not print anything [05:30]
somazero [somazero!~somazero@2600:8805:100:a00:9efc:9bd4:d93:f3af] has joined ##java [05:30]
yawkat hm unfortunately no project has a logo tag... [05:31]
Maldivia nindustries: in your case: https://github.com/apache/commons-codec/blob/master/src/main/java/org/apache/commons/codec/digest/DigestUtils.java#L1223 [05:31]
Maldivia Maldivia's title: "commons-codec/DigestUtils.java at master apache/commons-codec GitHub" [05:31]
learningc [learningc!~learningc@mti-37-145.tm.net.my] has joined ##java [05:31]
Maldivia nindustries: assuming apache commons codec, it reads the InputStream in chunks (as expected), and updates the digest [05:31]
nindustries aha! thanks Maldivia [05:31]
adder` [adder`!~adder@gateway/tor-sasl/adder] has joined ##java [05:38]
togo [togo!~togo@2a01:5c0:1a:c171:3ee7:9c4a:6828:3ea8] has joined ##java [05:39]
waz [waz!~waz@pdpc/supporter/active/waz] has joined ##java [05:41]
Brilpikk3wyn [Brilpikk3wyn!~Segfault0@unaffiliated/segfault0x40] has joined ##java [05:43]
bnyio [bnyio!~bnyio@alcatraz.open-xchange.com] has joined ##java [05:45]
SmearedBeard [SmearedBeard!~SmearedBe@unaffiliated/smearedbeard] has joined ##java [05:46]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined ##java [05:50]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [06:00]
OnceMe how can I find in page content, <script type="text/javascript">some input from user</script> and escape special chars "some input from user"? [06:09]
bendem is there some consistent cross platform way to reserve an unused port at application start so that it can be used later on without any risk of it having been taken by another program? [06:10]
Diablo-D3 bendem: yeah, use it. [06:10]
bendem I have been trying a few options, but I always end up with a port that's been taken at some point [06:10]
Diablo-D3 also, stop using common ports [06:10]
bendem Diablo-D3, it sometimes gets used between the time I check I can bind to it and the time I bind to it [06:10]
bendem which is literally a few ms [06:11]
Diablo-D3 that seems unlikely that you're cycling through random ports that fast [06:11]
kegster [kegster!~kegster@unaffiliated/kegster] has joined ##java [06:11]
bendem let me show what I tried [06:11]
sbeex haha ok regarding flyway... in order to get the things to execute you have to pay a license... hmm [06:12]
bendem https://paste.gg/p/bendem/9bd987393f694cf0955f3db8010c0a8f [06:13]
bendem bendem's title: "1.java by bendem paste.gg" [06:13]
bendem Diablo-D3, ^ [06:13]
bendem sbeex, not for the community edition [06:13]
Diablo-D3 bendem: because you're not quite doing it right [06:14]
deebo we've used springs SocketUtils and new ServerSocket(0).getport just fine [06:15]
bendem to provide more context, the java app checks for an available port and then passes it to another process to bind to that port [06:15]
sbeex bendem: what do you mean ? I can't see it with the community edition afaik [06:15]
deebo no problems in a busy CI server running tests on random ports [06:15]
Diablo-D3 bendem: yeah, dont do that [06:15]
Diablo-D3 socket = new ServerSocket(0); and then dont close it. [06:15]
bendem Diablo-D3, then the application I start can't bind to that port [06:15]
Diablo-D3 I think you have your logic in reverse [06:16]
Diablo-D3 the thing that needs to open the socket should _open the socket_ [06:16]
bendem no can do, the thing I'm starting needs the port as a parameter [06:16]
Diablo-D3 from what I can tell, the thing that doesnt need to open it, opens it, sees what port that is, and then tells other app to open it on that port [06:16]
Diablo-D3 so, open, record, close, elsewhere, open, cant open [06:17]
esro [esro!~esro@user119-167.otvarta.com.pl] has joined ##java [06:17]
bendem there is no way to tell that application to choose a unused port [06:17]
kegster [kegster!~kegster@unaffiliated/kegster] has joined ##java [06:18]
adder [adder!~adder@gateway/tor-sasl/adder] has joined ##java [06:18]
yawkat i dont believe this is possible cross platform [06:18]
Diablo-D3 lets widen the angle a bit [06:18]
Diablo-D3 generally, on any OS, including windows, you have two rules [06:18]
Diablo-D3 dont select a port above 10000, apps that open transient connections use lots of space here [06:19]
Diablo-D3 dont select a port below 1024 due to *nix security rules (and NT mostly enforces it too due to bsd sockets) [06:19]
Diablo-D3 without knowing anything about your app, choose a port that is between the two, and stick with it [06:19]
bendem ok, let's go the other way around [06:20]
Diablo-D3 Windows and OSX both have complex behavior on trying to open a port that was just open when its above 10000 (to prevent trivial impersonation attacks that exploit TCP weirdness) [06:20]
bendem I want to start a postgresql embedded instance in my tests, I'm getting clashes with the current method (2.java in the paste). [06:20]
OnceMe how can I find in page content, <script type="text/javascript">some input from user</script> and escape special chars "some input from user"? [06:20]
bendem the test suites start a postgresql instance per test (about 100 different ones) and I generally have one or two clashes if I have two builds in // [06:21]
bendem the test suites are themselves parallelised, so I can have up to 8 database instances trying to start at the same time [06:22]
Diablo-D3 maybe Im wrong, but doesnt postgresql embedded just use postgres.start(hostname, port, etc)? [06:23]
bendem yes, and that's that port parameter that causes trouble [06:23]
Diablo-D3 so keep trying start until it returns a started instance [06:24]
bendem there is no way to know [06:24]
Diablo-D3 yes, there isnt [06:24]
Diablo-D3 literally keep trying until it opens successfully [06:24]
Diablo-D3 increment, try again [06:24]
Diablo-D3 and then when successful, return that to the test that needs to call pg [06:25]
Diablo-D3 your flow of communication is simply backwards [06:25]
Diablo-D3 pg needs to tell test what port it has, not test tells pg what port to use [06:25]
Addax OnceMe: jsoup can get you bits from an HTML DOM [06:28]
kegster [kegster!~kegster@unaffiliated/kegster] has joined ##java [06:33]
untrck [untrck!uid353408@gateway/web/irccloud.com/x-niuszymoeumiewmt] has joined ##java [06:39]
User_ [User_!~learningc@mti-37-145.tm.net.my] has joined ##java [06:43]
surial bendem: you're firing up an entire postmaster -per test-? Holy cow. [06:46]
bendem surial, yup [06:46]
bendem it's actually pretty fast (< 2 seconds), the slow part is spring, not postgresql [06:46]
Addax bendem: ... why per test? [06:46]
bendem because I can [06:47]
Addax But... spring would be a once per jvm thing too, or should be [06:47]
bendem and it's not per test, it's per test suite, generally has 4-8 tests in a suite [06:47]
yawkat for integration tests, why not [06:47]
surial bendem: I don't have real answers so I'm going to try to appear useful by giving you answers to different questions. Feel free to tell me to shut up already if I'm going over ground you covered long ago... [06:47]
bendem Addax, no, because if I rebuild the spring context in the same fork, memory leaks and the tests OOM [06:47]
surial bendem: [1] can't you just create an entirely new DB every time? Also, I believe the postgres-ng thingie (different, external JDBC driver for postgres) has a full reser thing going on... [06:48]
surial bendem: [2] Sounds like you are already doing it, but I've programmed my webserver to hit a special magic URL which tells any already running webserver there to pack it up, then it tries to open the port for a while every quarter second until it's there, then it starts. (this is obv. for dev, so I can just start the server without having to bother with hard-terminating the old one)... a similar schtick could work here, no? [06:49]
deavmiLaptop [deavmiLaptop!~deavmi@165.0.49.2] has joined ##java [06:49]
surial Diablo-D3++ huh, wow, that 'stop opening a port that was just closed' trick, never heard of it. I run my dev servers below 10k, never knew 10k was a magic border of sorts. [06:50]
surial diablo-d3 has a karma level of 12, surial [06:50]
bendem you are all cute. I understand that the current way is not efficient, we have plans to rework it in the future, yes we thought of different solutions, yes, they are nice ideas, sure it would be nice and faster. BUT, we already have a solution that works, the slow part is not postgresql so no it's not on the top of the todo list, budgets, pressing matters, the classic problems [06:51]
Addax bendem ++ [06:52]
Addax bendem has a karma level of 50, Addax [06:52]
Addax dismissive yet accurate, I like it :) [06:52]
surial Hey, bendem called me cute. I count it as a win! [06:52]
bendem currently, I want to fix the port binding problem because THAT is the problem at hand, I would love to rework the whole thing, but budgets [06:52]
conan [conan!~conan@mdproctor.plus.com] has joined ##java [06:53]
bendem I'm looking at Diablo-D3's idea to start the whole postmaster multiple time until it actually started correctly, maybe I'll look at creating new databases inside the same postmaster if it's easy [06:53]
surial bendem: you said strategy #2 in https://paste.gg/p/bendem/9bd987393f694cf0955f3db8010c0a8f basically doesn't do it: It tells you a port is free when it is not. [06:54]
surial surial's title: "1.java by bendem paste.gg" [06:54]
surial bendem: right? [06:54]
progart [progart!~kamee@46.241.157.26] has joined ##java [06:54]
bendem surial, my guess is that two suites find the same available port [06:54]
surial oh, you're running em in parallel? [06:55]
surial except, PORT is no doubt an AtomicInteger? [06:55]
bendem yes, as I said, there can be up to 8 postgresql instances trying to start [06:55]
bendem yes, but they start in different forks, not threads [06:55]
surial assuming it's the same AtomicInteger instance (maube it is not; various test frameworks intentionally attempt to...) right, that. [06:55]
yawkat bendem: the OS should not immediately reassign a port [06:55]
surial trivial plan: init the PORT variable with: 1050+rnd.nextInt(8000) [06:56]
yawkat (assuming you use the serversocket trick) [06:56]
bendem yawkat, that was my hope when I wrote the original port choosing, but I still get clashes [06:56]
bendem surial, why did I not think of that... [06:56]
surial final AtomicInteger port = new AtomicInteger(1050 + rnd.nextInt(8000)); // sidenote: Shouldn't mutable final things be lower-cased? [06:56]
bendem hits head against desk [06:56]
surial See, I'm cute AND smart! [06:57]
Diablo-D3 wait, you were trying to start these in parallel? [07:00]
Diablo-D3 no wonder its not working [07:00]
Diablo-D3 you're searching the space the same way at the same time [07:00]
bendem yeah, I know it's dumb [07:00]
kupi [kupi!uid212005@gateway/web/irccloud.com/x-jfqjtegypojmeznb] has joined ##java [07:01]
surial I love how dice rolling comes up in situations like this. See also the algorithm used to solve packet clashes on ethernet. [07:01]
Diablo-D3 the fact the internet *even works* is amazing [07:02]
conan [conan!~conan@mdproctor.plus.com] has joined ##java [07:03]
Addax jep 8220715 [07:04]
Addax 'JEP draft: Add detailed message to NullPointerException describing what is null' can be found at http://openjdk.java.net/jeps/8220715 [07:04]
bendem heh [07:05]
yawkat fucking finally [07:06]
Candle There was already a "fix" for this out there! https://blog.goeswhere.com/2011/06/java-stacktraces-straw-man/ [07:11]
conan [conan!~conan@mdproctor.plus.com] has joined ##java [07:15]
yawkat [yawkat!~yawkat@cats.coffee] has joined ##java [07:27]
mr_lou [mr_lou!~misthalos@077213097222.dynamic.telenor.dk] has joined ##java [07:38]
Faux [Faux!~Faux@fau.xxx] has joined ##java [07:52]
Secret-Fire [Secret-Fire!~Secret-Fi@2601:1c1:4201:458c:5948:2dc0:6ebd:db14] has joined ##java [07:57]
deavmiLaptop [deavmiLaptop!~deavmi@165.0.49.2] has joined ##java [08:04]
zeden [zeden!~user@unaffiliated/zeden] has joined ##java [08:07]
rohdef [rohdef!~rohdef@90.184.72.135.1.fullrate.ninja] has joined ##java [08:09]
gbobby [gbobby!~raltnoede@LINBIT/gbobby] has joined ##java [08:13]
bendem anyone with access to the openjdk bug tracker? [08:16]
tristianc [tristianc!~tristianc@pool-108-51-126-82.washdc.fios.verizon.net] has joined ##java [08:16]
bendem this bug is caused by the use of removed dependencies (jaxb and such). When they are added as maven dependencies, the NPE goes away https://bugs.openjdk.java.net/browse/JDK-8216202 [08:17]
bendem bendem's title: "[JDK-8216202] NullPointerException in JavaCompiler.readSourceFile - Java Bug System" [08:17]
bendem oh nvm, it's actually mentionned in the report [08:18]
bendem goes back to his corner [08:18]
progart [progart!~kamee@46.241.157.26] has joined ##java [08:21]
progart [progart!~kamee@46.241.157.26] has joined ##java [08:22]
OnceMe how can I get content of this: random stuff <tag>blabla func()....</tag> I want to get blabla func().... [08:23]
OnceMe basically whats inside tag [08:23]
Addax jsoup [08:24]
t2mkn [t2mkn!~t2mkn@43.226.3.173] has joined ##java [08:24]
Addax I already mentioned this to you [08:25]
surial Addax: well, maybe the landscape changed and between now and before entirely new HTML parsing libraries have been released! [08:26]
surial OnceMe: .. it's still jsoup. And the answer will also be jsoup tomorrow and even next year. [08:26]
Addax since 6:30 this morning, local time? Good point. [08:27]
tachyon_ [tachyon_!5bc768f4@gateway/web/cgi-irc/kiwiirc.com/ip.91.199.104.244] has joined ##java [08:27]
Addax surial ++ [08:27]
Addax surial has a karma level of 511, Addax [08:27]
Nicmavr [Nicmavr!~Nicmavr@unaffiliated/nicmavr] has joined ##java [08:31]
progart [progart!~kamee@46.241.157.26] has joined ##java [08:32]
secret-fire__ [secret-fire__!~Secret-Fi@2601:1c1:4201:458c:fd19:9f2c:8839:264b] has joined ##java [08:37]
Muzer [Muzer!~muzer@tim32.org] has joined ##java [08:37]
[twisti] im bored and am looking to play with something new. any advice on a framework to check out when i only want to build a REST api ? by framework i mean one including a server, i dont want to run a wildfly for this one [08:38]
tachyon_ when bored, take a look at rust *awaits kick* [08:38]
Addax dropwizard, spring boot, quarkus [08:38]
dmlloyd yesssss quarkus [08:39]
Addax it sucks but it's new! [08:39]
Addax grins [08:39]
dmlloyd OTOH you suck and you're old, so ;) [08:39]
[twisti] so are you actually advising AGAINST quarkus ? [08:39]
[twisti] what about vert.x ? [08:39]
Addax no [08:39]
goldstar [goldstar!~adm@unaffiliated/goldstar] has joined ##java [08:39]
Addax I'd definitely look into quarkus, vert.x too actually [08:39]
dmlloyd you can use vert.x within quarkus [08:40]
[twisti] hah, i actually bookmarked an article about quarkus earlier today, i thought it sounded familiar [08:40]
[twisti] but i was under the impression quarkus was something for kubernetes, which im not using (im a docker person) [08:40]
dmlloyd you can use it with docker though you have to DIY it a bit at the moment, but our integration tests are currently using Docker for some stuff [08:41]
dmlloyd you can even use it on bare metal [08:41]
nindustries parted the channel: "used escape rope!" [08:43]
[twisti] what does it actually DO though ? [08:43]
progart [progart!~kamee@46.241.157.26] has joined ##java [08:43]
Addax "occupies some engineers at red hat" [08:43]
[twisti] my REST api will have considerable (cross session) state, so im not sure a serverless approach makes sense for me [08:43]
Addax there's nothing in any of those that would invalidate shared state [08:44]
yawkat hah https://mvnrepository.com/artifact/org.hibernate/hibernate-core/5.4.2.Final [08:44]
yawkat yawkat's title: "Maven Repository: org.hibernate hibernate-core 5.4.2.Final" [08:44]
yawkat they call LGPL "library gpl" [08:44]
Addax it hasn't been called that for a long time [08:44]
[twisti] Addax: i was under the impression that the serverless approach is one of multiple, sort of ephemeral JVMs that are scaled up and down depending on load [08:45]
yawkat oh it was renamed? [08:45]
tachyon_ parted the channel: [08:45]
Addax yawkat: yeah, years and years ago [08:45]
yawkat ahh [08:45]
[twisti] how would one go about sharing state between those, other than through expensive serialization and transfer ? [08:45]
Addax then the FSF realized that "library gpl" made it sound attractive, so they renamed it such that morons would think "oh, I'll go with the good one, the GPL, instead" [08:45]
Addax [twisti]: that's... not what those frameworks are, although you could use them that way [08:46]
yawkat yea i figured as much :D [08:46]
[twisti] Addax: could you describe them better ? honest question [08:46]
Addax dropwizard [08:46]
Addax Dropwizard is a "full stack" Java framework for REST-oriented services, bundling Jetty, JAX-RS (Jersey), Jackson, metrics, and other common libraries. Find it at http://dropwizard.io . [08:46]
Addax spring boot [08:46]
Addax Spring Boot is a framework that incorporates Tomcat, Jetty, or Undertow directly, along with many other features, to serve as a ready-made container for apps. See https://projects.spring.io/spring-boot/ for a better description. [08:46]
Addax ert.x [08:46]
progart [progart!~kamee@46.241.157.26] has joined ##java [08:46]
Addax vert.x [08:46]
Addax Vert.x is a lightweight, high performance application platform for the JVM that's designed for modern mobile web, and enterprise applications. It is largely designed around reactive principles, and is generally well-regarded (although apparently "be careful with insecure password hashes" according to one user.) See https://vertx.io for more details. [08:46]
Janhouse [Janhouse!~Janhouse@torch.id.lv] has joined ##java [08:46]
[twisti] no, i mean, could you describe "serverless" if its not what i said [08:47]
deavmiLaptop [deavmiLaptop!~deavmi@165.0.49.2] has joined ##java [08:47]
Addax [twisti]: oh. Well, sure, I don't have a problem with your definition, just the assertion that using any of the things I mentioned meant going serverless [08:47]
Addax none of those things are AWS lambdas [08:47]
Addax yawkat: I have a massive bias against all FSF licenses :/ [08:48]
[twisti] Addax: the serverless thing was in reference to quarkus [08:49]
Addax quarkus isn't necessarily a serverless thing either, though... I think? [08:49]
Addax I haven't used quarkus yet, not enough time to play with it, so I'm going off of first impressions [08:50]
[twisti] my first impression was that it was a kubernets/container management thing, and multiple containers kind of scream problem with shared state [08:50]
[twisti] not that that isnt a perfectly valid setup for the right application [08:51]
SerialSmile [SerialSmile!~SerialSmi@83.102.135.233] has joined ##java [08:51]
[twisti] vert.x looks sexiest to me [08:51]
Addax will let dmlloyd or cheeser describe quarkus [08:51]
Addax anything I said about it would be based on ignorance and first impressions [08:51]
[twisti] thats just how i like my advice [08:51]
Addax well quarkus is perfect for using in an FFT then! [08:52]
Janhouse [Janhouse!~Janhouse@torch.id.lv] has joined ##java [08:56]
cheeser no, quarkus isn't (just) a serverless thing. it *can* be used in serverless contexts. in fact, i'm wrapping up AWS Lambda support this week! [09:00]
q9929t [q9929t!~Thunderbi@27.7.83.26] has joined ##java [09:00]
Diablo-D3 so what does quarkus actually do [09:02]
Addax what does dropwizard actually do [09:03]
Addax or spring boot [09:03]
Diablo-D3 let me try again [09:03]
Diablo-D3 why would I use this instead of those [09:03]
cheeser builds smaller, memory efficient runtimes with low start up and latency times [09:03]
Addax much different question, indeed [09:03]
cheeser we can also build native images from your application to run $anywhere [09:04]
LaSombra a/quit [09:04]
cheeser never gonna give you up! [09:04]
Diablo-D3 but as usual, sombra let us down [09:04]
cheeser it's a real sombra moment. *takes a moment of silence* [09:05]
Addax we need a moment of silence from that joke. So, cheeser: SILENCE [09:05]
Diablo-D3 that was not the play of the game [09:06]
nullbytes [nullbytes!18bb7a88@gateway/web/freenode/ip.24.187.122.136] has joined ##java [09:08]
nullbytes Why is double precision different in Java vs C++? In C++, 16.188 + 1.16436 = 17.35236 but in Java it's 17.352359999999997 [09:08]
Diablo-D3 thats the same answer. [09:09]
canton7 Are you sure it's not just the way that they're printed that's different [09:09]
gbobby nullbytes: did you declare it strictfp? [09:10]
yawkat strictfp has no effect anymore [09:11]
gbobby (apart from the fact that the C/C++ implementation need not be IEEE 754 compliant, afaik) [09:11]
Katana [Katana!~hentai@unaffiliated/katana] has joined ##java [09:11]
yawkat actually, maybe thats not in yet [09:11]
yawkat but it should have no effect on + [09:11]
Diablo-D3 ieee754 doesnt seem to be an issue unless you're calling x87 ops [09:12]
yawkat its probably some tostring issue tbh [09:12]
conan [conan!~conan@mdproctor.plus.com] has joined ##java [09:12]
Diablo-D3 it really is just a printing issue [09:12]
gbobby the C/C++ standards do not state what the exact properties of the 'double' type are [09:13]
dmlloyd it's just default rounding yeah [09:13]
nullbytes It's 17.35236 with C++ printf("%lf", num) and ActionScript trace(num) but 17.352359999999997 with System.out.println(num). [09:13]
Addax nullbytes: so there you have it [09:13]
Diablo-D3 nullbytes: if you dont understand our discussion, floating point is inexact [09:13]
dmlloyd print it in hex on both platforms to get the exact answer [09:14]
Diablo-D3 17.352359999999997 is closer to the actual literal answer [09:14]
Diablo-D3 17.35236 is what you expect it to be [09:14]
Diablo-D3 theres a bit of magic going on to get the human readable one [09:15]
mohsen_1 [mohsen_1!uid289573@gateway/web/irccloud.com/x-dxbciqteouvgsgpa] has joined ##java [09:17]
Addax "abraaaaaa*rounding*" [09:17]
dmlloyd it's not imprecise or inexact it's just not a decimal number [09:17]
dmlloyd it's binary [09:17]
dmlloyd binary can't represent fractions other than 1/(2^n) [09:18]
nullbytes Is it just a difference with the human readable form or will there be different results if the same calculations are performed in Java vs ActionScript? For example will Math.floor be different? [09:18]
dmlloyd including 1/5 [09:18]
Diablo-D3 a wizard is never late, nor is he early, he arrives precisely when he means to [09:18]
Diablo-D3 nullbytes: assuming both are ieee754, they're the same answer [09:19]
Addax nullbytes: you'd have to test, actionscript may preserve different properties of floating point [09:19]
Diablo-D3 one just got printed differently [09:19]
supernov1h [supernov1h!~supernova@120.136.5.196] has joined ##java [09:20]
gbobby there are side effects if you (mis)use float/double for calculating e.g. something like the price of items in a business applications [09:21]
gbobby good luck with the rounding if you do [09:21]
gbobby that's why mainframes commonly have decimal maths implemented in hardware [09:22]
ExtraCrispy [ExtraCrispy!~ExtraCris@gateway/tor-sasl/extracrispy] has joined ##java [09:22]
dmlloyd commodity hardware also does in many cases [09:23]
Diablo-D3 you could do Double d = 16.188 + 1.16436; System.out.printf("%f %a\n", d, d); [09:23]
gbobby I think the Intel CPUs have some, IIRC .. not sure what exact implementation [09:26]
freeone3000 Intel CPUs had them in x86, but they got cut for x64 because they were slow and nobody used them. [09:26]
Diablo-D3 I think that was part of the fpu, thus "gone" [09:26]
Addax that's because when Intel had them the industry thought that the money didn't matter, there'd always be more more more more. And now we have AOC showing us that numbers not mattering has migrated. [09:27]
forgottenone [forgottenone!~forgotten@176.88.97.248] has joined ##java [09:27]
freeone3000 ...what? [09:27]
nullbytes It's okay as long as it's just a difference in the way the numbers are printed. I am porting an ActionScript program to Java and I don't want the calculations to be affected. [09:27]
Addax I'm bitching pointlessly and largely inaccurately for the sake of memes. [09:27]
dmlloyd "shitposting" I believe the kids call it [09:28]
Addax oooo! [09:28]
freeone3000 okay they existed from the dawn of floating point until like 2006. they got cut with x64 along with bcd and the ability to rotate binary numbers, because C didn't do these things and no other processor did these things so nobody bothered doing these things on intel so they're disabled with the x64 ISA to get back some one-byte opcodes for ... I'm sure they'll use them for something. [09:28]
Addax feels young again :) [09:28]
Diablo-D3 freeone3000: Im saying they existed physically in the x87 [09:28]
freeone3000 Diablo-D3: They still exist physically today! To the extent that any instruction exists physically. [09:29]
Diablo-D3 on modern cpus, in any of the x86 modes that have x87, its all emulated by microcode [09:29]
freeone3000 This is true of literally every instruction on x86 though. [09:29]
freeone3000 what, you think avx512 is done in circuitry? [09:29]
Diablo-D3 rolls eyes [09:30]
freeone3000 Fairly sure the emulation is still faster than an actual 8087, too. [09:30]
Diablo-D3 x87 isnt just a set of instructions, its a stack processor instead of a register one [09:31]
Diablo-D3 it also was never 754 compliant, and had a really odd internal representation of 80 bits (thus necessitating very weird stuff like long doubles not being 128 bits) [09:31]
dmlloyd looks like risc-v has a decimal FP extension [09:32]
freeone3000 right. and everyone, including intel, would like to pretend that this is not the case. [09:32]
freeone3000 dmlloyd: ...right, but, risc-v. [09:32]
Diablo-D3 x87 cannot be called from x64 long mode. [09:32]
freeone3000 everything's an optional extension. [09:32]
dmlloyd indeed ? [09:32]
gbobby I assume one could call some floating point instructions from amd64 long mode? [09:33]
gbobby what's all that stuff called... SSE2/3/4, SSSE3, something..? [09:33]
Diablo-D3 gbobby: only as normalized sse family stuff [09:34]
Diablo-D3 thats actually 754 compliant, and works like normal x86 ops [09:34]
freeone3000 gbobby: You can call floating point instructions, yes. You can't do the weird-ass stack stuff, you can't put it in binary mode, you can't rotate arguments, and you can't even call one-argument multiply. [09:34]
gbobby good to know... just in case I'll ever need it in some assembly language experiment [09:34]
Diablo-D3 they basically cloned powerpc altivec and brought it to x86 to finally kill x87 [09:34]
Diablo-D3 gcc and clang on x64 only emit sse ops for fpmath [09:35]
gbobby yeah, altivec is what you have on the ppc64 [09:35]
gbobby the ppc64 assembly language doesn't look very nice either, by the way, at least not the way it's represented with gcc [09:35]
Diablo-D3 gcc does whatever is fastest, it doesnt care waht it looks like [09:36]
cheeser this should probably go somewhere else at this point. [09:37]
gbobby anyhow, with regards to ActionScript -> Java use of double... [09:38]
gbobby I guess the question whether the results are going to be "the same" is more or less actually a question of what the required precision of those results needs to be [09:38]
Diablo-D3 [09:24:02] <Diablo-D3> you could do Double d = 16.188 + 1.16436; System.out.printf("%f %a\n", d, d); [09:39]
Diablo-D3 compare it to the same usage of printf on c/c++ [09:40]
radicate [radicate!d48f8656@gateway/web/freenode/ip.212.143.134.86] has joined ##java [09:40]
adadelta I have a spring boot application that's has an application.yml file. I'm building it and including in another Spring boot app. It's complaining that it can't find the config during startup. Is there no way for me to do this unless adding that config to the wrapping spring boot application? [09:41]
radicate Quick question - perhaps someone here could help me figure out a solution to this issue.. :x - In short, InetAddress.getByName only seems to work when being run with root [09:41]
Addax where is it in the "wrapping spring app's" classpath? [09:41]
Addax radicate: that sounds odd - I'm not root on my system, but I just issued InetAddress.getByName() without any escalation [09:43]
Addax looks like isReachable requires it though [09:45]
radicate Addax: I'm trying to run it on two different linux machines, both claim that the host I'm checking is unreachable, but when run with sudo it is reachable [09:46]
Addax right, it's isReachable(), not getByName() [09:46]
radicate Oh, I firstly run getByName [09:46]
radicate Then on the InetAddress that's returned I'm running isReachable [09:46]
radicate Am I using it wrong? :x [09:47]
Addax https://crunchify.com/how-to-implement-your-own-inetaddress-isreachablestring-address-int-port-int-timeout-method-in-java/ [09:47]
Addax no, isReachable() on linux requires root [09:47]
adadelta Addax: Just the normal stuff in a maven project, "src/main/java [09:47]
adadelta and test [09:47]
Addax adadelta: again, where is that resource being located in the classpath [09:48]
radicate Addax: Do you know if there's a certain thing I could configure on a Linux machine to allow this to work on a non-root user? [09:49]
Addax radicate: suid, I guess? ... or use something else, which is why I posted that crunchify thing [09:50]
learningc [learningc!~learningc@2001:d08:d6:1ca6:a93a:9aea:c1c2:e2fb] has joined ##java [09:50]
radicate suid caused some strange strange stuff [09:50]
Addax yeah, it's a terrible idea [09:50]
radicate "java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory" [09:50]
radicate I can't modify the implementation of the isReachable, I must use the original one :x [09:51]
adadelta Addax: The resource is in src/main/resources but in a different project, so packages are different. I know that the wrapper project wont read straight of the bat because of that. [09:52]
freeone3000 radicate: libjli.so should be distributed with the JDK. Are you running something other than java? [09:52]
radicate freeone3000: OpenJDK [09:52]
radicate It gives me this error when I suid the java binary [09:53]
Addax no, they're not different [09:53]
freeone3000 yikes, do not suid the java binary. [09:53]
freeone3000 also don't suid your python interpreter or your bash shell or your c interpreter I shouldn't have to say these things. [09:53]
radicate Haha. I'm trying to find a way to run the InetAddr.isReachable method from a non-root user - do you perhaps have any suggestions? [09:54]
radicate I also tried playing around with setcap [09:54]
Addax adadelta: so look IN YOUR CLASSPATH for that file [09:55]
Addax radicate: why do you have to use InetAddress' isReachable() [09:55]
radicate I've been here a couple of days ago and complained about Apache Ant [09:56]
radicate It's using it under the hood [09:56]
Addax yes [09:56]
Addax well, find that module and replace it with something good [09:56]
radicate Ha. perhaps that's a good option [09:56]
radicate You think I could create an alternative module based on the solution you sent here a couple of minutes ago? [09:57]
Addax sure, figure out what class is using InetAddress.isReachable, put another version of that class in the classpath ahead of whatever the original class is, profit [09:58]
radicate Interesting! I'll take a look at it [09:58]
radicate Thanks a bunch again Addax. :) [09:59]
Rapture [Rapture!~textual@50-204-232-30-static.hfc.comcastbusiness.net] has joined ##java [10:09]
rockyraccoonn [rockyraccoonn!rockyracco@pool-74-98-214-203.pitbpa.fios.verizon.net] has joined ##java [10:10]
EgonX [EgonX!~Egon@12.156.175.3] has joined ##java [10:10]
troker [troker!~troker@evergage03.e.subnet.rcn.com] has joined ##java [10:11]
Crash1hd [Crash1hd!~Crash1hd@unaffiliated/crash1hd] has joined ##java [10:12]
EgonX [EgonX!~Egon@12.156.175.3] has joined ##java [10:20]
realtime [realtime!~root@unaffiliated/realtime] has joined ##java [10:21]
realtime_ [realtime_!~realtime@unaffiliated/realtime] has joined ##java [10:21]
realtime_ [realtime_!~realtime@unaffiliated/realtime] has joined ##java [10:24]
realtime_ [realtime_!~realtime@unaffiliated/realtime] has joined ##java [10:27]
realtime_ [realtime_!~realtime@unaffiliated/realtime] has joined ##java [10:29]
untrck_ [untrck_!uid353408@gateway/web/irccloud.com/x-fwwsnizdizihhvek] has joined ##java [10:36]
loc [loc!~loc@unaffiliated/loc] has joined ##java [10:38]
bnyio [bnyio!~bnyio@alcatraz.open-xchange.com] has joined ##java [10:43]
stryek [stryek!uid332574@gateway/web/irccloud.com/x-tzfbdmxgeqvicbvd] has joined ##java [10:45]
rippa [rippa!~rippa@ppp-vpdn-37.1.85.157.yarnet.ru] has joined ##java [10:54]
bluezone [bluezone!uid104970@gateway/web/irccloud.com/x-odupngzvduhjmwxf] has joined ##java [10:55]
tang^ [tang^!~tang^@2604:3d09:47f:fb80:a415:c72d:8516:fee4] has joined ##java [11:05]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined ##java [11:08]
Regon [Regon!~Regon@unaffiliated/regon] has joined ##java [11:13]
royal_screwup21 [royal_screwup21!8f9f1327@gateway/web/cgi-irc/kiwiirc.com/ip.143.159.19.39] has joined ##java [11:25]
upgrdman [upgrdman!~upgrdman@blender/artist/upgrdman] has joined ##java [11:33]
whaley [whaley!~whaley@192.133.78.17] has joined ##java [11:38]
whaley [whaley!~whaley@192.133.78.17] has joined ##java [11:49]
lwilkerjr [lwilkerjr!~lwjr@2804:7f7:a883:ea87:357d:8c69:3aa2:1656] has joined ##java [11:56]
Chuguniy [Chuguniy!~Chuguniy@80.232.218.96] has joined ##java [12:02]
realloc [realloc!~realloc@unaffiliated/realloc] has joined ##java [12:03]
realloc hi, is anyone here familiar with the Karate test tool? [12:03]
tang^ anyone [12:03]
tang^ Chances are someone has, so why not just ask your question and save some time? If someone knows the answer and wants/has time to help, perhaps they will. [12:03]
detoxcode [detoxcode!~lwjr@2804:7f7:a883:ea87:357d:8c69:3aa2:1656] has joined ##java [12:05]
yaoxu [yaoxu!~yaoxu@2001:da8:bc:6e91:b903:9b23:caf9:e539] has joined ##java [12:06]
ron KARATE! [12:07]
Addax kara-TAY! [12:07]
DTZUZU [DTZUZU!~DTZUZU@S0106bcd16584b0aa.vs.shawcable.net] has joined ##java [12:10]
detoxcode parted the channel: [12:12]
detoxcode [detoxcode!~lwjr@2804:7f7:a883:ea87:357d:8c69:3aa2:1656] has joined ##java [12:12]
dez [dez!uid92154@fedora/deSouza] has joined ##java [12:20]
realloc well, ok, I am testing my Spring server http api using Karate. Now i would like to check, whether the server response to some request matches a json object. However, the object contents and the contents of nested objects and arrays are not always in the same order. How can I instruct Karate to ignore the order? [12:21]
realloc For example: The test `match {"a": "b", "x": [1, 2]} == {"x": [2, 1], "a": "b"}` should pass [12:22]
yaoxu [yaoxu!~yaoxu@2001:da8:bc:6e91:b903:9b23:caf9:e539] has joined ##java [12:28]
yaoxu [yaoxu!~yaoxu@2001:da8:bc:6e91:b903:9b23:caf9:e539] has joined ##java [12:29]
deavmiLaptop [deavmiLaptop!~deavmi@165.0.49.2] has joined ##java [12:33]
iam730 [iam730!~iam730@c-24-6-215-59.hsd1.ca.comcast.net] has joined ##java [12:39]
karab44 [karab44!~karab44@unaffiliated/karab44] has joined ##java [12:41]
Viciouss [Viciouss!~viciouss@unaffiliated/viciouss] has joined ##java [12:45]
eric- [eric-!~user@74.215.64.90] has joined ##java [12:50]
orbyt_ [orbyt_!~orbyt@192.211.15.73] has joined ##java [12:51]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined ##java [12:51]
alexi5_wrk [alexi5_wrk!~kenalex@208.83.82.35] has joined ##java [12:51]
alexi5_wrk hello everyone [12:51]
eric- hi [12:51]
eric- why is there no array based Map implementation? [12:52]
alexi5_wrk when doing you guys develop applicaitons that use hibernate, do you design and create your database and then have hibernate mapped to it or do you have hibernate generate the tables ? [12:52]
led_dark_1 [led_dark_1!~Thunderbi@217.66.160.14] has joined ##java [12:54]
Addax eric-: um... because that's not especially efficient at all [12:56]
Addax eric-: look at HashSet for a close analog, also ArrayList if your map is dense [12:56]
eric- Ok... [12:57]
eric- why would that be? [12:57]
Addax alexi5_wrk: I usually create the object model in java, see what hibernate generates, tweak [12:57]
Addax eric-: why would which be [12:57]
alexi5_wrk Addax: ok. so you have hibernate generate the sql script and then you modify it ? [12:58]
Addax eric-: the simplest answer is because nobody needs or wants it to be in the standard library. Map<Integer, Object> is fine if you need a sparse array. [12:58]
alexi5_wrk <Addax>: also do you use tools like liquibase and flyway ? [12:58]
Addax alexi5_wrk: Not usually, I have hibernate show me DDL and then I tweak the object model until it's more efficient [12:58]
Addax I have used them, yes, but I typically don't [12:59]
alexi5_wrk ok [12:59]
Addax I tend to work on more greenfield apps where those are less useful than they would otherwise be [12:59]
yawkat eric-: hashmap is technically array-based [12:59]
alexi5_wrk ok [01:00]
Addax eric-: ... why do you want this? [01:01]
Addax yawkat: go far enough and everything in computing is array-based :) [01:02]
RedSoxFan07 [RedSoxFan07!~Thunderbi@137.103.109.45] has joined ##java [01:02]
freeone3000 bah, arrays are an illusion. [01:03]
Addax so is computing in general [01:04]
cheeser life is dream from which we all must wake. [01:04]
sbalmos2 everything's just a magical dance of electrical impulses [01:04]
sbalmos2 the fact that enough transistors switching on and off imitates logic is... impressive [01:04]
alexi5_wrk so basically auto creating database using hibernate ' org.hibernate.tool.hbm2ddl=auto' is not recommended [01:05]
RazielZ [RazielZ!~Raziel@unaffiliated/raziel] has joined ##java [01:05]
cheeser certainly not in production [01:05]
Addax alexi5_wrk: n-ooo-oo [01:06]
freeone3000 That's a fun way to lose data. [01:07]
alexi5_wrk ok :) [01:07]
Addax I do it with mongodb all the time but let's be real, I'm using mongodb, that data's transient no matter what :) [01:07]
sbalmos nuke the database from orbit, it's the only way to be sure [01:08]
alexi5_wrk haha [01:08]
sbalmos that, and reboot 3 times. which would nuke the database from orbit anywya [01:08]
alexi5_wrk Aliens 2 jokes [01:08]
t2mkn [t2mkn!~t2mkn@43.226.3.173] has joined ##java [01:09]
whaley [whaley!~whaley@192.133.78.17] has joined ##java [01:10]
Addax cheeser: have you ever used spring data for mongodb? [01:12]
ron lol [01:13]
Addax was curious as to how well the feature set compared to morphia [01:14]
royal_screwup21 [royal_screwup21!89de72f4@gateway/web/cgi-irc/kiwiirc.com/ip.137.222.114.244] has joined ##java [01:14]
whaley [whaley!~whaley@192.133.78.17] has joined ##java [01:26]
beefjoe [beefjoe!~beefjoe@unaffiliated/beefjoe] has joined ##java [01:27]
sunri5e [sunri5e!~sunri5e@unaffiliated/sunri5e] has joined ##java [01:27]
ogradyd [ogradyd!~Thunderbi@2a02:8070:88bf:9df0::b68] has joined ##java [01:32]
funeral [funeral!~Funeral@102.79-160-144.customer.lyse.net] has joined ##java [01:33]
hahnium [hahnium!~jshriver@luna.olympuschess.com] has joined ##java [01:33]
Jantz [Jantz!~IceChat9@2407:7000:8d04:100:a0ab:c1fc:6ec7:f443] has joined ##java [01:34]
hahnium greetings. I'm getting back into java after many years. What do people use mostly now maven or gradle? For general app development (not android) [01:34]
freeone3000 yes. [01:35]
SmearedBeard [SmearedBeard!~SmearedBe@unaffiliated/smearedbeard] has joined ##java [01:35]
cheeser Addax: i have not [01:35]
cheeser hahnium: mostly maven. gradle is popular but not as. [01:36]
hahnium tyvm [01:36]
ron if only all questions were like that. [01:36]
cheeser they are. it's just that most askers are too dumb to realize it. ;) [01:37]
ovalseven8 [ovalseven8!~ovalseven@unaffiliated/ovalseven8] has joined ##java [01:37]
ovalseven8 Question: Can somebody explain me why the output of this program (https://dpaste.de/331f) is the following? -> https://dpaste.de/8bzt [01:38]
ovalseven8 What I do not understand is why both output "Zwerg wartet ..." and "Nachtelf wartet ..." [01:38]
ovalseven8 Because the method is synchronized should not only one output it? [01:38]
Addax snippet no longer exists [01:39]
freeone3000 ovalseven8: wait releases the lock. [01:40]
alexi5_wrk do you guys create stored procedures for your business logic or do you put all of it in java code ? [01:40]
ovalseven8 freeone3000, Ah, okay. That's what I missed :D [01:40]
freeone3000 ovalseven8: In addition: This means that only one thread would execute at the same time. Of course they still execute sequentially. [01:40]
Addax alexi5_wrk: yes. [01:41]
freeone3000 (you're also doing notifyAll(), which, unlike notify, notifies all waiters.) [01:41]
kgrimes2 [kgrimes2!~kgrimes2@137.78.59.217] has joined ##java [01:42]
fstd [fstd!~fstd@unaffiliated/fisted] has joined ##java [01:42]
alexi5_wrk ok.interesting :). I have heard from alot of developers that they don't use stored procedures and put all business logic in java code [01:42]
Addax that's certainly one good option. [01:42]
freeone3000 Do you want the code to be portable between database engines, or between programming languages? [01:43]
ovalseven8 freeone3000, But when the waiting state is over, does the thread lock it again when it's in the synchronized block? [01:44]
freeone3000 ovalseven8: yep [01:44]
ovalseven8 freeone3000, Thanks, have a nice day! :) [01:45]
alexi5_wrk <freeone3000>: I guess hose are the questions they ask that lead to their decision [01:46]
progart [progart!~kamee@46.241.157.26] has joined ##java [01:47]
Addax alexi5_wrk: for the record, stored procs are great when you trust the DBAs are going to write the logic correctly. They're essentially more difficult to test. [01:47]
avalchev [avalchev!~user@46.238.21.2] has joined ##java [01:47]
Addax Plus they're nonportable, so you end up with expertise in ONE database being relevant. [01:47]
alexi5_wrk ok [01:49]
LKoen [LKoen!~LKoen@2a01cb0407597a00212bbe6f9a884622.ipv6.abo.wanadoo.fr] has joined ##java [01:49]
orbyt_ [orbyt_!~orbyt@8.4.228.65] has joined ##java [01:51]
cliluw [cliluw!~cliluw@unaffiliated/cliluw] has joined ##java [02:02]
MadLamb [MadLamb!~fabio@p4FE1B5CC.dip0.t-ipconnect.de] has joined ##java [02:03]
g00s [g00s!~g00s@unaffiliated/g00s] has joined ##java [02:04]
Sasazuka [Sasazuka!~Sasazuka@unaffiliated/sasazuka] has joined ##java [02:04]
coder7of9 [coder7of9!1825e846@gateway/web/freenode/ip.24.37.232.70] has joined ##java [02:06]
coder7of9 using java8 new date time I am retrieving the millis for midnight of a specifc date. does this look correct: https://glot.io/snippets/faol3fy6s4 [02:07]
srisri [srisri!~srisri@204.14.239.82] has joined ##java [02:07]
coder7of9 i require millis for midnight on the user device, so with timezone in [02:08]
kgrimes2 [kgrimes2!~kgrimes2@137.79.218.161] has joined ##java [02:08]
kmels [kmels!~carlos@2803:7000:6000:1cd6:1cac:2754:b362:eb8a] has joined ##java [02:12]
dmlloyd you don't need to get the zone ID like that [02:14]
dmlloyd ZoneId.systemDefault() already gives you a ZoneId - converting it to a string and back again seems pointless [02:14]
coder7of9 okay i will look [02:14]
MadLamb I'm trying to provide a OutputStream to Apache POI Workbook.write, but I need to write the file to Google Cloud Storage. I wasnt able to find any method that returns OutputStream or similar, so I am wondering if what I am trying to do isnt fundamentally wrong... Any idea? [02:14]
dmlloyd otherwise seems OK [02:15]
coder7of9 dmlloyd thanks. [02:15]
freeone3000 MadLamb: You're likely going to have to write code to stick the two together. [02:16]
MadLamb freeone3000, hmm, but what is the correct mindset? Sharing the same stream with both? [02:17]
Katana [Katana!~hentai@unaffiliated/katana] has joined ##java [02:18]
freeone3000 What do you mean, mindset? POI's going to write a file. Google Cloud Storage wants to have a file upload. [02:19]
yawkat write to memory or disk first, and upload using your GCS lib. if necessary you can build a streaming solution later [02:19]
brandonson [brandonson!~brandon@208.91.114.1] has joined ##java [02:28]
noirx [noirx!~noirx@s55942149.adsl.online.nl] has joined ##java [02:29]
MadLamb yawkat, meh =/ [02:29]
MadLamb yawkat, this is what I would like to avoid [02:30]
MadLamb yawkat, both deal with streams, I just need POI to write to the GCS stream [02:30]
coder7of9 i have take n your advice and I shortened it... seems good. looks okay? https://glot.io/snippets/faoltnq792 [02:32]
coder7of9 java datetime example [02:32]
freeone3000 Why does https://ideone.com/71cdAJ fail to parse? [02:36]
yawkat coder7of9: your docs are wrong [02:36]
yawkat systemDefault isnt GMT [02:36]
themsay [themsay!~themsay@149.254.234.86] has joined ##java [02:36]
OnceMe [OnceMe!~onceme@unaffiliated/onceme] has joined ##java [02:37]
OnceMe hi, how can I parse html page and get text of link? [02:37]
yawkat jsoup [02:37]
yawkat jsoup is an HTML parser that can handle actual HTML (you know, not quite perfectly formatted the way real HTML tends to be), and lets you traverse the data via CSS selectors, jquery-style. There is no better HTML parser out there - use it. For more information, see https://jsoup.org/ [02:37]
Crash1hd [Crash1hd!~Crash1hd@unaffiliated/crash1hd] has joined ##java [02:37]
OnceMe example: <li id="test1" ><a href="http://somelink">cool link</a> coolness</li> [02:37]
AcTiVaTe [AcTiVaTe!~activate@host-m7ku8h.tnz1.zeelandnet.nl] has joined ##java [02:38]
cheeser OnceMe: how many times do you have to be told jsoup when you ask that question? [02:38]
Addax OnceMe: the answer keeps on being "jsoup" and you keep... asking the same question again [02:38]
yawkat freeone3000: well, 500 isnt a valid offset? [02:38]
Addax why? [02:38]
coder7of9 yawkat i do not understand this is as it was earlier with less lines of code. [02:38]
yawkat coder7of9: i did not look at the earlier code [02:38]
freeone3000 yawkat: Z says it is. It parses fine with "yyyy-MM-dd'T'HH:mm:ssZ" [02:39]
OnceMe actually this is a different question [02:39]
Addax OnceMe: it really isn't [02:39]
cheeser it's still about parsing html. so it's the same answer. [02:39]
coder7of9 okay but you do not think i have a good result i am after millis for a date and considering timezone [02:39]
Addax you want the content of something in an HTML page, jsoup is the answer [02:39]
cheeser apply a little logic before asking questions. [02:39]
Addax what the specific content is is irrelevant, jsoup's still the easiest way to get it [02:39]
Addax I want to say "now shut up" but that seems impolite so I won't [02:40]
paddyez [paddyez!~paddyez@wikipedia/paddyez] has joined ##java [02:40]
cheeser i'll say it! [02:40]
Addax bows and waits for someone else to be impolite [02:40]
yawkat freeone3000: ISO_OFFSET_DATE_TIME is not the same as that format [02:40]
orbyt_ [orbyt_!~orbyt@192.211.15.72] has joined ##java [02:41]
freeone3000 yawkat: Okay. RFC 3339 allows it but ISO 8601 disallows it if the offset is negative. [02:43]
freeone3000 So technically correct, I just have to yell at some people from 1986. Thanks. :) [02:43]
yawkat it allows it for positives? the fuck [02:43]
yawkat hm, actually, i dont think the format string should be different for the offset id [02:45]
yawkat only for the other fields [02:45]
coder7of9 sorry i am not understanding startOfDay is midnight anywhere... in india or toronto then i apply the systemDefault timezone and then create an instance to get millis. [02:45]
MadLamb ( [02:45]
yawkat coder7of9: your docs say GMT, but you do not use GMT. [02:46]
yawkat one of those is wrong. [02:47]
Diablo-D3 I vote on the docs [02:48]
meldzha [meldzha!~meldzha@46.109.111.138] has joined ##java [02:48]
Diablo-D3 UTC or gtfo [02:48]
cliluw [cliluw!~cliluw@unaffiliated/cliluw] has joined ##java [02:48]
yawkat ++ [02:48]
yawkat using the system zone is usually a mistake [02:48]
Addax Indeed. I spent about a day on our ETL process trying to debug date problems, all because I was... uh... porting from python and didn't fix the dates until I saw there was a problem [02:49]
Addax and then fixing them was a total drag [02:49]
themsay [themsay!~themsay@149.254.235.3] has joined ##java [02:50]
cliluw [cliluw!~cliluw@unaffiliated/cliluw] has joined ##java [02:50]
sameerynho [sameerynho!~lxsameer@unaffiliated/lxsameer] has joined ##java [02:52]
coder7of9 yawkat LocalDate.parse is ISO_LOCAL_DATE midnight anywhere without any timezone. the next line applies the local time zone and the offset from gmt is implicit. am i missing something. i have looked at the docs. [02:54]
yawkat have you looked at YOUR docs [02:55]
yawkat "return millis representing the start of day using the received dateString yyyy-MM-dd 2018-06-18 00:00:00.000 GMT" - yet you dont use gmt [02:55]
coder7of9 ah okay..i am sorryt... my notes are dated already. [02:57]
cheeser the irony [02:57]
coder7of9 thanks [02:57]
SolarFlare [SolarFlare!~SamanthaB@unaffiliated/samanthabdawn] has joined ##java [02:58]
meldzha Hey, what is up guys. [02:58]
surial the sky, usually. [02:58]
meldzha Are you a comedian? [02:59]
surial aren't we all, at times? [03:00]
meldzha hah, guess so [03:00]
yawkat his prime time was when he invented wither. [03:00]
meldzha Just wanted to ask if there is a beginner channel related to Java beginners/learners. [03:00]
cheeser this one [03:01]
Addax feel free to ask questions if you like, even beginner ones... just be prepared to get pointed to usually-canonical resources that will teach you what you need [03:03]
gelignite [gelignite!~gelignite@55d46647.access.ecotel.net] has joined ##java [03:05]
meldzha Thanks. [03:05]
whaley [whaley!~whaley@192.133.78.17] has joined ##java [03:06]
borkr [borkr!~borkr@static130-244.mimer.net] has joined ##java [03:15]
funeral [funeral!~Funeral@95.143.193.9] has joined ##java [03:29]
yawkat [yawkat!~yawkat@cats.coffee] has joined ##java [03:31]
AcTiVaTe [AcTiVaTe!~activate@host-m7ku8h.tnz1.zeelandnet.nl] has joined ##java [03:32]
wtflux [wtflux!~wtflux@67-131-112-171.dia.static.qwest.net] has joined ##java [03:34]
Katana [Katana!~hentai@unaffiliated/katana] has joined ##java [03:37]
themsay [themsay!~themsay@149.254.235.3] has joined ##java [03:40]
immibis [immibis!~immibis@125-238-72-168-fibre.sparkbb.co.nz] has joined ##java [03:43]
realloc ok, i think i solved it using the #(^...) schema validation syntax [03:46]
cliluw [cliluw!~cliluw@unaffiliated/cliluw] has joined ##java [03:47]
whaley [whaley!~whaley@192.133.78.17] has joined ##java [03:49]
LKoen [LKoen!~LKoen@2a01cb0407597a00b832bc86675e7ad2.ipv6.abo.wanadoo.fr] has joined ##java [03:51]
Oni-Sanba [Oni-Sanba!~user@public-gprs409560.centertel.pl] has joined ##java [03:53]
surial realloc: wrong channel perhaps :P [03:53]
grim001 [grim001!~grim001@ip70-189-228-129.lv.lv.cox.net] has joined ##java [03:53]
realloc surial, right channel, there just passed a lot of time between my question and me finding the answer^^ [03:56]
surial realloc: aw, I see. Heh, well, thanks for providing the feedback :) [03:57]
Revan- [Revan-!~Revan@host-72-174-107-194.static.bresnan.net] has joined ##java [04:02]
deavmiLaptop [deavmiLaptop!~deavmi@165.0.49.2] has joined ##java [04:11]
srisri [srisri!~srisri@204.14.239.82] has joined ##java [04:23]
Essadon [Essadon!~Essadon@81-225-32-185-no249.tbcn.telia.com] has joined ##java [04:25]
royal_screwup21 [royal_screwup21!89de72f4@gateway/web/cgi-irc/kiwiirc.com/ip.137.222.114.244] has joined ##java [04:30]
orbyt_ [orbyt_!~orbyt@192.211.15.72] has joined ##java [04:35]
nickel8448 [nickel8448!~rahul@45.56.154.157] has joined ##java [04:38]
Blankspace [Blankspace!~Blankspac@unaffiliated/blankspace] has joined ##java [04:39]
Blankspace hi can anyone help in installing java [04:39]
ernimril Blankspace, probably, but this is not the place for it. Although I fail to see how you can fail at it: 1) download, 2) unpack 3) set the path [04:41]
SmearedBeard [SmearedBeard!~SmearedBe@unaffiliated/smearedbeard] has joined ##java [04:42]
surial Also, separate issue, which thing needs you to install it? [04:42]
Addax victory! [04:45]
Blankspace [Blankspace!~Blankspac@unaffiliated/blankspace] has joined ##java [04:49]
Blankspace hi [04:49]
Addax welcome back [04:49]
Blankspace so i just installed java 11 [04:50]
Blankspace in my ubuntu [04:50]
cheeser that was easy! [04:50]
Addax gratz [04:50]
Blankspace do i need to change java_home?\ [04:50]
Addax depends [04:50]
Blankspace becoz its still pointing to java9 [04:50]
Blankspace sorry java8 [04:50]
cheeser "because" [04:50]
ernimril Blankspace, only if you use a silly tool that depends on that environment variable [04:51]
cheeser then yes, you need to properly configure your system. consult the ubuntu irc channel for help with that. [04:51]
cheeser (in short, fix your PATH) [04:51]
Blankspace how do i know where 11 is installd [04:51]
cheeser tech support [04:52]
cheeser Hello, ##java is not a technical support channel for your Java apps or virtual machines; it's a development channel for enthusiasts to discuss programming with the Java language. Please ask the vendor of your software for support if you're having trouble with it. [04:52]
ernimril Blankspace, know your OS, /usr/lib/jvm/* [04:52]
cheeser you'd query the installer packager system to find that. [04:52]
Addax "know your OS" is the best advice here, too [04:52]
Addax `which java`, and follow the links [04:52]
Addax read, learn, integrate, think [04:52]
ernimril Addax, that is quite a few links on modern ubuntu [04:53]
Addax ernimril: aaaaaand... [04:53]
Oni-Sanba there was some kind of a version chooser for java like you install it and then use simple command to change your java home [04:53]
sbalmos alternatives [04:53]
ernimril Oni-Sanba, update-java-alternatives, yes [04:53]
sbalmos Ubuntu channel can deal with all that [04:53]
Addax only three here, and i'm on ubuntu 18.10 [04:53]
sbalmos still falling under "know your OS" [04:53]
Addax and yes, I just said that publicly, I'm so ashamed [04:53]
Addax sdkman [04:54]
Addax SDKMAN is a tool for managing parallel installations of JVMs and tools on Mac/Linux/Unix. See http://sdkman.io/ [04:54]
Blankspace ok thank yoou so much [04:54]
coder7of9 [coder7of9!1825e846@gateway/web/freenode/ip.24.37.232.70] has joined ##java [04:54]
Addax also has machines to which he's connected that are running good linuxen, too :/ [04:55]
coder7of9 besides simplier syntax is there any advantage to using a lambda expression over an interface. my single method interfaces are working fine. any reason to refacetor. [04:56]
Addax coder7of9: lambdas can be more expressive, sure [04:56]
Addax in terms of functionality, eh, they're about the same as SAM [04:56]
coder7of9 thanks [04:57]
Addax expressiveness and concision are relevant factors when attempting to form postulates about the corresponding values of techniques in designing code [04:57]
kgrimes2 [kgrimes2!~kgrimes2@137.79.218.161] has joined ##java [04:58]
coder7of9 yes i like concise code. i will eventually refactor. i was curious [04:58]
Smeared_Beard [Smeared_Beard!~SmearedBe@unaffiliated/smearedbeard] has joined ##java [04:58]
Hanii [Hanii!~Hanii@2a00:23c5:c587:a800:8448:9865:67b6:2ceb] has joined ##java [05:00]
SmearedBeard [SmearedBeard!~SmearedBe@unaffiliated/smearedbeard] has joined ##java [05:03]
Addax try-with-resources [05:05]
Addax Addax, try-with-resources is a way of using resources without having to remember to close them - http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html [05:05]
masber [masber!6eae9618@gateway/web/freenode/ip.110.174.150.24] has joined ##java [05:06]
LKoen [LKoen!~LKoen@2a01cb0407597a00b832bc86675e7ad2.ipv6.abo.wanadoo.fr] has joined ##java [05:07]
masber good morning, so far I have been programming javajust using JSE + libraries like jersey, hibernate, Jackson, etc. Now I would like to speed up the development process at the same I keep adding features available. I think the natural step would be either go with spring or microprofile. Spring does not need presentation but I would like to ask if anyone has experience with microprofile and if they would recommend it. Thank you [05:09]
Smeared_Beard [Smeared_Beard!~SmearedBe@unaffiliated/smearedbeard] has joined ##java [05:09]
Addax I'd recommend spring boot or dropwizard [05:09]
orbyt_ [orbyt_!~orbyt@192.211.15.72] has joined ##java [05:09]
Addax I haven't used a container intentionally except for demonstration purposes in a long, long time [05:09]
untrck_ [untrck_!uid353408@gateway/web/irccloud.com/x-gixphxrzdogojgyb] has joined ##java [05:10]
masber Addax: container you mean docker containers/microservices implementation? [05:16]
whaley DOCKER [05:16]
SmearedBeard [SmearedBeard!~SmearedBe@unaffiliated/smearedbeard] has joined ##java [05:16]
waz whaley [05:16]
waz http://i.imgur.com/LIeOOTh.jpg [05:16]
Addax masber: I mean web profile containers, containers in the java EE sense [05:17]
Addax I haven't deployed actively to tomcat, wildfly, glassfish, etc., intentionally in years [05:17]
whaley how do you deploy to them unintentionally? serious question [05:18]
learningc [learningc!~learningc@2001:d08:d6:1ca6:3db4:c72a:4800:34cf] has joined ##java [05:19]
Addax whaley: because some other moron creates a .war and does it in my stead [05:19]
omonk [omonk!~omonk@unaffiliated/omonk] has joined ##java [05:19]
Addax truth is, I actually HAVE deployed to tomcat, but not for a working application, only for demos [05:19]
Addax (usually in prep for demonstrating boot or dropwizard) [05:20]
sbalmos Have you deployed passively intentionally? :) [05:20]
Addax heh [05:22]
masber Addax: as far as I understand you don't need to develop containers for microprofile [05:24]
Addax masber: you don't need to develop containers for any of 'em, containers are already built. But .. hey, if microprofile containers are built like spring boot and dropwizard, cool [05:27]
noirx [noirx!~noirx@s55942149.adsl.online.nl] has joined ##java [05:29]
noirx does anyone know whats the latest java version for oca [05:29]
surial oca? [05:30]
User_ [User_!~learningc@2001:d08:d6:1ca6:3db4:c72a:4800:34cf] has joined ##java [05:31]
yawkat the cert. [05:31]
User__ [User__!~learningc@2001:d08:d6:1ca6:d590:6318:bd85:e49e] has joined ##java [05:32]
firewyre [firewyre!~firewyre@pool-108-49-101-141.bstnma.fios.verizon.net] has joined ##java [05:33]
Oni-Sanba should be on oracle website [05:35]
Oni-Sanba too lazy to google [05:35]
noirx i cant find java 11 pdf , any help [05:41]
Addax plus OCA is pointless [05:42]
Addax so it really doesn't matter what version it would be, get it for java 1.2, it'd be just as useful [05:42]
brandonson [brandonson!~brandon@208.91.114.1] has joined ##java [05:45]
sa02irc [sa02irc!~sa02irc@155-079-043-212.ip-addr.inexio.net] has joined ##java [05:54]
seventwo [seventwo!~textual@nextdoor.static.monkeybrains.net] has joined ##java [05:59]
peltre [peltre!sid268329@gateway/web/irccloud.com/x-huzmhcqpdbvfmjwt] has joined ##java [06:05]
wad [wad!~wad@66.43.16.1] has joined ##java [06:18]
wad Hey guys. Any of you use mac? I'm just starting with one. Suggestions on which keyboard mapping I should use? There are two I'm considering: "Mac OS X 10.5+" or "Mac OS X". Suggestions? I'm rather use the latest and greatest, which is that? [06:20]
wad This is for IntelliJ, I didn't mention, sorry. [06:21]
wad I've gotta reboot brb [06:29]
Oni-Sanba uses mca [06:39]
Oni-Sanba install linux on it [06:39]
Muzer [Muzer!~muzer@tim32.org] has joined ##java [06:39]
veegee [veegee!~veegee@ipagstaticip-3d3f7614-22f3-5b69-be13-7ab4b2c585d9.sdsl.bell.ca] has joined ##java [06:41]
ogradyd [ogradyd!~Thunderbi@2a02:8070:88bf:9df0::b68] has joined ##java [06:45]
surial wad's mac apparently takes 5 minutes or more to reboot for some reason. [06:51]
wad [wad!~wad@66.43.16.1] has joined ##java [06:51]
surial lol. [06:51]
surial wad: Well, first things first. macs are different, keyboard wise. And I'm not talking about the current gen's laptops all having a what the flying fuck were you thinking, this hardware FUCKING SUCKS keyboards. [06:51]
wad I'm back! Reboot successful! [06:51]
surial (but, they do. goddamn I hate these fucking keyboards, what a disaster). [06:51]
surial It's supposed to take about 8 seconds, not 5 minutes. [06:51]
wad This is a mac. It takes FOREVER to reboot. [06:52]
surial no it doesn't. [06:52]
surial if you have a bazillion apps open it'll also open those after a reboot. [06:52]
wad Mine does. It's brand new. $3000 machine. After I click my login profile icon, and enter my creds, I get a slowwww progress bar. [06:52]
wad I think it's decrypting the hard drive or something like that. [06:53]
Diablo-D3 surial: its osx [06:53]
surial Perhaps you had an update. or you bought a 15 year old mac? Should take 8 seconds from typing in your password (which is the UEFI booter, not the OS. Full disk crypto done right) until base OS is up, then all apps that were open before are launched. maybe do a restart and explicitly tell it NOT to restart any apps (or just close evverhthing but finder, then reboot). If it's taking that long, bring it back, broken. [06:53]
surial wad: It's not. Seriously, hardware broken if it's taking longer. [06:53]
Diablo-D3 boot time AND shutdown take dramatically longer. [06:53]
surial dafuq are you all on about? I'm typing this ON A MAC. [06:53]
Diablo-D3 no clue why, got tired of trying to figure out why [06:53]
surial 8 seconds. Dafuq are you guys doing with your hardware? Pissing on it? [06:54]
Diablo-D3 Im typing this on a mac too. [06:54]
Diablo-D3 mbpr 13" late 2012 [06:54]
Diablo-D3 its never been faster ever since I put win10 on it [06:54]
surial congrats for not having the shite keyboard. [06:54]
surial okay, maybe the dual boot thing is the problem? [06:54]
wad Huh. Last time I used a Mac was 1992. I much prefer Linux, but my employers insist that it's insecure. My choices are Windows or Mac. >_< [06:54]
surial anyway, back to my point. [06:54]
Diablo-D3 not dual booted, took osx entirely [06:54]
surial wad: linux and windows have the control key. the equivalent in mac is the command key. [06:55]
wad I'll take this down to the IT department, and have them take a look. Seems crazy that it takes so long to boot. [06:55]
surial wad: which is weird, because macs do HAVE a control key, but that is a key that is totally new and has absolutely no equivalent on linux or windows. [06:55]
Addax mac is a great dev platform, but that long to boot sounds like it was doing an OSX update [06:55]
surial So let's call this key the flooble key. [06:55]
surial it's the one that says 'ctrl' on it, but if I keep calling it control you're gonna get confused. [06:56]
surial wad: the flooble key serves 2 purposes. [06:56]
wad Okay, while I was out... did I miss good info? "Mac OS X 10.5+" or "Mac OS X" for the IntelliJ keyboard setting? [06:56]
Addax wad: use the default. You'll be fine. [06:56]
surial wad: first of all, _IN TERMINAL_, the flooble key is sent to the host OS when using terminal ops, and CMD is free for the control of the terminal app itself. So, in terminal, CMD+C is still copy. Flooble+C is sent to the host OS and will presumably send a HUP signal if you're sshing into a linux box. [06:56]
surial wad: second of all, everywhere else, the flooble key is specifically used for keyboard navigation in text editors. [06:57]
wad surial: just like a CONTROL-C then. [06:57]
surial (it also serves as yet another meta-modifier on modifier keys. you have CTRL+CMD+Q which is 'lock screen' for example). [06:57]
surial wad: On macs, flooble+A will go to start of line, ANYWHERE. [06:57]
surial well, maybe except in microsoft shit because, well, they make shit. [06:57]
wad Like COMMAND-LEFTARROW. [06:57]
surial in eclipse, intellij, etc, Flooble+A goes to start of line. [06:57]
wad flooble-e goes to the end, just like in vi! [06:58]
wad Nice! [06:58]
surial It also does in an 'alert' popup in the browser in javascript (the one that asks for input), the URL bar of chrome, the actual terminal (becuase in terminal/posix command line, CTRL+A is go to start of line, as in vi and stuff). [06:58]
surial so, _EVERYWHERE_, Floobe+A is start of line, Flooble+E is end of line. [06:58]
surial On windows and linxu this just cannot be, you don't have the metakeys to waste one on key nav. [06:58]
wad That's actually pretty nice... [06:58]
wad HOME and END keys do nothing. [06:58]
surial oh, they do. [06:59]
surial home goes to the top of doc, end goes to bottom of doc. Which is disconcerting as fuck, as on windows, they go to start/end of line instead. [06:59]
surial if you're on the laptop keyboard, uhm.. Fn+up is home I think. [06:59]
surial no, Fn+Left. eh, I rarely need to go top of doc. [06:59]
surial but, yeah Fn+left = Home, Fn+Right = End, and they go the very toppity top and the very bottomy bottom. [06:59]
wad Nobody does. So let's map a KEY ON THE KEYBOARD to that function! [07:00]
wad >_< [07:00]
surial anyway, the point being, basically either [A] kiss your flooble key goodbye as useless wart, or [B] adopt a different key layout entirely on macs versus non-macs. [07:00]
wad I spent 2 days trying to convince Karibiner Elements to make keys act like I'm used to. I just gave up an hour ago. Now I'm retraining 3+ decades of muscle memory... [07:00]
surial Personally I'm for my GUIs all macs everywhere so I very much use the Flooble key everywhere. But it's kind of a choice to make here. [07:00]
waz most of the mac shortcuts are emacs based [07:01]
surial If you get used to it, you start pressing CTRL+A on windows to go to start of line and selecting all fucking text, inherently zipping to the very end of your goddamn document when all you wnated to do is go to start of line. [07:01]
surial so, you know. Think this choice through. [07:01]
omonk [omonk!~omonk@unaffiliated/omonk] has joined ##java [07:01]
wad So, as for IntelliJ, there are 3 defaults, and none of them seem right: They are for gnome, KDE, and XWin. [07:02]
surial anyway, once you decided.. check what intellij does. I know eclipse, out of the box, is macy. As in, eclipse on macs default to emacsy keyboard bindings, at least for anything that's just flooble-key based. [07:02]
surial I'm of the opinion that adopting the default keyboard layout of an editor is stupid, and that's one place where the tool should adopt to you and not the other way around. So, if intellij has nothing, make one, or google for one. [07:02]
surial (And anybody who thinks you should 'just' learn the default keyboard bindings of intellij, file a fucking bug with jetbrains that they should remove their keyboard binding config screen as a negative feature, and if you don't wanna, I call bullshit). [07:03]
wad There are these two Mac ones, I just don't know which is the latest-and-greatest. One has no version, the other ones is "10.5+", which implies it's for that version and everything after? [07:03]
waz wad can you fucking read? [07:03]
waz it makes a suggestion for you [07:03]
Addax I find the default IDEA keymapping fine [07:03]
waz mock Addax [07:03]
javabot points at Addax and says "your dum" [07:03]
waz you idiot [07:03]
Addax whether someone else chooses to use it or not is up to them [07:04]
Addax waz: yeah, well, I've been watching the "here's your new OS" lecture in ##java, so... [07:04]
waz my last truly new OS was in 1999 [07:04]
waz though I guess 0S9 to OSX was kind of a new one [07:05]
waz key mappings still worked though :) [07:05]
Addax wait... you mean MacOS9 [07:05]
waz yeap [07:05]
Addax I was thinking you meant the POSIX one :) [07:05]
palasso [palasso!~palasso@unaffiliated/palasso] has joined ##java [07:06]
Addax actually, OS/9 might not have been posix - maybe unix-like instead [07:06]
NeXTSUN [NeXTSUN!~textual@2601:83:8100:42cf:f5f7:671d:e89f:216c] has joined ##java [07:06]
Addax anyway, it's late. Enjoy your evening, folks [07:06]
waz tah tah [07:06]
wad I just quadruple-checked, I'm pretty sure I'm not missing anything on the UI. There is an option in the dropdown labeled "default copy", but that's in a different, smaller font, so I'm assuming it's something else. I could be wrong. Other than that, there are three options marked "default", but I'm noting using KDE, Gnome, or WinX. [07:07]
waz it offers you the older one or the newer one [07:07]
waz and says that the older one is there for those used to it [07:08]
waz gee [07:08]
wad I'm going to have to relearn how to interact with this IDE, and undo 13 years of muscle memory. [07:08]
waz wonder which one I should use? [07:08]
palasso [palasso!~palasso@unaffiliated/palasso] has joined ##java [07:08]
waz you can map to whatever you like [07:08]
wad Okay then! I'll use the 10.5+ one. [07:08]
waz it's completely configurable [07:08]
waz you don't have to relearn anything [07:08]
wad Oh yes I do. Do you know how many times, in this conversation, I've typed the wrong key to move my cursor? I type "HOME" to put it at the beginning of my line of typing. Doesn't work. I've got a lot of relearning to do. :( [07:09]
wad But CTRL-A works now! [07:09]
waz it does in every cocoa app [07:10]
waz and many non cocoa apps that pretend like they are native [07:10]
qwedfg [qwedfg!~qwedfg@194.177.28.158] has joined ##java [07:11]
wad googles cocoa app [07:11]
Nicmavr [Nicmavr!~Nicmavr@unaffiliated/nicmavr] has joined ##java [07:12]
waz native osx app [07:12]
wad I see it. :) [07:13]
wad Okay, I'm going to try to edit code in IntelliJ. Wish me luck. [07:13]
wad has trepidation [07:13]
waz time to move back to vi [07:14]
wad LOL, I like vi for lots of stuff. For Java... not so much. [07:14]
wad Ooooh... IntelliJ plugin: "keymap exporter". Nice! [07:17]
lucid-lullaby [lucid-lullaby!~lucid-lul@66.115.169.237] has joined ##java [07:18]
extor [extor!~extor@unaffiliated/extor] has joined ##java [07:20]
runlevel7 [runlevel7!~runlevel7@unaffiliated/runlevel7] has joined ##java [07:24]
i-make-robots [i-make-robots!~dan@184.70.142.222] has joined ##java [07:26]
i-make-robots hello! i seek someone with jinput and (maybe) maven experience for setup help. is this a good place to look? [07:27]
i-make-robots my primary pom is https://github.com/MarginallyClever/Robot-Overlord-App/blob/master/pom.xml I have jogamp and natives working, but jinput and natives don't want to link at runtime. don't know what I'm missing. [07:28]
i-make-robots i-make-robots's title: "Robot-Overlord-App/pom.xml at master MarginallyClever/Robot-Overlord-App GitHub" [07:28]
somazero [somazero!~somazero@2600:8805:100:a00:9efc:9bd4:d93:f3af] has joined ##java [07:28]
EgonX [EgonX!~Egon@2601:2c6:47f:98f4:f48f:161b:5af:9cf4] has joined ##java [07:28]
tang^ i-make-robots: I answered you in #maven [07:32]
spawned4562 [spawned4562!~spawned45@75-163-85-234.omah.qwest.net] has joined ##java [07:47]
Jantz [Jantz!~IceChat9@2407:7000:8d04:100:a0ab:c1fc:6ec7:f443] has joined ##java [07:51]
javango [javango!~javango@188.244.142.69] has joined ##java [07:57]
themsay [themsay!~themsay@149.254.235.3] has joined ##java [08:02]
whaley [whaley!~whaley@2601:281:8400:558f:ec55:9c8a:d4c4:f9ff] has joined ##java [08:03]
katiex7 [katiex7!~katiex7@ip72-196-214-135.dc.dc.cox.net] has joined ##java [08:11]
EgonX [EgonX!~Egon@2601:2c6:47f:98f4:dd33:64e1:c08c:3f53] has joined ##java [08:20]
surial jmh [08:21]
surial JMH is a micro benchmarking harness written in Java for the JVM, see http://openjdk.java.net/projects/code-tools/jmh/ [08:21]
learningc [learningc!~learningc@mti-37-145.tm.net.my] has joined ##java [08:22]
learningc [learningc!~learningc@mti-37-145.tm.net.my] has joined ##java [08:29]
firewyre [firewyre!~firewyre@pool-108-49-101-141.bstnma.fios.verizon.net] has joined ##java [08:48]
orbyt_ [orbyt_!~orbyt@172.92.5.20] has joined ##java [09:10]
goldstar [goldstar!~adm@unaffiliated/goldstar] has joined ##java [09:13]
junktext [junktext!~junktext@fsf/member/junktext] has joined ##java [09:18]
Anthaas [Anthaas!~Anthaas@unaffiliated/anthaas] has joined ##java [09:20]
Crash1hd [Crash1hd!~Crash1hd@unaffiliated/crash1hd] has joined ##java [09:24]
royal_screwup21 [royal_screwup21!8f9f1327@gateway/web/cgi-irc/kiwiirc.com/ip.143.159.19.39] has joined ##java [09:28]
waz [waz!~waz@pdpc/supporter/active/waz] has joined ##java [09:43]
whoareU [whoareU!~oops@124.161.223.171] has joined ##java [09:44]
whoareU i set system property on console like this " java -Djava.io.tmpdir="/usr/java/tmp" or "java -Djava.io.tmpdir=/usr/java/tmp", anyway when i type enter, the result is list of java help [09:50]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined ##java [09:52]
tristianc [tristianc!~tristianc@pool-108-51-126-82.washdc.fios.verizon.net] has joined ##java [09:55]
RedSoxFan07 [RedSoxFan07!~Thunderbi@137.103.109.45] has joined ##java [09:55]
orbyt_ [orbyt_!~orbyt@172.92.5.20] has joined ##java [09:57]
cheeser what did you expect to happen? [09:58]
whoareU i hope change the value of java.io.tmpdir [09:59]
cheeser permanently? [09:59]
happymeal` [happymeal`!~happymeal@99-87-243-43.lightspeed.tukrga.sbcglobal.net] has joined ##java [10:01]
whoareU i don't know , the reason is my netbean prompt"here is no enough space in you temp folder to download and unpack the index for 'central repository'" [10:01]
whoareU so i think change temp folder maybe can resolve it [10:01]
cheeser this is not how you'd fix that. and that's not how java works. -D properties only apply to *that* processes. and you didn't start anything. didn't give it anything to run. so you got the help message. [10:02]
whoareU more confused [10:04]
yaoxu [yaoxu!~yaoxu@106.39.42.116] has joined ##java [10:05]
t2mkn [t2mkn!~t2mkn@43.226.2.118] has joined ##java [10:07]
kgrimes2 [kgrimes2!~kgrimes2@137.79.218.161] has joined ##java [10:13]
BShaftoe12349 [BShaftoe12349!~blahlblah@2605:e000:1520:429b:84f8:244c:276f:42dd] has joined ##java [10:24]
Crash1hd [Crash1hd!~Crash1hd@unaffiliated/crash1hd] has joined ##java [10:24]
kegster [kegster!~kegster@unaffiliated/kegster] has joined ##java [10:24]
tribrid [tribrid!~Bogie@47.184.162.27] has joined ##java [10:41]
whoareU parted the channel: "Leaving" [10:42]
tribrid [tribrid!~Bogie@47.184.162.27] has joined ##java [10:44]
srisri [srisri!~srisri@98.207.200.202] has joined ##java [10:45]
tribrid [tribrid!~Bogie@47.184.162.27] has joined ##java [10:48]
NeXTSUN [NeXTSUN!~textual@2601:83:8100:42cf:f5f7:671d:e89f:216c] has joined ##java [10:49]
tribrid [tribrid!~Bogie@47.184.162.27] has joined ##java [10:53]
kicked tribrid (Banned: please fix your connection. you're bouncing in and out. this ban will expire after 2h) [10:53]
srisri [srisri!~srisri@204.14.239.13] has joined ##java [10:56]
whaley [whaley!~whaley@2601:281:8400:558f:d9b3:a4cf:412c:c008] has joined ##java [10:56]
kgrimes2 [kgrimes2!~kgrimes2@172-11-18-93.lightspeed.irvnca.sbcglobal.net] has joined ##java [10:58]
Goplat [Goplat!~Goplat@reactos/developer/Goplat] has joined ##java [11:01]
tassee [tassee!~tasse@55d4c267.access.ecotel.net] has joined ##java [11:03]
forgottenone [forgottenone!~forgotten@176.88.97.248] has joined ##java [11:04]
t2mkn [t2mkn!~t2mkn@43.226.2.118] has joined ##java [11:04]
pressure679 [pressure679!~naamik@host-88-83-3-89.adsl.gl] has joined ##java [11:14]
dendazen [dendazen!~dendazen@pool-72-76-93-243.nwrknj.fios.verizon.net] has joined ##java [11:26]
yaoxu [yaoxu!~yaoxu@106.39.42.116] has joined ##java [11:30]
yaoxu [yaoxu!~yaoxu@106.39.42.116] has joined ##java [11:32]
dendazen [dendazen!~dendazen@pool-72-76-93-243.nwrknj.fios.verizon.net] has joined ##java [11:43]
g00s [g00s!~g00s@unaffiliated/g00s] has joined ##java [11:46]
Crash1hd [Crash1hd!~Crash1hd@unaffiliated/crash1hd] has joined ##java [11:52]
Crash1hd [Crash1hd!~Crash1hd@unaffiliated/crash1hd] has joined ##java [11:56]