« first day (2893 days earlier)      last day (2270 days later) » 
00:00 - 15:0015:00 - 21:00

00:00
"Every truth passes through three stages before it is recognized. In the first, it is ridiculed. In the second, it is opposed. In the third, it is regarded as self evident...." -Arthur Schopenhauer (source)
 
2 hours later…
02:19
farts
 
2 hours later…
04:33
hey anyone here
maybe smart enough to help a brother out
Zoe
Zoe
04:46
Morning
user8622974
Morning
Morning.
hola
does anyone know about video formats with java
.ts files in particular
and how I would go about decoding and getting raw video data I can convert into bufferedImages?
from my understanding technically an mpeg2-ts
is the specification in full
Zoe
Zoe
05:22
But if you manage to get the video pixels in a raw format (no, I don't know how), you could easily write your own system
05:49
it should be unencrpyted data, I have a test file on filesystem
USM
USM
Any example to convert excel into json?
its been so hard to find where to start
insert eyes
yes I can help you with that
your life is easy
use that lib
if you really want to understand how it works
here is a lib in javascript where my buddy prases every excel format ever
hf
@USM
USM
USM
@thekevshow , after reading and doing some logic , i need to convert it to Json file.
Good Morning
Good morning.
user8622974
05:58
Good Morning
Good Morning
@Ashvinsolanki 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
06:19
converting to json should be easy
is this from a web framework or what? @USM
that should be the easiest thing ever
create a hasmap and respond with it as json if you arent platform agnostic
plenty of java dynamic java json inscribers out there
USM
USM
i am creating a simple spring boot application , which will pick excel (xlsx) to and convert into json file.
 
2 hours later…
08:15
Good morning o/
 
1 hour later…
Dax
Dax
09:37
Hi guys!
Dax
Dax
I have a solution for adventofcode.com/2017/day/8 but the site says my answer is not correct
could you give me some tips what I have missed ? here comes my solution: paste.ofcode.org/nFVbW2d4DMJBuc3gpke76A
the input file is too big , for a smaller input file that I made, it works fine
09:51
morn
morn
user8622974
morn
it also gives you example input
have you tried that?
@Dax
Dax
Dax
@Wietlol yes, the example input work fine
> System.out.println("Ended up in the default statues");
System.out.println("Ended up in the default of perform");
I would just throw an exception
those cases should never happen, if they happen, your program wont function correctly and an exception should be thrown
Dax
Dax
10:05
I just wanted to see if I ended up there, but I didn't
did any of them get printed?
ok
Dax
Dax
I am suspicious to the Map, maybe there are some elements left in that map
I need to empty it maybe
Zoe
Zoe
@geisterfurz007 (x) doubt
Dax
Dax
int is ok? shouldn't I defined Long instead of int?
@Dax your comparator is wrong
.max((entry1, entry2) -> entry1.getValue() > entry2.getValue() ? 1 : -1)
you should try using the default comparator
.max(Comparator.comparingInt(Entry::getValue))
when your values are equal, the comparator should return 0
10:15
^
Zoe
Zoe
^
Dax
Dax
@Wietlol I changed the line as:
System.out.println(operandValue.entrySet().stream().max(Comparator.comparingInt(‌​Map.Entry::getValue)).get().getKey());
but still I get the sam eresult
it return a, with both comparators and it is wrong
how do you know it is wrong?
ah, wait
> However, the CPU doesn't have the bandwidth to tell you what all the registers are named, and leaves that to you to determine.

What is the largest value in any register after completing the instructions in your puzzle input?
Dax
Dax
In this Map , operandValue, i have the registers and the values. here I use the comparator to find the largest one
and my program return "a",
The web site has an input entry, when I enter the right answer I get a star :) I have got 12 so far
but when I enter the wrong value i get the message that my answer is not correct
10:28
but your program returns "a"
look at the assignment
> However, the CPU doesn't have the bandwidth to tell you what all the registers are named, and leaves that to you to determine.
What is the largest value in any register after completing the instructions in your puzzle input?
guys someone use mynatis?
mybatis, mynatis, mywhatta?
mybatis sorry!
?
I need to try mybatis and compare it to JPA
JPA so far has been spot on
Dax
Dax
@Wietlol thank youuuuuuuu :)
The value of a was 3089 and that was the answer
10:30
ironic that this is also the mistake I made when doing this task
Dax
Dax
I was trying to find out what the problem was for the last 4 hours :(
maybe the misled us, fo the example they said the answer is "a"
and then suddenly they menat the value
thank you :)
> After this process, the largest value in any register is 1.
Dax
Dax
yahh
It's a particular problem!
It's a recurring problem!
10:36
when I try to use the LIKE in criteria doesn't work !
sounds like JPA > mybatis
I do: criteria.andXXXLike(bookname);
but it doesn't work! damn
UHHH
I understand why!
I suppose andXLike("abc") does X LIKE 'abc'
which might not exactly be what you want
you need to escape bookname too for completeness and sanity
yep
it's correct
!
hey @Wietlol this is me from the this.var_name vs var var_name question in the JS chat group
10:48
@snow 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
in which case should i bind the variable to this/
?
hey @snow, this is me, from... well... me
when not doing that is not sufficient enough
at least... that is the difference in JS world
ummm... like closures?
For JS questions remain in the Javascript room please, thank you.
no, like... your code is inside a function, or a loop, or an if loop statement or something
if your variable needs to be used only inside that function, dont use this
10:52
@geisterfurz007 understood @Wietlol ahh... thanks
wht's up??
a direction
ohh, really
No, not really, he's just messing with you.
Up is not a direction. You've been lied to all along. Sorry to say.
Zoe
Zoe
//tableflip
user8622974
11:04
(╯°□°)╯︵ ┻━┻
Oh, hi @Zoe. Good news! (or bad?) You're no longer the only one on SO from your place.
Zoe
Zoe
What?
oh
@LWChris he tried hard, but he should try more.
@LWChris yup up is up, not a direction.
Or is "Troms".equals("Tromso".weirdFormWithLetterThatNobodyHasOnHisKeyboard()) == false?
Zoe
Zoe
Troms isn't the same as Tromsø
11:08
Aha! Okay. You're still unique then.
@Zoe hi :)
Zoe
Zoe
@LWChris kinda sorta
I tried to find out by Wikipedia and it said something like "Tromsø" in region "Troms" so I wasn't too sure whether that was just Norwegian name vs. English name or something.
Zoe
Zoe
Troms is a county, Tromsø is a city.
Tromsø is in Troms, but Troms isn't Tromsø
@Simmant hiya
I know that. But I was asking, you said you're the only one from "Troms" (so the county). And I found people from "Tromsø", so they are also from Troms necessarily. So while the query may only return one person, that is because you looked up a county where everybody else from that county gave a city.
11:12
String county = "Troms";
String city = county+"ø";
@Zoe
@LWChris you need weed dude
@Simmant Why is that?
Zoe
Zoe
O_O it's snowing outside
@Simmant nein
@Zoe Dafek?!
I mean it's already September...
Zoe
Zoe
It never snows in September xd
@LWChris because you want to be get back to here dude..
Zoe
Zoe
11:19
Well, it snowed in July once, but that was an exception :*
@Zoe ohhh thats cool.
Zoe
Zoe
Not really
@Simmant I don't understand that sentence.
Zoe
Zoe
If it gets too bad, all transport will halt. Basically no one has winter tires yet :*
@LWChris Me neither, don't worry.
Zoe
Zoe
11:21
^
@LWChris because you should get back to here (On SO planet) dude..
sorry for mistake XD
Zoe
Zoe
xd
@Simmant I don't quite see how weed would help me with that lol. I will get back to coding though. Have fun y'all. Bye bye.
posted on September 23, 2018

archive - contact - sexy exciting merchandise - search - about ← previousSeptember 23rd, 2018nextSeptember 23rd, 2018: HOW TO INVENT EVERYTHING IS OUT NOW, aaaahhhhh!!– Ryan

Zoe
Zoe
11:41
Lol
12:00
Given that the world is about 25,000 miles in circumference and that the average walking rate is 3 miles per hour, it would take a person walking nonstop approximately 347 days to walk around the world. (source)
As if you could just walk in a straight line around the world
You'd need a hovercraft with a treadmill on it, that captures your walking speed and moves the hovercraft forward at the exact speed you're walking on it - that way you could move at your own walking speed, but also pass water and other grounds you'd not be able to walk on naturally.
Given that the hovercraft's fuel / battery lasts that long
cal me a gnuis
USM
USM
how can i get locale of the languages, ex: English -> en , Spanish -> es
Guys! I'm not english and I need some advices
Locale.ENGLISH.getLanguage()
If you can fetch a constant
@unknown just get an airplane
12:07
@Wietlol good luck having an airplane move at 3mph, maybe a helicopter
hmm... there are airplanes that can remain at a specific spot
Zeppelin
that doesn't even require that much fuel I guess
wait is Zeppelin a word
I am sure there are airplanes that can move at 3mph
Suppose to have two input type="number" where the user can specify the range of price that the object must have in the result
Yeah but those fighter jets have horrible fuel economy
@Doflamingo19 I smell JavaScript
12:09
ahhah sorry
but it the same thing! which is the best label?
I can use From..to?
Sir I have no clue of what you're talking about.
USM
USM
@unknown how can we pass languages in that>
?
we need a more cement example
@USM Locale.WHATEVERLANGUAGEYOUWANT.getLanguage();
USM
USM
say i have Spanish as String and i need to get its locales
12:13
Yeah that's an issue, unless you do case stuff or exec
you could do: exec( "Locale."+lang+".getLanguage()" ); I imagine
But that's dirty as hell
we need a more cement example @Doflamingo19
USM
USM
		String static localeLanguage = language.toUpperCase();
			Locale.localeLanguage.getLanguage();
will not work either
Locale.ENGLISH is a static variable in Locale
what you did up there would end up in Locale."ENGLISH", which is not what we want.
USM
USM
ok...
so ... what we can do here?
look up the manual?
user8622974
12:17
@Wietlol Maybe you should consider looking up the manual. (//help)
USM
USM
Hey wheeat
good boy
@LWChris code will be like butter slice after that XD
My JAVA_HOME variable is set properly(java and javac version are working) but I am trying to run Tomcat 9.0 from CMD, it is telling that neither JAVA_HOME nor JRE_HOME is set? What is missing?
USM
USM
@unknown any way
12:24
This is probably the way I would do it (without further research): paste.ofcode.org/qNNay9djMmKD2QpruZ6mJ8
But that is neither nice to code nor nice in execution
@JWizard run SET JAVA_HOME in cmd. What is shown?
@JWizard did you check version of JAVA and JRE ?? both are same ??
java -version works because Java is on your PATH variable. JAVA_HOME is not relevant for that.
@geisterfurz007 I ran that command, it says not defined
USM
USM
@unknown good for one or two...
12:26
@JWizard So you have to define JAVA_HOME as environment variable and tomcat is right.
Yeah, let me do that thanks!
@geisterfurz007 I thought Java_home is there, most of time I seen this causes issues in my local.
@Simmant Yes, that what I been thinking all this time along
where Java_home version is differ from Jre.
JAVA_HOME is not there. java -version could be run. That was the only info provided. You cannot conclude that JAVA_HOME is set by that though.
12:29
@geisterfurz007 True, I have just learned that today
USM
USM
@unknown did u see, SPANISH cannot be resolved or is not a field ...
its not there in Locale
So Java_home, does it have to be System or User variable?
errrrrrrrrrrrrrrrrrrrr.... No clue. I guess user should be fine as long as you don't want to run it under a different user. If you want to make sure, define it as system.
@USM So I did some more research for you: stackoverflow.com/questions/2522248/… (ignore the first answer)
@JWizard yeah, default it comes in Path.. but we have to set JAVA_HOME, and in my case I always forget to set it with updated path :P, so when ever I checked JRE that is different and Java too. XD
@geisterfurz007 I think it was ^^
12:32
@geisterfurz007 Got it, will go on with System
@USM LocaleUtils.toLocale("english").getLanguage(); probably
yup
JAVA_HOME should be in System.
Hey man!
12:35
o/
user8622974
\o
One round of botspam is enough :)
12:36
how is life?
life sucks
why so?
College started again which is nice.
Have to get up super early for flighlessons because lectures are placed absolutely poorly for me this semester which is not so nice.
I quit all my friendships one week ago
@geisterfurz007 naaa, those messages are not spam mann...
USM
USM
12:37
@unknown java.lang.IllegalArgumentException: Invalid locale format: english
as I've gotten older, I've turned into a morning person. Even without an alarm, and pretty much no matter when I go to sleep I will wake up around 530a every day
If there are three people being annoyed by them, it can be considered that.
@USM Google the method and see what it wants, maybe it's wrong for what you have, then look back at the answers in the thread...
and other than my children and my mother and a this married couple I go drink with, I have no close friends
@geisterfurz007 okk
12:40
I need to get laid w/o having to use a whore
@rabbitguy I've just lost faith in common sense - so from now on I'm only looking to get to know people, that have atleast some.. :/
sounds like a good start
a good restart hopefully
@unknown wrong place. byeeeeeeeeeeeeee :D
USM
USM
@unknown This method takes the string format of a locale LocaleUtils.toLocale("english").getLanguage();
org.apache.commons.lang3.LocaleUtils.toLocale("en_US")
12:41
This chat is fine actually, most people can even handle my sarcasm without getting too confused. (Which is not about intelligence or anything, but I can't really have fun with people who don't understand my stupid joke thingies)
Except for some people that don't even have to basic skill of using Google
hey am new here, may i ask how things work here ?
@SurendraKumarJaiswal 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
@SurendraKumarJaiswal carefully.
@unknown means ?
go ahead lol
ask your detailed questions on how things work here
12:44
@unknown identified XD
great... the email server is down
and of course I have zero rights to it
@rabbitguy that sucks!!
USM
USM
@unknown Locale.getISOLanguages() will give all the languges code in ISO 639-1 code, its a String array , but can we keep this in HashMap
for (String lang : Locale.getISOLanguages()) {
				System.out.println(lang);
			}
with key as code and value as Languages?
Does it matter to set JAVA_HOME to Java Version 1.8 and JRE-HOME to 1.7?
or vice vesa?
It matter, ideally both should be point to same version.
12:58
@Simmant Okay, thanks.
because, JAVA_HOME will use to compile your source and JRE_HOME is to use compiled source.
@JWizard cool
I think most tools take a look at your JAVA_HOME.
USM
USM
@unknown got it , thanx for ur comments...
:)
glad i could help
mostly, but some legacy server and framework look for JRE_HOME too, however JAVA_HOME consists all thing which need to get proceed.
13:05
yay, I wrote groovy today
I mean... I didnt write groovy, I wrote an application using groovy
@Wietlol wrote groovy != wrote an application
I know
hence I corrected myself
lolzzz
@Simmant This is the Java chatroom, would you mind using != instead of <> or =/=
@Simmant Got it,
13:08
@unknown update is now available :P
!===
long live JakartaScript
I have set Java_home and Jre_home but Tomcat is saying JRe_home not set correctly.
have you tried... restarting your device?
JRE_HOME=C:\Program Files\Java\jre1.8.0_181;
ok
yup, just try to restart it once.
13:10
@Wietlol Nope, let me try that, I just restarted my CMD
things work by magic after that.
bye @JWizard, see you next month :3
work for me most of the time XD
@Wietlol !=== <> !=
!=== will probably soon be in JavaScript where it would compare using a compareTo method
ofcourse that would also result in !==== where it would use the compareTo and also make sure that the compareTo method is equal
@Wietlol sorry this is Java room and universal fact is JavaScript != Java. :P
13:13
@Simmant get out
@unknown no
I declare racism
@unknown he already use the statement, so he intend me to use down-stare(SQL) thing.
:P
....
@unknown lol I am back, it took some time to restart :D
13:19
@Simmant It is still complaining
what is complete error message you are getting??
Exception: Something went wrong
wait
The error: JRE_HOME environment variable not defined correctly. This environment variable is needed to run the program
@unknown sounds like C#
13:25
and I have given it this value: C:\Program Files\Java\jre1.8.0_181\bin; Tried also to remove and add \bin but still same error
did you checked that discussion ??
however I just now downloaded brand new tomcat and I am having only JAVA_HOME set ted locally
but it is working fine.
@Simmant not specifically this one, but a similar one. Let me follow it.
@Simmant Run "startup and see if its working"
yup I run by startup.bat only.
@JWizard where and what values you give for JAVA and JRE home
13:43
@Simmant JAVA_HOME=C:\Program Files\Java\jdk1.8.0_152; & JRE_HOME=C:\Program Files\Java\jre1.8.0_181;
@Simmant I just followed this discussion, set my variables as shown there, now its Tomcat is complaining about CATALINA variable, it says it is not set properly
ok, just add all three with classPath .. like this CLASSPATH=%JAVA_HOME%\bin;%JRE_HOME%\bin;%CATALINA_HOME%\lib
ClassPath is also a system variable.
hope that will work.
14:06
@JWizard That will not define them as environment variables.
@Simmant Okay, let me do that and try again.
14:29
1 Days until Java 11 is officially released!
Java 11 has an HTTP client?
Zoe
Zoe
@Michael Yes. Welcome to the loop.
@geisterfurz007 Okay, have done this: CLASSPATH=%JAVA_HOME%\bin;%JRE_HOME%\bin;%CATALINA_HOME%\lib but it is still complaining about CATALINA_HOME variable
@Zoe lol
Because that will only set the variable for the cmd window you put that line in. That is not an environment variable
14:36
@Zoe As in, something like the Apache HttpComponents library?
Zoe
Zoe
I'm not aware of the exact details, but that's the general idea
Interesting.
//lmgtfy java 11 http client
user8622974
14:38
@geisterfurz007 how about this one?
hurrhurr
So, it's kinda like in Java 8 how they added a new date/time API similar to Joda.
@geisterfurz007 Okay, I have gone to Computer, properties....env variables, and put values for the three variables. Have not used CMD to set them
@Michael might be exciting
Zoe
Zoe
14:43
@Michael yep
but I used Joda before J8, so I was more excited about that
but now that I realize it, I always have to google how to call a web service via http
@geisterfurz007 But still its complaining about Catalina_home
independent of the language
except for html
in html, its izi pizi
have you restarted the CMD or program from which you try to run whatever you are trying to run?
> By default the client will send requests using HTTP/2. Requests sent to servers that do not yet support HTTP/2 will automatically be downgraded to HTTP/1.1.
14:44
<a src="<myurl" >hehe</a>
Won't this add extra network overhead?
@geisterfurz007 Yes, I have done that.
What are you trying to run it in?
Another cmd window?
@geisterfurz007 I have just installed thin tomcat, now I am testing...would like to see if it is working properly
I saw some where that I could test it this way
If it is another cmd window, run set catalina_home in it.
14:54
yay!
they let me out of the office for a bit :)
@geisterfurz007 I intend to set these variables permanently, and for that I am going through computer...properties...env variables
run set catalina_home from your cmd window in which you are trying to get your tomcat to run.
00:00 - 15:0015:00 - 21:00

« first day (2893 days earlier)      last day (2270 days later) »