« first day (1441 days earlier)      last day (3499 days later) » 
00:00 - 17:0017:00 - 00:00

12:34 AM
anyone here ?
 
im here
 
i have been awake all the time and now I am not able to sleep..
 
12:50 AM
I'm so tired physically, but my mind's awake :')
 
what timezone are you in?
 
its already mrning here
uni will show up in sometime
@gem what happened to ya ?
 
@ItachiUchiha What do you mean?
 
y r you physically tired ? :-P
 
because it's 2am XD
I do give that I didn't get up until noon, but I went to bed at 5am before that soooo
I'm tired
:')
So I entertained myself by watching this: youtu.be/WPvGqX-TXP0
It's like a little refresher for everything we've gone through in class
Well, almost everything. It left a lot of stuff out
 
1:00 AM
you need to hold on.. i woke up at 10 yesterday and its already 7.. few hours and my eyes havent closed for 24 hours..
 
Yeah, I used to have insomnia...
So my brain is a bit fried. I can't handle tiredness very well now.
 
no vote-ups for so nice answer :( stackoverflow.com/questions/26169445/…
 
I don't miss the insomnia. My record was 30 days awake
 
haha.. thats cool..
 
No
I hallucinate when I'm tired
Nothing major, I'm well aware that it's not real
But it kinda feels a bit iffy knowing you have brain damage
But I should be happy; insomnia can kill you
And I survived
 
1:07 AM
insomnia can kill you ??
i sud see a doc..
Freaked Up
 
no insomnia cannot kill you
 
Phew... Relaxed
 
Insomnia can kill you, but it depends on what type you have.
Normally you have microsleep
 
so you didnt sleep at all in 30 days ?
 
If you microsleep, you will end up like me; some brain damage but not enough to kill you. (provided you stay awake for a month). If you have the type where you don't microsleep (this is exceedingly rare and mostly caused by drugs) the brain starts dying after 72h of no sleep. Do note; starts dying, it slowly gets damaged and you die when the brain damage is so severe that your brain can't function enough.
No, I didn't sleep a wink, but my mind must have done some microsleep, otherwise I would have been dead.
After that month I only slept 4h and was awake for another week straight
It's not healthy at all
And I hope people in that position, if they are minors, have better parents than I did that will take them to see a doctor. If you're adult and have that severe insomnia, go to a doctor.
/rant
 
 
4 hours later…
5:27 AM
heya
 
hi
@ItachiUchiha I have got a spring question.
@It
@ItachiUchiha are you there
 
 
1 hour later…
6:47 AM
@ItachiUchiha Score has nothing to do with how nice the answer is. Read the hover tooltip, it says "This answer is useful" and "This answer is not useful".
 
6:57 AM
hello
can i ask?
anybody uses pg_unescape_bytea($str);??
 
your question is not clear!
 
do you use postgre as your database?
 
no.
 
why?
 
we use oracle, mysql etc...
your question is related to php!
isn't it?
sometimes mongodb.
such nosql databases/
 
7:14 AM
The $ shows it's PHP already :P
 
8:04 AM
Java is preferred in this room
 
9:02 AM
@ItachiUchiha yo
 
9:13 AM
Morning
 
Trying to use ControlsFX new Wizards.. A pain in the a**
 
Hmm
 
check here, can't get it to work no matter what
 
Now I'm stuck on that song posted here yesterday
 
9:29 AM
@ItachiUchiha :D
 
which song ?
@mini @uni @gem heya
 
@ItachiUchiha heya
@ItachiUchiha are you ready to guide me on my awesome problem ?
 
lolz.. i posted this video yesterday..
@mini.. never used wizards before..
 
@ItachiUchiha not that one
@ItachiUchiha the problem we discussed yesterday :)
 
9:34 AM
@ItachiUchiha I didn't remember who posted it, but I got stuck on it XD
 
treeview.. ??
 
@ItachiUchiha ye
as you can see, if one of the treeitems on the left appear on the right, it sohuld get a green V @ItachiUchiha
 
9:59 AM
posted on October 03, 2014 by Artist

For some reason there aren't many female programmers. Girls - at least in my country - are increasingly better at math and physics. Girls are topping the national results of test and more girls get into university than ever before. Yet, so few girl programmers. My theory, based on growing up as a girl myself, is like so: While girls are encouraged to study, girls are not encouraged to actua

 
you mean a tick mark
that is a picture
or a graphic
 
10:25 AM
@ItachiUchiha yes
@ItachiUchiha So now it's clear ? :)
so now I do it like this pastie.org/9616476
but I guess DRAGGEDSOURCE.setGraphic(new ImageView(new Image(
getClass().getResourceAsStream("/Icons/check.png")))); should be automatically instead? A listener or something?
 
10:49 AM
hi everbody
simple question
if (!string.isnumeric()) {
        throw new NumberFormatException("must be a number");
    }
how do I make this?
 
hii all there
is there anyone who worked with nfc?
 
You want to check if the string is an int @Goldbones ?
 
yes
 
@ItachiUchiha now I helped someone else, then you can help me :D
 
@Goldbo
@Goldbones what about: "Integer.parseInt(string)" ? This throws the requested exception
 
10:56 AM
my pastie is much better actually.
 
no one???
 
@Goldbones you can do it by... Writing the code you had?
 
I will use miniHessel class
i thing it´s the best option
 
@miniHessel as long as you stick to arabic numbers, your code works. But I would not obfuscate the code like this:

if (c <= '/' || c >= ':') {

but instead use

if (c < '0' '' '9' < c) {
return false;
}
Sorry, typo:

if (c < '0' || '9' < c) {
return false;
}
 
@ItachiUchiha Hi there
 
11:01 AM
hmmm
 
and I'd accept '+4711' as a valid integer, too
 
string.matches("+?\\d+");
Problem solved!
 
what about '-1' ?
 
I don ´t want negative numbers
 
+47 aint a numnber.
number*
 
11:06 AM
 
11:34 AM
Can't figure out why code fails... To Google!
 
Anyone knows why my computer prints alt codes as chars?
 
@Gemtastic What?
 
No I wanted to print what the char are if you assign them to 1, 2, 3 etc
A char that's set to 1 prints ☺
and 3 is ♥
 
You used println(char)?
 
yes
well:
for(int i = 1; i <= 10; i++){
char x = (char) i;
System.out.print(x);
}
That prints ☺☻♥♦♣
Not only is it not 10 characters, but it's not the ones I expected
 
11:39 AM
I get control characters
 
I got what I showed you and I'm curious as to why
 
Default encoding?
 
Yo!
 
Hi Karl
 
How are you?
 
11:46 AM
Which characters did you expect?
 
I honestly don't know
 
I guess I'm the character of the room [right now]
 
but not those
 
you are printing ASCII for the values 0-127:
http://www.asciitable.com/
 
Me neither. Are you using default encoding for the compilance level of your java project @Gem?
 
11:47 AM
@Unihedron it should be set to UTF8
per standard of Netbeans
I'm mostly just derping around as a part of today's make a program challenge
 
lol, I can't manage to find anything about System.out.print(char) incorrectness
 
Yeah, I'm not sure how it would go wrong with UTF-8 > UTF-16 conversion, which was what I tried looking for.
 
int -> char is 32-bit number -> UTF-16
 
12:02 PM
How do they differ when I only want the 126 first characters?
 
I have a question, if a file extension is .js, then is it necessary that it is a JavaScript file? Can it be jQuery also? I dont know much about both..
 
Gem, you can ignore any value you wish. You just need to test before you use it.
 
@M.S. Nope, it can be a C++ executable, anyone can rename file extensions, I suppose you mean file format?
 
@Unihedron Is JavaScript superset of JQuery?
 
How would I know? I don't do javascript.
 
12:13 PM
Jquery is just a js library
jquery itself has an extension of .js, because its just a lib
it makes js easy, thats it !
 
Except... It doesn't.
 
that is again, debatable !
Primarily Opinion based :-P
 
votes to close
 
@Gemtastic the first 127 values (or codepoints) of UTF and ASCII are identical.
 
12:50 PM
hello everybody.
can anybody tell me why main thread cannot be converted into daemon thread.
 
@Aamir Hey there!
 
main() { Thread t = Thread.current(); t.setDaemon(true); } // shows IllegalThreadStateException.
 
@ItachiUchiha What the widths on the borderpane?
for example the width of insert LEFT
 
Do you know about Refractoring, what is it?
 
@Aamir Not sure what you would expect there... Maybe look up the manual for t.setDaemon()?
 
12:53 PM
@unihedron ok
 
I have heard that some IDEs do refractoring, what exacty is it?
 
@M.S. Please be more specific...
 
Ok, like IntelliJ Idea has this feature. It's website says "IntelliJ has reliable refactoring tools." But what is meant by refractoring tool?
 
The "fractoring tool" in IntelliJ is probably something that lets you rename fields across classes.
class A {
  int a; // when "refractoring" a to something else, references to it in other classes are changed to the new name as well
}
This is handy for when e.g. you're renaming overloaded methods.
And search and replace is going to be difficult.
 
@Unihedron thank you.
I have opened IntelliJ, but on changing field name, it is not changing it in elsewhere.
Is fractoring off by default in IntelliJ?
 
1:05 PM
"Refractoring" is a process that lets you change the name of a field / method and have it affect its references.
When you're talking about the intellij feature.
 
Ok..
 
@Aamir: Thread.setDaemon(): This method must be invoked before the thread is started.
The current thread is always already started.
@M.S. And it's called "refactoring"; basically every transformation of code that keeps the functionality intact. The purpose is to restructure the code so that it is easiert to maintain.
 
@KurtHuwig That's code refactoring though.
 
@Unihedron correct. I am using IntelliJ right now
 
1:15 PM
@KurtHuwig Good for you, IntelliJ is great.
Vote on this!
Sep 13 at 9:20, by Unihedron
I've created a poll related to which IDE our developers use for coding in Java.
 
@ItachiUchiha Need you!
 
@miniHessel At your service !
 
WOHO
@ItachiUchiha I have a vbox with tabpane with tableviews.. But the tableview (or tabpane,not sure) doesnt fill the anchorPane ?
 
rolls eyes and goes back to coding
 
they see them rolling
Ain't got an account there actually
 
1:22 PM
6 messages moved to Trash
Then make one. Problem solved
 
@ItachiUchiha I did a printout: vBOX HEIGHT : 0.0
TABPANE HEIGHT : 812.0
TABLEVIEW HEIGHT : 0.0
 
Oh never mind you only 55 rep :(
 
@Unihedron I dont close drupal questions :P
 
@ItachiUchiha so I tried:
tabPane.setMinHeight(100000000);
tabPane.setPrefHeight(10000000);
tabPane.setMaxHeight(100000000);

In my frustration, the tableview is still the same size!
 
1:24 PM
@miniHessel give me a min
 
@ItachiUchiha Don't close spam, it's spam, flag it as such
 
sure
so my question is, is it because of tableview's number of rows shown?
 
@mini You want to increase the height of the Tableview ?
 
@ItachiUchiha yes
 
Increase the height of the container
 
1:33 PM
the tableview is inside one tabpane, which is inside a vbox, which is inside an anchorpane
 
hi guys, does anyone know of a logger than can log in binary?
 
and all of them use MAX_VALUE and USE_COMPUTED_SIZE @ItachiUchiha (except the vBox)
 
can you show me your fxml/code ?
 
Perhaps there is a setting in the tableview for number of rows shown?
It's my big project, but I can show you my FXML ?
there got to be a property that says how many rows should be shown?
 
why AnchorPane.bottomAnchor="0.0" and AnchorPane.rightAnchor="0.0" ?
 
1:39 PM
Hmm, that has to be something I have clicked on without knowing :P
 
do you know how can I see Jersey version that is inside Glassfish?
 
but that's just the menu, isn't it?
it's this one @ItachiUchiha anchorPaneTables
 
@Goldbones check if there is a jar named "jersey"-something. It might have a version number in the filename. If not, check the contents (it's a zip file) if there is a readme or changelog.
 
@mini I cant find TableView inside the fxml
brb
 
it gets created in code.
TableView tableViewet = new TableView();
vBox.getChildren().add(tableViewet);
Tab tab = new Tab();
tab.setContent(vBox);
 
1:46 PM
Code dump alert!
 
I dumped one line 4 times, sneaky
 
thanks
@KurtHuwig
there is any possibility to get a specific name from URL using queryparam
 
@Goldbones you can get each part of the url. What do you mean with "specific name"?
 
get name
 
just get it as string and trim it?
 
1:51 PM
yes
sorry
it´s last one
 
^^^ What @kurt said
 
i will try
yes
it works
it´s the same process for SOAP?
 
Good, I'm going to scrap the code dumps now.
 
@Goldbones if you use the API support, yes. If you want to do it manually, start getting familiar with parsing XML.
 
ok, thanks
can I ask you something about good pratices?
 
2:02 PM
@Goldbones sure. But I only have bad habits
 
ahah
it´s good pratice to send a JMS message inside a rest/soap service?
 
JMS is asynchronous while REST/SOAP are synchronous

being asynchronous is per se a good thing as it decouples the parts. But if you then wait for a reverse JMS message you might get some speedup if you can do other things in the meantime but how long would you wait for the response to arrive? Also getting both synchronized would be a PITA.
 
but join these two tecnologies is not wrong?
If I send a jms message in a SOAP/Rest web method my message will be synchronous or assynchronous?
 
It depends on the design...
 
@Goldbones why should it be wrong? I guess you do also use SQL or JPA in your service, so mixing technologies is fine
@Goldbones the JMS message will always be asynchronous, no matter where you send it
so the question is: what to return to the SOAP/REST callee and when?
 
2:12 PM
ahh ok
I´m using SQL
I wanted to know how much time a message will take to be send
from a Web service method
 
Don't flood the room with new messages @Gold, fill the box or edit it to add more.
 
sorry Uni
 
@Goldbones the call should be instantaneous as it just adds the message to the queue. The sender will then start sending it that probably takes a few milliseconds until it is at the receipient
 
Thanks
 
2:55 PM
hello all is there anyone that could help me?
 
I need to pick 4 random operands and 3 random operators out of a collection of operands (0,9) and operators (+ ,- ,*) then i need to calculate the sum of it
sorry (1,9)
what i did was i made 2 string arrays one with the operators and one with the operants, i made a random object that gets the random ones out of there and put it in a string called sum so when i print out the sum variable i get for example: 3+5*8-9
To calculate that sum i tried to turn the string into integer without luck
 
What you need to do is loop it.
Pick the first two numbers.
Wait
Order of operations?
Or just as encountered?
 
what do you mean?
like 3 * 5 + 8 - 2 = 21
 
? means Operator
(((# ? #) ? #) ? #)
Because, if you have + * -, you have to do the middle one first
 
3:03 PM
ahh yea well precedence must be in it yea
 
Complicates things...
 
@DaViDa Would you like to see my solution?
I'm too busy to write you an actual explanation though.
 
sure :)
 
final javax.script.ScriptEngine mgr = new javax.script.ScriptEngineManager().getEngineByName("JavaScript");
try {
    return mgr.eval(myFormula);
} catch (final javax.script.ScriptException e) {
    e.printStackTrace();
    return 0;
}
DONE.
 
hmm dont get it :D
 
3:08 PM
@Unihedron Check out the link I put above...
 
@Karl I can't figure out what doctors' strike means
 
Most people complain they can't read their Dr's writing...
 
... ha?
xD
 
3:40 PM
@Unihedron just reduced the problem to an already solved problem: evaluating expressions in JavaScript.

If you want to do your own evalation, go for a simple stack machine: push the values and operators onto a stack until you can evaluate them. The tricky part is to determine when to evaluate them. But as I assume this is some kind of homework, I'll leave it up to you as an excercise :-)
 
:)
Try it out, press F12 on chrome, and type JS expressions, it evaluates most
 
Thanks
Its hard as noob :D
 
If you don't understand stacks, you're not a real programmer. :P
 
I need to make a infix to postfix calculator
using stacks
 
so if the input is "3 * 5 + 8 - 2" the output would be "3 5 * 8 + 2 -" ?

And I don't understand why you need a mailserver to do this....you probably mean "suffix" :-)
 
3:49 PM
No
 
15 + 8 - 2
 
3 * 5 + 8 - 2 = (3 * 5) + (+8) + (-2)
= 15 + (+8) + (-2)
 
I need to make a collection of operands (1-9) and operators (+, -, *) and make a random sum of it like 3*5+8-2
 
= 21
 
@Karl 21
 
3:50 PM
If the input is 3 + 5 * 8 - 2, you need to do it order of operations. So it would be 3 + 40 - 2
 
then calculate it
 
You can do the random collection part with a short logic.
 
so i put the collections into a string array, and made a string sum out of it
 
Then the computational part can be done by a script engine, namely JS.
 
18
Q: Evaluating arithmetic expressions in C++

Mahdi GhiasiI'm searching for a simple way to evaluate a simple math expression from an string, like this: 3*2+4*1+(4+9)*6 I just want + and * operations plus ( and ) signs. And * has more priority than +.

 
3:52 PM
String[] operands = {"1", "2", "3", "4", "5", "6", "7", "8", "9"};
String[] operators = {"+", "-", "*"};


Random random = new Random();
String sum = operands[random.nextInt(9)] + operators[random.nextInt(3)]
+ operands[random.nextInt(9)] + operators[random.nextInt(3)]
+ operands[random.nextInt(9)] + operators[random.nextInt(3)]
+ operands[random.nextInt(9)];
Sum variable becomes the sum and i need to calculate it but its a string so cant
 
It's not really a sum. It's... A formula.
And... You can use the ScriptEngine as I coded upstairs. Otherwise, design and utilize a stack for this.
 
yea forgot how to say it in english thanks :P
 
Why are you writing String sum = when it should be int sum = ?
 
@Karl It's String concatenation.
 
okay think i need to do that then (the stack), thanks man!
 
3:55 PM
It's also weird to see you using String[] over char[], except seeing that you're concatenating it in such primitive method (which made me twitch so hard I feel like screaming) I take back using char[] instead...
And instead of operands[random.nextInt(9)] you can kinda just use (random.nextInt(9) + 1).
That is, if you want it to be actually array-based, just... use operands[random.nextInt(operands.length)]
instead of hardcoding 9 and 3, which is counter-productive
 
Well to be honest i want it the best way possible that i understand
I just did it that way because thats how i could come up with my solution
 
4:44 PM
Still there @DaViDa?
 
yes @Karl
 
Do you have a solution yet?
 
Yes go gaming
No just kidding
 
I say loop it until you get all +'s
 
No havent yet, like you said I probably need to use a stack and see with switch cases if it is a * - or +
 
4:47 PM
Go through and check for -'s, if so, multiply the number by -1.
If it's *, do that math, and shorten the formula.
Store it all in an array, and cut it as necessary.
 
cant i do a switch that does like case '*': "get first number" * "get 2nd number"
and so on?
 
Start at the end, and work backwards.
If Operator[2] = *, then int temp = number[2] * [2+1]
Store number[2] = temp; number[2+1] = 0; Operator[2] = "+";
 
@DaViDa no, you'll end up with wrong order of operations
 
Actually no
1 * 2 * 3 = 6
1 * 2 = 2
2 * 3 = 6
2 * 3 = 6. 6 * 1 = 6
Multiplication ONLY will give you the same results if you move the numbers. That's all it's checking for
 
Let say i also got - +
 
4:55 PM
Order of operations matter if it's mixed, but if it's all multiplication, it doesn't matter. Right now, it's checking for multipliers only.
 
because wont that mess up precedence anyway?
 
After you check 2, then 1, then 0, you go back and check for minus. If you find them, you multiply by -1.
After that, simply add the 4 numbers. You've done the multiplying, and the converting to + -# will do the same as subtraction...
If I give you 7 * 3 + 4 * 5
It will get re-written to:
7 * 3 + 20 + 0
Then, it will get re-written to:
21 + 0 + 20 + 0
Then it's just addition of 4 values
3 * 4 * 5 - 7
rewrite: 3 * 20 + 0 - 7
rewrite 60 + 0 + 0 - 7
rewrite: 60 + 0 + 0 + -7
Works the same!
You have to do it right to left, so you don't end up multiplying by 0 when you don't want to
 
00:00 - 17:0017:00 - 00:00

« first day (1441 days earlier)      last day (3499 days later) »