« first day (2104 days earlier)      last day (2842 days later) » 

3:22 AM
Hi, is there anyone online who can give me some quick advice about structuring inheritance in my code?
 
 
4 hours later…
7:01 AM
Morning!
 
morn
 
7:40 AM
morn!
 
7:51 AM
morn
!!meow
 
ey
 
!!meow
 
thats my money :(
 
8:00 AM
Thats more like it
 
is it you at the office?
;)
 
cat cat
 
@Hans1984 It can be me
 
8:21 AM
morn
 
i made a decision
i decided not to update my 7year old pc with win10
 
8:35 AM
if it has an OEM Windows.... Backup, Upgrade, Rollback => free windows 10 license
 
@Hans1984 Good choice. It is better to install Ubuntu 16.04 in it
 
morn
 
9:04 AM
o/
 
:3
 
9:41 AM
its time for cats!
!!meow
 
.
!!meow
 
lol
so much for cats beeing smart
 
10:16 AM
hi
there is a issue on invocation target exception
common button
opening same window
calling on two different UI's
 
@tusharsharma ?
 
when click from one UI it displays data
 
which UI?
Swing? JavaFX?
 
but when click on other it is giving invocation target exception
Vaadin
 
Do you think we will have a dream about your question being about Vaadin? :P
 
10:19 AM
okay, now you know
please tell me
 
I am not skilled in vaadin
 
okay
any one please,
 
 
2 hours later…
11:55 AM
Guys, some help
I've a command line parser the works with opencsv's CSVParser (with space as separator)
But it borks on arguments that have multiple spaces between them (understandably)
Think it can still be parsed as CSV? Or would I need to write a parser of my own?
 
what about stripping multiple spaces before parsing?
 
@Nicktar But empty arguments are valid
i.e.
./foo arg1 'arg2' '' 'arg4'
 
So sometimes a double space is valid and sometimes it is not?
 
@Nicktar It's valid when it's quoted
But I don't think/know if the CSVParser knows to differentiate
 
then you can strip multiple spaces from the quoted string
 
12:01 PM
In classic CSV (with commas)
It's that hello,,world is the same as hello,'',world
So here hello world is the same as hello '' world
 
fge
12:20 PM
Therefore there is at least one character after each separating space?
 
fge
12:47 PM
Aah, ze Germans... I'm reading an extended test of the new Porsche Boxster S: €69k base price, and... €39k optional extras
 
lol
40k for optional feat
xD
 
Morning, Java!
 
morning
 
Hey @Hans
 
o/
 
1:05 PM
@fge I'd like the separation pattern to be \s+ and not \s
 
1:22 PM
wheres duck
paulo
or whatever his name was
 
1:41 PM
mornin' guys
 
1:52 PM
!!meow
 
2:26 PM
@fge Throwing lambdas question
Why does Throwing.consumer() accept a ThrowingConsumer and not a Consumer?
 
hehe
@MadaraUchiha do you java generics
hehe
 
@ankitagrawal What?
 
@MadaraUchiha i need a help in that
 
@ankitagrawal Why are you pinging me then?
 
well that is why i asked if you know probably you can help me
 
fge
2:31 PM
@MadaraUchiha let me check
 
Ah, no, my bad. It doesn't affect me
 
I had a type mismatch and the compile error wasn't too useful.
@ankitagrawal Don't ask to ask, just ask.
 
oki i have to pass a class object around
but the problem is that
class is generic
and the final class where it has to be passed also expect generic
so it isnt working
i have seen it require Proxy.newInstance something to do that
but i have no idea how to do that
 
5 minutes to my "smoke break"
where I don't smoke, heh...
 
2:40 PM
hehe
 
NSA commitee at it again
 
with this type of boss its probably the only way to get through the day
 
@Hans1984 cat
 
hehe@Nicktar
cat cat
 
well, I am not proud of things I did in the past to try to deal w/it... I'm in therapy at this point bcz of those choices, heh
 
2:42 PM
Anyone here JavaFX FXML developer?
I'm facing problem to design my desktop application.
 
@Hans1984 I'm getting these crazy muscle twitches in my lats lol
Feels so weird
 
need potasium @ballBreaker
 
@blahfunk not cramps
Yeah maybe I do though, hard to say
 
i see
a week ago
 
Just like uncontrollable muscle contractions
 
2:45 PM
my whole body was twitching
when i tried to go to bed
even my mouth
 
That feels like I'm involunatarily flexing my muscle
 
it was terrible
 
@Hans1984 jesus lol
Pretty sure you're dying man
 
i was thinkign about going to the hospital
 
You got cancer of the body
 
2:46 PM
it went away
but it took hours
hehehe
im sweating waterfalls all da ylong lately
 
God damn it Hans
Stop removing your messages FFS
 
very weird
 
I never see them
 
wasnt important
but he is:
          ;000000000000000000000000000000.
he lost one eye though
 
2:49 PM
EEEe
I haven't seen any in my new apartment
brb
 
i have all kind of weird symptoms
but i cant go from doc to doc
this would take ages
and in the end noone helps you
been there done that
!!meow
 
yay
caprica is back
 
cat
hanscat
catcat
 
!!meow
 
Consumer<String[]> mock = mock(Consumer.class);
Import.consumeCommands(input, mock);
verify(mock, never()).accept(any());
 
cat cat cat
 
Intellij complains that Consumer.class is unchecked
 
yeah it does for me too
 
But I don't want to check mock to type Consumer because then the call to consumeCommands (which accepts a Consumer<String[]>) will be unchecked.
Consumer<String[]>.class is a compilation error
Is there any we to cleanly get rid of the warning?
 
2:54 PM
suppress is not clean but works
 
@MadaraUchiha Mockito doesn't handle Generics very gracefully...
 
@Nicktar I see
 
We just live with the warnings since we don't want to supress them
 
@Nicktar That's a shame. Thanks.
 
2:58 PM
what does ... means?
 
@MadaraUchiha the only way around that warning short of supressing it would be to declare the mock as a field and leave the instanciation to Mockito using the @Mock annotation and the MockitoJUnitRunner
 
3:15 PM
@Hans1984 Yeah my GF is in that cycle right now
The body is a fucked up piece of machinery haha
 
most of the times stuff resolves on its own
 
Too many moving parts xD
 
or you die
:)
rarely any doc can help you
atleast thats my experience
 
3:30 PM
Depends what it is
If it's functional or not
 
and alot of the time
its mental
when its different things
bye bye
 
How would one go about comparing two List<String[]>s?
 
is that a legit question?
 
Indeed it is
As in, is there a stdlib function to help me with that, or do I need to build my own method with a nested loop?
 
madara did you see my question i posted up there^^^
 
3:42 PM
Not sure about stdlib function
 
do you need to just know true/false if they are the same, or do you need a value to be spit back out to allow you to put them in some sort of order?
 
@blahfunk Same order, same elements in both arrays in same order.
Just not compare addresses in memory, as that's retarded.
 
hash the two variables and compare the hashes? If all you want to know is if they are exactly the same...
 
@MadaraUchiha What about retainAll ?
I guess you want the same order though
 
@ballBreaker Does not work with String arrays apparently.
 
3:46 PM
Ahh I see
 
Well, I'll figure something out
Cheers
 
Yeah then the thing I could think of is just a simple, loop through each list and compare the string array within lol
 
@MadaraUchiha depending on your list implementation, the ones that ship with Java have a meaningfull equals method...
but I don't know how this handles String[]s
I doubt it handles them correctly...
you might want to try: Arrays.deepEquals(l1.toArray(), l2.toArray());
 
4:01 PM
@Nicktar AFAICS, Lists's equals will recursively call equals on the elements
But array's .equals seem to be == at least, from what I can see
java> arr1 = new String[]{"foo"}
java.lang.String[] arr1 = ["foo"]
java> arr2 = new String[]{"foo"}
java.lang.String[] arr2 = ["foo"]
java> arr1.equals(arr2)
java.lang.Boolean res2 = false
Ended up with this as my comparison
private static void assertListEquals(List<String[]> expected, List<String[]> actual) {
    assertThat(stringifyList(actual)).isEqualTo(stringifyList(expected));
}
private static String stringifyList(List<String[]> list) {
    return "[" + list.stream().map(Arrays::toString).collect(Collectors.joining(", ")) + "]";
}
 
hello
 
Ugly as hell, but gets the job done, with a decent error message if it fails
So IDGAF.
 
anyone else use the LibGDX Library?
because I have a small question about game logic
 
fge
@MadaraUchiha indeed, and that's why you have Arrays.equals() and Arrays.deepEquals()
 
Anyone here have an answer to this stackoverflow.com/questions/38598851/… ?
 
fge
4:16 PM
You could do your equality in a more elegant fashion by the way
 
@Viraj I am thinking you may make the constructor look something like this:

public Runner(List<String> strings){
for(String s : strings) {
users.add(s);
}
}
And make the loop look like this(In your `public void init(){`

List<String> users = new ArrayList<>();
for (int i = 0; i < 100; ++i) {
users.add("Temp" + Integer.toString(i));
Future runnerFuture = executorService.submit(userRunner);
}
userRunner = new Runner(users);
I will post that as an answer(So it will have formatting)
 
@fge I'm open to suggestions
bbiab
 
 
1 hour later…
5:38 PM
http://www.commitstrip.com/en/2016/07/27/documentation-just-before-vacation/
CommitStrip
Documentation just before vacation
CommitStrip
1469640752
 

« first day (2104 days earlier)      last day (2842 days later) »