« first day (1673 days earlier)      last day (3254 days later) » 

1:09 AM
morning guys
 
 
2 hours later…
3:21 AM
o/
 
 
2 hours later…
5:27 AM
hi @deadlydragon00
I have exported my project to tomcal server. That has created a .war file under webapp folder. But when i access my web page through browser, all the js and css files are saying 404. My js and css file are in WebContent/myjs/ ...
 
5:40 AM
ok.. i'm sorry. Now i see that 404 is coming because for all of my css files and js files at the end, it has ended up with the login.html (localhost:8080/CargoTracker/css/login.html)... why does all of my file names replaced with 'login.html' ?
 
hi @craz
 
@deadlydragon00 first of all, thanks for coming here. Very Good Morning!
 
@deadlydragon00 can you help me to figure out what i'm doing wrong here?
 
5:46 AM
I have just configured and exported my web app into tomcat 8
 
what happened ?
 
and it looks for incorrect file path for all of my css and js files in login.html file
i can see that all the files are physically available there
 
is that the only html file?
 
i tried only in my login.html page
 
but is that the only HTML file in your project?
 
5:49 AM
restarted the server, but still it is there(problem)
yes!
all others are JSPs
 
actually you need to change it to index.html
 
but why? i have configured my web.xml according to that. and i can get into the login.html(without css and js)
@Unihedron good morning!
 
@CrazyNinja Morning!
 
hiya @Uni
 
@deadlydragon00 Hiya! ^^
 
5:51 AM
when i ran the project, through the default tomcat which provides by eclipse, it ran prefect.
 
when I build .war I usually have index.html
I am not exactly sure that the xml mapping can disregard such index.html
 
I have wrote a filter to redirect to login.html, if the session is not available
so, even if i tried to go to index.html it redirects to login.html page
 
but you mention there is only 1 html file right?
therefore you do not have index.html
 
is java the best programming language?
 
@NicholasRoberts No. There is no best programming language.
 
5:57 AM
and the other freaky thing is;
when i try to open my js file which is physically available under webapp folder like this
http://localhost:8080/CargoTracker/myjs/loginPage.js it again goes to http://localhost:8080/CargoTracker/myjs/login.html which it wrong
 
There is no good, there is only good for. :P
 
@Unihedron youre right
how abouyt php
php** thats a pretty messy language, dont you agree?
 
@NicholasRoberts Sure, but what should I use if I want to build a simple webapp in under five minutes? It doesn't need a fancy interface.
PHP, right?
 
@deadlydragon00 i tried 'http://localhost:8080/CargoTracker/index.html'; i thought as you said, their might be a default generated file. but there is nothing. My mistake . I have one and only html file in my project which is named 'login.html'
 
Very true. Im just saying that because I took a class in college teaching php coding, and it was just really hard to read any of the code
 
5:59 AM
can you add index.html and place some random stuf then build it again
 
@Unihedron But, I ended up making a very nice math quiz based on questions in a database, it was pretty cool
 
@NicholasRoberts Ok, let me clarify that: PHP has bad design, gives you minimal control over error handling, and makes it difficult to control what's shown on front end. But that doesn't make it a bad language.
It works. That's what matters.
 
@deadlydragon00 do i need to put some jar file to pick those js and css files ? i mean, it's something like that the server can't identify the location of my css and js
 
oh yeah I remember you need to add those dependency
 
@deadlydragon00 ok. i'll re-export my project and see
 
6:01 AM
@Unihedron You have very good opinions
 
@deadlydragon00 i'm not using maven.
 
@CrazyNinja Whats your experience in programming?
:23469292
sorry i meant that to unihedron
 
no maven needed
 
@NicholasRoberts No experience whatsoever.
 
6:04 AM
@NicholasRoberts Always Java, i'm still in second year of college, we also taught PHP. i agree with Unihedron said PHP, is for fast, easy development. But programming is the same everywhere!
 
Youre right, the logic is the same across the board. I just find myself getting overwhelmed with all the different languages
 
@deadlydragon00 negative :( same problem is there
 
@crazy I cant test it cause I dont have netbeans installed...
 
How does one apply a regular expression to a text box in html??
 
@deadlydragon00 I think something wrong with the way i export my project.
 
6:17 AM
you need to experiment that :D
Im not actually Eclipse fun boy.
> I used the old school netbeans for webdev
 
@deadlydragon00 yeah. I know, this is the era of IntellJ
 
and Android Studio as wel
 
@deadlydragon00 we are fcuking dead now
 
Im already extinct so no surprised
 
heheh
 
6:19 AM
I think I should re-install it again...
 
6:51 AM
hey guys
basic question - does anyone know "command that could be used to connect to a linux server as a specific user"
 
Hi!
 
Is it ssh right?
 
 
2 hours later…
8:27 AM
hmm
 
hmm
 
9:07 AM
Why is it so dang hard to find easy to make recipes? >_>
 
Because you're not looking for easy ones?
 
9:35 AM
o/
 
Welcome back!
 
hiya @uni
 
Hi
 
hi himedom
 
ASR
hi
 
9:46 AM
hi asr
 
ASR
I have created one class
Myclass{

int a;

Myclass(){

super();

}

}
what happens when I call super() ?
 
the constructor of Object is called
 
ASR
I did not find any constructor in Object class grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/…
then how it is initializing int value to 0?
 
there is no constructor because a class does not need one if there is nothing to do
 
ASR
but you told me the constructor of Object is called
when we write super()
 
9:51 AM
yes. if there is one, super calls the constructor of the class from which your class is extended
 
ASR
It's not always necessary to assign a value when a field is declared. Fields that are declared but not initialized will be set to a reasonable default by the compiler.
 
there it says: "You don't have to provide any constructors for your class, but you must be careful when doing this. The compiler automatically provides a no-argument, default constructor for any class without constructors."
 
ASR
so default constructor will not provide values for the variables right? as per above statement
 
yes, but native values are initialized as said in the link above
and object will be initialized with null
 
ASR
yes
@homedom thank you.
 
9:58 AM
@asr you're welcome
 
ASR
@homedom i need to improve programming skills do you know any links?
 
hi guys!
Can I make any site and make money from it?
 
ASR
@Harish create a blog
 
@asr sorry can't help you there. You may want to look for a beginners book. That often helps. Or may have a look at the oracle docs where my links are from
 
@ASR how I can make money from it?
 
ASR
10:04 AM
@homedom ok thank you
 
@harish I don't know your skills, but if you ask such a question in a Java Chat, I think YOU cannot..
 
@homedom I have basic asp.net skills
and why I cant?
 
@harish then you seem to be in the wrong chat
 
@Harish Yes.
 
@Unihedron I cant ask question here?
 
10:07 AM
@harish This is a room for Java development, not for tips on how to make money with no idea
 
@homedom ok
 
ASR
@homedom if default constructor do nothing ( I mean it is not initializing the instance variables ) then why we are using to create object, MyClass m= new MyClass()
new operator is used to create memory in heap, what does it mean MyClass()?
 
@asr because otherwise you cannot instantiate an object
@asr you may want to have a look at this: docs.oracle.com/javase/tutorial/java/concepts
a class is a "blueprint" for an object.. you can instantiate multiple objects from the same class
this is called object oriented programming
 
ASR
@homedom so constructors are to instantiate objects, but not instance varibles?
 
the variables are part of the instantiatet objects. There is a set of variables for each object
 
ASR
10:21 AM
yes
 
the constructor CAN initialize variables. But if you do not do it manually, they are initialized with zero or null
you can do whatever you want in your contructor to create an initial state of an object
 
ASR
@homedom yes.
thanks
 
May someone can help me too. I am creating an application with database access. I do not use JPA for reasons. So I use JDBC and write plain sql.
Now I have a model: A Contact can have one or more Addresses and belongs to one AddressBook. I then created 3 DAOs one for Contact, Address and AddressBook. Now in my database, the id of AddressBook is a foreign key in Contact table. I know that you should not call DAOs from other DAOs, but how do I get the addressbook_id to the service class to fetch the AddressBook for the Contact?
 
@homedom Why not JooQ then?
 
I don't know what this is, but we have multi tenancy and we solved it with one db per tenant. I don't knwo if JooQ is capable of that. Therefor we like to use plain sql and also for other reasons.
my question is just how i design my DAO layer the right way. I have the addressbook_id in the ResultSet in the ContactDAO, but how do i pass this (and other foreign keys) to the Service class which combines all Contact data (address, addressbook)?
they stated here: stackoverflow.com/questions/8988252/can-a-dao-call-dao that you should do it this way. But not how :(
 
@asr thanks. But as always they do not show examples where the object (here StudentBean) contains another object which must be fetched from another table.
 
11:07 AM
ayy ;3
 
You should have connected dark blue to the triangle yellow is connected to, that would make the way shorter for triangles on dark blue. — Frithjof 19 mins ago
Pfft, I know I suck at games :P
 
any1 know about HtmlUnit
 
hi
I want to write a dailyRollingJDBCAppender
how can i do that?
and in other word:
I write a class like dailyRollingFileAppender
is needed that implement all methods that is in dailyRollingFileAppender??
 
wat
u shouldnt start a class name with a lowercase?
 
DailyRollingFileAppender
 
11:18 AM
@hossein Recursive definitions makes no sense.
 
person has same issue as me so just linked that
                    final HtmlForm form = page.getFirstByXPath("//form[@class='adjacent bordered']");
                    HtmlTextInput user = form.getInputByName("username");
 
@0x2B What about it?
 
it keeps giving me this
May 23, 2015 7:14:06 AM com.gargoylesoftware.htmlunit.html.InputElementFactory createElementNS
INFO: Bad input type: "email", creating a text input
May 23, 2015 7:14:06 AM com.gargoylesoftware.htmlunit.html.InputElementFactory createElementNS
INFO: Bad input type: "tel", creating a text input
nvm x.x im dumb
 
...
 
Hey guys
Has anyone heard of the maximum weighted independent set problem?
 
11:29 AM
I had.
 
I have a pesky little problem. I've written up the code to solve the problem, but theres a select few test cases for which it doesnt work. I fear its to do with the base cases I have for my recursive function. Currently, my base case is checking for whether the current node is a leaf or not
(using trees)
can anyone think of any other cases that could be checked?
I'm pretty much trying to solve this problem: stackoverflow.com/questions/10486089/…
but one of the solutions given is in python, and I can't compare it to my java solution to find out what's wrong
 
12:03 PM
8 messages moved to bin
 
@Erum this room is not for android discussion
RTFM
 
rofl
so cold.
 
if anyone has spare time, any help on my question would be appreciated. I have put it on SOF here: stackoverflow.com/questions/30412391/…
 
12:16 PM
@cp101020304 why don't you use objects instead of an array? Create a class which has a weight and two other connected nodes. Then put all nodes in a list and sort them by weight.
than take the one with the biggest weight put it to the independent set and remove this one and its neighbours from the list
then take the next biggest weight, ...
 
I HAVE RETURNED
good (somewhat late) morning, Java room
 
oh hey it's you :D
hiya
 
\o
Somebody mind giving me a small slap for seriously considering reflection for javabot?
 
who excute log4j JDBCAppender ConversionPattern? which method in which class?
 
12:21 PM
Why I got some downvote here
-2
Q: Is Java's Lambda equivalent to Objective-C Blocks?

AbdellahI am new to Objective-C languge and I noticied that Lambda expressions are equivalent to Objective-C blocks. Is Java's Lambda equivalent to Objective-C Blocks?

 
reflection?
 
or maybe a big one?
 
@Abdellah Ask the people who did?
 
I already did
 
@Vogel612 What about it?
 
12:22 PM
@Abdellah probably because it's moronic to ask about that difference??
and because you made 0 research effort
@Unihedron remember the canned comments?
 
@Abdellah Since you got 2 upvotes which gave you 10 rep over 4 downvotes which only took 8 rep from you, I'm not sure what you have to complain over the downvotes
It's not like your question is a good one or is appealing to answer.
 
who excute log4j JDBCAppender ConversionPattern? which method in which class?
 
@hossein Run a debugger.
 
@Vogel612 maybe
 
@Vogel612 What about them?]
 
12:26 PM
currently I have a class that exposes a Properties file via a static interface
and now I am about to start binding the interface of that class to chatCommands
 
@Unihedron it is jar file . how can i debug that?
 
@hossein use a debugger..
 
@Vogel612 I can see where you're going already.
But continue.
 
well... the method's names correspond nicely to actions that need to be performed
and since the command names currently are only single words it's moot to think about making a separate command for each action
now what I thought is that I could just get the second part of the chat-message and match it against the method names
and then depending on the parameters call it and then handle the result.
via reflection ...
 
OMG
that's worse than I expected
 
12:30 PM
Hello! I want a simple advice. Now I work with Apache Wicket as front end for some JEE app. I want to know if it possible to encode parameters for some form. I know about some solutions that uses js. But, I want to use something in Java, for example some like Jasypt.
 
@user1929959 What do you mean?
 
You know others solution like Jasypt for encrypt parameters from form?
 
Yep.
Are you looking for a solution specific to a library?
 
a library or a framework...
 
'Cuz I don't know of one, but if you're looking to write some code instead I can help with that.
 
12:44 PM
gud ev :D
o/
 
hiya!
 
hiya Uni =)
Side-effect of using computer mouse
 
Heh.
 
1:22 PM
Morning, Java!
 
afternoon
 
evening
night ^^
 
thank you
 
1:47 PM
XD
 
haha
@Michael Is that you michael? :P
 
He sent his cousin ;P
Michael is an orangutang ;D
 
@ItachiUchiha That's Gary.
Cousin on my father's side.
He has anger management issues.
 
;P
 
2:31 PM
@Michael xD
 
3:13 PM
Dead chat.
 
@Michael Cool cool.
 
4:03 PM
evening minna-san
 
hiya~
 
no one here...
fly away.
 
K
not my loss.
 
4:19 PM
Off to lunch. Bye Java!
 
Bye!
 
 
1 hour later…
5:40 PM
I am trying to create an inventory system for my java game, I have most of the logic figured out, but I don't know how to display it. My game is drawn inside a JPanel I have. does anyone know what swing component I could use to draw the inventory on? or should I draw it over my game... idk any help?
 
5:54 PM
Just draw sprites over the Panel? @JosephDour
 
6:05 PM
Anyone know about Synchronous queues
 
 
2 hours later…
8:21 PM
ugh... eurovision....
 
9:00 PM
@Gemtastic what is that?
 
A song contest
It's all over right now.
 
Never heard of it
 
You lucky sodd
 

« first day (1673 days earlier)      last day (3254 days later) »