« first day (2743 days earlier)      last day (2422 days later) » 

03:58
Hello, I am new here and I would like to ask about JAX-RS web service. I have created a web dynamic project with jsp. The thing is after I build my resources, I am now adding a web client in the Controller folder but something in head is telling me that may not be the right thing. As I don't have anyone helping me in studying programming, I am relying on forums for help.
posted on April 27, 2018

archive - contact - sexy exciting merchandise - search - about ← previousApril 27th, 2018nextApril 27th, 2018: I am in ALASKA at the Alaska Robotics Mini-Con! If you're in Juneau I 100% expect to see you there because it's AMAZING and my favourite event all year. Let's do it!!– Ryan

04:22
morning
@Feeds love me some good puns
Zoe
Zoe
04:57
Morning
 
1 hour later…
06:15
morning
 
1 hour later…
Zoe
Zoe
07:20
@ArifNoumanKhan morning
07:53
morn
Zoe
Zoe
08:04
Morn @wonderb0lt
Zoe
Zoe
How's life?
08:15
moin
Moin Moin Brudi
@Zoe Another stressful day, and then 5 days of rest :)
Zoe
Zoe
08:42
@wonderb0lt long weekend?
@Zoe Yup. May day is a federal holiday in Germany and I'm taking Monday off. After that it's to the company retreat for learning :3
Zoe
Zoe
Tuesday next week is a holiday here :D Lucky you with 5 days off though ^^
08:56
:)
Zoe
Zoe
:)
09:10
If I have a class Pair that has public final static Comparator<Pair> ORIGINAL = new Comparator<Pair>()
why Collections.sort(pairs, Pair.ORIGINAL); doesn't work?
Isn't Comparator an interface?
it is
I'm going to say it doesn't work because pairs is not defined
09:27
the second argument is the problem ,in console I get method java.util.Collections.<T>sort(java.util.List<T>) is not applicable (cannot infer type-variable(s) T (actual and formal argument lists differ in length)) method java.util.Collections.<T>sort(java.util.List<T>,java.util.Comparator<? super T>) is not applicable (cannot infer type-variable(s) T (argument mismatch; com.company.Pair[] cannot be converted to java.util.List<T>))
It sounds like you're trying to pass an array to Collections.sort
> argument mismatch; com.company.Pair[] cannot be converted to java.util.List<T>
Thanks,I thought it can accept arrays too
USM
USM
09:44
Any body used Mockito.when( and thenReturn for ResponseEntity
hi guys
guys, I wonder if there is anyway to force someone that implements an interface to implement toString() method too or not.
any idea?
Zoe
Zoe
Add toString in the interface?
did not work
because toString() is Object class function, adding to interface has no effect...
I think compile gets Object`s toString() as implementation... <.<
 
1 hour later…
11:51
Does anyone know what to give as the first parameter in this method ?
ActivityCompat.requestPermissions(this, new String[] {Manifest.permission.CAMERA}, 1);
Because Android studio does not like this as a parameter and everywhere i see examples with that parameter given
Zoe
Zoe
@Shago This is not an Android room. Please take your question to a room dedicated to Android. If you came here because you don't have access to the Android room (room 15), remember that there are other rooms too with Android as the topic.
12:11
@Zoe :p
Zoe
Zoe
Hey @Arif :D
whats up @Zoe
Zoe
Zoe
Not much. Drawing a bit again :D
lol :D thats great
whats this animation for ?
Zoe
Zoe
Just for fun :D
12:18
:D great ... what about your game development
Zoe
Zoe
Out of ideas for now. Working on an app though
Zoe
Zoe
It's just a notepad
following a course or something
Zoe
Zoe
Nope
I just haven't made an app in ages
12:28
good good
13:06
Happy Friday, Jaba!
Zoe
Zoe
Happy Friday, @Michael!
Hey @Zoe!
13:21
@Michael happy friday :p you looks happy today
@ArifNoumanKhan Yes because it's Friday. \o/
hahaha how are ya
Good, you?
i m fine ..
13:34
Uh oh. The infamous "two dots".
Not a period. Not an ellipsis.
Hi all
Zoe
Zoe
14:01
@Sayros hiya
Hello i'm trying to use a computation of a completablefuture like
CompletableFuture<List<MyObject>> request = requestion(foo()).thenApply(mylist -> myList.forEach(element -> privateObject.populate(element)));
i got the error no instance of type variable u exists so that void conforms to u
why ?
14:17
Can't say from what you posted... try to create a minimal demo that reproduces your problem and open a question...
how do you tell that 2 arraylist<Integer> with different number of values are the same?
Zoe
Zoe
Two int lists with a different number of values aren't the same
return false;
Lists with a different amount of items are not the same
Zoe
Zoe
because [1, 2, 3, 4, 5] != [1, 2, 3, 4, 5, 6]
I know but some lists are also [1 1] and [2 2]
some are with different number of values ,some with the same
Zoe
Zoe
14:19
They're not the same either
because a[0] != b[0]
these are not the same either besauce 1 != 2
yeah...
If you want to check if two lists contain the same values in different amounts, then convert them to sets and compare these
sets are sorted
they aren't
TreeSets are sorted but that's a special case
14:31
tried with public static boolean same(List<Integer> list1, List<Integer> list2){
if (list1.size() != list2.size())
return false;
List<Integer> temp = new ArrayList<Integer>(list1);
temp.removeAll(list2);
return temp.size() == 0;
}
for the same number of elements arraylists
but for some reason it always returns false
"some reason" beeing list1.size() not beeing equal to list2.size() due to a different amount of items in those lists...
posted on April 27, 2018 by CommitStrip

So... if Kotlin and Java are separate languages, then why do I see so many Kotlin questions tagged with [java]? Is that bad?
You can mix both languages... Maybe that confuses users...
well, it targets the JVM-- or it Can-- but surely you will only be using one or the other in a given file; am I right?
Zoe
Zoe
14:40
@PatrickParker they're not separate languages
Like to the extent Java and JavaScript or Java and C# is; the syntax is one thing, yes, but they can share a codebase
You can call Kotlin from Java and Java from Kotlin without using something like the mess you find in JNI
The reason so many Kotlin questions are also tagged java is because there are many cases where the question either asks about something related to Java/Kotlin interaction, or that contain Java both java and Kotlin code
@Nicktar worked from beginning ,an if clause from above didn't let me see it
thanks
I am pretty skeptical about that answer you have just given @Zoe: "they're not separate languages" and for the questions I am seeing, the part relevant to the question doesn't span multiple files.
My gut feeling is that when dealing with one file your question should be tagged only with the programming language contained in that file. Kotlin contains syntax that is not valid in Java, and I assume the converse is also.
Zoe
Zoe
The point is, the reason they can be tagged with both is because they share the SDK
@Zoe o/
Zoe
Zoe
They're not the same in syntax, and that way they're separate. But since Kotlin compiles to JVM bytecode, it's not as "bad" as with C/C++: they actually share the SDK without making a ton of reflection calls
14:51
that seems like a poor reason to me
Zoe
Zoe
The java tag is only valid assuming it's directly related to Java though. Just like an IDE tag is only valid if the question is about the IDE. Meaning you can have questions that are tagged with both validly
thats because most of people are beginner and with less knowledge, and especially when they do not know between the deffirence between language and VMs (like JVM)
@O.Rares Your code returns true if list1 is empty regardless of the contents of list2 and in general only checks if list2 contains every item (list2 may contain additional items).
in fact, its not a question to ask why they tagged JAVA, because the reason is clear
they are just beginer and they do not know the difference
@Nicktar it does a good job,but the problem is that [1 3 3 1] is the same as [1 1 3 3]
..
14:58
@O.Rares it's just wrong... because it states that [] is the same as [1,2,3,4,5,6,7,8,9] but I'm out
Zoe
Zoe
@Sayros Hold on
50
Q: Accessing Kotlin extension functions from Java

LovisIs it possible to access extension functions from Java code? I defined the extension function in a Kotlin file. package com.test.extensions import com.test.model.MyModel /** * */ public fun MyModel.bar(): Int { return this.name.length() } Where MyModel is a (generated) java class. Now...

That ^ for an instance is tagged both Kotlin and Java, because it's a question about calling Kotlin extension functions from Java. Both languages are actively involved and the post is tagged correctly
The VM is the binder between the two languages which is why it's even sensible tagging it with both.
Here is the kind of question I am talking about: stackoverflow.com/questions/50063751/…
The title says "Java" and it has the tag [java], but the code contains invalid java syntax and it is also tagged [kotlin]
Zoe
Zoe
Yeah, that's just ignorance from OP
@Nicktar I done it with arrays at the end
Judging by some of those questions I wouldn't be surprised if it is their first programming language. Kotlin seems like a strange choice for a beginner to start learning how to program.
Zoe
Zoe
15:11
I think it's valid Java though
Saying "I think" because I need to validate that
you can write int[] data = {0, 0, 0}; or data = new int[]{0,0,0}; in Java... but definitely not [0,0,0] or without semicolon. even data = {0, 0, 0}; wouldn't work, since it's not a declaration.
Zoe
Zoe
Yeah, just saw
Btw, that's invalid in Kotlin too
The only place you get that exact syntax is in Python
Probable answer: it's either python os psuedocode
15:33
Zoe
Zoe
lmfao
 
1 hour later…
16:49
> Could not find or load main class
I have main cluss :|
Zoe
Zoe
//lmgtfy intellij could not find or load main class
Aw, right
You get the idea
<insert google link here>
RIP bot
Zoe
Zoe
No, I just had to restart my computer because the Wacom driver stopped responding. Didn't boot the bot afterwards
Not hosting bot on cloud :|
I'm using maven.. I had to compile before run.. :|
Zoe
Zoe
Nope. Can't afford
Gonna get a raspberry pi eventually, that'll at least increase the uptime
16:57
Steal it from some computer lab.. :|
Now I'm getting another error..
> Could not find any META-INF/persistence.xml
Zoe
Zoe
@cswl No
@cswl Do you even google?
Run File doesnt work.. I need to compile the JAR and launch from there :|
Zoe
Zoe
lol
17:30
hi there
Zoe
Zoe
Hiya @0x1C1B
17:48
hello every one
@Michael lets make it . period :p
 
1 hour later…
19:02
hi
Zoe
Zoe
Hiya
19:22
can you help me? i have a csv and I need to import it in a sqlite table with java, what i need to do? with mysql i used the load data infile, but sqlite gives me syntax error.
 
1 hour later…
20:24
Can you help me?
hi @Alisha
Zoe
Zoe
20:36
//alive
user8622974
@Zoe I'm pretty sure I am.
Zoe
Zoe
Phew, almost worried the Twitch integration fried the other sites ^^'
@Zoe what are @Alisha commands?
user8622974
¯\_(ツ)_/¯
Zoe
Zoe
XD
Ok, that's a bug :D
cough bugs aside...
do //help
20:38
//alive
user8622974
@Gabriel14 I'm pretty sure I am.
OH MY GOD
IT'S FANTASTIC
//waffles
user8622974
53
Q: No more waffles?

Shadow Wizardwaffles. Ordinary member? He's no longer in the Stack Exchange team page nor in the moderators list of any site. He was part of the team from almost the beginning, doesn't he deserve a big farewell party like Jeff had? Looks like he stepped down willingly couple of weeks ago - so goodbye, and t...

//pizza
user8622974
@Gabriel14 Maybe you should consider looking up the manual
20:39
//lol
user8622974
@Gabriel14 Maybe you should consider looking up the manual
//manual
user8622974
@Gabriel14 Maybe you should consider looking up the manual
-_-
//help
user8622974
###################### Help ######################

==================== Commands
//about          | Let me tell you a little about myself...
//alive          | Used to check if the bot is working
//appul          | Apples.
//ban            | Bans a user from using the bot. Only usable by hardcoded bot admins
//ban-room       | Blacklists a room
//blame          | No description was supplied for this command
//declare        | Changes a commands status. Only commands available on the site can be edited
20:40
//eval 5+2
user8622974
@Gabriel14 7
wow
//about
user8622974
@Gabriel14 Hiya! I'm Alisha, a chatbot designed by Olivia. I'm open-source and the code is available on Github. Running version 1.4.2
Zoe
Zoe
20:51
@Gabriel14 eval calls a JS eval engine. So:
//eval function w(input){return input*input;}w(1000);
user8622974
@Zoe 1000000.0
user8622974
@Gabriel14 You have to tell me who to lick
//lick @Zoe
user8622974
@Gabriel14 Licks @Zoe. Tastes like a cat!
20:55
@Zoe What kind of JS engine is that?
No JS engine I know by default formats numbers with 1 digit after the dot
21:07
@MadaraUchiha i believe it is the Nashorn engine
Zoe
Zoe
^
Should have guessed
Zoe
Zoe
Javax ScriptEngine

« first day (2743 days earlier)      last day (2422 days later) »