|
ADG1089__ [ADG1089__!~aditya@122.163.165.143] has joined ##java |
[12:07]
|
rajrajraj [rajrajraj!uid72176@gateway/web/irccloud.com/x-uznplfqurhdcmfiz] has joined ##java |
[12:12]
|
Jantz [Jantz!~IceChat9@118-93-25-40.dsl.dyn.ihug.co.nz] has joined ##java |
[12:19]
|
dendazen [dendazen!~dendazen@pool-96-242-127-31.nwrknj.fios.verizon.net] has joined ##java |
[12:46]
|
xekz [xekz!~kexmex@unaffiliated/kexmex] has joined ##java |
[12:46]
|
shailangsa [shailangsa!~shailangs@host86-186-132-61.range86-186.btcentralplus.com] has joined ##java |
[12:49]
|
dendazen [dendazen!~dendazen@pool-96-242-127-31.nwrknj.fios.verizon.net] has joined ##java |
[12:52]
|
rzjian [rzjian!~l@14.215.218.170] has joined ##java |
[12:53]
|
sabocat [sabocat!~Tomas@212.102.47.90] has joined ##java |
[12:59]
|
sabocat |
I have an abstract class, A, and concretions B, C,..., etc. How should I structure the classes for DTOs? One object (ex: ClassADto) representing the abstract class and all subtypes, or one for each subtype? |
[01:01]
|
db |
that depends entirely on your needs |
[01:01]
|
sabocat |
Well, I'd like to be able to say "give me all A's" at my REST endpoint, but I want the B's that are returned to include their B data, and C's to do the same etc. |
[01:02]
|
sabocat |
And also be able to query by subtype obvs. |
[01:03]
|
ScrambledRK [ScrambledRK!~RK@80-110-106-6.cgn.dynamic.surfer.at] has joined ##java |
[01:05]
|
danrik9 [danrik9!~danrik@unaffiliated/ddsss] has joined ##java |
[01:24]
|
firewyre_ [firewyre_!~firewyre@pool-71-184-153-62.bstnma.fios.verizon.net] has joined ##java |
[01:39]
|
xdeadbeef [xdeadbeef!~deadbeef@unaffiliated/xdeadbeef] has joined ##java |
[01:51]
|
danrik [danrik!~danrik@unaffiliated/ddsss] has joined ##java |
[01:56]
|
mindCrime [mindCrime!~prhodes@2603-6080-5900-001c-33e9-8731-abb2-ef1d.res6.spectrum.com] has joined ##java |
[02:20]
|
danrik [danrik!~danrik@unaffiliated/ddsss] has joined ##java |
[02:22]
|
wordsToLiveBy [wordsToLiveBy!~wordsToLi@unaffiliated/wordstoliveby] has joined ##java |
[02:31]
|
bosaap [bosaap!~SimonInHo@84-105-46-147.cable.dynamic.v4.ziggo.nl] has joined ##java |
[02:54]
|
r3m1 [r3m1!~r3m1@2a01:e34:ee77:8c00:2145:2848:d4df:7556] has joined ##java |
[02:55]
|
sa02irc [sa02irc!~mbax@155-079-043-212.ip-addr.inexio.net] has joined ##java |
[02:56]
|
wordsToLiveBy [wordsToLiveBy!~wordsToLi@unaffiliated/wordstoliveby] has joined ##java |
[03:00]
|
Matthijs [Matthijs!~quassel@unaffiliated/matthijs] has joined ##java |
[03:00]
|
Tordek [Tordek!tordek@gateway/shell/blinkenshell.org/x-bhimlykbbcblswpg] has joined ##java |
[03:13]
|
black_ant [black_ant!~antilope@unaffiliated/black-ant/x-1505394] has joined ##java |
[03:16]
|
KidBeta [KidBeta!~Kidbeta@hpavc/kidbeta] has joined ##java |
[03:18]
|
bosaap [bosaap!~SimonInHo@84-105-46-147.cable.dynamic.v4.ziggo.nl] has joined ##java |
[03:27]
|
CustosLimen [CustosLimen!sid53872@gateway/web/irccloud.com/x-szfdsmdqpeauiurl] has joined ##java |
[03:29]
|
CustosLimen |
hi, is there some way to implement https://docs.oracle.com/javaee/7/api/javax/ws/rs/client/ClientRequestFilter.html with a lambda? |
[03:29]
|
yawkat |
whats stopping you |
[03:30]
|
CustosLimen |
noobness, I figured it out thanks, ((ClientRequestFilter) context -> { ... }) |
[03:43]
|
bosaap [bosaap!~SimonInHo@84-105-46-147.cable.dynamic.v4.ziggo.nl] has joined ##java |
[03:51]
|
Matthijs [Matthijs!~quassel@unaffiliated/matthijs] has joined ##java |
[04:15]
|
RiskyExpert [RiskyExpert!~RiskyExpe@79.107.228.152] has joined ##java |
[04:19]
|
sliekas99 [sliekas99!~mantas@88.223.160.11] has joined ##java |
[04:20]
|
LKoen [LKoen!~LKoen@100.170.9.109.rev.sfr.net] has joined ##java |
[04:29]
|
Kiminuo [Kiminuo!~mix@141.98.103.228] has joined ##java |
[04:57]
|
Lengsdorfer [Lengsdorfer!~Lengsdorf@unaffiliated/lengsdorfer] has joined ##java |
[04:59]
|
bosaap [bosaap!~SimonInHo@2001:1c02:b12:9a00:98f5:5027:cdd6:bebf] has joined ##java |
[05:16]
|
acidjnk_new [acidjnk_new!~acidjnk@p200300d0c704e7817426bb844d6a6b27.dip0.t-ipconnect.de] has joined ##java |
[05:33]
|
noudle [noudle!~noudle@ip-62-143-118-145.hsi01.unitymediagroup.de] has joined ##java |
[05:33]
|
noudle |
im new to TableLayout and not too versed in java GUI in general, but can anyone tell my why this code just produces a blank window? http://ix.io/2LZG |
[05:35]
|
muhaha [muhaha!59b10c98@gateway/web/cgi-irc/kiwiirc.com/ip.89.177.12.152] has joined ##java |
[05:36]
|
noudle |
nvm just found out... its because of the size parameters. |
[05:38]
|
SirMangler [SirMangler!~SirMangle@host31-50-223-156.range31-50.btcentralplus.com] has joined ##java |
[05:43]
|
jink [jink!mrjink@chat.jink.net] has joined ##java |
[05:49]
|
noudle |
can someone explain me what the second parameter to the add function means? |
[05:54]
|
mizux [mizux!~mizux@2a01cb0087e8870052caf22321bfd4cf.ipv6.abo.wanadoo.fr] has joined ##java |
[05:55]
|
Diablo-D3 |
noudle: when you read the docs, what did it tell you? |
[05:57]
|
Diablo-D3 |
also, I might be wrong, but Im not sure your code is legal |
[05:57]
|
noudle |
"Adds the specified component to this container at the given position." |
[05:57]
|
noudle |
thats the code of one of the examples of their website |
[05:58]
|
Diablo-D3 |
its object, integer, not object, string |
[05:58]
|
noudle |
http://www.clearthought.info/sun/products/jfc/tsc/articles/tablelayout/Typical.html |
[05:58]
|
noudle |
crashes with an integer |
[05:58]
|
Diablo-D3 |
https://docs.oracle.com/javase/7/docs/api/java/awt/Container.html#add(java.awt.Component,%20int) |
[05:59]
|
noudle |
i guess TableLayout takes the values and uses them as integer to the "normal" add function? i mean from what i have tested now it seems the values refer to offsets in the size array |
[05:59]
|
noudle |
ye i read that |
[05:59]
|
noudle |
but TableLayout make something special with it as it seems |
[06:00]
|
Diablo-D3 |
maybe, I dont use awt, might have to ask someone else |
[06:00]
|
noudle |
i understand what happens when i pass two integers, liek "1, 4". then it takes size[1][4] afaik |
[06:00]
|
noudle |
but i dont know what it does when i pass "1, 4, 5, 1" and thelike |
[06:01]
|
noudle |
really confusing for me.. the output feels random and not predictable |
[06:01]
|
noudle |
is there a separate channel for awt? |
[06:01]
|
Diablo-D3 |
not that Im aware of |
[06:01]
|
bosaap [bosaap!~SimonInHo@84-105-46-147.cable.dynamic.v4.ziggo.nl] has joined ##java |
[06:04]
|
xekz [xekz!~kexmex@unaffiliated/kexmex] has joined ##java |
[06:05]
|
dec0d3r [dec0d3r!~dec0d3r@2001:8003:4824:7000:c786:e7d2:abcd:40ab] has joined ##java |
[06:05]
|
Maldivia |
noone uses awt, so :D |
[06:07]
|
Diablo-D3 |
yeah, the sad depressing truth |
[06:07]
|
Maldivia |
noudle: is there any particular reason you are using this weird TableLayout |
[06:08]
|
Maldivia |
the JDK already has a similar one, that is much more powerful -- GridBagLayout |
[06:09]
|
Maldivia |
but like all the layouts, it's a lot of trial and error to get things looking as you want it to :D |
[06:10]
|
noudle |
guys at my job use it so i must too. |
[06:12]
|
noudle |
i dont like it |
[06:12]
|
noudle |
found out what it does |
[06:13]
|
noudle |
spans from one corner to the other |
[06:13]
|
amerigo [amerigo!uid331857@gateway/web/irccloud.com/x-opqgzzuumlcpkvel] has joined ##java |
[06:23]
|
ScrambledRK parted the channel: |
[06:31]
|
jink [jink!mrjink@chat.jink.net] has joined ##java |
[06:42]
|
retroguy8000 [retroguy8000!~retroguy8@177.101.84.26] has joined ##java |
[06:56]
|
zeden [zeden!~user@unaffiliated/zeden] has joined ##java |
[06:58]
|
Kiminuo [Kiminuo!~mix@141.98.103.228] has joined ##java |
[07:00]
|
LKoen [LKoen!~LKoen@100.170.9.109.rev.sfr.net] has joined ##java |
[07:01]
|
deavmi [deavmi!~tbk@165.0.49.28] has joined ##java |
[07:09]
|
yawkat |
java-browser can now do javadoc rendering: https://java-browser.yawk.at/java/16/java.base/java/lang/String.java ? thoughts? (click on the icon next to the javadoc) |
[07:11]
|
yawkat |
yawkat's title: "java/16 : java.base/java/lang/String.java" |
[07:11]
|
hschmale [hschmale!hschmale@otaku.sdf.org] has joined ##java |
[07:16]
|
Maldivia |
yawkat: hmm, I'm still annoyed at that feature in IDEA :D |
[07:25]
|
Maldivia |
yawkat: but sometimes it's usefull, if there are too many tags, it can be hard to read the docs in source |
[07:27]
|
bosaap [bosaap!~SimonInHo@84-105-46-147.cable.dynamic.v4.ziggo.nl] has joined ##java |
[07:35]
|
yawkat |
i like it because it actually lets you copy text |
[07:37]
|
yawkat |
and it's way shorter |
[07:37]
|
TomyWork [TomyWork!~TomyLobo@p200300e80f3d8200a4a86b03bf62638d.dip0.t-ipconnect.de] has joined ##java |
[07:38]
|
Maldivia |
yawkat: in side IDEA, it annoys me, because the rendered javadoc is smaller, in a different font, etc -- it throws me out |
[07:38]
|
yawkat |
yea it was a bit jarring at first |
[07:38]
|
TomyWork |
Might not be the right channel to ask in, but I can't find an answer anywhere else. I'm trying to get some exe4j-based application to work with the 64-bit windows adoptopenjdk 11 that i installed. in its error message, it says it wants EXE4J_JAVA_HOME to point to the base directory of a 64 bit JDK or JRE. so i pointed it to the aforementioned adoptopenjdk, but it still shows the same error. |
[07:41]
|
TomyWork |
I looked at both the adopt jdk and a regular jdk and the executables are in similar places, so i dont know why it's complaining. |
[07:42]
|
Maldivia |
TomyWork: does it support JDK11? |
[07:43]
|
mbooth |
TomyWork: Are you going to tell us what you set EXE4J_JAVA_HOME to? |
[07:43]
|
TomyWork |
mbooth, C:\Program Files\AdoptOpenJDK\jdk-11.0.9.11-hotspot |
[07:43]
|
Maldivia |
TomyWork: it might be an issue with spaces |
[07:44]
|
TomyWork |
Maldivia, uhh, it should, let me check what i'm running it on on my linux machine |
[07:44]
|
TomyWork |
the previous jdk also had spaces in it, so i doubt it, but i can try |
[07:44]
|
Maldivia |
TomyWork: could try using the 8.3 version, like C:\PROGRA~1\AdoptOpenJDK\jdk-11.0.9.11-hotspot |
[07:45]
|
TomyWork |
I copied it to C:\jdk-11.0.9.11-hotspot and changed the variable. still not working |
[07:45]
|
Maldivia |
TomyWork: how are you changing your env var ? |
[07:47]
|
sonOfRa |
Does anyone know off the top of their heads, whether ThymeLeaf templateResolutionAttributes are "inherited" when a template depends on other templates? |
[07:47]
|
TomyWork |
through windows control panel |
[07:47]
|
sonOfRa |
cursory google search didn't show up much, and if anyone knows that they *don't*, I don't need to attempt to rewrite half this code base |
[07:48]
|
Maldivia |
TomyWork: if you start a new command prompt and then you "%EXE4J_JAVA_HOME%\bin\java" -version do you get the version ? |
[07:48]
|
TomyWork |
11.0.9 |
[07:49]
|
Maldivia |
TomyWork: so it works, then it's probably something with that particular app you have that's compiled with exe4j -- contact the vendor? |
[07:49]
|
Maldivia |
sonOfRa: should be trivial to test |
[07:49]
|
sonOfRa |
More or less. Annoying logic with a database-based template resolution, and we're trying to retrofit "namespacing" onto it |
[07:51]
|
FabioP [FabioP!c378570d@host-195-120-87-13.business.telecomitalia.it] has joined ##java |
[07:52]
|
AcTiVaTe [AcTiVaTe!~activate@host-tdku8h.tnz1.zeelandnet.nl] has joined ##java |
[07:53]
|
TomyWork |
EXE4J_LOG[0:0] MinVersion: 1.8, MaxVersion: 1.8 GRAAAHHH |
[07:59]
|
TomyWork |
-EXE4J_LOG |
[07:59]
|
TomyWork |
yeah so i have to update this, since i need it to work with a java 11 jdbc driver |
[08:00]
|
di0_ [di0_!~di0_@unaffiliated/di0-/x-5053590] has joined ##java |
[08:09]
|
KidBeta [KidBeta!~Kidbeta@hpavc/kidbeta] has joined ##java |
[08:10]
|
oakridge [oakridge!~oakridge@ec2-13-251-15-242.ap-southeast-1.compute.amazonaws.com] has joined ##java |
[08:11]
|
LKoen [LKoen!~LKoen@100.170.9.109.rev.sfr.net] has joined ##java |
[08:21]
|
SerialSmile [SerialSmile!~SerialSmi@83.102.134.31] has joined ##java |
[08:32]
|
TTT [TTT!~TTT@139.28.219.228] has joined ##java |
[08:40]
|
TTT |
hi, silly question. I'm looking for a tool like Squirrel SQL or Dbeaver but web based. I need to query Apache Drill, Presto and MonetDB, so I need something that works via JDBC drivers. |
[08:41]
|
TTT |
I googled but didn't find much |
[08:41]
|
white_shadow [white_shadow!~white_sha@unaffiliated/whiteshadow/x-9072] has joined ##java |
[08:41]
|
dreamreal |
So what's your question |
[08:43]
|
bendem |
so you want adminer/phpmyadmin but that uses jdbc drivers? |
[08:43]
|
TTT |
are there any web based tools that can query databases via JDBC, yes, something like that |
[08:43]
|
white_shadow |
TTT you want to manually place queries in database? |
[08:45]
|
TTT |
yes, via some kind of WEB-UI. Preferably see tables/etc in the database as well |
[08:45]
|
bendem |
doubt that exists |
[08:46]
|
TTT |
the ones I can find are either database specific |
[08:46]
|
TTT |
or have Swing GUI |
[08:47]
|
bendem |
also, probably not on topic |
[08:48]
|
dreamreal |
What's wrong with dbeaver, squirrel, etc |
[08:48]
|
white_shadow |
bendem that's the thing i wanted to clarify :p |
[08:48]
|
TTT |
dbeaver would work or squirrel sql, but I'd have to get my customers to install them, and I don't see that happening. So I'd like something web-based |
[08:48]
|
sonOfRa |
Well that took entirely too long to test, but yes, ThymeLeaf does pass the TemplateResolutionAttributes to the resolution of dependent templates. |
[08:48]
|
white_shadow |
TTT check in channels like #mysql |
[08:49]
|
ChaiTRex [ChaiTRex!~ChaiTRex@gateway/tor-sasl/chaitrex] has joined ##java |
[08:51]
|
tazle [tazle!tazle@kapsi.fi] has joined ##java |
[08:51]
|
wedr [wedr!~tom_mai78@pool-108-20-128-8.bstnma.fios.verizon.net] has joined ##java |
[08:51]
|
noudle |
what is the usual gui framework for java? ive seen awt, swing ans swt and beside swt all look like shit tbh :/ |
[08:53]
|
Maldivia |
Swing and JavaFX |
[08:55]
|
noudle |
ty |
[08:55]
|
xeno [xeno!~xeno@unaffiliated/xeno] has joined ##java |
[08:55]
|
Maldivia |
javafx |
[08:56]
|
Maldivia |
JavaFX, or OpenJFX, is a set of APIs for writing rich client applications in Java. It's more fully-featured and capable than Swing. For more information see https://openjfx.io . To get started, simply add as a dependency in your build script: https://openjfx.io/openjfx-docs/#maven . Also see ~scenebuilder |
[08:56]
|
Maldivia |
swing |
[08:56]
|
Maldivia |
Maldivia, swing is the windowing toolkit for Java. Tutorial: http://docs.oracle.com/javase/tutorial/uiswing/ and look up JavaFX and, if you hate everyone, SWT. |
[08:56]
|
dreamreal |
noudle: incidentally, naked SWT tends to lok like absolute dogshit as well; if it looked great for you that means some poor sap had to fix everything |
[09:04]
|
noudle |
dreamreal: just saw some images on the web |
[09:05]
|
Kiminuo [Kiminuo!~mix@141.98.103.228] has joined ##java |
[09:05]
|
noudle |
and it looked quite native |
[09:05]
|
noudle |
and good |
[09:05]
|
dreamreal |
it IS native. But that doesn't change that people had to fix it. |
[09:06]
|
dreamreal |
It's also a drag to use. Welcome to UI programming. |
[09:06]
|
Kronic [Kronic!sid480486@gateway/web/irccloud.com/x-yefsgwxmddskyzbm] has joined ##java |
[09:06]
|
bolovanos__ [bolovanos__!~bolovanos@185.8.239.54] has joined ##java |
[09:07]
|
noudle |
i did some stuff with wxwidgets in c++ but not so much with java |
[09:07]
|
noudle |
but now i need to |
[09:07]
|
noudle |
hmm |
[09:07]
|
Kronic parted the channel: |
[09:09]
|
dendazen [dendazen!~dendazen@pool-96-242-127-31.nwrknj.fios.verizon.net] has joined ##java |
[09:09]
|
Hallcyon [Hallcyon!~Hallcyon@122.199.46.116] has joined ##java |
[09:11]
|
TTT |
noudle, I'd go with JavaFX for any new software |
[09:14]
|
TTT |
or HTML5 UI entirely and run that with electron or something |
[09:14]
|
bosaap [bosaap!~SimonInHo@84-105-46-147.cable.dynamic.v4.ziggo.nl] has joined ##java |
[09:15]
|
runlevel7_ [runlevel7_!~runlevel7@unaffiliated/runlevel7] has joined ##java |
[09:16]
|
noudle |
lul |
[09:16]
|
noudle |
sounds strange to code desktop apps with html |
[09:16]
|
noudle |
but yeah |
[09:16]
|
mbooth |
TTT: You'll use electron if you hate your users, sure ;-) |
[09:18]
|
noudle |
btw why "if you hate everyone SWT"? |
[09:19]
|
runlevel7__ [runlevel7__!runlevel7@gateway/vpn/privateinternetaccess/runlevel7] has joined ##java |
[09:20]
|
dreamreal |
HTML5 UI is actually pretty normal |
[09:24]
|
dreamreal |
anyone who uses slack uses that |
[09:24]
|
dreamreal |
noudle: because SWT isn't coded "like java" |
[09:24]
|
Diablo-D3 |
discord is also html5 ui |
[09:24]
|
dreamreal |
lots of things are |
[09:24]
|
noudle |
ye |
[09:25]
|
noudle |
i dont like slack |
[09:25]
|
noudle |
i see |
[09:25]
|
Diablo-D3 |
no one likes slack, but we use it anyways |
[09:25]
|
dreamreal |
I'm sure there's a relevant point in there somewhere |
[09:25]
|
dreamreal |
whether you like an app that uses the UI tech or not is irrelevant |
[09:25]
|
dreamreal |
hell, I LIKE eclipse, I just don't like SWT |
[09:25]
|
Teckla |
...I thought liking Eclipse was banned around these parts! :O |
[09:30]
|
mbooth |
Why? |
[09:30]
|
Teckla |
All the cool kids use IntelliJ IDEA. |
[09:31]
|
dreamreal |
too many eclipse users to justify that. I find I'm better with IDEA but Eclipse is workable, ESPECIALLY if you're happy with Beck's approach to dev |
[09:31]
|
Teckla |
dreamreal: Beck's approach to dev? |
[09:31]
|
dreamreal |
I'm not smart enough to switch mindsets like that, so I prefer IDEA |
[09:31]
|
deavmi [deavmi!~tbk@165.0.49.28] has joined ##java |
[09:31]
|
dreamreal |
Teckla: kent beck's perspectives concept is what drove Eclipse |
[09:31]
|
dreamreal |
how do you not know this stuff, man?! |
[09:32]
|
Teckla |
I'm not a cool kid. I'm an uncool old guy. :( |
[09:32]
|
dreamreal |
noted. I'm unsubscribing from your insta, d00d |
[09:32]
|
Teckla |
I liked AWT and was *really* disappointed when Swing came |
[09:33]
|
Teckla |
Heh! |
[09:33]
|
dreamreal |
(I am not actually ON insta, as far as I know - I think I have an account somehow? but I've never logged in that I know of) |
[09:33]
|
LionBar [LionBar!~l@gateway/tor-sasl/lionbar] has joined ##java |
[09:33]
|
Teckla |
I don't even know what insta is. |
[09:33]
|
dreamreal |
instagram? |
[09:34]
|
mbooth |
dreamreal: Insta account is a facebook account tho, innit |
[09:34]
|
Teckla |
Oh. Yeah. My daughter and her friends use that. |
[09:34]
|
dreamreal |
mbooth: ... oh |
[09:34]
|
dreamreal |
well, that explains THAT |
[09:34]
|
wedr |
Co-worker mentioned that, when writing JavaDocs, we only need to write the JavaDocs in the interface, and disregard adding {@inheritDoc} in the base implemenetation class of the interface method that has the JavaDocs. Is my co-worker correct, that the {@inheritDoc} isn't needed at all? |
[09:35]
|
mbooth |
I have never used @inheritdoc |
[09:36]
|
wedr |
So I guess my co-worker is correct then? Then what's the purpose of {@inheritDoc} if it's not being used? |
[09:36]
|
yawkat |
it only works on libraries that have actual generated javadocs anyway |
[09:36]
|
wedr |
oh |
[09:38]
|
xeno [xeno!~xeno@unaffiliated/xeno] has joined ##java |
[09:39]
|
ScrambledRK [ScrambledRK!~RK@80-110-106-6.cgn.dynamic.surfer.at] has joined ##java |
[09:39]
|
mbooth |
wedr: IIRC javadoc automaticly does inheritdoc if you omit comments on the implementation class, there's no need have it explicitly |
[09:39]
|
wedr |
I see. So all we have to do is to add them to the interfaces. |
[09:40]
|
wedr |
Thanks |
[09:40]
|
MarkyC [MarkyC!~MarkyC@bras-base-toroon4512w-grc-39-184-148-5-175.dsl.bell.ca] has joined ##java |
[09:41]
|
bendem |
https://docs.oracle.com/javase/7/docs/technotes/tools/solaris/javadoc.html#inheritingcomments |
[09:43]
|
bendem |
bendem's title: "javadoc-The Java API Documentation Generator" |
[09:43]
|
bendem |
more recent: https://docs.oracle.com/en/java/javase/11/docs/specs/doc-comment-spec.html#comment-inheritance |
[09:45]
|
bendem |
bendem's title: "Documentation Comment Specification for the Standard Doclet" |
[09:45]
|
shailangsa [shailangsa!~shailangs@host86-145-14-121.range86-145.btcentralplus.com] has joined ##java |
[09:45]
|
plarsen [plarsen!~plarsen@redhat/jboss/pdpc.professional.plarsen] has joined ##java |
[09:46]
|
vy [vy!b90ea87b@185.14.168.123] has joined ##java |
[09:50]
|
vy |
Hello! I am trying to find a defined unicode character composed of a surrogate pair, though failing to do so: https://ideone.com/r9kPxv Any ideas? |
[09:51]
|
yawkat |
toCodePoint returns int |
[09:51]
|
yawkat |
that code cant work |
[09:52]
|
vy |
facepalm: |
[09:52]
|
vy |
I think it is a copy-paste error. |
[09:52]
|
vy |
Let me fix my paste. |
[09:52]
|
vy |
yawkat: Updated the paste. |
[09:53]
|
vy |
Now it works... Isn't that awesome. :S |
[09:54]
|
yawkat |
next |
[09:54]
|
yawkat |
Another satisfied customer. Next! |
[09:54]
|
fairuz [fairuz!~fairuz@unaffiliated/fairuz] has joined ##java |
[09:54]
|
white_shadow [white_shadow!~white_sha@unaffiliated/whiteshadow/x-9072] has joined ##java |
[09:54]
|
mbooth |
Haha, "Found it Found it Found it Found it Found it Found it .... Couldn't find it." |
[09:54]
|
fattest [fattest!77120311@119-18-3-17.771203.syd.nbn.aussiebb.net] has joined ##java |
[09:58]
|
Sgeo [Sgeo!~Sgeo@ool-18b98aa4.dyn.optonline.net] has joined ##java |
[09:58]
|
white_shadow [white_shadow!~white_sha@unaffiliated/whiteshadow/x-9072] has joined ##java |
[10:17]
|
LKoen [LKoen!~LKoen@100.170.9.109.rev.sfr.net] has joined ##java |
[10:21]
|
jamezp [jamezp!~jamezp@redhat/jboss/jamezp] has joined ##java |
[10:25]
|
yawkat |
huh, spring dropped their .RELEASE naming |
[10:25]
|
Maldivia |
yeah |
[10:25]
|
ChaiTRex [ChaiTRex!~ChaiTRex@gateway/tor-sasl/chaitrex] has joined ##java |
[10:25]
|
yawkat |
and theres a beta for guice 5, after seven years of guice 4. all the things you learn when scanning central |
[10:28]
|
yawkat |
the world is changing! |
[10:28]
|
bosaap [bosaap!~SimonInHo@84-105-46-147.cable.dynamic.v4.ziggo.nl] has joined ##java |
[10:29]
|
Intrepd [Intrepd!~intrepd@pool-108-52-209-125.phlapa.fios.verizon.net] has joined ##java |
[10:36]
|
mindCrime [mindCrime!~prhodes@2603-6080-5900-001c-33e9-8731-abb2-ef1d.res6.spectrum.com] has joined ##java |
[10:45]
|
moldorcoder7 [moldorcoder7!~moldorcod@206.166.251.59] has joined ##java |
[10:48]
|
white_snack [white_snack!~white_sha@unaffiliated/whiteshadow/x-9072] has joined ##java |
[10:49]
|
seschwar [seschwar!~seschwar@unaffiliated/seschwar] has joined ##java |
[10:53]
|
jamezp [jamezp!~jamezp@redhat/jboss/jamezp] has joined ##java |
[10:59]
|
yawkat |
and okhttp3 has made it to version 4, classic |
[11:00]
|
yawkat |
the package is, of course, still called okhttp3 |
[11:01]
|
cheeser |
this is why version numbers shouldn't be in package names. |
[11:01]
|
yawkat hands cheeser a lang3 |
[11:02]
|
cheeser notes the enforcer config banning apache commons* |
[11:02]
|
yawkat |
and a jdbi3 |
[11:02]
|
yawkat |
why is it always 3? |
[11:03]
|
cheeser |
3rd time's the charm |
[11:03]
|
yawkat |
i think even jackson is considering renaming for jackson 3 |
[11:03]
|
hnOsmium0001 [hnOsmium0001!uid453710@gateway/web/irccloud.com/x-womepahugemfqphs] has joined ##java |
[11:03]
|
yawkat |
the magic package number |
[11:03]
|
moldorcoder7 [moldorcoder7!~moldorcod@206.166.251.59] has joined ##java |
[11:05]
|
sonOfRa shudders. Once during code review, I was told "why not import commons lang whatever" if(str==null || foo.isEmpty()) |
[11:07]
|
sonOfRa |
s/foo/str |
[11:07]
|
yawkat |
just switch to kotlin 4head |
[11:08]
|
yawkat |
(okhttp did that too actually. now i cant render them anymore :() |
[11:10]
|
ADG1089__ [ADG1089__!~aditya@122.163.165.143] has joined ##java |
[11:12]
|
callq [callq!~callq@162.72.118.237] has joined ##java |
[11:21]
|
acidjnk_new [acidjnk_new!~acidjnk@p200300d0c704e7817426bb844d6a6b27.dip0.t-ipconnect.de] has joined ##java |
[11:28]
|
deavmi [deavmi!~tbk@165.0.49.28] has joined ##java |
[11:29]
|
sunri5e [sunri5e!~sunri5e@unaffiliated/sunri5e] has joined ##java |
[11:32]
|
sbalmos |
Even I admit I tend to enjoy StringUtils.isEmpty(). I think it's a visual CYA rather than remembering if I checked for null or not |
[11:38]
|
sonOfRa |
yes, but... Add a dependency on commons-lang just so you can replace a ==null||.isEmpty() with StringUtils.isEmpty(str)? |
[11:40]
|
sonOfRa |
What I'm saying: Git off my lawn with those new-fangled java-script library for every line of code! |
[11:41]
|
deavmi [deavmi!~tbk@2a04:5b81:2010::33] has joined ##java |
[11:42]
|
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java |
[11:43]
|
sbalmos |
sonOfRa: I usually already have/had it imported elsewhere anyway |
[11:43]
|
xeno [xeno!~xeno@unaffiliated/xeno] has joined ##java |
[11:45]
|
bolovanos [bolovanos!~bolovanos@unaffiliated/bolovanos] has joined ##java |
[11:47]
|
bolovanos [bolovanos!~bolovanos@unaffiliated/bolovanos] has joined ##java |
[11:50]
|
Suchorski [Suchorski!~regex@unaffiliated/suchorski] has joined ##java |
[11:53]
|
deavmi [deavmi!~tbk@165.0.49.28] has joined ##java |
[12:01]
|
code2be [code2be!~code2be@197.165.135.244] has joined ##java |
[12:06]
|
tilerendering [tilerendering!~tilerende@c-base/crew/conx] has joined ##java |
[12:08]
|
deavmi [deavmi!~tbk@165.0.49.28] has joined ##java |
[12:09]
|
kupi [kupi!uid212005@gateway/web/irccloud.com/x-sxbetnzyfydbbjvs] has joined ##java |
[12:10]
|
onu [onu!~onufn@gibbs.uberspace.de] has joined ##java |
[12:16]
|
deavmi [deavmi!~tbk@2a04:5b81:2010::33] has joined ##java |
[12:21]
|
code2be [code2be!~code2be@197.165.135.244] has joined ##java |
[12:28]
|
deavmi [deavmi!~tbk@2a04:5b81:2010::33] has joined ##java |
[12:33]
|
deavmi [deavmi!~tbk@2a04:5b81:2010::33] has joined ##java |
[12:46]
|
deavmi [deavmi!~tbk@2a04:5b81:2010::33] has joined ##java |
[01:00]
|
CodeGeek [CodeGeek!javageek@unaffiliated/javageek] has joined ##java |
[01:06]
|
bolovanos_ [bolovanos_!~bolovanos@unaffiliated/bolovanos] has joined ##java |
[01:07]
|
zoraj [zoraj!~zoraj@176.ip-92-222-79.eu] has joined ##java |
[01:12]
|
[twisti] |
whats wrong with apache commons ? |
[01:15]
|
yawkat |
can you build openjdk 6 with java 8? |
[01:21]
|
juuandyy [juuandyy!~juuandyy@90.166.144.65] has joined ##java |
[01:27]
|
yawkat |
unsupported major.minor version 52.0, i guess not |
[01:28]
|
g00s [g00s!~g00s@unaffiliated/g00s] has joined ##java |
[01:29]
|
luxemboye [luxemboye!~luxemboye@gateway/tor-sasl/luxemboye] has joined ##java |
[01:32]
|
Maldivia |
yawkat: why would you? |
[01:33]
|
yawkat |
because then i dont have to search for a java 6 dist... |
[01:34]
|
yawkat |
found a zulu though |
[01:34]
|
cheeser |
sdkman? |
[01:34]
|
yawkat |
yea they use zulu |
[01:36]
|
Steeve [Steeve!~steve@unaffiliated/steeve] has joined ##java |
[01:38]
|
luxemboye [luxemboye!~luxemboye@gateway/tor-sasl/luxemboye] has joined ##java |
[01:38]
|
Circuitsoft [Circuitsoft!uid393878@gateway/web/irccloud.com/x-fkhzysapwrhueetn] has joined ##java |
[01:45]
|
hussam [hussam!ht990332ma@gateway/shell/matrix.org/x-qodusdstuewwgaal] has joined ##java |
[01:46]
|
Nightwing52 [Nightwing52!~Thunderbi@174.30.230.35] has joined ##java |
[01:50]
|
_lucifer |
yawkat: https://www.oracle.com/in/java/technologies/javase-java-archive-javase6-downloads.html |
[01:53]
|
Kiminuo [Kiminuo!~mix@217.138.199.4] has joined ##java |
[01:55]
|
DTZUZU [DTZUZU!~DTZUZU@205.ip-149-56-132.net] has joined ##java |
[02:05]
|
ADG1089__ [ADG1089__!~aditya@122.163.165.143] has joined ##java |
[02:07]
|
MrFlibble [MrFlibble!Rimmer@94.14.182.161] has joined ##java |
[02:10]
|
black_ant [black_ant!~antilope@unaffiliated/black-ant/x-1505394] has joined ##java |
[02:24]
|
yawkat |
\o/ https://ci.yawk.at/job/openjdk/job/openjdk6/5/console |
[02:24]
|
yawkat |
yawkat's title: "openjdk » openjdk6 #5 Console [Jenkins]" |
[02:24]
|
tang^ |
oh man that progress logging |
[02:27]
|
yawkat |
gotta use the storage for *something* |
[02:28]
|
tang^ |
heh |
[02:28]
|
Teckla |
If I call ScheduledThreadPoolExecutor.submit(Runnable), it returns a Future. Sometimes, I want to use that Future to get the result of the task. Sometimes, I don't care about the result of the task. -> |
[02:30]
|
yawkat |
this is why ScheduledThreadPoolExecutor is a bit of a pita |
[02:30]
|
Teckla |
If I don't call Future.get(), will any memory/objects build up? |
[02:30]
|
yawkat |
no, but you wont see exceptions |
[02:30]
|
yawkat |
which is super dangerous |
[02:30]
|
yawkat |
if you dont use the future, always always always try-catch inside the task |
[02:31]
|
Teckla |
yawkat: Thank you! |
[02:31]
|
yawkat |
ive lost literal days debugging that in the past |
[02:31]
|
Teckla |
Ouch. |
[02:32]
|
Teckla |
I assume the same applies when calling Executor.submit(Runnable) where the Executor is an Executors.newSingleThreadExecutor()? You can either ignore the Future returned (with no leaks), or you can use the returned Future to wait for the task to complete? |
[02:33]
|
orbyt_ [orbyt_!~orbyt@172.92.4.78] has joined ##java |
[02:33]
|
Teckla |
Although "Future<?> submit(Runnable task)" confuses me a bit... the Runnable task itself can't really return anything... so what kind of Future is it? |
[02:34]
|
yawkat |
yes, but with Scheduled*, *everything* goes through submit |
[02:35]
|
yawkat |
it's a future that returns null |
[02:35]
|
Maldivia |
Teckla: a Future<Void> |
[02:35]
|
Maldivia |
is it null? |
[02:35]
|
Teckla |
I guess I would literally say: Future<?> future = executor.submit(myRunnable); ? |
[02:35]
|
Teckla |
Actually, all I care about is if the task is complete or not, I don't want to return anything. |
[02:35]
|
_lucifer |
`var future = executor.submit(myRunnable);` ;) |
[02:36]
|
Teckla |
Oh, okay. So it sounds like I would use: Future<Void> future = myExecutor.submit(myRunnable); |
[02:36]
|
Teckla |
Heh. We are still stuck on Java 8. |
[02:36]
|
Maldivia |
Future<?> is the returned type |
[02:37]
|
Maldivia |
and as the docs says: The Future's get method will return null upon successful completion. |
[02:37]
|
Teckla |
Oh, okay. So then it is: Future<?> future = myExecutor.submit(myRunnable); |
[02:37]
|
Teckla |
I'm pretty hazy on what <?> means. |
[02:37]
|
Teckla |
Can anyone point me to something that explains <?> so I can educate myself? |
[02:37]
|
Maldivia |
wildcard |
[02:37]
|
Maldivia |
Maldivia, wildcard is the '?' in '? extends Foo' or '? super Bar'; '?' is the same as '? extends Object'. It means (more or less) "some type which is unspecified but which extends|is extended by the given bound". |
[02:37]
|
cheeser |
it's the wildcard |
[02:37]
|
Teckla |
Ah ha. Thank you all very much! |
[02:38]
|
Orlando^ [Orlando^!~kenny@178.74.16.236] has joined ##java |
[02:39]
|
veegee_ [veegee_!~veegee@142.126.156.119] has joined ##java |
[02:41]
|
Teckla |
And if I *did* want to return something from my task, it looks like I'd use: <T> Future<T> submit(Callable<T> task) instead. |
[02:42]
|
Maldivia |
yep |
[02:42]
|
Teckla |
Excellent. Thanks again. :) |
[02:42]
|
Maldivia |
or CompletableFuture.supplyAsync(supplier, executor) |
[02:42]
|
Maldivia |
D |
[02:42]
|
Teckla chuckles |
[02:43]
|
Maldivia |
yawkat: and yeah, I was confusing the ExecutorService.submit with CompletableFuture.runAsync -- the latter returns a Future<Void> :D |
[02:43]
|
Teckla |
I'd never seen Void before. It was interesting to take a quick look at it. |
[02:44]
|
deavmi [deavmi!~tbk@2a04:5b81:2010::33] has joined ##java |
[02:44]
|
yawkat |
Void is commonly used as a type that can only be null |
[02:44]
|
Maldivia |
you cannot create an instance of Void (outside reflection), and no reference to one exists |
[02:45]
|
acidjnk_new [acidjnk_new!~acidjnk@p200300d0c704e7817426bb844d6a6b27.dip0.t-ipconnect.de] has joined ##java |
[02:47]
|
Maldivia |
yawkat: https://www.ideone.com/XvH8TT :) |
[02:53]
|
yawkat |
is allocateInstance not a thing anymore? :( |
[02:55]
|
Maldivia |
it is, but that bypasses the constructor |
[02:55]
|
Maldivia |
not that Void has anything there anyway though |
[02:56]
|
yawkat |
yea :P |
[02:56]
|
hotcoffee [hotcoffee!~hotcoffee@187.255.243.205] has joined ##java |
[02:56]
|
hussam [hussam!ht990332ma@gateway/shell/matrix.org/x-oxclosrqwkvjyucv] has joined ##java |
[02:56]
|
Maldivia |
yawkat: but using MHs and the all the java.base Lookup is more fun |
[02:56]
|
Maldivia |
the all-powerful |
[02:57]
|
cheeser |
unsafe-- :D |
[02:57]
|
deavmi [deavmi!~tbk@165.0.49.28] has joined ##java |
[02:57]
|
ib07 [ib07!~quassel@80-110-99-183.cgn.dynamic.surfer.at] has joined ##java |
[02:58]
|
llorllale [llorllale!~llorllale@2607:9880:1078:46:d833:e31:856b:a41] has joined ##java |
[02:59]
|
Maldivia |
yawkat: ok, found a javadoc that was SO annoying on source that I enabled rendering while scrolling past it... |
[03:00]
|
Maldivia |
MethodHandles.Lookup's |
[03:00]
|
Maldivia |
yawkat: https://java-browser.yawk.at/java/16/java.base/java/lang/invoke/MethodHandles.java#461 |
[03:01]
|
Maldivia |
Maldivia's title: "java/16 : java.base/java/lang/invoke/MethodHandles.java" |
[03:01]
|
yawkat |
you dont like reading tables in source? :D |
[03:01]
|
Maldivia |
the javadoc is 1000 lines long! |
[03:01]
|
yawkat |
and they didnt even @link inside the table! |
[03:02]
|
Maldivia |
yawkat: actaully, you're missing the bullets in the rendering |
[03:03]
|
Maldivia |
<li>If {@code C} is not symbolically accessible from the lookup class's loader, |
[03:04]
|
yawkat |
oh yea |
[03:05]
|
yawkat |
maybe i should also add borders to the table |
[03:05]
|
Maldivia |
I guess because you use <li> for something else, and you've changed the CSS for them :D |
[03:06]
|
yawkat |
yea |
[03:06]
|
luxemboye [luxemboye!~luxemboye@gateway/tor-sasl/luxemboye] has joined ##java |
[03:10]
|
xekz [xekz!~kexmex@unaffiliated/kexmex] has joined ##java |
[03:11]
|
Kiminuo [Kiminuo!~mix@141.98.103.92] has joined ##java |
[03:12]
|
fstd_ [fstd_!~fstd@unaffiliated/fisted] has joined ##java |
[03:15]
|
fingo [fingo!~fingo@gateway/tor-sasl/fingo] has joined ##java |
[03:18]
|
wodencafe [wodencafe!wodencafe@woden.cafe] has joined ##java |
[03:25]
|
Sheilong [Sheilong!uid293653@gateway/web/irccloud.com/x-exqmmrztjppnvoxd] has joined ##java |
[03:28]
|
fax [fax!~quassel@unaffiliated/fax] has joined ##java |
[03:29]
|
sa02irc [sa02irc!~mbax@155-079-043-212.ip-addr.inexio.net] has joined ##java |
[03:34]
|
ChaiTRex [ChaiTRex!~ChaiTRex@gateway/tor-sasl/chaitrex] has joined ##java |
[03:34]
|
AAC [AAC!~AAC@bl8-158-27.dsl.telepac.pt] has joined ##java |
[03:36]
|
freeone3000 [freeone3000!~kamoricks@Syncleus/dev/freeone3000] has joined ##java |
[03:36]
|
deavmi [deavmi!~tbk@2a04:5b81:2010::33] has joined ##java |
[03:36]
|
NorthwestVegan [NorthwestVegan!~Northwest@gateway/tor-sasl/northwestvegan] has joined ##java |
[03:43]
|
bolovanos_ [bolovanos_!~bolovanos@unaffiliated/bolovanos] has joined ##java |
[03:47]
|
AndroidDAW [AndroidDAW!~AndroidDA@cpe-172-193-55-193.qld.foxtel.net.au] has joined ##java |
[03:55]
|
dec0d3r [dec0d3r!~dec0d3r@2001:8003:4824:7000:c786:e7d2:abcd:40ab] has joined ##java |
[03:55]
|
gelignite [gelignite!~gelignite@55d41c8b.access.ecotel.net] has joined ##java |
[03:58]
|
xekz [xekz!~kexmex@unaffiliated/kexmex] has joined ##java |
[04:00]
|
dmlloyd [dmlloyd!uid331705@redhat/jboss/dmlloyd] has joined ##java |
[04:08]
|
bolt [bolt!~r00t@unaffiliated/bolt] has joined ##java |
[04:14]
|
calico [calico!~user@unaffiliated/calico] has joined ##java |
[04:14]
|
dqx [dqx!~dqx@unaffiliated/dqx] has joined ##java |
[04:24]
|
dendazen [dendazen!~dendazen@pool-96-242-127-31.nwrknj.fios.verizon.net] has joined ##java |
[04:26]
|
nickb [nickb!sid293439@gateway/web/irccloud.com/x-ywewegiowxonrown] has joined ##java |
[04:31]
|
kashike [kashike!kashike@unaffiliated/kashike] has joined ##java |
[04:31]
|
Kol [Kol!~Kol@d75-157-122-186.bchsia.telus.net] has joined ##java |
[04:40]
|
wodencafe [wodencafe!wodencafe@woden.cafe] has joined ##java |
[04:50]
|
callq [callq!~callq@162.72.118.237] has joined ##java |
[04:58]
|
Feuermagier [Feuermagier!~Feuermagi@213.178.26.41] has joined ##java |
[05:05]
|
Orlando^ [Orlando^!~kenny@178.74.16.236] has joined ##java |
[05:14]
|
Smigwell [Smigwell!~csmiga@h31.97.18.98.static.ip.windstream.net] has joined ##java |
[05:19]
|
ib07 [ib07!~quassel@80-110-99-183.cgn.dynamic.surfer.at] has joined ##java |
[05:22]
|
wad [wad!~wad@c-76-27-7-52.hsd1.ut.comcast.net] has joined ##java |
[05:31]
|
wad |
paste |
[05:31]
|
wad |
Please paste your code and any errors online. For runnable classes, try https://ideone.com/ . For general code and errors, use https://gist.github.com or https://dpaste.org/ |
[05:31]
|
F0RIS [F0RIS!~F0RIS@31.172.136.176] has joined ##java |
[05:31]
|
wad |
Hey guys. I just ran across a snippet of code that isn't fitting in my creaky, crusty old brain. How do you read this? https://dpaste.org/XEDR |
[05:31]
|
deavmi [deavmi!~tbk@2a04:5b81:2010::33] has joined ##java |
[05:32]
|
wad |
I think it's defining a lambda, and assigning it to a variable named postAssignKeys. |
[05:32]
|
ernimril |
wad, yup |
[05:32]
|
wad |
But the three values in the (), are they parameters? How is code like this actually called? |
[05:33]
|
ernimril |
wad, so RequestEventHandler has one method that takes 3 things (the requestEvent, context and nileScopes) |
[05:33]
|
wad |
But none of those 3 things are actually referenced in the body of the function. Is that normal? Why even have them? |
[05:34]
|
ernimril |
wad, you have to follow the method in RequestEventHandler |
[05:34]
|
wad looks at that class.... |
[05:35]
|
ernimril |
wad, personally I would grab the cluebat and go "talk" to the person who wrote the code... :-) |
[05:35]
|
wad |
She didn't write it, just applied a pattern that has been used in this codebase since forever. LOL. But what would your specific complaint be about this code? |
[05:36]
|
conan [conan!~conan@mdproctor.plus.com] has joined ##java |
[05:36]
|
wad |
I hesitate to lodge a complaint based on a whiney, "I don't get it." |
[05:37]
|
ernimril |
wad, lambdas that does not care about input is not nice, it is hard to understand as you found out |
[05:37]
|
wad |
So, it legitimately ignores the input values, as I suspected? |
[05:37]
|
ernimril |
yes, of course |
[05:38]
|
ernimril |
wad, I am also not a fan of multiline lambda, the "-> {.<several lines>..}" is a bit icky, just extract a method |
[05:38]
|
wad |
Oh, RequestEventHandler is an interface. |
[05:38]
|
ernimril |
sure |
[05:39]
|
ricky_clarkson |
This could be a one-line lambda quite easily. |
[05:39]
|
ricky_clarkson |
and the parameter types are redundant for a lambda |
[05:39]
|
ricky_clarkson |
= (requestEvent, context, nileScopes) -> generateResp... |
[05:40]
|
ernimril |
ricky_clarkson, the types are optional, if they add readability they are not redundant. In this case they probably are not needed though |
[05:40]
|
ricky_clarkson |
You could also write a method that takes those three parameters, and use a method reference where you need a RequestEventHandler |
[05:40]
|
ricky_clarkson |
or create a named or anonymous class. TIMTOWTDI |
[05:41]
|
ricky_clarkson |
Certain coding styles will naturally discourage that by making you name it in ALL_CAPS (ugly) as it's a public static final |
[05:42]
|
wad |
Ooooh, I think I see why it's done this way. |
[05:46]
|
wad |
This is code used in the "serverless" framework, I think. This is likely the way that they suggest coding it up. These three parameters are passed in from the framework. |
[05:47]
|
dreamreal |
so they rewrote express? :) |
[05:48]
|
wad |
¯\\\_(?)_/¯ Looking into it now. |
[05:51]
|
wad |
¯\_(?)_/¯ |
[05:51]
|
conan [conan!~conan@mdproctor.plus.com] has joined ##java |
[05:56]
|
georgios [georgios!~george@unaffiliated/anaphaxeton] has joined ##java |
[06:00]
|
mitch0 [mitch0!~mitch@85-238-65-123.pool.digikabel.hu] has joined ##java |
[06:32]
|
ib07 [ib07!~quassel@80-110-99-183.cgn.dynamic.surfer.at] has joined ##java |
[06:42]
|
bolovanos__ [bolovanos__!~bolovanos@unaffiliated/bolovanos] has joined ##java |
[06:48]
|
joev [joev!~joev@72.87.96.154] has joined ##java |
[06:49]
|
LKoen [LKoen!~LKoen@100.170.9.109.rev.sfr.net] has joined ##java |
[06:53]
|
xekz [xekz!~kexmex@unaffiliated/kexmex] has joined ##java |
[06:59]
|
akaWolf [akaWolf!~akaWolf@unaffiliated/akawolf] has joined ##java |
[07:04]
|
nikow1 [nikow1!~nikow@2001:41d0:601:1100::462] has joined ##java |
[07:04]
|
pppingme [pppingme!~pppingme@unaffiliated/pppingme] has joined ##java |
[07:04]
|
darkstardevx [darkstardevx!~darkstard@2601:1c2:300:c8a0::48c8] has joined ##java |
[07:04]
|
Shell [Shell!~shell@unaffiliated/shell] has joined ##java |
[07:05]
|
cluelessperson [cluelessperson!~cluelessp@unaffiliated/cluelessperson] has joined ##java |
[07:05]
|
llorllale [llorllale!~llorllale@2607:9880:1078:46:d833:e31:856b:a41] has joined ##java |
[07:05]
|
mindCrime [mindCrime!~prhodes@2603-6080-5900-001c-33e9-8731-abb2-ef1d.res6.spectrum.com] has joined ##java |
[07:05]
|
EgonX [EgonX!~Egon@2601:2c6:47f:87a8:517d:4185:2319:777b] has joined ##java |
[07:05]
|
TheBeastie [TheBeastie!~luis@dbdvtpyycfr3s--xk0pzt-3.rev.dnainternet.fi] has joined ##java |
[07:05]
|
svm_invictvs [svm_invictvs!~svm_invic@unaffiliated/svminvictvs/x-938456] has joined ##java |
[07:05]
|
DonRichie [DonRichie!~DonRichie@ricl.de] has joined ##java |
[07:05]
|
graphicsv [graphicsv!sid340368@gateway/web/irccloud.com/x-ajpuzluaaqencddp] has joined ##java |
[07:05]
|
snadge [snadge!snadge@unaffiliated/snadge] has joined ##java |
[07:05]
|
Harmon [Harmon!sid15992@gateway/web/irccloud.com/x-xbhnycdlvlajgnme] has joined ##java |
[07:05]
|
bendem [bendem!~bendem@irc.bendem.be] has joined ##java |
[07:05]
|
pingveno [pingveno!sid269408@gateway/web/irccloud.com/x-ylsgoruugutjtrqh] has joined ##java |
[07:05]
|
puppy_za [puppy_za!sid277586@gateway/web/irccloud.com/x-tkpyfqyrumlilmzt] has joined ##java |
[07:05]
|
sonOfRa [sonOfRa!sonOfRa@unaffiliated/sonofra] has joined ##java |
[07:05]
|
lucifer [lucifer!lucifer@gateway/web/irccloud.com/x-otuhworjpmfiupze] has joined ##java |
[07:05]
|
yottabyte [yottabyte!uid195082@gateway/web/irccloud.com/x-ppcyfdoiccehzsbr] has joined ##java |
[07:05]
|
oakridge [oakridge!~oakridge@ec2-13-251-15-242.ap-southeast-1.compute.amazonaws.com] has joined ##java |
[07:05]
|
zkxs [zkxs!zkxs@2600:8804:8040:50::1:1] has joined ##java |
[07:05]
|
Bombe [Bombe!~bombe@freenet/developer/Bombe] has joined ##java |
[07:05]
|
con3 [con3!~con3@2604:a880:800:a1::7a0:1001] has joined ##java |
[07:05]
|
xeeder_ [xeeder_!~quassel@ec2-18-218-240-192.us-east-2.compute.amazonaws.com] has joined ##java |
[07:05]
|
dka [dka!~code-is-a@master-sbg-01.kopaxgroup.com] has joined ##java |
[07:05]
|
_Warl0ck [_Warl0ck!~warl0ck@c-73-83-145-12.hsd1.wa.comcast.net] has joined ##java |
[07:05]
|
xeeder [xeeder!~quassel@ec2-18-218-240-192.us-east-2.compute.amazonaws.com] has joined ##java |
[07:06]
|
joev [joev!~joev@72.87.96.154] has joined ##java |
[07:06]
|
Jigsy [Jigsy!~Jigsy@unaffiliated/jigsy] has joined ##java |
[07:06]
|
dendazen [dendazen!~dendazen@pool-96-242-127-31.nwrknj.fios.verizon.net] has joined ##java |
[07:06]
|
di0_ [di0_!~di0_@unaffiliated/di0-/x-5053590] has joined ##java |
[07:06]
|
dougquaid [dougquaid!dougquaid@gateway/vpn/privateinternetaccess/dougquaid] has joined ##java |
[07:06]
|
Intrepd [Intrepd!~intrepd@pool-108-52-209-125.phlapa.fios.verizon.net] has joined ##java |
[07:06]
|
Smigwell [Smigwell!~csmiga@h31.97.18.98.static.ip.windstream.net] has joined ##java |
[07:06]
|
black_ant [black_ant!~antilope@unaffiliated/black-ant/x-1505394] has joined ##java |
[07:06]
|
gelignite [gelignite!~gelignite@55d41c8b.access.ecotel.net] has joined ##java |
[07:06]
|
runlevel7__ [runlevel7__!runlevel7@gateway/vpn/privateinternetaccess/runlevel7] has joined ##java |
[07:06]
|
mitch0 [mitch0!~mitch@85-238-65-123.pool.digikabel.hu] has joined ##java |
[07:06]
|
myke [myke!~myke@block-208.123.199.194.montanasat.net] has joined ##java |
[07:06]
|
MrFlibble [MrFlibble!Rimmer@94.14.182.161] has joined ##java |
[07:06]
|
Arimil [Arimil!~Renari@64.67.31.239.res-cmts.bgr.ptd.net] has joined ##java |
[07:06]
|
jcnmark6 [jcnmark6!~jcnmark6@static.213-133-100-141.clients.your-server.de] has joined ##java |
[07:06]
|
unsyncing [unsyncing!~unsyncing@67.215.237.58] has joined ##java |
[07:06]
|
Enissay [Enissay!~Enissay@unaffiliated/enissay] has joined ##java |
[07:06]
|
Joel [Joel!~jjshoe@unaffiliated/joel] has joined ##java |
[07:06]
|
SebastianFlyte [SebastianFlyte!~sebf@pool-173-79-119-80.washdc.fios.verizon.net] has joined ##java |
[07:06]
|
svimanet [svimanet!~quassel@198.211.122.173] has joined ##java |
[07:06]
|
troydm [troydm!~troydm@unaffiliated/troydm] has joined ##java |
[07:06]
|
PyR3X [PyR3X!~PyR3X@unaffiliated/pyr3x] has joined ##java |
[07:06]
|
dave_uy [dave_uy!~david@108.61.193.26] has joined ##java |
[07:06]
|
deebo [deebo!~deebo@stonebay32.com] has joined ##java |
[07:06]
|
erwyn [erwyn!~Erwyn@gloups.piwany.com] has joined ##java |
[07:06]
|
qqqhhh [qqqhhh!~qqqhhh@158.255.251.253] has joined ##java |
[07:06]
|
ChrisLane [ChrisLane!~irc@cpc119494-heme14-2-0-cust126.9-1.cable.virginm.net] has joined ##java |
[07:06]
|
PacKetSlayer [PacKetSlayer!~PacketSla@hellomouse/member/packetslayer] has joined ##java |
[07:06]
|
VVD [VVD!~VVD@109-252-199-109.dynamic.spd-mgts.ru] has joined ##java |
[07:06]
|
Devastator [Devastator!~devas@unaffiliated/devastator] has joined ##java |
[07:06]
|
TReK [TReK!~UnFaQ@unaffiliated/trek] has joined ##java |
[07:06]
|
ernimril [ernimril!~ernimril@31-208-65-1.cust.bredband2.com] has joined ##java |
[07:06]
|
CorbaTheGeek [CorbaTheGeek!~peter@99-167-204-9.lightspeed.sntcca.sbcglobal.net] has joined ##java |
[07:06]
|
yawkat [yawkat!~yawkat@cats.coffee] has joined ##java |
[07:06]
|
shicks255 [shicks255!~shicks255@c-73-44-67-59.hsd1.il.comcast.net] has joined ##java |
[07:06]
|
davlefou [davlefou!~davlefou@unaffiliated/davlefou] has joined ##java |
[07:06]
|
Inu [Inu!~Inu@unaffiliated/inu] has joined ##java |
[07:06]
|
sdu [sdu!~doo@80.107.75.135] has joined ##java |
[07:06]
|
jellyknight [jellyknight!~gelignite@55d41c8b.access.ecotel.net] has joined ##java |
[07:09]
|
cluelessperson [cluelessperson!~cluelessp@unaffiliated/cluelessperson] has joined ##java |
[07:09]
|
graphicsv [graphicsv!sid340368@gateway/web/irccloud.com/x-heinobrejihwljsl] has joined ##java |
[07:09]
|
lucifer [lucifer!lucifer@gateway/web/irccloud.com/x-pvzltqyfqmofioyo] has joined ##java |
[07:09]
|
Smigwell [Smigwell!~csmiga@h31.97.18.98.static.ip.windstream.net] has joined ##java |
[07:10]
|
yottabyte [yottabyte!uid195082@gateway/web/irccloud.com/x-aqhxpvjgypexqsya] has joined ##java |
[07:10]
|
MrFlibble [MrFlibble!Rimmer@94.14.182.161] has joined ##java |
[07:10]
|
NorthwestVegan [NorthwestVegan!~Northwest@gateway/tor-sasl/northwestvegan] has joined ##java |
[07:11]
|
albethere [albethere!sid457088@gateway/web/irccloud.com/x-mlojfqddwapqjmhc] has joined ##java |
[07:11]
|
pingveno [pingveno!sid269408@gateway/web/irccloud.com/x-kbcndyrfcycckhkm] has joined ##java |
[07:11]
|
Jantz [Jantz!~IceChat9@118-93-28-3.dsl.dyn.ihug.co.nz] has joined ##java |
[07:13]
|
trinityblade [trinityblade!~textual@adsl-76-211-177-0.dsl.wlfrct.sbcglobal.net] has joined ##java |
[07:19]
|
harlin [harlin!~harlin@c-24-128-8-53.hsd1.co.comcast.net] has joined ##java |
[07:21]
|
fax [fax!~quassel@unaffiliated/fax] has joined ##java |
[07:21]
|
conan [conan!~conan@mdproctor.plus.com] has joined ##java |
[07:26]
|
hd1 [hd1!6bb8e407@gateway/web/cgi-irc/kiwiirc.com/ip.107.184.228.7] has joined ##java |
[07:32]
|
hypc [hypc!~Thunderbi@60.16.239.203] has joined ##java |
[07:37]
|
db [db!uid18678@gateway/web/irccloud.com/x-tljleipskagmkbee] has joined ##java |
[07:47]
|
xekz [xekz!~kexmex@unaffiliated/kexmex] has joined ##java |
[07:48]
|
orbyt_ [orbyt_!~orbyt@172.92.4.78] has joined ##java |
[07:50]
|
rzjian [rzjian!~l@14.215.218.170] has joined ##java |
[07:56]
|
bourbon [bourbon!ragersynap@gateway/shell/matrix.org/x-jlppreaiitgrwqpo] has joined ##java |
[08:02]
|
cliluw [cliluw!~cliluw@unaffiliated/cliluw] has joined ##java |
[08:17]
|
conan [conan!~conan@mdproctor.plus.com] has joined ##java |
[08:20]
|
hussam [hussam!ht990332ma@gateway/shell/matrix.org/x-vtoxemcdvnotvtqx] has joined ##java |
[08:24]
|
hsiktas[m] [hsiktas[m]!hsiktasmat@gateway/shell/matrix.org/x-mpdjbrfpxquezqnj] has joined ##java |
[08:24]
|
Jantz [Jantz!~IceChat9@118-93-28-3.dsl.dyn.ihug.co.nz] has joined ##java |
[08:46]
|
TideFN [TideFN!~TideFN@2601:cb:8280:9520:d47b:ef87:71a9:8956] has joined ##java |
[08:54]
|
ChrisLane [ChrisLane!~irc@cpc119494-heme14-2-0-cust126.9-1.cable.virginm.net] has joined ##java |
[08:55]
|
dqx [dqx!~dqx@unaffiliated/dqx] has joined ##java |
[08:56]
|
justmondris [justmondris!c5fd3b9e@gateway/web/cgi-irc/kiwiirc.com/ip.197.253.59.158] has joined ##java |
[08:56]
|
justmondris |
hello how can dynamically sent the expiring date of each redis object in the cache |
[08:58]
|
justmondris |
based on the expires_At value of the object |
[08:59]
|
justmondris |
? |
[08:59]
|
justmondris |
i have a paste-bin app with an expiration value set and this will increase by 30seconds each time the link of the snippet is view or liked |
[09:03]
|
justmondris |
i want to cache newly created bpaste based on the expires_at value which is usually in seconds |
[09:04]
|
justmondris |
or is it advisable to store an object that changes frequently in redis cache? |
[09:10]
|
xdeadbeef [xdeadbeef!~deadbeef@unaffiliated/xdeadbeef] has joined ##java |
[09:16]
|
johnwickmode [johnwickmode!~johnwickm@2601:5c3:4100:b180::24ef] has joined ##java |
[09:19]
|
fingo [fingo!~fingo@gateway/tor-sasl/fingo] has joined ##java |
[09:22]
|
acidjnk_new [acidjnk_new!~acidjnk@p200300d0c704e79940e641953fd44719.dip0.t-ipconnect.de] has joined ##java |
[09:25]
|
fingo [fingo!~fingo@gateway/tor-sasl/fingo] has joined ##java |
[09:26]
|
linext [linext!~linext@pool-173-70-45-66.nwrknj.fios.verizon.net] has joined ##java |
[09:26]
|
cheeser |
that's a question for #redis |
[09:33]
|
acidjnk_new [acidjnk_new!~acidjnk@p200300d0c704e79940e641953fd44719.dip0.t-ipconnect.de] has joined ##java |
[09:34]
|
justmondris |
i am using it with spring boot |
[09:39]
|
cheeser |
sounds great! |
[09:39]
|
justmondris |
but i think it's not advisable to store an object to changes too frequently in cache |
[09:39]
|
cheeser |
it's still a question for #redis |
[09:39]
|
justmondris |
e.g every 30seconds |
[09:39]
|
justmondris |
what do you think? |
[09:40]
|
cheeser |
i think it's a question for #redis |
[09:40]
|
justmondris |
lololol |
[09:40]
|
justmondris |
okay |
[09:40]
|
justmondris |
i have another question for #java |
[09:40]
|
justmondris |
this : https://bpa.st/QEZA |
[09:41]
|
justmondris |
it's not sending validation error to client |
[09:41]
|
justmondris |
sending the model and the dto i want to validate |
[09:41]
|
justmondris |
DTO : https://bpa.st/7SOA |
[09:42]
|
justmondris |
Model: https://bpa.st/3LAA |
[09:42]
|
justmondris |
please, why is it not sending the validation error message to the client whenever i violated a constraint? |
[09:43]
|
justmondris |
cheeser please are you there? |
[09:47]
|
wordsToLiveBy [wordsToLiveBy!~wordsToLi@unaffiliated/wordstoliveby] has joined ##java |
[09:48]
|
MarkyC [MarkyC!~MarkyC@bras-base-toroon4512w-grc-39-184-148-5-175.dsl.bell.ca] has joined ##java |
[09:54]
|
Goplat [Goplat!~Goplat@reactos/developer/Goplat] has joined ##java |
[09:55]
|
dqx [dqx!~dqx@unaffiliated/dqx] has joined ##java |
[10:13]
|
KidBeta [KidBeta!~Kidbeta@hpavc/kidbeta] has joined ##java |
[10:14]
|
callq [callq!~callq@72-48-183-62.dyn.grandenetworks.net] has joined ##java |
[10:20]
|
cliluw [cliluw!~cliluw@unaffiliated/cliluw] has joined ##java |
[10:31]
|
AAC [AAC!~AAC@bl8-158-27.dsl.telepac.pt] has joined ##java |
[10:39]
|
AAC |
hey. Im trying to write a String from a byte[] array (like new String(array). The problem is , is that if the byte array has 0 as one component, the string doesnt print |
[10:40]
|
AAC |
is this correct behaviour? |
[10:40]
|
TideFN [TideFN!~TideFN@2601:cb:8280:9520:3424:f35d:c5f6:ac75] has joined ##java |
[10:43]
|
karstensrage |
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html#%3Cinit%3E(byte%5B%5D) |
[10:51]
|
karstensrage |
The behavior of this constructor when the given bytes are not valid in the default charset is unspecified. The CharsetDecoder class should be used when more control over the decoding process is required. |
[10:51]
|
AAC |
ah ok..i guess that's 11 :) im using 8 , and 8 api :) |
[10:55]
|
AAC |
but still this happens on 8 |
[10:55]
|
AAC |
altough the api of 8 , doesnt say that on String object |
[10:56]
|
AAC |
nevermind |
[10:56]
|
AAC |
its there. |
[10:56]
|
AAC |
dont know how i missed it |
[10:56]
|
karstensrage |
its easy to miss |
[10:59]
|
karstensrage |
javadocs are vast |
[10:59]
|
AAC |
lol...im not saying that..i essentialy checked the string class :) |
[11:00]
|
AAC |
didnt saw it :) |
[11:00]
|
AAC |
so zero is not on the char set... :/ |
[11:00]
|
AAC |
i guess i need to use CharsetDecode :/ |
[11:01]
|
nikow2 [nikow2!~nikow@2001:41d0:601:1100::462] has joined ##java |
[11:04]
|
darkstardevx [darkstardevx!~darkstard@2601:1c2:300:c8a0::48c8] has joined ##java |
[11:05]
|
Jantz [Jantz!~IceChat9@118-93-28-3.dsl.dyn.ihug.co.nz] has joined ##java |
[11:23]
|
AMcBain [AMcBain!~Art@071-085-028-052.res.spectrum.com] has joined ##java |
[11:25]
|
AAC |
so for instance if i have like [0,1,2] bytes they aren't supported by the charset? |
[11:30]
|
LionBar [LionBar!~l@gateway/tor-sasl/lionbar] has joined ##java |
[11:43]
|
xekz [xekz!~kexmex@unaffiliated/kexmex] has joined ##java |
[11:46]
|
AAC |
im sorry im not following...only zero is not valid on my charset..1 print oks |
[11:53]
|
AAC |
my best guess is, this is flaw |
[11:57]
|