peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

>getScannerInput.anInt

yes there is nothing like this in Java classes. You better check what options you best to use in JAVA APIdocumenation

I usauly do it like this

Scanner input = new Scanner(System.in);
int num1 = input.nextInt();
int num2 = input.nextInt();

dont forget

import java.util.*;
or
import java.util.Scanner;
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Thanx dude

if you have problem drop a message, also for future try to use litle more meaningful names or you will pay for it once

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

There is no setDay() method in the Date Class, this mean your book must be old and you will get more similar problems...
Follow the link which David give it to you, in packages find java.util, then bellow find Date and read trough
I use now Deitel&Deitel JAVA How to Program 6th edition

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

you looking for topic on your final year project or want to get place in some project development?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I did some adjustment to your code(red colouring plus removed some tab characters and extra spaces) but you have to still finish it.
Now it is working trough loop, but then when you press ctrl+z it prints labels but can't get over your calculations. It will be much faster for you to check the problem then for me have go on code full of weeklyPay, weeklyPayRange etc :lol:

import java.util.Scanner;
 
public class SalesCommission
{
 
 	// begining of countRanges method
 	public static void countRanges() 
 	{
 
  		// creates scanner to obtain input from command window
  		Scanner input = new Scanner(System.in); 
 
	 
 		final double CommssonRateOnGrossSales = 0.09;
 		final double baseWeeklySalary = 200.0;
    	final double weeklyPayRangeIncrement = 100.0;
    	double salesAmount;
    	double weeklyPay;
   		final int weeklyPayRanges = 9;
    	int weeklyPayRange;
 
   		// define constant of type String named salesAmountPrompt
   		final String salesAmountPrompt = ("Enter salesperson %2d's weekly sales, or <ctrl>z to stop: ");
 
   		int salespersonNumber = 1;
 
   		//INSTANTIATE a local array variable with weeklyPayRanges  elements of type int named countOfWeeklyPayByRange 
  		final int countOfWeeklyPayByRange[]; countOfWeeklyPayByRange = new int [9];
 
  		// displays the task id and programmer
   		System.out.println("\nTask 10-02, Ch07, Programmed by Michael Statham\n");
    
   		//Displays the Weekly Sales and Weekly Pay by Salesperson line
   		System.out.println("Weekly Sales and Weekly Pay by Salesperson:\n");
 
   		//Initialize each element of the countOfWeeklyPayByRange array to zero:
   		int countOfWeeklyPayByRanges[] = {0, /* $200-$299 */
                                     0, /* $300-$399 */
                                     0, /* $400-$499 */
                                     0, /* $500-$599 */
                                     0, /* $600-$699 */
                                     0, /* $700-$799 */
                                     0, /* $800-$899 */
                                     0, /* $900-$999 */
                                     0}; /* …
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

another think to keep in mind, if you take that script from somebody site it may not work properly/ at all because it need some data

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I use webspace provided by my ISP
space 200MB, can do it in PHP(no need so far, too much at uni going on), database MySQL (or some microsoft crap but not interested in it :mrgreen: ), no advertising and no problems so far(2years in use)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

In my personal opinion you have long way of learning ahead of you. It is not just dreamweaver which you have to learn you need get into PHP.
The functionality which dreamweaver provide is not 100% bullet prove, if you change to many things in your document this may casue problems when one peace of code is owerwriting another and page doesn't work properly which leeds to frustration and redisigning/abandoning your page. It's good if you know PHP and you look up code and correct it where necesary.
This is my opinion from my own experience, take it or leave it...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

good find, however images are about 2 or more years old from my area and there are some diferences between google free version and google views on this site. Google free software has maps which are about year old

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I think everybody hate when his phone/mobile ring, you pick up and hear that you just won some kind of Grand Price.

Well just take the link below to "have one" on phone sale people

LINK

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

nice tip mate, thanx

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

try this setup, it is what I used, also you don't need to do rest of the setup after tomcat test as this is irelevant . follow my link

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

just write simple application which will manage your collection of cd's/dvd's/games. Data will writen to/read from database where you can add new item, remove item, make a note(borrowed to somebody) etc

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

only if you have source files with FLA extension, if you have SWF extension then no

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I don't whant to advertise so if admin feel this shouldn't be here please delete it. There is a utility www.muvixer.com whitch I just installed on my pc and I will test it later but I been told it is actually working.
This utility will keep your setting even if some application will try to over write

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

yes I do nero has it own record utilities, I have sound forge, there is record tool from windows

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I will disapoint you,
firstly you posted twice
secondly that little explanation of your is not enough
lastly can you show as what do you have so far so we can help you as this is not free giving of source code

Thank you

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

by importing images into flash you will increase size of your final flash file. use of gif/jpg/png depend what kind of image you try to import, if image is like a photo it is better to keep it in jpg or png if you prefer. On other hand if the picture is kind of cartoon/drawing import it as gif.
There is also posibility to transfer bitmap graphic into vector graphic so it can free strech without pixaleting, but I can't remember the proces of transfer. this is only recomended for cartoons/drawing etc as they are made of areas of same or similar colour.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Can somebody please let me know if there is any configuration file for sound devices which affect microphone setting on the windows start up.

My problem is that when ever I start my pc all previously settings get over writen by some kind of default which mute my mic plus other iritating things which I have to change before I get functional Teamspeak2 ( a voice software for in game comunication). If you need anymore details fire away I will try to answer.

I have Sound Blaster Audigy in my pc.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

ehhhm, difficult, you did not specified what exactly do you study and also didn't said what did you learned so far, your programming abilities etc...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I will sugest to ask this question in PHP section of this forum

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I'm not gone give you code just idea how to go about it

1st get the number from user
2nd simple for loop will do it for you

for example 4 rows with html tag td

for( int i = 0; i <= 4; i++)
{
<td> empty/with text</td>
}

Be aware I did not include it exact coding, this just kind of pseudo code

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

did you ever tried google search?

look what i got just by typing simple query, here

make your decision which language you want to use my friend

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

lol not kind, i'm just giving you tips where I go when I run out of ideas/get desperate etc. If you know what you are looking for it is not so bad to locate it on internet

good luck with your project

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

didn't know that you want to slice so many images. I see only two options then, 1st to try get in touch with person who came up with this script and ask him directly or 2nd try to find forum which is more related to photoshop. I'm not saying that daniweb hasn't got one but it is rarely used and often i'm answering questions over there

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

wouldn't be easier to use ImageReady which you have with your copy of Photoshop and manually slice image then use dodgy script?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

to get date and time check this tutorial

and here you can find all you need about manipulating date/time in MySQL
date/time type

sorry couldn't help you more with previous problem been away, but looks like you sorted out :cheesy:

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Can you please tell me what exactly you are trying to do so I can help you more efficiently?

Just collect some info from user and display it on other page or you want to store it somewhere and use on different palces on your site?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Okay so I looked everywhere and thats why i ended up here hoping u guys could help me.So recently my computer got all this spyware crap and i had to basically completely clean up the computer and when i did and was finally able to get on the internet again the javascript thing doesnt work..like i tried enabling it in internet options>tools>custom>active scripts>enable...blah blah and it still doesnt work. like i cant click on "page 2" on websites for example and i cant view images on google and i cant see the my home page at comcast.net..and i thought it was my firewall but i disabled that also. and it wont let me use my standard gmail, everything is just basic. ok well please help me cuz its driving me nuts! Thanks so much!Diana

I'm sorry can't help you, you better to post in TECH TALK in Microsoft Windows issues, there are people which would able to help you with cleaning your pc properly and set up to run with no problems

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

here is someting to get you going

www.w3.org

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

what you have to do is design a bean which will hold what ever information you want to and pass to any other page on your site
this can be done before a link was clicked or when you click link you run process which set-up bean for you, then on other side you just call bean and pull your info from it

there is plenty of tutorials on google

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Yes you can use JavaScript to launch pop-up window

The example below launch new window on click of highlighted text, it does work as classic "a href", the window is of specific size

<td>Soviet army, and four other "allies" invaded and 
<FONT COLOR="BLUE" onClick="MM_openBrWindow('august.html','','width=700,height=500')">
occupied</Font> Czechoslovak territory</td>

plus you have to embed this in <head> of html document

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) 
{ 
  window.open(theURL,winName,features);
}
//-->
</script>
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

can you please provide a link to your site, so we can see it?
( sometimes it better see it once, then hear about it tousand times)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I may be missing something but this does not get my timer in the application to work. Can you please expand upon your answer for the ignorance I am obviously showing?

the answer is simple, you got source code for functional timer from me ( hope you test it, but have to say, it does work, it is simple cammand line program) and it is up to you implement it in your application

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

hope this will get you going

import java.util.Timer;
import java.util.TimerTask;

/**
 * Work of peter_budo :o)
 * Simple demo that uses java.util.Timer to schedule 
 * the specified task for repeated fixed-delay execution, 
 * beginning after the specified delay
 */

public class CountDown 
{
    Timer timer;
    int runTime = 0;
    int setTime = 600;				// time set up for 10min

    public CountDown(int seconds) 
    {
        timer = new Timer();
        timer.schedule(new CountDownTask(), seconds*1000, 1000);
	}

    class CountDownTask extends TimerTask 
    {
        public void run() 
        {        
        	int convert;
        	runTime++;
        	
            if( runTime < setTime)
            {
            	convert = setTime - runTime;
            	System.out.println( (int) convert/60 + ":" + convert%60);
            }
            else
            {
            	timer.cancel(); //Terminate the timer thread
            }            
        }
    }

    public static void main(String args[]) 
    {
        new CountDown(1);
        System.out.print("Task scheduled.\n10:00\n");
    }
}

for mor info on schedule Timer go to Sun Java

What you have to do is just sort displaying zeros befor time smaller then 10 in minutes or seconds

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

First of all I didn't see anything anywhere. DO NOT respond to my post rudely... I really don't need that. I don't think YOU know how to read!!! Nor do YOU know what YOU'RE talking about.

ALL I was asking if anyone knows of a software/template etc that could help me get what I'm looking for. So unless you have some useful advice please don't respond to me thread... it's not like you're being helpful at all... just cluelessly rude.

DO NOT respond to my post rudely...

I warned you I will be rude, as you repeat the same stuff around and not listen to an advice

I was asking if anyone knows of a software/template etc that could help me get what I'm looking for.

Either you can buy tool like this ( use google for search) or you can develop this tool

to the templates, templates are pre-design form with layout which can only be fill up with data, but in generaly are not for editing. Anyway it is something like the window where you may write another comment for me :lol: .Yes, it is a tool which you are looking for. It is just simple version of it to set a text, images, do some basic layout

I don't think YOU know how to read!!!

I can't read, I only know how to write ROFL :cheesy:

Nor do YOU know what YOU'RE talking about.

Hmm, I should give up on my master degree, Internet Computing …

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

to create and edit their page as they wish

I will be rude at this point, but I don't think you have any idea what you are talking about. You just seen something somwhere and think it will be simply done.
Question here how many people do know how to work with HTML? So you wil have to provide something like WYSIWYG, for your info that stands for "what you see is what you get". Developer use Dreamweaver, Home Site, Front Page etc. This is useless, you can't embed it to your site. So what you have to do is give them tools be able to create/modify content of space given to them by "you". Either you can buy tool like this ( use google for search) or you can develop this tool for them = your TEMPLATE !

Got it, if I still missing your point of this discusion please provide proper explanation with examples. Thank you bye :rolleyes:

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Well not EVERY member will be allowed to create a webpage- only those I approve. I already have a large amount of space at my hosting company that is not being used.

that is not what you ask, what you looking for is somebody to develop for you online tools to edit "aaproved" sites.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

check it on IE 6 and firefoxand everything is OK (just that gray area on the right was to far to rigth), loks like you sort it

just would sugest to center it, but that is up to you

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

well idea is simple, but reality is more complex.
As you don't charge for site you have to make profite somwhere else as youpay for the webspace, which is you force user to embed few adverts. This is fine with user as long it is not too much. Main problem is the tools which you have to provide for user to set up their sites and edit the content of the site. This is the hard part and i don't think anybody will do it for free

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

click thumb and large image pop-up, you mean open in new window????

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

can you specify your question please....

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

lot of reading for you this seems to be interesting
read this

also by serch of google you can get more

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

once conected to your server, switch from local view of your site to remote view to see waht is on other side. if you have corect files over there, then you have to clean cache of your browser( delete any history, cockies etc) that should sort your problem

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

lol, had similar coursework

took me 2 days to finish it :cheesy:

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

This should give you basic idea

http://www.cryer.co.uk/resources/javascript/script13_gallery.htm#_self

plus you need to implement random number generator

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

No, site is done in flash with combination of php and JavaScript

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

what is this site local developd site(on your pc) or external site(internet)?