« first day (3065 days earlier)      last day (2100 days later) » 

00:00
What is algebra, exactly? Is it one of those three-cornered things? -- J.M. Barrie (source)
 
1 hour later…
01:13
morn
morn
 
2 hours later…
03:10
I am trying to build a multi maven project, trying to make a simple spring boot app
still not working .... pffft
 
2 hours later…
Zoe
Zoe
05:39
@KarelG the way it's spelled
 
2 hours later…
07:20
@Leroy use an archetype for a simple spring boot app
then modify it if anything
G'day
@KarelG Zö
07:54
@geisterfurz007 o with diaeresis?
Or is it an umlaut?
@geisterfurz007 there's an International Phonetic Alphabet ya know
Ignore this one; am noob
(And yes, it's an umlaut)
Here's a website that can convert words into phonograms: tophonetics.com
Zoe
Zoe
08:18
Java is to Javascript as Pain is to Painting, or Ham is to Hamster. They are completely different. It is highly recommended that aspiring coders try to learn the name of the language they're attempting to write code in. When you post a question, please tag it appropriately. — CertainPerformance 4 mins ago
That's even better than car to carpet xD
But is there not a carpet in a car?
Does a hamster not eat ham?
Does an artist not express pain through his painting?
Zoe
Zoe
Pain is relative
Like space/time
Zoe
Zoe
That's a different type of relative
Dec 9 '18 at 20:48, by geisterfurz007
Y'all nerds.
08:30
@Zoe naaah, it is just a french bread
Zoe
Zoe
@geisterfurz007 and you're a noob
ohh, burn
\(-_\)
(/_-)/
Zoe
Zoe
@geisterfurz007 nah, I'm a nerd girl uwu
@Neil felt more like desperation than a burn
Zoe
Zoe
It burns more hearing that screaming than any burn can give
burn? fire? o.o
*continues working*
Zoe
Zoe
Did you try turning it off and back on again?
08:52
@Neil that's my favourite thing to post on Slack
Zoe
Zoe
09:05
This is fine is also an Easter egg here
Sam
Sam
Any of you guys familiar with Selenium?
@Sam Welcome to the Java Chat, the room for Java enthusiasts! Please use a code snippet tool when posting code snippets. If you have an Android question, you're in the wrong place! And remember: this is not tech support! Thanks for visiting and have fun! :D
@Sam The chemical element?
in essence: using Spring form for the first time. Passing object to view works: form get filled in fields. Changed a value. submit. Validator has object, but all attributes are empty (string: "")
either baeldung is incorrect or I am missing something subtle
Sam
Sam
The web browsing automation tool :p
09:30
Hello
@ShivamSharma Welcome to the Java Chat, the room for Java enthusiasts! Please use a code snippet tool when posting code snippets. If you have an Android question, you're in the wrong place! And remember: this is not tech support! Thanks for visiting and have fun! :D
Hi shivam
How is it possible that if I put an https domain without port (so 443), I can reach the site, but if I access its SOAP interface also using https and port 1443, it gives me an SSL handshake error?
wouldn't it also fail for the https domain?
I have troubles to read that sentence correctly.
Trying to call an external SOAP service, right? The address is something like somedomain:1443/someservice
If I put that in my browser, I get an authorization error related to SSL
and yet if I put in https ://somedomain, it works
I'd have assumed that once you're certified for https ://somedomain, you'd also be certified for any other call in the same domain
apparently not
or maybe it's something else, like maybe it's using SSL 3 or something
 
2 hours later…
11:46
posted on March 15, 2019

archive - contact - sexy exciting merchandise - search - about ← previousMarch 15th, 2019nextMarch 15th, 2019: DINOSAUR COMICS BOOK ARE ON SUPERSALE! THIS NEVER HAPPENS– Ryan

12:00
Lions can see six times better in the dark than a human. At night, a reflective coating on the back of their eyes helps capture moonlight. Additionally, they have a white patch of fur underneath their eyes that helps to reflect even more light. (source)
hehe
12:44
0
Q: there is a problem in the output of my java code

陈俊杰There is a problem in the output of my java code. In the tipOdd part, I want to remove the element in index 0 and odd index of an arraylist. For example, an arraylist [40 8 6 3 7 5 2], and then the expected output should be [6 7 2],but my code output is [6 3 7 5 2 6 7 2]. Can anyone can help me t...

he has a pretty big class for a simple task :P
@KarelG you'd have a big class too if you didn't know what the hell you wanted :P
then I just sit there, not coding?
seems completely arbitrary what he wants
if he were asking to drop off only the first part or remove all odds, fine, but that output t hough
13:05
13:36
Hi! I'm trying to understand the impact of the changes in Oracle JDK Licence but it's quite fuzzy to me even after reading some articles and SO Q/A. In short, I work for a company who develops, delivers and maintains Java software (we develop with Oracle JDK 8 and our clients run it with JavaWS in JRE 8). What now? Should we migrate everything to OpenJDK 11 and update it every 6 months? Or should we use an other provider like Amazon to keep LTS and stay in version 8? What do you think? Thanks.
@Pierre Welcome to the Java Chat, the room for Java enthusiasts! Please use a code snippet tool when posting code snippets. If you have an Android question, you're in the wrong place! And remember: this is not tech support! Thanks for visiting and have fun! :D
@Pierre You're talking to a programmer, not a lawyer :)
I don't think using OpenJDK means your software is open software
but there could be special cases, I don't know
also, I watched a video, and they're going to do two releases one year after the next with just one-year support for each, and then one "long" release with long-term support
11 is the next long-term support jdk, so it'll be supported for a while
after 11 it will be 14, then 17, etc.
@Pierre why stay in J8?
@Neil I'm sure even if I use OpenJDK, my software will stay non-free. My point is about security updates. Because, as far as I understand, even if Oracle JDK is a LTS, the updates are provided for free during 6 months and, after, you have to pay for support if you want to stay with Oracle JDK 11 and not move to 12.
there is a reason why you stopped using Java 4
the same reason applies why you should stop using Java 8
13:45
I think Oracle promised quite a bit more support than that
@Wietlol I'm not sure our app is compatible with Java 11. If it's not the case, we need some time to make the migration.
why are you not sure?
9 and 10 were so-called quick releases and were supported 6 months
you assume that things break?
or did you try it?
@Wietlol I assume it.
13:47
stay on 8 until you know for a fact that you can support java 11
while it is likely some things might break, it should be fairly simple to upgrade
Zoe
Zoe
@Neil OpenJDK has the classpath exception, which means your program can have a separate license if it builds on the JDK, but if you're improving the JDK itself, it needs to be on the same license
@Pierre if you want to play safe: go to OpenJDK.
Zoe
Zoe
TL;DR: a Java program building on OpenJDK can have any license, an OpenJDK distribution needs to have the same license as the OpenJDK
you can use that or one of its distro's
@Zoe right, that's what I had understood as well
13:51
Happy Friday, Jaba!
Happy Mibael!
@Neil @Zoe The problem with Oracle OpenJDK build is they "are free for commercial use (but only updated for 6 months)" medium.com/@javachampions/java-is-still-free-2-0-0-6b9aa8d6d244
Zoe
Zoe
13:53
Yep
Does it mean if I use Oracle OpenJDK, my clients have to upgrade their JDK too?
Zoe
Zoe
But you need to bundle the JRE into your program, so you don't need to worry about incompatibility
@Pierre Developers? Yes. End-users? No. With the new JRE system relying on Jigsaw, downloading the program also downloads the runtime
We are using Java Web Start, I don't know if it works the same
@Michael Thanks, I read it but I'm not sure to understand everything.
13:56
@Pierre only if your program uses a feature only available with that specific jre/jdk
and yes, if you bundle the jre with your program, you don't even have to worry about that
😬 just got a BSOD "memory management" error
@Zoe I never heard about Jigsaw. When an end-user loads an app with javaws, the user still needs to have a JRE on its OS, right?
Zoe
Zoe
@Pierre no, Jigsaw removes the need for it
It creates a JRE per program, which imo is incredibly inefficient and a waste of space to force
@Zoe So, is it a better idea to not bundle the JRE in the app and just use a Amazon Corretto, for instance, who can provides security updates until 2023?
Zoe
Zoe
I don't think you have a choice any more.
14:12
meh, not really an issue to the developer if it takes up a little more space
usually you're not talking about a great deal of space
@Zoe I'm not sure to understand which choice you're talking about.
Zoe
Zoe
@Pierre between user-installed JDK and embedding
that is why Jigsaw is an appropriate name
(if you know that character ... )
@KarelG would you like to play a game? muahahaha
i'm embellished the evil laugh actually, but you get my drift
@Zoe Sorry but I'm still not sure to understand what you mean. I still can deliver an app without any JRE embedded and ask to the user to download a JDK or JRE, right?
Zoe
Zoe
14:23
The JDK isn't a JRE, and the JRE isn't distributed freely and is implementation-dependent. Windows is a living hell for installing a JRE without the JDK and without Jigsaw (no sudo apt-get install openjdk11-jre)
Not really. The easiest easy to download Java for Windows is to go to java.com. However, it only downloads Java 8.
@Zoe What about AdoptOpenJDK who still provides JRE even for v11? adoptopenjdk.net/…
Zoe
Zoe
@Michael 8 != 11
No clue, never looked into it
huh?
Windows is a living hell for installing a JRE without the JDK and without Jigsaw
I wouldn't say a living hell, but windows can make trouble for you if you're not super-administrator
Zoe
Zoe
14:39
@KarelG Windows is a living hell for <insert problem here>
Apparently, Java Web Start is no longer included in Oracle JDK 11 and later. So, in a way, I have my aswer. oracle.com/technetwork/java/javase/… (page 6)
s/for <insert problem here>/
Zoe
Zoe
Touche
I just said "easiest easy". I'm not having a stroke, I swear. xD
3
Zoe
Zoe
xD
14:48
that's what people who are having strokes say
LAD
LAD
Anyone here know something about OpenGL ES 2?
Zoe
Zoe
Android or Java?
LAD
LAD
In Android using Java
Zoe
Zoe
@LAD This isn't an Android room
LAD
LAD
14:52
I knew you were gonna say that...
Zoe
Zoe
ok.
LAD
LAD
I'll look in the Android room, but it never seems active
I'm not able to chat in there
Hey, Zoe, I saw that you were running for moderator
it's not active because the people who would speak in said rooms come here instead :P
Zoe
Zoe
@LAD I am, yeah.
LAD
LAD
Yeah, I guess
I was wondering if I could run an idea by you
I am currently writing up a Meta question about it but I don't know if others would like the idea or not
Zoe
Zoe
14:56
Ok?
can you make a kotlin chatroom?
:p
Zoe
Zoe
@Wietlol That has already failed twice
why has that failed?
i know
there's a good following for kotlin here
14:57
hence the ":p"
@Neil because... reasons
kotlin questions get asked in here
Zoe
Zoe
@Neil iDunno. It never got traction, and I was the only one around there daily. There were a couple users that sporadically showed up but not near enough to keep the room alive
same as how javascript questions get asked in C#
LAD
LAD
Ok, so I know that it's a common thing that new users mistake SO as a forum when it's actually a Q&A site. But wouldn't a forum section of Stack Overflow (not part of the main site, like Meta or the chat rooms are) be a possible feature?
iirc, SO doesnt want a forum
LAD
LAD
How come?
14:59
not sure
do people not program in kotlin?
I'd have assumed it'd be a little more popular
LAD
LAD
Stuff like Reddit is super popular
kotlin = the new groovy?
kotlin is too young
just like dart
LAD
LAD
It just seems like some questions might be better answered in a discussion/conversation type way rather than a very specific way, and having a forum could be a place for that
15:01
@LAD I think a forum would be a great idea
but I also think it would get shot down in no time
LAD
LAD
It could possibly even help with all the flagging problems SO has, as new users could be encouraged to use the forum for their questions
we have a Q&A platform and chatrooms. A forum would be right in the middle
and then you'd have to moderate them
it's a hard sell
LAD
LAD
Yeah, I mean it would take time to create probably
it would also be a hard sell :P
But being a fan of forums during the early age of the internet, I support the idea
LAD
LAD
Yeah, like for example, I have some questions sometimes that I feel would be really helpful if I could talk with someone else who is experienced, but that can't be done on SO, and these chat rooms don't really seem like the place either
15:07
well there's a good chance that your question or advice wouldn't get answered
it would be not much different from the Q&A, except subjective questions are allowed
LAD
LAD
Yeah, I guess
I guess I'll just take a break from the forum idea for now
Zoe
Zoe
@LAD No. And I think there are feature requests for that too
13
A: Should Stack Overflow have a forum where users can talk about anything they want?

Robert HarveyI don't think you've made the case that chat is unsuitable. I've had many good conversations in there, and if someone wants to be disruptive, we just tell them to go away, ignore them and (if necessary) find someone with superpowers to kick them or ban them. It happens less often than you mig...

LAD
LAD
@Zoe Yeah, Neil said the idea probably wouldn't be well received.
Zoe
Zoe
On the answer under that:
Take this idea away - far away. Create whatever forums you like, but do not in any way associate them with Stack Exchange.
LAD
LAD
Lol, for some reason, some SOers really don't like forums
Zoe
Zoe
15:21
Because forums are messy
They turn into a mess of comments along with possible solution and no clear distinction as to whether it's a fix or not
it's the best/worst of Q&A and chatrooms
LAD
LAD
That's true, I guess the few forum's I look at are better since they are smaller
besides, many times there are places you can post questions regarding advice
LAD
LAD
But I actually have never used a forum before
like workplace SE
Zoe
Zoe
15:25
waffles
Good morning.
Good morning.
Zoe
Zoe
Good morning.
LAD
LAD
OakBot is the chat bot, isn't it
yep
/shrug
15:27
¯\_(ツ)_/¯
LAD
LAD
I tested it out in the Sandbox a little while ago
/talk
...
/OakBot
I don't remember the commands
/help
My commands are also listed here: github.com/JavaChat/OakBot/wiki/Commands
LAD
LAD
/lotrcode
/sandbox
15:30
Please go play in the sandbox
Zoe
Zoe
@geisterfurz007 quick question: could you add var GM; right after the const room in the stock comments userscript and test if it still works? Just wanna make sure I don't break anything with TamperMonkey before I make a PR
actually, never mind
What's the name of the block in cases of switch-case??
@c-an Welcome to the Java Chat, the room for Java enthusiasts! Please use a code snippet tool when posting code snippets. If you have an Android question, you're in the wrong place! And remember: this is not tech support! Thanks for visiting and have fun! :D
Zoe
Zoe
cases?
/shrug
¯\_(ツ)_/¯
Zoe
Zoe
It's a case
@c-an The body of a switch statement is known as a switch block. A statement in the switch block can be labeled with one or more case or default labels. Source
15:55
@geisterfurz007 Yes, I know. But I am just curious how to call the block in case. not switch body.
LAD
LAD
I think Zoe and geist got it - case (or case block)
@c-an They are essentially just labeled statements. But it's indeed usually referred to as case block, yeah
Oh.. I see case block. Thanks :)
its the same as if (...) foo; else if (...) bar;
just syntax that is quite common, but really weird
{
	Intent intent = new Intent(MainActivity.this, BActivity.class);
	startActivity(intent);
}

Intent intent = new Intent(MainActivity.this, BActivity.class);
startActivity(intent);
there is no difference between these two
curly braces can be placed anywhere to provide scoping
17:05
posted on March 15, 2019 by CommitStrip

 
1 hour later…
18:34
Which is cleaner? 1.Passing parameters through builder? 2. Put all values in a hashmap and pass it to the method?
Zoe
Zoe
Builder
Why not the second option?
Is this a homework question?
18:53
no.
I am designing an event.
It contains 10-12 parameters
You should definitely use a builder then.
/bloch builder
Item 2: Consider a builder when faced with many constructor parameters
Item 5: Prefer dependency injection to hardwiring resources
Item 63: Beware the performance of string concatenation
So, thought of putting them in a hashmap-> pass to the event-> retrieve in the callee function.
/bloch 2
Item 2: Consider a builder when faced with many constructor parameters
summary missing
(source: Effective Java, Third Edition by Joshua Bloch, p.10)
18:55
Have been going through bloch's builder.
The problem with hashmaps is that the keys are not checked by the compiler.
so?
client can pass key ?
and it is difficult to retrieve?
If you mistype a key, the compiler will not catch it.
Zoe
Zoe
@gaurav Because it adds overhead from the HashMap, and it's horribly ugly to type up a hashmap manually for arguments
true that.
it is ugly indeed!
I'll definitely go with builder.
18:57
The problem with builders is that they are super verbose and there is code duplication involved. :(
Didn't get this statement from the book
"A related disadvantage is that the JavaBeans pattern
precludes the possibility of making a class immutable (Item 17) and requires
added effort on the part of the programmer to ensure thread safety."
Huh? That sounds like a quote from the book.
it is from the book
Joshua says that JavaBeans pattern can cause a class to be mutable
so, is a builder thread-safe?
P.S. Lots of java libraries e.g. log4j are deprecating javabeans in favor of builders
Builder? No. But the class that the builder creates should be.
oh
okay
 
1 hour later…
20:39
A JavaBean is not thread-safe because it has setter methods (i.e. it is mutable).
Zoe
Zoe
But if you roast the bean and carbonize it, that would solve a lot of the issues.
 
3 hours later…
23:49
throw new Error("Failed to compile Kotlin code: exception: java.lang.OutOfMemoryError: Java heap space
great...

« first day (3065 days earlier)      last day (2100 days later) »