« first day (2239 days earlier)      last day (2693 days later) » 

6:37 AM
gm
 
6:55 AM
morning Java!
 
Morn
 
7:36 AM
morn
tavo cat caught
 
I think its his gf ;)
 
hehe
 
I am rather thinking if those are onions in there...
 
i think they are
 
I know this feeling..
 
 
1 hour later…
9:11 AM
morn
 
morn
this cat loooks soooo happy
 
9:26 AM
morning :)
 
morn
 
9:39 AM
<li th:each="order : ${orders}" th:text="${order.name}">user name</li>
with order.name = <script>alert(document.cookie);</script>
it just prints out <script>alert(document.cookie);</script>
in the <li>
<li><script>alert(document.cookie);<script></li> <- in source code on page
 
@Hans1984 BatCat
 
yes
 
10:13 AM
@conan how is that java?
 
@Tavo you're right just realised it isnt. I am just hopping back and forth in my Java spring project, so I didnt think about that it isnt java haha. Im gonna go ask in the javascript chat :)
 
just saying ;)
 
10:49 AM
!!meow
 
Shouldn't a JTable with propertyChangeListener get triggered when a new TableModel is applied?
 
haha
so you found the java group
 
If the other one is not for java I gotta try here...
 
10:56 AM
sure this is the java group
you should ask here only
 
Came here to find that the same people are active here as in the other one lol
 
lol
you got a point there
this group has mostly died out
 
Great... But I am so lucky I found it...
A place where all my questions land in the electronical nirwana :/
 
DSK
Hiiii
 
11:00 AM
Howdy
 
11:55 AM
wohooo! My EP is ready!
 
wow fridayyyyyyyy!!
 
indeed friday =]]
I got my ordered bicycle today
waiting to be picked up from the post office :>>>>
 
good luck buddy, enjoy!!
 
12:39 PM
@conan Pic or you didn't get it
@Valath :D :D
@geisterfurz007 heylo!
@Tavo what is an EP?
 
12:56 PM
!!meow
 
goodevening Java!
anyone familiar with the internals of Java?
like the allocation for space of immutable strings? allocation for class loading, methods and its signatures?
 
1:14 PM
@ItachiUchiha employment pass
 
1:29 PM
i love enums
 
i hate enums
 
I love carpet
 
2:31 PM
Happy Friday, Java!
 
\o/ @Michael
 
Hey @Tavo
 
that's for @wonderb0lt
@Michael how's it going?
 
2:51 PM
@Tavo Not bad, you?
 
good good
a bit stressed, but all good
 
@Tavo Kickban for posting forbidden video plx
 
no plox!
kurwa!
Ó_Ò
 
vittu perkele
 
Germoney plox
gib pardon
 
3:23 PM
one of the best emojis I've seen in a long time: ╰U╯☜(◉ɷ◉ )
I love how alarmed he is
 
!!meow
 
im leaving
bye
 
 
1 hour later…
4:34 PM
almost time to go home!
(╯°□°)╯︵ ┻━┻
 
5:11 PM
hi
 
@motaa hi
 
I got a String containing "HSSEHSHFH" see http://hastebin.com/hewigegete.cs
I want all combinations of substrings that start and end with 'H'
In the code I already have it misses one substring and can't figure the right switch in the regex
oh and hi @ItachiUchiha long time no see :D
 
@motaa I am here. I think its you who was missing :P
 
bah got me :P
 
5:41 PM
of anyone got an answer to my question ;D stackoverflow.com/questions/41065963/…
already answered
 
@motaa @motaa if i am not wrong, i do not think it will work.
 
it actually does
 
6:04 PM
my attempt not doing this in regex did work. First getting all positions of 'H' into a list and then based on these positions create the substrings. Overall it looked clunckier.
Anyways with the regex it seems to work (hopefully for all other combinations aswell :D)
 
6:17 PM
@NullPointer I tried it with the whole data and using the answer to the question didn't print any wrong output
that regex1on1 site is interesting :D
 
@motaa oh yeah just checked that out. Did not quite get what positive look ahead does
 
@NullPointer me neither otherwise I might not have asked the question and would have known to what I should actually look for :D
 
@motaa That guy seemed like a regex pro :D
 
6:33 PM
@NullPointer ye indeed :D. I'm using regex very rarely and forget most of the times how to build them correctly
 
@motaa Yeah mastering it is not the tough part, remembering it is
 
aight time to go home :D
 
7:04 PM
Hi
for (Point point : points) {
                if (point.calculated != 0) {
                    if (point.type == -1 && point.calculated > 0 || point.type == 1 && point.calculated < 0) {
                        distributions.get(points.indexOf(point)) *= plane.expPos;
                    } else {

                    }
                }
            }
When I do this I get in line -> distributions.get(points.indexOf(point)) *= plane.expPos;
an error saying that expect a variable
distributions is an ArrayList
also points
 
7:19 PM
@QuicoLlinaresLlorens Does the code compile correctly?
 
@NullPointer no, it is a compile error
 
@QuicoLlinaresLlorens you cant do that
 
but I am a bit confused
 
its syntactically incorrect
 
because, why can I do this?
for (Point point : points) {
                point.calculated = 0;
                for (int k = 0; k < DIMENSION; k++) {
                    point.calculated += plane.plane.get(k) * point.components.get(k);
                }
                point.calculated += plane.plane.get(plane.plane.size() - 1);
            }
 
7:21 PM
you would need to assign it to a variable
 
planes.get(j).error++;
or that
I understand why I can't do it, but not why I can do those last things
The only difference between them is that the one that gets the error is an ArrayList of Floats, and these last ones are ArrayLists of classes created by me
 
i'm assuming planes.get(j) returns you an object of planes?
 
then its completely valid.
 
but then I do .error
that is a variable
 
7:29 PM
well technically get in this case - > distributions.get(points.indexOf(point)) is getting you a value and not a refernce. so JAva doesnt know how to perform an operation on it
in the other case i.e. planes.get(j) you are actually gettting a ref to an object so now you could access its instance variables or even call a method
 
What your code is doing is it's tring to perform an ooperation on a value. You can only perform an operation using a primitive refernce or an object
alright hope that helps
 
I have finally used the .set that provides me ArrayList
 
7:45 PM
so I have two methods and I want them to execute in the same order in two different threads no matter which thread starts first... now I clearly don't understand how this works but can you please look at these two methods and tell me what I'm doing wrong?
    private boolean isFirstMethodDone = false;

    synchronized void pingFirst() {
        msg("This message should appear first.");
        if (!isFirstMethodDone) {
            isFirstMethodDone = true;
            notify();
        }
    }

    synchronized void pingSecond() {
        while (!isFirstMethodDone) {
            try {
                wait();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            msg("This message should appear after the first message. ");
 
@kush What happens when you run it?
 
https://gitlab.com/715/threadstalk/

if I start firstThread first, then I get something like this

[1] First Class 0: constructed
[2] First Class 0: This message should appear first.
[2] Second Class 0: constructed
if I start the second thread first, then it all works out ok

4] Second Class 0: constructed
[6] First Class 0: constructed
[6] First Class 0: This message should appear first.
[6] Second Class 0: This message should appear after the first message.
that means I have a race condition, right?
 
8:40 PM
@NullPointer welcome
 
8:59 PM
any clues please? :(
 
so you're saying you don't see the pingSecond message
if you start the first thread first
@kush
 
yes
I have tried everything but I am not doing so well
 
how do they share the variable ifFirstMethodDone?
 
They don't?
 
without knowing about the rest of your code, i'm betting that you have two different instances of a class that extends Thread or whatever, each with a copy of ifFirstMethodDone, and when it changes in first thread, it does not change in second thread because both threads have two different instances of the variable
ifFirstMethodDone has to be shared between the two threads
 
9:08 PM
but that means that pingSecond should never execute
 
hmm
give me a moment, gonna try to work it out in eclipse
 
@EricFrechette they share the same object ping
I think?
 
can i see the rest of your code?
use something like paste.ofcode.org
 
@EricFrechette yeah you should be able to go a git clone
 
oh, right
k
 
9:11 PM
let me know if it asks for a username
gitlab seems to have a bug where if you convert a previously private repo to public things don't work as expected
 
i got it, and it's working for me
no matter which thread is executed first
 
what did you change?
 
I didn't change anything. I just downloaded it and ran it
then switched around which thread ran first
still worked
i'm looking through it though
 
does not always work for me
 
9:26 PM
@EricFrechette yes I've gotten a highest streak of 23 so far
 
have you changed anything since the last commit to gitlab?
 
@EricFrechette no
 
can you try moving the msg("This message should appear after the first message. "); statement outside of the while loop in pingSecond()?
 
@EricFrechette oh wow I think you fixed it!
 
great!
 

« first day (2239 days earlier)      last day (2693 days later) »