« first day (1467 days earlier)      last day (3476 days later) » 
00:00 - 17:0017:00 - 00:00

12:09 AM
Hi guys, anyone could help with a quick little problem?
If i have an if clause which has:
if (stuffhappens){
p.setValue(3)
list.add(p)
p.setValue(4)

how can i add element to list for it's value to stay 3? currently it changes to 4..
 
You want to replace an element?
 
Nono, i'd like to add element p to the list with value 3 and change the p value to 4 right after adding it in the list but i'd like to keep the value of pinlist as 3.
 
@charen You need to create a copy
 
Why didn't i think of that
 
If you can show me more code (like post the class on pastebin)
 
12:13 AM
what's the easiest way to create a copy of a class element?
 
What kind of class element?
 
Custom class
 
That's too vague
 
:D
sec, i'll try to show
oh, nvm
should i create a method copy() inside my custom class?
does the clone() work?
 
12:29 AM
No, don't use clone
it's broken
 
yeah, it seems so
i'm going to leave this at this point actually
it's really late and got to wake up early
tried my best currently, gonna try again tomorrow
good night dude :)
 
@Kylar Is it me, or was he completely against actually getting help?
 
Meh. We get that all the time
 
I've never seen that here...
 
 
1 hour later…
1:45 AM
hi.. again..
 
2:44 AM
morning
 
2:57 AM
hey... how are you this morning ?
still awake ?
 
3:07 AM
hi
 
hi all
 
hiya
 
I wanna check weather the database has a record or not. If it has, just return the value, else return 0. I have tried this:
try
        {
            if (cursor.moveToFirst()) {
                db = this.getReadableDatabase();
                cursor = db.rawQuery(select_query, null);
                number = cursor.getInt(0);
            }
        }
but i am getting java.lang.NullPointerException when it runs for the first time
Any idea? How to bypass when database does not exist? Or should i first check weather the database exists or not
?
 
3:27 AM
I'm no pro, but I'd say you need to put in something that somehow ensures that you won't recieve a null at that point. The ways of doing that are many, but your own suggestions sounds reasonable to me.
Or have a try-catch, but I prefer when you try to ensure you won't get a null in the first place.
wb @mlwn
 
thx.. how things have been >?
 
Excellent actually!
 
:)
am happy for you ...
 
Well, I think I have the right to be happy for me too XD
 
yep..
any achievements ?
 
3:37 AM
Finished my first course in school with the highest grade possible and praise from the teacher ^^
 
that's cool.. congrats..
 
wow @gem.. gZ!
 
Thanks ^^
The teacher has high hopes for me now :P
As do I
Now on to JavaFX!
 
 
1 hour later…
5:06 AM
Ahh! JavaFX! sparkling eyes
 
Indeed
Finally some neat UI
In a way I feel like making my own UI library
Just to give all my applications a little distinct mark...
 
Well you can make your own UI library
have yur signature on the application :P
 
I mean a graphical mark
I'm tagged author in the source code so that's tha :P
 
A signature is a graphical mark :P
 
I dunno if I want that though
 
5:11 AM
I was just kidding with ya :P
 
I take things too seriously XD
The FX course is only 4 weeks though. It's gonna be interesting to see how many people will drop out
Not that I want them to
 
Hello all!
 
lolz
you are always excited about people dropping out
 
hi
Poll: If I finally craft my blog, would anyone like feeds set up to post ones tagged java in here?
 
5:27 AM
you can do that :)
 
5:38 AM
@Unihedron I would
I mean, you already have my java blog in here, why not your own?
 
6:37 AM
Good morning !!
 
6:50 AM
Morning
 
7:03 AM
@Gemtastic i Guess it's Halowin ( :p ) over there...
 
hello @NaveenKocherla
 
@mlwn Around halloween time at least :P
 
why is your pumpkin that mad ??? :((
 
Just felt like making a pumpkin avatar on the theme :P
 
7:05 AM
I need some help regarding tree traversel
 
It's an evil grin
 
Hello @mlwn good afternoon :)
 
what about that tree traversel ?? NAveen ?
@Gemtastic ... it must be a nice one (though)
 
I have a tree , which contains 4 sub levels, each sub level contains another sub level upto 4 levels ... each sub level contains large data.... nearly 100 records... I have to search on this tree for matches.... its giving memory out of error
 
@mlwn nice is relative :P
 
7:09 AM
it must be the way you are searching.... naveen...
paste your code somwhere, then send link
 
sure...
 
@Gemtastic, do you like pumpkin jam ??
;)
hello islamuddin...
 
yes
 
yes or no ?
 
7:11 AM
yes
 
@mlwn Never had it. I like pumpkin pie though
 
cool..
 
7:28 AM
and Please see the code here @logiclearners.blogspot.in
 
 
2 hours later…
9:42 AM
@ita just another bug
 
9:56 AM
Just another bug in the code
We don't need no education
We don't need no code-control
 
lolz
@mini please note it down
I will take all of them next week
 
:)
I will
The Oracle Team must have been drunk
 
hehe
 
I skipped the whole treeview BS, just using a new scene with choice boxes instead @ita, looks a ton better
 
can you post a screen shot?
 
10:04 AM
don't say any negative about it!@
which image upload?
 
anything
I am at home
Even the stackoverflow's image upload works for me :)
 
celebrate good times cmon
The reason it stands table transactions table transactions table transactions is because I have connected to the same table
it would basically stand Table1,Table2,Table3,Table4 etc. in real life
and you just create all the columns you want, then click finish :-)
 
This is cleaner
I like it
 
Thanks
You remember the old view ? :D
 
10:22 AM
yeah the new is totally rocking :)
 
;D
giggle like a small girl
 
hehe
 
@gem tell me it's fantastic
then I'll giggle again
Gem: tja det er jo jättebra
 
@miniHessel It's a lot better than the old thing :P
I don't know what I'm looking at thoough so I have no opinion
 
Hehe :-)
It's basically taking columns from multiple tables and combining them
 
10:38 AM
I see
good job.
You have earned a victory klem
 
hehe
 
celebrate good times cmon
 
kämpebra!
 
Yeah baby!
 
tack sä hemst mycke :-)
 
10:39 AM
do i necessarily need to place reference of my parent objects on child objects.... or is it enough that database handle the relationship of my objects?
 
Inga problrm min ven
 
course... depends... i just need a second opinion
 
@ita is it possible to place an element inside at a specific position, for example lower right?
 
@miniHessel yeah, use anchorpane
 
ah, so since I use a vBox now, I should add an anchorpane inside the vBox?
hmm, no, that won't work :P
 
10:43 AM
T.T
please help me... i need your opinion...
 
I actually don't understand your question, sorry.
 
@miniHessel you can directly use an anchorpane
 
but there is two elements inside a vbox; one tableview and one label. The tableviews position is fine, just want the label placed in lower right.
 
uhmm... say for example... you have a school object... then the school has departments... do i need my department objects to store reference to the school object?
 
ehm, has this anything to do with Java? Isn't this database related ? :)
 
10:45 AM
or i can just deal with it using database relationships... the department records having key to the school id...
 
@miniHessel you can use anchorpane
@LeeJeong What's the problem?
 
... im not also sure whether this is for java or general design problem...
 
just create a store reference inside school class
 
@ItachiUchiha then, i'll just let the relationship thing to exist on the DB. i'll just store reference id of the parent on the child classes?
sorry.. sorry. let me just make my questions cleaner...
before... i would place the parent object itself inside the child object... so that whenever i need access to the parent from the child.. its possible.
1. does that design make sense?
2. RDBMS deals with this relationship thing, i guess, clearly. So is it better to leave this referencing problem to the database than to the application objects?
 
@ita thanks, worked great anchorPane.setRightAnchor(lbl, 5.0);
 
10:50 AM
@ItachiUchiha
 
11:29 AM
Greetings
 
hi
 
How you today?
 
mediocre
 
Dev
1
Q: Voice Matcher To Match Voice Password in Android(Compare Voice)

DevI am working on a App in which i have to integrate voice-recognization/ voice- matching for password, this is for security purpose and the scenario will be: 1). User Register In the app Via voice password, i will convert that voice into some media format and save it on device. 2). At the t...

 
the project's log messages are not being displayed in netbeans,what can I do to enable them?
 
11:54 AM
I'm so pissed! I can't print from this computer
 
I just found something interesting
 
Hello. SImple question. If i make  @XmlElement(name = "CHAVEFFUSR")
    public String getChaveffusr() {
        return chaveffusr;
    }                                         this will overload my application?
 
Java/jdk1.x.x_xx/bin/jvisualvm.exe
 
system out println messages not displaying in netbeans console,i can only see run-deploy...
 
@Mateon1 jdk1?
 
1.7.0_71 for example
 
what should i do to see these messages(they are appering in eclipse console but the system only has netbeans)
 
the MAJOR version of Java was 1 as long as I can remember
 
@user2309862 I'm afraid we don't have Netbeans users around here at this moment.
(And I doubt there will be anytime soon.)
 
12:02 PM
I use netbeans, what´s your question?
 
displaying log messages for the project,i can see the run-deploy messages but not the system.out.println messages in my code
(app runs)
 
Because maybe is not entry in any method that you are using system.out.println. You already made debug?(it´s better that sout)
 
no,i am using simple system.out.println methods(there are too many of them)
and they are scattered everywhere
 
You know how to make debug? If you are using system.out.println it´s better to use something like: system.out.println("METHOD SOMETHING -> "") to know if that method is being called
 
You know how to debug? Use a debugger.
No point littering the place with scaffold debugging prints.
 
12:15 PM
where do you put the stack trace btw,in an output window that has the log,yes i should try debugging but its not my project but another developer is maintaining it
and i dont use netbeans,he does
 
Why you cant make debug??debug will not change your svn, neither change the developped code. Netbeans, Eclipse, Intel use the same principles. Your problem is understand your code
 
No, your problem is you need developer tools to have effective development, which you seem to lack.
Are you on your workspace?
 
i need to know when a remote sql connection fails(i cannot run the app in debug mode)?
other people on various other systems are accesing the url as you and i go back and forth about the importance of debugging
(which i do understand)
 
I'm sorry, what?
 
??
 
@Unihedron could you answer me one question
 
ask it, I wouldn't know if I know the answer if you don't
 
what's overload?
 
app start to be more heavier. Processing time increase
 
12:55 PM
You do realize that... It's probably a problem in another class tracking the construction?
 
Good morning
 
I dont know if using this annotation will increse my app processing time? It´s a theoric question. I didn´t test
 
@spoulson Hiya :)
 
fge
1:52 PM
Gee, getting back to speed with all my projects is not easy
 
Never is...
 
:)
 
fge
I guess I should do a TODO and tackle items one by one...
 
Getting back to your project tells you how well your code is documented and readable...
 
fge
@Joe'sMorgue not really the problem... The problem is the sheer number of them and a four months leave on my part
 
1:57 PM
Always fun. If your code is not readable, getting back to speed is more of an uphill battle...
Which was my point.
Not saying yours is poor, just a general statement.
 
fge
I think part of the problem is that I bit more than I can chew, heh
 
I always seem to do that... It helps if you have people that can assist...
 
@fge Don't overload yourself :)
Keep your blade sharp!
 
fge
@Unihedron I will... And if you are interested I have a difficult challenge for you :p
 
Oh? :P
 
fge
2:13 PM
Yeah... Improve upon that: github.com/fge/java7-fs-ftp
 
That formatting... Kill me now
 
fge
What formatting?
 
Opening braces on individual lines... try-with-resource has a dedicated line for resource declaration..
:D
And did you really hardcode this?
    list.add(new Object[] { "a", "ftp://my.site/sub/path/a" });
    list.add(new Object[] { "/a", "ftp://my.site/sub/path/a" });
    list.add(new Object[] { "/a/b", "ftp://my.site/sub/path/a/b" });
    list.add(new Object[] { "../../a", "ftp://my.site/sub/path/a" });
    list.add(new Object[] { "../a/../c/d", "ftp://my.site/sub/path/c/d" });
Oh, I'm looking at tests. Sorry.
 
fge
Heh
As to code style, yep, that's mine, sorry :p
 
:)
Do you use double spaces for types or is this accidental?
public final class  InMemoryUserManager
 
fge
2:18 PM
@Unihedron that is accidental
 
Also, I think using a if branch will be more efficient in this case?:
Or maybe I'm superstitious.
Also for the sake of self-containedness, I recommend changing USERNAME.equals(username) in the above line to doesExist(username). Not that it's great or anything.
 
fge
I believe the bytecode will eventually be the same anyway
 
Mmm, that's true. In most other languages, if branches are almost a no-brainer preference over ternary operators.
It's hard to suggest a good overhaul in algorithm just backseat-watching your code like this. :P
Ohh, do you like method chaining?
 
fge
I do, yes
 
Is there any particular reason for index to be declared outside the for loop instead of being scoped within where it's needed? Will JIT optimise it away anyway? github.com/fge/java7-fs-ftp/blob/master/src/main/java/com/…
Just curious, since it's reused but a new value on every iteration.
 
fge
2:26 PM
THe JIT will optimize it away, yes; as to why it's declared outside, it's a habit taken over from my "C days"
 
I love what you did with BasicFileAttributesEnum, it's really elegant!
 
fge
@Unihedron yeah, I really wish it were in the JDK to start with
 
fge
2:43 PM
Meh, snooker players really have robotic eyes
2.3m from the cue ball to the red, 1.5m from the red to the pocket: ball in!
That is outright sick
 
:o
 
3:04 PM
@Gemtastic Alive?
 
>_
 
2.3m? Us stupid Americans don't do metrics well... :P
 
Speak for yourself.
:P
 
Where are you going to school?
 
What?
 
3:16 PM
In the U.S.?
 
What coffee are you drinking? I don't even live in the US.
 
Metrics are not heavily taught in the U.S. We are taught the basics here....
 
3:32 PM
@Joe'sMorgue am now
 
... ok
 
I am serious... We use them in only a few beverage measurements.
@Gemtastic Hi! I tried to reach Justin via Skype, and he hasn't accept my request. Have you talked to him since he left here?
Distances, weights, and MOST liquids are done using imperial measures...
We use them in our automobile engines, but that's only for international sales.
I cannot think of a single item where we exclusively use metrics.
 
@Joe'sMorgue Yes, we talk over skype
@Joe'sMorgue I can. In science and airplane fuel
The latter because an accident happened when an air-plane was being refueled and the one refueling mistook the written amount and put in too little fuel
 
These comments are kind of constructive.
Or maybe it's a special kind of constructive.
 
MOST people don't use science in their daily life. I can only think of bottled soft drinks, some waters, and medicines...
 
3:45 PM
@Joe'sMorgue Well, you didn't specify everyday life, just specified americans :P
 
Even canned beverages are 12oz, with a metric...
Sorry, I implied it.
 
What's wrong with 12oz beverages? I don't get it. Maybe it's just me.
 
Yay SSH!
Actually, when I'm at school I SSH back home so I have access to my project files.
 
@Unihedron I have no idea what 12oz is in metric. Is that the 33cl drinks?
 
3:47 PM
nods
 
Had to go look
355ml
 
Wait, not 375?
 
355...I had to go look
Coca-Cola
@Gemtastic Can you tell Justin I'm trying to get in touch with him please?
 
< How To Raise Your Own Help Vampire: Volume 1 >
 
I'm outta here for a while...
 
3:52 PM
bye bye
 
@Joe'sMorgue I will
 
4:34 PM
No facebook, I do not want to put my phone number on your site. Stop asking me!
 
@Gemtastic very soon this step will be compulsory.. :)
it's strategic..
 
Wait, you actually use facebook?
 
I don't
 
@Unihedron it's the way to keep in contact with my family without seeing them IRL
@mlwn when it is I'll leave though
 
even yahoo is trying to ask for your phone number these days.. hotmail too.. they are all linked together..
 
4:40 PM
doesn't use any of those sites :(
 
I'll build my own social media, with BlackJack and programmers!
 
Actually, I think I don't use them solely due to the lack of friend-able people.
 
lol
 
Aww
@Unihedron I can be your friend!
 
@Gemtastic Having one active friend on Facebook is a really good reason to use Facebook for..
 
4:48 PM
@Unihedron I didn't say we had to be friends on facebook
 
I just don't think I'm going to use Facebook. Or like Facebook. Or talk about Facebook as a conversation starter. It's just not my thing. :/
 
@Gemtastic That was mean.. :P
 
Not really, I found it clear and concise. :P
 
@Gemtastic, you almost changed @Unihedron 's idea about facebook.. then you stroke in the back !!
 
Facebook is crap, full of viruses and sadly the way to connect with people if you're in IT :/
 
4:53 PM
@Gemtastic, I guess you didn't read the page I sent you the other day.. did you ???
because the way you described it now, is the least of its badness ...
 
@mlwn I'm not really into hacking though
 
reading that page has nothing to do with hacking.. it's just to show you what really fb is doing in the background !!!
I mean Richard Stallman page
 
Ah, well, I already know what it does in the background. To anyone not completely lost it's kinda obvious
 
Congrats, you can use a computer,.
Since... Kids can't use computers. Teachers can't use computers.
The last time my teacher asked me what I do as a programmer, he added "You also do complicated stuff like PHP right?"
(I thought... Which world do you live in?)
 
@Unihedron can u help me in my android ap prob
 
4:57 PM
@Liza ask it
 
i want to play audio and images in my app at the same time. but only audio is working :(
@Unihedron
 
?...
code?
 
pasting
 
00:00 - 17:0017:00 - 00:00

« first day (1467 days earlier)      last day (3476 days later) »