« first day (2467 days earlier)      last day (2698 days later) » 
00:00 - 17:0017:00 - 21:00

00:39
morn
 
2 hours later…
02:48
gentle reminder for the moderator election this year: stackoverflow.com/election?cb=1
03:32
morning
03:45
dude what is this time @motaa ?
hmm? :D
5:30 am, duh
gotta finish my arduino project... gotta present it at 16:30 :D
O_O
you got some damn good arguments there :P
yep :D
typical student haha
03:47
alright I won't annoy you any further (for now) ^^ Later
all easy :D
I just have to polish it up and one last functionality
04:00
"Think in terms of opportunities and solutions instead of problems, disappointment, and failure." -Lorii Myers (source)
04:24
@Tavo I would've forgotten about that if you hadn't reminded me
Thank you
04:44
np
05:38
morn
If I downvote a candidate is that an actual vote less? Or do only upvotes count?
06:33
no, downvotes count
since you have enough rep, you can click in the total number of votes and see the difference between upvotes and downvotes
Yeah I know, but I was unsure if they just look at upvotes or if they look at the number that is displayed on first sight.
But I will go ahead and trust you :P
if you think of it, a downvote means that someone doesn't think the person should be a moderator
which makes sense. Although in "regular" democracy, you can only upvote
mind blown
yeah, regular democracy sucks
^ that one gif popped up in my mind
06:40
Yeah kinda
Especially if some people think: Voting? nah... Let's just put some of these cars on fire. That'll help!
well, that's a very simplified way of putting it. But in the current situation, I don't think I can condemn violence so easily
much less when there's constant state violence against the less favoured
what kind of "state violence" are you thinking of?
with today's perspective, we see the French revolution as a positive change. I would think a lot of people thought the same back in the day
state violence: people evicted from their homes, politcal corruption, destruction of the wellfare system...
just to name a few
06:45
huh... Unsure of those apply to Germany as well. But yeah you are right. I was threatened in this ways... I am unsure what I would do.
when you can barely feed your children, but the regular politician arrives to the parliament in a Mercedes and says 'we need to make more cuts in the public health system', I understand people get angry and violent
@geisterfurz007 maybe not yet
or maybe it hasn't touched your environment yet
Yeah... And I am glad that that is the case. But if you look at the G20 stuff that happened in Hamburg... People running through the streets putting cars on fire, breaking into grocery stores fighting police men. "Against capitalism"
^ That
But it simply does not work that people do not go voting and then mosh everything and everyone in there way because they are angry about the situation...
Assuming that both groups share people which I am certain is the case
I bet some people are just taking "opportunities" for themselves
06:49
agree. But when I was in the G20 in Barcelona, people got surrounded in the main square, and we were demonstrating pacifically. Hundreds of policemen came out of the tube stations charging against pacific citizens. Nobody remember that anymore
that was when the anti-globalisation movement started to divert. There were people who wanted to keep things pacific, and there were people who wanted to fight back
@geisterfurz007 does voting help? Does it change anything? Is there a party willing to make real changes?
Indeed there are.
then why are they not getting voted?
Because most people do not care
what was the percentage of voters in the past elections?
Checking
71.5 percent
06:52
then most people care
they just don't see things in the same way you do
But those that do want a change are busy throwing molotov cocktails at refugee apartments
Swayed by words.
@geisterfurz007 untrue. That's a fraction of a minority
true...
media (is told to) blow(s) it up massively though. I should not care about media thinks
no, because media doesn't think anymore. Media gets told what to say and they say it
have your own opinion based on facts. On all the facts you can gather
06:55
I will go voting this year. 11 days after my 18-th birthday. One vote ain't much but it still is a vote
every vote counts
a recommendation: read as many political programmes as you can
I will do once I find time again :D Maybe this weekend :)
see which one you align the most with. You might be surprised
time to rework the dough. Brb
I have two projects set up doing a soap call using a local wsdl file. In one the projects I can request and get the response. But importing same dependency and same code in my bigger project I am getting PKIX sun certification failed error. what could be the reason, anybody?
@SudipBhandari 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
07:03
lul this is the first time I check into one of these things. What do they think they can do in that time O_O They will simply make EVERYTHING better :>
07:34
Morning
@Tavo Wish I could vote, haha
07:49
Get some reputation real quick ;)
only 56 left ^^
Anyone use spring framework here?
Haha too lazy atm, oh and I was told to be cautious with the usage of abstract classes?
Or "sparing" rather
They seem extremely useful to me
I am little New to Java...
@saviour123 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
why can't I use the forEach on the int array?
07:54
@saviour123 Please use pastebin.com or something similar to show code
Thanks, I'll see if I happen to be able to help :p
thanks
Because it is an array and not a list.
Try this: https://paste.ofcode.org/b6iLMiBRKByZPSmJq2enMd
@saviour123
okay. but the length of the list is not there..
07:58
you can use the length of the array or alternatively do System.out.println(ints.size());
Yo Tavo :P IntelliJ suggests me to use method reference. What is your official statement to this issue?
08:25
@geisterfurz007 Do you know why abstract classes shouldn't be used very often?
Nope, sry
@Pigman168 abstract classes can ussually be replaced by interfaces
the downside is that you can only extend one abstract class
yea, in first line with the 'new' default keyword available
the upside is that you have more power in the default implementations, for example private methods, fields, etc
imho they arent bad to use, but some coding conventions dont like them
but that is the same with stuff like ternary expressions, switch cases, etc, etc, etc
there are conventions against ternary expressions?
08:32
yep
didn't actually know that. Do you happen to know why it is discouraged? (I regularly use them)
readability
@CrowleyAstray They get... messy
but I dont really agree with it
at least... they can be readable, just dont overuse them
@Wietlol Tyvm
08:33
int foo = someBool ? someOtherBool ? 1 : 2 : 3
It isn't immediately clear what's going on here
yea, nesting them is kind of ugly, but I think there are a couple of cases where they are actually better readable than the corresponding if statements
Could you use indentation to make it clearer?
@CrowleyAstray Oh, sure
@Pigman168 I'd rather use brackets
08:34
@MadaraUchiha you need clarifying parentheses: paste.ofcode.org/3aQgGLbU7Z7GMrS7wPzNYhu
int foo = someBool ? (someOtherBool ? 1 : 2) : 3;
@Wietlol lol
@Pigman168 The thing about indentation is that it can fool you. It's not unambiguous enough
For example
if (false)
  bar();
  baz();
@Wietlol in case you ever wanted to be able to parse a number from a String (that is smaller than 101)
nononono
i can do that better @MadaraUchiha
Going by indentation, you'd think that nothing would be executed
But baz() is outside the condition
if (a)
    if (b)
        doSomething();
    // do nothing
else
    doSomethingElse();
08:36
@Wietlol That would not compile actually :D Because you cannot assign null to int
Yea I'm pretty new to java so I was just putting that out there as an idea, no clue what's easiest hehe @MadaraUchiha
quite frankly, I'd suggest using braces at any rate
@geisterfurz007 i know, i failed there
i fixed it in another post but couldnt find it any more
@Wietlol Aye, that's a pretty good example too
What does the else refer to in this case? if (a) or if (b)?
08:40
Right
But at first glance, it looks otherwise
I just spent 20 minutes to figure out what my method name should be.
What did you call it?
And yet to figure it out
Options?
There are two things hard in computer science: Cache invalidation and naming things and off by one errors
08:42
This one will send notification to a single device
> sendNotificationToSingleDevice()
No problem! Always there for you :>
^ first thing that popped
notifyDevice()?
But!
Let me brew some sample code
@MadaraUchiha it refers to if(b)
it is the first encountered if statement looking upwards from the else
(compiler-wise, it works slightly different, but that is one way to find the corresponding if statement)
I for my part probably waste most of my time thinking about which package to put my classes into
I already use it on one of the controller's method.
It would be weird having 2 different class with same method name
even though one handles the business logic
@CrowleyAstray just put them in java.lang package
something like that
I am currently feeling bad about having enums all over the place. should they be in a seperate package?
Is it possible to extend packages of an existing jar?
08:51
@AceVez send() ?
call()?
something()?
@CrowleyAstray enums are fine
just put stuff in their own file
@Pigman168 you can make your own package called java.lang( Í¡° ͜ʖ Í¡°)
i did
@Pigman168 it is possible, but normally, the java.* packages are protected
Gotcha
I wrote my own JDK, so...
:o Kudos
08:53
does anyone of you participate in Ludum Dare this weekend?
Maybe I should rename the one in my controller to notifySingleDevice() and the one in service class to sendNotificationToSingleDevice() since it's the service class who actually send the notification
My head hurts
I prefer <10 character methods :s
i prefer >10.5 character methods
I want it as descriptive as possible, but making the name longer feels weird
the name should be sort of descriptive, but not longer than like 30-40 characters
08:56
sendNotificationToSingleDeviceButNotTheOtherMethodThatYouHaveRememberQuestionMar‌​k()
hahahahaha
one character method names all the way
I actually still sometimes catch myself doing that. I used to work with micro-chips where you could save valuable bytes by doing stuff like that.
Always wanted to try that, is it fun?
08:59
There's that. But I want to improve my code's readability.
I read one of my early programs and boy..
I want to pinch my past self as hard as I can
@CrowleyAstray you shouldnt be able to save valuable bytes by making names shorter
the compiler should do that for you
I think you'll always be able to criticize your younger self.
not when you use reflection ( Í¡° ͜ʖ Í¡°)
@Wietlol Do you publish them?
Nose hurts so much :v(
09:06
did you run against a wall?
Ran in the rain without a jacket, idk
I have a web page that, every 2 minutes, calls a series of web service urls. The web services respond with a health response (UP/DOWN). The issue i'm having is that the page calls many services (total of 15 calls) and it's making the internet proxy in my company block my internet for a few seconds.
Any suggestions how to get around this?
Is the website written in java?
sendNotificationWithFormattedMessage(). <- how's that?
@ItachiUchiha not yet
09:10
sendFormattedNotification()?
I really want to make sendNotification series
Ah I see
Yea then thumbs up
sendNotificationToSingleDevice() sendNotificationToMultipleDevice() sendNotificationWithFormattedMessage()
Though if you use "sendNotification" a lot you could abbreviate it to "SN"
I plead for snwfm()
09:12
^ lol
i'll go for that series. A bit too long for my taste, but I've spent too much time for names alone
id go for sendnotificationtosingledevice()
lowercontinuescase
@Wietlol why?
just because
develops eye cancer
09:14
i thought camelCase is widely accepted
as much as PascalCase, UPPER_SNAKE_CASE, lower_snake_case, UPPER-HYPHEN-CASE, lower-hyphen-case, lowercontinuescase and UPPERCONTINUESCASE
depends on the use case
;)
and if the use case is java camelCase is what is most widely spread :<
camelCase for method or function
or CamelCase in C#
im kind of in a dilemma of using PascalCase vs UPPER_SNAKE_CASE in constants
@AceVez CamelCase doesnt exist
that is PascalCase
:38302597
09:17
ah
I'd take the snek for constants
ultimateFacePalm
@Wietlol I personally use UPPER_SNAKE_CASE for constants
i'm with snek
but full capital letters do look ugly
maybe ill use lower hyphen case
09:18
Too much effort for me
@Wietlol you were the one suggesting lowercontinuescase but you think UPPER_SNAKE_CASE is ugly? ._.
well everyone has their own taste
i do actually use lowercontinuescase in a very specific situation
which if I may ask?
09:20
preparing for suicide?
package names
if there is only one word so it is indistinguishable from camelCase?
that is the only one I could use it for :>
java uses the same
I don't have packages with more than one word, but I am against capial letters there as well
09:20
^
aka, com.myproject.*
it is weird to have com.my.project.*
how about com.my-project.* ?
never seen one with -
@Wietlol don't have that problem with my current project
simple2relax -_-
09:23
hey, it wasn't my idea in my defense
that actually is lowercontinuescase
otherwise it would be simple2Relax
but that would be ugly xD
you could use lower_snake_case
but imo that is ugly too
Company blocked access to www.simple2relax.com :c
What are you hiding? @CrowleyAstray
on a side note, do I miss any cases?
camelCase
PascalCase
lower-hyphen-case
UPPER-HYPHEN-CASE
lower_snake_case
UPPER_SNAKE_CASE
lowercontinuescase
UPPERCONTINUESCASE
09:26
mEmEcAsE
not that I'd be aware of.
I mean I have seen a case which I am pretty sure doesn't actually exist from my former prof:
ah yea ofcourse
do_PascalCase
it sort of does exists
C# uses it quite a lot
Prefix_PascalCase, prefix_PascalCase, _camelCase
but I hate the C# naming conventions
:D
Do you guys use numbers in your variables?
If so, when?
09:36
NEVAH
I actually did once and I am currently rewriting that program... Guess what will be changed (next to a damn load of other things)
@Pigman168 when my project is called simple2relax :3
@Pigman168 test1, test2, test3
even when it makes sense to do so, I still use testA, testB, testC, testD
for example I made something with ip addresses
and the address would be split up in 4 ints
actually, I simply use it whenever numbers are called for. For example if I have ipV4Address I won't call it ipVFourAddress
it could make sense to name them ipPart1, 2 3 and 4
@CrowleyAstray ye, that is also true, when I name something based of something else, I also use that actual name
10:08
@geisterfurz007 @ItachiUchiha by coincidence I managed my LineCharts being drawn smoothly now... the reason it did not before was due to me overriding the
protected void dataItemAdded(Series<Number, Number> series, int itemIndex, Data<Number, Number> item) method
Oh noes >.>
@geisterfurz007 thats how it looks now and I guess I am finished... gotta present it in 4 hours :D imgur.com/a/EzvEN
That is really impressive! Good luck :)
Damn dude, looks awesome!
ah yes, the relative humidity
10:14
Ich bin ziemlich feucht
why cant humans create working example projects :(
That drives me crazy sometimes ^
there would be no real challange, of course!
first of all, I cannot just download the startup project
nonononono i have to download the entire root package
stupid github
next to that, the sample project cannot be loaded by neither visual studio nor rider
beyond fixable
and i dont have dotnet installed for some reason
next to which, the "To run this project" description is horrible
Do you have to sign up to download anything?
Oh yea I was on the github but the button wasn't appearing, got it now though thanks
"the button wasn't appearing" you mean the download button?
that one doesnt exist
only on the roots
Yea
You could make a tool that downloads certain directories :D
Would be good practice for me/way to learn
10:52
Hi
launching a batch and stay 6 hours cheking performance :p
it takes 6 hours to finish
If I missed something I have to redump the database and retry another 6 hours
wtf
>game is hard
 
1 hour later…
12:13
@Pigman168 there was a website which did download a sub folder from github, but it doesnt work any more
@CrowleyAstray which game?
game of thrones?
@Sayros you mean you have a batch that reads the performance of the database but locks the database (or something else)?
@crowley nice avatar
@Wietlol no , batch to do something and I have to measure its performance
cant you just make a smaller test
then try to see if it works
and then do it for the entire data?
or do you mean that you missed something in the profiling and have to do it again with more profiling stuff?
@Wietlol Sayros' game was very hard at that time
@wonderb0lt why thank you
12:34
Was the website open-source? @Wietlol
Uhm, as in like...
Theres a download to the whole thing
With explanations and stuff :P
yes?
i said that
and the website that you download then is unable to be opened by visual studio or rider
@CrowleyAstray Alles Erdreich ist Österreich Untertan!
Wait so the project that you wanted from Github is the website to download from Github? @Wietlol
12:39
Hello.. need help on error in console.. Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
@ZaheerAttar 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
@Pigman168 ow, no nvm
that website was not open source
Ah ok
anybody..?
1) you need to be more specific, noone is going to know what the problem is
2) This sounds more like a proper question, not something you'd ask in a casual chat
3) Alles Erdreich ist Österreich Untertan! @wonderb0lt
12:50
@ZaheerAttar are you trying to create a database or run a localhost server?
@ZaheerAttar you might want to paste your code (only the important parts of it) into the code snippet tool paste.ofcode.org
13:06
I think I chased him away :(
@crowle
@CrowleyAstray When I tested everything on localhost with MySQL, it work fine.
then what did you do that caused an error? Can you show us the code?
yes here is the hibernate.cfg.xml file paste.ofcode.org/MYmdacXv4jdK3FjJ2iNC3H
now you can see Its not working with Oracle database on clients machine
i think issue is same as mine when i tested with client conf.. it gives me same error, because db doesn't resides on my machine
i am getting error at openSession()
you need to change the property connection.url to the reachable address of the database
jdbc:mysql://localhost:3306/test only works if it resides locally
@CrowleyAstray it is working. Mysql Configuration working fine.. I am getting above error When i configured hibernate with Oracle
and one more thing to ask.. <session-factory name="studentFactory">, the name here, does it matter..?
13:26
Morning, Java!
evening
morning @Michael
13:43
\o/ Michael is here
And I spelled his name correct in first try \o/
And it is tuesday already which means tomorrow is wednesday and that means it is almost weekend again \o/
2
mornin' y'all
Can someone with a dupe hammer help me out?
13:58
Not with a hammer but a vote only :c
Ah, it's a closed question. I voted to close as duplicate and there were already other close votes, so it's currently closed as unclear.
Dupe hammers can reclose as a duplicate right? Or not since it's already closed?
In any case it's this question: stackoverflow.com/questions/45285875/…
My "possible duplicate" auto-comment shows the duplicate
there's already a comment on it, the link is enough
it doesn't need to be reopened
@River i have a dope hammer if that would help
dad jokes not allowed
2
@Wietlol yes.
14:10
ok
14:36
Has anyone used Apache CXF Wsdl2Java to develop a web service?
@Student 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
15:15
Hey @Wietlol @wonderb0lt @gei @crab
 
2 hours later…
16:53
hey guys, this chat room doesn't seem that active...
@BobbyBrown 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
anyways, just wanted to say hi, and tell you that I started an internship in Java and coming from Python it's been rough haha
00:00 - 17:0017:00 - 21:00

« first day (2467 days earlier)      last day (2698 days later) »