« first day (3014 days earlier)      last day (1927 days later) » 

12:00 AM
"He who is not courageous enough to take risks will accomplish nothing in life." -Mohamad Ali (source)
 
 
5 hours later…
5:22 AM
farts
 
USM
6:06 AM
Hey Guys,
What is Metrics , Liveness and Readiness of Java appliction? and why is it used?
 
USM
6:17 AM
with respect to Kubernetes
 
6:55 AM
I'm building a PrimeFaces website project in intelliJ using maven. I've used maven installto generate target directory. There is a .war file here. How can I run the site on localhost?
 
7:42 AM
@Zeta.Investigator install tomcat as a service and then run the service with the war file as an app
or jboss if you prefer that.. some web hosting container
 
@Neil I've got tomcat up and running (I don't like startup with windows)...it is running on port 8080. How can I run the mywebsite.war now?
 
@Zeta.Investigator you dump the war into the webapps dir and start the service
it automatically checks for wars and deploys them
the context root will be the name of the war without the .war extension (basically the name of the newly created folder)
so you'll access it like localhost:8080/primefaces basically
 
@Neil The whole war file is ~20MiB. You mean it contains all resources and html and all webstuf in only that war file?
 
in a very general sense, a war file is a web application, meaning it could contain html but it could also be purely server-side
presumably you'll have to configure your war file to refer to the primefaces web application
it's been a while since I've used primefaces, but when I used it, it was purely a jar file
I suppose they moved it to its own web application
 
λ ls -a
./  ../  ROOT/  docs/  examples/  host-manager/  manager/
Here is the files on my webapp dir. So I need to create a directory and just copy mysite.warinto that?
Then localhost:8080/mysite?
 
7:53 AM
is there not a webapps directory?
 
├───bin
├───conf
│ └───Catalina
│ └───localhost
├───lib
├───logs
├───temp
├───webapps
│ ├───docs
│ │ ├───api
│ │ ├───appdev
│ │ │ └───sample
│ │ │ ├───docs
│ │ │ ├───src
│ │ │ │ └───mypackage
│ │ │ └───web
│ │ │ ├───images
│ │ │ └───WEB-INF
│ │ ├───architecture
│ │ │ ├───requestProcess
│ │ │ └───startup
│ │ ├───config
│ │ ├───elapi
│ │ ├───funcspecs
@Neil Yes there is.
 
then yeah, dump yoursite.war into webapps dir and then start up tomcat
if it works, you should see a mysite directory be created
and then yeah, localhost:8080/yoursite
 
@Neil Nice! I brought-up the website!
 
@Zeta.Investigator ;)
 
There are other stuff in that webapps dir. Can't I move my .war file into a directory to make things neater?
 
7:57 AM
every other folder in that directory pertains to an application
so in theory localhost:8080/docs is a legit web application
I'm guessing it's a tomcat reference guide
you can delete that and probably nothing bad will happen (probably)
 
Worse case scenario: you inadvertently destroy the entire multiverse throughout all of time and space.
 
@JennaSloan shh.. we don't talk about that particular scenario
at my old job, our web application had some huge dependencies (result of converting literally thousands of IBM rpg programs to java code) and the final war file was 780 MB
tomcat could handle it, but we switched to websphere.. and that couldn't handle war files that big to my great joy
So I ended up "deploying" a war file with everything except the dependencies, and then the dependencies were serendipitously thrown in there after the fact
 
Only 780 MB?
 
So if I want to deploy mysite to a server, I should ask for a java-server or what?
 
it was hacky and horrible, and I'm not proud
but it worked.. and management couldn't have cared less
@Zeta.Investigator ask for a web app container like jboss, tomcat, websphere
they're mostly standard.. you really only have to worry about the parameters which change from one client to the next
like say, database connection
 
8:09 AM
@Neil How does PrimeFaces, Spring boot and Flask compare, performance-wise? I looked up a webstie and Spring was faster than Flask in all tests
 
I have files that are over 36 GB
 
@JennaSloan resource files though.. not dependencies (please say it ain't so..)
@Zeta.Investigator I'm not familiar with Flask
PrimeFaces and Spring boot do different things, don't they?
not sure what you want to compare
 
@Neil If I want to bring-up a website similar to this: octopart.com , I'm looking for a good framework to learn
 
@Neil Nah, it's just a program that's over 50 GB uncompressed
 
And I'm pretty much set on not using any thing javascript
 
8:14 AM
ouch
 
@JennaSloan Java 10 is already end of life. You want Java 8 or Java 11.
 
@fredoverflow I'm fine with Java 8 rn
That's jre1.8.0_51
 
Why did they kill off Java 10 so quickly anyway?
 
Why did they kill off Java 9 so quickly?
 
also
 
8:30 AM
Because 9 and 10 aren't LTS?
 
morn
 
morn
 
yeah srly
java 7 and 8 where there like forever
then they rushed through 9 and 10 like wtf
 
@Hans1984 Java 12, 13, 14, 15 and 16 will be just as "rushed"... Java 17 is going to be the next LTS.
 
@fredoverflow Low Temperature Shift?
 
8:38 AM
why 17 of all things?
 
nobody is going to use java 12, 13, 14, or 15 if they're rushed
everyone will simply wait for the next stable release
 
i ll stick to java 7
end of story
 
since when did java standard development turn into Firefox?
Introducing Java 57!
 
:o
 
USM
9:12 AM
3 hours ago, by USM
What is Metrics , Liveness and Readiness of Java appliction? and why is it used?
3 hours ago, by USM
with respect to Kubernetes
 
@Hans1984 A new Java version every 6 months, a new LTS version every 3 years. So the LTS versions are going to be Java 11+6n: 11, 17, 23, 29, 35, 41...
 
I see
 
@Neil Java 57 will be released in September 2041.
 
interesting approach
I look forward to it. I have heard great things about it already
 
Fingers crossed for value types :D
 
9:19 AM
that'll be Java 68
 
Mmmmh first time I'm doing honest-to-god Java in months... it's Eclipse RCP
@USM Did you get those question answered already?
 
USM
@wonderb0lt no
 
Alright, are you familiar with what Liveness, Readiness and Metrics are in the general Kubernetes context?
 
USM
as far as i know , liveness is checking application is live or not and readiness is application is started or not and metrics is used for getting memory related things
my understanding...
 
Well, yes. For your run-of-the-mill web API liveness would be if it is running from a technical standpoint, i.e. your application server has booted up.
Readiness would be if the database and other external dependencies are reachable, or if the cache is pre-heated and such things. Things that mean the service is ready to accept requests. The difference is, they don't need a restart to fix them
Metrics is resource metrics like CPU usage, memory and so on, but could also be number of requests served and such
 
USM
9:33 AM
ok
 
mkay.
 
9:47 AM
when is java 69?
or java 420?
(i know that will be in approximately 205 years, but still
can we perhaps speed up the process?
 
USM
in the year 2108
for sure
@Wietlol sadly u wont be alive to use that
 
what makes you think that?
 
@Wietlol (69-9.5)/2+2018 = 2047,75 -> September 2047
 
 
9:51 AM
@USM March 2223
 
USM
@Wietlol we have to bear you for another 10 – 14 years more. :)
 
bear?
no, lion
 
USM
tolerate
bear = tolerate
 
i dont recognize "bear" to be a synonym for "tolerate"
 
USM
We humans do.
 
9:53 AM
you do
 
you be lion
 
am bigcat
 
you! no, you!
no you
 
no u
 
negative thou
 
Zoe
9:58 AM
@USM awoo?
 
I read that back in the day "thou" was like an informal you and you was formal
like you would say "you" to someone of nobility but "thou" to your wife for instance
However it's not without a certain irony that we now use "thou" today as a formal "you"
 
> In Old English, thou was governed by a simple rule: thou addressed one person, and ye more than one. Beginning in the 1300s thou was gradually replaced by the plural ye as the form of address for a superior person and later for an equal. For a long time, however, thou remained the most common form for addressing an inferior person.[4]
 
Zoe
Obvious Wikipedia copy-pasta 😂
 
Doth thou have a mug of ale for me and me mate? He has been pitched in battle for a fortnight, and has a king's thirst for the frosty brew that doth might brow for doth!
 
Zoe
How dareth thee useth such inf'rmal language?!
 
10:21 AM
why do we seraialize objects in java ?
 
@Vishnu 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
 
ok @o
 
because we want to
 
@OakBot
 
@Vishnu Type /help to see all my commands.
 
10:22 AM
/help
 
pls dont
 
> My commands are also listed here: github.com/JavaChat/OakBot/wiki/Commands
 
-_-
 
/cat
 
10:22 AM
:3
 
/fatcat
 
oh, thats me
old pic
dont mind
 
anybody here ?
@Han
 
hello
 
10:23 AM
@Hans1984 nice pic
hello
 
thanks
 
itna sannata kyon hai bhai ...
java will not be free from this year
 
@Vishnu can you ask a more specific question?
 
I dont speak hindi
 
anyone sad about that :-(
 
10:23 AM
java will be free
 
not be free ?
 
there will always be a community version atleast
 
@Hans1984 a lot of people dont understand the LTS change
 
which will be free
 
10:24 AM
Oracle to charge for Java from Jan 2019
 
yeah,it seems @Wietlol
 
and those who dont understand, are furious
and those who are furious, spread their beliefs
and those who spread beliefs, are taken for trustable sources of information
 
LTS change
 
I really like the concept behind records in Java 11
 
i too dont understand it ,... :-(
 
10:25 AM
@Vishnu trust me, it is still free
butt!
you can pay for long term support if you want it
 
ohh is it sooo....
so in case yu dont need support its free .....thats nice
Thanks @Wietlol
 
10:43 AM
/8ball will java stay free
 
@Hans1984 When pigs fly
 
so it will stay free
good
 
/8ball is Java free?
 
@Wietlol That's impossible
 
@Hans1984 that explains his answer to you
Java stays free when pigs fly
so it cant stay free
 
10:48 AM
yes
/roll
 
@Hans1984 2
 
ugh
 
/roll
 
@Wietlol 2
 
yas
 
10:52 AM
pigs.forEach((pig) -> pig.fly());
 
Process finished with exit code 0.
 
no u
 
12:00 PM
Jehovah Witnesses don't vote in presidential elections. (source)
 
good for them
 
12:57 PM
posted on January 23, 2019

archive - contact - sexy exciting merchandise - search - about ← previousJanuary 23rd, 2019nextJanuary 23rd, 2019: What a crazy story! I'm glad it's entirely made-up and not based on a real-life myste-- WAIT A MINUTE– Ryan

 
 
2 hours later…
2:32 PM
@Neil pigs.forEach(Pig::fly)
 
@geisterfurz007 I knew someone would correct me sooner or later
 
c:
I like lambdas more though. Would've left the parenthesis but other than that I'd rather use yours.
 
@Neil V
> this perfectly resembles an issue i solved last week
an update query was executed on the database, it completed successfully
but nothing was updated
and then, everything went to shit
process should have stopped there wif an error
 
@Wietlol launching an update which does nothing isn't an error
 
that is why it completed successfully
but the application assumed that one record was updated
your application did the same
 
2:38 PM
well the application shouldn't have assumed that :P
which application?
 
it took an empty collection of pigs and called the fly method on each of them (none)
 
I didn't say pigs was non-empty
 
I say it is :p
if it wasnt empty, the process would finish with an exit code of 1
because Pig does not contain a method fly
 
I would say that it wouldn't finish with an exit code of 1, because it's a compile error, not a runtime error
 
3:13 PM
it depends on your environment ;)
 
depends on your language maybe
in Java, it's a compile error
 
in groovy, it isnt
or it would throw an exception
 
we're in a Java chatroom. I was writing Java, not groovy
 
just like classic C#
throw new NotImplementedException();
 
/javadoc Optional#filter
 
thx. Bai bai
 
 
4 hours later…
Zoe
7:08 PM
@towc tmux is horrible to use though xd
breaks scrolling too
 
8:34 PM
@fredoverflow I would add: Huge collection of stable and mature third-party libraries, most of which are free and open source.
 
 
Zoe
Is no one gonna mention the commercialization?
 
9:25 PM
The Oracle JDK has always been commercialized.
 
Zoe
it's worse than before now though
 
How? If you are not using it to make money, nothing changed, right?
And to be honest: If a company supports and builds a programming language over years and years as one of their main products, I feel like the deserve a little money from those that use it commercially.
 
10:12 PM
@Zoe Just use OpenJDK?
 
@geisterfurz007 PHP, Python, HTML, CSS, JavaScript, Bash. All of these are maintained by someone or some company and they don't get paid.
 
You don't pay Oracle for maintenance, you pay them for support plans.
The OpenJDK is maintained for free.
 
10:47 PM
"free"
@JBis Aren't some of those maintained by consortiums?
 
11:02 PM
@Zoe wow wow wow
@Zoe prefix-[ brings you to scrolling mode
might take a while to get used to, but I've grown to not mind that there's a scrolling mode
(q or any of a bunch of other keys to exit scrolling mode)
also, it's kind of necessary for multiline copy-pasting, if you have horizontally adjacent windows, and your terminal doesn't support block-selection
in scrolling mode, go to a position, then press space to start selection mode, move around to where you need, and press enter to finish selection mode, then you can do prefix-:paste-buffer (which you'd normally bind to a key, like prefix-v) to paste it, or you'd set it up so selection goes to the clipboard
tmux is like vim in that it's not immediately intuitive, and features are not naturally discoverable, but there's a huge payoff at the end of the rainbow
but this is why you have friends to get you through this :D
also, it took me a while to realize that prefix-o is not a great way to go between windows. My tmux config uses c-h/j/k/l to navigate between windows
 
11:19 PM
@JBis actually, html/css/js are at least partly maintained via funding
@geisterfurz007 or you let it finally die, so it's not a burden to that company anymore either
I don't think anyone should be sending donations oracle's way
 

« first day (3014 days earlier)      last day (1927 days later) »