« first day (1627 days earlier)      last day (3313 days later) » 
01:00 - 11:0011:00 - 00:00

11:34 AM
@Unihedro +1
 
@ItachiUchiha +1
 
@greenhorn you can choose which browser you want to open when the web-app has finished loading
 
on which ide @ItachiUchiha
 
@greenhorn Eclipse
 
thanks for ur supprt also for taking care on my question @ItachiUchiha
 
11:44 AM
can we read excel file data in java ?
 
@Vogel612 thnx
 
is it possible to use tomcat server on netbeans and eclipse simultanesously
 
should be... probably is idiotic and shouldn't ever be necessary
aka. you're doing this wrong (TM)
 
@greenhorn don't bother
 
12:25 PM
i want to create 2 tomcat server one for development and other for runtime purpose .How do i do that in eclipse
 
12:49 PM
hello
 
Hi
 
fge
@greenhorn bad idea from the start; you want to have a packaging process which is independent from your IDE
<-- ex systems engineer speaking
 
@fge what to pack ?
 
crl
wolves
 
Does anyone know a way to remove the "border" of a button with an image in javafx? If i click nearby an imagebutton it has still the square shape like a normal button and activates
 
crl
1:00 PM
maybe set its border width to 0
 
that doesn't work :/
it's not the real boarder ^^ its just the space of the button without the image that is still there
 
Eeek! sony ericsson?!
 
the red one is the border of the "real" button ^^
XD thats just an example image that i took for trying out :D
my goal is -> that only the image is clickable as the button
 
1:16 PM
@juce Does the image has a red border?
 
@ItachiUchiha at the moment yes. i gave it the border, so that you can see the "real shape" of the button
 
Why not just make an image behave like a button?
 
@Juce Did you gave the red border to the image or the button?
@gem nice idea!
 
I did that with a gui I made
 
@ItachiUchiha i gave it to the button
 
1:20 PM
also it's in the oracle instruction video
 
i dont like the idea of the image with the listener
 
Why?
 
it sure works but i hope there is a button solution for this ^^
 
buttons have listeners too
 
because imo its a workaround
 
1:22 PM
Buttons have limitations because buttons essentially are the workaround, something someone else made, but a bit more extensively.
You might be able to edit the button's shape with CSS
 
Yeah but then the imageXlistener idea would be easier :p
 
The border you see in the picture is made from the shape of the button. The image is a content of the button. The image can not affect the shape of the button
 
if there is no function for this then ill make it with the listeners ^^ just hoped there is a housemade function for adjusting the buttonshape to the image
 
As far as I know, there isn't and if it isn't in the API, it probably isn't possible
 
Didn't find something until now ^^ well then it's ok just wanted to see before i make the "workaround"
ty ;)
 
1:28 PM
gl
 
 
1 hour later…
fge
2:33 PM
Oh dear... Groovy is one such language which I think gives too much liberty
(syntax wise)
 
I believe that's why they call it groovy ;P
 
fge
OK, maybe; now, a simple question: how do you make a tutorial for it?
You write your code one way, then another tutorial is written by another person who likes to write groovy in some other way
What do you do?
 
Connect the dots in the common patterns.
 
fge
Sure; now, do you need to?
No
Had the language had a well-defined, "one way to do it" syntax, this problem does not even appear
That is THE thing I dislike about gradle; I love everything else, just not that
Not only can you write groovy in it, but it also has a DSL
A language should be easy to learn; mastering it is of course another matter
C is so easy to learn it's laughable, but mastering it is another kettle of fish
 
Sounds like it's not your type of language
 
fge
2:44 PM
No, not really
It is all the more not my type of language that a lot of stuff is hidden behind the scenes or implied
 
I can however see exactly why a lot of other people would love it though, just BECAUSE there is no one way of doing it
 
fge
I hate that
It takes too much time to learn the language
 
I remember the one groovy review I gave.....
 
fge
I'd much rather spend my time mastering this or that library instead
For instance, JooQ ;)
 
It was horrible how dumb I felt after reading a competing answer posted after mine...
 
2:46 PM
@fge Well, then you should do just that. But I assume you're complaining because you have to learn groovy for work?
 
fge
No, I don't have to
I just want to package my Sonar plugin with gradle and not maven
And this is my PR
But if anything, it's a lot more Java than it is Groovy
 
@Vogel612 why?
 
fge
Groovy fanatics would puke at my code -- although it works
Also, you shouldn't be the one to tell anyone that he complain about anything -- you didn't take the time to read some manuals and practice :p
 
I never said JOOQ was bad
Ever
Rather the opposite
I said it was a great tool
You're allowed to complain about something being hard, but in my opinion, don't bash the tool because you're ill equipt to handle it. I don't bash JOOQ.
@fge I think we should leave that topic.
 
fge
Ohwell
Yeah we should
I've just discovered another great way to aggregate data which I didn't even think of... And it's purely SQL based
 
2:52 PM
Nice
 
fge
<--- persistent imbecile
 
@Gemtastic because he used an operator I didn't know about and made everything 10 times simpler thag way
 
@Vogel612 oh :P
Well, on the bright side; you learned something new! :D
 
@fge you already said that.....
 
fge
@Vogel612 10 times simpler, sure; now, is that 10 times easier to understand, is the real question
I know of Groovy's Elvis operator for instance and I downright hate it
@Vogel612 I know I said it already; but that's how I learn
I know I'm old but one thing that has truly been lost in today's youth, and I can testify, is patience
And by "youth" I mean anyone aged 25 or less -- that's telling how old I am
Patience, and tenacity
 
2:59 PM
I am a youth.. yay!
 
@fge you sound old when you say stuff like that :P
 
hello guys... any swagger user there?
 
@Juce yes there is.
You can always use button.setShape();
 
fge
3:25 PM
@Gemtastic I'm not that old :p But old enough that I can say that from experience :/
And I'm really not joking here
Anyway -- succeeded in making my language plugin work with gradle!
<-- recalls the day when he helped one of his seniors implement RSA in C
That was fun
 
3:41 PM
@fge I know, I just said that you SOUND old ;P
"Back in MY days!" ;P
 
@fge hi sir. i know this is minor question. java overriding.... if the same method signature but only return type and method body is different. will it be a valid overriding?
 
fge
"Sir"? Me? :p
 
okk... whatever... :D
 
fge
@JudeNiroshan you can select to return another type as long as it's a subtype of the method you override
The method body, the caller doesn't care
 
yesh.that is came in Java 1.5. called covariant types
 
fge
3:48 PM
Well then what is the question?
 
so, if the original method >>> public int add(int n){}

child class method >>> public String add(int n){}
 
fge
No, that won't work
String is not a subtype of int
 
ok..that is what i wanted to confirmed. thanx 'buddy'.... (as you don't like 'Sir')... lol
 
fge
Just, you know, "thanks" is enough
 
@fge but in overloading? will it allowed for such cases? like my above example?
 
fge
3:50 PM
No it won't
Again, String is not a subtype of int
Primitives are "immutable" in that sense
Overloading is another thing
Overloading is a method with the same return type but a different signature
 
ooookk. i got this now
is there any exceptional situation regarding this return type?
cos, my lecturer mentioned something like that, but i couldn't take down a note about it
 
fge
What return type?
If that is what your lecturer wanted to say, generics in Java are not covariant
 
object type vs primitive type?
@fge Same with COBOL
 
fge
That is, even if you have type Foo which extends Bar, then List<Foo> does not extend List<Bar>
BUT Foo[] extends Bar[]...
 
oh
 
fge
4:01 PM
And this is because of type erasure
@Unihedro COBOL has a well defined syntax; horrible but well defined :p
 
Well, it was criticized for one thing, which was similar to groovys'
 
fge
Oh?
 
Which I'm looking up because I knew it but have forgotten it :p
 
fge
<-- has done a little COBOL but only because he was forced to
 
Ah, COBOL's syntax doesn't favor structured programming.
Such criticism of a lack of structure has risen in the 1970s when programmers began moving away from unstructured spaghetti code to the structured programming paradigm: en.wikipedia.org/wiki/COBOL#Criticism_and_defense
 
4:09 PM
@fge thanx
 
 
1 hour later…
5:33 PM
http://www.commitstrip.com/en/2015/04/07/just-an-exception-they-said/
CommitStrip - Blog relating the daily life of web agencies developers
Just an exception they said…
CommitStrip
1428427786
 
user3208640
5:45 PM
Hi
 
user3208640
hhhh
 
user3208640
the "switch... just add your case"... :)))
 
fge
6:01 PM
<-- in an architectural self brainstorm
 
How Java Garbage Collection Works?
 
@Ghanshyam Oops, you accidentally put your google search in the java chat ;)
 
@Gemtastic ahhahaha... that reply :D
 
@Gem
@Gemtastic WOW! thanks
 
6:11 PM
I need a answer !!
 
I just gave you one >:C
 
dont wast time man
 
You're the one wasting time. If you put that question in the google search window you'd be done reading the answer by now
 
yeah man with you wast my time!!! thank
 
fge
@Ghanshyam there is not one answer to your question anyway
 
6:14 PM
@Ghanshyam be claim. Gemtastic is correct... you should search it in google
 
No worries @Jude, I'll just never ever help this person again.
 
So,,, here no one know!!! answer
 
fge
GC in the JVM is one of those things which Just Works(tm) and you should not be concerned about it unless you encounter a real memory problem -- which in most cases anyway finds its root cause in the the way you do things rather than the GC itself
 
user3208640
@Ghanshyam believe me if you tried it with google in less than the time you wase here you would got your anser.
 
@Gemtastic you are lucky enough not to get Unihedro 's attention for your behavior ....
 
fge
6:16 PM
And even if you try and dig deeper you're in for a chaotic voyage
 
thanks you!! @fge
 
fge
Between the concurrent mark sweep, parallel etc...
Algorithms are not one
You have many
 
yeah okay!!
 
@JudeNiroshan Uhm, wut?
 
simply, gc is almost not under control for programmer
 
fge
6:17 PM
Most programs which alter the GC settings do so in the vain hope that it will reduce memory consumption as a whole
But ultimately, it won't
 
fge
GC is not an exact science; allocations happen even beyond your knowledge. More often than not, the default GC behavior is what you want
 
okay @fge
 
@JudeNiroshan You're not making sense... But meh. Never mind me.
 
fge
GC and the JIT are the domain of the JVM developers; and they are good at what they do; pathological cases do exist in either, but you will rarely encounter them. Now, of course, it is up to you if you want to study it all, but be prepared for loong days of reading ;)
 
6:21 PM
@Gemtastic opps! it should be for OP... my bad
 
@JudeNiroshan then it makes more sense
 
fge
(and even more days digging the principles behind what led said developers to make the decisions they made)
 
@fge yeah i will....
 
:)
 
6:24 PM
this thing specifically are affect to in everyday using chat application
 
fge
Well then profile it
Tools exist for that too
 
thanks i will learn more and make it more clearly it too thanks a lot man!! @fge
yesss
 
Awwyiss fge did your googling for you
 
fge
I didn't actually
 
Once upon a time you did
 
6:26 PM
@Gemtastic hahahahah..... mn you are too funny....
 
fge
All that was from remnants of various pieces I've read here and there -- and practiced, too
 
@fge Still the same as having done your googling.
 
fge
Well, memory does have a purpose
 
memory.purpose = null
 
fge
(still, I wish I had studied more)
 
6:27 PM
Doesn't change the fact that you helped him out of the kindness out of your heart so he didn't have to put that question into google, or for that matter, click the link I gave him.
 
fge
@Unihedro for you, probably; for others, no ;)
 
if (memory == null){
google.com
}
 
fge
die()=
 
i'm laughing loud nw...
 
fge
<--- really wants to subtitle videos from Étienne Klein
This man is just fascinating
 
6:29 PM
this forum with you guys are serious pain killers ... xD
 
/*#~# nosyntax #~# */
if memory is null give it purpose || null
@JudeNiroshan Vote for me. in the mod election for a. better website!! :)
Oh, you don't have enough reputation to.
 
@Unihedro How much do you need?
 
@Unihedro yeah. i agree.. i'm a newbie
 
If my calculations are right I'll win with
more than I'll get :/
 
@Unihedro I'll vote for you if I can :3
 
user3208640
6:32 PM
@Unihedro at least how much rep is required for voting in moderators election?
 
150 for graduated sites.
Scratch that last part, elections only perform on graduated sites
 
user3208640
you have nominated yourself yes?
 
Yep, it's the second from bottom.
 
Thanks all , you can give better explain than googling thanks all once again.....
 
Basically, I have no election campaign, vote grabs or position promises. :P
 
user3208640
6:37 PM
maximum how many nominator we can vote for? is it 10?
 
In primary, unlimited. Everyone can up/down vote a candidate post to show whether you trust this user.
 
Unihedro was hunting on this....

My main concern is that you may not be participating enough. Here's your Meta activity and, as I'm sure you may have noticed, your candidate score also reflects this (one of the lowest). How would you defend against an argument that you will not be participating enough to handle the responsibilities of that of a Stack Overflow moderator? – Unihedro 6 hours ago
 
In secondary, ... things go haywire and goodwill matters significantly
You are given votes #1, #2 and #3
From secondary onwards, to secondary+1, s+2, etc... You're given the three votes which scale.
 
user3208640
if you be a moderator then I think you would not have enough time to come to chatroom
 
Heh, nah.
 
user3208640
6:43 PM
:) sorry.
 
I mean, I balance my time pretty well. :P also this room is quiet...
 
user3208640
yes of course you will
 
user3208640
I believe in you.
 
You should see how many rooms I'm in on a daily schedule.
 
user3208640
I remember and see you are too much active on SO
 
6:47 PM
I was once the first on participation leagues :)
Welp, it's been fun, doesn't really matter that I win ;P
The attention everyone's shown on my candidate post has made my time writing it worth.
 
yeap. it does
 
~departing
 
user3208640
have a nice time everybody, and good luck.
 
crl
8:35 PM
How could I extend java.sql.Connection? doing this fails
CoolConnection c = (CoolConnection ) DriverManager.getConnection("....", "sa", "");
with
class CoolConnection extends JdbcConnection{
    public CoolConnection(SessionInterface arg0, String arg1, String arg2) {
    	super(arg0, arg1, arg2);
	}
}
 
ya kant
 
crl
Hmm, sucks, thanks
 
ya can tri 2 inject a. runtime hack
wt reflects
 
crl
@java why you so unhandy
 
!!should I sleep yet
 
8:41 PM
@Unihedro All signs point to no
 
!!should I be sleeping
 
@Unihedro Not at all
 
ok
 
8:55 PM
I find in a tutorial code
for (l = 1; world.getBlock(x, y - l, z) == this; ++l){
;
}
can this code do anything useful?
 
fge
!!should @Unihedro get a nap
 
@fge Doubtfully
 
fge
Meh, if we listen to bots we'll never be sane, will we?
 
9:42 PM
Hello fiends, does anybody here have experience with java swing?
friends*
Im looking for a way to efficently draw 1800 circles en the screen
public class Surface extends JPanel { //container of the app

Graphics2D g2d; //surface to draw
Universe universe;

public Surface() {
universe = UniverseLoader.loadUniverse();
this.setBackground(Color.black);
}

private void updateSpheres() {
ExecutorService pool = Executors.newCachedThreadPool();

for (final Body b : universe.getBodies()) { //1800 bodies

pool.submit(new Runnable() {
public void run() {
g2d.fillOval((int) b.getPosition().getX(), (int) b.getPosition().getY(), 3, 3);
}
});
}

// This will make the executor accept no new threads
this is how i do it now
for every repaint i create 1800 new circles.
 
For starters... don't spawn a new Runnable for each single body....
This should already get you a huge improvement. Then you can use the already running EDT to do your crap for you,too
Don't roll your own drawing thread. Render your stuff into two layers
Render one frame into the currently invisible layer and then swap the layers
@crl abuse DI and inject the JDBCConnection as delegate into CoolConnection
@GuidoCelada most of the above is for you
 
thanks !
i will try to do that.
 
10:12 PM
hello there,
anyone could help me on a Hibernate/JPA question?
 
Depends...
If you start talking I might even be able to assess whether I can help... @lucasdc
 
can I send you my SO question link or should I say what's my problem here in chat?
 
Just drop tthe question link in here
1
Q: Mapping @OneToMany with another @OneToMany annotation

lucasdcI couldn't think of a better title to explain what I'm willing to, so that I'm gonna clarify it here: I have to map an ordering system to a pizzeria, and I thought of something like this: Order.java (...) @OneToMany(fetch = FetchType.LAZY, cascade=CascadeType.ALL) @JoinColumn(name = "order_i...

This one, right @lucasdc
 
yes @Vogel612
 
You're casually asking for the impossible
 
10:21 PM
lol
 
Any survivers?
 
@GuidoCelada don't try to store the graphics of a JComponent, it's not guaranteed to stay valid. It's just something the component used to draw to on a previous time it was painted
 
why you say that?
 
@lucasdc see my answer
Goddammit it's a pain to write answers on the site using mobile and not the app since it's Borken
 
I see.. what you mean by saying "your architecture seems to miss the 'Problem' of assigning 'Positions' to an Order"?
 
10:45 PM
I think that the way you mapped it won't work as I expect. Actually, I forgot to say that for example, a pizza 1/2 bacon 1/2 mussarela won't be represented as an unique register in Pizza table. Actually, there will be 2 registers (for example: id 1 = bacon, id 2 = mussarela). So that, if a customer has an order like this:
1 full bacon
1/2 bacon 1/2 mussarela
I thought of something like: Order has a collection of OrderPizza where each element is a pizza in the order (in this case there'd be 2 elements); And OrderPizza has a collection of Pizza representing the pizza assembly.
In this case, the first element of the collection OrderPizza would have a Pizza collection with 1 element (because the pizza is 1 flavored). The second element of the collection OrderPizza would have a Pizza collection with 2 elements (2 flavors). Have I made myself clear?
 
fge
mussarela?
What is that?
In Italian it's mozzarella :p
 
sorry, its in portuguese.. I thought it was the same in english
 
Same withe the thing I proposed...
Sorry I was reading the so survey results
Ah noes. Wait... yes you made yourself clear.
But I think its the wrong way to go about it.
 
what you suggest?
 
Each OrderPizza of your model may have only a single kind of pizza
And you regualte it by regulating the amounamount
Crap mobile...
 
10:56 PM
lol.. I'm able to understand you, dont panic
 
Okay so with my model there 1.5 bacon pizzas amd 0.5 mozarella pizzas
That being said it's 1 AM and for whatever reason I feel incredibly tired.....
'Night
 
night mate.. thanks for your help
 
11:12 PM
hello everyone, i am new to myeclipse. any one know how to include one jsp page into another jsp page?
 
11:28 PM
@RamMansawala Hi. What myeclipse has to do with including one jsp page to other?
 
01:00 - 11:0011:00 - 00:00

« first day (1627 days earlier)      last day (3313 days later) »