« first day (3314 days earlier)      last day (1627 days later) » 

12:00 AM
You can bring any calculator you like to the midterm, as long as it doesn't dim the lights when you turn it on. -- Hepler, Systems Design 182 (source)
 
 
7 hours later…
6:39 AM
Good morning
 
Good morning.
 
posted on November 19, 2019

 
7:41 AM
@geisterfurz007 Hola, any news?
 
Good morning! Nope if you are asking about the contract stuff :)
 
yep, why is there other news to give other than the contract stuff?
 
idk! Maybe I already forgot other stuff that you could have meant
Only unrelated news I got is that the security restrictions of macOS are absolutely helpful to increase developer productivity.
I am now trying for half an hour to get the flutter build to run on my mac.
 
beh, no different than windows in that regard
I don't understand why they can't simply do permissions like unix does permissions
That's completely intuitive for me
 
Oh yes there is a difference!
When running the same build command on windows, I don't have to click through 20 popups to make sure that I want to run the unsigned tool in flutter before restarting only to be hit by the next wave of popups asking if I really, really, really want to do that!
 
7:46 AM
once upon a time, windows would ask every single time
but I think they fixed that in versions after 98
 
Yeah fortunately windows understood that users don't care, really :P
 
the whole idea is lame anyway. like you would get angry at windows for not asking you if that is what you really wanted..
 
sorry
 
lol, a lot of pent-up anger I see
 
My command history is literally 15 times flutter doctor
 
7:49 AM
on a semi-unrelated note, eclipse will ask for username and password to access the svn repository at work
 
Each time I run it, I get some "mimimi, this isn't signed, move it to the trash". Then I gotta go over to settings > security, enter my password, allow the unsigned thing, run flutter doctor again, get a popup that I really want to run the unsigned thing and after that I get a new one.
It's so annoying...
 
because we're required to change our password often, and because eclipse will stupidly reattempt several times with the saved username and password if it fails the first time, I can't actually save the username and password
After 3 attempts, my account is literally blocked
 
HAHAHA
That's funny :')
 
Learned that the hard way.. opening eclipse after changing my password will literally block my work user account
The only way to get around that is to put in username and password each and every time..
and that's damn annoying in of itself
 
I logged in at a computer in a training room and forgot to log out on it (it was just locked). Someone else in that room later moved their paper notebook over so that it laid down on the return key which caused windows to think that someone tried to log into my account permanently with an empty password, locking my account as well...
Also: my condolences for having to use svn.
Another one of Apples shenanigans: When I built a React Native app with Xcode, I had to (I shit you not) repeat my password for 30 times at least to sign every single dependency I had.
 
7:59 AM
@geisterfurz007 ikr?
I figured at least my second job would use git. I was wrong apparently
they really like svn here in Italy apparently
@geisterfurz007 hah
I can already see the code for that.. `for(dependency : dependencies) {
dependency.sign();
}`
 
That's how it felt. The first time after I was prompted for the sixth time, I was sure that I must have misspelled my password five times in a row. I started all over the next day and noticed a tiny progressbar in the background that was only visible for a splitsecond after submitting the password before the thing popped up again. It jumped forward just a percent or two each time I entered my password. That gave me the strength to continue :P
 
the same thing happened once when I tried to synchronize the svn repository
 
password for each file? :D
 
I didn't save the username and password because of the problem indicated above, but it still kept asking, and my idea is that it was asking for every single project
 
8:06 AM
and yeah, after you provide the username and password only to see the very same window underneath, you begin to think maybe you messed up your password
 
8:53 AM
svn
that abbreviation only is "enough said" 😀
 
9:04 AM
there's even a way to upgrade to git in a relatively painless way
I suppose they just figure if it ain't broke, don't fix it
 
svn per definition is already broken ._.
THANK GOD!
After spending an hour trying to get flutter build appbundle to run, I am finally past the step "Initializing gradle"
 
lol
 
"Resolving dependencies..."
 
sounds like flutter is working really nice for you
 
With the impressive connection speed of the macbook that also tends to just disconnect from the network for no reason while still displaying a perfect connection in the status bar, I am sure that this step will not at all take up as much time as the previous one.
Flutter isn't the issue. Flutter on the macbook configured for android is the issue.
 
9:07 AM
> macbook
 
Mostly the absolutely depressing download speed of the macbook is the issue.
 
I see
have you tried a Wietbox?
 
"(This is taking an unexpectedly long time)" YEAH WELL NO SHIT! HURRY UP THEN DEVICE!
 
the last person to try a Wietbox caused the previous universe to implode
 
hehe
 
9:09 AM
"gen_snapshot" cannot be opened because apple cannot look for malware in it
I am done
fuck that
 
morn
 
morn
 
 
2 hours later…
11:00 AM
Finally! Got all 5 versions built and ready for comparison \(-_\)
Happy lunchbreak!
 
it's like an hour to lunch, man
 
Not in my company!
 
enjoy your lunch then :)
I will be eating my pasta shortly
 
I got bread :')
Enjoy your pasta!
 
Enjoy your bread!
 
11:07 AM
BREAD!
bread cat
 
11:26 AM
🍞🐈
 
nice
 
@geisterfurz007 that must be a gnarly bread
 
11:45 AM
It was pretty boring, actually
 
we have the possibility of having cheese garlic bread or bread with nuts and cinnamon
why do we still have boring bread in this world?
 
depends on what you think is boring
 
Bread with butter and cheese, I guess.
People in my office don't like me eating garlic...
 
I think a slice of bread with a slice of cheese is fine
 
but would you call a slice of simple bread your most favorite thing to eat?
 
11:52 AM
no
 
that would be a slice of cheese
 
therefore cheese bread :)
 
Coca-Cola was the first commercial sponsor of the Olympic Games in 1928. (source)
 
12:01 PM
mhmm having a dinner with toasted bread, a cheese fondue bowl in front of you and good drink.
 
sounds good
I only got some pasta with pumpkin and a pear to eat for lunch
 
/8ball is coca cola VERY healthy ?
 
@Hans1984 Outlook good
 
@Neil does those match? o.O
 
12:05 PM
/8ball should i drink cola instead of taking vitamins ?
 
@Hans1984 Yes definitely
 
I see
 
/8ball should I constrict my diet to only cocacola for life?
 
@Neil That's impossible
 
> in 37% of Americans, the thirst mechanism is so weak that it is often mistaken for hunger.
 
12:07 PM
/8ball should we replace all of our food with coca cola ?
 
@Hans1984 Very doubtful
 
huh?
 
> Are you drinking the amount of water you should every day? As a rule of thumb - drink half your weight in ounces of water a day. If you workout 3+ times a week and live in a humid climate add another 24+ ounces to that number.
 
heh what a coincidence
> To loosen a rusted bolt: Apply a cloth soaked in Coke to the rusted bolt for several minutes.
@Neil ^
 
Wat? That would only be 1.75 liters for me.
 
12:07 PM
seems acceptable
 
@KarelG That can't work
 
It will work!
Neil you underestimate the chemical bomb coke is :D
 
then so would say, vinegar
it's not that much more acidic
 
Coke is funnier tho!
 
not sure. Not that well-savy with chemistry
 
12:13 PM
 
hehehehehehehihateyouneil :)
 
:)
 
@KarelG I drink about as much at work alone O-O
 
12:28 PM
well, it is just the bare minimum
I drink more than I need
yeah I drink coffee/alcohol which requires to be compesated
 
You know what you do to dead chemists don't you?
You barium.
 
user12057507
:smile
 
@cvaram96 Welcome to the Java Chat, the room for Java enthusiasts! I'm Oak, one of the room's bots. If you want to ask a question, just ask it and someone will respond if they feel like it. But remember that this room is not a help desk or tutoring service! If you want to just hang out, then welcome aboard! Oh, and the room's full list of rules are posted here.
 
hehehe, outplayed :') Welcome!
 
12:35 PM
🙄
 
1:13 PM
> drink half your weight in ounces of water a day
uhm... that means I need to drink 40 litres of water per day?
 
OUNCES
 
yes, ounces
my weight = 80kg
half my weight = 40kg
half my weight in ounces = 1410 ounces
1410 ounces in water = 40 litres of water
 
Wietlol is downing 20 litres of vodka each morning so he has to compensate.
 
the rule is missing a very important factor
the ratio
 
It's missing the incredible persistence of some people who are trying to bother other people with absolutely useless things they found to be wrong.
incredible not being a good thing here.
 
1:18 PM
@Wietlol you misunderstood it
 
inconceivable
@KarelG perhaps
 
you need 40 ounces water
but that does not go up if you use a different weight unit such as lbs
 
@KarelG intentionally probably to show how dumb we all are that we were missing this fine little details spotted by allmighty (vomits) Wietlol -.-
 
I am surprised that wietlol is 80kg tho
he is a dutch man. So he must be > 1m85
with that weight, he's probably a skinny dude, a twig
 
Maybe he is a dutch woman?
Also: I am 1.85 and at 70kg. And indeed a twig :D
 
1:21 PM
so, drink half your weight in kilograms as ounces of water a day
@KarelG I am generalizing
 
You are so intelligent Wietlol, that you figured it out that fast.
 
@geisterfurz007 I am a software developer, I dont figure out the specs on my own
 
I read somewhere that drinking a lot of water ultimately isn't particularly beneficial to the body
it's not being dehydrated that's the important thing. Being super hydrated isn't better
 
depends on how much "a lot" is
 
@Wietlol "excessive amounts"
 
1:23 PM
googles "excessive amoutns"
at least, google also doesnt know how much "excessive amounts" is
 
well gee, I suppose we're just out of luck then
if only there were a way to look up the definition of words
would be swell
 
but now I dont know how much "excessive amounts" is
perhaps I am already drinking too much, but I just dont know it yet
 
something like 10l on a day
 
and might kill myself this evening
perhaps I am already dead
 
I found out that drinking excessive amounts of water after having taken ecstasy is fatal
 
1:30 PM
@geisterfurz007 go do some exercise
with weights
 
even small amounts above normal
 
A year ago I was at 60kg, don't pressure me!
 
o.O
 
ok, 62
 
is there a concise way to do this
 
1:31 PM
sure
 
@Neil ummm...
 
final List<IFoo> list = new ArrayList();
list.addAll(getThisList());
list.addAll(getThatList());
list.addAll(getThoseOtherList());
...ect
 
@KarelG to do what?
ah
 
@geisterfurz007 ?
 
How did you find that out?
 
1:33 PM
and at the end return Collections.unmodifiableList(list); :|
 
because I read a news article about some girl that died from drinking too much water after taking ecstasy
 
List.of(getThisList(), getThatList(), getThoseOtherLists()).stream().flatMap(l -> l.stream()).collect(Collectors.toList())
 
GOD DAMN IT!
 
ah unfortunately I am stuck at java 8
 
something like this? But I don't think that's more readable than your initial suggestion
 
1:34 PM
A second late!
 
I wish that as well
 
Hi. Stupid question: what is difference between Animal a = new Animal(); and Animal a = new Cat();
 
@MikaelKen Welcome to the Java Chat, the room for Java enthusiasts! I'm Oak, one of the room's bots. If you want to ask a question, just ask it and someone will respond if they feel like it. But remember that this room is not a help desk or tutoring service! If you want to just hang out, then welcome aboard! Oh, and the room's full list of rules are posted here.
 
@wonderb0lt You can save a few bytes by doing Stream.of and removing the stream() :P
 
@MikaelKen one is an animal, the other is a cat
 
1:35 PM
@MikaelKen One creates a new Animal and one creates a new Cat :)
 
@Neil mdma can cause a strong thirst feeling, which probably led to her drinking too much water. That lowers the salt level in your blood, which is bad AFAIK.
 
@geisterfurz007 Fair enough ;)
@KarelG There's also people who get dehydrated because they dance for 8 hours straight
 
but I can also create a cat like Cat a = new Cat();
 
true
 
I was thinking of Stream.of(supplier1(), supplier2) but hey
 
1:36 PM
Yes, indeed
 
@MikaelKen Cat can cast down to Animal
 
so there is no difference?
 
there is
 
you mean cast down to cat?
 
you have to look at it in parts
 
1:36 PM
but in this case Animal a = new Cat(), a is a Cat instance handled as an Animal instance
 
you have to comprehend inheritance first in order to understand that
 
Animal a
Cat c
Dog d
Wietlol l
are all variables
 
@Neil Oh! I thought you found that out yourself as in you "experienced it yourself"
 
Whereas Cat a = new Cat() is a Cat instance handled as a Cat instance
 
the type of those variables is their "upper bound"
 
1:37 PM
@geisterfurz007 you caught me, I'm actually dead ;)
 
it is also often referred to as "static type"
 
We are all variables, and the world is but a Virtual Machine - @Wietlol Shakespeare
 
for example, Animal a is a variable with static type "Animal"
 
@Neil Could have been that you were just really sick >.>
 
the actual object that it refers to could be a Cat or a Dog tho
but at least, it is an animal
(assuming cats and dogs are indeed animals)
 
1:38 PM
@MikaelKen Use an instance of Cat as Animal whereever you only need an Animal instance. For the same reason that you'd expect List<String> rather than ArrayList<String> in your methods
List is just an interface, but you'd use List because you don't need to specify how it is implemented
 
new Cat()
new Dog()
new Lion()
all create new objects
 
Don't listen to him. He's lion.
 
those are all animals, so Animal a could refer to any of those
but their behavior might be (probably is) different
 
Probably you wouldn't make Animal a class you could instantiate
 
Animal a = new Cat()
 
1:40 PM
and in all likelihood, it's an interface, not even a class
 
will give you access to all members defined by Animal, but not those only defined by Cat
Cat c = new Cat()
will give you access to all members defined by Cat
(keeping visibility modifiers in mind)
did we scare @MikaelKen off?
 
reading :)
 
You often see in code List<String> list = new ArrayList<String>();
because you use it as a List<String>. You don't care that its implementation is ArrayList
 
no you dont
List<String> list = new ArrayList<>();
 
@Wietlol don't confuse him please, it's really quite simple
 
1:48 PM
:D
 
new ArrayList<>() is shorthand for new ArrayList<String>()
 
"dont confuse him, let me bring up generics first tho"
/shrug
 
¯\_(ツ)_/¯
 
that isn't explaining generics
 
1:50 PM
just showing Mikael something which may already have been seen
 
so Animal type wont have access to Cat's members unless they were overriden
 
ye, basically
 
yep
and even then, you won't have access to Cat methods which aren't already in Animal
generally it's an antipattern to have to cast to Cat to access methods only in Cat
ideally you'd only need an instance of Animal, and you wouldn't care that it is a Cat instance
 
OK
thank you
 
Can the ThreadLocal be used to store execution trace?
 
1:54 PM
execution trace?
there is probably a better approach
 
ThreadLocal can hold any information
what it does is hold information local to the thread that's running it
that's all
 
@Michael me at a vegan dinner
 
haha
 
2:57 PM
Collectors.summarizingInt(Person::getDependents)
hmm, didn't know Collectors had this
that's interesting
returns an IntSummaryStatistics instance with statistics of the numbers returned from Person::getDependents
min max average count etc.
 
funny, the approach of summarizingInt is much different from what I expected of it
 
what did you expect it to be? lazy calculation?
 
listeners
 
listeners?
it's got an accept method
you simply call it for every Integer
 
when an item gets processed by the stream, it could pass it to the listeners, such listeners could keep track of count, min, max, sum, etc
then, it would collect the values from the listeners and construct a simple data class containing the results
but it appears they went for a combine approach
 
3:11 PM
that seems wholly unnecessary
 
I am using selenium to scrape something , but sometimes i get "?" character instead of some non-english ones , do I need to import something or change encoding?
 
@adrijan971 Welcome to the Java Chat, the room for Java enthusiasts! I'm Oak, one of the room's bots. If you want to ask a question, just ask it and someone will respond if they feel like it. But remember that this room is not a help desk or tutoring service! If you want to just hang out, then welcome aboard! Oh, and the room's full list of rules are posted here.
 
it just works like maxBy, except you're not only asking for the max, but also the min, the average, the count, etc.
@adrijan971 probably, but they could also be legit "?" characters :)
change it to UTF-8 and see
 
@Neil Actually its character " č " . Tried to change to UTF-8 but then , I got error on dollar sign
 
@Neil exactly
the max functionality could easily be implemented as a listener tho
as are the min, sum, count and even average
 
3:17 PM
@adrijan971 well perhaps its encoding isn't UTF-8
I can't answer that for you though unfortunately
 
@Neil Its okay ,np
 
I've got question regarding Java enterprise app hosting.
What's the best overall hardware server configuration in 2019 for hosting Java servlets enterprise-level web app?
And database for the app?
 
@JohnDoenym depends entirely on what it does, how many users you expect to access it on a daily basis, and how many requests a user makes while using it on average
but my guess is you probably wouldn't need anything too fancy unless you're getting more than 10 requests per second
 
3:33 PM
@Neil I think I solved it , but if I changed to UTF-8 in Eclipse settings , when I deploy app on different machine / system , its not going to make problems?
 
@adrijan971 the encoding of eclipse just changes how the code gets interpreted
or if it isn't code, just the visualizzation
whether or not another machine / system interprets it correctly depends entirely on what kind of resource it is
if it's code, it simply compiles properly and there are no issues
otherwise, you should be mindful
 
Thank you , i get it now :)
 
having few thousands of users at the same time, using webapp for between 10 and 20 minutes every 1hr, for 8hr/day, 5 days a week.
Webapp is for gathering usage data from vehicles, ~15k of them, for 5 sec every 1 minute for 8hr/day, 5 days, a week.
Plus nightly unit tests of app build.
*of app code
 
is it every 5 seconds per user or 5 seconds total?
 
And CI/CD server, and team management server, for code repo, docs, teamchat, bugreports and project.
5 seconds per vehicle
 
3:44 PM
ok, so by that calculation it's going to be roughtly 3000 updates per second?
 
5 seconds of gathering data from every vehicle, every minute, every hour in standard workday.
 
I think you're going to need to have multiple servers to handle this
to know for sure, you need to do a calculation for how much a single request takes in milliseconds
at 3000 updates per second, you'd need to be able to handle a request in 1/3000 seconds
so that's pretty damn fast
you can't hope to achieve that using one server
if you had 3 servers splitting the workload, then it's 1/1000 so one request per millisecond
etc.
plus, I assume we're also talking about users, not just vehicle updates, am I right?
you have to factor that in as well
if you can optimize that better, like say one request every 15 seconds, then your requirements drop by 67%
it depends entirely on what you can spend and what you need
 
some IoT things getting simultaneously data from 15k vehicles, for 5 seconds of a whole minute, during 8hr/a day work.
then, the data is sent to the production web app which is then stored inside database.
There should be production version of webapp and database for it, and copy of those for testing purposes. And both should be redundant.
the data gathered from 1 vehicle weights 500kb.
gathered during those 5 secs
so during workday, it would be 500kb * 1/12 * 60 * 8.
for one vehicle
 
4:14 PM
Class A{

}

class B{

}

A object= new B(); //why this? why not "new A();"?

thanks a lot :-)
 
@user11838630 Welcome to the Java Chat, the room for Java enthusiasts! I'm Oak, one of the room's bots. If you want to ask a question, just ask it and someone will respond if they feel like it. But remember that this room is not a help desk or tutoring service! If you want to just hang out, then welcome aboard! Oh, and the room's full list of rules are posted here.
 
@user11838630 Syntax error: Line 1
 
@Michael ohh but why A object = new b(); thats the question,

why we are instantiating the object of A by 'B' class..thanks :-)
 
 
1 hour later…
5:46 PM
I hate it when I commit changes to my local Git repo, and then find out that the remote repo has newer changes. Then, when I pull them, everything gets out of wack. And I have no idea how to use Eclipse's Team Synchronizing perspective. >.<
 
6:02 PM
The red X's won't go away no matter what I do. The only way I know how to fix it is to clone the whole project from scratch.
 
@Michael Have you tried turning it off and on again?
 
6:26 PM
@geisterfurz007 I restarted Eclipse, yes.
 
In that case I cannot help you any further, sorry
 
When I right-click on a file with a conflict and click "Mark as Merged" nothing happens.
 
I haven't used eclipse in ages and I think never with git together, sorry :/
stackoverflow.com/a/27914508/6707985 Maybe that helps? It sounds like it might be relevant @Michael
 
6:57 PM
@geisterfurz007 Hmm, I think I am using EGit. That must be why Team Synchronization view isn't working.
 
It's impressive that after 4 years stuff like that still doesn't work together properly. But maybe you can find something useful in that answer if that's the case :)
 
7:11 PM
I don't know what effect following the directions in that answer is going to have on my repo. I think I'm just doing to re-clone it. Thanks though @geis
 
Oof! Good luck then :)
 
Thx
 

« first day (3314 days earlier)      last day (1627 days later) »