« first day (1698 days earlier)      last day (3243 days later) » 

1:08 AM
Hey, I just started using Java a few days ago, could someone point me somewhere that can help me create a method that is called every frame?
Would I be attempting to use something such as a while loop?
 
while(1){method();}
 
thats exactly it? so if i want it to basically continually run forever... just like while(this != null){ Update();}?
 
1:26 AM
yeh
1 means true
so it will always be true
 
oh, cool, thanks, that is very helpful
 
ADG
1:54 AM
morning
good morning
 
 
1 hour later…
2:55 AM
what did you remove!!??!?
i must know
 
 
1 hour later…
3:55 AM
Hola~!
 
4:07 AM
Szia
 
 
2 hours later…
5:43 AM
@Vogel612 hmm
 
6:05 AM
@thor625 if you are creating a GUI, I won't recommend it.
 
fge
@Aequitas sorry but that won't work
1 is not a boolean
 
6:43 AM
@Aequitas That would work in a lot of languages, but not Java. Better luck next time.
 
what is the best practice when you use java.util.Date and java.sql.Date within the same Class? Should i write the fully qualified name before every object that i create or just import both at the top of the class?
 
You can't import both because otherwise Date is ambiguous.
You're pretty much forced to either use fully qualified names for both, or import one and use the other with their fully qualified name.
 
@Unihedron yeap. That's what i'm looking for the standard way when writing code
@Unihedron thanks
 
Then don't use them in the same class.
 
Goog mng Unihedron
Any one tell me, Best open source tools available to read the log files stored in a particular location in java
hey
 
7:05 AM
@AnilkumarBattula JDK
write code
 
@AnilkumarBattula write one and share with others
 
7:23 AM
Apache Chainsaw
LogMX
LogExpert
 
@AnilkumarBattula useful
 
But, i need a sample application in java, using this best log readig tool
 
works or works not, there is no best
 
Morning Java
@Ghanshyam STOP PINGING PEOPLE FOR NO APPARENT REASON!
"hmmm" as a reply doesn't count. make some points
Personal last warning from my side.
 
@Vogel612 morning! someone got angry :D take it easy
 
7:36 AM
morning all
 
@CrazyNinja I'm not angry...
 
@Vogel612 let me know if you want to borrow a hammer
 
hmm
 
@Vogel612 by the time he'll understand the behavior that should maintain here
@Unihedron hahaha... i know. you are good on it :D
 
:P
Shipped code today, productive day
 
7:38 AM
okay but i never ping you why you tell me :))
 
gotta study for exams tomorrow, I haven't studied all this time at all
 
good luck
 
You totally didn't ping him.
 
@Unihedron JCE?
 
@ItachiUchiha I wish :,(
it's something else
 
7:40 AM
but he telling me anything that time i piged
 
Ahh, no worries. I know you will ship code for JCE someday, and that day will be a Productive day as well :)
 
That day will be beyond productive :) We need confetti
 
okay i pinged you actually Uni
you can say me
 
and fge
 
why he telling me
 
7:42 AM
for no reason whatsoever
because I told you at that time, you shouldn't do that
 
@Ghanshyam Because you pinged him twice for no apparent reason.
I actually don't care because I'll just kick you out of the room.
Negotiations are for kind people. I'm not a kind person.
 
okay so its my fault all
here i come for knowledge only thank your all beautiful word
 
@Unihedron how do people get Caprica Six in a chatroom?
 
@Sword Ask Madara, he knows. I don't know that bot well to tell you.
 
@Unihedron why you want to kick me
bc i asked question
 
7:49 AM
Exactly.
 
@Ghanshyam Whats bc?
 
because
 
@ItachiUchiha The opposite of ad.
The terms anno Domini (AD or A.D.) and before Christ (BC or B.C.) are used to label or number years in the Julian and Gregorian calendars. The term anno Domini is Medieval Latin, which means in the year of the Lord but is often translated as in the year of our Lord. It is occasionally set out more fully as anno Domini nostri Iesu (or Jesu) Christi ("in the year of Our Lord Jesus Christ"). This calendar era is based on the traditionally reckoned year of the conception or birth of Jesus of Nazareth, with AD counting years from the start of this epoch, and BC denoting years before the start of the...
 
lolz
thats is BC
not bc ;P
 
bc ~= cuz
 
7:50 AM
catch you guys later..
 
@Vogel612 No. :P
 
@Vogel612 because you don't know hindi :P
 
cu
 
of course because
 
@Sword ~confusion ensues
 
7:53 AM
just let it go but still didnt my ans. get anyone know javaswing
 
bc is a short form for a vulgar word..used in india..
 
@Ghanshyam Stack Overflow is a question and answer site for PROFESSIONAL and enthusiast PROGRAMMERS. So when you ping to someone, do it only if it is something you have looked for hours and hours digging on to it. And most important is which i consider; the politeness when you asking something from someone
 
bc means because okay
@CrazyNinja thank I understand.. i will always
 
Someone here who can help me with JNI C++ to Java?
 
@MicroHat11 There's a difference?
 
7:58 AM
What difference?
 
I'm asking you what difference there are.
 
@Unihedron don't confuse them too much...
 
Between C++ and Java? I'm just asking if somebody has any experience on JNI esspecially with sending an image from C++ to Java, I want to send pixel bytes but there seems to be something wrong with the compression
Giving me a blurry a image, but i want to send bytes not pixel ints
 
@Vogel ^ See, xy problem.
 
hmm... yes, but that's a very unconventional way to find out..
 
8:01 AM
If somebody wants to help, here is the post: stackoverflow.com/questions/30874242/…
Please enlighten me with some wisdom
 
@Vogel612 sorry for All thing that happened actual i was want in a time solution.. so, this things happened
 
okay ;)
 
thanks a lot
 
8:19 AM
hi all
i want to format a date expressed in mills in a hh/mm/ss. So i have problem on it:
calendar.setTimeInMillis(Long.parseLong(parts[1] + "L")); -> launch an expection : java.lang.NumberFormatException: For input string: "1432962003000L"
how i can fix it'
 
Pass in a proper long.
L is not a value.
 
works. I supposed to add L, because i always added an L on long
tnks a lot.
 
You're welcome, just remember not to assume the L is important. When in doubt, look up the javadocs.
/javadoc Long#parseLong
 
Which one do you mean? (type the number)
1. java.lang.Long#parseLong(String, int)
2. java.lang.Long#parseLong(String)
 
8:23 AM
@Unihedron long parseLong(String s): Parses the string argument as a signed decimal long. The characters in the string must all be decimal digits, except that the first character may be an ASCII minus sign '-' (\u002D') to indicate a negative value or an ASCII plus sign '+' ('\u002B') to indicate a positive value. The resulting long value is returned, exactly as if the ...
argument and the radix 10 were given as arguments to the int) method. (1/2)
 
Huh.
Also, you should be using Long.valueOf.
 
fge
@OiRc L is a suffix used in Java code to indicate that the numeric constant is a long (they are ints by default)
Similarly you can suffix floats with f since floating point numeric constants are doubles by default
(although I fail to see why you would actually want to use a float instead of a double)
 
@fge Because float is of 4 bytes where as double is of 8 bytes?
 
Hello!
I recently started building a nodejs application with a c# client. Is there an event in the client that represents a failure to connect to the server?
Like what is the event called?
 
fge
@Mr.777 that is a poor tradeoff for a float's lack of precision; more annoyingly a float's mantissa doesn't even cover the domain of integers
 
8:33 AM
I know there is connect, disconnect
but is there an error or failedtoconnect event that gets fired?
 
@fge What about using strictfp modifier for precision consistency?
 
(using SocketIODotNetClient which implements the javascript version of socket.io so my events are similar - socket.on('connect') etc...)
 
fge
@Mr.777 this and float's inherent lack of precision are orthogonal problems
What is more strictfp is really only used when you perform calculations on fp values; it has no effect on numeric literals
 
@fge Okay, I see so, when should we really use float?
 
fge
Well, as I said, I see no legitimate use for it...
But then I don't use fp that often
If there are such uses I don't know about them
 
8:37 AM
@fge Okay, I will avoid using it too then.
Also, one more question, I was reading somewhere that to handle currency type, one should use int instead of double, is that true?
 
thanks all for the explanations
have a nice day.
 
8:52 AM
I can change some file of program eclipse (say file system) inside Windows?
Excuse for this question because in Office I must to use windows
 
9:08 AM
@MirkoCianfarani why would you need that anyways??
 
When I create new java project or Web-app or project...
In these steps you can change the directory or java resource
In default is src but I need other directory
so I want change default directory or java resource
so I not lose time @Vogel612 ^
 
well.. yes you can...
under new Project there should be the possibility to set a directory other than your workspace
 
know how?
 
sure.
^ uncheck "Use default location" and put the info into "location"
 
no!! not want these !
 
9:14 AM
ohh... you want to change the sourcefolders?
 
hello everyone
 
that's on the next tab..
 
@JoshMenzel Hi.
 
hiya @JoshMenzel
 
9:15 AM
and not want again (everytime) to add new folder
 
@MirkoCianfarani click next instead of finish...
 
Can anyone help me with encrypting/decrypting strings in nodejs and c#?
 
no get out we're in the java room
 
but nodejs is in java?
3
 
fge
9:16 AM
Not at all
 
or is it javascript?
 
@JoshMenzel This is the best joke I've heard this year, haha.
 
good aft
 
@deadlydragon00 Type /help to see all my commands.
 
while I create "new dynamic web project" I have these java resource in default
I want to change directory default without remove src and add new @Vogel612
 
9:29 AM
use the big fat edit button that gets available when you select src....
 
Vogel teaches chat users how to use a PROJECT WIZARD
@deadlydragon00 Morning!
 
@Unihedron I never thought I'd get to that level...
 
!!tell Unihedron clashon
 
@Unihedron Let's war baby!!
 
low uni =)
!!tell sword bth
 
9:30 AM
@sword Butheart
 
I not want do this press edit... wnat change file system (inside c:windows/program/eclipse) and change line of java resource. CLARIFLY now ?
 
I'm a clari-fly. bzzzz
2
 
@MirkoCianfarani no...
not at all
 
why?
in linux is possible
 
@MirkoCianfarani I'm glad you're aware
Now get rid of windows
 
9:45 AM
wait... it's about symlinking??
 
@MirkoCianfarani Yes Linux is possible. As proven by Linus Torvalds in 1991
 
eclipse
 
computers are like air conditioning. it works better with windows closed
I heard that somewhere, forgot the source though. Probably from Madara.
 
@Unihedron I think hakase said that, not sure
 
intellij
 
9:49 AM
@deadlydragon00 oh
 
> A computer is like air conditioning – it becomes useless when you open Windows
 
Oh confirm ^
 
@ItachiUchiha source?
in TeX, LaTeX and Friends on The Stack Exchange Network Chat, Jan 11 at 22:04, by Paulo Cereda
@AlanMunn A computer is like air conditioning: it becomes useless when you open Windows.
in Quotes and Jokes, Oct 25 '10 at 10:07, by Ph.E
A computer is like air conditioning; it becomes useless when you open Windows.
Linus Torvalds
 
0
Q: Change file system of Eclipse for UI (New Web dynamic project)

Mirko CianfaraniI want to change file system of Eclipse for change "support" or "User interface" of dynamic project. I have windows 7 but I am interested also on linux. Should be easy change file system in linux and not in windows. What do I would to change? In eclipse, I press NEW-> Dynamic Web Project, pu...

For who is curios.. I create the question
 
10:04 AM
@Unihedron Its everywhere : iwise.com/4fFUU
 
fge
10:26 AM
@Unihedron I don't believe this quote is from Torvalds
 
@fge I agree, but Ita's link seems to tell otherwise
oh well, these quote sources are messed up anyway
 
@Unihedron if you are free ,please take a look at this
-15
Q: Why my questions on meta are deleted?

iJavaI've asked question how I can decrease my SO points to 1 and my question was deleted at once? Why? Where can I ask such question? P.S. Please, everyone, if you have a minute please downvote any of my questions/answers!

 
@Sword TypeError at "this": undefined is not a function
 
now it is defined.. recompile..
the 16th downvote was by @Unihedron
Shau could help that guy out..
 
10:44 AM
Oh? Who's that?
 
some ghost probably..
 
@Sword gone
 
@Unihedron yeah i was surprised that you did not do anything with it.. And then I see your vote :D
I am proud of you
 
hi can any one tell me my Project is in work space but Project not found in apache tomcat server please tell me where am doing wrong ? or how to add Project in apache tomcat server
snag.gy/lKIgv.jpg
please tell me
suggest me
 
@Departure it happens when the proj is not web based
run a jsp/index file
to see if tomcat identifies it.
 
11:09 AM
@Gaurav when i run login.jsp then its error coming
 
@Departure double click opeenkm
change the ports
any 4digit no will do
 
no...
 
8082 should i give
@Gaurav
 
you need to find out who's on these ports...
 
@Departure 8082 8083 8084
 
11:11 AM
probably you already have a tomcat running
smoke that one out
 
yes he has tomcat running
but if the proj wont run doesnt matter
 
well starting a new instance won't work then
@Gaurav it's not "run project", but "start new tomcat instance and deploy project to that instance"
and that's inane
you should just connect to the already running tomcat and deploy to that
 
once the system restatrts he can use the default ones by creating a new tomcat instance & cleaning a new one/deleting this one
 
@Gaurav which port we have to change
 
Http one @Departure
 
11:13 AM
 
change all 3 to be on a safer side
 
i set it 8082
 
@Departure run
 
coming when i start server
 
@Departure ?
 
11:21 AM
@Departure Stop badgering chat users. If they're going to respond, they will.
2 messages moved to bin
 
@Unihedron SORRY
yes
 
Anyone for some help with Spring Boot?
 
@Departure app running?
 
no not yet
actully my project not added with open thats reason this Problem is coming
 
hi
 
11:30 AM
@OiRc hi
 
if i have two strings like this:
 
?
 
hello:39:39 and hello:39:00 i want to use regex to
delete the first string in this way
 
hi All
 
if i find numbers >0 in the right of 39:
 
11:32 AM
Arrays.equals(jPasswordF.getPassword(), jPassword_confirm.getPassword()) in place can i use String to compare a password
 
@Ghanshyam yes
 
so i wrote this if(string.contains(:[1..9][1..9])){}
it's not password
 
Arrays.stream(args)
                .filter(arg -> arg.equals("foo"))
                .toArray();
Why does this return an Object[] and not a String[]?
 
but the if which i wrote doenst work
how i can match the numbers?
 
fge
@MadaraUchiha because that is what Stream's .toArray() returns
 
11:34 AM
my regex is wrote well?
 
@fge Can I not collect to a type-safe array?
 
fge
Yes you can
/javadoc Stream#toArray(IntFunction)
 
@fge Object toArray(IntFunction generator): Returns an array containing the elements of this stream, using the provided generator function to allocate the returned array, as well as any additional arrays that might be required for a partitioned execution or for resizing. (1/2)
 
okay string s=arrays.tostring(jPasswordf.gettext()) it it right
 
fge
^^^
Basically: .toArray(String[]::new)
 
11:36 AM
Aha
 
fge
Also, you coud do .filter("foo":equals)
Argh
"foo"**::**equals
 
no that's not how markdown works
 
fge
(yep, method references work even on string literals
 
filter("foo"::equals)
@fge This is really only because String literals are treated as a String object in syntax.
 
fge
Yes, I know, no need to tell me :p
String literals are peculiar beasts in Java
 
11:39 AM
Which is surprising with the knowledge in mind that Java syntax is extremely verbose.
 
fge
Even "foo".toUpperCase()::equals is valid
(or just ::equalsIgnoreCase in fact)
 
((FI) a::b)::defaultMethodInFI <- works too
where A::b matches FI
 
@io
@OiRc have u chkd regex
+ why to use regex
do it using string fns
 
@fge The actual condition is a bit more complex
String[] argsWithoutSpringOptions = Arrays.stream(args)
        .filter(arg -> !arg.startsWith("--") || arg.equals("--raw"))
        .toArray(String[]::new);
 
aha
not a bad workaround :)
 
11:46 AM
This whole DSL this CLI has sucks so much
Some arguments are passed with -, some without. One with -- (--raw), and now spring arguments are entered into the mix
 
O_O
 

« first day (1698 days earlier)      last day (3243 days later) »