« first day (2897 days earlier)      last day (2268 days later) » 
00:00 - 13:0013:00 - 23:00

13:00
:D
Well you can't know everything
and now you are being even more offensive in that you assume I cant do a particular thing
I'm sure you can't do a lot of things
oh you are being sarcastic now right
#offensive
I feel you are both behaving in a way that is offensive
13:01
I mean all the statements I said are true statements
There's nobody that knows everything and can do anything
however, hurt can also be because of interpretation
hurt is like a bigger version of being offended
Nonviolent communication from Rosenberg :D
I think it comes down to people having thicker skin than others, and on how big of an asshole the person is who offended them
13:04
Happy Friday, Jaba!
Zoe
Zoe
Hiya Michael
On one hand I enjoy offending people so I'll do it antagonistically, but not always, and sometimes I offend people without ever having tried to do it
@Michael ayy dude!
It's a tricky subject
@Zoe Oh nice, thanks. :)
I think it comes down to what you value more, your own personal freedom, or the feelings of others. Some people are more agreeable and would choose the latter. Some are selfish and choose the former
@geisterfurz007 I'm a poet and I don't even know-it.
13:07
if (people.areOffensive())
{
    people.stopBeingOffensive();
}
Everyone is selffish. And want's to carry his own values into the world.
Zoe
Zoe
@Michael And without Jekyll, there's a lot of copy-pasting for re-designing or changing something xd Doesn't have to be Jekyll, could be any template-based generator, but GH pages supports Jekyll natively, sooo....
if (people.areShellfish())
{
    people.stopBeingShellfish();
}
@Zoe Seems to be working good enough as it is. :D
13:11
Shoulder
@Wietlol hey! rude!
I'm a shellfish!
#offended
the offender has been offended folks
It's allowed!
This deployer descriptor issue is driving me wild
I'm out! Hope I offended no one. Otherwise, complaints > /dev/null!
13:20
I see a bug in my code
if (people.areOffensive()) {
    people.stopBeingOffensive();
}
if (lions.areOffensive()) {
    lions.stopBeingOffensive();
}
there, fixed it
Zoe
Zoe
people.stream().filter(Person::getRude).forEach (rudeInternetPerson -> {
            var handled = summonModerator(rudeInternetPerson.getChatroom())
                    .takeAction();
            rudeInternetPerson.getChatroom().getUsers.filter(user -> user.getOffended()).forEach(angryUser -> {angryUser.yellAt(rudeInternetPerson);});
            if(!handled){
                summonDiamondModeratorOrSendAnEmailToSomeoneWithPowerOnTheServer(rudeInternetPerson.getChatroom().getChatSite())
                        .takeAction(Actions.BAN);
(see full text)
@mike cya!
@Zoe Please use pastebin, thx
Zoe
Zoe
I can fix this
@Zoe compiler error, Rude cannot be cast to a boolean
at .filter(Person::getRude)
Zoe
Zoe
@ballBreaker It's under 10 lines now :>
13:22
hehe
Zoe
Zoe
@Wietlol it is a boolean -_-
Then it had to be isRude
anything is get but booleans where it is is
Zoe
Zoe
Oh, btw, if you want property access syntax in Kotlin from Java, all the getters have to be named getField. isField requires method call and not property access
@geisterfurz007 nah
@Zoe no, a boolean may not have get
must be a question word
Zoe
Zoe
@Wietlol It can
It will compile
13:26
isRude hasRude becomesRude canBeRude
Well it could also be "has", yeah
But not get!
Zoe
Zoe
Why not?
semantics
Because it makes no sense!
yah needs Is
Zoe
Zoe
13:27
it does. A boolean is still a field.
Purely technically, it's an integer
If you read that stuff out, what makes more sense: "isRude" or "getRude"?
someone shoot me
shoots ballBreaker
ballBreaker getsRude when geister isRude
Zoe
Zoe
@geisterfurz007 Yes.
13:29
Good.
Guess we got that settled then :)
alrighty, fourth time redoing-the-whole-workspace-from-scratch the charm
Zoe
Zoe
Whatever. I'll stick with get
@Zoe it is not!
its a partial byte
Zoe
Zoe
13:31
java runs on C++, right? (basically anyways)
Java runs on JVM
Java runs it it's own VM
Zoe
Zoe
facepalm
You're missing the point
Also, in C++, boolean is also not an integer
What does it run on on MacOS?
13:32
Mac++?
i++
HA!
Amazing gag!
Zoe
Zoe
122
A: Can I assume (bool)true == (int)1 for any C++ compiler?

CB BaileyYes. The casts are redundant. In your expression: true == 1 Integral promotion applies and the bool value will be promoted to an int and this promotion must yield 1. Reference: 4.7 [conv.integral] / 4: If the source type is bool... true is converted to one.

174
Q: In which language are the Java compiler and JVM written?

Rahul GargIn which languages are the Java compiler (javac), the virtual machine (JVM) and the java starter written?

C or C++
the bool value will be promoted to an int
@Zoe dont confuse compiler instructions with booleans being ints
Zoe
Zoe
/shrug
13:34
¯\_(ツ)_/¯
assert sizeof(true) != sizeof(1)
does that even work?
assert sizeof(bool) != sizeof(int)
also, classes with multiple booleans can merge them into the same byte
cant do that with ints
:P
13:45
screw IBM and screw eclipse
Zoe
Zoe
@geisterfurz007 Fine, you're right. There are still exceptions, just not as many as I thought xd
@ballBreaker thats my boi
I've tried so many things and can't get rid of this error..
"The deployment descriptor of the module 'dfsafd.jar' cannot be loaded or found."
breakin' my heart
13:51
corrupt jar?
nah
The jars don't even exist yet, they get created on deployment of the server
It's the deployment descriptor, so it's not even recognizing my projects..
neway meeting with the VP
brb
14:15
welp ... found an interface that exposes 66 methods...
and from a cursory glance none of them take less than three args, most take four...
LOL
and all of them use API that I'm supposed to be phasing out...
aren't I lucky?
user8622974
It's amazing for how many emotions you can use this image!
Zoe
Zoe
14:20
lol
Is there some java feature used to prevent SQL injection?
if (sql.isInjected()) {
    prevent(sqlInjection);
}
/javadoc PreparedStatement Nathvi
Or you use JPA which is the specification for ORM in Java
14:22
or escape your damn strings
Zoe
Zoe
if(wietlol.isSayingWeirdStuff()) wietlol.kick();
lel
Thanks!
@Zoe dont ignore my weird stuff
you never know when that weird stuff is actually useful for your specific situation
@geisterfurz007 right?
:p
Zoe
Zoe
@Wietlol Basically never
pretends to not understand that reference
14:26
@Zoe yes, you never know
Zoe
Zoe
42 secs ago, by Zoe
@Wietlol Basically never
yes, you basically never know
HAH!
I hate to admit it but I think that blueish tiger does have a brain with at least a few useful things in it.
pretends to not have seen that
14:30
Better for your ego anyway.
15:09
blueish?
Are you colour blind fren?
or is this one of those things where you mess up intentionally to be mean
cuz that's also a lion
U GOT ME
Sounds like the seafood for rich people is upset about something.
D:
Always upset
Would be nice if IBM wasn't a piece of poop
 
1 hour later…
16:38
Hey
Looks like everybody is working :D
Yes! We are all very hard workers here.
@ballBreaker Haven't they always been like that?
17:05
Uh-oh! I didn't miss another one, did I?
Just to make sure: Is there a particular reason you hang around here often @Rob? The blue always makes me feel there is something I should know as RO or should have seen. Or are you just assigned this room? :P
@JennaSloan Yes. That's nice.
Soon my life gonna be the same, so I should enjoy until I don't have to work 😂
17:27
Rob is just a lurker who likes Java :D
Are all subclasses included in a user defined package?
Or do I have to take out the subclasses and package them separately?
true
I am 50% sure that depends on the visibility of the subclass
I've made them public
Importing the main class works fine, but it won't let me create objects of subclasses in the package :(
@geisterfurz007 He's stalking you
17:53
I am afraid so!
18:08
@Rob explain yourself
we will hold a tribunal to decide your fate
2
@ballBreaker He left shortly after I asked. Prolly went to the mod room like "chhhk They found out. Had to retreat! Please send another unit in the future, over. chhhk"
18:23
Is it possible to make a JNDI connection to a data base, that connects through windows user authentication? I don't have a user name and password
whenever I use it, it logs in through my windows user account
but I'm wondering if I can do that when connecting through INDI
@DüsüngülüTibor 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
Zoe
Zoe
hiya
heyo
ayo in the yayo
:D
can anyboy help me with this? iam stick with it
Perhaps you can try asking in one of the established chat rooms, such as chat.stackoverflow.com/rooms/139/java. — John Kugelman 2 mins ago
sorry not that link
1
Q: Something like hanoi tower

Düsüngülü TiborI have to make a one player game. We have got 4-4 player X's and O's and a blank space (it goes from 0 to 8). It looks like this: |X|X|X|X| |O|O|O|O| I have to swap the X's and O's: |O|O|O|O| |X|X|X|X| The rules are: Any symbol can be moved to an adjacent blank space. X can jump through a...

stuck*
18:48
@J.Adam 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
in javascript I could send an object to a function to tweak the options, for example doStuff(arg1, arg2, {sender:32, effect:91, time:12});
how can I have this flexibility in java?
because right now I have a function that does something that I want to customize a lot or has lots of optional arguments (that are set to default)
making those arguments explicit would be an ugly thing to do
specially if the arguments are of type boolean
in javascript i could do callDad({scream: false, talkSlow: true});
19:03
in java, you have much more powerful tools to achieve such a thing
do you have a cement example?
Zoe
Zoe
@Wietlol don't you dare say that!!
You know we prefer titanium over cement!!!!
what did I say?
Zoe
Zoe
8 mins ago, by Wietlol
do you have a cement example?
We hate cement!
;p
... I'll show myself the door ^^"
19:26
how do normal people write tests for json? gitlab.com/enterprisejava/springdevops/commit/…
New to Java and Spring Thank you!
Zoe
Zoe
0
Q: Writing junit test case for json data

srishtii have a method in my controller class @RequestMapping(value = "/getSearchData/{fdate}/{tdate}", method = RequestMethod.GET) public @ResponseBody List<Map<String, Object>> getSearchData(@PathVariable String fdate, @PathVariable String tdate) { System.out.println("fdate=======...

hm, ddg breaks the url xd
I am trying to look up what Mockito is...
Zoe
Zoe
//wiki Mockito
user8622974
Mockito is an open source testing framework for Java released under the MIT License. The framework allows the creation of test double objects (mock objects) in automated unit tests for the purpose of test-driven development (TDD) or behavior-driven development (BDD). The framework's name and logo are a play on mojitos, a type of drink. == Features == Mockito allows developers to verify the behavior of the system under test (SUT) without establishing expectations beforehand. One of the criticisms of mock objects is that there is a tight coupling of the test code to the system under test. Mockito...
"Mockito allows developers to verify the behavior of the system under test (SUT) without establishing expectations beforehand." Ah so it isn't the same as just creating an object by hand and asserting object from method dot property equals object i created by hand dot property
Zoe
Zoe
19:36
basically
when I write unit tests, I usually write something like https://gitlab.com/kudotnet/dotnetfun/blob/master/XUnitTestProject1/PersonTest.cs

[Fact]
public void TestPersonIsOverEighteen()
{
string inputName = "Sarah Michelle Gellar";
DateTime inputDateOfBirth = new DateTime(year: 1977, month: 4, day: 14);
Person person = new Person(name: inputName, dateOfBirth: inputDateOfBirth);
Assert.True(condition: person.IsOverEighteen());
}
im le tired
Guess what? Today is Friday. You might get to take day off tomorrow!
yay
\o/
having those 2 pintaroonies at lunch wasn't the best idea
19:56
Woah! @Michael's Dad is here xD
Zoe
Zoe
20:25
?
i love javascript's flexibility
but dont like it's not verbose :/
how do i find what java runtime I have on my computer? such as 32 or 64 bit
I've tried "java -version" in cmd
20:45
@Nathvi What was the result? Mine contained "64-Bit Server VM"
510
Q: How can I tell if I'm running in 64-bit JVM or 32-bit JVM (from within a program)?

BobMcGeeHow can I tell if the JVM my application runs in is 32 bit or 64-bit? Specifically, what function or preference do I access to detect this within the program?

If you installed it at the default place, you can also check where it was installed. Program Files -> 64-bit
Program Files (x86) -> 32-bit.
If you don't have Program Files (x86) you have a 32-bit OS anyway :D
Good night o/
o/
user8622974
\o
20:47
\o
21:06
@geisterfurz007,
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) Client VM (build 25.181-b13, mixed mode, sharing)
Are you guys Nazis?
 
2 hours later…
22:52
@Nathvi Are you?
00:00 - 13:0013:00 - 23:00

« first day (2897 days earlier)      last day (2268 days later) »