« first day (2459 days earlier)      last day (2706 days later) » 

09:00
leaves :>
I did my charts thing without fxml
@Julo0sS sounds good
now I'll try (for learning & cleaning purposes) to switch
Oh you will have fun :)
no problems for declarations etc..., creating the templates is quite easy
09:01
Actually should not be that massively hard because you are still in the same framework
now the controllers stuff...
my main application will use a "main" controller, and my app "parts" (buttons, display, menu) will have their own controllers. Am I wrong with this?
@FXML private fxObjectType fxIdYouHaveSet;
^^
@Julo0sS Yes \o/
yeah, thats not about it
You are wrong :D
09:03
I'm always wrong
Each of the fxml files resembles a Scene, right?
but being wrong helps you learn
Each Scene will have a Controller
I will have a "borderpane" for main, and for example, the top part can be a menu, or something else depending on app context
@Julo0sS it is still the same scene
09:04
I will have a (or many) template(s) for the top part
yeah, but the "controller" stuff for the top part is specific to this part, right?
What you can do is create Scenes for the toppart and then set them individually as needed
Yes
so I need a "topMenuController" or "topSomethingElseController"
guys what do you think? is this a good password? "qxPWpsiXyOp6Qt5UecrvpGG4MUpFFVp1EyCyHbX8fZMp5dEp7qYMaMEchGpMSA3T"
@Wietlol Works. Now that you showed it though....
@Julo0sS For example yeah.
i cant use it though
"Your password is not yet strong enough."
09:06
In that case you would as well want to have a menu.fxml and somethingElse.fxml (or something like that) you can then link to the controller
ok for this. I use "initialize" in my controller to set up all the stuff. Now, what's actually confusing to me is : how to manage all interaction between these controllers
@Wietlol Try adding an exclamationmark in the end
doesnt work
@Wietlol lol
when I will fire action from a "top menu" button, i need for example the center item to trigger something
09:07
do I have to hold each controller instance in a main controller?
max 16 characters, if you use more, its not strong enough
@Wietlol Great concept!
its brilliant
but ussually my passwords are even better than this
they include characters like delete, backspace, enter, null, etc
@Julo0sS I think you can probably do something like component.getScene().getParent() which would return the main panel.
And then cast that to the mainController class
And hope that that works :D
09:09
I did this kind of stuff months ago... But this charts thing just messed with my brain and cant remember
You could as well have a central class where you store the instances of each controller in and access it that way
Or databases... couchDB of course...
@Wietlol the larger the base alphabet the better :D
@geisterfurz007 I agree :D
@Wietlol the way to go :D
using a securerandom to generate x length strings
09:14
How do you remember them ^^
i think i didnt miss any
i dont remember them :D
i cant even type them
that is the whole purpose
i ussually use 64 chars
So you store them somewhere?
in a couchDB for example
haha
dude :D
in cookies :D
nah, I have my own database
I need to get a beer :D
09:15
and a server running around it to connect it to
So each time you want to log in, you have to eat a cookie walks to exit
then I have an application that I log in to to load my passwords
using the google authenticator app
(no cookies)
What is the password for that google account?
Is it safe?
Or under your blanket? :D
it is hidden
but you failed the quote
So the latter
09:16
there he has an oracle db running on a blade server
no oracle
@Wietlol It was not intended to quote at all :D
you still failed
In something I did not even try?
Sounds contradictory
09:17
Gotta get productive ^^
Later
@Tavo don't throw bot-messages into Bot sandbox. Bot sandbox isn't a trash can for bot messages. Throw bot messages you don't want in this room in the trash instead (any of the trash cans, but not bot sandbox)
ye @Tavo last warning
@LunarWatcher please and thank you?
Any messages thrown in from this point will be returned
09:25
@LunarWatcher that can go both ways :)
Use the trash. Please. Thank you.
ohhh curveballs :D
what's with people's attitude?
jeez
B.A. LunarWatcher
The room description says Please refrain from throwing bot-messages in here, use the trash can instead - people still throw messages in there even though it asks people not to
09:26
Bachelor of Arts? :D
A-team?
no?
@LunarWatcher if that is the case, it's easy to write one extra word saying "please"
ahhhh B.A. Baraccus :D
finally
but I won't do it anymore, thanks for letting me know
09:27
soz I just drank a beer to chill a bit :D
Thank you for understanding
some people in SO really need to chill
hmm
its nice to get random points from answers you provided way too long ago
or we should change StackOverflow to DevelopersWithAttitude
removed to the sandbox from @Sayros? :D
09:28
B.A. Overflow?
suckstobesomepeople overflow
09:44
@motaa woah, didn't expect that :)
refering to this
there should be a "main controller" to manage the whole jfx app
@ItachiUchiha at about 2000 points I get down do a 100-300 without visually problems of false interpreting
@Julo0sS Not really, but an Application class for sure
and seems like it uses several little controllers (for each component)
there is the "customControl" component. What if there was another "customControlItem", and if the "customControl" should send data (on action) to the "customControlItem" ?
can anyone explain why we can't instantiate abstract class
09:49
@BhartiRawat 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
@FXML private CustomControl customControlController;
pretty confusing
because they're abstract... Did you Google it? ...
is anyone active here?
09:54
@BhartiRawat abstract classes cannot be instantiated
you would have to create a class that extends the abstract class
abstract classes can "miss" implementations that the extending class has to implement
if they arent implemented, your object is invalid
you could use anonymous classes, but i would suggest to make a normal class first
Please give me some appropriate reason @Wietlol
reason for what?
why you cant create objects of a contract?
objects follow a contract
they are not instances of the contract
same as how you cannot make an instqance of an interface
10:09
> for (String educateeName : allEducatees) { //exclude the first item (--Alle--)
Exclude first item my ass xD
And I wonder why I am getting exception after exception in that thing...
Never rely on comments.
Especially not those you wrote on your own...
"Redundant comments are just places to collect lies and misinformation.”
Exactly!
/javadoc Stream#forEach
@geisterfurz007 void forEach(Consumer action): Performs an action for each element of this stream. (1/3)
10:14
Is it really a good way to go? inject controllers in others? an EventBus is maybe better? Any advice on this?
I only had the cases in a way that I had each scene standaloneand nothing like your requirements :/
you have several modules in your swing app, dont you? grouping them under a "main module" will lead you to this usecase...
Not directly
Your usecase is that they are communicating between each other as well, right?
yeah, children should communicate with the main, and if needed with other children...
Well you could have a central PropertyContainer with bindings (which is what I am using now as well) that you can monitor from all over your application.
Another thing is that my components are all fixed in place from the beginning. I am not changing parts currently. Whereas you stated that you are displaying depending on needs
If you know from the beginning which part goes where you can use fx:include in the fxml file
10:22
well, I have a basic set up, but then when using app the components can change
What might work is that you have general Scene objects in the main controller and set them to the controllers throughout the application
I am unsure about how exactly one would approach that though :/
@BhartiRawat abstract is something that doesn't have a meaning in your SI (System information), for example in your company you have Engineer, Managers, Business IT, etc, So these information exist in your SI also these are persons, So automatically in your design you declare a Person class that Managers,Engineer extends to, However, there is no meaning if you you have a person in your SI , who is that person !! is it a manager ,engineer,etc.
So thats why we consider it as an abstract that means its direct intanciation has no meaning
so people need concret example to understand :(
10:44
Hey, guys, I'm trying to debug a program right now and I have an interface and I want to know what's the concrete class that implements that interface at runtime when I am debugging. I tried using .getClass() but that still returns the interface. How can I do this?
step into, easy :D
omg, can't believe I didn't think of that ):
But, still, shouldn't .getClass() give me the concrete class instead of the interface at runtime?
it doesnt "solve" my problem, but found this really interesting ;)
EventBus allows publish-subscribe-style communication between components without requiring the components to explicitly register with one another (and thus be aware of each other). It is designed exclusively to replace traditional Java in-process event distribution using explicit registration. It is not a general-purpose publish-subscribe system, nor is it intended for interprocess communication.
think I'll go for an eventBus
@JoãoPaiva .getClass() cannot return an interface
11:02
I was in a fight tit-for-tat with a great client and then the client complain to the Director of the company lol
I love to dare with customers and throw them away :D
especially when they ask a specifics cases
and what does your director think about it? :P
How "big" are the communication things?
Meaning how many communications and how many (potential) parameters can you get at maximum.
@geisterfurz007 idk, strange question though^^ why would this matter?
For example you could have a central BooleanProperty, you add a Listener to one part of your application and on button click, you could just toggle this boolean property. The other controller will notice (thanks to the listener), execute things and your communication is done
@Julo0sS I didn't see him yet, the manager said to me that they are complaining and talk to Director
11:11
lmao. I was just about to edit the message above and it said "You have less than 1 second to edit this message."
@geisterfurz007 yeah but this is "tricky"... I see it more like : any component will register to eventbus, and check for events. If the event is related to the component, then the component does something (call to a service and get data, change display, anything). If not related, then it ignores it
@Julo0sS My comment was not referring to the EventBus
Actually i have not yet checked the docs for it
we often discuss subjects like this one, but there should be a "good practice" about how doing this right?
Oh... I see that I misunderstood some of your messages above. I thought the
"it doesnt "solve" my problem, but found this really interesting ;)"
was referring to EventBus and not the article
@Julo0sS There most likely is, yeah
No clue what that is :/
Maybe Itachi knows more, but I have only done some horrible things to achieve what I needed
since it is "better" to use distinct components that, as much as possible, are not aware of others, not dependent, the use of an "eventbus" sounds good, it will be the "connector" between components...
Itachi always knows more... :P
11:17
now you got me curious
/javadoc EventBus
@geisterfurz007 com.google.common.eventbus.EventBus: Dispatches events to listeners, and provides ways for listeners to register themselves. (1/17)
@geisterfurz007 what kind of horrible things? :P
@Julo0sS Really horrible things
I had a central class (implemented by Michael) that can be found here and just threw everything in there I needed
Including the controllers
Then I could do AppContext.INSTANCE.get(MyController.class).myMethod(); to access the method
But I doubt that should be something one should do...
I actually moved on to using this central thing only if components over multiple controller classes need access.
is the problem something with the UI?
I learned from the past that having too much stuff in central reachability makes horrible code. And long one...
11:21
is it what it was meant for?
Yeah it is
But I used it excessively
@Wietlol its somehow related
In places where I did not need to do so.
hmm... then i somehow cannot help you
lol :P I'm looking for a decent way to let my components communicate between them, communicate from child -> parent, but also from child -> parent -> anotherChild,... without explicitely registering my components into each other..
11:28
Hey, guys, I was trying to make a query using the following annotation @Query("select * from Location") but the compiler throws this error <expression> or DISTINCT expected, got '*'
Isn't this sintax correct?
the syntax is correct SQL
1
A: @Query annotation is not reading native sql select * spring data

sanjeevjhaLet's do it as below example- @Query(value = "SELECT * FROM consumer WHERE lastname = :lastName LIMIT :maxRecord", nativeQuery = true) StickerProduct findWalletProduct(@Param("lastName") String lastName,@Param("maxRecord") Long maxRecord); Another way to do same instead of * : @Query(value ...

I think that should be something like your problem
> Caused by: java.lang.StackOverflowError
\o/
Finally did it!
what overflow error?
Maybe I changed the contents of a List within a Listener that was checking if the contents of the List are changing...
Actually it makes not much sense though...
Because I am sorting them once and after that it should be quite...
Have you already fixed the issue?
11:38
Nope
But I think I know why it happens
Because the objects are cloned and not changed directly
With Strings beeing immutable and a look on the sort implementation that would be my first guess
> change content of list on list content change
<-- knows how to use google improperly -.-
that sounds like a stack overflow :D
5 mins ago, by geisterfurz007
> Caused by: java.lang.StackOverflowError
yes
> change content of list on list content change
duh
Ah you were referring to that
@ItachiUchiha Only idea I am having right now is to set a boolean flag if the contents are sorted that will cause the listener to return... Or are there cleaner ways to do it?
@geisterfurz007 Not sure, if I understand the problem, but if it solves go ahead :)
11:47
@geisterfurz007 can I see simple scenario in code?
@ItachiUchiha Well I have an ObjectProperty<ObservableList<String>> that I have bound to a few components in my application. I want to have the List sorted when I am inserting/editting values. So I thought I would add a ListChangeListener on the Lists contained in the ObjectProperty and sort the list when something changes. However the sort method of List appears to change all items in the list, triggering the sorting over and over again.
@Wietlol this.sections.get().addListener((ListChangeListener<? super String>) observable -> this.sections.getValue().sort(String::compareTo));
Is teh codez
pls dont paste code in chat
Hello there Tavo 2.0 ^^
where is @Tavo where you need him?
Sleeping around this time I guess
11:50
so you have a List<String> that has an onChange listener that wants to sort the items?
Yes, Sir
first of all, try to make adding/changing implement the sort
because it is epic
And unneccessarily time consuming
11:51
if that wouldnt work, make a sort that ignores the onChange
or make the onChange ignore the sort, but that would be quite a lot harder i assume
if that doesnt work, then make a flag that says wether or not the list is currently sorting
:p
Or skip the first two because it is unneccessarily time consuming, skip the third because of the difficulty level and choose the last directly
And save about 2-3 hours
Last one works.
for now
last one is a workaround
There is no reason it should not work
first two are proper fixes
> "there is no reason I can think of that it should not work"
fixed it
Feel free to bring up cases :)
11:55
feel free to experience them
:)
Curious to hear your amazing knowledge
its not my knowledge
its my awareness of flawed designs
/javadoc Path#endsWith
Which one do you mean? (type the number)
1. java.nio.file.Path#endsWith(Path)
2. java.nio.file.Path#endsWith(String)
12:01
@geisterfurz007 boolean endsWith(String other): Tests if this path ends with a Path, constructed by converting the given path string, in exactly the manner specified by the endsWith(Path) method. On UNIX for example, the path "foo/bar" ends with "foo/bar" and "bar". It does not end with "r" or "/bar". Note that trailing separators are not taken into account, and so invoking this method ...
on the Path"foo/bar" with the String "bar/" returns true.
Can anyone know how to disable specific mime type in tomcat ? I have searched on internet but I am beginner so does not understand. Can anyone help me and guide me.
java.lang.String#endsWith(int)
@Hkachhia yes, anyone can know
please guide me
first of all, you dont disable specific mime types, there is simply an absence of its support
wait... do you really want it to be blocked by the server itself?
and not the code that runs on the server?
I don't want to allow some mime type in webapp then what I need to do in my code ?
12:05
what framework do you use?
jax-rs?
tomcat 8.5 + JAVA 8 with spring frame work
I have seen in my web.xml file, so many mime types are define in that files
I want to block bat,
Bin
COM
types of files which invoke windows shell
i never used spring so i dont really know
but I hope you misunderstand how it works
but this is related to tomcat
because I hope that sending in batch commands in a web request doesnt just run those commands
that should neither work that way with any server
imho
aka, a server should just look for a valid function in your code based on the headers and url it has
then it should run that function and in that function you should choose wether or not you want to do something with the input being given
so blocking certain types is simple not having a valid function for them
at least that is how jax-rs works
i never worked with spring
I want to block for prevent vulnerability attack.
12:15
apart from that it is good to think about the security of the server, but there has to be a vulnerability to be able to remove it
are you able to attack your server?
or anyone for that matter
I want to apply because of :
https://www.stigviewer.com/stig/web_server_security_requirements_guide/2015-08-28/finding/V-41699
see description on provided link and correct me If I am wrong.
 
2 hours later…
13:53
/javadoc List#toString
@geisterfurz007 Sorry, I can't find that method. :(
Which one do you mean? (type the number)
1. javax.validation.constraints.Digits.List#toString()
2. javax.validation.constraints.Max.List#toString()
3. javax.validation.constraints.DecimalMin.List#toString()
4. javax.validation.constraints.AssertFalse.List#toString()
5. javax.validation.constraints.DecimalMax.List#toString()
6. javax.validation.OverridesAttribute.List#toString()
7. javax.validation.groups.ConvertGroup.List#toString()
8. javax.validation.constraints.Min.List#toString()
9. javax.validation.constraints.AssertTrue.List#toString()
/javadoc java.util.List
@geisterfurz007 java.util.List: An ordered collection (also known as a sequence). The user of this interface has precise control over where in the list each element is inserted. The user can access elements by their integer index (position in the list), and search for elements in the list. @since 1.2 (1/10)
@geisterfurz007 blackout?
14:11
Morning, Jaba!
Heyya Michael \o/
One day I will learn to write your name correct on a keyboard...
And not produce Micheal, Michale, Michawl or things like that :D
Mikel?
To far away
depends on pronuncation
> correct on a keyboard
14:19
> Heyya Michael \o/
you succeeded
Hey @gei @wie
@geisterfurz007 Thanks... xD
i dont get these jetbrains tutorials
@Wietlol After 3 edits...
Might have been 4
they make 0 sense
and the code doesnt work
and there is 0 explanation
-_-
@geisterfurz007 I will definitely go for this github.com/google/guava/wiki/Release22
you should have a look, its easy
14:23
Am calling executorServiceInstance.invokeAll(listOfTasks, 40, TimeUnit.SECONDS);
then executorServiceInstance.shutdown();
@Julo0sS Will do when I am home :) Could you ping me once? Then I will have a notification on my phone ^^
@geisterfurz007 ? now? :P
When I then test !executorServiceInstance.isTerminated(), sometimes that is true (i.e., something wasn't terminated).
@geisterfurz007 what you need guava for?
@Wietlol eventBus
14:25
even though the tasks appear to have completed.
I want to make a game circle. Anyone want to join?
15:06
Dang it @Uni!! Why aren't you writing??
Also, I passed my CompTIA exam. You may now congratulate me.
4
what is an exam?
/urban exam
@Michael Exam: A rather large test spawned from the deep fiery pits of hell. If one fails the exam, it is known to pull the grade down, therefore causing an inhuman build up of stress.
Hi People
Any idea on how annotations works behind the scean?
I tried to lookup for good tutorial but they give very basic idea of annotations.
@Michael good for you
i suppose
15:26
@Wietlol Thanks!
@Michael my condolences
15:47
@Julo0sS Thanks :)
@Michael \o/ Congrats \o/
@Michael congrats guy
Thanks @gei @crab ^_^
@Wietlol Not at all. But as it seems to be the solution for Julo0sS for a problem he had in JavaFX that I might face in the future as well, it is not the worst to have a look at it.
@Michael What is the closer future now? Netflix and chill? GoT? :D
 
1 hour later…
17:21
hello
@Marcus 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
17:33
@geisterfurz007 I don't even
 
4 hours later…
21:15
Did you know that the calendar emojis always show the current date on the iPhone?
21:48
There's gotta be an answer to my question. None of SO knows? That's impossible!

« first day (2459 days earlier)      last day (2706 days later) »