« first day (1440 days earlier)      last day (3484 days later) » 
00:00 - 19:0019:00 - 00:00

12:20 AM
posted on October 01, 2014 by Caroline Kvitka-Oracle

What does the NAO robot from Aldebaran Robotics think about JavaOne? Find out!

 
12:45 AM
Hi, People~
Anyone here?
Working on some SSL/Sniffing programs. BBS.
 
1:06 AM
SSL, that
is fun.
I'm working on creating a new snapshot version of a multi-module pom. Maven is pissed it can't find it in nexus. Of course not, I'm trying to create it, that's the point.
Clearly I don't know what I'm doing.
 
 
4 hours later…
4:44 AM
Hi, can anyone tell what is taglib in JSP?
 
 
3 hours later…
8:11 AM
@ItachiUchiha Yo :)
 
 
1 hour later…
9:33 AM
Yo
 
9:46 AM
Hi there
 
How do I use douglascrockford/JSON-java lib on GitHub, I'm very new to JavaWorld and IDEs
 
10:22 AM
@reversiblean Clone... fork... submodule... rtfm
 
10:48 AM
Hi Uni, you have been away today for long..
 
11:10 AM
Find a rule that says you must be online most of the time :P
 
11:26 AM
"#3 @Unihedron Is NOT allowed to log off!"
2
That was not hard to find...
 
@Karl Happy Birthday !
 
NEXT Thursday...
But, thank you.
 
lolz
we had a event for you
 
11:44 AM
Oh noes! I'll have to port my mind to Java and upload it onto a microserver then ;)
 
Oct 9th. I feel honored
 
Unihedron has removed an event from this room's schedule.
Unihedron has added an event to this room's schedule.
 
Microserver?
Can't you just port your mind to an 8-inch floppy?
:P
 
@ItachiUchiha <3
I need a tips from you, if you have time :)
Basic listener, I guess
 
@miniHessel shoot
 
11:57 AM
Okay, if the user drags a treeitem to the "combine" treeview, I want that treeitem in the source treeview to change icon to a V(like a checked icon)
Now I do it manually, but then I get a problem with removing that icon if the user removes the treeitem..
So I thought it would be better with a listener? Like
if treeItem exists in treeViewcombined
then change treeview.combined.treeitem.graphic to V
if not
remove the icon
If anything is unclear @ItachiUchiha , yell at me
 
I cant get ya :P
 
@Karl The floppy won't run on its own. :P
 
@uni should we really answer such questions ? stackoverflow.com/questions/26085735/…
 
@Unihedron I have a couple of Palm Pilots you can use...
 
42
Q: Is it ok to answer downvoted questions?

BeginnerI have come across a few questions , mostly by new accounts or guest accounts, which lack proper structure and/or are difficult to understand. Such questions get downvoted ASAP (amassing -6 to -7 votes in a matter of minutes). A few people still comment trying to get the author of the question to...

 
12:07 PM
did you read the comments ?
 
no
 
@ItachiUchiha

* Say I have 2 treeviews
* Treeview 1 is the source
* Treeview 2 is where the user drags treeitems to
* If a treeitem in treeview 1 exists in treeview 2, then that treeitem should change it's icon to a green V, in treeview 1
was that clearer ? :P
 
are you removing the treeitem from one treeiew ?
 
Nope, it will exist in both threeviews, and that's why it should get an green V in treeview 1
the green V is supposed to illustrate that this treeitem is now in treeview 2
 
how can you keep one control in two diff treeviews ?
brb
 
12:15 PM
what do you mean by one control? I just write tableview2-root.add(tableview1TreeItem)
 
12:27 PM
I cannot read...
 
12:50 PM
@ItachiUchiha left me, like left me! feeling sad
 
i didnt leave.. i just returned..
 
WOHO
celebrate good times cmon!
 
1:07 PM
doesn't celebrate; reviews low quality posts instead
 
1:41 PM
headache
ssup guys ?
 
12
6
 
what is this ?
 
It's a pinned message
It predicts to get 12 stars
 
haha
hope it does
Fingers Crossed
@mini der ?
 
I hope it does, I still need that badge where a message of yours gets 10 stars :)
 
1:45 PM
haha
 
@ItachiUchiha ye
 
ssup ?
 
@ItachiUchiha waiting for a suggestion :P
 
how do you want the same treeitem in two diff treeview ?
 
I already have it in two trewviews actually
:P
it's not the exact same treeitem of course, but I do treeItem2.rootitem.add(treeitem_from_treeview1)
psudo code
 
1:58 PM
:D
 
i thought it would be easier to listen if the same treeitem is there- instead of setting the graphic manually
 
what ?
 
Now I manually set the graphic to a green V if the treeitem has been dragged from original treeview to the second treeview
Like : when treeitemX has been dragged from treeview 1 to treeview 2; set graphic green V
 
@mini do you create a new treeItem whenever you drag it ?
 
No, I just get which treeitem the user dragged and add it
 
2:13 PM
brb
 
so you are adding same treeitem to two different trees ?
 
Ye, or , the treeview1 already has it.
Do you remember helping me with the dragabletreeview?
 
nope
 
i am on celfone right now
 
2:19 PM
okay, all I do is treecell.getChildren().add(treeitem)
 
yes.. but you sudn't add the same treeitem to two diff tree
 
It's just visually
They don't represent anything actually
And I have to have the treeitem in both
Because one treeitem is a column visually, so the user shouldn't be able to remove one column from the tables.
 
dont you think everything is visual in javafx ?
i am not sure what you are doing..
anyways, what was yur question again ?
:-P
 
Haha
I thought it should be smarter to add a listener which changes the treeitems in treeview1 if they also exist in treeview2
Now I do it manually , and since I am sound it manually, I find no way of removinf the graphic when the user removes the treeitem from trewview 2
 
how are you removing it ?
well i guess i sud first go through yur code, before commenting anything..
cz suggesting you anything without understanding the code may result harmful to ya :-P
 
2:46 PM
Indeed
I am removing the treeitem from the treeeview :-)
 
3:12 PM
Morning people! Surprise ping! @kiheru @spoulson @Gemtastic @CSᵠ @ItachiUchiha
 
yoooooooooo
 
Wake up!
 
Morning
 
suddenly everyone's active
 
aaaand everyone's back to what they were doing
 
3:20 PM
yup, pretty much
so... how does this java work?
 
insanity
 
or even bettr question: why does java work?
 
in The SO Tavern (Free Snacks), Aug 14 at 15:43, by Sam
Insanity seems to be the "glue" that keeps Java together.
Or, if you like it the other way: It (Java) doesn't (work).
 
3:48 PM
@CS wanna know about java room or the language ?
 
3:58 PM
That was a good question
"Hi am I am making a game that I want you to code for me 8D"
 
That's how I read the question
In 4 week I'll be learning Java FX~*looking forward to it*
 
Welcome
You might wanna read two of my most voted answers before you start :)
 
hi
 
@Goldbones heya
 
4:04 PM
can anyone answer me a question
 
shoot
 
imagine that I have String lol;
and I image that lol is null
 
Hey everyone!
 
how can I say that user "must introduce" +lol?
understand?
 
No
 
4:06 PM
nope
 
Do you mean that you want to take an input from the user and apply to lol?
 
imagine this example
I want to write that user must introduce a fornecedor
but I cannot introduce "must introduce" + fornecedor;
 
Oop.
 
fornecedor ?
 
because fornecededor is empty
it´s a variable
like x
 
4:10 PM
I'm lost when I look at the image X_x
 
@Gemtastic +1
 
Seems like no connection among your statements. Now I could say lol
 
 public void ef_Anula_Documento_verify_empty_fields(Ef_Anula_Documento_XML_Object object, CtrlUserInformation user) throws VerifyNullFieldsException {

        String fornecedor = object.getFornecedor();
        String codcapli = object.getCodcapli();
        String documidfdocu = object.getDocumidfdocu();
        String tpregfdcou = object.getTpregfdcou();

        String fornecedorError = configurationManager.getProperty(Settings.ERROR_EF_METHODS) + object.getFornecedor();
String fornecedorError = "Must introduce a" + object.getFornecedor();
but object.getFornecedor() is null
I want to be able to say "Must introduce a fornecedor"
 
hey all
 
Heya
 
4:15 PM
I need an help, some generic confusion.
Can i shoot?
 
No blog post for an entire week @Gem? :o
@BenBeri You may not ask to ask. You either ask your question or don't, as we have no clue what you're going to ask to decide whether it's within bounds to answer.
 
@Unihedron I'm actually writing one now
 
Oop, ok :p
 
Though I wonder if I should post it because it's nothing funny
 
private Map<String, ObjectList<Positionable>> groups = new HashMap<String, ObjectList<Positionable>>();

I have this map
Now I want to add a value:
public <T extends Positionable> void addGroup(String name, ObjectList<T> type) {
    groups.put(name, type);
}
I get error
Sec trying to get it off IDE lel
 
4:18 PM
 
@Goldbones If you want to show like that, make sure that it's not null. Check whether you are setting value to that instance variable before you use it. There is nothing that others can do about it, or let me know if you still wanna specify much details.
 
T is extending Positionable, I don't get why it doesn't get in
 
0
Q: How to get variable name in java?

Wally_the_Walrus Possible Duplicate: Java Reflection: How to get the name of a variable? I´ve find various discussions on this topic but never any satisfying answer.. A anyVariableName = new A(); How can I get the name of the variable anyVariableName and get string "anyVariableName" as a result? Is ...

something like that
 
That's not really relevant.
 
Nvmfixed
Needs to be ? extends Positionable
 
4:22 PM
9 mins ago, by Goldbones
but object.getFornecedor() is null
^ What does null fields have to do with reflection?
moderation messages cleaned...
 
I don´t want do have fornecedor in a properties file
 
Why?
 
Because I have a lot of fields
and I don t want to configure each field in there
 
Then either you shouldn't be using reflection, or you shouldn't be lazy. What's your actual question? Please take a look:
You can simply run a regex match to extract the fields and only grep once, you know.
 
be lazy?
how´s that?
it´s a simple question
 
4:28 PM
Having a lot of fields doesn't make it impossible maintaining the properties file. That's the straightforward approach, and you should do that. If you can't, then it's simply an XY Problem.
 
I can´t do that beacuse I have orders to do that
 
And it is? What's your actual question?
 
*orders
 
It's a puzzle?
 
I want to write my variable name instead
 
4:30 PM
Then use an annotation.
 
what annotation?
 
public interface @ThisIsAFieldIWantToWrite {}

@ThisIsAFieldIWantToWrite
int field;
THIS annotation
Or, use a properties file. Simpler, and we all do it.
 
posted on October 02, 2014 by Artist

I don't have much to say right now, I got sick in the beginning of the week so I've mainly just been fibbing with my old stuff and started a little on my course examination project. But I thought I should post something here because... Days of nothing happening. But my kittens survived the winter so I've got that thing going for me which is nice.

 
Is it possible to also compare generic type in instaceof? like
if (g instanceof ObjectList<GameObject>) {
 
s/insta\K(?=ceof)/n/
 
4:34 PM
ok unihedorm
thanks
 
@BenBeri Why not try to compile it and see if it throws an exception or not?
@Goldbones Huh, I thought you wanted something else. But ok, good luck on the rest!
 
No, your way it´s too much complicated
there must be another way
but thanks for the effort
 
@Goldbones It really depends on what you're really trying to do. If the fields are accessible, simply accessing with reflection will do: class.getDeclaredFields(). Otherwise, you will have to define them, either by writing the list so it's set up, or declare annotations to use .getFieldsWithAnnotation(MyAnnotation.class) (or something, haven't used reflection in a while)
 
Hello
 
4:40 PM
hello
 
I need some advice
 
PLEASE ASK I'm eagerly waiting for your question if you still want to ask it
 
LOL
 
OMG. My rosemary is dying. Be right back.
 
rosemary ?
 
4:41 PM
How do you parse information from a huge game website like MobyGames?
 
what kinda info ?
 
As a school project I'm building a frontend for DOSBox
 
@MayukhNair It depends. If they have an API, use their API. If they don't, hack out an open source API, then use it. If you're not good enough for building a library, learn how to scrap.
 
Apparently they don't have an API
And I haven't found out an open source one
 
use a crawler
 
4:43 PM
Well, and your question implies a learning programmer, so I guess you gotta take a crash course to web crawling / site scrapping.
 
Generally how do you pull data off a website to use with a java program?>
 
URL... Download file... Parse HTML with regex... ???... profit...
 
This good?
 
It's overrated. Regex is still the better tool if you can use it properly.
To parse with the parser or to use a regex... That is the question.
 
What's the benefit of regex vs parser?
I'm a noob so I need advice
 
4:46 PM
2 messages moved to Trash
 
@Unihedron let him not get into regex :P
 
@MayukhNair Use the parser, I'm guessing you don't know what regexes are anyway.
 
1 min ago, by Mayukh Nair
I'm a noob so I need advice
 
54 secs ago, by Unihedron
@MayukhNair Use the parser, I'm guessing you don't know what regexes are anyway.
 
No, I was informing you I am a noob.
Of course I dunno what is a regex
 
4:49 PM
I thought you wanted advice..
 
Yes
 
whookay
 
so why should I avoid a parser and opt for regex?
 
because it's faster and a more controllable tool if you know regex
But to most who doesn't understand it it's almost impossible to pick up and is like a dialect: stackoverflow.com/questions/22937618/…
 
lolz
 
4:50 PM
Field variableFornecedor[] = Ef_Anula_Documento_XML_Object.class.getDeclaredFields();
@Unihed
 
@Goldbones you'll only get accessible fields
 
I made exavtly that
public?
 
public, and default if in same package (caller sensitive), and protected if in same hierarchy (caller sensitive), and private as well if in same class (caller sensitive)
 
@Unihedron can you check the java room rules doc ?
can you find the changes made by me ?
 
4:54 PM
you Know if This is possible with an arrayList instead []?
 
@ItachiUchiha I like!
 
@Goldbones new ArrayList<Field>(Arrays.asList(Ef_Anula_Documento_XML_Object.class.getDeclaredFi‌​elds()));
 
where do you find the rules?
 
but no, JDK does not give you arraylist instead of arrays when you go getdeclaredfields
@Gemtastic It's being discussed in the planner. docs.google.com/document/d/…
 
4:55 PM
ok, thanks anyway
 
@Unihedron And where do I see the planner?
Sorry for the n00bmess XD
 
There is a link. Click it.
 
lolz
 
I did
I thought the rules and planner were two different things
 
@Gemtastic we will soon make the planner as permanent rules
May be this weekend :)
 
4:58 PM
yosha
 
RULEZ WITH AN IRON FIST
Oh, hai all
 
@Kylar heya
 
hiya @Kyl
 
Hey Kyl
 
yeah points!
 
5:06 PM
yay for points
 
Theoretically, I'm going to win 50 points here once OP comes back from his vacation
fine will be on vacation for 5 days newaz ...........will be yours nonetheless :) — vks yesterday
Oh!
 
Unihedron has made a change to the feeds posted into this room
 
5:34 PM
Got time now @uni ? ;-)
 
@miniHessel Yeah, go ahead. I'm just coding at the moment.
 
Sorry, I meant @ita :p
Hope you have a nice day though :D
 
:P
 
Anyone want to see my wonderful photographs ? :D
 
show me
 
5:51 PM
hey
 
hi
 
6:07 PM
@miniHessel you need to update eskil-hesselroth.com/contact
 
Yo
 
Haha, that's all you got ?
"I like your art, Eskil"
Thanks @minihessel
 
Erm... You're pinging yourself
Hi @Kar
 
@uni someone gotta appreciate my art
 
I like your art, it's inspirational, awe-inspiring, and incredibly realistic!
 
6:22 PM
Thanks! Even though I do not know if being realistic is a positive thing with art ?
That's of course up to the individual to decide :-)
 
NO comment about pinging themselves...
 
@minihessel has !
 
@Unihedron hi
A message replying to itself ^^^
 
6:48 PM
I'm back
Was googling myself
 
:D
When I google Unihedron, I find the company selling helicopters and lasers.
 
I get a musician and a DJ
there's no way anyone finds me on google without corroborating evidence
 
When you Google XXX, you get porn?!?
 
Did it hurt?
 
Son, I'm going to need you to take your computer, and put it back in the box that it came in.
 
6:53 PM
[FINALLY! I couldn't post]
 
Now stand on a chair and yell "I'M TOO DUMB TO OWN THIS", and drop it off your roof.
 
Which computer?
 
Just FYI: I'm feeling feisty today. @Unihedron and @ItachiUchiha are going to have to be the nice people today, cause I'm gonna be the angry canadian
 
A few of them, I wouldn't mind doing that too...
 
@Karl how bout all of them?
It'll make you happy in the long run.
 
6:54 PM
Then how would I get free porn?
 
sigh
Ok, we're done here.
 
@Karl it was a post on 9gag about a guy calling customer service on his (stationary) computer not working when there was a power cut...
 
@Kylar lolz
 
There's only so many good looking neighbors...
 
@Karl I strongly feel your... "talents" would be better suited on Tumblr.
nudge nudge wink wink
 
6:56 PM
I am watching Despicable me, so I am happy and can take anything :)
 
So happy?
 
Isn't tumbler full of dykes?
 
sigh
 
Now gimme a word, and add dot tumblr dot com...
Magic of the internet!
 
I like to see The Evil guy stuck with 3 li'l girls
 
6:57 PM
I had a friend that owned a store...The guy called because it wasn't working. He tried to get him to do basic troubleshooting over the phone, but wouldn't. He went out there, and the cord was unplugged. He REFUSED to pay the $80 for a home visit because it took him 3 seconds to diagnose/fix!
 
Take anything what?
 
pumpkinspiceunicorn
@Karl that's not exactly rare
 
My friend took him to small claims, each told their side, and the judge said "You were asked to check it, and you refused. He came out, it's an $80 fee. Next case!"
 
*the new rich isn't people with a lot of money, but people with a lot of time to do what they love to do *
5
 
@miniHessel Nicely said !
 
6:58 PM
Itachi, we can take my problem tomorrow :-)
 
@Gemtastic Hmmm... http://pumpkinspiceunicorn.tumblr.com/ leads to a Not Found.
I just registered an account on tumblr. Let's do this. :D
 
XD
 
00:00 - 19:0019:00 - 00:00

« first day (1440 days earlier)      last day (3484 days later) »