peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Would have been nice if you posted/explained what is actual problem or error message and not just generic request.
Since we do not know how you created table we can guess that you either declared "id" value to be sequence/auto increment in which case providing NULL value is OK, but it is not necessary. If "id" is not sequence then error is obvious as id is NULL.
For few tips on sql:update you can check this article

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@sergent I hope you done with your n00bing around on topic of C, C++ and C#.

@jonsca if mike and jon are same person, then hut off. Great work there

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Still i am getting mails on my previous account???
So if i had subscibed earlier will i receive mail on previous mail id???

There can be delay, dependent on database performance, for example I change email details few months back and for about 3-4 days I was still getting notifications on old email, but then it started going to new email. Do not worry, it will eventually switch.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Hello sir thank you for the reply, is it also possible in jcreator sir?if it's can you help me how to add the sdk.Thank you in advance hoping for your positive response.

Only if you use it to write code. You better of with one of above mentioned IDEs as their have plugins available to help you with building process (some may have some other extra stuff). Consider it as moving up the ladder, time for industry IDE instead of simple student one ;)

PS: I been in similar position few years back at university. I used JCreator too, but there are many things that this IDE doesn't provide. Play around with all of them and see which does feel more natural/friendlier to you

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Move all computation stuff connection to DB and building XML to servlet. These tasks do not belong to JSP/page view. You do so and you will find your life easier on debugging

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Dan Quadrozzi,
Do you think i dont monitor java forums? this could/will be classed as plagiarism if i find any of these suggestions in yours or any of your collegues code. you may want to warn other class mates of this.

regards

martin

Being a teacher I would expect that you will know how to use capital letters in sentences. Besides this is not plagiarism since he did not come here asking "give code for this assignment" he came here with coding problem where he was failing to put in use compare logic.
If you are really this person teacher then you should be proud that he is working on his assignment. TheQuad came here with minor issue of logic that in real world often needs another set of eyes to spot where the problem is.
As you can see TheQuad did not received any coding help, just few written suggestions for which no school would punish (would you punish student because he was explained by his parent that his homework should be approached differently?). After initial posting he did not returned back. At last who is he to give message from teacher that can be considered prank or false. If you are teacher then tell them all in front of class that using forums is not acceptable and point out which rule they are apparently breaking if nay.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Without code and full error message do not expect help

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You need to download either Java ME SDK 3.0 or WTK 2.5.2 from Oracle or you can use any of custom WTKs provided by mobile manufacturers as linked here.
For usage you can either create project with help of WTK or you can choose to use your favourite IDE. When using IDE you just have to add SDK to IDE.

  • IntelliJ IDEA - File > Project Structure > Platform Settings > SDKs > press "+" (plus) sign over second column for "Add Mobile SDK" > navigate to the location of WTK. Then when you create new project select mobile project and do not forgot to check that WTK is selected
  • NetBeans - Tools > Java Platforms > Add Platform > navigate to the location of WTK
  • Eclipse - Don't know. I didn't use it for long time, but process will be similar to other 2 IDEs
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If you used some testing framework then yes, otherwise not.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If you read about various mobile OS then you should have some idea of what platform you would like to start/try to work on:

  • Android
  • iPhone
  • Symbian/Qt
  • Java Microedition for BlackBerry or other JME supporting devices

or perhaps having language preference:

  • Java
  • C/C++
  • Python
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Make it long story short JUnit is testing framework used for "obviously" testing. In ideal circumstances you would first decide what feature you wish to implement, write basic failing test and then write what ever code you need to get this working. Test doesn't have to test whole feature, you may use incremental process.
So what you do is provided input data you need to work with.

As per linked example author takes two values, calls method for calculation and asserts result from method with what ever he expected. If the test fails that mean something is not correct

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Thread closed as it is double. Please follow discussion here

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Have look on JUnit, here is link to quick JUnit 4 tutorial

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

too much is too bad for anything. 12 hours weekend?, that sounds insanity, and as far as i know i never seen anyone getting addicted to gym.

Then you do not know any professional athlete ;)

jingda commented: Are you a professional athlete, peter? +0
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Had similar issue few years back, you can read on it here. Advice, what other guys said there about being bad stuff to do is true. So if you let us know what you are trying to achieve we may able to help you out with more suitable solution then this one

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

yeah i looked at that yesterday and I couldn't figure it out.

That will be because that tutorial is dedicated to creating JAR file for your application, updating JAR and executing it. It does not describe how to execute application that requires a library through command line.
This can be done as

java -cp /library/location/name.jar:/some/other/path.jar com.your.main.classname
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Project seems to be active on java.net. They also have mailing list so I would suggest to ask there. http://java.net/projects/jxta-jxse

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

How many hours after a meal would not be considered post-lunch/dinner? 2 hours? 3 hours?

This is individual. When I was younger I had no problem to run a biathlon race hour after meal, now being older I prefer 1 1/2 or 2 hours period.

As for exercising I try to walk to/from office every day which is some 5km in 45-50 min in one direction, sometimes impossible with ever changing London weather. Then there is every other day 1hour+ in gym, mostly cardio.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

1. Post moved to Mobile development section
2. James not sure about deprecation of Tokenizer, as far I know it was never part of Microedition
3. Chris I think your problem is in the way of storing data in RecordStore. Since you are transforming your entries directly to byte array you have to go through string splitting. If you used DataInputStream and DataOutputStream you would make your life easier. You can use read/write in type oriented manner meaning use readBoolean(), readDouble(), writeFloat() writeUTF() etc

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

And where is that error? Do not expect that people will do it instead of you. Put some effort in it...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Have look at Beginning Java Game Programming (Amazon link) I read few chapters from their JME version when I needed some 3D for mobile development

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I would like to know how i can replace an outputline with a write to a log file? Ive tried searching but no luck.

I consider that bad joke since simple google search with "java message logging" brings millions of results where each of them mention either log4j or slf4j. Each of provided links goes directly to user manual.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Because of line 38, extra opening bracket

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Your application needs lot of cleaning, also you provided uncompleted code so nobody can try to run it and see where is the problem.

However from what you provided you better try to re-think this for loop for example

for (int i = 0, j = 0; i < guess.length; i++, j++){
        if (guess[i] == random[i]) {
            correctNumbers++;
        } else if ((guess[0] == random[1]) || (guess[0] == random[2]) || (guess[0] == random[3])) {
            wrongPosition++;
        } else if ((guess[1] == random[0]) || (guess[1] == random[2]) || (guess[1] == random[3])) {
            wrongPosition++;
        } else if ((guess[2] == random[1]) || (guess[2] == random[0]) || (guess[2] == random[3])) {
            wrongPosition++;
        } else if ((guess[3] == random[1]) || (guess[3] == random[2]) || (guess[3] == random[0])) {
            wrongPosition++;
        }
        }

Why did you initial initialized "j" if you are not using it. Can you explain what are your rules for comparing guess and random arrays?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

How can I edit the previous posts that has data in it? It contains data that is not totally encrypted.

Are you talking about editing posts that you created on this forum? If so then you cannot edit post after 30 min since you post it. Therefore you will not be able to change it now. If you want to remove some data from previous posts you can send me PM(personal message) and I can do it for you.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You need to create WAR file of your application and copy that to your remove server where it will be extracted. Most of advanced IDEs like IntelliJ IDEA, Eclipse and even NeatBeans have menu option "Build" that should do it automatically for you if you created appropriate project type

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Tread closed as there is double here. Please follow discussion there.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

The answer will be Starting mobile development [SDK / tutorials / resources / faq] post on top of Mobile Development section where your post been moved

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Quick notes how to install Java can also found in this post

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Thanks, but i thought you were a code tags enforcer not a game enforcer. What you say now prove me wrong

You would be surprised how many things in one can be somebody if people do trust him like IT forum moderator, in game server admin for a gaming clan etc
Now enough it is going off topic

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Jingda I appreciate your voting, but you have to be careful with wording. As "Want to play with me?" has double meaning. It is safer to say "would you care to join me..."
Besides, why shouldn't mods/admins play games, watch movie, read book ? :D

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Neither of them. I disliked COD series after COD2 since they moved to small maps and no vehicles. Just camp and spray. COD-OU was bes, because of that I prefer larger map based games and obviously with vehicles like BF2, Quake Wars - Enemy Territory, BF-Bad Company 2 or new up coming Battlefield 3

jingda commented: I did not know a mod play games as well. Want to play with me? +0
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Examples are there, plus there is whole article linked from ~s.o.s~. If you cannot be bothered to try them then it is not my problem. I'm sorry

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Why not use jQuery and look up some nice library to help you with it, something like jqPlot?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Should we have a hall of fame.
>> We already award every month one active and helpful member with "Featured Poster" badge, that used to be visible with every post (still visible if you roll-over member's name next to a post or visit member profile)

That shows the mods and admin community.
>> Already exists, but not many people are aware of it http://www.daniweb.com/forums/showgroups.php

Those who sponsor to daniweb and posters who are active all the time.
>> Sponsor badge visible in same way as "Featured Poster", activity of members can be checked through "Top Members by Rank" on top of the page

Should we?
>> Do we need anything else? Yes, people contributing material code snippets/tutorials/news stories/product reviews and less lazy students dumping their assignments on the site expecting to be magically solved for them without them doing anything else. Plus I would say less "know it all types" that tries to reply stuff they have no understanding/ study background

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

How many profiles you had banned so far? :) Hundreds? thousands?

Not sort of info interesting for me, so I do not keep record and you can expect same from rest of moderator team. Forum without spammers is our aim.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I do not want to be sarcastic, but reply such "welcome to the world of internet" would be in place. Nokia as number of others mobile manufacturers are running their own developer/development sub sites where you can find their custom tools and often helpful tutorials/tips/forums. If you had look at Starting mobile development [SDK / tutorials / resources / faq] you would seen all the links to various resources there

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Sorry to say, but that code is wrong.
Lets start with explanation of what your application is supposed to do.
(waiting for user input, input stored in array, etc.)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Well first you need to try and show us what you did. Then somebody will try to assist you.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

So sad no one is willing to help me, despite i've tried my best to solve my own problem... Or is this section of the forum very non-active? Sad :(

You not only one who needs help on this forum. Unfortunately it is only me who is helping out in mobile development, but I have limited time. Therefore I would not look on some random code where someone have no idea what is going one and expect someone else to sort it out.
As far I know this is your school project and you will be judged on it so it is in your interested to provide more in detail problem description and also search other possibilities.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

There is only minor difference

I would recommend that you find some different place to give advice as it is of limited use same as royng. So please do not talk about something you have minimum or zero knowledge.

@Dean_Grobler as Java developer you shouldn't have much trouble to get around API. Most of stuff is organized in the way as Java core. There are some bits and pieces and you may have to look up but that is case of any new API. Also I recommend you polish on XML as layouts and other stuff can be setup nicely there with minimum hassle.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Dean if you actually looked at the top of this section you would have found Starting mobile development [SDK / tutorials / resources / faq] that also holds tops for starting with Android

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Beside reading on Google Maps JavaScript API V3 for general understanding how maps works you want to look at The Google Directions API. Depending on programming language to be used, you may actually find some libraries that makes it easier to communicate with Google Maps through custom API in the language

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

What did you do with it beside executing "exe" package and installing it?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Instead of using array where you have to know size or provide elements from which it have to be created you can use other collections like List, Vector, ArrayList that change their size as you add or remove elements

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

ANd what this calculation has to do with JSP?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I can give quick solution, but that will not help you in your learning process.

Instead you gone tell me what such process have to in order to compare two arrays. Just plane words no need for code yet

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Android for the win ! ! !

From what I can see on current London job market Android developers are sought out/on demand. However often you will see that they are expected to have knowledge of other environments iPhone/BlackBerry/Symbian/plain JME