« first day (2756 days earlier)      last day (2409 days later) » 

00:12
@geisterfurz007 you're a burrito?
I didn't know burritos could fly airplanes
00:34
morn
morn
born
hey guys
how's it going?
Not bad, you?
pretty good. Came back from holidays and I'm slowly getting back into the project
life is good :)
also, since we came back, my cat has decided she missed us a lot, so she is a lot more cuddly and when I wake up, she is sleeping next to me :3
00:49
lol what a nerrrd. ;)
lol
 
6 hours later…
06:24
\o morn
Zoe
Zoe
07:20
Morning (~^-^)~
quick q does Java need package specific tags like
07:51
Read the description of the chat room, and remembered a job offer I came across some time ago:
Looking for a developer who knows JavaScript, or how it is commonly referred to as Java
<3
@BoyanKushlev steer clear of those no one knows what they are doing
08:05
@BoyanKushlev I once saw an ad requesting 6 years of NodeJS experience. I mailed them and told them that given that NodeJS existed for only 4 years at the time, they'd be hard-pressed to find anyone with 6 years.
They, of course, tried to recruit me in response.
Eventhough you didn't have enough experience? Nice :)
08:20
@MarcusK. marcus, I've tried to add that MediaType, importing the org.springframework.http.MediaType, but it seems it does not have the APPLICATION_JSON_UTF8_VALUE
Zoe
Zoe
08:32
@SurajRao nope
@MadaraUchiha you can't NOT love recruiters
@BoyanKushlev Sure I can! It's easy!
USM
USM
09:10
I have a HashSet with [] but .isEmpty() is returning false.
@USM 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
USM
USM
@OakBot Ok. I know
@USM Type /help to see all my commands.
09:33
Hello fine Java peeps, this is something of a #lazyweb question but it's proving hard to google in a way that doesn't bring up a load of irrelevant generic comparisons of Java and C#: I'm hacking together a desktop app in C# because I need it quick and I don't need it portable, but I am using a thing written in Java as part of it.
It's simple enough to make the two work together, I can just invoke it as an external program and get output in JSON, which is working fine and I've managed to build all the logic so it does what I want. However, the nature of the app means that I'm invoking it many times during the life of the program, and I'm wondering if there's a way...
...that I can speed it up a bit by keeping a "hot" java.exe process hanging around, and just sending it "requests", kind of like the relationship between a web server and an fcgi daemon.
A significant amount of time for each invocation seems to be spent "just" warming up the jvm, before any of the code in the jar is actually executed, I was just wondering if there's a reasonably simple way to reduce the number of times that needs to happen. I'm using Oracle JRE 8 on my dev machine because it's just what was already there, but I'm not averse to changing version or implementation if that will help. It only needs to work on modern Windows.
I know, sorry
tl;dr: Can I keep a warm JVM instance hanging around, rather than having to invoke it in a new process every time
(for a CLI program)
Couldn't you have a java program open that just runs a Scanner until a close command is given?
specifically on windows, don't care about portability
@geisterfurz007 maybe. Full disclosure: I know very little about the Java eco-system
even just telling me what to google would be a great help
I'm quite happy to do the legwork
If you want something from the java programm, write to stdin of that process which should unblock the process, run your json magic in there and if a certain command (e.g exit) is sent to stdin the loop exits closing the java instance.
at least that would be the (possibly) ugly way I would have in mind
09:38
@geisterfurz007 sort of a REPL?
Yeah exactly
in fact, that's what I need, a REPL where you give it command lines instead of code
k right that gives me a better idea of what to search
ty
I may be back :-P
Woah, I was actually useful for once \o/
No problem ^^
10:12
hey chaps!
sorry, I've been away on holidays and completely disconnected from the channel :)
back in full shape now!
@geisterfurz007 @Zoe
\o/ Welcome back Tavo :)
thanks!
how's things?
Zoe
Zoe
Welcome back Tavo! ^^
thank you, thank you :)
Generally life works out currently \o/ Making good progress in flight school (got one third of my hours now) and I don't crash the plane on landings anymore ;)
College semester comes to an end in a few weeks and I am happy if I don't fail anything. Classes were awful this semester :/
Other than that though, I am good ^^
How are you?
Zoe
Zoe
10:18
@OakBot We don't like fun here! :P
@Zoe Type /help to see all my commands.
Oh also, if things go well, I will go skydiving next weekend :D
Zoe
Zoe
@OakBot Type @ZoeBot help to see all my commands.
This is going to be interesting. If I needed to kick one to end the cycle I know who would end up waiting for a minute :D
Zoe
Zoe
Lol
10:35
@MarcusK. my springframework is 4.0.1 so I cannot use the APPLICATION_JSON_UTF8_VALUE but only APPLICATION_JSON_VALUE. the ajax method that calls the controller popups an error: Not Acceptable
11:13
Suggest a guide to test java applications involving unit test, integration test and end-to-end test..Preferred tools junit, mockito, h2 database
Zoe
Zoe
//lmgtfy java unit test tutorial with junit and mockito
Noice job Zoe :)
Zoe
Zoe
WS died
I can fix tiz
user8622974
Zoe
Zoe
There we go
11:20
morning
user8622974
morning
why did the coffee file a police report?
@Zoe @Zoe savage...
Zoe
Zoe
Not really
@AceVez Please don't
Zoe
Zoe
11:23
@AceVez I don't know. Why?
because it was mugged
tss
Zoe
Zoe
XD
11:39
It stuck in my head ever since my uncle told it to my little cousins
Hi guys, how would you go about unit testing a program that waits during execution multiple times for long period?
@JanHorčička 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
USM
USM
11:59
@Component vs @Service
Twenty-one percent of the Japanese population is elderly (over the age of 65), the highest proportion in the world. There are more elderly than there are children in Japan today. (source)
USM
USM
@OakBot OK.
@USM Type /help to see all my commands.
Zoe
Zoe
12:17
//shrug
user8622974
¯\_(ツ)_/¯
Zoe
Zoe
@SurajRao //yoga's fixed btw
//yoga
user8622974
/¯(ツ)¯\
finally \o/ taught yoga to a bot
Zoe
Zoe
12:19
lol
@Zoe out of curiosity what was the bug?
Zoe
Zoe
one sec
Background: SE uses JSON in events meaning I receive HTML-entities
I used a horrible hackish technique to fix it using manual replacement, but it ended up just being lacking most of the cases
Anyways, this line fixed it (uses a library though)
so how did shrug work? it was because it was added as a default?
Zoe
Zoe
Yeah
It's hard-coded
that makes sense
Zoe
Zoe
12:26
JSON can handle non-HTML entities, but SE chat uses HTML entities to avoid stuff like being able to write </div> in chat and write custom code for the site
13:10
//yoga
user8622974
/¯(ツ)¯\
Zoe
Zoe
13:42
//blame
user8622974
@Zoe It is Jerry Chin's fault!
14:26
In Javafx, I want to have parameters in a controller's constructor so that I can do dependency injection using guice, for example public SomeController(Database db), how do I do that?
It gives a null pointer exception if I try to include parameters
At least for loading an FXML file with an FXMLLoader there is a method called setControllerFactory where you can return a custom controller (like return new MyController(mydb);). Other than that I am honestly not sure whether that is possible
But maybe JabaFix mastermind @ItachiUchiha can help you with that? Unsure whether he is active though
@geisterfurz007 always at rescue! :D
I can do that in the first controller when I call it from the main method, but I need to load another FXML file, so I probably need to pass around the injector.
 
1 hour later…
16:00
@FrancescoDS no problem, in this case, just use the plain string "application/json;charset=UTF-8" instead of a pre-defined constant. Also make sure your AJAX call "requests" a JSON response via Accept header.
@MarcusK. 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
@Mercious Well, you definitely need to learn the basics regarding JavaEE. Teaching that is out of my scope, sorry :-) But you're doing it right if any "special" classes like REST controllers and DAOs are never created via "new", but injected via "@Inject" or "@EJB". And make sure that you're using a real application server. Tomcat or Jetty are not Java EE servers, so they won't do what you want them to do.
16:58
Please suggest a good method/provider to create a generic unique number for business application with lock facility. Application have multiple instance, and also have multiple mobile client.
@Sandeep 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
//lmgtfy java generate unique numbers for encryption
@Zoe not for encryption, want to generate a sequence of numeric values based on specification with lock
17:16
//lmgtfy generate a sequence of numeric values based on specification with lock java
user8622974
@JennaSloan google.com/…
user8622974
@JennaSloan google.com/…
Ingenious
And I get SQL. Great job google.
@Sandeep SO Chat is not a consulting firm.
17:25
@Michael Hmm do you have a slightly longer and more explaining version of that? I would like to include something like that in my stock comment user script for this rooms but I am really bad at wording such things
@Michael lol yeah i thought some one will me for the same..try my luck here..:D
Zoe
Zoe
Happy Thursday @Michael!
@geisterfurz007 SO Chat is a place for software engineers to socialize. It is not a consultation service, help desk, or search engine.
Guess that will do, thanks!
@Zoe No. Just no.
Zoe
Zoe
17:31
Yes. Just yes.
Happy Thor's day @Michael!
Zoe
Zoe
Today's a holiday @Michael
Yeah, it's World Lupus Day
Zoe
Zoe
It's what?
1 min ago, by Jenna Sloan
Yeah, it's World Lupus Day
Zoe
Zoe
17:35
Lol
Zoe
Zoe
//wiki lupus
user8622974
Systemic lupus erythematosus (SLE), also known simply as lupus, is an autoimmune disease in which the body's immune system mistakenly attacks healthy tissue in many parts of the body. Symptoms vary between people and may be mild to severe. Common symptoms include painful and swollen joints, fever, chest pain, hair loss, mouth ulcers, swollen lymph nodes, feeling tired, and a red rash which is most commonly on the face. Often there are periods of illness, called flares, and periods of remission during which there are few symptoms. The cause of SLE is not clear. It is thought to involve genetics...
Zoe
Zoe
Oh
Another holiday today is some religious thing called "Ascension"
Zoe
Zoe
17:42
That's the one
I don't celebrate it, but it still means a day off
17:58
Does anyone know if it's possible to retrieve an element from a Set when that Set is nested inside a HashMap?
Example?
Reminder that Mother's Day is in 3 days, on Sunday.
18:15
Set reminder for in 3 days.
hello guys
hey arif
how are you geis
tired! Didn't sleep a lot the last nights but still happy ^^
how about you?
last night i slept 4am :(
18:17
O-o
i am sleepy :D but cant go to sleep
18:30
So, geister, you remember that program I told you I was working on?
Your CabinAssignment thing, yeah
Okay, so my cabinMap is stored in the format HashMap<Cabin, Set<Camper>>
Now, I want to create something where I can click a campers name, and find out what cabin they are in
if I assigned them
The problem is the value of the map is not a camper, but a set of campers
goin 2 take a shower, be back in a few
 
1 hour later…
19:52
@Nathan777 Takes a bit but loop over the keys and call contains on the sets you get. If it is true, return the key (=cabin)
20:29
hello
any one alive
Zoe
Zoe
[ ZoeBot ] Online.
@ArifNoumanKhan tl;dr: yes
lol
Hey Arif o/
@Nathan777 Something like this?
I accept monetary donations
20:46
@Zoe hiya whatsup
@MarcusK. You are right. But this whole dependency injection topic was incredibly confusing to me, I have not once in my life put so much time into reading about tech stuff and understanding so little. There are so many contradicting articles and pieces of posts and information out there, it's insane. In the end I managed to make the injection work by using @Inject aka CDI instead of @Resource aka resource injection. I had to tell IntelliJ to include that "module" of my glassfish installation first before I could use it.
@Mercious 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
21:16
why on java on if((a==10)&&(a+=20)) when a is 5 also executes the second part? It wastes time
21:58
@O.Rares It does not. And what you posted does not compile. But Java will short circuit and not test the right condition
 
1 hour later…
23:08
@Mercious Glad to see that you made it run "somehow" :-) The start is always the hardest part. Withing you all the best for future development :-)
@O.Rares @Mercious is right. And even if it would evaluate the second part, the main problem would not be timing problems, but unexpected NullPointerExceptions, as checks like "if (x != null && x.getY() != null)" would go wrong badly...

« first day (2756 days earlier)      last day (2409 days later) »