« first day (2518 days earlier)      last day (2433 days later) » 

12:23 AM
help with c
 
@Computer 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
 
12:33 AM
morn
 
 
3 hours later…
4:00 AM
"Failure is the condiment that gives success its flavor." -Truman Capote (source)
 
 
1 hour later…
5:27 AM
@Tavo good afternoon @JennaSloan good evening or night
 
@Anant_infinity Welcome back!
 
\o
 
@JennaSloan is that a cake?
@geisterfurz007 good morning
@ColdFire good evening
 
5:56 AM
@Anant_infinity yes
 
@JennaSloan did you bake it?
 
@Anant_infinity morning
 
@Anant_infinity no, i got it from the cafeteria
 
@JennaSloan looks yum
@ColdFire @JennaSloan still working on your work? Is it intersting
 
Morn o/
 
6:00 AM
@geisterfurz007 morning
@ColdFire and @JennaSloan how was your day?
 
@Anant_infinity thanks again for the omelette hint! Tasted great :)
 
@geisterfurz007 your welcome
Need a new advice for your dinner?
 
Nah got something for today (omelette again) and the next two days (wraps with salad). Thanks though :)
 
lol
 
@geisterfurz007 so you eat the same dish for two consecutive days?
@ColdFire for how long have you been programming?
 
6:05 AM
many many years
 
@ColdFire datatype is int
 
Yeah I usually do so. It is just a habit of mine. I usually cook for two days and if I only cook for one day (usually because of a small pan) I mostly have the ingredients for another time.
 
@geisterfurz007 Okay
@JennaSloan are you sleeping?
I was thinking to create a Java program in which I will run my program on pc1 and store the Database on pc2 and connect both pc1 and 2 via lan cable and run the program. Will it work?
Java program will be accessing the database during execution
Everyone what are your thoughts?
 
6:28 AM
Just Pc1------Pc2 ?
 
do you have crossover cables?
 
Yes
I know how to connect two pcs
I'm asking about the Java program
Will. It work
 
that should work yeah
as long as the host file-system is able to access the data, the java program should do so as well
you can try to access the other computer on the commandline with something like pushd ComputerNameGoesHere\c$
c$ is a share that is usually accessible for all drives on windows by default at least from windows 7; It can be disabled though
other OS no clue, sorry
 
6:33 AM
Hey guys, I was reading upon parameterized logging in Java, they say to use parameterized logging as it will be lazy evaluation ..
 
Do i need any special jar files
 
why does the string concat version, do the concatenation if the required logger level isnt enabled
 
@user1692342 i have no clue
 
7:00 AM
@geisterfurz007 thanks for advice i will be making the program
/afk I will be back..
 
@Anant_infinity Cya later
 
user8210158
7:17 AM
Hi,
I am wondering how put content of my Java info, like version of java, path of Java and vendor of Java(oracle) to xml file?
 
@User 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
 
user8210158
thanks for info.
 
7:28 AM
do you want to know how to get the information or how to store it in an xml file?
You should find information on how to accomplish each task on stackoverflow :)
 
user8210158
I should create java file and this file should put info to xml file
 
user8210158
for ex:
script some_name
cat some_file
java some_file
exit
Just need to get java and xml file. What is the link to stack overflow related task?
 
user8210158
I find some Java - xml task but there is no java code that I would like to take a look
 
why wouldn't you take a look?
 
user8210158
I've already take a look but could not find Java file creation... Maybe i need to look some more...But if you already know - let me know, then it safe me some time
 
7:44 AM
This might help?
and this has 3 duplicate links AND an answer!
 
user8210158
I mean I could not find java code on stack overflow that I could used by changing - all are not related
 
If you cannot adapt the code that is given that would write the xml file then your idea of xml seems to be a different one than the one of the xml standard....
What is so different in your usecase than in the ones linked?
 
user8210158
It is maybe similar but I could not find it because i completely new to xml....
 
user8210158
Basically I need to create java file - put some info into it and this java file put info into xml file... Is it right? So I don't need put any data to into xml file except some <> and</>?
 
Ok Step 1: What do you want to do?
 
user8210158
7:53 AM
Assignment goal as following:take info about Java, like vendor, path and put it to xml file
 
Good Morning
 
user8210158
Good night, actually.
 
@User and do that with a java program?
 
user8210158
yes.
 
user8210158
7:55 AM
1. Get all properties related to Java
2convert those properties to XML
 
I have a quick question about injection and integration testing. Usually one should inject any dependencies over the class constructor, like this

private final ExampleRepository exampleRepository;

@Autowired
public ExampleServiceImpl(ExampleRepository exampleRepository) {
this.exampleRepository = exampleRepository;
}
 
Good. Next step: Get the information. Write down everything that you need and google for everything. You can get the version for example with System.getProperty("java.version")
@HerrDerb Please don't post code directly in chat but use a paste site for that :)
 
When doing an integration test, do I inject my test subject also over the constructor of the test class? Or might this cause problems?
sorry :)
 
morn
 
Maybe I should do a quick post
 
7:57 AM
And I cannot help you with that I am afraid. Maybe @Wietlol can but he isn't here at the moment
 
user8210158
Can you provide some structure of Java file at least general, like what to import and so on. I probably need to print on file, so need function() println
 
You... Never wrote anything in Java?
I suggest you download an IDE first. That takes a bit of time but saves a lot later on. I suggest either "eclipse" or "IntelliJ IDEA"
 
Or netbeans ;) matter of taste
 
which is why I suggested the other two :D Eventhough I almost only use IntelliJ by now
 
user8210158
What about xml file.. Why on example it as below:
<Java>
<version> 8.1.2</Version>
<vendor> Oracle</>
<home>/usr/local/jdk8.1</home>

is xml. file supposed to have empty<> before running script?
 
user8210158
8:06 AM
I have Bbedit, is no good enough?
 
xml files need a defining tag, but you should not worry too much about that as a part in the program will likely take care of that.
You can program in the notepad or vim if you like. Eclipse and other IDE's offer autocompletion though which can be very helpful. Anyhow. Did you ever program any other language?
 
user8210158
So, basically I don't need put anything in xml tags - just open and close parts?
 
user8210158
I've used cloud 9 for ruby on rails -frame is provided for it
 
<Java>
<version>8.12</version>
</Java> (abbreviated)
or
<Java version="8.1.2">
would both work. It always depends on how you choose to do it.
 
user8210158
What about import, I mean what I need to import in the beginning ...Java usually need a lot of stuff to import, isn't?
 
8:10 AM
an IDE would take care of that as well ^^
 
Usually your IDE will handle this automatically, or will support your a lot
Even if you need an external dependency, your IDE can search for it.
 
user8210158
So I don't need as below:
<version>8.12</version>
but rather
<version></version>
hoping that java file put something proper inside this and other tags, is it right?
 
user8210158
So, I need put something inside <></> but what about java and script what is it goal... looks like duplicate..
 
The program would (in general code) look like this:
String version = System.getProperty("java.version");
//assume there is a library included that supports xml stuff
Element root = new Element("Java");
Element versionNode = new Element(version);
root.getChildren().add(versionNode);
//same with vendor etc
 
user8210158
8:15 AM
can you add something about printing on some file and xml is the same as i provided with tags and something inside tags
 
the library takes care of that as well
I will get onto writing a test file in a minute; gotta do some other work before. Will get back to you in a second
I will try it without a library, lemme see
 
user8210158
root.getChildren().add(vendorNode);
is it correct about vendor?
 
It was pseudocode to show what I would try
 
user8210158
Yes, please help me with general staff - next time I'll figure it out...
 
user8210158
Pseudocode is fine ..but I need some output...
 
8:20 AM
Might take some time until I am done
 
user8210158
Anyway it is about 2 am and my comprehension is slow then usually:). Let continue/finish tomorrow. thanks.
 
Yeah I will ping you in chat once I am done. You should then have a message in your stackoverflow inbox linking to the link of a paste. Good night :)
 
@user3094331 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
 
well said oak
 
8:27 AM
I am facing some issues while enabling filters in hibernate
at runtime these filters are ignoring
does any one have idea on this?
any one has idea on hibernate?
 
9:16 AM
damn. A conversation in the chat and I missed it :/
 
Hard times, eh? :/
 
also, my head aches
too much thinking :/
I can't wait to get home back to my game
 
oh :(
 
@Tavo Know that feel. Already got it this morning once I woke up with the knowledge that I will have to go to office :/
 
yo tavo and again geis
 
9:21 AM
Hope you get well soon :)
 
@Tavo for playing or programming? In either case, what is it?
 
playing Sunless Sea
@ColdFire hey
@geisterfurz007 ta
my four previous captains died a horrible death. This is my fifth and I'm finally moving on in the game
 
I have upgraded my ship and it's so much more enjoyable
 
9:24 AM
@Tavo :(
@Tavo nice
 
it's part of the game
it's a little gem of a game
only for patient gamers though :D
 
lol
 
I'm old school. I played all the old graphic adventures, from Zac Mckraken to Sam&Max
 
nice
 
holy shit...
I gotta contact someone from the network...
my connection speed is absolute garbage
 
9:35 AM
@geisterfurz007 you shouldn't use any vpn
 
@Anant_infinity Welcome back!
 
@Anant_infinity quite the opposite
you must use a VPN
 
@Anant_infinity HAH! Thanks!
 
I use it even on my phone
 
That might actually be it...
 
9:36 AM
Ok
Whatever
 
I disabled the proxy I think
of my company
 
When I use VPN my net gets slow
 
change your vpn provider
 
@geisterfurz007 if It solves your problem
then it's ok
 
@User paste.ofcode.org/NnQUKMse2BwnebhVjMLk6y I hope that helps you :)
 
9:37 AM
@Tavo okay
 
actually, who is your VPN provider?
 
It's just an Android app I use
 
m nah still garbage tho
messages timing out even -.-
 
@geisterfurz007 bad luck
 
@Anant_infinity aham. Which is...?
 
9:39 AM
@Tavo hola
 
brb restarting laptop
lmao
 
@geisterfurz007 clean temp files also
 
yeah, temp files affect the connection speed quite a bit
 
Yep I clean every time
 
not sure if...
 
9:42 AM
@Tavo have you completed your work in office?
@Tavo. Which VPN do you use?
 
work is never complete, there's always more
 
I mean your service provider?
 
goldenfrog
 
@Tavo alright
 
not the cheapest out there, but definitely one of the best I've had
totally worth every penny
 
9:45 AM
@tavo is it an Android app?
 
you don't really know what a vpn is, right?
just asking
there's no shame in not knowing
 
@Tavo I'm not ashamed of asking what a VPN is but I know what it is
I prefer using on my mobile (Android)
So I thought it was an Android app
 
aham
ok
 
I have asked a lot of things here and I'm not ashamed of anything if I don't know something I ask Google or ask anyone here
@Tavo so everytime you have to work like spark?
 
@Tavo chuckles
 
9:57 AM
@geisterfurz007 doesn't look so bad from here?
what is the speed?
 
deleted everything in %TEMP% and rebooted... still garbage. brb
and timeouted again
co-worker said it is garbage for him as well... at least not an issue on my end it seems
 
oh well my speed is good for now I guess
 
@ColdFire let me just load a speedtest site for a minute ._.
 
@geisterfurz007 what is your speed now?
 
dunno
think speedtest crashed while being to fast
 
10:02 AM
@geisterfurz007 use fast.com
 
types slow.com
 
@geisterfurz007 its speed test website im not kidding
 
works again \o/ download speeds around 86Mbit again.
but went all of a sudden...
Hope it stays like this
 
Alright
@geisterfurz007 what are you working on
 
nothing
I actually got nothing to work on currently
which annoys me more than it should
 
10:06 AM
@geisterfurz007 then work on my idea
Give me some head start
 
@geisterfurz007 pc1--------pc2
Remember?
 
oh yeah.... am at work though so I cannot really test anything
 
So send me something when you get home
 
I only have one computer at home
 
10:08 AM
I don't know how to start
 
and as I get back at 6 pm I got other things to do then project that I have no use for ^^
 
@geisterfurz007 I will test it give something how should I start
@geisterfurz007 what project are you working on?
 
@geisterfurz007 then work on my project
@geisterfurz007 thanks
 
Sir. I get back at 6 pm. by then I did not go to the store for food, cleaned nothing up, did eat nothing and had no time for myself at home. I have to get up at 5.20 in the morning. Believe me. I have better things to do than working for someone without profit :)
 
10:11 AM
@geisterfurz007 dude you went haywire calm down thanks for the link
@geisterfurz007 i was just suggesting you if you were bored with nothing
 
I think I am best off ignoring you for some time. See you in a few days
 
@geisterfurz007 sorry if I had made you angry
@geisterfurz007 sorry if I had made you angry. I was just asking for help im sorry
Sad face. Feeling like crying
@geisterfurz007 sorry buddy
Crying
/afk went crying out of this room
 
@Anant_infinity Cya later
 
G'day
 
10:48 AM
My short introduction
I'm a 20 year old guy. I like to experiment with programs. In case I ask a lot from you guys kindly tell me that I'm asking a lot. I hate being ignored by people or being in isolation. I follow this ideology https://www.brainyquote.com/quotes/quotes/l/linustorva367382.html . If I ask a lot I'm sorry /afk gone far far away in a galaxy of isolation
 
@Anant_infinity Welcome back!
 
/afk gone far far away in a galaxy of isolation
 
@Anant_infinity Cya later
 
"it's fun to program"
aha ahhahaha, kms
 
11:51 AM
:)
/fatcat
 
 
2 hours later…
1:40 PM
o/
 
\o
 
1:55 PM
Folks, is there a fundamental book on web application architecture?
 
@NickAlexeev 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
 
o/ @JennaSloan
I don't have any recommendations for you, sorry @NickAlexeev
 
@NickAlexeev web application architecture? What exactly do you mean by that?
most frameworks try to get rid of that for you so you write as much business related code as possible
 
psssshhhhht it's more fun this way
 
so you normally take something as spring or javaEE and extend their classes/annotate yours so you can plug in your stuff in their architecture
but reading documentation for both JavaEE and Spring can give you a decent idea of how they are designed. If you wanna go deeper explore the JCP and the implementations.
 
2:10 PM
AAAAAAAAAAARGH why did noone tell me there is a chars() function for Strings. I tried for about and hour now to get an IntStream from a String D:
 
@geisterfurz007 you should start using an IDE. They have autocompletion
 
I know that and I am using IntelliJ. I just did not know that such a method exists hence I have not been looking for it in the first place which has been my mistake
 
was just trying to be savage ;)
 
did not work out ;)
 
2:29 PM
@RaduStefanPopescu Here's a situation. There is a model with a bunch of logic (although not a lot of persisted data). Currently, it's a well-architectured (MVC) desktop application. The man who have created it is very intelligent [not me], however he doesn't have a sufficient outlook of web app architectures. If I can point him to a book, that will help his select the path forward. Perhaps, it will help him select the right framework.
 
"he doesn't have a sufficient outlook of web app architectures."

How do you know that?
 
@RaduStefanPopescu He complained to me about that. He asked if I knew of a good book. So, I'm trying to help him by looking for a book.
 
What is he building?
 
@RaduStefanPopescu Think of it as a configuration tool where you select component of a whole. Some components are not compatible with others. In the end, the tool generates a configuration file.
 
I think this laptop I'm using has something wrong with it
 
2:41 PM
@RaduStefanPopescu So you don't know of a book.
 
@NickAlexeev if it's multi-page configuration you can use web flows, if it's single page ajax you could pass the current state of the component and analyze it in your endpoint
just google stuff on JavaEE and Spring
for example, an ajax enabled component could be 2 dropdowns in which selecting one would send a request to an endpoint which shows you what selections are possible for the 2nd dropdown
 
@RaduStefanPopescu No, you don't know of a book.
 
/doglove
 
> img26.laughinggif.com/pic/…;‌​TG9MUmN4OGtNL2dpcGh5LmdpZgloglog.gif
 
JavaEE essentials arun gupta is imo always good if you want to go EE
 
2:47 PM
@RaduStefanPopescu I'll check it out.
 
it will also help with validators and interceptors for showing only the correct data as well as handling bad user input
 
3:00 PM
bye
o/
 
\o
 
 
2 hours later…
4:44 PM
posted on September 14, 2017 by CommitStrip

 
user8210158
5:31 PM
@geisterfurz007
I've got it. not sure what to put in file location: it is mac. no /C as such
 
19
A: Path to file on a Mac: FileNotFoundException

BoltClockMac OS X's filesystem is case sensitive. Users and Desktop should start with capital letters, and your filename should also match case too. Since you're looking for your desktop folder and not the root folder of a user with the name desktop, you need to add your username after the Users folder. ...

Looks like you can just leave it out and continue with the path as you are used to. note the case-sensitivity mentioned in the answer :)
 
yo
 
whatsup?
do you travel in bullet trains?
 
watching some videos, replying to messages, planning tomorrow then reading and sleaping
 
user8210158
5:36 PM
C:\\Users\\usernameGoesHere\\Desktop
would be on Mac
//Users/user_name/Desktop
 
@ColdFire if that is what I think it is, no
@User only one slash
 
trains with very high speed is bullet train
 
user8210158
/Users/user_name/Desktop
 
Yeah that should work if that is a valid and existing path on your mac
@ColdFire then not, no
 
:/
 
5:37 PM
Is you meant to mean me as a person or Germans in general?
 
you as a person
 
then the answer stays the same. There is not enough track to cover for me to take a train that fast
 
user8210158
I'll try except that it seem more code that I thought and I also need to use command on terminal ;script to get output to xml file
 
@geisterfurz007 :(
 
@User The code is bulky because I do the same 4 lines for each attribute. Additionally there are a lot of comments. I could have used a Map and loops and other stuff but as it seemed like you did not program that much I decided to do it that way
and what do you mean with command on terminal
@ColdFire why :( ?
 
5:43 PM
well I was expecting you to travel in bullet trains
 
user8210158
So, I got the your file called for ex. work.java How to get xml file?
 
You have the JDK installed, right? And still no IDE?
 
yes I have
 
you were not meant by that :)
 
hehe
 
user8210158
5:50 PM
Other stuff would be nice:) since I need a very short code like:
System.getProperties().load(System.out);
(new FileOutputStream("my_file"))
 
user8210158
I have anew Mac where all supposed to be maintained and not out off date
 
Why do you need very short code?
 
user8210158
JDK installed, right? And still no IDE
How to check it to answer on your question?
 
That stuff won't be able to do in 2 lines. That simple. I can put something together but will not do so this evening (8pm for me and I gotta get up 5.20 am).
Do you really need an XML file?
 
user8210158
Instructor say so and provide line as below... But more importantly I need to get some output... So how to get it using your code?
 
5:56 PM
You can do System.getProperties().save(filename) to get something in the format
key=value
key=value
key=value
@User You have to run it...
 
user8210158
I can wait:)
 
user8210158
So key-value is the key:) if you can help get output xml file with them, it would be helpful
 
Will get back to you tomorrow :)
 
user8210158
Sorry, it is late for you. Good night.
 
night
 
user8210158
6:01 PM
Actually, it is morning for me...But it doesn't matter. Good night.
 
6:28 PM
hello
 
@user6019827 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
 
even a logic (not code) question is not welcome?
 
 
5 hours later…
11:46 PM
@geisterfurz007 0.o
 
o.O
 

« first day (2518 days earlier)      last day (2433 days later) »