« first day (2711 days earlier)      last day (2238 days later) » 
00:00 - 15:0015:00 - 00:00

12:51 AM
morning
 
 
2 hours later…
3:04 AM
@Michael ^ see above; although it's the same ip as it used to have, so just look it up through your dns lookup table
 
morning
 
4:00 AM
"Extend beyond your preconceived limits!" -Lorii Myers (source)
 
4:53 AM
wheezes
 
5:50 AM
extends beyond his limits
 
6:30 AM
extends beyond his limits by making a program that doesn't need hardware to run
 
makes a "mind blown" gesture
 
7:06 AM
How would you approach this problem?
 
Zoe
Morning
 
@Zoe o/
 
Zoe
@Neil \o
 
@Zoe @Neil \o/
 
@wonderb0lt \o @Neil o/
 
Zoe
7:14 AM
@wonderb0lt hey honey!
\ @wonderb0lt /@Neil\
 
Hello.. I am new to multi thread.. how to get value from Runnable
 
@cswl use Future, not Runnable
 
RunnableFuture ?
 
that'd do it
RunnableFuture is just a Runnable Future :)
 
Zoe
@Neil For a better future, vote Future!
 
7:18 AM
Future is running for office. Future 2020!
 
Zoe
Rainbow Dash 2020! All though, I'd rather vote for Runnable over Future... ;P
 
don't like futures do ya?
you should. they're the future afterall
 
Zoe
I prefer to live in the present
 
@Neil In Java? I'll pass.
 
Zoe
Or the past f necessary
 
7:24 AM
Maybe in Java 14 or so when Java finally gets something close to async/await
 
Zoe
The python async system is awful
 
Even PHP is getting language level async support, let that sink in for a moment
 
wow
 
java already gives so much control over threads that it would be complicated quite a bit if there were an async/await keyword
i mean, I can't imagine what would happen if an async method called a synchronous method
you'd have to wrap your head around such situations
 
How do you handle errors in async/await :|
 
7:42 AM
@cswl The computer catches fire
Now that you mention it, maybe throwing an exception would have been better suited..
 
@JennaSloan Oh.. oh god. Oh god no!
 
Zoe
@JennaSloan I got a version of that at 105 chars :>
 
Recursive method + infinite loop + multithreading = disaster
 
Zoe
class M{public static void main(String[]a){for(;;)try{new Thread(()->main(a)).start();}catch(Error e){}}}
 
7:52 AM
it was easier in C
while(true) fork();
parent and child thread would then continue the loop, doubling the number of threads exponentially
 
10 GOTO 10
 
Java developers dont need to do error handling.. just let main throws Exception
 
10 HOME
20 SWEET
30 GOTO 10
 
Zoe
Kotlin is at 74: fun main(a:Array<String>){while(true)try{Thread{main(a)}}catch(e:Error){}}
 
computer.explode();
 
Zoe
7:55 AM
That'd work too :D
 
@Zoe remove try-catch?
or you really want to catch it?
 
gotta catch'em all
 
But then the program will crash if Thread is interrupted
 
Zoe
^
 
Is Error like Exception or like Throwable?
 
Zoe
7:59 AM
@Zoe Forgot to call start XD fun main(a:Array<String>){while(true)try{Thread{main(a)}.start()}catch(e:Error){}} - 82
 
Why would you mention yourself..
That's like
 
Zoe
@Zoe Because I can :3
 
Does SO autocomplete your own name?
 
The retrospective equivalent of "because I told you so"
 
It doesn't
 
Zoe
8:01 AM
Nope
But you can manually copy the message ID into the chatbot
@Neil Yup :D
 
Press @ then hit a key on the keyboard randomly.. mention the first user that comes
 
Zoe
No
 
Cannot comphrehend a generic declaration even after reading two whole tutorials on it.. halp :|
 
8:43 AM
@cswl the generic declaration doesn't do anything except say "lets declare type T"
You can then use T in the place of an actual type anywhere in your class
you can't do much with it though unless you provide constraints, like T extends Collection
what in particular don't you understand about generics?
 
public class Main {

    public class A {
        A() {
            System.out.println("A");
        }

        A(int x) {
            System.out.println(x);
        }
    }

    public class B {
        A a[] = new A[5];

        B() {
            System.out.println("B");
            A a = new A(3);
        }
    }

    public class C {
       // A a;
        //B b;

       C() {
           // b = new B();
            System.out.println("C");
        }

    }

    public static void main(String[] args) {
 
@MuhamedCicak Because C doesn't have static keyword
It means an instance of C must be associated with an instance of Main class
probably not what you meant
you can fix it by putting C in its own java file C.java
or by adding static keyword
 
Zoe
@MuhamedCicak Please use a paste site for long code snippets.
 
@MuhamedCicak TLDR
 
@Neil Im quite new to Java, and don't really understand the logic behind it, but thanks, adding static helped, it did save me some time.
@Zoe Thanks for the tip
 
8:59 AM
You're welcome
 
1409
Q: Java inner class and static nested class

OmnipotentWhat is the main difference between an inner class and a static nested class in Java? Does design / implementation play a role in choosing one of these?

 
<T extends Comparable<? super T>> T m(Collection<? extends T> a)
 
@cswl T extends Comparable<T>
it's only slightly more complicated than this
? super T means it can't be T
probably a mistake.. I almost never use super
 
It's a recursive bound.. :|
 
@cswl why recursive?
<T extends Comparable<? super T>> is defining the constraints of T
everything else is the method signature like any other
? extends T is something you see often
 
9:06 AM
class Foo extends Collection<Foo>{}
 
It means it doesn't have to be Collection<Set>.. it can be also Collection<HashSet> and work too
 
@wdika 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
 
There should be a program which explains this stuff :|
 
Zoe
@cswl there is. It's called a "browser" and you use it to look up documentation
 
Hello, can someone tell me what am doing wrong here? Thanks. paste.ofcode.org/HUCUPsJ9SSLXMwCVMyW4TW
 
Zoe
9:13 AM
use .split("|") instead
the "\\| " condition isn't met
 
It should be "\\|"
 
Zoe
Does split use regex?
apparently
then yeah, "\\|"
 
When I use "|" I get nothing and with \\|I also get the same result
 
/javadoc String#split
 
Which one do you mean? (type the number)
1. java.lang.String#split(String, int)
2. java.lang.String#split(String)
 
9:18 AM
2
 
Zoe
@wdika what type is currentFaceList?
 
It's an ArrayList
 
Hi! Can you help me with BPEL in Eclipse?
 
9:29 AM
@Zoe Let me check this out
 
split is nice, but in ideal situations, unless you're parsing a file, you shouldn't ever need it
 
Zoe
yeah
 
if data is separate and you combine it, you waste time splitting it up again
 
Zoe
really depends on how it's stored though
 
Morn
 
Zoe
9:33 AM
but there are more efficient ways of doing it though.
 
database shouldn't store it in a list format either really
not unless there is support for that sort of thing
so really, the only context is for file loading/parsing
 
Zoe
Yeah
 
Zoe
I'd say the main goal should be creating effective storage for the data instead of creating effective parsing (though effective parsing is important too, effective file format would potentially mean less time needed to parse it)
@wdika you split by | surrounded by spaces
there are no places where | is surrounded by spaces
So nothing splits
 
Yes because if I use "\\|" it gives me the "vertices: 3 : " which I don't need it.
 
9:37 AM
@Zoe yeah, should be somewhat straightforward to read and parse whenever possible
 
With " | " I get "(
4.070061,10.501405,4.696818|0.385493,1.138323,-0.236668|null
)". So now I want to split the sets and get the first set of three points and the second, separately.
 
@wdika So don't use what you don't need
 
Zoe
^
 
You have to split to be able to get to that point
 
Zoe
@Neil the easier it is to parse, the less time it'll take
 
9:40 AM
@Neil Haha yeah exactly! Just got confused at this point over the whole project. Thanks!
 
\\| is correct here
@Zoe good rule of thumb is if you can parse it without using regular expressions, do so :P
property files can be parsed fairly effectively, and I don't think they use regular expressions
but lacking that, if you need to use a regular expression 1044 characters long *cough@JennaSloan cough*, maybe there is something that needs to be reworked
 
Zoe
^
 
@Neil What?
 
@JennaSloan What? Just mentioning that some people use regular expressions 1044 characters long. You wouldn't know anyone who does that, would you?
 
> MutableMap<Int, Pair<String, MutableCollection<Pair<Any, Script>>>>
welcome to hell, you earned it
 
Zoe
9:46 AM
What. The. Hell.
What would you possibly need that many pairs for?
 
not caring about creating classes i think
the string and collection are paired because they belong together, just like the Any and Script
on a side note, the Any is always treated like a Map<*, *>
 
@Neil Nope, don't know anybody that has a regex 1044 characters long, but I have one that's 1528 characters long, does that count?
4
 
Zoe
You deserve a star just for taking the time to write a regex that's 1528 chars long XD
 
sneezes
 
Books containing the longest regular expressions ever written by @JennaSloan would contain only one :P
 
Zoe
9:54 AM
How long can a regex become before it causes <[^>] irl?
<insert image here once imgur loads...>
 
Why assign true() to output in BPEL does not work ?
I get a selection failure error
 
Zoe
@Neil There's an even longer regex too, I gotta go find it first (not made by Jenna though, but it's extremely long)
 
10:10 AM
@Zoe proxy server blocks that, but it's probably for the best
the one for e-mail address is already incredibly complex
I'd have thought that'd be somewhat straightforward
 
Zoe
I guess I'll mirror it for you:
and it triggers the HTML regex parsing easter egg XD
 
@Zoe projectile vomiting
 
Zoe
lol
 
I see why it's so long.. it allows the possibility of characters from 0 to 31
and that rule is added pretty much everywhere
 
10:43 AM
Hi! I am getting this error when deploying apache with web services:
"[ERROR] The servicioAlmacenCentral service, which is not valid, caused A ClassNotFoundException error occurred in loading the message receiver org.example.www.servicioalmacencentral.ServicioAlmacenCentralMessageReceiverInOut".
Before that web service was working correctly. I have touched nothing.
 
Zoe
How many times are you going to ask the same question in chat?
My count is at 4
 
This question is first time I think
at least today
I don't know if other day I put this question
But before I was asking about BPEL
 
Zoe
17 hours ago, by Quico Llinares Llorens
[ERROR] The servicioAlmacenCentral service, which is not valid, caused A ClassNotFoundException error occurred in loading the message receiver org.example.www.servicioalmacencentral.ServicioAlmacenCentralMessageReceiverInOut
@QuicoLlinaresLlorens then just 2
 
@Zoe That is yesterday
no?
But ok I won't ask more times
Where do you suggest me to ask this?
 
Zoe
since you're not getting an answer here, try the main site
 
10:47 AM
I searched on the internet and no solution found
 
Zoe
@QuicoLlinaresLlorens That's not what I meant :) But since you've already asked here already and not gotten an answer, the main site is a better place to ask
 
There are similar questions on main site not answered
 
Zoe
obviously make sure it's not a dupe and LQ and all of that
@QuicoLlinaresLlorens then it's not a dupe. Unanswered questions aren't considered duplicates (unless it's posted by the same person)
 
11:31 AM
Does tomcat not have an manager :|
 
@cswl sort of
it has a manager once the service is up
but you have to start the service first
 
i also need an updater... so i can check for updates :|
 
updater for what? for your program or for tomcat?
 
tomcat.. so I can use 8.5.x automatically
 
@cswl well there might be a way using maven
but generally you don't want tomcat to auto-update
it could break your application
 
11:43 AM
I mean the patch version... security update.. etc
Or do i have to manually check the website..?
 
12:20 PM
@cswl well I mean in what context?
In a professional context, it's probably not your job to deal with that unless it's your computer
You simply communicate it to the owner or the systems administrator
If they know tomcat is being used, they can check and update accordingly
 
12:32 PM
Hi
 
Zoe
Hiya
 
@Zoe ...
Please use a paste site for long code snippets.
 
Zoe
@geisterfurz007 Hm?
oh, lol. Just trash it
 
Yeah sure I am your cleanup guy ._.
1 message moved to Trash can
 
Zoe
I can't move it, so yeah :p
 
12:36 PM
I have just cloned a git repository with netbeans. It's a java/maven project. When I open the project in netbeans I only see Dependecies and Project Files folders, but I can not see the src folder (the one which contains the java code). I see the all folders and files where correctly cloned in the windows folder, but netbeans doesn't show them. Why??
 
Zoe
Because Netbeans sucks?
 
Thank you.
 
@geisterfurz007 you are Zoe's trash can :D
 
You are a trash can Wietlol. You are.
 
Zoe
lmfao
 
12:39 PM
nah, im not
im just the trash, no can involved
you see me for what I am
 
Fine with me.
 
with you guys/girls, you just hide your trash behind a can
 
Zoe
As big as the trash can is, we're forced to... ;P
 
@ErroreFatale You could try refreshing the project in Netbeans or if that doesn't help look for an option that says "Clear cache and restart" and hope for the best. I never used Netbeans so I have never experienced that but that would be what I'd do in other IDE's
 
user9552093
12:54 PM
Hi
 
@Shadowclaw 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
 
Hello, @Shadowclaw! Come on down to the prize is right!
 
user9552093
Show me item #1!
 
@Shadowclaw It's a new car! This plymouth towncar is the perfect vehicle for your whole family! It's yours, if the prize is right!
 
user9552093
Is it... 15,999$?
 
1:01 PM
16 dollars? Whoa, you're way off... o_o
 
user9552093
Sorry, used to comma as the decimal format ^^'
 
I know, they do that in Italy too :P
just messing with ya
 
user9552093
:)
 
Zoe
@Neil Sponsored by Jaba(tm)!
 
@Neil isnt it the deal of the show to give the prize to the person who has guessed highest but still lower than the actual price?
that makes 16 dollars an extremely good choice
 
1:05 PM
@Wietlol Well I guess 17 dollars, so I win!
 
user9552093
Show me item #2!
 
Gameshow over. I'm leaving with mah car.. *drives away*
 
Zoe
lol
 
i'm sure some people have guessed 1 dollar for the price of a car, but that basically means they think everyone else guessed too high
 
user9552093
So the price is 0$? I don't understand that show ^^'
 
1:11 PM
say if person A says 20k for the car, and person B says 19k for the car
If the actual price is 18k, person A and B lose
if you said 1 dollar, you're the "highest" without going over
 
if everyone loses, the round is repeated and they are told that they were all too high
 
user9552093
Sounds kind of... stupid
 
that is why QI is a much nicer show
 
Zoe
Happy Monday, @Michael!
 
they had crazy minigames at the end of the prize is right
 
user9552093
1:17 PM
Whats QI?
 
QI is amazing
sorry, amazing is QI
 
@Zoe grumbles incoherently
 
Zoe
It is!
It's easter :D
Got all week off :>
 
I only get Friday off.
 
hello
 
Zoe
1:25 PM
@Nathan777 Hiya
 
hi
 
Zoe
@Michael aren't there more days?
 
I just had a quick question. If you're creating a program with multiple menus and pages, do you need to create a new class for each one? Meaning with the super() constructor and buttons
 
Nope
 
Is that what you're supposed to do though?
 
Zoe
1:31 PM
You can do it any way you want, but you asked do I need to create a new class for each one? and the answer is no - you don't have to
you can use a single class for a lot of things
 
I'm going to look at some source code programs and see how others have done it.
I'm creating my first GUI program, and trying to figure the best way to go about it.
 
 
2:04 PM
I have installed eclipse and cloned the repo git. Eclipse can't find any class. Even standard java classes as InputStream can not be resolved according to the intellisense. What do I have to do?
 
@Nathan777 You should be able to create the menus without doing anything special
unless your objective is to make a menu that doesn't conform like using images or whatnot
 
@Feeds flying stuff *-*
 
I found a lot of source codes online, but I cannot figure out how to run the programs for any of them to see how they work. I try putting the files in Eclipse and it doesn't work.
 
user9552093
Eclipse sucks though.
 
Zoe
2:13 PM
It's not that bad @Shadowclaw
 
@Nathan777 learning to read the errors and understand them is almost as much of programming as the actual programming itself
 
user9552093
@Zoe Aside the buggy UI, constant crashing, horrible spell checker, type change of projects and failing project loads?
 
I don't know what the errors are, because I can't even get to the errors
 
you need to take the time to try to fix them on your own. It gets easier with time, but you have to start somewhere
 
@Feeds "common in Europe" ?!?
 
2:16 PM
@Nathan777 give us some idea at least, what does it do that you don't expect it to do?
 
Zoe
@wonderb0lt Of course they are! You can't even go for a walk in Europe without seeing one!
 
Totes malotes
 
also, I had a crazy idea for a language
the language would define a syntax for declaring data structures
 
Zoe
@Shadowclaw I said it wasn't so bad it sucks, I never said it's perfect. And besides, IntelliJ is better :>
 
then you could implement keywords in the language given the data structure passed
like you might see typical switch (condition) { case 1: something(); case 2: somethingElse(); }
switch itself is reprogrammable
 
user9552093
2:18 PM
@Zoe I agree that IntelliJ is better.
 
probably an awful idea :)
 
I downloaded a source code off of Source Codester. I'm trying to actually run the application, but there are about a million files in it and I don't see where to open it from and it won't import them to Eclipse.
 
but switch would be a method that could be overwritten
and what follows is an equivalent syntax data structure
expected by the "new" switch
there'd have to be a way to do it without say, chanigng behavior of switch throughout the entire program
 
no projects are found to import
 
@Nathan777 in an eclipse project, you have to tell it where the source is
it can't just take a bunch of files and make it into a java program
 
2:21 PM
I downloaded the code to my desktop
 
it's typically under a subfolder src, but that may differ for you
there may also be more than one source folder
until then, eclipse treats it as just another folder with files in it
 
I wish I wasn't such an idiot at this.
sourcecodester.com/node/9871 I clicked download code on this page. I saved it to the desktop of my computer.
 
@Nathan777 nobody understands this stuff when they start off
everybody has to learn in their own way
 
I went into Eclipse, I said import the project, and then went to the desktop. Eclipse said no projects to import.
 
try import.. general.. file system
you'll import the project, but it'll treat it like a bunch of files to start
 
2:25 PM
try uninstall
ussually works
 
@Wietlol a little more respect, please
 
make me
respect is for things that deserve it
 
I imported the files, but I'm right back to where I started.
a bunch of files, no application to run
 
@Wietlol sorry, not respect. discipline. discipline please
 
whats up
 
2:31 PM
you are
 
such negativity
 
such assumidity
 
It'd be nice if when they put these source codes online, they'd give some instructions of how to actually run the program.
 
Good developers do that.
 
whats assumudity
 
2:35 PM
Yeah, I give up. There is no way to run this application. No IDE can find the project.
 
You'll have to set it up yourself
 
What exactly does that mean?
 
Look here, build.gradle, boom, pom.xml etc etc
@Nathan777 Look up how Java programs are run. Familiarize yourself with typical build tools like the ones I just mentioned (Gradle and Maven), set one of these up.
 
So you download Maven, and then it automatically detects files you have that are part of a project?
 
For starters a javac somepath and java path/to/a/Main.class may work, but mid-term you want to be familiar with a more sensible solution
No
As I said
Look up what I talked about
Then you will know how to progress. We won't spoonfeed you into having a nice project and neither will a tool be able to "just make it work"
 
2:38 PM
I don't know what it is I'm looking for. Why can't they just come up with 1 way to do this for every project that is created?
 
Different projects have different requirements
Hence they have different build systems. Some conventions (like your "source codes" being in a folder like src/ or src/main/java) are pretty much universal
 
Okay, but even if I find the file the main method is in, does that mean it will run it just by putting all the files on Eclipse?
 
Whoever provided your source code obviously omitted giving you instructions how to run their stuff. Maybe they assumed someone more experienced on the other end, or maybe they're just lazy/incompetent
No
As I said, look the stuff I told you to look up
</spoonfeeding>
 
the links you gave don't specifically say how to run a source code. That's where I'm confused. I see a ton of links there but I'm not sure how that answers my question.
 
that is a pointy spoon @wonderb0lt
some, more civilized societies, call it a fork
 
2:47 PM
@Nathan777 Well, tough shit. I guess you'll just have to learn something instead of getting the easy solution for free
jeez, this is too depressing for me. I'm out, see you tomorrow
 
bye
 
@wonderb0lt cya
 
wheezes
 
00:00 - 15:0015:00 - 00:00

« first day (2711 days earlier)      last day (2238 days later) »