« first day (2946 days earlier)      last day (2219 days later) » 

00:00
"When there is no distraction, there is clarity." -Lorii Myers (source)
 
6 hours later…
05:32
picks nose
 
2 hours later…
07:11
expectorates
07:37
morn
morn
@Nicktar \o
Zoe
Zoe
08:36
d3d ch4t
dbl
dbl
d34d u mean?
Zoe
Zoe
Nope
it's d3d in l337 chat, you see
Zoe
Zoe
@Neil but...
actually
d3d = d^(3) * d = d^4
so d4 ch4t
@Zoe please stop xd
too early for math. drinks coffee generously
Zoe
Zoe
08:44
@Neil I've had chemistry for 1 hour and 45 minutes xd This is worse than maths .-.
I've never been very good at chemistry, which is odd because I enjoy physics and math
I remember when I took a chemestry class
Zoe
Zoe
Chemistry itself isn't that bad though. It's the teacher xd
The teacher's name was Mr. Tank
He was awesome
08:50
Morning.
Zoe
Zoe
Morning
I think that was like six years ago
I had an awesome physics professor in college
He'd try to have some wacky experiment to try everyday, sometimes related to the lesson sometimes not
I appreciate the effort he put in. It was a genuinely enjoyable experience for me to attend his lessons
Morning o/
Good morning people of this place
how can i control this logic
i have this three strings a,b,c
i want to do the following
if(a.equals(some_other_variable)) {do something1} if(b.equals(some_other_variable)) {dosomethig2} if(c.equals(some_other_variable)) {dosomething3}
Whats an alternative to this if(a.equals(some_other_variable)) {do something1} if(b.equals(some_other_variable)) {dosomethig2} if(c.equals(some_other_variable)) {dosomething3}
dbl
dbl
08:58
is some_other_variable the same for the three expressions?
nope its not
amen :)
Amen!
Why do you need an alternative?
I want some strict interpretation of the first segment
of the statement;if that is not met, i want to exit
@objectiveME have a map of String and lambdas
09:07
@Neil interesting,care to pseudo what you mean
wait is "some_other_variable" always different as well?
dbl
dbl
y
also he wants to exit
@Neil could be an update statement updating a different field in a row
hmm, it'd be one thing if the strings a,b,or c or the "some_other_variable" were constants
but if they're all variable, then they're simply 3 separate if statements doing 3 different things
there needs to be something in common before you can generalize in any way
09:10
I used this kind of thing using stored procedures and it used to work perfectly
09:23
Just do a switch statement and update some_other_variable to a specific value before each request :)
jk
case does not take booleans
i have thought of case and switch
i am evaluating multiple conditions thats why i have multiple ifs
if the if blocks are related, then a switch statement would be relevant perhaps
here is the problem
but that's just syntactical sugar for a bunch of if blocks
again, you need to have something in common between these cases somehow
I have a wizard that uses some messang api from whatsapp and twilio
the wizard fills some specific fields ina row updating by the telephone number
so i am checking if a field is enmpty and sends a message
09:30
Just ask the wizard if he can help you
problem is, the if statement does not stop when the case is wrong or the condition is wrong
He might figure something out magically
@d0n.key haha
if you use an "if else" chain, you execute only one of the conditions in order in which they're listed
you won't check anything else
interesting
09:32
also, if all you're doing is checking if a field is available, you could create a array of Optionals, and then use a stream to do the appropriate action for each
if you have an empty optional, you obviously won't do anything with it
it basically amounts to the same thing, but it looks a little more elegant at least
 
1 hour later…
10:46
@Neil I tend to over complicate small problems,
@Neil all i needed was elseif($q1_field === $undone){
@objectiveME so in other words, you're like me, I see ;)
dbl
dbl
us this JS or Java...
or PHP :D
@Neil exactly
> ===
must be JS or PHP
Java will never use that heresy
But i confimed the most obscure part of programming probably nobody ever ever thought of it or cared to even consider
@Wietlol Its php
dbl
dbl
10:51
I don't think that $q1_field is valid js name
that's why I've added php on the second line...
well it's that nobody knew what makes up a good program
dbl
dbl
did not know that php has === as well
we still don't know that, but at least trends have emerged.. OOP, functional programming, etc.
@Neil Indeed
people often think I over complicate problems
10:53
at least nobody thinks that "descriptive" programming languages is a good idea anymore
dbl
dbl
come on, FP is like almost hunder years old and still programmers and tenders across the world reinvent it...
like COBOL or SQL
dbl
dbl
java 8 -> reinvent FP...
though we're sort of stuck using SQL
not really reinvent
10:54
java's trying to close the gap created by c#
copy from other languages
that is not reinventing
dbl
dbl
well if ppl were smart enough we were about to use LISP everywhere ;)
atari :D
11:22
whats up???
Morning
Morning.
lolzz
test case fail XD
@Wiet....lol
just have one quick question about regex, like what is meaning of this regex... ".*[^0-9].*"
what it's mean ???
it means that a string should match that pattern
the string that should be matched must contain a non-digit character
@Simmant once you recognize the rules, you'd see that it is composed of three rules
each rule must be satisfied before the next one can be checked
if the rule allows for 0 length strings, then it can be trivially satisfied
.* means any series of characters, including a 0-length string
and [^0-9] means a single character that isn't a digit from 0 through 9
so, basically you're saying match any string containing at least 1 character that isn't a digit
12:00
Every 10 seconds someone dies from diabetes-related causes globally. Every year nearly 3.5 million people in the world die due to diabetes. The death rate is expected to rise by 25% over the next decade. (source)
12:38
Research shows that 94% of the deaths, caused by diabetes, come from the USA.
in 2014, there were roughly 422 million people living with diabetes world wide
@Wietlol I may just assume you're lying
Zoe
Zoe
12:54
@Wietlol Research shows 100% of all the people who die, were born.
@Zoe would be invalid if humans can be prepped via a machine.
Zoe
Zoe
@KarelG Yes, and the laws of physics are only valid 'til there's one discrepancy. Even machine-created humans are still born though, unless it's matrix style, in which case it falls back to invalid 'til proven otherwise
I was just thinking because you got me
some babies dies before they get born. So ... yeah? how can I fit it in your statement?
(there is a word for it: deadborn)
Raj
Raj
Hi good to see all here ... this is first message on chat box me excited !..
@Raj 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
13:05
@KarelG Oof xd
Uh...
No clue xd
Raj
Raj
good evening guys
Zoe
Zoe
Hiya
posted on November 16, 2018

archive - contact - sexy exciting merchandise - search - about ← previousNovember 16th, 2018nextNovember 16th, 2018: Here's a fun comic for a fun Friday, please enjoy!!– Ryan

13:26
Are feeds just spamming in all chats, or are they Java-specific?
no this one has some poopy feeds
RO's can set them up
 
1 hour later…
Zoe
Zoe
14:34
@ballBreaker Dinosaur comics is one of the worst comics I've seen yet xd
Yeah it's absolute garbage and I have no idea why it's included in the feed
Zoe
Zoe
pokes @Michael ^
hi guys
anyone does use openAPI?
14:58
@Doflamingo19 which one?
posted on November 16, 2018 by CommitStrip

Happy Friday, Jaba!
@Zoe Take that back.
Zoe
Zoe
@Michael nej
xD
I have fixed feelings about CommitStrip myself.
Well, it's not programming related so if you don't want it, take it down I guess.
15:13
@Michael it doesn't even have HTTPS
Your mom doesn't have HTTPS
xkcd isn't programming related usually but it's one of the better feeds at any rate
@Michael My mom has more firewalls than you could ever dream of
She's the sysadmin of Clay County, MN
@Doflamingo19 never heard of it
Zoe
Zoe
@Michael Dinosaur comics uses the literally same pics every day. The only thing that varies is the text, and it's usually just boring
15:47
dbl
dbl
15:57
:o
this is horseshit
Zoe
Zoe
16:19
wut?
dbl
dbl
the "kilogram" comic...
Well the kilogram is just based off of a piece of gold isnt it
OH sorry, it's a piece of platinum
dbl
dbl
xD
Which I think if I remember correctly, loses a bit of weight every year
So it's really pretty arbitrary anyways lol
dbl
dbl
man you should go back to highschool :)
This article is about the unit of mass. For other uses, see Gram (disambiguation). "Gramme" redirects here. For other uses, see Gramme (disambiguation).The gram (alternative spelling: gramme; SI unit symbol: g) (Latin gramma, from Greek γράμμα, grámma) is a metric system unit of mass. Originally defined as "the absolute weight of a volume of pure water equal to the cube of the hundredth part of a metre [1 cm3], and at the temperature of melting ice" (later at 4 °C, the temperature of maximum density of water). However, in a reversal of reference and defined units, a gram is now defined as o...
16:26
The kilogram or kilogramme (symbol: kg) is the base unit of mass in the International System of Units (SI). Until 20 May 2019, it is defined by a platinum cylinder, the International Prototype Kilogram (informally Le Grand K or IPK), manufactured in 1889, and carefully stored in Saint-Cloud, a suburb of Paris. A new definition will take effect then, based on invariant constants of nature, in particular the Planck Constant which will then be defined as exactly equal to 6.62607015×10−34 kg⋅m2⋅s−1. This change will define the kilogram in terms of the second and the metre, eliminating the need for...
lol
No need to get rude buddy
dbl
dbl
Kilo gram is 1000 grams ;)
> Until 20 May 2019, it is defined by a platinum cylinder, the International Prototype Kilogram (informally Le Grand K or IPK), manufactured in 1889, and carefully stored in Saint-Cloud, a suburb of Paris.
If you actually read the article you referenced you would have seen this
> However, in a reversal of reference and defined units, a gram is now defined as one thousandth of the SI base unit, the kilogram, or 1×10−3 kg, which itself is now defined by the International Bureau of Weights and Measures,
So maybe you should go back to highschool :)
dbl
dbl
lol
you did not read the whole article I guess :D
You clearly don't understand the comic
Isn't a gram equal to the mass in one cubic centimeter of water?
16:31
It originally was, yeah
i thought a cubic centimeter was defined to be the volume of 1 gram of water
dbl
dbl
Since I'm european I get this one -> external-preview.redd.it/…
this makes more sense than thinking that the compression of water was defined by 1 gram per cubic centimeter
dbl
dbl
what he says is bullshit, as I've already stated...
16:34
@dbl lmao that's funny
Haha whatever man
Facts are indeed bullshit
@dbl i second this
@ballBreaker Research shows that facts and research are only correct 5% of the time.
dbl
dbl
@ballBreaker omg, now i see what you mean
so... for someone who doesnt understand the human interpretation of science and physics... will 1 kg be not equal to 1000 grams?
or will 1 centimeter of water not equal 1 gram?
or will centimeters also change?
and will meters still be 100 centimeters?
and will water remain the same as before?
on a side note... @Zoe did you know you can do react in kotlin?
Zoe
Zoe
Through Kotlin.JS? Figured you'd be able to
16:40
its quite nice though
@Wietlol It actually depends on the temperature
except for the css part
that is horrible
@ballBreaker at 1 degrees celcius* (iirc)
It's 4
css is done using dynamic, which is a big "ew"
but everything else is quite nice
I suppose there is someone that made a css lib on top of it to give you type safe stuff and autocompletion and everything, but whatever
Alright that's enough triggering conversation for one morning, I'll be back later
16:42
imho, html/css is a horrible way of doing UI
or at least, html and css did it horribly
Enjoy your afternoons/evenings/whatever
Zoe
Zoe
Cya crab
so in school they taught us the basic mysql with the "create table stuff;" and database commands and all.
Now I have to make a java-mysql project so I downloaded it on my laptop
but when the mysql shell opens up its pretty much the same but none of the commands they told us in school works
can someone help me with this? I am a real amateur with database and server connections and stuff..
@MartianCactus 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
anyway, im out, laytahr
Zoe
Zoe
17:03
183
A: How to create a database from shell command?

Felix KlingYou mean while the mysql environment? create database testdb; Or directly from command line: mysql -u root -e "create database testdb";

Can anyone give me any tips to make my permutate code shorter while still using Functional programming? Want to see if I did any bad practices or did some roundabout method.

https://paste.ofcode.org/9CfBgXzzfPziC5H3Btp7A5
Zoe
Zoe
17:41
<[^>]
 
1 hour later…
18:49
@Zoe Having fun?
Zoe
Zoe
mhm
I wonder if that works on my phone...
<[^>] doesn't look like it
Zoe
Zoe
It doesn't work in the mobile version of chat
Generics: with <T, U>, is there a way to disallow T == U?
Throw an exception if they're equal?
Zoe
Zoe
Obviously, but without passing explicit classes. Basically the reverse of U extends T. Passing a Class<T> and Class<U> is of course an option
Can't find anything at least
19:00
Reflection?
Zoe
Zoe
Too late though
Just got interested, found this question asking about generics with two methods using the same name, and two different (but equally bounded) generic types. Would've been kinda cool if there was a way to assert T != U as a bound similar to U extends T

« first day (2946 days earlier)      last day (2219 days later) »