Info

Login

Channels

APIs

Credits

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

« 2020-06-28

2020-06-29

2020-06-30 »

Nick Message Date
tassee [tassee!~tasse@55d40f6f.access.ecotel.net] has joined ##java [12:08]
sbalmos [sbalmos!~sbalmos@2605:a000:1304:8561:7095:ba60:9394:4e78] has joined ##java [12:22]
magyar [magyar!~magyar@unaffiliated/magyar] has joined ##java [12:48]
tristianc_ [tristianc_!~tristianc@pool-96-231-193-192.washdc.fios.verizon.net] has joined ##java [12:51]
led_dark_1 [led_dark_1!~Thunderbi@217.66.160.14] has joined ##java [12:54]
nikkal [nikkal!~nikos@46.12.96.39.dsl.dyn.forthnet.gr] has joined ##java [12:57]
pieguy128 [pieguy128!~pieguy128@mtrlpq5031w-lp140-02-69-157-254-26.dsl.bell.ca] has joined ##java [01:01]
g00s [g00s!~g00s@unaffiliated/g00s] has joined ##java [01:11]
maryo_s [maryo_s!~Maryo@unaffiliated/maryo] has joined ##java [01:23]
led1 [led1!~Thunderbi@217.66.160.14] has joined ##java [01:25]
matsurago [matsurago!~matsurago@240b:10:b3a1:1700:b208:b72c:53fc:819f] has joined ##java [01:36]
reynir [reynir!~reynir@unaffiliated/reynir] has joined ##java [01:52]
edd_lc [edd_lc!~edd_lc@85-250-101-70.bb.netvision.net.il] has joined ##java [01:57]
BluesBoy [BluesBoy!~bboy@stotz2.com] has joined ##java [01:59]
bobek [bobek!~bobek@unaffiliated/bobek] has joined ##java [02:00]
muhaha [muhaha!59b08d6e@gateway/web/cgi-irc/kiwiirc.com/ip.89.176.141.110] has joined ##java [02:18]
dfee [dfee!~dfee@162-227-164-101.lightspeed.sntcca.sbcglobal.net] has joined ##java [02:31]
dengbojing [dengbojing!~dengbojin@125.80.141.187] has joined ##java [02:33]
tomboy65 [tomboy65!~tomboy64@gateway/tor-sasl/tomboy64] has joined ##java [02:35]
exonity01 [exonity01!uid364582@gateway/web/irccloud.com/x-xmljkjyawitdwvzz] has joined ##java [02:48]
NorthwestVegan [NorthwestVegan!~Northwest@gateway/tor-sasl/northwestvegan] has joined ##java [02:48]
oxum [oxum!~oxum@122.172.40.244] has joined ##java [02:52]
oxum [oxum!~oxum@122.172.40.244] has joined ##java [02:55]
RazielZ [RazielZ!~Raziel@unaffiliated/raziel] has joined ##java [02:57]
sa02irc [sa02irc!~mbax@155-079-043-212.ip-addr.inexio.net] has joined ##java [03:04]
zulutango [zulutango!~zulutango@d58-105-160-58.dsl.vic.optusnet.com.au] has joined ##java [03:10]
ueb [ueb!05586bbc@net-5-88-107-188.cust.vodafonedsl.it] has joined ##java [03:13]
ueb Hi there [03:13]
ueb I've got 2 critical webapps, and I'd like to prevent memory leak from one compromising the other [03:16]
ueb I did it using 2 distinct VMs, but there's an overhead for that [03:17]
ueb having 2 distinct instances of Tomcat could solve this problem? [03:18]
Maldivia ueb: it could, yes -- really depends on what kind of memory leak you have; you could also just fix it :D [03:21]
ueb Maldivia yes sure :) [03:25]
ueb it's better 2 distinct Tomcat instances to avoid this problem? [03:27]
Maldivia personally, I'm not much for the "let's deploy all our apps on this single app server" approach, so yeah -- go with distinct JVMs :D [03:33]
ueb yes, that's why I'm thinking about splitting the app server into 2 "instances", not VMs [03:58]
algun_ [algun_!~algun@unaffiliated/algun] has joined ##java [04:06]
oxum [oxum!~oxum@122.172.40.244] has joined ##java [04:07]
[twisti] im surprised nobody suggested docker [04:24]
Maldivia [twisti]: I was assuming he started there with the multiple VMs ? [04:26]
[twisti] good point [04:27]
eckman parted the channel: [04:29]
hbnrf [hbnrf!~hbnrf@gateway/tor-sasl/hbnrf] has joined ##java [04:30]
oxum [oxum!~oxum@122.172.40.244] has joined ##java [04:45]
nsaunders [nsaunders!~nicholas@208.110.107.226] has joined ##java [04:48]
oxum [oxum!~oxum@122.172.40.244] has joined ##java [04:57]
asymptotically [asymptotically!~asymptoti@gateway/tor-sasl/asymptotically] has joined ##java [04:58]
black_ant [black_ant!~antilope@unaffiliated/black-ant/x-1505394] has joined ##java [04:58]
Gazooo [Gazooo!~Gazooo@097-101-147-050.res.spectrum.com] has joined ##java [05:09]
nikkal [nikkal!~nikos@46.12.96.39.dsl.dyn.forthnet.gr] has joined ##java [05:09]
ueb [ueb!05586bbc@net-5-88-107-188.cust.vodafonedsl.it] has joined ##java [05:13]
ueb Hi there [05:13]
IoannisJVM [IoannisJVM!4fa7db70@ppp079167219112.access.hol.gr] has joined ##java [05:13]
ueb I've got 2 critical webapps, on 2 distinct VMs [05:13]
IoannisJVM parted the channel: [05:13]
ueb to avoid VM overhead I'd like to use a single VM, increasing Tomcat memory settings [05:13]
ueb what do you think about? [05:13]
yawkat dont do it [05:14]
ueb why? [05:14]
yawkat you save maybe a 100M. memory is cheap. the added administrative pain isnt [05:14]
ueb but I created that secondary VM only for running Tomcat [05:15]
yawkat so? [05:16]
ueb VM1 is running Tomcat1 + MySQL1, VM2 is running Tomcat2 connected to MySQL1 [05:16]
Me4502 [Me4502!~quassel@unaffiliated/me4502] has joined ##java [05:16]
yawkat oh you mean literally a vm. as in kvm? [05:17]
ueb yes [05:17]
yawkat then it's fine either way [05:17]
yawkat again, you save relatively little memory but the benefit for multiple vms is less as well [05:17]
ueb 2 VMware virtual machines on ESXi [05:17]
ueb what do you suggest then? [05:18]
yawkat do whatever you like [05:18]
ueb sure but what's the best thing in your opinion [05:19]
yawkat id actually prefer putting the mysql into its own vm, because mysql is more linked to the system and easier to maintain that way [05:19]
yawkat ive done both depending on mood. [05:19]
yawkat and theres always docker like [twisti] suggested [05:19]
ueb ok thanks [05:21]
ueb maybe I'll change OS for the secondary VM, from Windows XP to a minimal Debian [05:21]
yawkat xp O.o [05:22]
mbooth Windows XP! [05:22]
mbooth ueb: I see you are developing in ~2005. Wait until you see what 2020 is like :-o [05:22]
ueb hehehe [05:23]
ueb it was an old VM never destroyed :) [05:23]
ueb so open options are 1) convert VM OS 2) using a single VM setting Tomcat memory [05:26]
conan [conan!~conan@mdproctor.plus.com] has joined ##java [05:27]
ueb considering how they're linked, what's the best option in your opinion? [05:28]
bobek [bobek!~bobek@unaffiliated/bobek] has joined ##java [05:29]
mbooth ueb: Can you imagine anyone in the world will say "yes, continue running a critical application on Windows XP in 2020" ??? [05:30]
[twisti] ueb: i very much hope that windows xp is not connected to anything network related, let alone the internet [05:31]
nsaunders windowsxp!!? good golly. what's your IP address? [05:32]
[twisti] setting up a vm should be a few minutes work at most, setting up a new docker container ought to be a matter of seconds [05:32]
Maldivia mbooth: you mean all the ATMs etc that still run XP :D [05:32]
mbooth Maldivia: They mostly run OS2 where I live :-o [05:32]
ueb yes, most ATMs still run XP :) [05:33]
ueb however, consider that it's an intranet webapp [05:33]
Maldivia mbooth: oh, and the nuclear submarines runs Windows XP for Submarines :D [05:33]
Maldivia (yes, that's an actual thing!) [05:34]
mbooth Maldivia: Somehow I doubt ueb has the same kind of special custom support agreement that the MoD has with Microsoft ;-) [05:36]
ueb docker is not possible, because on that physical server there is ESXi [05:37]
deavmi [deavmi!~tbk@165.0.49.28] has joined ##java [05:38]
doev [doev!~xyz@207.180.208.66] has joined ##java [05:40]
algun [algun!~algun@unaffiliated/algun] has joined ##java [05:40]
doev Hi! [05:40]
doev Is there any tool to generate a classdiagramm of an whole java-projekt? [05:40]
mbooth uml [05:41]
mbooth doev, UML stands for the "Unified Modeling Language," a graphical notation for software development. Depending on the shop using it, it's either a useful aid or a life-consuming cult. See http://java-source.net/open-source/uml-modeling and the ##uml channel here on FreeNode. [05:41]
chris64 [chris64!~chris@unaffiliated/chris64] has joined ##java [05:42]
gelignite [gelignite!~gelignite@55d4550d.access.ecotel.net] has joined ##java [05:42]
mbooth doev: You may be able to find tools to generate UML diagrams from existing code. My question is why though? Is this a homework question? [05:42]
doev mbooth: A third party has create a system for us. We want to ask them to send us a classdiagramm to see internal struktures. I want to be sure, that there is software to generate one with minimal effort. [05:44]
yawkat why do you want to see internals? and why as uml? [05:45]
doev I think Java is high struktured and it must be possible. [05:45]
yawkat but sure, intellij ultimate can do it [05:45]
doev ceo is thinking about going to another company. I was asked to tell him what I think about this "crazy" idea. [05:46]
Atlenohen [Atlenohen!~Walter@cpe2-23-244.cable.triera.net] has joined ##java [05:47]
Stummi doev, so, you are expected to get any useful insights on code/architecture quality from looking at a UML diagram? [05:53]
doev Stummi: yes [05:54]
Stummi uhm, well. Good luck, I think? [05:54]
doev Stummi: thank you. [05:54]
Stummi IIRC eclipse has (had?) a plugin to export a codebase as UML diagram [05:55]
Stummi but Its like 3 years ago that I used eclipse [05:55]
ueb I don't love WinXP either [05:57]
deavmi [deavmi!~tbk@165.0.49.28] has joined ##java [05:58]
ueb however, what's the best thing in your opinion to manage 2 critical webapps? [05:59]
ueb 1) mantain 2 VMs 2) unify on a single VM and setting Tomcat memory properly? [06:00]
doev My itension is to advice my ceo, who to start conversation with our partner. I am not member of the project, but there must be a problem. Maybe it is getting to expensive or what ever. If he thinks that he can instruct a third party to work on extensions, I have to tell him, that we need to know how well the project is struktured. We need some information about the project structure. I think asking for the source code is a face-off. [06:03]
doev sometimes I hate my job. :( [06:04]
LiftLeft [LiftLeft!~LiftLeft@2001:19f0:5c01:755:5400:2ff:fe62:b1d9] has joined ##java [06:10]
Maldivia doev: well, what kind of contract did you have with this 3rd party -- clauses about source code access are usually specificed explicitly there to avoid confusion in the future [06:14]
oxum [oxum!~oxum@122.172.40.244] has joined ##java [06:15]
Herbstleyd [Herbstleyd!~Herbstley@p200300db77214a0000dc62da95130f04.dip0.t-ipconnect.de] has joined ##java [06:15]
Maldivia doev: IP rights, copyrights, etc etc, all the lawyery stuff [06:16]
oxum [oxum!~oxum@122.172.40.244] has joined ##java [06:17]
upgrdman [upgrdman!~upgrdman@blender/artist/upgrdman] has joined ##java [06:18]
cliluw [cliluw!~cliluw@unaffiliated/cliluw] has joined ##java [06:18]
Jantz [Jantz!~IceChat9@118-93-0-78.dsl.dyn.ihug.co.nz] has joined ##java [06:21]
combatvet_ [combatvet_!~c4@gateway/tor-sasl/combatvet] has joined ##java [06:21]
dreamreal morning [06:23]
donofrio [donofrio!~donofrio@host-252.subnet-17.med.umich.edu] has joined ##java [06:23]
sunri5e [sunri5e!~sunri5e@unaffiliated/sunri5e] has joined ##java [06:38]
waz [waz!~waz@pdpc/supporter/active/waz] has joined ##java [06:46]
conan [conan!~conan@mdproctor.plus.com] has joined ##java [06:48]
sizeof_void34 [sizeof_void34!~sizeof_vo@ppp91-79-133-235.pppoe.mtu-net.ru] has joined ##java [06:49]
maryo [maryo!~Maryo@unaffiliated/maryo] has joined ##java [07:01]
ludocode [ludocode!~quassel@23-233-62-100.cpe.pppoe.ca] has joined ##java [07:08]
Krustali [Krustali!~krustali@103.105.48.234] has joined ##java [07:16]
Cahaan [Cahaan!~Cahaan@47.153-136-217.adsl-dyn.isp.belgacom.be] has joined ##java [07:20]
Feuermagier_ [Feuermagier_!~Feuermagi@213.178.26.41] has joined ##java [07:22]
dreamreal https://github.com/nebula-plugins/gradle-lint-plugin [07:30]
dreamreal dreamreal's title: "GitHub - nebula-plugins/gradle-lint-plugin: A pluggable and configurable linter tool for identifying and reporting on patterns of misuse or deprecations in Gradle scripts." [07:30]
Krustali [Krustali!~krustali@94.229.69.244] has joined ##java [07:37]
mzajc [mzajc!~marko@unaffiliated/mzajc] has joined ##java [07:38]
Krustali [Krustali!~krustali@94.229.69.244] has joined ##java [07:38]
Krustali [Krustali!~krustali@185.59.221.95] has joined ##java [07:41]
conan [conan!~conan@mdproctor.plus.com] has joined ##java [07:53]
maryo_s [maryo_s!~Maryo@unaffiliated/maryo] has joined ##java [08:01]
maryo_s [maryo_s!~Maryo@unaffiliated/maryo] has joined ##java [08:02]
maryo_t [maryo_t!~Maryo@unaffiliated/maryo] has joined ##java [08:03]
KidBeta [KidBeta!~Kidbeta@hpavc/kidbeta] has joined ##java [08:03]
enoq [enoq!~enoq@2a02:8388:6a87:b080:649f:9456:c1b1:28e4] has joined ##java [08:10]
albethere [albethere!~albethere@cpe-74-65-149-93.maine.res.rr.com] has joined ##java [08:14]
Lengsdorfer [Lengsdorfer!~Lengsdorf@unaffiliated/lengsdorfer] has joined ##java [08:21]
AcTiVaTe [AcTiVaTe!~activate@host-08q2w0u39gommnxnj0.pdv6.tnz1.zeelandnet.nl] has joined ##java [08:28]
stryek [stryek!uid332574@gateway/web/irccloud.com/x-irnohkkfufnwdyiz] has joined ##java [08:34]
hypc [hypc!~Thunderbi@60.16.233.248] has joined ##java [08:37]
plarsen [plarsen!~plarsen@redhat/jboss/pdpc.professional.plarsen] has joined ##java [08:38]
AcTiVaTe [AcTiVaTe!~activate@host-08q2w0u39gommnxnj0.pdv6.tnz1.zeelandnet.nl] has joined ##java [08:43]
black_ant [black_ant!~antilope@unaffiliated/black-ant/x-1505394] has joined ##java [08:43]
dmlloyd trustin lee (the netty author) had a tool called "apiviz" that would use graphviz to add UML type hierarchy diagrams to your javadoc [08:54]
dmlloyd clickable etc. [08:54]
dmlloyd it sort of bitrotted but the fundamental idea is sound IMO [08:54]
dmlloyd visualizing an API in terms of its type hierachy is useful [08:54]
sonOfRa How do you generally order your annotations when there's more than one on a class? Alphabetically? Semantically-then-alphabetically? By length so it's more aesthetically pleasing to read? [08:55]
hypc1 [hypc1!~Thunderbi@60.16.233.248] has joined ##java [08:55]
sonOfRa Class in question has 6 annotations, 4 lombok-annotations and 2 mongo annotations. Currently they're ordered alphabetically, but there's so many options! [08:56]
CookieM [CookieM!~tomek@r-45-155-148-237.gpon.bialnet.pl] has joined ##java [08:57]
wedr [wedr!~tom_mai78@pool-108-20-128-8.bstnma.fios.verizon.net] has joined ##java [09:01]
kirua [kirua!~kirua@unaffiliated/kirua] has joined ##java [09:02]
di0_ [di0_!~di0_@unaffiliated/di0-/x-5053590] has joined ##java [09:02]
di0_ [di0_!~di0_@unaffiliated/di0-/x-5053590] has joined ##java [09:03]
mbooth sonOfRa: I'd struggle to care too much, tbh [09:09]
Feuermagier[PC] [Feuermagier[PC]!~Feuermagi@213.178.26.41] has joined ##java [09:10]
dreamreal is definitely struggling to care too much too [09:10]
Feuermagier [Feuermagier!~Feuermagi@213.178.26.41] has joined ##java [09:13]
tassee [tassee!~tasse@55d41b6f.access.ecotel.net] has joined ##java [09:15]
[twisti] by length [09:17]
[twisti] and may God forgive me for my sins [09:17]
dreamreal sonOfRa: you should use a ton of tabs and organize by those [09:21]
sonOfRa D [09:21]
sonOfRa [twisti]: yeah I feel similarly about organizing them by length. It *looks* good but makes little sense! [09:22]
dreamreal I'd organize them by importance, actually: semantically [09:22]
dreamreal so all the mongo annotations, then the JSON annotations, then... [09:22]
TideFN [TideFN!~TideFN@c-71-59-26-75.hsd1.ga.comcast.net] has joined ##java [09:27]
Jonopoly [Jonopoly!~Jonopoly@unaffiliated/jonopoly] has joined ##java [09:30]
ueb [ueb!05586bbc@net-5-88-107-188.cust.vodafonedsl.it] has joined ##java [09:32]
ueb Hi there [09:32]
dreamreal hi [09:32]
cheeser [twisti]: i order by length, too. :) [09:34]
[twisti] ueb: are you going to ask whether to run two webapps on the same vm or different vms again ? [09:34]
tassee [tassee!~tasse@55d40dcd.access.ecotel.net] has joined ##java [09:34]
[twisti] you know the answer to that isnt going to change, right ? [09:34]
ueb [twisti] no [09:35]
cheeser "... not ... anymore?" [09:35]
ueb it's about memory leak [09:35]
dreamreal and yet you've still not asked anything :) [09:35]
cheeser give her a second [09:36]
TideFN [TideFN!~TideFN@c-71-59-26-75.hsd1.ga.comcast.net] has joined ##java [09:36]
dreamreal starts the el timer-o :) [09:36]
ueb in your opinion the call to the following function for printing a Jasper Report could lead to a memory leak ? https://pastebin.com/yk6D4RvN [09:37]
dreamreal Yes [09:37]
cheeser profiler [09:37]
cheeser ueb, A profiler is a tool to find performance bottlenecks. VisualVM is a free profiler available from https://visualvm.github.io/ (included with OpenJDK up to Java 8); JProfiler and YourKit cost money but usually have free eval periods or time-limited betas. Java Flight Recorder and Java Mission Control were recently opened sourced under OpenJDK. [09:37]
ueb the caller is: MyApplication.getInstance().stampaReport("report.jasper", id_ord, 0, true); [09:37]
dreamreal ueb: there's really no way for US to tell. Can your code lead to a memory leak? Sure. A profiler is how you'll find that out, not by asking randos on IRC [09:40]
ueb randos? [09:40]
ueb we can investigate about it.. not randos [09:41]
mbooth I mean, your IDE can warn you about potential unclosed resources. I'm sure Eclipse can do this ever since Java 7 (try-with-resources) was introduced... [09:41]
ueb however, regarding VisualVM, should I install it on the remote linux machine without downtime? [09:41]
ueb mbooth ok therefore I should install it locally for testing, correct? [09:42]
hypc [hypc!~Thunderbi@113.232.157.186] has joined ##java [09:42]
mbooth ueb: You... Don't already use an IDE? [09:43]
ueb mbooth sure, I use Eclipse for this project [09:43]
mbooth ueb: Then I don't understand your question. [09:45]
mbooth For Visual VM, it can connect to remote JVMs [09:45]
esx [esx!~manjaro-u@unaffiliated/esx] has joined ##java [09:46]
bn_work [bn_work!uid268505@gateway/web/irccloud.com/x-ixdtxirgugxidmcy] has joined ##java [09:48]
ueb mbooth VisualVM plugin is available to Eclipse too? [09:49]
mbooth ueb: No, VisualVM is a profiler [09:49]
ueb on its site I see Netbeans plugin [09:49]
dreamreal ueb: "randos" == random people on the internet. Us, in other words. [09:49]
banisterfiend [banisterfiend!~textual@ruby/staff/banisterfiend] has joined ##java [09:50]
ueb ok available IDE integrations are listed here https://visualvm.github.io/idesupport.html [09:50]
ueb ueb's title: "VisualVM: IDE Integrations" [09:50]
dreamreal thanks! [09:51]
ueb you're welcome :) [09:52]
hypc1 [hypc1!~Thunderbi@113.232.157.186] has joined ##java [09:52]
thecoffemaker [thecoffemaker!~thecoffem@unaffiliated/thecoffemaker] has joined ##java [09:52]
conan [conan!~conan@mdproctor.plus.com] has joined ##java [09:58]
Feuermagier[PC] [Feuermagier[PC]!~Feuermagi@213.178.26.41] has joined ##java [10:00]
vveer [vveer!~veer@unaffiliated/bhlh] has joined ##java [10:00]
kirua hi [10:00]
kirua i have the follwing issue with openjpa : https://pastebin.com/Wtmk6jmZ is it because the entity is detached ? [10:01]
ueb56 [ueb56!05586bbc@net-5-88-107-188.cust.vodafonedsl.it] has joined ##java [10:03]
enoq we are currently using rhel 7 and openjdk 8 and are looking to upgrade to 11; is there a good way to run both jvms in parallel? [10:03]
enoq JVM_HOME? [10:03]
dreamreal kirua: ... probably? [10:03]
dreamreal enoq: sure, it's just a path [10:03]
dreamreal enoq: sdkman even makes it trivial [10:03]
freeone3000 [freeone3000!~freeone30@Syncleus/dev/freeone3000] has joined ##java [10:04]
kirua dreamreal: what's your guess ? the stacktrace is pointing towards the subclass that already exists, and there are multiple check of the hashcode of each object in that stacktrace [10:04]
enoq dreamreal: thank you [10:04]
dreamreal kirua: *shrug* Without seeing the code there's no way to tell. But it very well could be a detached entity. [10:05]
kirua the procedure to solve that kind of mistake, is to follow the stacktrace and find where the entity gets detached ? [10:05]
enoq dreamreal: so just using a different JVM_HOME environment variable in a systemd unit should be enough, right [10:05]
dreamreal JAVA_HOME, normally, but sure [10:06]
enoq my bad, right, thank you :) [10:06]
wedr Currently-in-production legacy code I'm working on contains a triple-level HashMap collection object, HashMap<A, ConcurrentHashMap<B, HashMap<C, D>>>. Tempted to refactor this. [10:06]
mbooth enoq: Java 8 and Java 11 are parallel installation right from the RHEL repositories -- I guess you didn't try it? [10:10]
mbooth s/installation/installable/ [10:10]
kirua dreamreal: can a 'em.flush()' cause an entity to be detached ? [10:22]
dreamreal it shouldn't [10:23]
ueb56 anybody here uses Jasper Reports? [10:23]
junktext [junktext!junktext@fsf/member/junktext] has joined ##java [10:23]
conan [conan!~conan@mdproctor.plus.com] has joined ##java [10:23]
ueb56 I see memory leaks after creating a hundred of reports [10:24]
orbyt_ [orbyt_!~orbyt@172.92.4.78] has joined ##java [10:24]
ueb56 do you think that my code could be optimized to avoid it? https://pastebin.com/yk6D4RvN [10:25]
dreamreal is it caused by your code or jasper [10:26]
ueb56 it's caused by my code using Jasper [10:29]
dreamreal sighs [10:29]
ueb56 but it's hard to say if it's strictly due to my code or Jasper.. [10:29]
dreamreal okay, so let's go with "no" then [10:29]
ueb56 looked at it? [10:30]
dreamreal nope [10:31]
dreamreal simple deduction [10:31]
ueb56 I'm trying to finally close objects or make them null [10:33]
Feuermagier_ [Feuermagier_!~Feuermagi@154.28.188.118] has joined ##java [10:34]
bobek [bobek!~bobek@unaffiliated/bobek] has joined ##java [10:49]
SwiftMatt [SwiftMatt!~Objective@2601:282:4300:3e:1938:c66f:4b3:1786] has joined ##java [10:53]
Havenfield [Havenfield!~Arsio@152.32.99.162] has joined ##java [10:54]
vveer [vveer!~veer@unaffiliated/bhlh] has joined ##java [10:56]
sa02irc [sa02irc!~mbax@155-079-043-212.ip-addr.inexio.net] has joined ##java [11:02]
yottabyte parted the channel: [11:12]
algun [algun!~algun@unaffiliated/algun] has joined ##java [11:14]
vveer [vveer!~veer@unaffiliated/bhlh] has joined ##java [11:15]
rajrajraj [rajrajraj!uid72176@gateway/web/irccloud.com/x-cuqovivhbnmwvgwc] has joined ##java [11:16]
rippa [rippa!~rippa@ppp-vpdn-37.1.85.157.yarnet.ru] has joined ##java [11:22]
dfee [dfee!~dfee@162-227-164-101.lightspeed.sntcca.sbcglobal.net] has joined ##java [11:24]
LiftLeft [LiftLeft!~LiftLeft@2001:19f0:5c01:755:5400:2ff:fe62:b1d9] has joined ##java [11:30]
enoq mbooth: we don't have rights to manage our servers [11:35]
enoq we need to open tickets first and check beforehand that they won't screw up [11:35]
dreamreal hands enoq docker and/or podman [11:35]
dreamreal now you do! [11:36]
enoq yeah, we are using docker, but it's and older and buggy version [11:36]
cheeser podman++ [11:36]
dreamreal swaps it out for podman [11:36]
enoq and we need to dockerize hybris first which will be a pain [11:36]
dreamreal I actually prefer podman to docker but docker's still the standard [11:36]
enoq well, you usually work with k8s in that case I think [11:36]
enoq also I'm unsure how well podman is supported on macos [11:37]
dreamreal It's all OCI [11:37]
dreamreal you should be able to BUILD with docker and deploy with podman [11:38]
enoq right, issue would be more docker-compose [11:38]
dreamreal ("brew install podman" works, BTW - it's a cask, but still!) [11:38]
enoq oh cool, is that really podman or just some mac os app named the same [11:39]
dreamreal looks like a real podman [11:40]
enoq thank you, will take a look :) [11:41]
dreamreal for development it shouldn't matter; on OSX I'd use docker desktop (and I do.) Podman would be for the TARGET environment to run, as podman can run docker images fine (they're all OCI) [11:42]
algun [algun!~algun@unaffiliated/algun] has joined ##java [11:47]
llorllale [llorllale!~llorllale@2607:9880:1078:ce:f18f:459e:be0b:f24f] has joined ##java [11:59]
Hal9k [Hal9k!~Hal9k@unaffiliated/kusanagi] has joined ##java [12:02]
jesmon [jesmon!~user@199.83.14.4] has joined ##java [12:04]
howdoi [howdoi!uid224@gateway/web/irccloud.com/x-nvovmlrqrbxlreho] has joined ##java [12:05]
mbooth Do you pronounce "podman" like a super hero (like Batman) or like a surname (like Goldman-Sachs)? [12:07]
dreamreal "po-DEE-mun" [12:07]
mbooth Heh [12:07]
arcanescu [arcanescu!36f0c5eb@54-240-197-235.amazon.com] has joined ##java [12:09]
arcanescu I have a string as follows str = "abc(1,2,3)" I am trying to split it so that i get [1,2,3] with the following regex Arrays.asList(str.split("\\((.*?)\\)")) ) - it seems i keep getting only 1 char [12:10]
arcanescu what would be the correct way to do this split .. [12:10]
freeone3000 arcanescu, you're splitting on everything. [12:11]
freeone3000 arcanescu, One thing you could do is instead of doing a split, do a match, such as on \d+ in that example. [12:12]
freeone3000 arcanescu, If you split on "[)(,]" you'll get "abc","1","2","3" [12:12]
arcanescu hmm...so i do a match on \d+ ? and then split? [12:13]
cheeser if you match on \d+ you'd get a set of matches. there'd be nothing to split. [12:14]
dreamreal mbooth: ... just like "buh-TEEM-un" [12:15]
arcanescu so i dont understand how the split would work then ... [12:15]
dreamreal you wouldn't split, you'd just pull out the values you need [12:15]
dreamreal you'd get a list of matches and seed the array/collection/list with the results [12:16]
sonOfRa arcanescu: are you trying to parse a programming language with regexes [12:17]
arcanescu freeone3000 i start getting whitespace with v [12:21]
arcanescu "[)(,] [12:21]
arcanescu nvm ill replace them with replaceall [12:24]
dreamreal ... [12:25]
Jantz [Jantz!~IceChat9@118-93-0-78.dsl.dyn.ihug.co.nz] has joined ##java [12:27]
o_david [o_david!~o_david@cpc99568-brnt1-2-0-cust1836.4-2.cable.virginm.net] has joined ##java [12:29]
o_david hi. currently I have a EnvironmentVarParser, SettingsFileParser and ArgumentParser that all duplicate knowledge and defaults of some settings. I'd like to centralize that into some kind of Setting class for each configurable, and ideally have some API like .get<IsDebugEnabledSetting>() or similar for accessing them. it looks like this is possible using generics (and some internal Map<Class, ..>) but I [12:31]
o_david can't find any idiomatic java that does that. is there some better method? [12:31]
o_david (the goal is to pull details of one setting into a single independent class, and remove knowledge of those settings from the central settings parsing code) [12:31]
o_david one problem with .get<...>() is that the return type of .get() would need to vary according to the value type of the setting. I don't know if that is possible in java like it is in c++ [12:33]
dreamreal configuration [12:36]
dreamreal dreamreal, what does that even *mean*? [12:36]
dreamreal hmm [12:36]
dreamreal o_david: check out https://github.com/lightbend/config#api-example [12:36]
dreamreal dreamreal's title: "GitHub - lightbend/config: configuration library for JVM languages using HOCON files" [12:36]
dreamreal or spring boot, or anything like that; lots of packages handle configuration from various places [12:37]
o_david thx [12:37]
dreamreal gah, $work left my lib to do that as a private repo :( [12:38]
led1 [led1!~Thunderbi@217.66.160.14] has joined ##java [12:40]
conan [conan!~conan@mdproctor.plus.com] has joined ##java [12:44]
led1 [led1!~Thunderbi@217.66.160.14] has joined ##java [01:01]
CombatVet [CombatVet!~c4@gateway/tor-sasl/combatvet] has joined ##java [01:04]
nikkal [nikkal!~nikos@46.12.96.39.dsl.dyn.forthnet.gr] has joined ##java [01:04]
eckman [eckman!~eckman@174.111.201.232] has joined ##java [01:05]
oxum [oxum!~oxum@122.172.40.244] has joined ##java [01:14]
SwiftMatt [SwiftMatt!~Objective@2601:282:4300:3e:1938:c66f:4b3:1786] has joined ##java [01:15]
bionade24 Hi, I have a JPanel with already some images in it, but it won't let me add a GridLayout later on. It's always invisible. If I add a Button without GridLayout, I have to set a Size to make it visible. How can I solve this? Can I set the area of the GridLayout? [01:16]
ernimril bionade24, "adding a GridLayou" when already having components inside it is a bad idea [01:17]
ernimril bionade24, if you update the layout you have to call jPanel.revalidate() [01:17]
freeone3000 bionade24, What's the top-level LayoutManager you're using? Do you need a separate grid? [01:21]
bionade24 My Big Problem is that there is now other method to get my Custom Button type to not use full x space available that I'm aware of. http://ix.io/2quP Method is openIngameMenu() [01:24]
dreamreal bionade24: so... add a panel [01:24]
freeone3000 oh geez someone wrote a game in swing again. we should have a factoid for this, but... *sigh* [01:25]
bionade24 freeone3000: I know my teachers forces us too :( [01:25]
freeone3000 bionade24, Do not use one central ActionListener, use one ActionListener per action. [01:25]
cheeser games should be written in fx ;) [01:25]
ernimril swing works fine, sure fx has a few new features, but for trivial games it does not really matter [01:26]
freeone3000 Because now every button calls one giant statement which then has to pick which button originally spawned it and you *had this info* when you added it. One ActionListener per action. [01:26]
ernimril now one method reference per .addActionListener [01:26]
ernimril or lambda [01:26]
ernimril yikes... that code... I am glad I have no spoons nearby ... :-) [01:27]
freeone3000 Well, the intent's good. It actually does use a time-delta-based update approach for repaint. [01:27]
ernimril using Thread.yield and Thread.sleep(1) !?!? [01:28]
bionade24 ernimril: Ignore the loop, it's in early stage I switched from using timers some hours ago [01:28]
freeone3000 I said the INTENT was good! [01:28]
freeone3000 I'd... actually prefer it to be on a timer. ScheduledExecutorService.scheduleAtFixedRate(). [01:28]
ernimril bionade24, if you want help with layout a sketch of what you want is typically better than non-working code [01:29]
freeone3000 It looks like the GridLayout is being added on top of the panel in order to display a game menu... Instead of drawing it directly to the game, it's being absolutely positioned since the top-level layout is a NullLayout [01:29]
bionade24 Ok, help me everywhere. What should I use instead of Thread.yield() or Thread.sleep()? [01:29]
ernimril as said above: ScheduledExecutorService.scheduleAtFixedRate() [01:30]
bionade24 freeone3000: "The internet" said timers were unprecise [01:31]
freeone3000 bionade24, So's Thread.sleep(), in exactly the same ways for exactly the same reasons. [01:31]
freeone3000 bionade24, That's why you have the entire time-delta interpolation math! [01:31]
ernimril bionade24, all timing things are unreliable, your OS may swap out your process and keep it hibernated forever [01:31]
bionade24 ernimril: Should install Linux-RT, shouldn't I ? ;) [01:32]
freeone3000 Thread.yield() is a *weird* op, as well. What does yielding a time-slice even mean? Your delta is smaller than a quantum! [01:32]
freeone3000 Basically: You want something to happen at a fixed rate, you schedule at a fixed rate, and your time-delta code handles when it's slightly off. [01:33]
conan [conan!~conan@mdproctor.plus.com] has joined ##java [01:33]
orbyt_ [orbyt_!~orbyt@172.92.4.78] has joined ##java [01:35]
freeone3000 As for the layout: Okay, the approach actual games take is to draw menus in-engine with a rendering toolkit. This is a school assignment, so too much work. You want a separate JPanel with its own LinearLayout in orientation VERTICAL (not GridLayout, which always looks like ass) -- ON THE EDT: place the JPanel arbitrarily in its parent, then call .invalidate(); .revalidate(); repaint(); yes all three, in that order. [01:35]
freeone3000 From your game loop, this will have to be handled in an EventQueue.invokeLater() to add it to the EDT task queue. [01:36]
hypc1 [hypc1!~Thunderbi@113.232.157.186] has joined ##java [01:36]
freeone3000 Your top-level JPanel should also explicitly have .setLayout(null); called on it, so items don't automatically position themselves in BorderLayout.CENTER. Unless you want that. [01:36]
ernimril as always with ui, it is best to start with a sketch or two and show how you want things to look [01:37]
ernimril too hard to suggest different alternative without it [01:38]
ernimril one option for having a menu over things with swing would of course be the JLayeredPane [01:40]
conan [conan!~conan@mdproctor.plus.com] has joined ##java [01:41]
freeone3000 ...yes that's for sure *an* option [01:42]
freeone3000 It might actually work quite well here, for a menu on top of a game, I just remember it was a pain when I last used it. [01:42]
bionade24 Is there any Java or C++ Open Source Game engine you would suggest me to rewrite the game in after I submitted it? [01:43]
freeone3000 Unity's popular, and well-suited for small tasks like this. [01:45]
freeone3000 As for open-source... Godot, maybe? It's been making some very strong strides. [01:45]
kirua [kirua!~kirua@unaffiliated/kirua] has joined ##java [01:50]
paddyez [paddyez!~Patrick-E@wikipedia/paddyez] has joined ##java [01:54]
sl33k [sl33k!~sl33k@host86-188-35-105.range86-188.btcentralplus.com] has joined ##java [01:56]
sl33k xml [01:56]
sl33k Working with XML? Consider ~jackson, ~xstream, or ~jaxb to read and write XML. Avoid SAX (org.xml.sax) and DOM (org.w3c.dom); StAX is okay (https://docs.oracle.com/javase/tutorial/jaxp/stax/index.html ), but these days most use jackson. [01:56]
sl33k jaxb [01:56]
sl33k sl33k, jaxb is short for Java Architecture for XML Binding (JAXB), a library to turn java objects into XML and back. Part of the java-ee umbrella. https://github.com/javaee/jaxb-v2 [01:56]
sl33k Hi guys. I'm stuck on how to map an Xml node i have generated from jaxb xml schema where the property name is just a field Element any; annotated with a @XmlAnyElement. [01:58]
sl33k I found it odd I'd have to implement and/or create a whole Element meself, and wondered if there was a subclass that made this trivial [01:58]
sl33k wonder also if there might be a jaxb binding that allowed me to map this to an object instead [01:59]
bobek [bobek!~bobek@unaffiliated/bobek] has joined ##java [01:59]
freeone3000 yes. absolutely. what object do you want it to map to? [02:01]
nickel8448 [nickel8448!~nickel844@37.228.250.177] has joined ##java [02:02]
sl33k freeone3000: cheer. Will like it to map to one of the other generated objects from my xsd - let's say Info. [02:02]
kirua [kirua!~kirua@unaffiliated/kirua] has joined ##java [02:04]
sl33k freeone3000: from the copied xsd and what I can read it just says <xs:any minOccurs="0" processContents="lax"/> the relevant parts. This is somehow generating a JAXB bean with property: protected Element any; annotated with @XmlAnyElement that is then hard to work with [02:06]
freeone3000 xs:any is *explicitly* unspecified, that's the best jaxb can do from that schema. [02:12]
Sasazuka [Sasazuka!~Sasazuka@unaffiliated/sasazuka] has joined ##java [02:13]
dka hi all, how can I declare two bean of the same class without having the error 'The dependencies of some of the beans in the application context form a cycle:' [02:13]
freeone3000 sl33k, You can modify the code afterwards and then it'll try to map the actual XML documents to what you've supplied and error if it can't, but beware this won't be generatable from schema changes. [02:13]
sl33k freeone3000: how about if i go ahead and overwrite the xsd itself in such a way I specify the Info class it needs to be specific too or at least Object? How would that read like/ [02:15]
sl33k dka: think you can do this by naming the beans differently or specifying some more metadata. Is this spring? [02:16]
freeone3000 sl33k, it's usually xs:element or xs:sequence with corresponding names. See the other elements in the XSD as examples. [02:16]
dka yes it is spring boot 1.5.9, I have tried using @Primary on the bean and @Qualifier on the non primary, but I always end with that error [02:17]
VVD [VVD!~VVD@109.252.90.25] has joined ##java [02:17]
sl33k freeone3000: yeah will do that. Wonder why they went with Any in the first place! Only guess I have is cos they do some hacky stuff where it looks like an xml within an Xml. If i do have to create an Element - do you know what classes would get me ther? I am currently looking at JAXBContext [02:18]
sl33k dka: i've done this recently, let me look it up for you. [02:18]
freeone3000 sl33k, cheapest way is to run parseTree() on a string [02:18]
freeone3000 xml-in-xml is usually done with nested xsds (see: SVG-in-XHTML), it's part of the spec. xs:any is used when parts of the schema are unspecified or unspecifiable. [02:19]
dka this is what I am trying: https://gist.github.com/kopax/7eae9bdd8584008e89d54b35947f10ed [02:19]
dreamreal sl33k: what are you trying to parse, exactly? [02:19]
sl33k dreamreal: so I am not parsing, i've copied some xsd files that generated via Jaxb in my project and one of the nodes is a JAXB bean with property: protected Element any; [02:21]
sl33k dreamreal: I don't want to deal with creating an Element ideally! This is happening cos the schema says: <xs:any minOccurs="0" processContents="lax"/>. [02:21]
dreamreal well, what does the actual XML that schema represents put in that node? [02:21]
dreamreal I know it's wacky but that's what I was trying to get you to tell me with the first question [02:22]
sl33k dreamreal: from the XML example they have given me it puts something that looks like a Info.java (this is generated by one of their other xsds), the weird thing though is that this has xmlns xmlns:xsd and looks like a String generated from a root node. [02:23]
sl33k so its like a Wrapper for two other xml outputs both any. They have represented this using Element any; as above. [02:24]
dka did you find how sl33k ? [02:27]
freeone3000 ah. you can represent this as an xs:sequence with two optional elements. [02:29]
sl33k dka: i think I just used @Qualifier [02:32]
dka how do you declare two bean in the same class? @Qualifier is for usage [02:32]
kirua [kirua!~kirua@unaffiliated/kirua] has joined ##java [02:33]
sl33k dka: in your configuration, you can just have a method that returns the beans you want. If the return time is same, you just use @Bean @Qualifer("fooVersion") public VersionInstance getFooVersion() and then same for bar! [02:34]
sl33k dka: it might also depend on version you are using, I see some of my legacy code use the @Bean(name = "fooVersion") syntax! [02:37]
amosbird [amosbird!~amosbird@2a01:111:f102:8001::1761:4cf8] has joined ##java [02:38]
dka I've tried both none of them allow me to start spring with the two [02:40]
sl33k dka: i've just seen your snippet. Use @Qualifier to bring both in for testing purpose and remove the @Primary entiredly! [02:40]
dka I can't even have the two in the same class, I have tried to use two @Configuration class [02:40]
sl33k dka: your example looks generally okay. It should ideally work. Let me see if i can recreate it within my project - if it works for me then you'd have to produce a demo app :p [02:45]
llorllale [llorllale!~llorllale@CPEac202e24ff83-CMac202e24ff80.cpe.net.fido.ca] has joined ##java [02:47]
dka I always get : org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'credit': Requested bean is currently in creation: Is there an unresolvable circular reference? even if one of the two bean is created in a different class [02:48]
Krustali [Krustali!~krustali@178.239.168.190] has joined ##java [02:49]
deavmi [deavmi!~tbk@165.0.49.28] has joined ##java [02:52]
sonOfRa dka: well how are you expecting to get a List<StripeProduct> autowired into the constructors if you're currently in the process of... creating exactly those beans? [02:52]
dka I am not, there's a bean @Bean public List<StripeProduct> stripeProductList() in the same config [02:53]
NotKevIn [NotKevIn!~Thunderbi@ipbcc0e426.dynamic.kabel-deutschland.de] has joined ##java [02:54]
sl33k dka: i have a spring boot 2 app and doing a test with public List<String> list1 and list2 worked fine. [02:54]
dka This is the full @Configuration class https://gist.github.com/b8aea9e7398aa45dd7cd61fe9851ff2d [02:54]
sl33k dka: in my test, I don't bother about the primary at all. I treat both as named beans [02:55]
sonOfRa My guess is that Spring is trying to inject *all* StripeProduct beans into that list [02:55]
dka I am not using @Primary anymore if you look at the gist [02:55]
sonOfRa And that includes the two beans you are defining there [02:55]
dka sonOfRa, was right, removing those and calling stripeProductList() instead work [02:58]
dka thanjs [02:58]
lazyitdude [lazyitdude!~lazyitdud@d199-74-64-17.try.wideopenwest.com] has joined ##java [02:58]
sagax [sagax!~sagax_nb@213.138.71.146] has joined ##java [02:58]
sl33k i don't get it but well done @sonOfRa ! :D [03:05]
mizi [mizi!~mizi@2003:ec:f708:3900:4026:58ce:82d9:b5d0] has joined ##java [03:05]
sonOfRa sl33k: when you have a @Bean public Type foo(List<Type> types), then Spring will automatically try to @Autowired the List<Type>, trying to find *all* beans of that type in your applicationContext [03:06]
sonOfRa But, the method itself also returns a Bean of Type, so it is *part* of that list. Which is a circular dependency [03:06]
pppingme [pppingme!~pppingme@unaffiliated/pppingme] has joined ##java [03:07]
kirua [kirua!~kirua@unaffiliated/kirua] has joined ##java [03:09]
troulouliou_div2 [troulouliou_div2!~troulouli@unaffiliated/troulouliou-div2/x-0271439] has joined ##java [03:09]
acidjnk_new [acidjnk_new!~acidjnk@p200300d0c71a4b42acbe703afdc7cc4d.dip0.t-ipconnect.de] has joined ##java [03:12]
sl33k sonOfRa: so line #59 was the problem? [03:13]
sonOfRa well either that or 72/77 where the list gets injected [03:13]
sonOfRa Gotta break that cycle manually [03:13]
sl33k yeah! [03:13]
oxum [oxum!~oxum@122.172.40.244] has joined ##java [03:15]
sl33k sonOfRa: so even this snippet thats simple, is wrong as well. https://gist.github.com/kopax/7eae9bdd8584008e89d54b35947f10ed [03:15]
sonOfRa yeah [03:15]
sl33k and then he fixes by calling the method himself to get list. [03:16]
sl33k cheers again @sonOfRa and @dka . :) [03:16]
sl33k gives up on xml any for today! :( [03:16]
SwiftMatt [SwiftMatt!~Objective@2601:282:4300:3e:bde5:5171:8c51:8cd1] has joined ##java [03:18]
bolovanos [bolovanos!~bolovanos@ctrli.eu] has joined ##java [03:19]
NotKevIn I have an JavaFX ImageView and a Pane on top of it. The image has for example a resolution of 1280x720. Sine the ImageView is smaller the image gets scaled down. My problem is that I would like to put a rectangle onto the Pane, but the Pane only has the width and height of the ImageView (which has the scaled down image), hence the Recantle coordinates only fits to the scaled down version. How could I add an pane width the resolut [03:21]
NotKevIn scaled down image? [03:21]
Feuermagier[PC] [Feuermagier[PC]!~Feuermagi@213.178.26.41] has joined ##java [03:22]
dmiles [dmiles!dmiles@c-73-67-179-188.hsd1.wa.comcast.net] has joined ##java [03:24]
Cmaj6 [Cmaj6!~Cmaj6@77-41-20-31.ftth.glasoperator.nl] has joined ##java [03:28]
nakkht [nakkht!~nakkht@85.203.154.235] has joined ##java [03:37]
bolt [bolt!~r00t@unaffiliated/bolt] has joined ##java [03:42]
bolt [bolt!~r00t@unaffiliated/bolt] has joined ##java [03:45]
Jantz [Jantz!~IceChat9@2407:7000:8d04:100:6cf8:ef77:f7d0:691f] has joined ##java [04:00]
SwiftMatt [SwiftMatt!~Objective@2601:282:4300:3e:bde5:5171:8c51:8cd1] has joined ##java [04:01]
bolt [bolt!~r00t@unaffiliated/bolt] has joined ##java [04:04]
EmmaT [EmmaT!~EmmaT@c80-217-220-172.bredband.comhem.se] has joined ##java [04:05]
CookieM [CookieM!~tomek@r-45-155-148-237.gpon.bialnet.pl] has joined ##java [04:11]
bolt [bolt!~r00t@unaffiliated/bolt] has joined ##java [04:19]
oxum [oxum!~oxum@122.172.40.244] has joined ##java [04:20]
madmonkey [madmonkey!~elric@35.136.112.252] has joined ##java [04:23]
thecoffemaker [thecoffemaker!~thecoffem@unaffiliated/thecoffemaker] has joined ##java [04:25]
conan [conan!~conan@mdproctor.plus.com] has joined ##java [04:31]
murd0c [murd0c!~murd0c@2800:810:492:ee:7ddf:987b:3b9f:538d] has joined ##java [04:40]
Peste_Bubonica [Peste_Bubonica!~Peste_Bub@unaffiliated/peste-bubonica/x-4612396] has joined ##java [04:42]
p[a]ddy [p[a]ddy!~Patrick-E@wikipedia/paddyez] has joined ##java [04:49]
QuickWango [QuickWango!~quickwang@static-ip-62-113-199-104-inaddr.cubyte.org] has joined ##java [04:50]
Krustali [Krustali!~krustali@178.239.168.190] has joined ##java [04:52]
oxum [oxum!~oxum@122.172.40.244] has joined ##java [04:59]
upgrdman [upgrdman!~upgrdman@blender/artist/upgrdman] has joined ##java [05:00]
bolt [bolt!~r00t@unaffiliated/bolt] has joined ##java [05:00]
asymptotically [asymptotically!~asymptoti@gateway/tor-sasl/asymptotically] has joined ##java [05:09]
LiftLeft [LiftLeft!~LiftLeft@2001:19f0:5c01:755:5400:2ff:fe62:b1d9] has joined ##java [05:14]
edd_lc [edd_lc!~edd_lc@85-250-101-70.bb.netvision.net.il] has joined ##java [05:17]
sa02irc [sa02irc!~mbax@155-079-043-212.ip-addr.inexio.net] has joined ##java [05:20]
bolt [bolt!~r00t@unaffiliated/bolt] has joined ##java [05:20]
Velgor [Velgor!~Velgor@HSI-KBW-078-043-056-074.hsi4.kabel-badenwuerttemberg.de] has joined ##java [05:27]
dfee [dfee!~dfee@162-227-164-101.lightspeed.sntcca.sbcglobal.net] has joined ##java [05:27]
conan [conan!~conan@mdproctor.plus.com] has joined ##java [05:40]
orbyt_ [orbyt_!~orbyt@172.92.4.78] has joined ##java [05:52]
upgrdman [upgrdman!~upgrdman@blender/artist/upgrdman] has joined ##java [05:59]
Atlenohen [Atlenohen!~Walter@cpe2-23-244.cable.triera.net] has joined ##java [06:02]
dfee [dfee!~dfee@162-227-164-101.lightspeed.sntcca.sbcglobal.net] has joined ##java [06:04]
oxum [oxum!~oxum@122.172.40.244] has joined ##java [06:12]
edd_lc [edd_lc!~edd_lc@85-250-101-70.bb.netvision.net.il] has joined ##java [06:14]
edd_lc [edd_lc!~edd_lc@85-250-101-70.bb.netvision.net.il] has joined ##java [06:19]
algun [algun!~algun@unaffiliated/algun] has joined ##java [06:23]
Feuermagier_ [Feuermagier_!~Feuermagi@154.28.188.118] has joined ##java [06:28]
NotKevIn parted the channel: [06:29]
sb35 [sb35!~sb35@67.231.16.205] has joined ##java [06:41]
Cmaj6 [Cmaj6!~Cmaj6@77-41-20-31.ftth.glasoperator.nl] has joined ##java [06:48]
dualfade [dualfade!dualfade@gateway/vpn/protonvpn/dualfade] has joined ##java [06:52]
Sasazuka [Sasazuka!~Sasazuka@unaffiliated/sasazuka] has joined ##java [06:56]
Jantz [Jantz!~IceChat9@118-93-10-91.dsl.dyn.ihug.co.nz] has joined ##java [06:58]
BitShack [BitShack!~BitShack@unaffiliated/bitshack] has joined ##java [07:07]
juria_roberts [juria_roberts!cdfbe9b2@205.251.233.178] has joined ##java [07:11]
conan [conan!~conan@mdproctor.plus.com] has joined ##java [07:12]
beatbrot8 [beatbrot8!~beatbrot@p54913a93.dip0.t-ipconnect.de] has joined ##java [07:12]
juria_roberts if there any difference between throw new RuntimeException("message) and throw new RuntimeException("message", null) ? [07:14]
sonOfRa browse RuntimeException [07:15]
sonOfRa A reference matching 'RuntimeException' can be found at: https://bit.ly/2VxyM7D [java.lang.RuntimeException] [07:15]
Peste_Bubonica [Peste_Bubonica!~Peste_Bub@unaffiliated/peste-bubonica/x-4612396] has joined ##java [07:16]
sonOfRa Yes [07:16]
sonOfRa https://java-browser.yawk.at/java/14/java.base/java/lang/Throwable.java#199 cause is default-initialized to "this". In your case you're explicitly setting it to null. [07:17]
sonOfRa sonOfRa's title: "java/14 : java.base/java/lang/Throwable.java" [07:17]
juria_roberts WiIl there be any difference in the stacktrace? [07:21]
dreamreal tias [07:21]
dreamreal Try it and see. You learn much more by experimentation than by asking without having even tried. [07:21]
dreamreal but in effect, no [07:21]
juria_roberts Thanks! [07:22]
Devastator I feel bad to have a class with just name as attribute, but I don't know what else I could have as attribute of Brand.. I'll let it be [07:22]
dreamreal Devastator: like a brand name? Well... what about an artificial identifier? [07:23]
Devastator dreamreal class is id and name, I guess I can call id an artificial identifier [07:23]
dreamreal what about createdAt, updatedAt? [07:24]
dreamreal id is an artificial identifier, yes [07:24]
Devastator dreamreal I want to thank you, with your help I was able to finish Customer's CRUD [07:24]
dreamreal you're welcome, I guess [07:24]
dreamreal I didn't do anything that anyone else wouldn't have or couldn't have done [07:25]
Devastator dreamreal these are some good ideas! I even want to learn how to keep track on who added a Brand and updated it, but I guess I will leave that for next version.. [07:25]
Devastator suffering programming in a nutshell.. make it work first :D [07:26]
dreamreal that is the important bit [07:26]
Devastator I'm also stumped by how much I' [07:27]
Devastator I've refactored my code since I started [07:27]
dreamreal pretty normal really in a language that enables effective refactoring [07:28]
Devastator I always thought great modelling = less refactoring, but modelling never ends and you end up just.. modelling [07:28]
dreamreal modelling's all about assumptions [07:28]
dreamreal they tend to change once you start using the model [07:28]
Devastator exactly [07:29]
Devastator as an example, I didn't put price on my Repair class yet, because I don't know yet where I'm gonna put it [07:29]
pppingme [pppingme!~pppingme@unaffiliated/pppingme] has joined ##java [07:30]
g00s [g00s!~g00s@unaffiliated/g00s] has joined ##java [07:30]
Devastator should I leave ResponseEntity without generics for @DeleteMapping or put it like this: ResponseEntity<?>? [07:35]
ron generics is the worst. never use it. [07:35]
hypc1 [hypc1!~Thunderbi@113.232.157.186] has joined ##java [07:36]
Devastator I thought generics was one of the greatest additions to Java [07:38]
cheeser no that would be 'assert' [07:39]
dreamreal java.util.Date, you idiots [07:39]
ron goto? [07:39]
dreamreal heh [07:39]
dreamreal hrmmmmm [07:39]
cheeser dreamreal: not a language feature :) [07:39]
dreamreal Even if it was I'm not sure it could top assert [07:40]
dreamreal static imports? [07:41]
dreamreal I still think assert wins the most useless award :/ [07:41]
dualfade good evening. I'm trying to write a small java app and I need a couple android libararies. I cannot seam to import them and I have the packages installed. Also. My $PATH should be set. [07:48]
ron WRONG [07:48]
dualfade what I am saying is wrong ? or someone else ? [07:49]
ricky_clarkson That's ron's full name. [07:50]
fstd_ [fstd_!~fstd@unaffiliated/fisted] has joined ##java [07:51]
ron ricky_clarkson: better than what silly Americans normally think it is [07:51]
dualfade hah ok. I just got here hahahahaha [07:51]
ron android [07:51]
ron dualfade, Android is Google's OS based on Linux and a non-Java-bytecode Virtual Machine. See http://developer.android.com/ . Start in #android-dev if you have Android development questions - and if you use Android's API or you're running it on Android, you have an Android development question. [07:51]
dreamreal dualfade: android libraries? [07:51]
dreamreal What android libraries would these be, and why would they be used in a java app? [07:52]
dualfade yeah maybe im going about this all wrong. I decomped the binary and was trying to modify it. [07:52]
ricky_clarkson Java might be the fourth best language for Android dev at the moment ;) [07:52]
dualfade Alright let me change chans. sorry [07:53]
dualfade parted the channel: [07:54]
deavmi [deavmi!~tbk@165.0.49.28] has joined ##java [08:09]
Feuermagier[PC] [Feuermagier[PC]!~Feuermagi@154.28.188.112] has joined ##java [08:12]
acidjnk_new [acidjnk_new!~acidjnk@p200300d0c71a4b42b191ee36a91635e3.dip0.t-ipconnect.de] has joined ##java [08:25]
hypc1 [hypc1!~Thunderbi@113.232.157.186] has joined ##java [08:25]
oxum [oxum!~oxum@122.172.40.244] has joined ##java [08:30]
dodobrain [dodobrain!~dodobrain@unaffiliated/freakabcd] has joined ##java [08:44]
conan [conan!~conan@mdproctor.plus.com] has joined ##java [08:50]
dualfade [dualfade!dualfade@gateway/vpn/protonvpn/dualfade] has joined ##java [08:51]
dualfade @WRONG. Got it working. Thanks for the WRONG. [08:51]
dualfade ;) [08:51]
Nightwing52 [Nightwing52!~Thunderbi@71-221-239-249.dvnp.qwest.net] has joined ##java [08:56]
RcHaCk [RcHaCk!~rchack@S01061033bf03f243.vs.shawcable.net] has joined ##java [09:03]
RcHaCk hey [09:03]
zanetti [zanetti!~zanetti@2804:14c:3baa:485:bc7e:cb7c:53d6:bbe8] has joined ##java [09:03]
dualfade me ? [09:03]
RcHaCk ? [09:03]
RcHaCk sure hey dualfade [09:03]
dualfade hi hahahaha [09:04]
RcHaCk how are you? [09:04]
dualfade feeling better. just crushed that rev crypto ctf ;) [09:05]
RcHaCk nice [09:05]
dualfade took all day but it's done [09:05]
dualfade because I suuuuuucccckkkkkk at java [09:05]
RcHaCk ahh atleast its done [09:05]
dualfade true [09:05]
RcHaCk ya i havnt done too much java myself [09:05]
RcHaCk you know anything about sockets ? [09:06]
dualfade no I dont honestly. sorry. I would be zero help there [09:06]
dualfade good luck thought ;) [09:07]
gabizou [gabizou!~gabizou@69.147.207.130] has joined ##java [09:07]
Nightwing52 [Nightwing52!~Thunderbi@71-221-239-249.dvnp.qwest.net] has joined ##java [09:20]
Goplat [Goplat!~Goplat@reactos/developer/Goplat] has joined ##java [09:44]
oxum [oxum!~oxum@122.172.40.244] has joined ##java [09:44]
Ingvix [Ingvix!~Ingvix@213.232.87.108] has joined ##java [09:48]
Nightwing52 [Nightwing52!~Thunderbi@71-221-239-249.dvnp.qwest.net] has joined ##java [09:48]
SwiftMatt [SwiftMatt!~Objective@2601:282:4300:3e:bde5:5171:8c51:8cd1] has joined ##java [09:49]
thecoffemaker [thecoffemaker!~thecoffem@unaffiliated/thecoffemaker] has joined ##java [09:49]
db [db!uid18678@gateway/web/irccloud.com/x-nllfqydzshjsewib] has joined ##java [09:59]
SwiftMatt [SwiftMatt!~Objective@2601:282:4300:3e:bde5:5171:8c51:8cd1] has joined ##java [10:00]
oxum [oxum!~oxum@122.172.40.244] has joined ##java [10:21]
dfee [dfee!~dfee@162-227-164-101.lightspeed.sntcca.sbcglobal.net] has joined ##java [10:25]
dmlloyd [dmlloyd!uid331705@redhat/jboss/dmlloyd] has joined ##java [10:37]
z7r1k3 [z7r1k3!sid419762@gateway/web/irccloud.com/x-dfsaoffqfqxjpbnb] has joined ##java [10:39]
noahmg123 [noahmg123!sid89117@gateway/web/irccloud.com/x-ynolqtobpctpqcgn] has joined ##java [10:41]
hbnrf [hbnrf!~hbnrf@gateway/tor-sasl/hbnrf] has joined ##java [10:41]
Nightwing52 [Nightwing52!~Thunderbi@71-221-239-249.dvnp.qwest.net] has joined ##java [10:43]
oxum [oxum!~oxum@122.172.40.244] has joined ##java [10:44]
noahmg123 [noahmg123!sid89117@gateway/web/irccloud.com/x-gajpigtglnbkezea] has joined ##java [10:47]
isBEKaml [isBEKaml!~isBEKaml@unaffiliated/isbekaml] has joined ##java [11:02]
evanchooly [evanchooly!~cheeser@redhat/cheeser] has joined ##java [11:24]
wymillerlinux [wymillerlinux!~wymillerl@097-084-004-094.res.spectrum.com] has joined ##java [11:28]
AMcBain [AMcBain!~Art@071-085-028-052.res.spectrum.com] has joined ##java [11:30]
immibis_ [immibis_!~immibis@x4db79bda.dyn.telefonica.de] has joined ##java [11:33]
Lobster [Lobster!~Loobster@S0106ac202e21ee23.wk.shawcable.net] has joined ##java [11:50]
donofrio_ [donofrio_!~donofrio@host-252.subnet-17.med.umich.edu] has joined ##java [11:51]