« first day (1714 days earlier)      last day (3228 days later) » 

9:01 AM
:)
 
fge
@CrazyNinja session attributes are merely decorations anyway; recall that HTTP has no notion of session. It just happens that the servlet API can create sessions for you, which is why you have such attributes in JSPs in the first place
But also in plain servlets, in JAX-RS applications etc etc
 
@Unihedron how can i deal with my Booking Object which i have created in server side to manupulate in client side? Sorry if you feel i'm just asking stupid questions, cos i really don't know this. I mean if we use JSP we can import that Booking class like <%@ page import="org.my.domain.Booking" %>. But in io.js how can i do this?
 
fge
And this channel is (sometimes) about Java, not JavaScript
 
iojs is a javascript thingy
 
@fge so, now java is walking to Javascript's house ?
 
fge
9:07 AM
What? No, not at all
Where did you see that?
 
fge
It's rather that JS tries and makes inroads into the servers (with node and iojs)
 
import libraries with require(package)
files with require("filepath")
 
hi any one can tell me what is rolde of aggregation Compotion in UML
 
research it
ba dum tsh
 
9:15 AM
If you want to use a non-deprecated templating system, you can use Thymeleaf. But the way of thinking with the templates is going away entirely; you have a server side application in java, and a javascript front end client that will only interact with java when it has to
 
@Unihedron without any knowledge with Node.js, will i be able to use iojs to my new project? Or else first do i need to touch Node.js ?
 
@CrazyNinja you need to know JavaScript and Node.js
 
@CrazyNinja iojs is Javascript
if you don't know javascript don't use it since that's like hammering a nail with a hammer when you don't know how to use a hammer - use an old shoe instead if you must
 
@Gemtastic But there will be thousands of ajax calls when it comes to only Servlets and pure Javascript
 
@CrazyNinja No, because the design is different from how it's done with JSP
 
9:17 AM
@Unihedron I have learned js. But not deeply. Anyway i will be able to understand JS.
 
@CrazyNinja There's a booking system in the client side JavaScript. You send that along with a HTML page to the client when they first visit your site, after that, the booking is made clientside, then it ajaxes the booking once it's been completed to the server which takes care of the booking it receives.
 
alrighty, I recommend iojs for a server since JSP is 1. deprecated 2. not good for most tasks
Also, the deliver man just came with the package for my SE swag! :D
 
@Unihedron :D
 
@Unihedron no need to keep pressing F5
 
@Unihedron yeah yeah. I understand and totally agree with you. JSPs are too old now. That's why i'm looking for a replacement here. Need all of your help!
 
9:20 AM
Yeay!
Hey, the page turned into "Delivered".
And "signed by Mr. Lau"
 
:)
 
so you are "Mr" now
 
@Tavo He's 17 already
 
I know, I just find it funny
 
@Unihedron So long waited to see this
 
9:21 AM
It's not like with girls where you have to marry to becoe Mrs
 
Mr. Unihedron :D
 
Mr. Anderson
 
Actually, Mr. follows your last name
And it's a masculine title, so you should refer to me as Mx.
 
@Unihedron Unless you lack a surname, then it's applied to whatever name you have
 
who has a last name on the internet?
 
9:22 AM
I do
My full alias is actually Unihedron -1 0.
That makes my title "Mx. 0"
 
not if we follow the Spanish rules
you would be Mr -1
 
Hi I have issue with maintaining log in wildfly logs
 
I'm not Spanish
 
anyone here to help me with it
 
@Tavo I'm not Mr
 
9:24 AM
neither Unihedron is your name
 
They should have a gender neutrum for everything on the internet since you never know if it's a he, she, them, or dog :O
 
:P
 
No, it is. It's a registered alias.
 
Please I need a quick solution on it
 
9:25 AM
@Gemtastic or cat. Stop oppressing meow
 
and platypuses
 
@Gemtastic That's simple. cis-gendered vs not-cis-gendered
 
@jaya what
 
free platypuses from opression
 
Help, help, I'm being oppressed!
 
9:26 AM
Yeah can you tell me how to disable logging in server.log file if using wildfly?
 
Hello brother @wonderb0lt~
 
took a while to find it
podcast on terminology on gender ^
 
add a category to the subsystem logger @jaya
have u tried this
 
Yeah I tried doing that
 
9:29 AM
@Unihedron 10 minutes for that?
 
@jaya wait let me find some solution
 
<add-logging-api-dependencies value="false"/>
<use-deployment-logging-config value="false"/>
 
@Tavo I didn't make you listen to it
 
@Tavo It's a complicated topic
 
inside category subsystem I added these 2 attributes
 
9:30 AM
@Unihedron not talking about that. I just wonder how people can talk about gender for 10 minutes. Male, female, and a bunch of stuff in between that people can't agree upon
 
... it's a podcast
 
@jaya wait let me find some Solution
 
@wonderb0lt here's a question. If a man changes his sex, would you refer to the person as a transgender man or a transgender woman?
 
1
Q: How to log application auditing to separate file on Wildfly 8

KoeusI have a Java EE application running on Wildfly 8 in which I want to enable audit logging. Using an InterceptorBinding and Interceptor I am able to catch all relevant API calls. What I want to do is to write these audit calls to a separate audit log file. I tried implementing this using logback,...

@jaya did u try this
 
@Tavo that's not transgender, it's transexual
 
9:32 AM
(same for a woman, but let's just use one sex for simplicity)
@Unihedron you are right. I meant transexual
 
hrmph... I think I begin to sound like fge, but...
can you get the teenager buzztalk below java talk in priority??
 
@jaya update if u have solved this issue
 
@Vogel612 There's a Java talk?
 
just a little... wildfly..
 
that's... vampiring
 
9:34 AM
Yeah but this solution is to add audit logging, one more file together with the server.log
 
I'm happy I can't say anything about horrible EE enterprisey application servers
 
this won't solve my purpose
 
ermph.. you're a pessimist, uni...
 
I don't counter.
 
@jaya purposes aren't soluble..
try problems, they often do better.
 
9:35 AM
My life purpose is also not solvable
:(
oh sorry right no teenage buzztalk
 
@jaya wait
 
9:47 AM
!!urban buzztalk
 
@LeeJeong No definition found for buzztalk
 
but you know, people here makes sense not only in java, so sometimes cant help it but talk about other things.
 
I can't believe Windows has the shake minimizing activated by default (facepalm). And that you have to create a new registry key to deactivate it (double facepalm)
 
Windows? What miraculous pile of junk is it you're talking about?
 
^^^
 
9:53 AM
yeah, that one
 
@Tavo Why care about crapware?
 
@Unihedron yet again, company policy
 
No, I meant why you should be surprised Windows is crappy.
 
good question. I guess I still find it hard to believe that the most extended OS in the world for computers is so poor
 
hahahaha
 
10:30 AM
@Unihedron I think that sounds more exclusive than inclusive... Cis is a very wide term after all, don't separate ut, integrate us!
 
11:03 AM
I hate it when my code doesn't work because I forget to put the right objects inside my collections. Such a waste of time!
 
O.o
I must have magic code fingers somehow because I manage to get JavaScript code written like Java work.
Knowing what I know about JavaScript now... I have no idea why it works
 
@Gemtastic Using ES6? ;)
 
@wonderb0lt Actually, ES5 since that's the syntax google apps script is using
Also, JavaScript function fields are freaky.. Why are there secret arguments in there? :O
Maybe the tutorials I've watched just explains it bad but...
 
@Gemtastic Secret arguments?
 
@wonderb0lt Yes, aparently it has some under the hood variables it sends in before your arguments so that - among all things - your function will know what this is
 
11:26 AM
Yep there's some black magic involved there :D
 
Hi all, I'm looking to add an option for my java program to repeat an option menu if either the letters S M or L aren't input, how could I go about that? I'm trying: this:
if (!carSize.equalsIgnoreCase("s") || !carSize.equalsIgnoreCase("m")
|| !carSize.equalsIgnoreCase("l")){
But it doesn't seem to work
 
"but it doesn't seem to work" isn't very specific
 
@jams can you try this:
 
well if I enter any other letter it will just continue through the menu
it won't repeat.
yes triForce?
 
if(!(carSize.toLowerCase.contains("s")||carSize.toLowerCase.contains("m")||carSize.toLowerCase.contains("l"))){
         //do something
}
 
11:30 AM
nice, thanks, i'll try it now
 
I think you need a while loop
 
fge
@triForce420 that's wasteful
 
I used a small variation of that triForce I think it will work, thanks!
 
fge
You only need to lowercase once
 
> My name is <name> in South of Korea. First of all, I ask to be excused to you reading this question.
:D
 
11:32 AM
@fge ahh.. I didn't know that. thanks for the info
 
fge
Wait, that's not what you think
What you should do is create String tmp = carSize.toLowerCase()
Also, if it's a single char letter you can just test .charAt(0)
 
@fge nice. :)
 
I changed it to if (!(carSize.equalsIgnoreCase("s") || !carSize.equalsIgnoreCase("m")
|| !carSize.equalsIgnoreCase("l"))){ as I still want case ignored, it hangs the program there now instead of passing it, need to get over that hurdle now!
 
fge
You could also do an enum
 
Is that if case your only code in this? If cases will not repeat things
 
11:35 AM
no, I have a while (!next){ and another if
Okay, now here's the full paste of the if statement
 
And the code in your if case will change the next variable?
 
Any idea why it's stopping? it just terminates after correct or incorrect input now
 
fge
@jams that's not how you should do it
Do something like this:
boolean validInput = false;
while (!validInput) {
Oops
Ohwell, nevermind
Anyway, set validInput to true if and only if you have a valid size
And you'll get out of the loop
 
@jams I agree with you.
 
Thanks @triForce420
@fge I'll change it to that, thanks
 
11:42 AM
why do you need string btw? I think you can use char instead
 
I'm new to java, so not sure what i could be using, let alone should be :) @triForce420
 
0
A: SimpleDateFormat behaves inconsistently

JoshIf you don't need time zone information take a look at the LocalDateTime or if you need time zone info: ZonedDateTime class in the JAVA-8 or if you are using 7 or before look at the joda version. Here is the ZonedDateTime Example: String timeString = "1980-01-01T14:00:00+0300"; DateTimeFormatte...

Are answers like this considered helpful?
 
@fge doWhile seems the better option here
 
"I have this strange behaviour using Java 6 standard library" "Here's how you do it in Java 8"
 
@wonderb0lt I'd consider that answer mostly meh and somewhat missing the point
 
11:45 AM
get carSize
while(carSize!='S'||carsize!='M'||carsize!='L'||carSize!='s'||carsize!='m'||carsize!='l'){
print error message
get car size again
}
@jams will that pseudocode work as well? :)
 
@Vogel612 Should I downvote it?
 
fge
@Vogel612 the ideal here would in fact have been to have goto available :p
 
^^^
 
@fge
lols
 
In Java, to make the compiler generate a goto, just use a reused exception object and use a try-catch jump block
I linked a relevant study once in here.
 
11:48 AM
-1
Q: When does object pointed by 'Example.class' come into existence?

overexchangeBelow is the program: package annotationtype; public class Example { public static void main(String[] args){ } } got compiled with below byte code. Classfile /D:/git/Java_programming/JavaCode/bin/annotationtype/Example.class ...... Compiled from "Example.java" public class anno...

 
-2 already, doesn't motivate me to read it :D
 
go for -100 I dont care the numbers. mind your business, if you do not like reading
 
wow. Someone got offended :D
 
typical 'RTFM' question
 
fge
    String input;
    goto inside;
    while (true) {
        System.err.println("Invalid size");
inside:
        System.out.print("Enter size: ");
        input = readSize();
        if (isValid(input))
            break;
    }
@triForce420 ^^^ why lols?
 
11:52 AM
do thing while(!isValid)?
 
fge
@Unihedron you would have to work around having to print the error message on invalid inputs
Not here
 
ohhhh
 
fge
But you can't do that in Java...
 
Yeah, duplicating code is prevented
 
fge
Not duplicating code, but having to do a supplementary test just for that
 
11:53 AM
people who try to offend think that someone got offended. your limit is, you can give -2 nothing more than that. Be in..
 
'only -2'
prepare to witness the power of teamwork
 
> you can give -2 nothing more than that.
 
@triForce420 Thanks for all your help - can I somehow upvote you on this chat? LOL i don't even know that!
 
challenge accepted
-4...
 
fge
Aargh, I was going to do it again! Greeting with "Retards" instead or "Regards" at the end of a mail
5
 
11:58 AM
:-D
 
@fge XD
 
fge
<-- happy that he reads everything he writes even though he doesn't look at the keyboard when he types
 
My coworkers are confused .I couldn't help but to laugh out loud to that
 
hahaha.. I'm not looking at my keyboard :P
omg.. I'm trying to stop myself from laughing.. I'm at work
can someone help me with this?

http://stackoverflow.com/questions/31203558/how-to-remove-expand-collapse-icon-in-vaadin-treetable

Thanks
 
@fge thanks for the idea, I know what to pretend to typo within my resignation letter now :D
 
12:00 PM
resignation letter? :O
 
Uni had a job. Had
 
rofl
 
wow...
we installed to live yesterday
 
!!
 
@Unihedron That didn't make much sense. Maybe you meant: d, ^, π
 
12:02 PM
sowwy cap
 
> Best retards,
Madara.
 
omg! I can't stop myself from smiling.. gonna burst into laughter in 3, 2, 1.....
 
> Business later, if our fate so determines.

Retards,
Uni
 
@Feeds Huzzah!
Oh wait, me too :o :D
 
^^
I went through and promoted some chat users I find worthwhile
 
12:05 PM
@MadaraUchiha as if you'd need it
 
@Vogel612 to see deleted messages :P
 
anyways today our PM gets an email
> On the testsystem the new email we wanted works, on live it doesn't
 
@MadaraUchiha hehe
 
I came here to kick noobs and read deleted messages.
 
first thing I do was check the code, since there was another complaint and I was already in the code
 
12:06 PM
And there are no deleted messages.
 
@MadaraUchiha it should be the other way round
 
LOL
 
Since the code was clean I went into the settings on LIVE and checked the new field I was asked to introduce
it was empty..........
 
@Vogel612 What? I can't hear you over the sound of all this kicking
 
hop, skip, jump
 
12:07 PM
lolol
 
stackoverflow.com/a/31201408/660848 <- this guy is grinding my gears
 
@jams Do you know what enums are?
 
No, Madara
I'll go look it up now :)
 
12:09 PM
y that?
 
@jams You did good, @MadaraUchiha :D
 
Thanks @wonderb0lt!
 
For what? :P
 
Sorry, misread
hoping it would pass
 
lol
 
12:11 PM
but bad assumption for this room, haha
 
You shall not. ... PASS!!
 
...
 
Nooo! Vogel is tanking the balrog so that he can get all the XP to himself!
2
 
Isn't that the thing about grinding? That's why you farm at places where there aren't many killstealers
 
pass is a python statement, and this is the Java room
 
12:13 PM
Pass is also a short form of password.
 
I think I'll pass on all these puns
 
Instead of pass you have to write // TODO: Auto-generated method stub here
 
That shouldn't pass codreview
or any VC-Hooks
 
Okay, my last question is this:
I need to change a collection of strings into a single string, I currently have it as:
stringTotal = string1 + string2 + string3
But i need to use concatenation or String.format(), how would I change the above to do so?
 
What's a Code Revjev? A Russian missle?
 
12:15 PM
@jams how is that not concatenation?
 
@jams You're already using concatenation
 
@wonderb0lt pfft
 
@wonderb0lt no no, that's an american invention :)
 
so it is concatenation? good. I was worred i needed to use concat()
ie: public String concat(String s)
 
that's a copy
/javadoc String#concat
 
12:16 PM
@Unihedron String concat(String str): Concatenates the specified string to the end of this string. (1/4)
 
Hmm, stupid question, what does actually happen if you a + b + c with a, b, c being strings? Does it become some specific JVM instruction, a series of string.concat calls or something completely different?
 
Possibly i guess.
 
fge
@wonderb0lt it will be a StringBuilder
 
it's calling into StringBuilder
 
It compiles into new StringBuffer(a).append(b).append(c).toString();
 
12:18 PM
:D Thanks you three
 
specified by operator + in jls
 
fge
Builder, not Buffer
 
@Unihedron no multithreading there, so it's gonna be a Builder...
 
The JLS says StringBuffer.
 
> To increase the performance of repeated string concatenation, a Java compiler may use the StringBuffer class or a similar technique to reduce the number of intermediate String objects that are created by evaluation of an expression.
Ah so it is JVM implementation detail
 
12:19 PM
Oh.
Anyway, it's just concatenation.
 
or like compiler-vendor specific
 
Good we talked about it :D
 
12:31 PM
Where to find some headstart tutorials on OSGI and its comparsion to Java EE specification?
 
probably on the internet
 
seriously? never thought of that, so helpful
 
@wonderb0lt answer quality exceeds question quality...
 
doesn't make it a good answer...
 
I ain't judging :)
 
12:44 PM
Good thing there's no rep minus on the chat
 
What do you mean there isn't?
 
@wonderb0lt What, you're not losing rep each message?
 
No
I'm already at 1
 
ahhh that explains ;)
 
Are you sure you didn't already lose all your reputation from chatting? You know, it's unlocked at 20 rep...
 

« first day (1714 days earlier)      last day (3228 days later) »