« first day (1374 days earlier)      last day (3558 days later) » 

4:19 AM
hi guys?
 
Hey @Sethu
 
yeah temme!! good morning
 
Good morning! It's noon here.
 
5:03 AM
@Unihedron hey man !
 
@ItachiUchiha Oh hey there!
 
slept well ?
 
Well indeed! Currently doing some more coding, lol.
 
on ?
 
A project. It's not really eventful around here.
 
5:08 AM
still, i would like to know the contents :P
 
(Yet another) minecraft bukkit plugin.
 
ahh, minecraft
cool !
how many people play on your server ?
 
Hopefully I'll move onto non-Minecraft stuff in a bit.
Not very many lol. Like 9 players online atm.
 
what do you want to work on ?
 
HmmMmmm...
 
5:12 AM
you wanna work on "HmmMmmm" ?:P
 
Yeah, I should work on figuring out something to work on. :P
 
If you like java - you can start with Javafx or android !
 
I should, there's a decent market for Android, and I've only touched on the basics.
I never did PHP (gasp), but I have total score of 6 (non-community-wiki answers total), thanks to regex
 
hi
 
ohaidere
 
5:21 AM
same here
 
sorry dude there is some work so couldnt able to reply you
@ita
@itachiuchiha hi
 
@Sethu its kool !
 
this is sethu from india
what about you? jus give me intro
 
I am from Leaf Ninja Village !
 
From Earth here. Earth is a pretty place.
 
5:27 AM
hmm cool
are you girl?
 
lolz
 
bcoz your name looks like. so thats why am asking u
say yes or no dude
 
we are not biased here !
 
Laugh out loud zebras:
-4
Q: Java Bukkit: setFlySpeed()

Dimitris DamianidisI'm making my own plugin in Java Bukkit... and i found a problem that i can't solve it... I'm setting the Player's Argument... then i have to set the 2nd Argument (the FlySpeed) an then im Converting it from String to Double. Now i'm Coverting again the Double to Float... :\ For a reason... it...

 
Hello Anyone help with java ? Increment and Decrement a float value with 50
Example: 0.0 + 50, then increment 50 + 50 and viceversa
 
5:32 AM
Can't you do value += 50 and value -= 50? What are you trying to achieve?
 
not working :(
adjustBudget = adjustBudget + 50f;
 
float value;
 
Im trying like this adjust budget value is 0.0 f
 
value = value + 50.0f;
 
done it not workign that way as well
 
5:35 AM
Hold on.
public static void main(final String args[]) {
    final Scanner input = new Scanner(System.in);
    while (true) {
        float happyness = input.nextFloat();
        for (int i = 0; i < 5; i++ )
            System.out.println(happyness += 50);
    }
}
 
public static void main(String[] args) {
float value= 0;
value+=50.0f;
System.out.println(value);
}
 
even this is working
 
Yeah. What do you mean by it doesn't work?
 
I guess @B.rohitNare wants something else !
 
5:37 AM
Float value assigned from JSON response and it is 0.0f
 
5 mins ago, by Unihedron
Can't you do value += 50 and value -= 50? What are you trying to achieve?
 
so ive got 2 buttons increment and decrement. Each interval for increment and decrement is 50
its like 0.0 + 50.0 = 50,100,150,200 ...... and vice versa for decrement
 
show us what you have done so far !
 
Can you post a line of code because something may have went wrong in your implementation instead.
 
adjustBudget = adjustBudget + 50.0f;
adjustBudValTxt.setText(Float.toString(adjustBudget));
 
5:41 AM
where is the problem ?
can you post the whole action method of your button ?
 
I don't understand. Have you ran debuggers to make sure it doesn't increment?
 
its not incrementing but its working fine for me. When use like following code
private void incrementVal(){
incrementBidVal = incrementBidVal + 0.1f;
bidsValTxt.setText(String.format("%5.1f", incrementBidVal));
private void decrementVal(){

incrementBidVal = incrementBidVal - 0.1f;
bidsValTxt.setText(String.format("%5.1f", incrementBidVal));
 
@Unihedron let @B.rohitNare frame question correctly for us ! Lets not get carried away :P
 
I'm confused.
@DimitrisDamianidis You're welcome. Please see whathaveyoutried.com and sscce.org to learn to debug your code in the future. — Unihedron 19 hours ago
 
5:48 AM
@Unihedron so m I. We can't help him, if he doesn't convey/present his problem correctly !
 
@ItachiUchiha Quite simple mate. Increment and decrement float value by 50 and print on text view.
 
Might want to change 0.1f to 50.0f. Other than that, I really don't know what to do with bidsValTxt and incrementBidVal, sorry.
 
+1 :P
 
well leave that increment and bidval. The problem is not even accepting the value
 
Oh, is String.format complaining?
 
5:50 AM
yup
So need logic to print that by string.format()
 
eh...
 
incrementBidVal = incrementBidVal + 0.1f;
bidsValTxt.setText(String.format("%5.1f", incrementBidVal));
decrementBidVal= decrementBidVal - 0.1f;
bidsValTxt.setText(String.format("%5.1f", incrementBidVal));
 
works fine like this
 
Maybe you can just use Float.toString( yerFloatHere ) instead?
 
5:52 AM
tried that as well :(
adjustBudget = adjustBudget + 50.0f;
Log.e("Float value", Float.toString(adjustBudget));
adjustBudTxt.setText(Float.toString(adjustBudget));
 
What's adjustBudTxt type?
 
its textview
and its android mate :)
 
Im confused on the same thing mate. Anyhow thanks for the help guys
 
Good luck!
 
6:02 AM
Cheers mate
 
If you manage to track down the issue, feel free to post an actual question and see if anyone have any ideas.
 
Yeah will do mate
 
@aliteralmind How would I go about adding environmental variable locations to a path in .file.textlet taglet? {@.file.textlet %uni_dev%/filelets/input.txt} ? (Yes I set that location for convenience)
 
its worked mate
 
What did?
 
6:06 AM
just default problem in device
 
>_> ok good to hear
 
incrementBidVal = incrementBidVal + 50.0f;
 
6:21 AM
Sorry guys
i need to join with you but i have some works in ma office so i could nt able to join to guys
 
Aww. It's OK.
WOOT! I passed an audit! :D :D
 
6:41 AM
@aliteralmind This should probably be "GitHub":
 
What audit ?
 
review audits. first posts
 
 
1 hour later…
7:51 AM
hey
@uni
 
Hey @sethu
 
what is audits?
@itachiuchiha is a girl rite?
 
Audits are tests for reviewers. When you're reviewing sometimes you get audits to make sure you're doing well. If you fail too many audits you get autobanned, I think.
 
 
1 hour later…
Haha, MVA
 
seems pretty good to me !
 
10:03 AM
anyone knows whats the best way to configure caching in glassfish for certain files?
 
0
Q: Translate Native Query to Hibernate Query

Luigi SaggeseI have following method to extract data from DB table public User getNextUser() { final EntityManager em = getEntityManagerFactory().createEntityManager(); final String sql = "UPDATE user " + "SET processing = TRUE " + "WHERE i...

 
 
2 hours later…
12:25 PM
Ugh, I hate Hibernate queries
 
@spoulson but they are a life saviour in Enterprise application !
where there are multiple DB's connected to the same app
 
I think Regex is the most useful utility. It's supported in a lot of languages and tools, and it's so expansive.
 
@Unihedron what has regex to do with HQL ?
 
Nothing.
Sorry. :D
 
12:43 PM
lolz
 
1:04 PM
Regex is more useful than HQL
 
regex is love regex is life we cannot live without regex.
 
 
1 hour later…
2:24 PM
Hi, can anyone help me with this stackoverflow.com/questions/24963647/…
 
@user2821894 What have you tried?
 
Better link:
http://stackoverflow.com/questions/24963647/passing-parameters-to-webservices
 
EVEN better link:
0
Q: Passing Parameters to webservices

user2821894Hi am developing a webservice whose end point the parameters being version(v1) and model(xyz)which would generate a uniqueid. Below is the response when i run this service. <ServiceResponse > <Uniqueid>3243jj3ni3533</Uniqueid> <Response> My issue is I have to add anoth...

 
Why didn't mine get one-boxed?
 
You need to put it in a new message, not just a new line. :)
 
2:40 PM
hey]
 
@BenBeri Oh hey!
 
Good with swing?
 
@Unihedron: I have written the control class and I have beans in place. And am able to generate teh unique Id as needed. the only thing am unable to do is how to link the customerId to SiteID. Also I have a database query which shows this link
 
I'm not sure.
 
 
2 hours later…
4:38 PM
Good morning!
Afternoon, night, late evening...
 
@aliteralmind Good morning!
 
@Unihedron I fixed the typo, and am currently adding your requested feature. ;)
 
Hooray! :D
Don't rush perfection. :P
 
You'll have to use $<uni_path>, and it has to start on the file path's very first character.
And it loads System.getProperty("uni_path")
Right?
 
Right! Sounds good to me. Thanks a lot!
Can I still do $<uni_dev>/filename/file.txt, though?
 
4:43 PM
Exactly.
As long as the $ is the very first character.
 
awesomesauce
 
4:54 PM
Help please
0
Q: Calling ajax function continuosly every x seconds until a condition is met

rickI have two jsp pages. One is UI and another jsp which gets response. UICounter.jsp: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Page</title> <script> function getXMLHttpRequest() { var xmlHttpReq = false; // to create XMLHttpRequest obje...

 
That's Javascript.
That's... Also hard to understand as well (What do you mean by "it's not working"?)
 
@Unihedron This line in your profile is broken: Oh, I also have a page here, here, and here.
 
@aliteralmind Thanks for the retag. I wish for a [Java is NOT Javascript - Are you sure?] Message when a question to be posted has both tags...
 
You got it.
 
Actually, that line in my profile was placed to drive ultimate perfectionists mad. It leads nowhere at all.
Oh the tension... I wonder if my proposed edit actually will pass lol:
It went through... Good game.
 
5:35 PM
@Unihedron Is your uni_path a Java System property, or an environment variable?
 
It's an environment variable.
Which was why I wondered if I could do %uni_dev% at first.
Though it wouldn't be too much work to put it as a Java System property as well, if need be.
 
Hm. I'm not sure what to do.
 
I could use System.getenv or getProperty.
 
:( Poor pastebin
Me neither. I'll mess with those methods on my end for a bit. Wait for a second. :)
 
5:38 PM
Not comfortable locking into either one, really. Perhaps I should attempt to read both, and crash if the variable is both an env-var and sys-prop.
 
Clever!
 
6:12 PM
Question: Is there any disadvantage to changing all instances of /, //, \\ , \ , \\\ , \\\\\\\ , ..., in a file path to System.getProperty(file.separator, "\\")?
 
I would think it's good, not like you'd have it in a directory or file
 
And I'll add : to it, for MacOS. Any others aside from /, \ , and :?
So new restriction, which doesn't seem like a biggie: Only in regard to the path of {@.file.textlet}s: Directory and file names cannot contain /, \ , or : characters.
The advantage is that the paths no longer have to be hard coded with your environment's file-separator.
 
Excellent!
So I can pass around the source code without worrying about the environment of my colleagues [if any] :D
 
6:28 PM
Sweet.
DAMN! Can't change colon willy nilly. C:\path\file.txt will fail. X(
 
hmm... maybe add exclusion for the colon at (?<=^[a-z]+)?
 
But I think this requires that Mac users must not have a drive named with a single letter. Is that reasonable to forbid that?
Or, I should say, top level folder.
A path, the general form of the name of a file or directory, specifies a unique location in a file system. A path points to a file system location by following the directory tree hierarchy expressed in a string of characters in which path components, separated by a delimiting character, represent each directory. The delimiting character is most commonly the slash ("/"), the backslash character ("\"), or colon (":"), though some operating systems may use a different delimiter. Paths are used extensively in computer science to represent the directory/file relationships common in modern operating...
Crap. In Mac OS, the number of colons matters. Ain't gonna work.
 
Ouch!
 
So now what :(
I'm going to first try to load it as absolute, without any separator changes. If it works, great.
If you're going to use absolute paths, then it's gotta be absolute.
 
6:43 PM
Good thinking. I can't seem to think of a better approach, unless there's a possible way to use a transformer method: (Generic path) -> Path
 
Right.
How about if the absolute file doesn't exist, then the separators must be single /s, which will be changed to System.getProperty("file.separator", "\\"), before attempting to read it.
I'm in a bit over my head here :(
 
Don't get burnt out lol.
 
That's what I'm going with. In the spirit of @Kylar: Meh.
2
 
7:22 PM
@hard-code I like your username...
@aliteralmind Did you really fix the "GitHub" typo? :p
 
It's not published yet, until I finish the new feature, and the file-separator nonsense. But yes, it's fixed.
 
Oh I see!
 
7:48 PM
Someone talking about me?
I felt a shiver at lunch and rushed right back
 
hehe
 
xD xD
 
@Kylar Hope you didn't leave anything on the plate :P
 
I made a horrible mistake of getting a salad
and by halfway through I realized I was eating the food that my food should eat.
 
@Kylar I "meh"-ed in your honor.
 
7:51 PM
So I see
 
lolz
 
Good evening @all
 
/me looks around, suspiciously
 
You mean @ali? Also good morning! It's 03:53am here.
 
09:53pm here my bad
 
7:53 PM
15:53 here.
 
We don't use time here
 
Rather not
 
We're programmers!
 
1.5 more hours of freedom before I become a dad again.
 
we exist independent of it. We control the vertical, we control the horizontal.
 
7:54 PM
-07:23 :D
 
Gotta squeeze out as much technology as I can.
 
They should invent a calendar for programmers lol... From month -8 to 7, and days -17 to 16
 
just use a regular calendar but force it to use signed integers
and hope that the leap seconds don't overflow, because then the world might end
that might even be termed an "epoch" fail.
 
Now I need assistance, something that might seem easy to you pros....
 
Oh, that's good. The pre-question butter up.
 
7:58 PM
lol
 
... It's Javascript.
 
Yup. Not Java.
 
We can try, but you will probably get better help at the actual Javascript chat room.
 
so is that a no?
 
@MauriceBotha JS question must be asked in Javascript room
 
7:59 PM
let me try them first then
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
 
thanks
 
wc :)
 
More active people there anyway.
 
yeah !
JS room is always buzzing !
so is android room !
 
8:00 PM
Yeah. Now GET OUTTA HERE!!!! :)
 
dunno, y people hate coming to java room !
 
...
Regex room is lonely ;(
 
though the most no of IT engineers work on java
 

RegEx - Regular Expressions

Discuss about Regular Expressions. Learn at: Regular-Expressio...
51 users vs 13 users vs 2 users...
 
lolz
I guess people working in java are all professionals and dont have time to waste :P
 
8:04 PM
Yes lol :P I'm not quite a professional myself, just an enthusiast.
 
I'm a professional, and it's not all it's cracked up to be :)
 
@Kylar you are diff
 
Diff?
or "difficult"
 
Eh. That was too bizarre.
 
or diffident?
 
8:21 PM
different from other professionals
 
In what sense
 
that you have time to spend in this chatroom
 
I'm multitasking
 
8:52 PM
@Unihedron Codelet 0.1.3 now allows environment variables in {@.file.textlet} tags, and also auto-changes any '/' characters in relative paths to the proper file-separator for the underlying OS. Absolute paths are unchanged. :)
 
Too many owners and no one is online!
o_O
 
 
1 hour later…
10:02 PM
Anyone know Android and Google maps API, I really need help stackoverflow.com/questions/25004411/…
 
10:48 PM
hello folks,
I am facing one strange issue with JSONObject.
In my code wherever I am using JSONObject it getting stuck there and flow is not proceeding further.

JSONObject state = new JSONObject(jsonData); <--it will get stuck here
System.out.println("after state path");
int leader = state.getInt("leader");
If i comment out this line
JSONObject state = new JSONObject(jsonData);
then flow will print the next statement
 
11:04 PM
Any idea what could be wrong?
 
the json is corrupt?
or the json is too big
 
nopes .. even if i try this , its not working'
JSONObject state = new JSONObject();
 
what does your debugger say
pause the thread when it hangs and see what it's doing
 
i am building the jar locally and using it on linux machine
 

« first day (1374 days earlier)      last day (3558 days later) »