« first day (2895 days earlier)      last day (2045 days later) » 

12:00 AM
"Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover." -Mark Twain (source)
 
Thanks @JennaSloan :)
 
12:31 AM
 
12:50 AM
o/
 
user8622974
\o
 
\o
 
You should.
 
@Michael You didn't see notin'
 
12:51 AM
xD
 
;)
 
1:14 AM
How would I create a method that could be called on any array?
array1.myMethod();
Instead of myMethod(array1);
 
You can't in Java.
 
1:41 AM
room topic changed to Java: Dedicated to the discussion of the Java programming language and general software engineering principles. If you would like to ask a question, please note that this is not a help desk or consultation service. If you have an Android question, please visit the Android chat room. For all other queries, please stay on the line. github.com/JavaChat [its-always-friday] [java] [jdk] [jvm] [out-of-context-stars]
 
2:29 AM
Don't forget about JavaChat.github.io !
 
2:46 AM
@Michael :(
@Michael What was it before?
 
It turns out that using a touchscreen to play minesweeper can cause minesweeper to freeze and also makes your computer extremely slow.
Namely when using the touchscreen to press and hold down the little smiley face button.
 
 
2 hours later…
Zoe
5:14 AM
@Michael * without a compiler plugin
 
USM
6:07 AM
How can we call Multiple Rest Post services in Spring Boot?
In parallel
 
morn
 
user8622974
morn
 
morn
 
6:25 AM
@USM use multi threading for that, if you have to call multiple REST call in parallel.
 
USM
I am doing that...
see code...(sorry no access to pastecode)
ExecutorService taskExecutor = Executors.newFixedThreadPool(DEFAULT_POOL_SIZE);
		List<Future<String>> futureList = new ArrayList<>();

		for (String task : tasks) {

			Future<String> future = taskExecutor.submit(new postReq());
			futureList.add(future);
			System.out.println(task);
		}
		taskExecutor.shutdown();
 
you can use github too :)
 
USM
I am stuck how should i call postReq()
That is a callable,
 
why you are using Future??
if you have to call in same time.
 
USM
ok, so what shld i use here?
 
6:29 AM
and if your api is running then just hit post end point with any HTTP client, thats it.
 
USM
I am kinda confused here
 
ok, here are the steps.. i) if your service up and running then, create a program to hit all required end-points programmatic way, you can use any HTTPclient for that.. like ApacheHTTpclient.
ii) Once you are able to communicate your API's programaticly, then prepare that logic in class with implementation of Runnable.
iii) Use simple Executor and call your Thread with help of that.
I m pretty sure you can do it with-out future as well.
for http client
hope this will help you buddy.
 
USM
6:45 AM
sure, i will check.. thanks for the effort
 
any time buddy
 
7:06 AM
Did you hear? Java 11 has its own HttpClient
2
 
 
1 hour later…
8:13 AM
@JennaSloan yep
 
 
1 hour later…
9:14 AM
Good morning everyone :3
I'm all alone.
Good morning unknown :{
slurps to the corner
 
9:28 AM
A wild Unknown appears!
 
^
catches the unknown
 
Zoe
9:46 AM
How do you catch the unknown?
 
With a Master Ball
 
Zoe
Because if you catch the unknown, you know what it is. Which means you catched a known instead of an unknown, which means you don't know what the unknown is, which means you did catch the unknown which means you now know, which means you caught a known an not an unknown, which ERR: UncaughtParadoxException
 
Nah, the unknown come from another dimension
 
zoe gone crazy as always
 
@Zoe what if I told you, you dont have a pokedex?
there are known knowns but there are also known unknowns, things of which we know that we dont know
 
Zoe
9:49 AM
@ColdFire I'm not crazy. My mother had me tested
@Wietlol but you don't need a pokedex if you have a brain
 
the question is do you have one?
:thinking:
 
bulbapedia ftw
 
Zoe
@ColdFire 1
 
@Zoe well... you still need the pokedex then
 
@Zoe fair enough
 
Zoe
9:51 AM
@ColdFire 1
 
@Zoe confirmed brain missing
 
Zoe
@Wietlol 0
@ColdFire meh, go have a chat with /dev/null
 
Brutal.
 
@Zoe confirmed brain missing
 
But am I really unknown?
No I am not.
 
9:52 AM
also, have you ever walked into the tall grass without a pokemon?
 
I am Hans.
 
you are unknown the known
 
I have 2 Pojos (Customer + Account). Account has an accountNum and Customer has custId. Is there a way to persist an Account object but also add custId as a column in Account table so the Account knows who owns it? I'm using Hibernate + Spring Data.
 
My name is Hans, I've been here before until I got banned
That's when I set up a new account, and named it "unknown" so no one would recognize me.
 
> accountNum
 
Zoe
9:53 AM
@unknown no you're not
 
( That is fairly close to the true story tho )
 
Hans is also your real name, right?
 
as if it wasnt clear that the number if of an account if it is a property of a frigging Account class
> custId
 
Zoe
@ColdFire no u
 
same here
also, what is with the abbreviations?
 
Zoe
9:54 AM
@unknown maybe, but you're not Hans
 
@Wietlol don't get you
 
@Wietlol abbr ftw
 
@Zoe Why so sure?
 
tag participation
 
9:56 AM
@TheCoder num, cust
 
Zoe
@unknown because I know how hans works. The patterns don't match
 
What if I changed?
 
You didn't.
 
I actually changed a lot recently, so that'd make sense
 
@TheCoder do you use JPA?
 
9:57 AM
Got a new haircut, finished school, quit all my friendships, gave up my faith in humanity, and started being an asshole.
 
@Wietlol yes
 
@unknown because your IQ and Hans IQ is not anywhere near the same
 
AAAAAHHAHAHHAHAHA
 
I'm just gonna go ahead and hope that's rather a compliment
 
9:58 AM
giggles
 
What is it geis?
 
@unknown lol
@JennaSloan lmao roasted
 
All good :')
 
Does everyone except me know the context on this?
 
> tell this idiot to stop impersonating me
greetings from the real hans
 
10:02 AM
@Wietlol thanks - let me read
 
ahahahahaha
 
Now he just called me an idiot, rapport
 
I mean technically Zoe should do it but I guess it is fine this way as well :D
 
Zoe
@geisterfurz007 rekt
 
lmao
 
10:03 AM
Stop confusing me
 
Confusing people is fun though!
 
It is indeed!
 
^
how can unknown be confused
you are just a unknown
 
@JennaSloan I know, that's why I'm being sarcastic all the time - but I don't know the context this whole conversation is based on, so ... yeah that sucks for me
 
Then why do you start it?
 
10:07 AM
^
 
Would have been super funny if mods actually believed that and crushed that account :D
 
Oh true I actually started it wtf
My brain isn't working that well in the morning
 
Aaaaaand you confused yourself, noice
It's noon already.
 
I came to work at 11am
 
It's 5:09 AM already
 
10:09 AM
Jenna go to sleep.
It's still noon here.
 
Being in a 40h/week job -
And my boss just asked me whether I was wearing gloves on my way to the office, other than complaining about my late arrival
 
Priorities are clear.
 
true
 
Sometimes it feels like I work 170 hours a week
 
generic comment about how that is not possible
Maybe it helps if you sleep more :)
 
10:13 AM
@geisterfurz007 169 would be the maximum of hours you can work in a week, unlucky -
 
One time I was up for 25 hours in one day
 
^ possible
 
What if I move to a different time zone while working?
 
That just fucks everything up, don't think about it
I mean, depending on what defines a week -
If "a week" is subjective, then it's 168h no matter what.
 
Java 11 is paid ???
 
Yeah, $199.90 / year for personal use.
 
@JennaSloan still 168 hours
Jenna.Sleep();
 
It is free for personal use
 
@ColdFire I am trying to
/afk
 
@JennaSloan Cya later
 
10:22 AM
do you have insomnia or something like that?
 
Good night :)
 
Content blocked T_T
 
good night
 
@geisterfurz007 this time ??
 
That was for Jenna :)
 
10:28 AM
@ColdFire Who doesn't have insomnia?
 
@Simmant Check it out when you are home. It is a statement writen by the Java champions. You can find more on that topic reading from here in the transcript as well: chat.stackoverflow.com/transcript/message/43979935#43979935 Context is that ballBreaker asked essentially the same question ("JDKs aren't free anymore?") and this was the reaction by Itachi.
@Simmant There is also a version of the document hosted as medium blogpost: itnext.io/java-is-still-free-c02aef8c9e04
Maybe that isn't blocked?
 
@geisterfurz007 thank you for such brief information buddy, in my office few things are I blocked, but I make a note of it so I can check those links from home.. and thank you effort and information :).
Stack discussion is only accessible here
well, my confusion is clear by stack discussion, and I m already using Open JDK :P
 
10:48 AM
are there Spring savies here?
imagine
 
Just minimal. I have done a tiny bit in an open source project so I doubt I can help
 
public class Foo {
  @Value("${deez.piwwum}")
  private String lorem;

  private final Bar bar;

  public Foo() {
    // construct Bar with lorem
  }
}
that is not possible because the values are not read in
I can use InitializingBean with afterPropertiesSet for that
but that does mix with the final attribute :|
 
@KarelG try injecting on a constructor
then redirecting using (this())
 
Ah Wietoll to the rescue :)
 
10:54 AM
@Inject // or something
public MyClass(String name) // possibly even private?
{
	this(name, new Bar(name));
}

public MyClass(String name, Bar bar)
{
	this.name = name;
	this.bar = bar;
}
 
perfect. I do not need that @inject at constructor tho
just
 
Assert.that(lines < 2)
 
  public Foo(@Value("${deez.piwwum}") String lorem) {
    // construct Bar with lorem
  }
 
Inject at constructor is much better
or that
I havent used it in a while
:D
 
newbie in Spring
 
10:55 AM
> @Autowired
thats the one
 
There also seems to be @PostConstruct which annotates a method that will be called when your value is set but I think that up there is cleaner
 
AutoWiring constructors was the savior for kotlin
 
@Wietlol not required as well :P
 
where in Java, you often want to have mutable, nullable fields
in Kotlin, you want immutable, non-nullable fields
which mean... that... you cannot just have code that doesnt initialize your fields
hence autowiring the constructor keeps all your code nice
 
Please help me when I got upload an image with its name ,user id and groupdescription it is not uploading
i am getting 200 ok as respone
but file couldnt seeen on server
when uploading image only then it get on server
Is there any boundary issue
is there any problem in setting boundary as hardcode
like ---WebKitFormBoundary7MA4YWxkTrZu0gW
Please help me
 
11:10 AM
Good afternoon!
When implementing deep copy , is the new keyword what actually makes it?
As in, would the following be considered a deep copy or just a weird copy?
err wait
that was the wrong way around, nvm
 
Calming because I was starting to get rather confused on that one :D
@ItachiUchiha The document you once posted (by the Java champions) was all about the JDK and its updates and support. What about the JRE? Does one need licenses for that as well, will there be prepacked binaries/installers or would you have to use the JRE included in the JDK and distribute that in the company?
 
Feels like a stupid question, but how do you implement deep copy on a class that doesn't have any objects but only basic properties? (example incoming)
public class MyClass {
         private final int value;

         public MyClass(int value) {
                  this.value = value;
         }
}
For example, on that?
I mean, there's no object to perform deep copy on, except for this
You can't, can you
 
11:28 AM
public MyClass clone() {
    return new MyClass(this.value);
}
In that case deep copy == copy I guess.
 
Need a copy constructor though
Otherwise it would be, in fact, as you say
 
or make a public method called deepCopy instead if overwriting clone :)
 
public MyClass(MyClass otherMyClass) {
    this.value = otherMyClass.value;
}
Works as well with constructors
 
So, deep copy ctors in this are just.. ctors?
 
In case you mean constructors with ctors, I guess so? Constructors are always constructors no matter what you do with them.
Hey Anders, btw :)
 
11:36 AM
Yeah
Alright. Thanks! :D
 
hey geister :)
you good?
phone queue @ no 19 with my bank
fucking phone queue
hire more staff!
 
Procrastinating! So 50% good, 50% worried about what happens if I am not productive :P Also gotta get ready for college. Byeee! And good luck in the phone queue ;)
 
11:51 AM
posted on September 26, 2018

archive - contact - sexy exciting merchandise - search - about ← previousSeptember 26th, 2018nextSeptember 26th, 2018: HOW TO INVENT EVERYTHING IS OUT NOW, aaaahhhhh!!– Ryan

 
@Xariez you could ofcourse... use... rEfLeCtIoN
 
Hm
 
deepCopy: foreach field, if primitive, copy value, if array, copy value, else deepCopy
 
Yeah, I guess that's one way
 
this is one way
 
11:57 AM
god dammit
 
Female athletes in high school and college tend to suffer from concussions at a higher rate than their male counterparts. (source)
 
I declare sexism
I want an equal amount of concussions for every athlete in highschool or college.
 
either highschool or college
ok
 
not either or, just or... You're a programmer, you should know what or does
 
> I want ((an equal amount of concussions for every athlete in highschool) or (an equal amount of concussions for every athlete in college)).
I know exactly what you said
 
12:07 PM
I want (an equal amount of concussions for every (athlete in (highschool or college.)))
 
ok
 
an equal amount of concussions for every athlete who's within the merge of (highschool and college) --> athlete in highschool || athlete in college
 
always remember operator precedence
and inferred values
 
stop making me google words
My Eclipsuh just crashed.
luv it
 
> the occasional crashes are not even the worst part
 
12:18 PM
/rap
 
/wytyb
 
/lol
 
/wytyb
 
12:21 PM
give up Simmant, just give up.
 
/never
 
/stahp
 
When looping through Class.getFields() , and later printing it out as item.toString() where item is the current field, is there a way of excluding the namespace?
As in, making java.time.LocalDate just be LocalDate ?
 
/javadoc Class
Why would I want the second one?
1
 
lol
 
What is the type of item?
Field?
 
12:31 PM
Yeah
So I might have found a way if we just take the "parts" of the field that there is, getType, getName, etc
But .getModifiers() returns an Integer, not string, so there must be some converter somewhere
 
hey babes
sexy ladies and gentlemen
 
Never been called that before
 
/javadoc Modifier#toString Xariez
 
my little shnookums
 
hey @Zoe whats up? :P
 
12:32 PM
@Xariez just reply with "hi darling" with a low beardy voice
 
lol @KarelG
Yeah, I JUST found that myself as well xD
But thanks!
 
/javadoc Class
Why would I want the second one?
 
@Wietlol do you ever get that feeling of deja vu?
 
Zoe
12:34 PM
@Simmant fastest gun in the west-ing. How 'bout you?
 
@geisterfurz007 nope, only when im in the matrix
 
Are you not right now?
Does that mean I am neither?
Do you even exist?
 
Zoe
@geisterfurz007 But if he doesn't exist, how can he talk to you right now?
 
Because he is just a simulation
 
@Zoe ohh okk, I'm just chilling listening few rap songs.
 
Zoe
12:36 PM
@geisterfurz007 but is that simulation real?
 
Pf! You are just the bad part of my brain trying to get me insane! Go away simulation!
 
@Wietlol how second can be one ??
 
oof ouch
owwie
 
Zoe
@geisterfurz007 What if your brain is just a simulation? And/or the feelings are just a simulation?
 
Does someone of you have any experience with the development and distribution of modular Java applications? I would like to develop an application that I can sell in the basic version and extend with individual extensions, which I sell separately.
 
12:44 PM
@DragonHawk 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
 
owwie hey @Zoe ..
 
Zoe
@Simmant o/
 
Red Bull for breakfast ftw!
 
Zoe
oof
 
oof ouch owwie
my back is all fucky again, gotta toss that heating pad on it
 
12:46 PM
you're old
 
I know dude
super old
ancient
 
lol
 
I'm gunna be a hurtin' old man
So many injuries throughout my life so far lol
 
I'm lucky... when I get old I won't remember most of it
 
Zoe
@ballBreaker Hey, unrelated, you know who made the stone henge, right? :p
 
12:47 PM
so all that bad shit is like water off a duck's back
 
haha
The ole' Alz, dementia, or seizures erasing your memory?
 
seizure
 
@Zoe mmmmm
Pagans?
 
I am having seizures once a month now... Just gave up my driving privileges and probably getting ready to sell my car
but I am betting I have already told you all this stuff
 
Yeah, yesterday
 
12:50 PM
lol
 
USM
Good morn
 
user8622974
Good morn
 
felt familiar
 
USM
any PubG player
 
baha
@USM sry, only fork knife for me
 
USM
12:52 PM
fork PubG
 

« first day (2895 days earlier)      last day (2045 days later) »