Info

Login

Channels

APIs

Credits

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

« 2017-11-19

2017-11-20

2017-11-21 »

Nick Message Date
ogradyd [ogradyd!~Thunderbi@2a02:8070:88ac:21f0:ecdc:bee4:67b6:aa18] has joined ##java [12:00]
ratskin [ratskin!~jeebus@cpc82943-enfi22-2-0-cust126.20-2.cable.virginm.net] has joined ##java [12:03]
Farore [Farore!~Farore@c83-252-59-61.bredband.comhem.se] has joined ##java [12:23]
Gotham25 [Gotham25!aaf82eec@gateway/web/freenode/ip.170.248.46.236] has joined ##java [12:24]
dangertools [dangertools!~dangertoo@82-194-142-118.dyn.salzburg-online.at] has joined ##java [12:26]
adminseodwn [adminseodwn!~archer@unaffiliated/remcwo9o] has joined ##java [12:32]
sbeex [sbeex!~sbeex@46.140.90.107] has joined ##java [12:33]
d0048 [d0048!~Thunderbi@unaffiliated/d0048] has joined ##java [12:50]
befuddled [befuddled!~befuddled@106.51.23.179] has joined ##java [12:54]
Silenced [Silenced!textual@unaffiliated/silenced] has joined ##java [12:57]
schu-r [schu-r!~Thunderbi@82-149-107-2.wco.wellcom.at] has joined ##java [12:58]
wordsToL_ [wordsToL_!~wordsToLi@unaffiliated/wordstoliveby] has joined ##java [12:59]
G3nka1 [G3nka1!~hubatrix@unaffiliated/hubatrix] has joined ##java [01:09]
G3nka1 when do I do mvn clean install and when do I do mvn install? generally [01:09]
G3nka1 https://stackoverflow.com/questions/6018701/how-is-mvn-clean-install-different-from-mvn-install this didn't help me much [01:09]
buzzLightBeer parted the channel: [01:10]
liste G3nka1: when you need to clean stuff from target/ you need clean [01:17]
liste eg. if you've removed source files [01:17]
G3nka1 I see, but if I added a print statement lets say, do I need to clean target and build new jar for this print statement to work? [01:18]
G3nka1 liste, [01:18]
yawkat no [01:18]
gugah [gugah!~gugah@181.229.107.78] has joined ##java [01:19]
G3nka1 usually when would you want to clean target? delete existing jars and create new ones [01:20]
G3nka1 in what situation [01:20]
tilerendering [tilerendering!~tilerende@c-base/crew/conx] has joined ##java [01:20]
liste G3nka1: for example, when you've removed source files and don't want them to end up in the .jar/.war [01:21]
G3nka1 ah I see, minute code changes need not be built from clean then [01:22]
G3nka1 thanks liste [01:22]
easzero [easzero!~easzero@2a02:908:4c4:f300:d4c0:d28d:9bdc:2347] has joined ##java [01:23]
Gurkenglas [Gurkenglas!~Gurkengla@dslb-094-223-141-229.094.223.pools.vodafone-ip.de] has joined ##java [01:27]
BeerLover [BeerLover!~BeerBuddy@171.50.143.90] has joined ##java [01:28]
easzero [easzero!~quassel@2a02:908:4c4:f300:d4c0:d28d:9bdc:2347] has joined ##java [01:35]
easzero [easzero!~quassel@2a02:908:4c4:f300:d4c0:d28d:9bdc:2347] has joined ##java [01:36]
led1 [led1!Thunderbir@nat/ibm/x-iaiqskuzguxgough] has joined ##java [01:37]
easzero_ [easzero_!~quassel@2a02:908:4c4:f300:d4c0:d28d:9bdc:2347] has joined ##java [01:40]
led1 [led1!Thunderbir@nat/ibm/x-oqnkefbadqmmglcf] has joined ##java [01:42]
[twisti] [[twisti]!~twisti@toadwater.com] has joined ##java [01:45]
[worksti] [[worksti]!~twisti@toadwater.com] has joined ##java [01:47]
bobek [bobek!~bobek@unaffiliated/bobek] has joined ##java [01:50]
easzero__ [easzero__!~quassel@2a02:908:4c4:f300:d4c0:d28d:9bdc:2347] has joined ##java [01:54]
sl33k [sl33k!~sl33k@88.98.244.52] has joined ##java [02:01]
d0048 [d0048!~Thunderbi@unaffiliated/d0048] has joined ##java [02:04]
neoncontrails [neoncontrails!~neoncontr@2600:1702:850:9ed0:7428:7679:d704:b135] has joined ##java [02:06]
Katana [Katana!~hentai@unaffiliated/katana] has joined ##java [02:12]
ra4king [ra4king!~ra4king@unaffiliated/ra4king] has joined ##java [02:13]
Masber_080 [Masber_080!~Masber@27-32-116-21.static.tpgi.com.au] has joined ##java [02:13]
d0048 [d0048!~Thunderbi@unaffiliated/d0048] has joined ##java [02:14]
transhuman [transhuman!~transhuma@2001:5b0:45d7:ba88:1191:9e57:2a75:f3ba] has joined ##java [02:17]
DGunn [DGunn!~DGunn@c27-253-22-105.brodm4.vic.optusnet.com.au] has joined ##java [02:19]
zulutango [zulutango!~zulutango@d49-192-7-133.bla1.nsw.optusnet.com.au] has joined ##java [02:19]
schu-r [schu-r!~Thunderbi@82-149-107-2.wco.wellcom.at] has joined ##java [02:29]
liste does Java use system proxy settings by default? [02:33]
liste oh nvm, apparently I need to configure it separately [02:35]
d0048 [d0048!~Thunderbi@unaffiliated/d0048] has joined ##java [02:35]
Tichodroma [Tichodroma!~lutz@fsf/member/Tichodroma] has joined ##java [02:37]
[DO] [[DO]!~jtdoncas@unaffiliated/jtdoncas] has joined ##java [02:37]
bakwods_ [bakwods_!~bakwods@41.221.106.174] has joined ##java [02:42]
d0048 [d0048!~Thunderbi@unaffiliated/d0048] has joined ##java [02:52]
bakwods_ [bakwods_!~bakwods@41.221.106.174] has joined ##java [02:54]
LordDrako [LordDrako!~drako@84.19.213.28] has joined ##java [02:57]
halprin [halprin!~halprin@45-16-213-131.lightspeed.elpstx.sbcglobal.net] has joined ##java [02:58]
hubatrix [hubatrix!~hubatrix@unaffiliated/hubatrix] has joined ##java [03:01]
d0048 [d0048!~Thunderbi@unaffiliated/d0048] has joined ##java [03:13]
hextileX [hextileX!~Thunderbi@xdsl-87-79-198-16.netcologne.de] has joined ##java [03:17]
bakwods_ [bakwods_!~bakwods@41.221.106.174] has joined ##java [03:17]
mlesniak [mlesniak!uid263873@gateway/web/irccloud.com/x-extbrskncaenqurg] has joined ##java [03:18]
Matthijs [Matthijs!~quassel@unaffiliated/matthijs] has joined ##java [03:20]
bakwods_ [bakwods_!~bakwods@41.221.106.174] has joined ##java [03:20]
bakwods_ [bakwods_!~bakwods@41.221.106.174] has joined ##java [03:22]
bakwods_ [bakwods_!~bakwods@41.221.106.174] has joined ##java [03:24]
snf_gh [snf_gh!~snf_gh@95.155.114.211] has joined ##java [03:24]
zergut [zergut!uid221522@taskhive/translator/zergut] has joined ##java [03:26]
fddlr [fddlr!25bf2aed@gateway/web/cgi-irc/kiwiirc.com/ip.37.191.42.237] has joined ##java [03:28]
wordsToLiveBy [wordsToLiveBy!~wordsToLi@gateway/vpn/privateinternetaccess/wordstoliveby] has joined ##java [03:34]
olspookishmagus [olspookishmagus!~pookie@snf-137798.vm.okeanos.grnet.gr] has joined ##java [03:34]
olspookishmagus Oracle JRE 9.0.1, eh? [03:34]
selckin old spook eh? [03:35]
TarVanimelde [TarVanimelde!~TarVanime@75-172-43-241.tukw.qwest.net] has joined ##java [03:35]
olspookishmagus selckin: kinda: https://images-na.ssl-images-amazon.com/images/I/81t4xZgXTEL._RI_.jpg [03:36]
olspookishmagus boogedy boogedy boogedy boo [03:36]
OtakuSenpai [OtakuSenpai!~OtakuSenp@unaffiliated/otakusenpai] has joined ##java [03:37]
olspookishmagus and no x86 binaries here: http://www.oracle.com/technetwork/java/javase/downloads/jre9-downloads-3848532.html [03:38]
olspookishmagus olspookishmagus's title: "Java SE Runtime Environment 9 - Downloads" [03:38]
[DO] [[DO]!~jtdoncas@unaffiliated/jtdoncas] has joined ##java [03:39]
schu-r [schu-r!~Thunderbi@82-149-107-2.wco.wellcom.at] has joined ##java [03:39]
selckin try a sentance [03:40]
agjacome [agjacome!~agjacome@246.red-83-32-32.dynamicip.rima-tde.net] has joined ##java [03:40]
olspookishmagus Well I guess Oracle will no longer offer x86 binaries, so I might go ahead and predict some turbulence there. [03:41]
olspookishmagus Let me get buckled and prepare for a bumpy ride. [03:41]
yawkat O.o [03:41]
Farore [Farore!~Farore@2a04:ae0c:1802:d00:3943:72f0:bbdf:11f1] has joined ##java [03:42]
OtakuSen1ai [OtakuSen1ai!~OtakuSenp@unaffiliated/otakusenpai] has joined ##java [03:43]
ra4king [ra4king!~ra4king@unaffiliated/ra4king] has joined ##java [04:01]
backes [backes!~backes@public-docking-pat-etx-mapped-0003.ethz.ch] has joined ##java [04:04]
easzero [easzero!~quassel@2a02:908:4c4:f300:184a:c5ea:5c64:c0b9] has joined ##java [04:05]
LordDrako [LordDrako!~drako@84.19.213.28] has joined ##java [04:07]
MaBunny [MaBunny!~OtakuSenp@unaffiliated/otakusenpai] has joined ##java [04:11]
kirua [kirua!~kirua@unaffiliated/kirua] has joined ##java [04:12]
gone_haywire [gone_haywire!~gone_hayw@gateway/tor-sasl/gonehaywire/x-92471824] has joined ##java [04:19]
Gurkenglas [Gurkenglas!~Gurkengla@dslb-094-223-141-229.094.223.pools.vodafone-ip.de] has joined ##java [04:27]
txter [txter!~gulli@unaffiliated/gulli] has joined ##java [04:28]
fabiim [fabiim!~textual@host86-149-237-31.range86-149.btcentralplus.com] has joined ##java [04:30]
BluesBoy [BluesBoy!~davor@stotz2.com] has joined ##java [04:30]
srm [srm!~srm@unaffiliated/srm] has joined ##java [04:32]
rorro [rorro!~rorro@h-170-152-58.A163.priv.bahnhof.se] has joined ##java [04:35]
clmsy [clmsy!~eoz@ringring.dpl.mendix.net] has joined ##java [04:38]
bakwods_ [bakwods_!~bakwods@41.221.106.174] has joined ##java [04:39]
[DO] [[DO]!~jtdoncas@unaffiliated/jtdoncas] has joined ##java [04:40]
acidjnk [acidjnk!~acidjnk22@p4FFBD49B.dip0.t-ipconnect.de] has joined ##java [04:42]
bakwods_ [bakwods_!~bakwods@41.221.106.174] has joined ##java [04:52]
bakwods_ [bakwods_!~bakwods@41.221.106.174] has joined ##java [05:01]
hextileX [hextileX!~Thunderbi@xdsl-87-79-198-16.netcologne.de] has joined ##java [05:03]
Tichodroma [Tichodroma!~lutz@fsf/member/Tichodroma] has joined ##java [05:05]
bakwods_ [bakwods_!~bakwods@41.221.106.174] has joined ##java [05:06]
deepy There's x86 servers? [05:06]
liste legacy is a curious thing [05:11]
cofeineSunshine hahahha [05:12]
cofeineSunshine nailed [05:12]
jzeus [jzeus!~jzeus@68.21.148.158] has joined ##java [05:14]
jockej [jockej!~Jockej@h-202-248.A328.priv.bahnhof.se] has joined ##java [05:17]
Zalabinsky [Zalabinsky!Zalabinsky@a88-115-35-112.elisa-laajakaista.fi] has joined ##java [05:17]
schu-r [schu-r!~Thunderbi@82-149-107-2.wco.wellcom.at] has joined ##java [05:20]
bonkano [bonkano!~mohamux@197.155.150.205] has joined ##java [05:21]
cheeser there were no x86 binaries for 8 either. no big deal [05:28]
selckin maybe other people providing openjdk x86 builds if you need them [05:29]
KukOrkan [KukOrkan!~KukOrkan@81-234-165-90-no265.tbcn.telia.com] has joined ##java [05:30]
cheeser https://pkgs.org/download/java-9-openjdk(x86-32) [05:30]
cheeser cheeser's title: "Java-9-openjdk(x86-32) Download (RPM)" [05:30]
cheeser go go gadget google! [05:30]
alowaniak [alowaniak!3e838696@gateway/web/freenode/ip.62.131.134.150] has joined ##java [05:32]
Carlrobertoh [Carlrobertoh!~Carlrober@35-123-196-88.sta.estpak.ee] has joined ##java [05:33]
a3Dman [a3Dman!~3Dman@unaffiliated/a3dman] has joined ##java [05:34]
Squarism what is the shortest way of creating a set of 2 values? [05:40]
liste Squarism: java.util.Set ? [05:40]
Squarism how do you write it [05:41]
[DO] [[DO]!~jtdoncas@unaffiliated/jtdoncas] has joined ##java [05:41]
Squarism new HashSet(Arrays.asList(A,B)) [05:41]
Squarism ? [05:41]
Acerific [Acerific!~acerific@unaffiliated/acerific] has joined ##java [05:41]
Squarism not very concise [05:41]
Squarism haskell: S.fromList [A,B] [05:42]
liste Squarism: Guava's ImmutableSet.of [05:42]
Squarism scala: Set(A,B) [05:42]
Squarism ok ok. Thought people dropped that ofter java 8 [05:42]
liste Squarism: or Java 9's Set.of [05:42]
weyer [weyer!~weyer@david.gus-group.com] has joined ##java [05:43]
gregf_ [gregf_!d96fc946@gateway/web/freenode/ip.217.111.201.70] has joined ##java [05:43]
Squarism liste, ok thanks [05:44]
RazielZ [RazielZ!~Raziel@unaffiliated/raziel] has joined ##java [05:44]
localh0st Morning, I've got question: I'm using Scribe library to work with OAuth tokens. It works perfectly on my computer if I'll run the methods with JUnit, but it's not working when application is deployed on my computer using tomcat, it's failing on callback redirect from https://api.linkedin.com/uas/oauth/authenticate?oauth_token=TOKEN to https://localhost:7000/oauth/redirect . It doesn't throw any [05:51]
localh0st localh0st's title: "Authorize | LinkedIn" [05:51]
localh0st exception, SOAP call retruns only java.lang.reflect.InvocationTargetException [05:51]
qilx [qilx!~quassel@62.201.21.29] has joined ##java [05:55]
hextileX [hextileX!~Thunderbi@xdsl-87-79-198-16.netcologne.de] has joined ##java [05:55]
eliasr [eliasr!uid27497@gateway/web/irccloud.com/x-dszcvbajlmbrytyv] has joined ##java [05:56]
bakwods_ [bakwods_!~bakwods@41.221.106.174] has joined ##java [06:01]
Anthaas [Anthaas!~Anthaas@unaffiliated/anthaas] has joined ##java [06:06]
bakwods_ [bakwods_!~bakwods@41.221.106.174] has joined ##java [06:11]
mirk0 [mirk0!~mirk0@unaffiliated/-mirko-/x-2946915] has joined ##java [06:13]
anderz [anderz!~anderz@31-208-213-242.cust.bredband2.com] has joined ##java [06:13]
TReK [TReK!~UnFaQ@unaffiliated/trek] has joined ##java [06:16]
cheeser localh0st: your callback url can't be https://localhost:xxxx [06:17]
jockej hello. Is it possible to debug a junit4 test case with jdb? I can run it, but it donesn't stop on any breakpoint, it just runs until the end [06:18]
liste jockej: how are you running the test? [06:19]
jockej Ive tried different ways. Both with java and jdb [06:20]
sonOfRa Generally a junit4 test case is just any other method being run [06:20]
jockej jdb -classpath ".:dependency/hamcrest-core-1.3.jar:dependency/junit-4.12.jar:classes:test-classes" org.junit.runner.JUnitCore TestClass [06:21]
neredsenvy [neredsenvy!59d4a218@gateway/web/freenode/ip.89.212.162.24] has joined ##java [06:21]
jockej I tried running it like that, and also to run it via meghanada-mode in Emacs [06:21]
jockej it "works", it just doesn't stop on breakpoints [06:22]
alpert [alpert!~alpert@176.41.233.207] has joined ##java [06:23]
sonOfRa How are you setting them? [06:24]
neredsenvy I have a fresh Gradle project imported in IDEA. I open one of my classes and I get a bunch of "Could not resolve symbol" for spring framework. However when I look at External Libraries I do have the package available one example is: Gradle: org.spring...:spring-data-commons. [06:24]
sonOfRa Also jesus christ use a good debugger, like intellij IDEA or whatever's built into eclipse, and not jdb [06:24]
neredsenvy The IDE does offer a fix: Add library however clicking this does nothing. The library is already included it's just that error dissapears. [06:25]
neredsenvy I tried Invalidate cache/Restart but no go any ideas ? [06:25]
jockej sonOfRa: I set them with stop at "TestClass:200" or "stop in SomeClass.someMethod(byte[])" [06:27]
jockej sonOfRa: I want to be able to run it through Emacs :) Also, there's no "project" set up for either Eclipse or Intellij, so I don't think they'd work? [06:28]
sonOfRa Well generally you'd use maven or gradle to set up your project, and then it's all independent of your IDE [06:28]
sonOfRa Thing is: You're probably the only person among 530 in this channel who uses emacs. And also the only person who uses jdb [06:29]
localh0st cheeser: it has to be, but as I see there is another problem [06:30]
localh0st In fact it's not the problem with redirect but with http://htmlunit.sourceforge.net/apidocs/com/gargoylesoftware/htmlunit/WebClient.html and .getPage() method, it just stops without exception... [06:31]
localh0st localh0st's title: "WebClient (HtmlUnit 2.28 API)" [06:31]
jockej sonOfRa: That's what I feared :) We have maven, but this java-code is "embedded" in an Eclipse C-project [06:31]
jockej and Eclipse doesn't seem to like multiple languages in one project [06:32]
waz [waz!~waz@pdpc/supporter/active/waz] has joined ##java [06:34]
liste jockej: open the Java parts with another Eclipse instance? [06:34]
liste I often have multiple eclipses open at the same time [06:34]
jockej liste: I have, but there are no "debug configurations" and what not [06:36]
liste jockej: is it an Eclipse for Java Developers? [06:37]
jockej liste: yes, but with the CDT plugin installed also [06:38]
liste jockej: you can switch to Java perspective from the top right corner [06:39]
code_zombie [code_zombie!~code_zomb@2605:a601:aa1:5c00:7c21:7422:38c:34b5] has joined ##java [06:40]
[DO] [[DO]!~jtdoncas@unaffiliated/jtdoncas] has joined ##java [06:41]
jockej oh, right. Thanks [06:41]
jockej but I still can't debug [06:44]
Tichodroma [Tichodroma!~lutz@fsf/member/Tichodroma] has joined ##java [06:48]
_d0048 [_d0048!~Thunderbi@unaffiliated/d0048] has joined ##java [07:06]
vdamewood [vdamewood!~vdamewood@unaffiliated/vdamewood] has joined ##java [07:12]
nast [nast!~nast@64.137.242.18] has joined ##java [07:13]
kirua [kirua!~kirua@unaffiliated/kirua] has joined ##java [07:26]
frymaster [frymaster!frymaster@nervousenergy.co.uk] has joined ##java [07:29]
LordDrako [LordDrako!~drako@84.19.213.28] has joined ##java [07:33]
dreamreal nnmorning [07:33]
kirua hi [07:34]
kirua I have been asked to move a static method to another class. Is it a good idea to have a public class with a private constructor and a protected static method ? [07:34]
yawkat why protected [07:35]
dreamreal what are you making it a protected static method for [07:35]
dreamreal kirua: and the answer to ALL of these questions is always "yes, do it, see how well it works for you" [07:35]
dreamreal and if it works like gangbusters, you just won [07:35]
kirua yeah but it would also work to set all methodes and attributes public, but its not a good practice [07:36]
dreamreal sure it is, if it works for what you need [07:36]
dreamreal do what works, that's THE answer in programming [07:36]
liste protected is in general only useful with inheritance [07:36]
dreamreal make it work, make it fast, make it pretty [07:36]
bendem and THE answer to clients is "it depends" [07:37]
AtumT [AtumT!~IRC@45.32.216.99] has joined ##java [07:37]
hussam [hussam!uid193284@gateway/web/irccloud.com/x-ciyomigqxnvtfftw] has joined ##java [07:37]
beefjoe [beefjoe!~beefjoe@dslb-094-216-076-192.094.216.pools.vodafone-ip.de] has joined ##java [07:39]
[DO] [[DO]!~jtdoncas@unaffiliated/jtdoncas] has joined ##java [07:42]
whaley [whaley!~whaley@66-191-218-132.dhcp.spbg.sc.charter.com] has joined ##java [07:50]
schu-r [schu-r!~Thunderbi@82-149-107-2.wco.wellcom.at] has joined ##java [07:57]
mayonnaise [mayonnaise!~bob@unaffiliated/viktorgordo] has joined ##java [07:59]
MikeChernev [MikeChernev!~mike@i.m1k3.pw] has joined ##java [08:00]
kirua [kirua!~kirua@unaffiliated/kirua] has joined ##java [08:00]
k3vin-Com [k3vin-Com!~kjw@75-133-166-19.dhcp.stls.mo.charter.com] has joined ##java [08:07]
yohnnyjoe [yohnnyjoe!~yohnnyjoe@c-73-129-2-10.hsd1.dc.comcast.net] has joined ##java [08:08]
bonkano [bonkano!~mohamux@197.155.150.205] has joined ##java [08:09]
zergut [zergut!uid221522@taskhive/translator/zergut] has joined ##java [08:10]
conan [conan!~conan@mdproctor.plus.com] has joined ##java [08:11]
dmlloyd [dmlloyd!~dmlloyd@redhat/jboss/dmlloyd] has joined ##java [08:15]
schu-r [schu-r!~Thunderbi@82-149-107-2.wco.wellcom.at] has joined ##java [08:19]
d10n-work [d10n-work!uid37161@gateway/web/irccloud.com/x-hueroxneppcttaaa] has joined ##java [08:28]
kahra [kahra!~kahra@185.156.174.115] has joined ##java [08:29]
G3nka1 [G3nka1!~hubatrix@unaffiliated/hubatrix] has joined ##java [08:32]
bgoggin [bgoggin!~bgoggin@c-73-249-26-94.hsd1.ct.comcast.net] has joined ##java [08:38]
qrest [qrest!~qrestlove@2605:6000:eb4a:ef00::1] has joined ##java [08:41]
socoro [socoro!~quassel@2001:af0:8000:1c01:b5ea:1b11:db6f:5acb] has joined ##java [08:46]
dar10s how should i make a visitor class so the IDE helps with the process. I seem to dislike how Java has Ide's like eclipse, IJ, android studio. but when doing patterns they are not very helpful unless you build them step by step in a particular order [08:47]
G3nka1 [G3nka1!~hubatrix@unaffiliated/hubatrix] has joined ##java [08:47]
socoro Hi, does anybody know if I can somehow force log4j2 to skip my class `LoggerWrapper` when detecting location for debug message (i.e. skip a frame from stack trace)? [08:48]
mdrabe [mdrabe!Matt@nat/ibm/x-fxxrqmnodkhvsmye] has joined ##java [08:49]
yawkat dar10s: what exactly is the ide supposed to do? [08:49]
yawkat and what do you mean by "doing patterns"? [08:49]
Avascar [Avascar!4b53c4d2@gateway/web/freenode/ip.75.83.196.210] has joined ##java [08:50]
Avascar Hi guys real quick question SO I'm using stream to get the average number of a double array but the output I get is "Optional Double[the average number]", but I really just want the number by itself. How do I do that? [08:52]
d0048 [d0048!~Thunderbi@unaffiliated/d0048] has joined ##java [08:52]
htamas yourVariable.get() [08:53]
selckin extract the result from the optional and print it, or print that it failed on empty optional [08:53]
dar10s just building out the pattern and having some smart sense, autocomplete, less red Errors... as I work out the base of the visitor pattern ? [08:54]
yawkat dar10s: there is no "base" to the visitor pattern [08:54]
yawkat and your ide should do auto completion of code regardless of patterns [08:54]
dar10s ok ... well there is no base , but they do follow a set pattern' [08:54]
easzero [easzero!~quassel@2a02:908:4c4:f300:9cdd:6e85:1b20:d850] has joined ##java [08:54]
Avascar How do I extract the result exactly? [08:55]
yawkat using get, like htamas said. [08:55]
selckin after you check it has a value [08:55]
yawkat dar10s: sure, but it's not something an ide can help you with. theres no point [08:55]
dar10s I just think I type the enums first and maybe I should make the interfaces first , so this process would be quicker [08:55]
GenteelBen [GenteelBen!~GenteelBe@cpc111801-lutn14-2-0-cust55.9-3.cable.virginm.net] has joined ##java [08:55]
yawkat the enums? [08:55]
htamas dar10s you literally have to make 2 interfaces and then override them in the classes you want to visit [08:56]
danrik [danrik!~jc@unaffiliated/ddsss] has joined ##java [08:56]
htamas override 1* [08:56]
yawkat hell you dont even need the visiteable interface. [08:57]
selckin you have the Visistable and Vistor, so class NewClass implements Visible { have ide auto generate void visit(Visitor v) { write v.visit(this); tell ide to generate the method in the vistor interface } } [08:57]
M_Kay [M_Kay!~mkay@p5B0DEC5A.dip0.t-ipconnect.de] has joined ##java [08:58]
cofeineSunshine https://scontent.fvno2-1.fna.fbcdn.net/v/t1.0-9/14462923_1469582993057788_5272391698225328418_n.jpg?oh=a4339f15721d1de0138f10b474c81b91&oe=5A9F7357 [08:58]
cheeser eyes cofeineSunshine [08:58]
yawkat "visitor pattern" can be literally one interface with one method. or you could even use something like Consumer... [08:58]
TinkerTyper [TinkerTyper!~putneyj@75-8-78-151.lightspeed.rlghnc.sbcglobal.net] has joined ##java [08:59]
easzero__ [easzero__!~quassel@2a02:908:4c4:f300:9ab:cf6a:569f:86cc] has joined ##java [09:00]
Avascar Hi guys so I tried doing what you said and it ended up breaking everything so I googled one of the errors and managed to find .getAsDouble(), so I did that and it works just fine [09:01]
Avascar So in a sense I must thank you guys for helping me! [09:02]
whoever [whoever!~Popeye@unaffiliated/whoever] has joined ##java [09:02]
yawkat oh it was OptionalDouble, not Optional<Double>. [09:02]
Avascar Ah yes yes. I'm only a beginner so I don't know the difference [09:02]
Avascar Anyway thanks guys [09:02]
selckin javadoc optionaldouble [09:02]
selckin selckin: http://bit.ly/2zlh8uQ [JDK: java.util.OptionalDouble] [09:02]
Avascar Thx for that too, I'm out [09:03]
led_ir22 [led_ir22!~Thunderbi@hotspot10.rywasoft.net] has joined ##java [09:03]
selckin not knowing how to check the methods on a type seems so unlikely to me these days, guess thats not helpfull [09:04]
whoever hi all, i am stuck what would be the best data type to store equivelants ie: 28mm = 1 inch, 12 inches = 1 food, 3 feet = 1 yard , would a map be best ? [09:06]
dreamreal it could be but I'd make my own [09:06]
LordDrako [LordDrako!~drako@84.19.213.28] has joined ##java [09:06]
yawkat eats 1 food [09:07]
dreamreal yawkat: playing nethack again, are we? :) [09:07]
yawkat whoever: could go the TimeUnit route... http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/8u40-b25/java/util/concurrent/TimeUnit.java#TimeUnit [09:07]
yawkat yawkat's title: "GC: TimeUnit - java.util.concurrent.TimeUnit (.java) - GrepCode Enum Source" [09:07]
yawkat with invaluable constant names. [09:07]
whoever yawkat: thank you, for some reason i was thinking that there may already be a defind class already, but looks like it would need to be imported from the wild [09:12]
whoever parted the channel: [09:12]
rorro [rorro!~rorro@h-170-152-58.A163.priv.bahnhof.se] has joined ##java [09:13]
Stummi TIL: You can break out of labeled blocks, which are not loops: https://glot.io/snippets/evo5vomsk9 [09:15]
Stummi Stummi's title: "Untitled - Java Snippet - glot.io" [09:15]
yawkat Out of ifs too iirc. [09:16]
yawkat Out of all statements in fact. [09:16]
davidbowlby [davidbowlby!~textual@99-67-53-141.lightspeed.clmboh.sbcglobal.net] has joined ##java [09:16]
jcbitter [jcbitter!~jcbitter@181.49.85.233] has joined ##java [09:16]
selckin secret goto statements [09:16]
Stummi yawkat, right, so maybe "even blocks without statement" is a better wording? [09:16]
Stummi I learned that by stumbling the Date.parse method: http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/util/Date.java#Date.parse%28java.lang.String%29 [09:17]
Stummi Stummi's title: "GC: Date - java.util.Date (.java) - GrepCode Class Source" [09:17]
yawkat Stummi: well even this works https://javap.yawk.at/#NtXd1D [09:17]
yawkat yawkat's title: "javap pastebin" [09:17]
Stummi +over [09:17]
plarsen [plarsen!~plarsen@redhat/jboss/pdpc.professional.plarsen] has joined ##java [09:17]
yawkat no block here :) [09:17]
nast [nast!~nast@64.137.242.18] has joined ##java [09:18]
yawkat oh god [09:18]
yawkat that method [09:18]
Stummi yep [09:18]
selckin alan bateman suggesting to drop security manager [09:19]
selckin you guys use one? what for? [09:20]
dreamreal everyone uses one [09:21]
dreamreal it's part of the JVM [09:21]
selckin he says you don't, but it has overhead to check if you do [09:22]
selckin or i read it wrong [09:22]
dreamreal uh... you do [09:22]
dreamreal it's not an option [09:22]
selckin permit-all and not using is kinda the same [09:22]
dreamreal the default security manager is pretty lax, but you have one. It's one reason reflection is so slow, for example: security checks to see if you can use it ("you can!") [09:22]
dreamreal not really [09:23]
selckin what does the default one do ? [09:23]
dreamreal checks security permissions [09:23]
selckin what does the default one not allow? [09:23]
dreamreal it's just generally set to "allow pretty much everything" [09:23]
marlinc [marlinc!~marlinc@bouncer.cvo-technologies.com] has joined ##java [09:23]
dreamreal there are some RMI things that aren't enabled by default [09:23]
yawkat dreamreal: you can totally have a null securitymanager [09:24]
cheeser totes. [09:24]
dmlloyd [dmlloyd!~dmlloyd@redhat/jboss/dmlloyd] has joined ##java [09:24]
dreamreal of course you can [09:25]
dreamreal but you have to set it [09:25]
selckin does that remove the overhead? [09:26]
Pip [Pip!~Pip@unaffiliated/pip] has joined ##java [09:27]
Devastator [Devastator!~Devastato@unaffiliated/devastator] has joined ##java [09:29]
mirk0 [mirk0!~mirk0@unaffiliated/-mirko-/x-2946915] has joined ##java [09:29]
patarr [patarr!~patarr@unaffiliated/patarr] has joined ##java [09:30]
yawkat it's the default [09:33]
DLSteve [DLSteve!~DLSteve@170.167.193.79] has joined ##java [09:33]
freeone3000 [freeone3000!a7dc94e7@Syncleus/dev/freeone3000] has joined ##java [09:33]
yawkat https://ideone.com/OQK3jl [09:33]
greatabyss2 [greatabyss2!~Mutter@adsl-74-178-208-9.jax.bellsouth.net] has joined ##java [09:34]
selckin looks at dreamreal [09:34]
itsiffy [itsiffy!54c3c0c4@gateway/web/freenode/ip.84.195.192.196] has joined ##java [09:34]
Es0teric [Es0teric!~textual@rrcs-184-74-227-42.nyc.biz.rr.com] has joined ##java [09:35]
odinsbane are you saying it is null because ideone uses a null one? [09:35]
yawkat well, it's the default :D [09:36]
G3nka1 [G3nka1!~hubatrix@unaffiliated/hubatrix] has joined ##java [09:38]
itsiffy Hi! i've got a small question, I've made a text file with the name 'test', this file contains String1\nString2\nString3\n. (\n is new line) ... now I'm trying to read the strings entered in that file into my java program with the following code https://gyazo.com/b032a041d85a143d33f16bffd2ff7eb6 [09:38]
itsiffy itsiffy's title: "Gyazo - b032a041d85a143d33f16bffd2ff7eb6.png" [09:38]
itsiffy https://i.gyazo.com/d6ed8224bb1579afe756f11a461d5752.png [09:38]
itsiffy Now, when I run, the results come out like String1\n\nString2\n\nString3\n\n [09:38]
itsiffy i dont know why it comes out with duplicating the \n [09:38]
odinsbane You're adding a [09:39]
itsiffy and, when I use a arr.get(1) - it'll just print a \n (blank next line) [09:39]
odinsbane \n [09:39]
GraysonBriggs [GraysonBriggs!ce337ee2@gateway/web/cgi-irc/kiwiirc.com/ip.206.51.126.226] has joined ##java [09:39]
odinsbane "println" means, print the string, and a line ending. [09:40]
itsiffy ah, so nothing is wrong with my array v_v [09:41]
yawkat javadoc Files.readAllLines(*) [09:42]
yawkat yawkat: http://bit.ly/2zl1Ypm [JDK: java.nio.file.Files.readAllLines(Path, Charset)]; http://bit.ly/2zl1YWo [JDK: java.nio.file.Files.readAllLines(Path)] [09:42]
[DO] [[DO]!~jtdoncas@unaffiliated/jtdoncas] has joined ##java [09:43]
Zalabinsky [Zalabinsky!Zalabinsky@a88-115-35-112.elisa-laajakaista.fi] has joined ##java [09:44]
Gustavo6046 [Gustavo6046!~Gustavo60@unaffiliated/gustavo6046] has joined ##java [09:44]
odinsbane Well, there is a lot missing from your image. `test` for example. or an array. [09:45]
itsiffy the array comes from a text file 'test.text' which contains 3 lines ; String1 (enter) String2 (enter) String3 (enter) [09:45]
itsiffy which gets imported from the first image [09:46]
yawkat odinsbane: test is the first image [09:46]
odinsbane oh, it's a class. [09:47]
itsiffy yeah [09:47]
itsiffy I wanted to use a class for reading, and one for writing [09:48]
yawkat naming [09:48]
yawkat conventions is "ThisIsAClassName, thisIsAVariableOrMethodName, THIS_IS_A_CONSTANT_NAME, here.is.a.packagename". To camelcase an acronym, do DvdPlayer, not DVDPlayer. Also see https://google.github.io/styleguide/javaguide.html and https://github.com/google/google-java-format [09:48]
tlaxkit [tlaxkit!~hexchat@92.189.36.210] has joined ##java [09:49]
itsiffy seemingly, the code imports it as - read first line -> enter into List(0) -> enter into List(1) <blank> [09:49]
schu-r [schu-r!~Thunderbi@82-149-107-2.wco.wellcom.at] has joined ##java [09:49]
itsiffy read second line -> enter into List (2) -> enter into List(3) <blank> [09:49]
SwiftMatt [SwiftMatt!~Objective@2601:282:4300:3e:f443:d32a:f039:2fbe] has joined ##java [09:50]
odinsbane The examples you pasted used println, so you were getting an extra line. Did you switch that the print? [09:51]
odinsbane Do you have a debugger? [09:52]
itsiffy https://pastebin.com/2tGSTWYn [09:52]
itsiffy the blank comes from inside the array for some reason [09:52]
odinsbane So your List has a length of 6? [09:53]
itsiffy if I do arr.get(1) - it returns as a blank [09:53]
odinsbane itsiffy: you don't have an array. [09:53]
qrest [qrest!~qrestlove@2605:6000:eb4a:ef00:454f:112b:9095:f0ea] has joined ##java [09:57]
Es0teric [Es0teric!~textual@rrcs-184-74-227-42.nyc.biz.rr.com] has joined ##java [09:58]
Pip_ [Pip_!~Pip@unaffiliated/pip] has joined ##java [09:59]
Es0teric [Es0teric!~textual@rrcs-184-74-227-42.nyc.biz.rr.com] has joined ##java [10:01]
gugah [gugah!~gugah@181.229.107.78] has joined ##java [10:02]
dreamreal submit https://vladmihalcea.com/2017/11/20/how-to-audit-entity-modifications-using-the-jpa-entitylisteners-embedded-and-embeddable-annotations/ [10:08]
dreamreal Link for https://vladmihalcea.com/2017/11/20/how-to-audit-entity-modifications-using-the-jpa-entitylisteners-embedded-and-embeddable-annotations/ accepted for ##java. [10:08]
Anthaas_ [Anthaas_!~Anthaas@unaffiliated/anthaas] has joined ##java [10:10]
Nightwing52 [Nightwing52!~Thunderbi@47-222-207-54.mnolcmta01.res.dyn.suddenlink.net] has joined ##java [10:12]
Rapture [Rapture!~textual@50-204-232-30-static.hfc.comcastbusiness.net] has joined ##java [10:13]
jonp [jonp!~jonp@about/csharp/mono/jonp] has joined ##java [10:13]
patarr Hello. I am trying to understand the semantics of volatile and was hoping someone could confirm my understanding. If thread A writes to variables x, y, and z (in that order) with only z being volatile, will other threads see the updated values of x and y if they read z first? But if they read x, y, and then z it would be invalid? [10:14]
freeone3000 patarr: Define 'invalid'. [10:15]
odinsbane patarr: what do you think there would be any guarantee on x, or y? [10:15]
patarr Because I read that when reading a volatile, you are guaranteed to read the updated value of the volatile and all the others that were written before it [10:16]
yawkat patarr: yes, assuming z is read after z is written by the first thread. [10:16]
rippa [rippa!~rippa@ppp-vpdn-37.1.85.157.yarnet.ru] has joined ##java [10:16]
patarr yawkat: then I think my understanding is correct. Much appreciated! [10:16]
yawkat it's called piggybacking and is a thing that can easily be done wrong [10:16]
patarr yawkat: I have a use case for which it may be required. The use case is an executor in which one can submit runnables with "keys", and all work items with the same key will be executed serially in the order provided. But those changes need to be visible to all threads. [10:17]
svm_invictvs [svm_invictvs!~svm_invic@unaffiliated/svminvictvs/x-938456] has joined ##java [10:17]
bolovanos [bolovanos!~bolovanos@91.201.22.5] has joined ##java [10:18]
yawkat yes, it is one solution of achieving HB relations between tasks. [10:19]
yawkat do note that only those two ops are ordered. if you do two writes and then a read, there is only a HB order between the last write and the read. [10:20]
odinsbane "all the others that were written before it." There isn't a guarantee on the order, so even though x, y, z were ordered in your code, only z is guarateed to have a write order. [10:20]
yawkat odinsbane: when observing the value written to z from another thread, the values in x and y are also guaranteed to be visible, by HB order. [10:21]
patarr So the JVM could reorder the writes to x and y in whatever order it wants, but because there is a synchronization primitive that comes after, those "happen before" the write to the volatile z, yes? [10:22]
yawkat i dont think the relation between the writes x/y and z are called HB-ordered. the HB-order is between the volatile write and read. [10:23]
patarr So this brings me to my other thought. Let's say the executor operates on a singleton class within the application that stores some kind of business state. The usual map of things, or some lists, etc. The instance of this class can be provided as the key, so the operations on it will be serialized. But how about the visibility of those maps to the rest of the application? [10:24]
yawkat oh, yes it is. nevermind. [10:24]
yawkat patarr: in such scenarios you typically dont operate on the "singleton state" from outside the executor while tasks are queued. [10:25]
patarr yawkat: but presumably you read from it [10:25]
yawkat no. [10:25]
patarr Why no? [10:25]
yawkat no, you dont typically read from state that is written to concurrently without synchronization. [10:26]
patarr Well then, let's say there's a hard requirement to not operate on that singleton outside of tasks within that serialized executor. Does this mean that all of the collections, fields, etc within that singleton do not have to be the threadsafe variants? [10:26]
patarr yawkat: right. That's what I was worried about. You would essentially have to use the same lock the serializing executor system uses if you wanted to read it right? And if that lock is not accessible, then you're out of luck. [10:27]
yawkat correct. the typical thing here is to guarantee that only one task at a time "owns" the singleton, with HB-orders between different tasks. [10:28]
yawkat basically, a mutex, but higher level. [10:28]
yawkat you can in fact do exactly this with a mutex. you get the same guarantees. [10:28]
patarr So it's a different architecture than writing a singeleton in which all the members are threadsafe, the methods are synchronized in such a way that many threads can try executing operations at different times, but the state will always be valid. [10:29]
Pupeno [Pupeno!~pupeno@pdpc/supporter/active/pupeno] has joined ##java [10:29]
dreamreal cheeser: is there a timed facility in the bot? [10:29]
cheeser for? [10:29]
conan [conan!~conan@62.60.61.246] has joined ##java [10:29]
yawkat patarr: yes. [10:29]
M_Kay [M_Kay!~mkay@p5B0DEC5A.dip0.t-ipconnect.de] has joined ##java [10:29]
patarr yawkat: yeah, I think there probably won't be any volatiles. Most likely synchronization on the singleton class. [10:29]
dreamreal well, I was thinking about the links being put in the channel on inactivity [10:29]
cheeser there's an ExecutorService or two in play [10:29]
cheeser oh, no. nothing like that. [10:30]
dreamreal so if fifteen minutes pass with no traffic, it'd pick a link a random and put it in the channel - is it a bad thing for an operation to CONTAIN an executor service? [10:30]
yawkat patarr: a ReentrantLock is good for this. you can use tryLock, and when it fails you know you fucked up somewhere (instead of blocking for a while and you wont notice) [10:30]
patarr yawkat: can you explain that a bit more for me? [10:30]
bakwods_ parted the channel: [10:30]
yawkat patarr: well. the thing that can happen is that by accident your code runs two tasks on the singleton concurrently. to prevent that, you guard each task with a lock.tryLock() and lock.unlock at the end. if tryLock returns false (locking failed) you know a task is currently running - this shouldnt happen so you know somethings broken somewhere. as an added extra, you get HB ordering. [10:31]
backes [backes!~backes@public-docking-pat-hg-mapped-0060.ethz.ch] has joined ##java [10:36]
dave0x6d [dave0x6d!uid190567@gateway/web/irccloud.com/x-gcgepembtnszseiv] has joined ##java [10:37]
patarr yawkat: well couldn't that be a common scenario where a cached thread pool operates on a queue? Thread 1 picks up work item 1 and starts processing it. Meanwhile, Thread 2 picks up item 2 and does a tryLock and fails. [10:37]
Colt [Colt!~Colt@178-221-12-230.dynamic.isp.telekom.rs] has joined ##java [10:37]
backes Hey, I made a small spring RESTful API which accepts some JSON and processes it. How can I also accept https connections? [10:37]
yawkat patarr: well in that case you dont have unsynchronized shared state. [10:37]
Es0teric [Es0teric!~textual@rrcs-184-74-227-42.nyc.biz.rr.com] has joined ##java [10:37]
dreamreal backes: you don't - let the container handle the transport [10:38]
patarr I suppose some kind of thread pinning scheme could be devised... I'm concerned about how bad for performance it would be if all the threads without work will continuously try grabbing work items just to throw them back. [10:38]
upgrdman [upgrdman!~upgrdman@blender/artist/upgrdman] has joined ##java [10:39]
backes dreamreal: and how do I configure that? Note that I wrote this during the weekend and haven't used spring before [10:39]
sbeex [sbeex!~sbeex@46.140.90.107] has joined ##java [10:39]
dreamreal backes: well, what container are you using [10:40]
troker [troker!~troker@evergage03.e.subnet.rcn.com] has joined ##java [10:41]
[DO] [[DO]!~jtdoncas@unaffiliated/jtdoncas] has joined ##java [10:44]
Anthaas [Anthaas!~Anthaas@unaffiliated/anthaas] has joined ##java [10:46]
backes dreamreal: I guess Tomcat(?) I used the Spring Initializer with the "Web" dependency [10:47]
schu-r backes: https://drissamri.be/blog/java/enable-https-in-spring-boot/ [10:48]
backes so spring boot is my container? [10:49]
backes I'll give that a try, thank you [10:49]
cheeser no. spring-boot is not a container [10:49]
schu-r backes: I dont know, because i dont know your application. Spring is not the Container, but it can manage the Container underneth. [10:50]
jamezp [jamezp!~jamezp@redhat/jboss/jamezp] has joined ##java [10:51]
sunri5e [sunri5e!~sunri5e@unaffiliated/sunri5e] has joined ##java [10:55]
GraysonB_ [GraysonB_!~GraysonBr@206-51-126-226.up.net] has joined ##java [10:58]
drewolson [drewolson!~drewolson@192.81.219.167] has joined ##java [10:59]
neredsenvy [neredsenvy!59d4a218@gateway/web/freenode/ip.89.212.162.24] has joined ##java [10:59]
GraysonBriggs [GraysonBriggs!~GraysonBr@206-51-126-226.up.net] has joined ##java [11:00]
neredsenvy Can anyone help me out with this 'could not resolve symbol Controller' error from IDEA. IDE offers a fix: Add plugin spring-context however when I check External Libraries I can already see this under libraries : / [11:01]
dreamreal neredsenvy: reimport the maven pom [11:01]
neredsenvy using Gradle [11:02]
dreamreal (or get IDEA to refresh the gradle build, if you... yeah) [11:02]
dsardari [dsardari!~dsardari@108.189.65.202] has joined ##java [11:02]
baudejogos neredsenvy: also look for the IRC channel for intellij or idea [11:05]
kevinde [kevinde!b2755c58@gateway/web/freenode/ip.178.117.92.88] has joined ##java [11:06]
mipesom [mipesom!~mipesom@p200300E6EBC38D0009CDED2483253B24.dip0.t-ipconnect.de] has joined ##java [11:11]
solars [solars!5473f702@gateway/web/freenode/ip.84.115.247.2] has joined ##java [11:14]
solars quick question, I want to set a json node to null with jackson: ((ObjectNode) json).put("referrer", null); but get put is ambiguous both method put(java.lang.String,java.lang.Boolean) in com.fasterxml.jackson.databind.node.ObjectNode and method put(java.lang.String,byte[]) in com.fasterxml.jackson.databind.node.ObjectNode match [11:15]
solars how can I do this? [11:15]
Cu5tosLimen [Cu5tosLimen!~CustosLim@unaffiliated/cust0slim3n] has joined ##java [11:16]
Cu5tosLimen hi - is there something like guava's Forwarding* classes in apache commons collections ? [11:17]
aQaTL [aQaTL!~aQaTL@62.182.150.83] has joined ##java [11:21]
dreamreal Cu5tosLimen: chances are that the apache docs would show it if so [11:23]
dreamreal what does Forwarding* do? [11:23]
Cu5tosLimen dreamreal, they forward method calls to delegate() method - so you have ForwardingQueue which forwards all queue methods to calls to delegate() that returns a queue object [11:24]
Cu5tosLimen http://google.github.io/guava/releases/snapshot/api/docs/index.html?com/google/common/collect/EvictingQueue.html [11:24]
Cu5tosLimen Cu5tosLimen's title: "Guava: Google Core Libraries for Java HEAD-jre-SNAPSHOT API" [11:24]
dreamreal well, look for an equivalent in apache commons collections. But why not use the Guava classes? [11:26]
neoncontrails [neoncontrails!~neoncontr@2600:1702:850:9ed0:cc42:6c8c:9e0c:2002] has joined ##java [11:26]
Cu5tosLimen dreamreal, I am going to now - cos I could not find something similar in commons-collections - but at the moment the project is not using guava so wanted to avoid adding it if I did not have to [11:27]
dreamreal meh, guava's one of those libraries that is close to a default dependency IMO. I understand, but I'd have zero qualms about adding it, a lot like I'd start off with a dependency on slf4j without a single worry about it [11:28]
teta [teta!c6b8e7fe@gateway/web/freenode/ip.198.184.231.254] has joined ##java [11:29]
teta I have a form with a p:commandButton. works fine. I want to add a validation but it's a pretty complex validation, needs to go the controller, then make a query, and then based on the query go one way or the other [17:26] <teta> what do you suggest for this case? [11:29]
teta this is in primefaces [11:30]
freeone3000 do that? maybe ajax it. [11:30]
Anthaas_ [Anthaas_!~Anthaas@unaffiliated/anthaas] has joined ##java [11:31]
Gurkenglas [Gurkenglas!~Gurkengla@dslb-094-223-141-229.094.223.pools.vodafone-ip.de] has joined ##java [11:31]
svm_invictvs [svm_invictvs!~svm_invic@unaffiliated/svminvictvs/x-938456] has joined ##java [11:33]
yawkat solars: putNull [11:35]
Colt [Colt!~Colt@178-221-12-230.dynamic.isp.telekom.rs] has joined ##java [11:36]
Sheilong [Sheilong!~user@unaffiliated/sheilong] has joined ##java [11:43]
Sheilong I can't access jsp pages from the servlet due path issue, and backwards, how could I fix it? [11:44]
Anthaas [Anthaas!~Anthaas@unaffiliated/anthaas] has joined ##java [11:44]
dreamreal what have you tried, what happens [11:45]
dreamreal what "servlet due path issue" [11:45]
[DO] [[DO]!~jtdoncas@unaffiliated/jtdoncas] has joined ##java [11:46]
itsiffy [itsiffy!54c3c0c4@gateway/web/freenode/ip.84.195.192.196] has joined ##java [11:46]
Sheilong When I access the jsp page directly it only redirects to the servlet whether I add the follwoing code to the the form <%= request.getContextPath() %>/SomethingServlet [11:47]
mirk0 [mirk0!~mirk0@unaffiliated/-mirko-/x-2946915] has joined ##java [11:47]
dreamreal I don't quite understand - you SHOULD be adding the context path in the JSP if you're wanting to access a servlet [11:48]
Sheilong After pass through the servlet If I click on a link to navigate to another page it don't get the right path [11:48]
dreamreal well, the servlet would have to have the correct path to go back to the JSP as well [11:48]
schu-r [schu-r!~Thunderbi@82-149-107-2.wco.wellcom.at] has joined ##java [11:49]
itsiffy Is there a way to split an arrayList into a 2D arrayList? I was looking at the forEach command, but i don't quite understand the syntax :/ , basically I want to split each element of an array of String[] in an String[][] by using a regex "," [11:50]
k3vin-Com I'm trying to compile a java app that has many dependencies using javac.. I tried using the classpath option and specifying the "lib" folder that's part of the project.. I know all of the needed *.jar files reside there.. but it doesn't seem to satisfy the build requirements (the import.*.. statements don't resolve.. can anybody tell me how to point classpath at a folder using a wildcard? ...or am [11:50]
k3vin-Com going about this all wrong? [11:50]
k3vin-Com using javac -cp <path to *.jars> <.java file> [11:51]
yawkat maven [11:51]
yawkat yawkat, maven is a software management tool that can compile, test, package, and deploy your project, with plugins for everything you can think of. See http://maven.apache.org and https://books.sonatype.com/mvnref-book/reference/ [11:51]
CppCon [CppCon!cpp@nat/google/x-jqxdjxxdliqwuxaf] has joined ##java [11:52]
k3vin-Com well.. this is actually part of a larger java project.. the rest of it compiles using ant.. I just wanted to be able to target a single java file to test calls and new procedures in.. [11:54]
Sheilong dreamreal: Yes, but it is not really working. [11:55]
mirk0 [mirk0!~mirk0@unaffiliated/-mirko-/x-2946915] has joined ##java [11:56]
freeone3000 k3vin-Com: Then you want to build a new ant-task to build that file with the rest of your dependencies. [11:56]
freeone3000 Or, really, maven. Since that's what's maven's really good at. [11:56]
dreamreal Sheilong: okay, so do it properly? [11:57]
Beanzilla [Beanzilla!~Beanzilla@unaffiliated/beanzilla] has joined ##java [11:57]
cyberz [cyberz!~cyberz@irc.vleo.net] has joined ##java [11:57]
dreamreal k3vin-Com: why are you not using maven or gradle? [11:57]
dreamreal or sbt? [11:57]
yawkat heh [11:57]
dreamreal yawkat: shush, I'm trying what humans call "being funny" [11:58]
k3vin-Com yawkat : freenode3000 : dreamreal : OK, thanks for the help, I'll look in to those. [11:58]
k3vin-Com dreamreal: it's an eclipse project.. [11:58]
dreamreal k3vin-Com: does that change anything? [11:58]
ogradyd [ogradyd!~Thunderbi@2a02:8070:88ac:21f0:ecdc:bee4:67b6:aa18] has joined ##java [11:58]
dreamreal k3vin-Com: (hint: it does not. Use maven.) [11:58]
Colt [Colt!~Colt@178-221-12-230.dynamic.isp.telekom.rs] has joined ##java [11:59]
k3vin-Com I learned java a looong time ago.. but I'm now getting into the pool and I'm just trying to figure out where all the ladders are :-P [11:59]
dreamreal k3vin-Com: sure. Use maven or gradle. Avoid SBT. That was a joke. [12:00]
k3vin-Com dreamreal: lol on sbt.. I kinda caught it.. I'll do some reading, thanks for the point in the right direction. [12:03]
bobek [bobek!~bobek@unaffiliated/bobek] has joined ##java [12:04]
Yamakaja_ [Yamakaja_!~yamakaja@vps.pub.yamakaja.me] has joined ##java [12:05]
Anticom [Anticom!~Anticom@2001:41b8:9bf:fdc2:2dcc:b0e0:c8dc:e632] has joined ##java [12:06]
Colt [Colt!~Colt@178-221-12-230.dynamic.isp.telekom.rs] has joined ##java [12:09]
Yamakaja_ Mhm, i was wondering about a habit of mine which is getting a bit annoying: I prefer to use fast indexes and avoid linear lookup times pretty much whenever possible. That is, if i have a relation between two things, and that relation also needs to work backwards (While maintaining the original objects) i just create two HashMaps to avoid iterating [12:10]
Yamakaja_ through the map elements. (Even if that would be like 100 max). Is there a point is this technique or should i worry less about that stuff and just iterate over my collections if i really need to? (In my current situation i can decide between yet another index and iteration in a situation that will not happen all that frequently) [12:10]
yawkat if there is a significant code overhead to a potentially more scaleable solution, dont bother before you need it. [12:12]
raynold [raynold!uid201163@gateway/web/irccloud.com/x-lpedukvdufygqamg] has joined ##java [12:12]
Kalascus [Kalascus!~Paradox@122.58.54.240] has joined ##java [12:13]
rorro [rorro!~rorro@h-170-152-58.A163.priv.bahnhof.se] has joined ##java [12:14]
upgrdman [upgrdman!~upgrdman@blender/artist/upgrdman] has joined ##java [12:14]
Affabulation [Affabulation!~Affabulat@unaffiliated/affabulation] has joined ##java [12:15]
mirk0 [mirk0!~mirk0@unaffiliated/-mirko-/x-2946915] has joined ##java [12:16]
[DO] [[DO]!~jtdoncas@unaffiliated/jtdoncas] has joined ##java [12:23]
hextileX [hextileX!~Thunderbi@xdsl-87-79-198-16.netcologne.de] has joined ##java [12:25]
orbyt_ [orbyt_!~orbyt@38.122.6.74] has joined ##java [12:29]
xXLabRatXx [xXLabRatXx!~xXLabRatX@2001:19f0:0:304::2] has joined ##java [12:29]
mirk0 [mirk0!~mirk0@unaffiliated/-mirko-/x-2946915] has joined ##java [12:29]
xXLabRatXx Hello [12:29]
dreamreal hi [12:30]
Yamakaja hi [12:31]
nujikl123 [nujikl123!~nujikl123@unaffiliated/nujikl123] has joined ##java [12:31]
k3vin-Com .MaxValue! [12:31]
Yamakaja Mhm? [12:32]
xXLabRatXx quick question - does anyone know any lists/sites that have a list of intermediate or semi-advanced programming ideas? i looked around but everything i found was dead simple [12:32]
k3vin-Com sorry.. that was a pretty nerdy hello.. [12:32]
Yamakaja Try this if you're into games http://gameprogrammingpatterns.com/ [12:32]
dreamreal k3vin-Com: I appreciated it personally [12:33]
k3vin-Com dreamreal: eggsellent [12:33]
xXLabRatXx k3vin-Com: eggsellent? my grandmother said that all the time when i was young! [12:34]
gone_haywire [gone_haywire!~gone_hayw@gateway/tor-sasl/gonehaywire/x-92471824] has joined ##java [12:38]
yohnnyjoe [yohnnyjoe!~yohnnyjoe@c-73-129-2-10.hsd1.dc.comcast.net] has joined ##java [12:39]
[worksti] [[worksti]!~twisti@toadwater.com] has joined ##java [12:40]
[twisti] [[twisti]!~twisti@toadwater.com] has joined ##java [12:41]
zergut [zergut!uid221522@taskhive/translator/zergut] has joined ##java [12:43]
k3vin-Com xXLabRatXx: sounds like granny was pretty kew.. [12:43]
xXLabRatXx k3vin-Com: indeed she was [12:44]
raynold ahh it's a wonderful day [12:48]
BSWolf [BSWolf!bs_wolf@cpe-66-75-34-36.san.res.rr.com] has joined ##java [12:48]
SwiftMatt Why do a ton of people on this page say that Random should be outside of the method? [12:50]
SwiftMatt https://stackoverflow.com/questions/12458383/java-random-numbers-using-a-seed [12:50]
Anticom Hi all. I'm using Matcher.group(1) to extract the first capute group. However if the pattern doesn't match i'm getting an IllegalStateException. How is this done properly with the least performance overhead? [12:51]
[twisti] SwiftMatt: because new Random makes a new random, and then gives it a seed. so every loop, you make a new random, and set it to produce the same random number sequence. and then you are surprised that its the same number. [12:52]
SwiftMatt That's the code of the person who asked the question [12:53]
[twisti] ok, so replace 'you' with 'he' in my answer [12:53]
SwiftMatt what if the random was inside the method but the no-arg constructor was called? [12:53]
[twisti] then it would be seeded with the microsecond, which in a loop that tight would be the same microsecond for every iteration [12:54]
[twisti] the real question is why would you WANT to have it inside the loop ? its slow, wasteful and doesnt produce good randoms. there is no advantage at all. [12:54]
SwiftMatt so you're saying there is a loop [12:55]
SwiftMatt outside the method call [12:55]
[twisti] what ? [12:56]
SwiftMatt I mean.... what loop were you referring to [12:56]
yawkat facepalms https://stackoverflow.com/a/36280973 [12:56]
yawkat for every SO question theres a dumb answer... [12:56]
[twisti] he says "Everytime I give a seed and try to generate 100 numbers, they all are the same. Please help." [12:57]
SwiftMatt what is dumb about that Yamakaja [12:57]
[twisti] clearly, there is a loop going on [12:57]
SwiftMatt right so that is why I said [12:57]
SwiftMatt you were saying there is a loop outside the method call [12:57]
[twisti] im not saying that, he is [12:57]
Yamakaja SwiftMatt pinged the wrong person :P [12:57]
SwiftMatt ok [12:57]
SwiftMatt I did [12:57]
yawkat strictly worse than new Random() [12:59]
kikero [kikero!8258f041@gateway/web/freenode/ip.130.88.240.65] has joined ##java [12:59]
kikero Hi there! [12:59]
dreamreal hi [01:00]
Yamakaja SwiftMatt there are a couple things with that. System.currentTimeMillis is limited by the normal system clock time resolution - which isn't all that high (Definitely not ms). For cryptographic purposes that'd be REALLY easy to brute force [01:00]
SwiftMatt ok [01:00]
kikero I have a Float.floatToRawIntBits(-10) which is -1054867456 and the unsigned representation of this value as a long 3240099840L [01:00]
yawkat well for crypto, Random sucks anyway [01:00]
yawkat but it's just not good seeding [01:00]
Yamakaja What about SecureRandom? [01:00]
kikero Java doesn't seem to support unsigned integers by default [01:01]
yawkat that is secure. [01:01]
kikero How can I show that the two are equal? [01:01]
kikero i.e. convert 3240099840L to -1054867456 [01:01]
Yamakaja Uhm, try | 0 on the long [01:01]
yawkat Yamakaja: that does absolutely nothing. [01:02]
Yamakaja Then you can try | 0L on the int :P [01:02]
yawkat oh, this is an int. [01:02]
yawkat just cast both to int [01:02]
yawkat done [01:02]
kikero (int) 3240099840L is indeed -1054867456 [01:03]
kikero how can I change -1054867456 to 3240099840L though? [01:03]
Yamakaja | 0L [01:03]
kikero I am sorry, I've asked the wrong question [01:03]
yawkat & 0xffffffffL [01:04]
kikero thanks a lot yawkat [01:04]
Yamakaja Yeah .. my solution converts to long first - whopsie [01:04]
kikero why's that though? [01:05]
Yamakaja Because i'm using bit operators on different types, the lower type is "upgraded" [01:05]
kikero oh, ok [01:05]
yawkat well | 0 does nothing anyway [01:06]
Yamakaja Well, yeah ... i thought it might prevent java from applying it's conversions xD [01:06]
Anthaas [Anthaas!~Anthaas@unaffiliated/anthaas] has joined ##java [01:06]
AtumT_ [AtumT_!~IRC@45.32.216.99] has joined ##java [01:07]
dangertools [dangertools!~dangertoo@82-194-142-118.dyn.salzburg-online.at] has joined ##java [01:12]
orbyt_ [orbyt_!~orbyt@38.122.6.74] has joined ##java [01:13]
tangatools [tangatools!~dangertoo@82-194-142-118.dyn.salzburg-online.at] has joined ##java [01:15]
AtumT [AtumT!~IRC@45.32.216.99] has joined ##java [01:17]
Vertanzil [Vertanzil!Vertanzil@cpc105436-brad21-2-0-cust793.17-1.cable.virginm.net] has joined ##java [01:21]
patarr [patarr!~patarr@unaffiliated/patarr] has joined ##java [01:24]
Es0teric [Es0teric!~textual@rrcs-184-74-227-42.nyc.biz.rr.com] has joined ##java [01:27]
mitchnull [mitchnull!~mitch@apn-5-63-210-74.vodafone.hu] has joined ##java [01:29]
tramsfake [tramsfake!~tramsan@2001:2002:4e45:c34c:4057:9164:6692:9a40] has joined ##java [01:30]
mitchnull [mitchnull!~mitch@apn-5-63-210-74.vodafone.hu] has joined ##java [01:39]
Nightwing52 [Nightwing52!~Thunderbi@47-222-207-54.mnolcmta01.res.dyn.suddenlink.net] has joined ##java [01:45]
nug700 [nug700!~nug700@unaffiliated/nug700] has joined ##java [01:48]