Info

Login

Channels

APIs

Credits

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

« 2019-06-10

2019-06-11

2019-06-12 »

Nick Message Date
toytoy [toytoy!~toytoy@unaffiliated/t0yt0y] has joined ##java [12:03]
vacho [vacho!~vacho@047-028-102-008.res.spectrum.com] has joined ##java [12:03]
vacho are array's faster than arraylists [12:04]
vacho ? [12:04]
SJr Probably, but I wouldn't use arrays unless absolutely necessary. [12:05]
hussam [hussam!uid193284@gateway/web/irccloud.com/x-bmzsmuxulziqdleq] has joined ##java [12:07]
AMcBain vacho, you're rather asking the wrong question here. The right question would be "What can I do to speed up my algorithm?" because I can bet it's probably NOT due to using a Collection in many cases. [12:13]
SJr Yup that's good advice. [12:13]
vacho AMcBain: ok thanks, may I ping you privately? [12:13]
SJr What are you actually trying to do or accomplish [12:14]
AMcBain vacho, I'd much prefer you didn't. I like the keep my help out in the public where anyone can chime in and also benefit. [12:14]
snappy [snappy!nipnop@unaffiliated/snappy] has joined ##java [12:14]
AMcBain but thank you for asking first. [12:14]
Silmarilion [Silmarilion!~Silmarili@87.116.179.180] has joined ##java [12:19]
ertiportline [ertiportline!~ertiportl@unaffiliated/ertiportline] has joined ##java [12:23]
top^ [top^!~prashant@122.160.111.65] has joined ##java [12:24]
ricky_clarkson nexii: java.lang.* is implicitly imported. [12:30]
djhworld [djhworld!~djhworld@90.240.229.47] has joined ##java [12:38]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined ##java [12:41]
rudrab [rudrab!~rudrab@www.hri.res.in] has joined ##java [12:42]
SuperTyp [SuperTyp!~SuperTyp@178.197.233.116] has joined ##java [12:43]
exonity01 [exonity01!uid364582@gateway/web/irccloud.com/x-nktgkkylvovmrixt] has joined ##java [12:49]
Chuguniy [Chuguniy!~Chuguniy@80.232.218.96] has joined ##java [12:50]
avalchev [avalchev!~user@185.108.143.202] has joined ##java [12:50]
jdfthetech [jdfthetech!~jdfthetec@cpe-104-174-3-76.socal.res.rr.com] has joined ##java [12:51]
snappy why does: foo(v -> !v.getName().isEmpty()) work but foo(v -> { !v.getName().isEmpty(); }) doesn't? i thought the last expression in a lambda function block is also the return value? [01:09]
SuperTyp [SuperTyp!~SuperTyp@178.197.233.116] has joined ##java [01:12]
DrDonkey [DrDonkey!~DrDonkey@unaffiliated/drdonkey] has joined ##java [01:13]
ricky_clarkson snappy: It isn't. [01:14]
Kol [Kol!~Kol@S0106bcd1656555bc.vc.shawcable.net] has joined ##java [01:21]
toytoy [toytoy!~toytoy@unaffiliated/t0yt0y] has joined ##java [01:21]
hojang [hojang!~hojang@main.spseitbrno.cz] has joined ##java [01:27]
forgottenone [forgottenone!~forgotten@176.88.99.153] has joined ##java [01:33]
forgottenone [forgottenone!~forgotten@176.88.99.153] has joined ##java [01:37]
top^ [top^!~prashant@122.160.111.65] has joined ##java [01:46]
crackin [crackin!~crackin@216.243.63.251] has joined ##java [01:46]
johndoe231 [johndoe231!~johndoe@2409:4066:188:d0cb:dc3:47a3:5c55:d448] has joined ##java [01:49]
hojang [hojang!~hojang@main.spseit.cz] has joined ##java [01:51]
DiabloD3 [DiabloD3!foobar@exelion.net] has joined ##java [01:54]
palasso [palasso!~palasso@unaffiliated/palasso] has joined ##java [01:54]
OnceMe [OnceMe!~OnceMe@unaffiliated/onceme] has joined ##java [01:56]
sbeex [sbeex!~sbeex@46.140.90.107] has joined ##java [01:58]
sbeex good morning [01:58]
Diablo-D3 [Diablo-D3!foobar@exelion.net] has joined ##java [02:03]
SuperTyp [SuperTyp!~SuperTyp@178.197.233.116] has joined ##java [02:03]
rudrab [rudrab!~rudrab@220.227.103.137] has joined ##java [02:04]
sliekas99 [sliekas99!~mantas@213.164.98.77] has joined ##java [02:05]
rudrab hi, do i need to install a standalone jar file? Or I can just place it in /usr/local and give the path? [02:06]
Diablo-D3 [Diablo-D3!foobar@exelion.net] has joined ##java [02:13]
kegster [kegster!~kegster@unaffiliated/kegster] has joined ##java [02:13]
bobek [bobek!~bobek@unaffiliated/bobek] has joined ##java [02:14]
odinsbane rudrab: what are you trying to do? [02:14]
hojang [hojang!~hojang@main.spseitbrno.cz] has joined ##java [02:15]
indistylo [indistylo!~aruns_@106.51.25.10] has joined ##java [02:15]
ricky_clarkson rudrab: It's just a file. You don't need to install it any more than you install a PDF. [02:17]
ricky_clarkson rudrab: If you're developing, your maven/gradle build file needs to depend on the stuff you need. If you're an end user and double-clicking doesn't work, contact the vendor for help. [02:18]
top^ [top^!~prashant@122.160.111.65] has joined ##java [02:21]
indistylo [indistylo!~aruns_@106.51.25.10] has joined ##java [02:25]
SuperTyp [SuperTyp!~SuperTyp@212.203.123.78] has joined ##java [02:25]
indistylo [indistylo!~aruns_@106.51.25.10] has joined ##java [02:26]
kegster [kegster!~kegster@unaffiliated/kegster] has joined ##java [02:27]
acidjnk [acidjnk!~acid@mue-88-130-58-084.dsl.tropolys.de] has joined ##java [02:31]
v01d4lph4 [v01d4lph4!~v01d4lph4@121.244.44.174] has joined ##java [02:33]
v01d4lph4 alis [02:34]
v01d4lph4 Sorry, nvm. [02:34]
progart [progart!~kamee@46.241.169.141] has joined ##java [02:35]
hojang [hojang!~hojang@main.spseitbrno.cz] has joined ##java [02:38]
mitch0 [mitch0!~mitch@77-234-76-109.pool.digikabel.hu] has joined ##java [02:41]
ricky_clarkson alis? wtf is alis? [02:42]
AMcBain Server bot for finding/listing channels by querying it. [02:42]
ricky_clarkson ("Who the Fuck is Alice?", some old comedy song) [02:43]
SuperTyp [SuperTyp!~SuperTyp@212.203.123.78] has joined ##java [02:46]
Tichodroma [Tichodroma!~lutz@fsf/member/Tichodroma] has joined ##java [02:50]
ravenousmoose [ravenousmoose!~ravenousm@194.78.35.195] has joined ##java [02:51]
g00s [g00s!~g00s@unaffiliated/g00s] has joined ##java [02:55]
hojang [hojang!~hojang@main.spseitbrno.cz] has joined ##java [02:57]
kegster [kegster!~kegster@unaffiliated/kegster] has joined ##java [02:57]
sb35 [sb35!~sb35@67.231.16.206] has joined ##java [02:58]
mayurvpatil [mayurvpatil!~mayurvpat@202.149.218.202] has joined ##java [03:09]
cosh [cosh!~cosh@p5086846A.dip0.t-ipconnect.de] has joined ##java [03:11]
very_sneaky [very_sneaky!~very_snea@221.121.132.39] has joined ##java [03:14]
very_sneaky [very_sneaky!~very_snea@221.121.132.39] has joined ##java [03:16]
royal_screwup21 [royal_screwup21!5c62a718@gateway/web/cgi-irc/kiwiirc.com/ip.92.98.167.24] has joined ##java [03:16]
karab44 [karab44!~karab44@unaffiliated/karab44] has joined ##java [03:16]
bakwods_ [bakwods_!~bakwods@105.234.162.8] has joined ##java [03:22]
jusss [jusss!~user@unaffiliated/jusss] has joined ##java [03:25]
indistylo [indistylo!~aruns_@106.51.25.10] has joined ##java [03:26]
srm [srm!~srm@unaffiliated/srm] has joined ##java [03:31]
SuperTyp [SuperTyp!~SuperTyp@212.203.123.78] has joined ##java [03:41]
DrDonkey [DrDonkey!~DrDonkey@unaffiliated/drdonkey] has joined ##java [03:43]
mayurvpatil [mayurvpatil!~mayurvpat@202.149.218.202] has joined ##java [03:44]
dimm_ [dimm_!~dimm@unaffiliated/dimm] has joined ##java [03:44]
g00s [g00s!~g00s@unaffiliated/g00s] has joined ##java [03:44]
profsimm [profsimm!57e3c46d@gateway/web/freenode/ip.87.227.196.109] has joined ##java [03:46]
profsimm I'd like to pose the topic of DI containers. Why the fuck we use 'em [03:48]
selckin makes life easy [03:49]
profsimm Makes my life harder. [03:49]
profsimm It's global variables, but with a fancy API built on reflection [03:49]
deebo you're using it wrong then [03:49]
db uh.. yes. [03:50]
profsimm It's not a matter of how I use, it's a matter of what it is. [03:50]
cosh not all DI use reflection tho :) [03:50]
cosh guice doe [03:50]
profsimm Well the point is autowiring botches your object design and architecture [03:51]
profsimm No matter how it's done [03:51]
odinsbane profsimm: so you're claiming nobody benefits from using DI containers? [03:51]
profsimm Your constructor signature becomes "gimme this from the globals" [03:51]
profsimm odinsbane: I'm not claiming *that* [03:51]
profsimm odinsbane: but I'm claiming... with maybe 10 minute training everyone can learn to do DI without containers and will be better off. [03:51]
profsimm And build better architecture for their apps [03:52]
profsimm Ok let's make it 1 hour training [03:52]
OnceMe xpath.evaluate gives me java.net.malformedurlexception no protocol, any idea why? String value = xpath.evaluate("/*/Header/Id", inputSource); <- this throws that error, and it has valid xml string, do I need to do something else? [03:53]
db we've all been doing it wrong guyse [03:54]
odinsbane OnceMe: how did you crate your XPath? [03:55]
profsimm db: "we've been all doing it wrong" keeps happening all the time in this industry. [03:57]
profsimm db: remember when everyone would focus on deep inheritance trees as the core of what OOP is? [03:58]
profsimm db: suddenly inheritance is kind of a bad thing, everyone been doin' it wrong [03:58]
profsimm db: and if there's anything that we keep doing wrong it's reinventing global state [03:58]
profsimm db: singletons are globals. [03:58]
OnceMe odinsbane, https://pastebin.com/tvA7Tmxd [03:58]
profsimm so are injected dependencies from containers [03:59]
AMcBain SOAP, WSDLs, CORBA... :P [03:59]
profsimm Different ways to get them juicy globals [03:59]
Xe4roX [Xe4roX!~Xe4roX@unaffiliated/xe4rox] has joined ##java [03:59]
profsimm Static registries - globals [03:59]
db yes, just with loose coupling which still is a gain over getInstance calls IMHO [03:59]
profsimm It's all globals. And when people wise up that the current way is globals they fudge the syntax a little bit and say "ok now this is new and it's best practice" [03:59]
db we will find better ways I'm sure [04:00]
profsimm db: I wouldn't say the coupling is more loose to be honest. [04:00]
odinsbane OnceMe: sounds like your systemId is a malformed url. [04:00]
profsimm db: what makes it more loose [04:00]
profsimm db: oh you mean over singletons [04:00]
db you can just inject mock objects for instance [04:00]
db that's a primary use case i think [04:00]
profsimm db: it's better than singletons but it's not better than global variables [04:01]
profsimm cause you can override global variables (in the languages that have them that is) [04:01]
OnceMe odinsbane, systemid? [04:01]
odinsbane https://docs.oracle.com/en/java/javase/11/docs/api/java.xml/org/xml/sax/InputSource.html#%3Cinit%3E(java.lang.String) [04:01]
odinsbane The xpath.execute should give you a different exception than the MUE if your query string was wrong. [04:02]
odinsbane Maybe you want something like, new InputSource(new StringReader(yourXmlData));? [04:05]
db profsimm: well a framework like spring for instance moves the concern of "where do I get that service/whatever from" away from the business code. [04:05]
db profsimm: of course you can do that without such a framework, which means you build your own framework [04:07]
db profsimm: now a framework like spring sets certain standards - of ways of doing things [04:08]
profsimm db: basic object construction doesn't require a framework. I can't believe everyone simply accepted that falsehood over a few years. [04:08]
profsimm db: the concern about "where I get them from" in DI doesn't exist. You ask for them in the constructor and someone gives them to you [04:09]
profsimm db: the concern is more on the other side "how do I give them the services" [04:09]
db as I said, it sets a standard of doing that. [04:09]
profsimm db: but it's an important concern, because "I just give them something from this pile in the corner here" [04:09]
profsimm db: ... that's just a recipe for a big ball of mud [04:09]
db I work with a lot of legacy code. some people saw that problem and dit it right, but many didn't [04:10]
profsimm db: I build the graph in code. It's not even a lot of code [04:10]
hojang [hojang!~hojang@147.229.242.34] has joined ##java [04:10]
Xe4roX [Xe4roX!~Xe4roX@unaffiliated/xe4rox] has joined ##java [04:10]
db there's nothing wrong with doing it yourself I suppose [04:11]
profsimm db: I don't know what standard it sets, honestly, java is already a standard: put things in constructor, get them [04:11]
profsimm db: and conversely, instantiate thing, give it things for construction. [04:12]
Xe4roX [Xe4roX!~Xe4roX@unaffiliated/xe4rox] has joined ##java [04:13]
DiabloD3 [DiabloD3!foobar@exelion.net] has joined ##java [04:14]
profsimm db: on one hand, I have to thank DI containers for introducing me to the concept of composition root and what not. Many years ago. [04:14]
profsimm db: on the other hand, when I actually figured out what DI is useful for, I realized DI containers fucked it up [04:14]
[twisti] is getting/generating the stack trace still too expensive to do for fine grained logging ? i read that its performance got improved but i dont remember where and i dont know by how much [04:15]
yawkat what do you mean by "for fine-grained logging" [04:16]
John_Ivan [John_Ivan!~John_Ivan@unaffiliated/john-ivan/x-3287162] has joined ##java [04:16]
yawkat the jit may decide to not generate stack traces for exceptions in certain circumstances [04:16]
yawkat if you actually use the stack traces to introspect the call stack in code, and not just throw it away most of the time, then yes it will be slow [04:16]
profsimm [twisti]: I wonder how often you have exceptions if you're worried about this :) [04:17]
yawkat stackwalker is a better alternative [04:17]
haltode parted the channel: "WeeChat 2.4" [04:17]
[twisti] profsimm: what does my question have to do with exceptions ? did you misread or was i unclear ? [04:21]
[twisti] yawkat: to log method/line number info, we need the stack trace, and we are concerned about that for logging messages that happen thousands of times per minute [04:23]
Diablo-D3 [Diablo-D3!foobar@exelion.net] has joined ##java [04:23]
Matthijs [Matthijs!~quassel@unaffiliated/matthijs] has joined ##java [04:23]
profsimm [twisti]: I guess I did misread :) sorry [04:24]
yawkat well are you *actually* logging thousands of messages, or is this one of those cases where you have an if (debug) down the line [04:24]
yawkat the actual logging is likely to be a bigger issue than stack generation [04:24]
[twisti] no, no, we run with debug logging on [04:24]
yawkat but if you want to be sure, use stackwalker instead [04:24]
[twisti] we debug software in production, like any real man would [04:25]
[twisti] ill check out stackwalker, thanks [04:25]
[twisti] oooh, exciting, looks like ill have another argument to convince my boss to finally ditch j8 [04:27]
OnceMe odinsbane, now I get javax.xml.transform.TransformerException: Unknown error in XPath. [04:27]
DiabloD3 [DiabloD3!foobar@exelion.net] has joined ##java [04:34]
progart [progart!~kamee@5.77.210.117] has joined ##java [04:35]
progart [progart!~kamee@5.77.210.117] has joined ##java [04:36]
Diablo-D3 [Diablo-D3!foobar@exelion.net] has joined ##java [04:44]
SuperTyp [SuperTyp!~SuperTyp@212.203.123.78] has joined ##java [04:46]
bakwods_ [bakwods_!~bakwods@105.234.162.31] has joined ##java [04:49]
hojang [hojang!~hojang@main.spseit.cz] has joined ##java [04:51]
forgottenone [forgottenone!~forgotten@176.88.99.153] has joined ##java [04:54]
Diablo-D3 [Diablo-D3!foobar@exelion.net] has joined ##java [04:54]
hexacode [hexacode!~anno13233@195.66.82.9] has joined ##java [04:56]
hexacode hello all what is the difference between maven and gradle ? [05:01]
Squarism what library do you recommend for providing functional programming constructs to java? [05:01]
magz [magz!~magz@68-168-184-223.fttp.usinternet.com] has joined ##java [05:02]
hexacode Squarism, i recommend to change language use more scala or kotlin [05:02]
Tichodroma hexacode: XML vs. Groovy DSL [05:02]
Squarism hexacode, not possible. If i had free hands id use Haskell [05:03]
[twisti] Squarism: i havent used it, but i heard lots of good things about vavr [05:13]
Diablo-D3 [Diablo-D3!foobar@exelion.net] has joined ##java [05:14]
Squarism [twisti] Ah ok. It was what led me to ask the question. Found an Either from vavr on the classpath [05:16]
tilerendering [tilerendering!~tilerende@c-base/crew/conx] has joined ##java [05:16]
tilerendering hola [05:16]
crackin [crackin!~crackin@216.243.63.251] has joined ##java [05:17]
Evil[1] [Evil[1]!~evil1]@24.134.55.189] has joined ##java [05:17]
tilerendering I got a spooky problem here: query.setHint("javax.persistence.cache.storeMode", CacheStoreMode.REFRESH); ?> FAILS. without exception. even though it is not inside a try/catch block, executing on a glassfish server, and in the server logs there is nothing. however any other exception figures in the log. do you have any clue what this could be? [05:18]
tilerendering I know it fails because the line after it is never reached [05:18]
tilerendering I even failed to debug this. [05:18]
tilerendering and yes, the remote server code is identical to the local code I m debugging with my IDE [05:19]
yawkat have you stepped into it? [05:19]
tilerendering into the sethint method? [05:19]
yawkat sure. [05:19]
tilerendering not yet. [05:19]
tilerendering debugging is extremely slow [05:19]
tilerendering I wondered whether anyone else had encountered the problem [05:20]
Diablo-D3 [Diablo-D3!foobar@exelion.net] has joined ##java [05:25]
Diablo-D3 [Diablo-D3!foobar@exelion.net] has joined ##java [05:35]
sbeex [sbeex!~sbeex@46.140.90.107] has joined ##java [05:36]
top^ [top^!~prashant@122.160.111.65] has joined ##java [05:46]
mayurvpatil [mayurvpatil!~mayurvpat@202.149.218.202] has joined ##java [05:55]
ravenousmoose [ravenousmoose!~ravenousm@194.78.35.195] has joined ##java [05:57]
EmmaT [EmmaT!~EmmaT@m77-218-246-96.cust.tele2.se] has joined ##java [06:07]
hojang [hojang!~hojang@147.229.242.34] has joined ##java [06:08]
indistylo [indistylo!~aruns_@106.51.25.10] has joined ##java [06:20]
sbeex [sbeex!~sbeex@46.140.90.107] has joined ##java [06:29]
crackin [crackin!~crackin@216.243.63.251] has joined ##java [06:29]
v01d4lph4 [v01d4lph4!~v01d4lph4@103.6.158.169] has joined ##java [06:30]
top^ [top^!~prashant@122.160.111.65] has joined ##java [06:38]
Katana [Katana!~hentai@unaffiliated/katana] has joined ##java [06:40]
Nicmavr [Nicmavr!~Nicmavr@unaffiliated/nicmavr] has joined ##java [06:44]
hojang [hojang!~hojang@147.229.242.34] has joined ##java [06:48]
gurrkiin bit of a long shot, but does anyone know if it's possible to list JSP errors with Struts 1? I mean a processing error of the struts tags, not html errors for input fields [06:54]
progart [progart!~kamee@5.77.254.89] has joined ##java [06:57]
sb35 [sb35!~sb35@179.43.133.140] has joined ##java [06:59]
o-bit [o-bit!69150022@gateway/web/freenode/ip.105.21.0.34] has joined ##java [07:07]
hojang [hojang!~hojang@147.229.242.34] has joined ##java [07:07]
paws_ [paws_!uid89121@gateway/web/irccloud.com/x-lreaoqfistvcncli] has joined ##java [07:09]
CookieM [CookieM!~tomek@bjz56.neoplus.adsl.tpnet.pl] has joined ##java [07:11]
hojang [hojang!~hojang@147.229.242.34] has joined ##java [07:13]
donotturnoff [donotturnoff!~isaac@cpc126416-mapp13-2-0-cust85.12-4.cable.virginm.net] has joined ##java [07:17]
DrDonkey [DrDonkey!~DrDonkey@unaffiliated/drdonkey] has joined ##java [07:17]
Addax the server logs don't have such errors? [07:22]
HumanGeek [HumanGeek!~HumanG33k@62.147.242.8] has joined ##java [07:28]
hojang [hojang!~hojang@main.spseitbrno.cz] has joined ##java [07:29]
bakwods_ [bakwods_!~bakwods@102.70.2.19] has joined ##java [07:37]
conan [conan!~conan@mdproctor.plus.com] has joined ##java [07:38]
whaley [whaley!~whaley@c-73-78-132-227.hsd1.co.comcast.net] has joined ##java [07:42]
surial tilerendering: wrap it in a try/catch and log everything about it, then. [07:51]
cosh [cosh!~cosh@p5086846A.dip0.t-ipconnect.de] has joined ##java [07:52]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined ##java [08:03]
wisey [wisey!~wisey@79-73-80-175.dynamic.dsl.as9105.com] has joined ##java [08:03]
Matthijs [Matthijs!~quassel@unaffiliated/matthijs] has joined ##java [08:09]
bakwods_ [bakwods_!~bakwods@102.70.10.22] has joined ##java [08:12]
Jantz [Jantz!~IceChat9@118-93-151-252.dsl.dyn.ihug.co.nz] has joined ##java [08:18]
Amadiro [Amadiro!~Amadiro@v220100555393154.yourvserver.net] has joined ##java [08:22]
DrDonkey [DrDonkey!~DrDonkey@unaffiliated/drdonkey] has joined ##java [08:28]
reaga [reaga!~joxo@cpc114742-brad22-2-0-cust1463.17-1.cable.virginm.net] has joined ##java [08:30]
sb35 [sb35!~sb35@23.111.78.46] has joined ##java [08:31]
akaWolf [akaWolf!~akaWolf@unaffiliated/akawolf] has joined ##java [08:31]
reaga I have a List of Dog objects (they have various fields like weight, height, age).This List of Dogs is sorted by weight. whats a good way of doing a binary search on this List to find a dog with a certain weight? [08:32]
reaga maybe i need to use comparable actually [08:32]
reaga yeah thats all i need to do [08:32]
Stummi TreeSet, maybe? [08:33]
reaga nah i figured it out [08:33]
reaga the best way to solve bugs is explaining it to toher people [08:33]
Stummi yeah [08:33]
Stummi Also, Collections.binarySearch (if not yet found) [08:34]
Addax rubber ducking [08:34]
Addax Addax, rubber ducking is Thoroughly explaining your problem to someone else often helps you work out a solution to it. See http://c2.com/cgi/wiki?RubberDucking [08:34]
tuskkk____ [tuskkk____!uid18470@gateway/web/irccloud.com/x-aictbhxhbmoxtyam] has joined ##java [08:35]
Addax no, rubber ducking is <reply>"Rubber ducking" is a colloquial process of thoroughly explaining your problem to someone else - who may or may not be a rubber duck - which has the benefit of helping you work out a solution as you explain. See http://c2.com/cgi/wiki?RubberDucking for more. [08:35]
Addax OK, Addax. [08:35]
Addax no, rubber ducking is <reply>"Rubber ducking" is a colloquial process of thoroughly explaining your problem to someone else - who may or may not be a rubber duck - which often has the benefit of helping you work out a solution as you explain. See http://c2.com/cgi/wiki?RubberDucking for more. [08:36]
Addax OK, Addax. [08:36]
dmlloyd I do it all the time, much to the annoyance of everyone around me [08:40]
Addax I do it too [08:40]
Addax I think it's pretty common [08:40]
Addax I use a 3d-printed octopus, though [08:41]
Addax I named it "Narm," because it's pretty narmy [08:41]
DrDonk3y [DrDonk3y!~DrDonkey@unaffiliated/drdonkey] has joined ##java [08:41]
jamezp [jamezp!~jamezp@redhat/jboss/jamezp] has joined ##java [08:46]
DrowningElysium [DrowningElysium!uid190788@gateway/web/irccloud.com/x-cbyolhvylccznaik] has joined ##java [08:46]
zeden [zeden!~user@unaffiliated/zeden] has joined ##java [08:47]
Hatsjoe [Hatsjoe!~Hatsjoe@unaffiliated/hatsjoe] has joined ##java [08:48]
tilerendering surial: hm. already done. that is the problem. it seems the ?em.createquery? itself swallows an exception somehow [08:51]
cosh [cosh!~cosh@p5086846A.dip0.t-ipconnect.de] has joined ##java [08:51]
tilerendering surial: and what is even worse, I get no jvm error. oh wait. [08:54]
bendem narmy? [08:57]
SJr Hey surial thanks for your help the other day, I got things working with the class loader issues. [08:58]
hojang [hojang!hojang@nat/redhat/x-oggjaxfwgkolqghh] has joined ##java [08:59]
DrDonkey [DrDonkey!~DrDonkey@unaffiliated/drdonkey] has joined ##java [09:00]
DrDonkey [DrDonkey!~DrDonkey@unaffiliated/drdonkey] has joined ##java [09:05]
top^ [top^!~prashant@112.79.128.59] has joined ##java [09:08]
exmortus [exmortus!darkstarde@gateway/vpn/privateinternetaccess/darkstardevx] has joined ##java [09:08]
user01 [user01!~user01@2603:301f:1625:c000::9696] has joined ##java [09:09]
exmortus [exmortus!darkstarde@gateway/vpn/privateinternetaccess/darkstardevx] has joined ##java [09:10]
user01 hi how do i install packages in my IDE (STS)? I'm trying to install this one: https://text-io.beryx.org/releases/latest/#getting_started, I added the dependecy to the pom.xml but it says not found . . . do i have to git pull somewhere first? [09:11]
staticx [staticx!darkstarde@gateway/vpn/privateinternetaccess/darkstardevx] has joined ##java [09:11]
user01 this is my first time trying to add a package [09:12]
user01 it is for maven [09:12]
top^ [top^!~prashant@112.79.128.59] has joined ##java [09:13]
gurrkiin user01: have you ran mvn install? [09:14]
sa02irc [sa02irc!~sa02irc@155-079-043-212.ip-addr.inexio.net] has joined ##java [09:14]
arkadio is it nowadays a bad smell if I consume a SOAP Web Service by generating its client and stuff via Eclipse instead of using Spring? [09:14]
Stummi user01, right click -> update maven project (or something like that) [09:14]
odinsbane user01: What says not found? [09:14]
Stummi arkadio, neither "eclipse" nor "spring" can generate SOAP code IIRC. Its probably CXF what you mean and is run by both under the hood [09:15]
Stummi and this should be run by maven in the generate-sources cycle [09:15]
reaga hey [09:15]
user01 thanks errors message gone now for pom [09:18]
deathwishdave [deathwishdave!~deathwish@90.254.88.53] has joined ##java [09:21]
VegetarianFalcon [VegetarianFalcon!uid258908@gateway/web/irccloud.com/x-ejedrfvhhfvyhqpt] has joined ##java [09:34]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined ##java [09:35]
hd1 [hd1!4c5b0bf5@gateway/web/cgi-irc/kiwiirc.com/ip.76.91.11.245] has joined ##java [09:36]
hd1 parted the channel: [09:36]
Rapture [Rapture!~textual@50-204-232-30-static.hfc.comcastbusiness.net] has joined ##java [09:36]
waz [waz!~waz@pdpc/supporter/active/waz] has joined ##java [09:38]
hojang [hojang!hojang@nat/redhat/x-hkqyevhiitfhrjqc] has joined ##java [09:38]
lithium [lithium!~lithium@unaffiliated/lithium] has joined ##java [09:43]
acidjnk [acidjnk!~acid@mue-88-130-58-084.dsl.tropolys.de] has joined ##java [09:49]
top^ [top^!~prashant@122.160.111.65] has joined ##java [09:50]
v01d4lph4 [v01d4lph4!~v01d4lph4@103.6.158.169] has joined ##java [09:55]
horribleprogram [horribleprogram!~horriblep@unaffiliated/nightcoder] has joined ##java [09:59]
horribleprogram If I declare a method as native, how exactly does the process work on finding the actual code [10:00]
horribleprogram there's a lot of methods in the standard library defined this way [10:00]
Addax horribleprogram: javah can generate the binding for you [10:01]
Addax horribleprogram: why are you trying to create a native method? [10:02]
nathanj [nathanj!~nathanj@107.155.79.139] has joined ##java [10:02]
horribleprogram Addax: Sweet! [10:03]
horribleprogram Addax: I read that two ways: 1. "why are you trying to create a native method?" and 2. "Why? Are you trying to create a native method??" [10:03]
Maldivia horribleprogram: 2 ways: either through the JNI registerNatives, or via special naming [10:04]
horribleprogram 1. I'm just testing out some inner workings stuff [10:04]
horribleprogram 2. yes [10:04]
freeone3000 And the JVM does both. There's a *big* method for registerNatives in the JVM. I prefer doing it by special naming. [10:04]
horribleprogram freeone3000: okay so the JVM calls native methods? [10:05]
Maldivia the jvm had plenty of them [10:05]
Stummi as an alternative to JNI theres JNA, which makes binding easier (IMHO) from the java side [10:06]
horribleprogram I wanna go from C source code --> Java class [10:06]
Maldivia horribleprogram: https://docs.oracle.com/en/java/javase/12/docs/specs/jni/index.html [10:06]
Maldivia Maldivia's title: "Java Native Interface Specification: Contents" [10:06]
horribleprogram not Java Class that generates C stub files and headers [10:06]
horribleprogram Maldivia: perfect, tyvm [10:06]
horribleprogram as a quick example, when Java encounters the bytecode of System.out.println(), it possibly might set up and call the printf() function? [10:07]
Maldivia not from JNI [10:08]
horribleprogram kk [10:08]
Maldivia but it's fairly simple to do with traditional Java :D [10:08]
progart [progart!~kamee@5.77.210.117] has joined ##java [10:09]
horribleprogram "Native methods are loaded with the System.loadLibrary method" Chapter 2 [10:10]
Maldivia horribleprogram: https://www.ideone.com/1gz3va -- see, very simple with Java :D [10:12]
Maldivia horribleprogram: well, native "methods" aren't loaded with that, but the libraries in which they exist are [10:12]
horribleprogram MyPrintStream just sets out to w/e you give it in the Constuctor... [10:14]
horribleprogram This doesn't explain what I'm talking about [10:14]
Maldivia horribleprogram: System.out is an instance of PrintStream -- it's not a native method [10:14]
greggerz [greggerz!~greggerz@unaffiliated/greggerz] has joined ##java [10:14]
Diablo-D3 [Diablo-D3!foobar@exelion.net] has joined ##java [10:15]
horribleprogram yes, but I'm talking about how JVM takes Java code and converts it to proper system calls [10:15]
horribleprogram [horribleprogram!~horriblep@unaffiliated/nightcoder] has joined ##java [10:16]
horribleprogram d/c [10:16]
rippa [rippa!~rippa@ppp-vpdn-37.1.85.157.yarnet.ru] has joined ##java [10:16]
horribleprogram Anyways yeah I'll read the link you posted, maybe it'll give me some idea of how it all works [10:16]
Maldivia horribleprogram: well, in the case of System.out, it opens an output stream to FD 0 [10:16]
Maldivia sorry, FD 11 [10:16]
lithium [lithium!~lithium@unaffiliated/lithium] has joined ##java [10:16]
Maldivia 1 [10:17]
Maldivia (0 = in, 1 = out, 2 = err) [10:17]
horribleprogram ^ yup [10:17]
learningc [learningc!~learningc@121.121.98.115] has joined ##java [10:17]
Maldivia all of this is still in java [10:17]
Maldivia so you would have to look at the implementation of FileOutputStream.writeBytes [10:18]
horribleprogram okay watch [10:18]
horribleprogram BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("file"))); [10:18]
horribleprogram The JVM has to eventually call open("file", ...); [10:19]
Maldivia horribleprogram: ok, take FileOutputStrema.writeBytes -- it's native, it's bound (on Windows) to this native method: https://github.com/openjdk/jdk/blob/master/src/java.base/windows/native/libjava/FileOutputStream_md.c#L69 [10:20]
Maldivia Maldivia's title: "jdk/FileOutputStream_md.c at master openjdk/jdk GitHub" [10:20]
horribleprogram YES, this is what I'm talking about [10:20]
horribleprogram perfect [10:20]
Maldivia as you can see it has the special naming mentioned [10:20]
horribleprogram ahh [10:21]
horribleprogram Java_pck1_pck2_ClassName_methodName() [10:21]
Maldivia horribleprogram: the System class uses registerNatives instead of special names, example here: https://github.com/openjdk/jdk/blob/master/src/java.base/share/native/libjava/System.c#L39 [10:21]
Maldivia Maldivia's title: "jdk/System.c at master openjdk/jdk GitHub" [10:21]
Maldivia horribleprogram: as you can see there, it uses special naming for the "Java_java_lang_System_registerNatives" method, and that then registers the other methods in System (currentTimeMillis, nanoTime, arraycopy) [10:22]
horribleprogram very cool [10:23]
horribleprogram iight perfect, tyvm [10:23]
Diablo-D3 [Diablo-D3!foobar@exelion.net] has joined ##java [10:25]
Maldivia horribleprogram: the JVM will also replace some java methods with native implementation depending in hardware, the so called intrinsic method [10:27]
indistylo [indistylo!~aruns_@106.51.25.10] has joined ##java [10:27]
Maldivia horribleprogram: see https://github.com/openjdk/jdk/blob/master/src/hotspot/share/classfile/vmSymbols.hpp#L742 [10:27]
Maldivia Maldivia's title: "jdk/vmSymbols.hpp at master openjdk/jdk GitHub" [10:27]
Addax horribleprogram: so the questions remain: are you trying to create native methods? If so, why? [10:27]
Maldivia (if interested in intrinsic methods, see https://chriswhocodes.com/hotspot_intrinsics_jdk11.html -- for a much nicer overview than code) [10:28]
Maldivia Maldivia's title: "HotSpot Intrinsics for JDK11" [10:28]
MarkyC [MarkyC!~MarkyC@CPE64777d64a283-CM64777d64a280.cpe.net.cable.rogers.com] has joined ##java [10:28]
jamezp [jamezp!~jamezp@redhat/jboss/jamezp] has joined ##java [10:29]
conan [conan!~conan@mdproctor.plus.com] has joined ##java [10:36]
SuperTyp [SuperTyp!~SuperTyp@212.203.123.78] has joined ##java [10:38]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined ##java [10:39]
yawkat how do jboss contributions work? is it just make issue + make pr, or do i need to sign a cla or something? [10:41]
Addax I'd make the issue and the PR, and if they need more, they'll ask [10:42]
waz [waz!~waz@pdpc/supporter/active/waz] has joined ##java [10:44]
mayurvpatil [mayurvpatil!~mayurvpat@202.149.218.202] has joined ##java [10:45]
ygivenx [ygivenx!~ygivenx@c-67-161-30-108.hsd1.ca.comcast.net] has joined ##java [10:48]
v01d4lph4 [v01d4lph4!~v01d4lph4@103.6.158.186] has joined ##java [10:50]
mayurvpatil [mayurvpatil!~mayurvpat@202.149.218.202] has joined ##java [10:50]
crackin [crackin!~crackin@216.243.63.251] has joined ##java [10:52]
indistylo [indistylo!~aruns_@106.51.25.10] has joined ##java [10:52]
Galactus [Galactus!~Galactus@unaffiliated/galactus] has joined ##java [10:54]
indistylo [indistylo!~aruns_@106.51.25.10] has joined ##java [10:55]
waz [waz!~waz@pdpc/supporter/active/waz] has joined ##java [10:57]
manualcrank [manualcrank!~manualcra@bras-base-mtrlpq2718w-grc-11-70-24-186-113.dsl.bell.ca] has joined ##java [10:58]
mayurvpatil [mayurvpatil!~mayurvpat@202.149.218.202] has joined ##java [11:03]
EgonX [EgonX!~Egon@c-98-195-195-100.hsd1.tx.comcast.net] has joined ##java [11:03]
suilix [suilix!ce183101@gateway/web/freenode/ip.206.24.49.1] has joined ##java [11:04]
Aegon [Aegon!56390041@gateway/web/freenode/ip.86.57.0.65] has joined ##java [11:07]
bluezone [bluezone!uid104970@gateway/web/irccloud.com/x-gnpedmozkzpufbnk] has joined ##java [11:08]
led_dark_1 [led_dark_1!~Thunderbi@217.66.160.14] has joined ##java [11:12]
whaley [whaley!~whaley@192.133.78.19] has joined ##java [11:20]
tang^ [tang^!~tang^@207.229.38.10] has joined ##java [11:21]
RedSoxFan07 [RedSoxFan07!~Thunderbi@d-137-103-109-45.ct.cpe.atlanticbb.net] has joined ##java [11:23]
esro [esro!~esro@188.147.106.95.nat.umts.dynamic.t-mobile.pl] has joined ##java [11:24]
hojang [hojang!hojang@nat/redhat/x-pmuijrmeyucyjoox] has joined ##java [11:27]
indistylo [indistylo!~aruns_@106.51.25.10] has joined ##java [11:27]
plarsen [plarsen!~plarsen@redhat/jboss/pdpc.professional.plarsen] has joined ##java [11:30]
upgrdman [upgrdman!~upgrdman@blender/artist/upgrdman] has joined ##java [11:30]
hojang [hojang!hojang@nat/redhat/x-cguvieoefhqvwuve] has joined ##java [11:33]
whaley [whaley!~whaley@192.133.78.19] has joined ##java [11:34]
sliekas99 [sliekas99!~mantas@213.164.98.77] has joined ##java [11:36]
q9929t [q9929t!~Thunderbi@125.99.231.185] has joined ##java [11:36]
orbyt_ [orbyt_!~orbyt@172.92.5.20] has joined ##java [11:37]
k0tze [k0tze!~wirzwei@p200300E1572F1749846253610230B40B.dip0.t-ipconnect.de] has joined ##java [11:39]
mluser-home [mluser-home!~mluser-ho@ip68-0-67-199.tu.ok.cox.net] has joined ##java [11:43]
esro [esro!~esro@user119-167.otvarta.com.pl] has joined ##java [11:44]
k0tze A wonderfull day to you all, I'm new to java ee and hiebernate and stucked for some hours... I like to implement a unidirectional OneToOne connection betweens pairs of Answers and Questions. Answers has a foreign key of the questions table (qID). To associate a new answer with a question i post with {"qID":"1"} but all the time the q_id in answer table is null. Can someone see why? https://nopaste.xyz/?3aeb5d284d61d1e [11:46]
k0tze 7#m1kUuqyFkOOHAjz/Pe3BNs6pCirTgq6D8e2KE3hCZCg= [11:46]
surial service: https://nopaste.xyz/?3aeb5d284d61d1e7#m1kUuqyFkOOHAjz/Pe3BNs6pCirTgq6D8e2KE3hCZCg= [11:47]
k0tze surial, ty :) [11:48]
mayurvpatil [mayurvpatil!~mayurvpat@202.149.218.202] has joined ##java [11:55]
LunarJetman [LunarJetman!LunarJetma@0547857b.skybroadband.com] has joined ##java [11:59]
code_zombie [code_zombie!~code_zomb@2605:a601:aa1:da00:9167:5aea:79e2:7317] has joined ##java [12:04]
raztoki [raztoki!~a0sle@unaffiliated/a0sle] has joined ##java [12:10]
srisri [srisri!~srisri@204.14.239.17] has joined ##java [12:11]
ygivenx [ygivenx!~ygivenx@2601:647:4e01:1561:b0f2:7565:9aa0:fd40] has joined ##java [12:12]
SuperTyp [SuperTyp!~SuperTyp@178.197.224.172] has joined ##java [12:19]
kgrimes2 [kgrimes2!~kgrimes2@137.78.59.217] has joined ##java [12:19]
mluser-home [mluser-home!~mluser-ho@ip68-0-67-199.tu.ok.cox.net] has joined ##java [12:20]
top^ [top^!~prashant@122.160.111.65] has joined ##java [12:22]
indistylo [indistylo!~aruns_@106.51.25.10] has joined ##java [12:26]
Crash1hd [Crash1hd!~Crash1hd@unaffiliated/crash1hd] has joined ##java [12:26]
SuperTyp [SuperTyp!~SuperTyp@178.197.224.172] has joined ##java [12:27]
LSCody [LSCody!~textual@216.38.149.34] has joined ##java [12:27]
DrDonkey [DrDonkey!~DrDonkey@unaffiliated/drdonkey] has joined ##java [12:28]
SuperTyp is there a nice way to switch items in java? [12:30]
Addax you mean change a to b and vice versa? [12:32]
SuperTyp yes [12:32]
Addax SuperTyp: C a=new C(1), b=new C(2); C c=b; a=b; b=c; [12:32]
VelvetThunder [VelvetThunder!~VelvetThu@2a01:4b00:9411:7f00:118d:5daa:4515:624f] has joined ##java [12:32]
SuperTyp ah sorry...stupid me, I mean in arrays [12:33]
user01 [user01!~user01@50.73.185.246] has joined ##java [12:33]
SuperTyp e.g.; 1,2,3,4,5 -> 1,4,2,3,5 [12:33]
SuperTyp (without playing with indexes) [12:33]
acidjnk [acidjnk!~acid@mue-88-130-58-084.dsl.tropolys.de] has joined ##java [12:33]
Addax uhhh. same would apply: int c=a[1]; a[1]=a[3]; a[3]=c; [12:33]
Addax I don't quite understand what you mean, I guess [12:34]
user01 need some help getting oracle sql developer installed on debian 10 buster ... it says it cant find a valid jdk . . . what path does it need? it says it is installed here: /usr/lib/jvm/jdk-11.0.3/bin/java [12:34]
SuperTyp basically my problem is, I have an object that needs to be on the index % 3 == 0 [12:35]
sbalmos ask oracle [12:35]
user01 sbalmos, ok [12:35]
top^ Addax: I think you need ArrayList - https://docs.oracle.com/javase/7/docs/api/java/util/ArrayList.html#add(int,%20E) [12:35]
Addax top^: you think I do? [12:35]
user01 it cant find openjdk or oracle java :P [12:35]
Addax user01: ask oracle [12:35]
top^ SuperTyp: e.g.; 1,2,3,4,5 -> 1,4,2,3,5 [12:35]
user01 Addax, yes looking [12:36]
Addax tech support [12:36]
Addax user01, Hello, ##java is not a technical support channel for your Java apps or virtual machines; it's a development channel for enthusiasts to discuss programming with the Java language. Please ask the vendor of your software for support if you're having trouble with it. [12:36]
user01 ok [12:36]
user01 i was curious what directory is considered the jdk [12:37]
top^ Addax: Sorry. That was to SuperTyp [12:37]
user01 but ill contact oracle [12:37]
top^ SuperTyp: I think you need ArrayList - https://docs.oracle.com/javase/7/docs/api/java/util/ArrayList.html#add(int,%20E) [12:37]
Stummi SuperTyp, I have no Idea what you mean. "I have an object that needs to be on the index % 3 == 0"? [12:38]
Stummi you mean, you want to insert something in the middle of an array and shift the elements? [12:39]
SuperTyp hey Stummi [12:39]
bn_work [bn_work!uid268505@gateway/web/irccloud.com/x-gijmrxanqjcygmeu] has joined ##java [12:39]
Stummi Your example does not really clarify, because this just moves three elements [12:39]
AcTiVaTe [AcTiVaTe!~activate@host-m7ku8h.tnz1.zeelandnet.nl] has joined ##java [12:40]
Harlin [Harlin!~hseritt@c-73-14-133-234.hsd1.co.comcast.net] has joined ##java [12:43]
v01d4lph4 [v01d4lph4!~v01d4lph4@103.6.158.186] has joined ##java [12:43]
ertiportline [ertiportline!~ertiportl@unaffiliated/ertiportline] has joined ##java [12:47]
SuperTyp [SuperTyp!~SuperTyp@178.197.224.172] has joined ##java [12:51]
impermanence [impermanence!c01c0110@gateway/web/cgi-irc/kiwiirc.com/ip.192.28.1.16] has joined ##java [12:52]
Maldivia fizz buzz :) [12:53]
ogradyd [ogradyd!~Thunderbi@2a02:8070:88bf:9df0:80d2:20d9:8517:b9d6] has joined ##java [12:53]
sameerynho [sameerynho!~lxsameer@unaffiliated/lxsameer] has joined ##java [12:54]
impermanence [impermanence!c01c0110@gateway/web/cgi-irc/kiwiirc.com/ip.192.28.1.16] has joined ##java [12:57]
lithium [lithium!~lithium@unaffiliated/lithium] has joined ##java [12:57]
whaley [whaley!~whaley@192.133.78.19] has joined ##java [12:59]
progart [progart!~kamee@5.77.154.110] has joined ##java [12:59]
mr_lou [mr_lou!~misthalos@085083080213.dynamic.telenor.dk] has joined ##java [01:07]
whaley [whaley!~whaley@192.133.78.19] has joined ##java [01:11]
SuperTyp_ [SuperTyp_!~SuperTyp@178.197.224.172] has joined ##java [01:14]
fstd_ [fstd_!~fstd@unaffiliated/fisted] has joined ##java [01:16]
Galactus [Galactus!~Galactus@unaffiliated/galactus] has joined ##java [01:19]
MarkyC [MarkyC!~MarkyC@CPE64777d64a283-CM64777d64a280.cpe.net.cable.rogers.com] has joined ##java [01:35]
quadsar [quadsar!~quadsar@unaffiliated/quadsar] has joined ##java [01:45]
orbyt_ [orbyt_!~orbyt@172.92.5.20] has joined ##java [01:53]
junktext [junktext!junktext@fsf/member/junktext] has joined ##java [01:54]
dez [dez!uid92154@fedora/deSouza] has joined ##java [02:00]
John_Ivan [John_Ivan!~John_Ivan@unaffiliated/john-ivan/x-3287162] has joined ##java [02:01]
kgrimes2_ [kgrimes2_!~kgrimes2@137.79.218.49] has joined ##java [02:04]
gelignite [gelignite!~gelignite@55d4d5d0.access.ecotel.net] has joined ##java [02:07]
LSCody [LSCody!~textual@216.38.149.34] has joined ##java [02:08]
v01d4lph4 [v01d4lph4!~v01d4lph4@103.6.158.186] has joined ##java [02:09]
magyar [magyar!~magyar@unaffiliated/magyar] has joined ##java [02:11]
junktext_ [junktext_!junktext@fsf/member/junktext] has joined ##java [02:21]
plarsen [plarsen!~plarsen@redhat/jboss/pdpc.professional.plarsen] has joined ##java [02:34]
indistylo [indistylo!~aruns_@106.51.25.10] has joined ##java [02:36]
Sheilong [Sheilong!uid293653@gateway/web/irccloud.com/x-aaomsxpzjxchiivt] has joined ##java [02:56]
nahra [nahra!~user@unaffiliated/nahra] has joined ##java [03:08]
ertiportline [ertiportline!~ertiportl@unaffiliated/ertiportline] has joined ##java [03:09]
noodlepie [noodlepie!~phillip@77.44.49.73] has joined ##java [03:13]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined ##java [03:13]
donotturnoff [donotturnoff!~isaac@cpc126416-mapp13-2-0-cust85.12-4.cable.virginm.net] has joined ##java [03:22]
hojang [hojang!~hojang@ip-89-176-64-99.net.upcbroadband.cz] has joined ##java [03:23]
LtHummus is there a Java library that can read in an .htpasswd file and validate passwords against it? Essentially something like `new HtpasswdChecker("/path/to/.htpasswd").userValid("some_username", "some_password")`? I've searched and can't find one and I want to double check before I implement one [03:34]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined ##java [03:35]
cheeser did you google for one? [03:39]
deathwishdave [deathwishdave!~deathwish@90.254.88.53] has joined ##java [03:40]
LtHummus "I've searched and can't find one and I want to double check before I implement one" [03:40]
Sasazuka [Sasazuka!~Sasazuka@unaffiliated/sasazuka] has joined ##java [03:41]
LtHummus one did have a broken link (and supported MD5 only), so that wasn't very useful [03:41]
cheeser https://www.google.com/search?q=.htpasswd+java&oq=.htpasswd+java [03:41]
cheeser so many options [03:41]
LtHummus yup, and i didn't see one that does bcrypt [03:44]
LtHummus whelp, i think i found an implementation i can steal from Spring [03:50]
wreed [wreed!~wreed@ool-4356c004.dyn.optonline.net] has joined ##java [03:51]
mgrech_ is there some online tool where i can input java code and view the generated bytecode? [03:53]
indistylo [indistylo!~aruns_@106.51.25.10] has joined ##java [03:54]
Maldivia could always use javac on the .class file [03:54]
bolt_ [bolt_!~r00t@unaffiliated/bolt] has joined ##java [03:54]
Maldivia there is also a plugin for IntelliJ and Eclipse for it [03:55]
cheeser mgrech_: https://javap.yawk.at/ [03:55]
Addax there's also javap.yawk.at, I think [03:55]
Addax ^^^ [03:55]
Addax was going to confirm the hostname if nobody else did :) [03:55]
mgrech_ oh nice, thanks [03:56]
Maldivia well, didn't want to link it without yawkat's go :) [03:58]
Maldivia javap [03:58]
Maldivia Maldivia, javap is the java class file disassembler. See http://docs.oracle.com/javase/8/docs/technotes/tools/windows/javap.html. A fancy online variant supporting serval JDKs and line coloring is available at https://javap.yawk.at. Also see ~decompiler if you want this instead. [03:58]
cheeser he hands it out all the time. :) [03:58]
Maldivia ok, it's in the factoid [03:58]
Maldivia oh, ups -I wrote javac first :) [03:59]
learningc [learningc!~learningc@121.121.98.115] has joined ##java [04:22]
indistylo [indistylo!~aruns_@106.51.25.10] has joined ##java [04:24]
sbalmos Huh, never seen his online decompiler before. Interesting. [04:24]
crackin [crackin!~crackin@216.243.63.251] has joined ##java [04:25]
vy [vy!5659d92d@gateway/web/freenode/ip.86.89.217.45] has joined ##java [04:32]
vy Hey! How can I force the static initialization of a class? [04:33]
yawkat use it. [04:33]
kgrimes2_ [kgrimes2_!~kgrimes2@137.79.218.49] has joined ##java [04:35]
vy yawkat: What does "use" mean? Is "Foo.class.getSimpleName()" a sufficient "use"? [04:35]
yawkat https://docs.oracle.com/javase/specs/jls/se9/html/jls-12.html#jls-12.4.1 [04:38]
yawkat yawkat's title: "Chapter 12. Execution" [04:38]
snosk8r [snosk8r!darkstarde@gateway/vpn/privateinternetaccess/darkstardevx] has joined ##java [04:39]
vy yawkat: Awesome! Thanks! [04:40]
NorthwestVegan [NorthwestVegan!~Northwest@gateway/tor-sasl/northwestvegan] has joined ##java [04:44]
peaceguy [peaceguy!~peaceguy@unaffiliated/peaceguy] has joined ##java [04:47]
averell [averell!~averell@unaffiliated/averell] has joined ##java [04:48]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined ##java [04:53]
CAPITANOOO [CAPITANOOO!~CAPITANOO@static-005.137-192-185.it-speednet.it] has joined ##java [04:54]
indistylo [indistylo!~aruns_@106.51.25.10] has joined ##java [04:55]
conan [conan!~conan@mdproctor.plus.com] has joined ##java [05:00]
JD-Robbs [JD-Robbs!~JD-Robbs@31.127.37.59] has joined ##java [05:04]
LSCody [LSCody!~textual@216.38.149.34] has joined ##java [05:05]
Katana [Katana!~hentai@unaffiliated/katana] has joined ##java [05:09]
Nicmavr [Nicmavr!~Nicmavr@unaffiliated/nicmavr] has joined ##java [05:24]
indistylo [indistylo!~aruns_@106.51.25.10] has joined ##java [05:25]
palasso [palasso!~palasso@unaffiliated/palasso] has joined ##java [05:28]
aqd_ [aqd_!~aqd@87-100-221-110.bb.dnainternet.fi] has joined ##java [05:31]
Anticom [Anticom!~Anticom@ip-178-202-98-139.hsi09.unitymediagroup.de] has joined ##java [05:43]
crackin [crackin!~crackin@216.243.63.251] has joined ##java [05:45]
raztoki [raztoki!~a0sle@unaffiliated/a0sle] has joined ##java [05:58]
crackin [crackin!~crackin@216.243.63.251] has joined ##java [06:17]
Katana [Katana!~hentai@unaffiliated/katana] has joined ##java [06:20]
fyrril [fyrril!~fyrril@2605:a601:a1ab:7700:f947:b613:d9d3:83fe] has joined ##java [06:25]
exmortus [exmortus!darkstarde@gateway/vpn/privateinternetaccess/darkstardevx] has joined ##java [06:25]
indistylo [indistylo!~aruns_@106.51.25.10] has joined ##java [06:26]
Chuguniy [Chuguniy!~Chuguniy@home-136.169.20.159.mits.lv] has joined ##java [06:38]
indistylo [indistylo!~aruns_@106.51.25.10] has joined ##java [06:57]
maskapone43 [maskapone43!~maskapone@143.59.231.198] has joined ##java [07:04]
mluser-home [mluser-home!~mluser-ho@ip68-0-67-199.tu.ok.cox.net] has joined ##java [07:05]
maskapone43 [maskapone43!~maskapone@143.59.231.198] has joined ##java [07:06]
mluser-home [mluser-home!~mluser-ho@ip68-0-67-199.tu.ok.cox.net] has joined ##java [07:08]
CAPITANOOO [CAPITANOOO!~CAPITANOO@static-005.137-192-185.it-speednet.it] has joined ##java [07:13]
CAPITANOOO [CAPITANOOO!~CAPITANOO@static-005.137-192-185.it-speednet.it] has joined ##java [07:16]
wreed [wreed!~wreed@ool-4356c004.dyn.optonline.net] has joined ##java [07:19]
conan [conan!~conan@mdproctor.plus.com] has joined ##java [07:22]
indistylo [indistylo!~aruns_@106.51.25.10] has joined ##java [07:27]
nokdoot [nokdoot!~nokdoot@211.205.207.39] has joined ##java [07:33]
waz [waz!~waz@pdpc/supporter/active/waz] has joined ##java [07:47]
theWhisper_ [theWhisper_!~quassel@unaffiliated/thewhisper/x-7482734] has joined ##java [07:50]
DrDonkey [DrDonkey!~DrDonkey@unaffiliated/drdonkey] has joined ##java [07:52]
HumanGeek [HumanGeek!~HumanG33k@62.147.242.8] has joined ##java [07:57]
indistylo [indistylo!~aruns_@106.51.25.10] has joined ##java [07:58]
whaley [whaley!~whaley@c-73-78-132-227.hsd1.co.comcast.net] has joined ##java [08:02]
conan [conan!~conan@mdproctor.plus.com] has joined ##java [08:27]
indistylo [indistylo!~aruns_@106.51.25.10] has joined ##java [08:28]
yawkat [yawkat!~yawkat@cats.coffee] has joined ##java [08:33]
jdfthetech [jdfthetech!~jdfthetec@cpe-104-174-3-76.socal.res.rr.com] has joined ##java [08:33]
CAPITANOOO [CAPITANOOO!~CAPITANOO@static-005.137-192-185.it-speednet.it] has joined ##java [08:48]
DrDonkey [DrDonkey!~DrDonkey@unaffiliated/drdonkey] has joined ##java [08:56]
elsheepo [elsheepo!~beatzz@udp272282uds.hawaiiantel.net] has joined ##java [09:00]
theWhisper__ [theWhisper__!~quassel@unaffiliated/thewhisper/x-7482734] has joined ##java [09:07]
conan [conan!~conan@mdproctor.plus.com] has joined ##java [09:07]
LSCody [LSCody!~textual@216.38.149.34] has joined ##java [09:16]
jamezp [jamezp!~jamezp@redhat/jboss/jamezp] has joined ##java [09:17]
upgrdman [upgrdman!~upgrdman@blender/artist/upgrdman] has joined ##java [09:18]
LunarJetman [LunarJetman!LunarJetma@0547857b.skybroadband.com] has joined ##java [09:23]
dj_pi [dj_pi!~dj_pi@d4-50-214-166.col.wideopenwest.com] has joined ##java [09:25]
db [db!uid18678@gateway/web/irccloud.com/x-jnvcywnadwckhcei] has joined ##java [09:25]
crackin [crackin!~crackin@216.243.63.251] has joined ##java [09:30]
learningc [learningc!~learningc@121.121.98.115] has joined ##java [09:33]
beatzz [beatzz!~beatzz@udp272282uds.hawaiiantel.net] has joined ##java [09:46]
indistylo [indistylo!~aruns_@106.51.25.10] has joined ##java [09:50]
hd1 [hd1!4c5b0bf5@gateway/web/cgi-irc/kiwiirc.com/ip.76.91.11.245] has joined ##java [09:56]
Goplat [Goplat!~Goplat@reactos/developer/Goplat] has joined ##java [10:06]
staticx [staticx!darkstarde@gateway/vpn/privateinternetaccess/darkstardevx] has joined ##java [10:10]
AfroThundr|main [AfroThundr|main!~AfroThund@countervandalism/AfroThundr3007730] has joined ##java [10:13]
indistylo [indistylo!~aruns_@106.51.25.10] has joined ##java [10:20]
zeden [zeden!~user@unaffiliated/zeden] has joined ##java [10:28]
beatzz [beatzz!~beatzz@udp272282uds.hawaiiantel.net] has joined ##java [10:31]
RedSoxFan07 [RedSoxFan07!~Thunderbi@d-137-103-109-45.ct.cpe.atlanticbb.net] has joined ##java [10:33]
nfd9001 [nfd9001!~nfd9001@2601:602:8500:2443:7984:f018:84c1:8f0a] has joined ##java [10:35]
g00s [g00s!~g00s@unaffiliated/g00s] has joined ##java [10:37]
DrDonkey [DrDonkey!~DrDonkey@unaffiliated/drdonkey] has joined ##java [10:40]
tasse [tasse!~tasse@55d4cf9d.access.ecotel.net] has joined ##java [10:41]
nfd [nfd!~nfd9001@2601:602:8500:2443:50a2:85cc:28e5:bb8a] has joined ##java [10:47]
nfd9001 [nfd9001!~nfd9001@2601:602:8500:2443:17c:5bcf:7e1c:3018] has joined ##java [10:49]
indistylo [indistylo!~aruns_@106.51.25.10] has joined ##java [10:51]
beatzz [beatzz!~beatzz@udp272282uds.hawaiiantel.net] has joined ##java [10:52]
forgottenone [forgottenone!~forgotten@176.88.99.153] has joined ##java [10:53]
NotAlexNoyle [NotAlexNoyle!9fcb4301@gateway/web/cgi-irc/kiwiirc.com/ip.159.203.67.1] has joined ##java [10:55]
NotAlexNoyle When I'm declaring an arraylist, do I need to worry about allocating it memory like I would with a normal array, or does it grow automatically according to what it gets filled with? [10:56]
NotAlexNoyle my IDE doesn't seem to care either way, but I want t know what is the best practice [10:57]
dansan_ [dansan_!~daniel@70-142-57-80.lightspeed.rcsntx.sbcglobal.net] has joined ##java [11:03]
learningc [learningc!~learningc@mti-37-145.tm.net.my] has joined ##java [11:05]
orbyt_ [orbyt_!~orbyt@172.92.5.20] has joined ##java [11:09]
dansan_ [dansan_!~daniel@70-142-57-80.lightspeed.rcsntx.sbcglobal.net] has joined ##java [11:13]
db NotAlexNoyle: it grows automatically [11:19]
NotAlexNoyle thanks [11:20]
db I'd be surprised if it wasn't described in detail in the API reference [11:20]
NotAlexNoyle it was, but the fact that the parenthesis are still available at the end of the declaration to allocate memory if you *want* to do so, threw me off [11:21]
NotAlexNoyle made me wonder if there would ever be an edge case where it might be a good idea, otherwise why give the programmer the choice? [11:22]
upgrdman_ [upgrdman_!~upgrdman@blender/artist/upgrdman] has joined ##java [11:22]
db huh? no no.. if you add [] at the end, you're just declaring an array of arraylists [11:22]
NotAlexNoyle I mean: new ArrayList<String>(HERE); [11:22]
db that's the constructor, you can pass an initial capacity [11:23]
NotAlexNoyle right, but why, if it will auto-expand anyway? [11:23]
db if you absolutely know that your list will be, say, 1000 elements, you can set that there. [11:23]
NotAlexNoyle is there some advantage to that? [11:23]
db it will (of course the auto-expanding takes processing time= [11:23]
db the advantage is that it doesn't take processing time to expand [11:24]
NotAlexNoyle oh, so it's a speed optimization thing. [11:24]
db yes. and the rules of optimizing are: 1. don't do it; 2. for experts: don't do it yet [11:24]
NotAlexNoyle lol [11:24]
NotAlexNoyle gotcha [11:24]
taxon [taxon!~taxon@p54966642.dip0.t-ipconnect.de] has joined ##java [11:27]
indistylo [indistylo!~aruns_@106.51.25.10] has joined ##java [11:28]
indistylo [indistylo!~aruns_@106.51.25.10] has joined ##java [11:40]
hojang [hojang!~hojang@ip-89-176-64-99.net.upcbroadband.cz] has joined ##java [11:44]
code_zombie_ [code_zombie_!~code_zomb@2605:a601:aa1:da00:9167:5aea:79e2:7317] has joined ##java [11:47]
dez [dez!uid92154@fedora/deSouza] has joined ##java [11:48]
dj_pi [dj_pi!~dj_pi@d4-50-214-166.col.wideopenwest.com] has joined ##java [11:50]
hussam [hussam!uid193284@gateway/web/irccloud.com/x-ezyjiyeahpgejqaj] has joined ##java [11:50]
stigz [stigz!uid371747@gateway/web/irccloud.com/x-clkobrpacqkfukrx] has joined ##java [11:51]
Sleaker [Sleaker!quasselcor@2604:880:a:7::e1b] has joined ##java [11:52]
snappy what are good ways to deal with namespace collision, e.g. {dto,dao}/Quux.java; i know i can use fully qualified names, but maybe i should qualify Quux as QuuxDAO and QuuxDTO, thoughts? [11:53]
top^ [top^!~prashant@122.160.111.65] has joined ##java [11:53]
elsheepo [elsheepo!~beatzz@udp272282uds.hawaiiantel.net] has joined ##java [11:58]