« first day (2241 days earlier)      last day (2691 days later) » 

6:46 AM
void f(){for(;;){try{new Thread(){public void run(){f();}.start();}catch(Error e){}}}
oh no, I crashed my computer. (again)
 
 
1 hour later…
7:54 AM
@JonahSloan lol
I hope you know what that code does..
 
 
4 hours later…
11:33 AM
hieee
i need help in the java code..
stackoverflow.com/questions/41085669/… here posted the question ,if you get free time kindly suggest me the issues and solutions
 
@vidya The answer is "Yes".
 
@Unihedron hey yes means i am not getting
sorry what u means
 
"is there any other better layout there to display like that?"
Answer: Yes.
 
thankq
may i get the template name
 
 
1 hour later…
1:00 PM
/
sorry the layout name
@Unihedron
 
 
2 hours later…
2:51 PM
Morning, Java!
 
3:20 PM
Morning
-ish
 
3:43 PM
Hey @Madara
 
@Michael How's it going?
 
@Madara The "check engine" light on my car just turned on, so I am a little nervous. xD
 
@Michael I too like living dangerously.
 
@MadaraUchiha xD
@MadaraUchiha You?
 
Haven't done Java in a while now.
That makes me a happy man.
TypeScript is actually nicer than I remember it.
 
3:47 PM
Oh?
 
Hi! I am having some problems with ArrayList. Could somebody help me please? Thanks.
 
@Michael Yeah, I changed jobs recently.
Working with some guys from the JS room now :D
 
nice
 
I get an error in this line -> for (int k = 0; k < point.components.size(); k++) {
I think the problem is that components doesn't exist
 
@MadaraUchiha Nice!
 
3:52 PM
for (int k = 0 ; k < listaAprendizaje.size() ; k++) {
  points.add(new Point());
  points.get(k).type = listaAprendizaje.get(k).getTipo();
  points.get(k).components = new ArrayList<Integer>();
  for (int l = 0 ; l < DIMENSION ; l++) {
    points.get(k).components.add(listaAprendizaje.get(k).getData()[l]);
  }
}
System.out.println("Clasificado: " +i+" L.Aprendizaje: "+listaAprendizaje.size());

int contador = 0;
//Calculamos posiciones de los puntos respecto al plano y errores
for (Point point : points) {
 
@QuicoLlinaresLlorens If you're iterating over point.components, there are better options than using an increasing variable
 
@MadaraUchiha This is the part of the code with the error
 
@MadaraUchiha Shady characters, those people
 
@Michael A bit unstable, really.
@QuicoLlinaresLlorens what's the error you're getting?
 
ups, sorry I didn't say
java.lang.NullPointerException
the for in which I get the error works some iterations
but it is a bit strange, because every point has its components ArrayList
 
3:57 PM
@QuicoLlinaresLlorens My guess is that point.components and planes.get(j).plane are not synchronized.
 
okei, I am going to check it. Thanks!
 
My recommendation is that you should model your data better. Don't rely on "same index" or something like that.
If you need to map a point to a plane, use a Map
 
but I think the problem is not that
because it fails when doing this in the for loop -> point.components.size()
it doesn't go into the for
But I don't know why it doesn't have components initialized
every point that I add it is initialized
for (int k = 0 ; k < listaAprendizaje.size() ; k++) {
  points.add(new Point());
  points.get(k).type = listaAprendizaje.get(k).getTipo();
  points.get(k).components = new ArrayList<Integer>();
  for (int l = 0 ; l < DIMENSION ; l++) {
    points.get(k).components.add(listaAprendizaje.get(k).getData()[l]);
  }
}
I have put all that in the constructor of Point
and it works that part of the code now
 
 
4 hours later…
8:04 PM
if i get the lock on an object, then call wait(), when I am eventually notify()'d by another thread, do I automatically re-take my original lock or must I call synchronised() again?
 
fge
8:52 PM
@TheCoder if in a thread you get a lock on an object and wait() on this very same object, you get an automatic, surefire deadlock
Why would you ever do that?
And why, in 2016, would you ever use Object's primtive synchronization anyway?
^^ a must listen -- Gretchen Parlato, an unfathomably obscure Brazilian jazz singer
 

« first day (2241 days earlier)      last day (2691 days later) »