« first day (3047 days earlier)      last day (2118 days later) » 
00:00 - 15:0015:00 - 23:00

00:00
"Every day you have a choice to be honest or deceptive. If you commit to telling the truth, you will win. You’ll win more trust, you’ll win more business, and you’ll win more peace of mind. You’ll break the system and be even more successful." -Dale Patridge (source)
00:24
hi guys.
@Arphile 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
 
6 hours later…
06:24
dreams of electric sheep
06:59
Hey! Where is everyone?!
Working 🤔
Geis? Geis?! GEEEIIIIIS!!!!!
Errr.... Yes?
Oh, you're alive, that's good
You can die from working too much ya know
@JennaSloan I appreciate the enthusiasm coming from that observation :)
07:06
I'm just coding some stuff I'll probably never use again
Ok, cool!
I start to hate JavaScript tooling with every second I have to use it.
@JennaSloan What is it?
Hey, I need to output this string as it is, but Java always removes the "". Can Someone helpme? String selectedDays = """";
@elsololobo 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
@geisterfurz007 It's a thing to print stuff nicely
@elsololobo You can escape quotes with a backslash: System.out.println("\"\""); would print "".
@JennaSloan Fancy!
07:14
ah okay. I will test. Thanks
07:48
@geisterfurz007 thanks for somewhat managing the javascript chat room 😃
If noone else is there and something like that is dropped, I am happy to drop a note :)
Got a nice holiday. Now I am back in office to hear that many people went sick (flu) and some went on holiday, leading to scheduling problems
gotcha shove the scheduling together with the next month one >.>
@KarelG Do you normally have so many people sick with the flu this time of the year?
I am fighting another battle with gitlab CI...
07:53
@JennaSloan usually with february/march yes
but I think that they abused my absence :P
Essentially what I'd like to do is to have the dependencies install in one job prior to the testing jobs so that I avoid having three jobs downloading the dependencies each in parallel.
What I tried doing was to have a seperate stage before testing that is there to install the dependencies and write the directory they are in to cache so that the jobs after that can load the dependencies from the cache.
So tiring...
@KarelG Isn't there a vaccine for the flu though?
depends if people is willing to take it. I do that almost each year.
(not mandatory)
There is always that one question stackoverflow.com/q/54861344/4826457
morning all \o
Zoe
Zoe
08:00
@SurajRao That's why we have downvotes :')
That is perfectly possible!
I recommend everybody take all of their vaccines by a certified and reputable professional.
is that just not yours general practitioner?
I had my father do it :)
Hey. Do anyone know what should I include in my resume if I have no experience for a part time job?
08:04
Good morning, Hem!
I dunno, I get my vaccines at the clinic down the street
My dad is a surgeon :D I trust him :)
oh coool
actually a best approach is to do that by a 3rd party. If something went wrong, your dad can get problems
08:06
whatttttttttttttttttttttttttttttttt
@geisterfurz007 I have no experience in programming field as I have never had a job before, could you give me some advise what to include in my resume for skills and experience?
include everything
Like what?
what ever you have done .. any projects? anything in github?
You never had a job. You still have plenty of experience! Add your studies for example, you could add a reference to Project Euler (even better would be if you had the implementations in a github repo you could link to) or any other project you wrote in the past.
08:08
I don’t have projects on github except one battleship
@Hemlata just your grades/certificates/OSS contribution and other working experience (really no student / summer work experience? )
^ Not only programming jobs count! Everything.
I have only solved 30 or 40 questions in Euler out of 600. Do you think I should include it?
I had a few projects that I did but like I told earlier my laptop had some problem so I had to delete everything
@KarelG I don’t have any certificates
08:11
@KarelG why not?
if a person claims that you have solved 50 of them, how can you verify if he really did it himself and not by some cheating (ie googling answers and apply it)?
Fair enough. In theory every github repo you choose as reference, the code could be from someone else.
It really depends on the company you apply to and what they expect. I havent seen them asking for those profiles (Euler/Hackerrank) etc unless they ask you to solve something similar in interview process. It may be a plus but not the main requirement
you can track contributions to a given repo
fair enough
08:18
Yeah that’s right. It’s the reason I don’t wanna include it, as it wouldn’t matter much to them
Then how can I make my profile look better?
08:30
@geisterfurz007 this is what I was working on: gist.github.com/Jenna3715/edc7f6d1efbe3ca6c01a15a0ebe707ab
> It's a thing to print stuff nicely
:D
@JennaSloan I hope that it is just for the fun
the encapsulation score is low here ;o
08:46
horn
/8ball horn ?
@Hans1984 Yes
good
Hi, how can I access the second value of such String[]? final String[] truthy = new String[] {"true", "false"}; I just cant figure out. Can someone give me an advice?
a wolf in a suite :o
I use such String[] to fill my Swing ComboBoxes for example
08:49
I guess you can't call that a wolf in sheeps closing
@elsololobo it's a string array, no?
well?
string[0] and so on
to access them
yu meant truthy[0] :p
08:50
hm for some reason it does not work
yeah truthy in that case
i was speaking in general
JComboBox p1_cbActive = new JComboBox(truthy[1]);
drank a lot general's during my holiday. So nah
haha
fair enough
I CONSUME GENERALITIES
thing is, some cocktails only exists in Havana only
like "7 years general". I liked it but could not find it on other locations i have been. But I could go with mojito/cubana/el presidente/ ect
08:53
@elsololobo You want to have the values from the array in your combobox?
As in all things that are in the array should be selectable?
I want the "false" to be preselected
you need to read the docs then, That is not how it goes
Yeah what KarelG says :)
I will do. Thanks
08:54
the constructor wants a list of options
/javadoc JComboBox#JComboBox elsololobo
yeah as you wrote is i realized that i´m dump
you need a method from it as well.
/javadoc javax.swing.JComboBox#setSelectedItem
08:56
@KarelG Sorry, I can't find that method. :(
this one ^ @elsololobo
Okay. this one works. p1_cbActive.setSelectedItem(truthy[1]); Thank you and sorry that I asked that stupid question ..
I just thought in the wrong direction
@KarelG they also have nice cigars over there
*nods* tried some
and bought some. Got also some that were not sold outside cuba, but as a tourist, you are allowed to take 3 of it with you.
@elsololobo That will improve, trust me :)
09:03
:D
also "smuggled" some bottles of rum
😉
09:22
;)
09:57
/cat
so that's what they sell at McD these days
10:51
Just did a git rebase and merge and stuff.
yeah man!
AND!
(Now here comes the best part)
The CI testing pipeline STILL came out green!
Work is done for today. Cya lads :D
Where is the original for that? :o
⊂_ヽ
  \\
   \( ͡° ͜ʖ ͡°)
    > ⌒ヽ
   /   へ\
   /  / \\
   レ ノ   ヽ_つ
  / /
  / /|
 ( (ヽ
 | |、\
 | 丿 \ ⌒)
 | |  ) /
ノ )  Lノ
(_/
10:57
fancy \o/
lmao the starboard for that :D
lol look how it looks stared
lmao
Mr. Hans, I don't feel so good :D
:p
should i remove it?
Your choice. If nothing helps, a RO can do it anyway ;)
I ll leave it for now
looks funny
Good morning fellow humans
hey
oh humans
nvm
ฅ^•ﻌ•^ฅ
gotcha Hans ¯\_( ͡° ͜ʖ ͡°)_/¯
11:07
ahhh
Blogs und Forensites werden blockiert
.___________________________.
"Forensites" nice denglish that Seite got there
@Neil See now everything is fine. I got the tools to work and start to write tests for all the things. Noone annoys me, I got to work in concentration till noon (which felt like an hour or so) and the tests are green (mostly and if they are not, they are shortly after).
This is the part of programming I like. But sitting there in pure frustration with noone able to help because the average IQ is astonishingly close to that of a sundried river pebble and trying to find a way to fix the same error for 2 days straight literally rams me into the ground mentally. And I have a feeling that it get
Maybe it's just JS though.
@d0n.key Sind denn nur Deutsche in diesem Chat? :)
11:14
Currently yes :)
nein auch ein paar dengländer
@fredoverflow Ich bin kein Deutsche
Ich bin von Frankreich
Ich kann beweisen
Baguette
Danke sehr
very guuuuud
11:19
Imagine an actual french coder in here named buguette :)
that would be proof of good sense of humor
but a german calling himself "bratwurst" would be kinda weird
Also couldn't be played with that well
You need to change the word a little to contain a programming related word.
Oh I see
Baguette -> Buguette
Bratwurst -> Bugwurst if you're really far off
Je voudrais manger du baguette. Garcon, l'addition s'il vouz plait! (or something, it's been 2 decades)
11:26
qu'est-ce que c'est l'addition?
je ne sais pas le mot
bill/invoice?
"or at least it probably isn't what I thought it could be".translate("en_us", "fr_fr");
ah okay
so now we got english, german, french
roken is dodelijk
en_gb
And just as I start with dutch, a wild Wietlol appears
Who is dutch if I remember correctly
I was here all this time already
11:28
we also got indians and malaysians in here
I just... didnt say much
@Hans1984 ah yeah curry, vishna ez
send bobs and no this is racist
haha
and then we have OakBot...
it's just
o/
he doesn't like me
11:31
o/
His dad told him not to talk to me
oak only likes pseudohuman
since its a bot too
Cus I was "bad influence"
/8ball do you like humans ?
@Hans1984 Chances are lower than skynet
11:32
see
Ask him if he likes me
<3
uwu
every bot needs his/her bot-friend
otherwise they feel lonely
/8ball do you like d0n.key ?
@Hans1984 When pigs fly
4
nope
love you too Oakbot
11:33
haha
Not only is that a "no", but also in the most arrogant way possible
yes
bots feel superior to humans
thats why
Yeah exactly
@SurajRao lol
11:39
only those that saw the movie will get that
yeah
11:58
hmm
I give a sorted list to a stream with filter and .collect at the end
the resulting list is not sorted.
Is it parallel?
no
just
Cataracts are caused by the denaturation of proteins in the lenses of the eyes. (source)
/javadoc Stream#collect
2
12:00
> If the stream is parallel, and the Collector is concurrent, and either the stream is unordered or the collector is unordered, then a concurrent reduction will be performed (see Collector for details on concurrent reduction.)
return Collections.unmodifiableList( getSortedList(foo) // got sorted list
  .stream()
  .filter( ... )
  .collect(Collectors.toList())
);
// returns unsorted ._. ??
mcve?
ideone.com/eE8PuV It works here @KarelG
yeah, must be getSortedList that is not working correctly.
That'd be my guess as well :D
12:17
My office is right above a high-end restaurant
I'm hungry
I smell food
I don't want to get off my desk tho because money
you are allowed to take lunch or do you work per hours?
12:36
I work per hours
I don't work at all!
12:53
posted on February 25, 2019

archive - contact - sexy exciting merchandise - search - about ← previousFebruary 25th, 2019nextFebruary 25th, 2019: DINOSAUR COMICS BOOK ARE ON SUPERSALE! THIS NEVER HAPPENS– Ryan

@KarelG we are forced to have at least 30 minutes break for an 8 hour work day
(by law)
depending on the company, the amount of breaks and their duration may be much longer
not sure about that "forced". Could be that is being applied here as well. I believe that is in words of "rights on"
ah. Depends of the "cao"
it is "illegal" to not give at least 30 minutes break time (based on an 8 hour work day)
> If you work longer than 5.5 hours, you are entitled to a minimum of 30 minutes break. You may split the break in 2 times a quarter of an hour.
If you work longer than 10 hours, you are entitled to a 45-minute break. You can split the break in more breaks of at least a quarter of an hour.
> You can not start or end a working day with a break. A break is meant as an interruption of working time.
(translations might have ruined the strictness of the statements)
entitled is the right word
13:20
Can anyone point me to a good guide which could make me start learning the Stream API?

I find it used often in code but am unable to write any myself because I don't understand it
@Wietlol Same or somewhat the same is how it works in Germany. But I don't feel like wasting time while I could earn money, so I stay in office and eat before&after (today atleast, since I came here at around 11:45am)
What advantages do Streams offer other than concise code?
streams are concise
;)
streams have a more natural order of code (chronological order)
and they use the same syntax for different contexts
for example, a foreach using streams is the same code for single threaded looping as it is for multi threaded looping
streams also dont make you required to define the iterator or its behavior
13:37
@Wietlol Lost me at multithreaded loop xD
its simpler :)
@DarshitPatel Can you read them though?
IMO the streaming API is awesome but it happens that it is used wrongfully.
how so?
I wouldn't fixate on it
13:40
@geisterfurz007 Not much, to be honest
using stream API makes your code a bit less maintainable in some contexts.
how so?
and if you want to write for an embedded device (eg rpi), I advise to use the old flow control structures because streams pays in performance
@Wietlol like
like.
13:47
// myList = [5,10,15]
myList.forEach(val -> {
    IntStream.range(0, val).forEach(val -> {
        // do something with val
    });
});
myList
	.stream()
	.flatMapToInt(it -> IntStream.range(0, it))
	.forEach(it -> {
		// do something with it
	});
dat overhead
only issue I have with it is that you have to use flatMapToInt
if you cared about performance, you would use C++
You can flatMap(it -> IntStream.range(0, it).boxed()).
c++ bah
13:51
@geisterfurz007 i could, but then I would be bothered by the .boxed()
if someone decides he has to use C++ for a new project, he really should consider sticking to C or Rust. Not C++ at all.
C then
if you cared about performance, you would use C
@Wietlol nerd
im just spoiled :)
Why do I/O errors occur? I work at a SaaS company, with 40+ microservices deployed. I've often found that there are I/O errors leading to quite some customer support tickets (which I absolutely hate doing)
These I/O errors occur with doing a REST call to another microservice
13:57
IO errors occur because something went wrong during an IO operation
   There is an error while processing the request
   org.springframework.web.client.ResourceAccessException: I/O error on POST request
   for URL
And none of the people here have a clue
i suspect inner exceptions
No, there aren't any inner exceptions
because I have the source and the logs of the service being called too
Zoe
Zoe
14:12
@KarelG what's wrong with C++?
everything! that language was even created as a joke.
Hi all
G'day o/
when I importing maven project into eclipse
I am getting the below error
Zoe
Zoe
@KarelG no u
14:14
JSR250: CommonAnnotations for Java, 2.3: @Resource methods must be setters that follow the standard JavaBeans convention. i.e. void "setProperty(<Type> value)" for "<Type> property". AbstractStagingHibernateMappingTest.java /ebcrixrange01/src/test/java‌​/com/ikea/ebcrixrange01/test/staging line 13 Annotation Problem
Zoe
Zoe
I like C++
can anyone knows why i am getting this error
Zoe
Zoe
Some of the symbols are confusing at first, but it's really nice
I know one reason, but Zoe will whack me for saying it...
It's Eclipse
14:25
@fredoverflow I loled
Zoe
Zoe
@Wietlol quack is wack bruh
Nvm, pointers
The pointers are passed by value.
For example, if you reassign a parameter inside of the method body, it doesn't get changed outside the method.
Zoe
Zoe
Yeah
String s = "foo";
method(s);
System.out.println(s); //outputs "foo"
...
public void method(String s) { s = "bar"; }
14:46
in java, references are passed as value
while pass by reference means
passing a reference to a value
the value could be a reference
so, you could pass a reference to a reference to a value
now, lets apply rEcUrSiOn
yes it is eclipse
00:00 - 15:0015:00 - 23:00

« first day (3047 days earlier)      last day (2118 days later) »