peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Sorry but I dont think you will get to much from 1024 x 768 resolution!!!
I use 17" and resolution here is 1280 x 1024, what about Dani with 23" :confused:
Also images are not of greates kvality, have ugly logo in right bottom corner, looks to me that most of them been simple scaned.

Sorry my friend

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

What exatly is the problem???

You whant to print something as landscape or setting for your site???

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Didn't know that you can play txt files. What I think is that somebody clever opened music formar for example wma in notepad and saved that way. When I look at that site I found that person is yousing clasic BGSOUND tag

<BGSOUND balance=0 src="http://kassierae.myknet.org/frontlineda.wma" 
volume=0 loop=infinite autostart="true">

Where exactly did you found that link which took you to that txt file???
Also when I went for that site my browser crashed couple of times!!!!!

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You will not find Bryce as Corel doesn't do any support for this product for past 4-5years. Only on P2P.
Also you should say what you are exactly looking for in 3D that will help as to help you...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Hi, I want to start learning how to create a web page from beginning, I know a little java and still working on it. But generally I am clueless about web development :o :sad: :o

I am looking at some html tutorials on the web but I think some advice could be useful.
How should I begin with :?: :?:

Very nice place to go is
www.w3schools.com
This site been build in cooperation with w3c site
or anything which you like which because of the design, or good examples.
The thing is you have to learn first html tags("commands") than you can do some adds CSS, JavaScript, VisualBasicScript, XML etc

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

With use of Firewall which is part of Windows XP or buy one

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Eager Student you are realy eager or to lazy
I will not do second one it is complicated as far I judge by demand.

Well so 1st
You have to build up some kind of form which will take all detailes and have classic RESET button and SUBMIT/CHECK button. Design of form is really by your taste checkboxes, radio, input fields, options that is your bussiness.

Than in java script declare your function/-s
Declare variables which will keep values for students for BUSSINESS & IT to know how many of them been registered. However this will keep them as long you do not refresh or close page.
You have to also declare variables which will hold temporary values ADVISOR and DORMITORY which will be displayed somewhere

if(selected BUSSINESS)
        check variable for bussiness
                if under 100 goes to Brown
                else Davis
        check age(DOB against current date)
                if under 21 Washington
                else Adams
if(selected IT)
        check variable for it
                 if under 100 goes to Cunnigham
                 else Lee
        check age
                 if under 21 Jefferson
                 else Lincoln
if(selected HEATING)
            goes to Parke
            accomodation Grant
else                      <that mean HOSPITALITY or UNDECLARE>
                  if(HOSPITALITY)
                           goes to Hunter
                  else
                           goes to Ulster
          bouth of this dormitory Wilson


Than display what you found about student

as alert message if you do not have fields where to dispaly
or
display in predesigned fields

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Another option is to use frames but not everybody likes to use them...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Not really easy what you are trying to do!!!

As far I understand you whant to create html document which will work on javascript???

But have do you whant to do this part???
Business Brown for the first 100 students, then Davis
Computer Information Systems Cunningham for the first 100 students, then Lee

There are two options to do this
1. cheat, the way you just count people going for this courses and not to hold any info on them
So person apply for Business, check variable which holds value for amount of people which already registered for this option, if less than 100 send it to Brown else it is more than 100 goes to Davis, in both cases increase by one after all
2. build txt file which will work for you as database, this is more complicated you have to build algoritmus which is able to read/write database and then another algoritmus which will check how many students already on course and make decision where to send a new student

So what do you want to do??? :?:

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

There is a good tutorial on this site you just have to search for it :D

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You my do that by simply applying filter settings to img tag

<img src="yourimage" style="filter:DropShadow(color=#C0C0C0, OffX=25, OffY=10)">

Is this what you whant type css filter: DropShadow in google and there is lot of examples like this two

http://www.fred.net/dhark/demos/css/css_filter_examples.html
http://www.w3schools.com/dhtml/dhtml_css.asp

Hope this is what you are looking for

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Yes, you can save as "ai" when you use export, but in my version of fireworks which is MX it says, save as Illustrator 7. What that mean, you my lose some stuff.
So it is up to cmills83
buy it or crack it that's THE QUESTION

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I am still new to CSS, how would I add a drop shadow around the main conent of this page? www.racexpressions.com I have been trying for a while but I can't seem to get it to work. Thanks!

Do you mean somting like this

<div style="height: 125; width: 400; filter:DropShadow(color=#C0C0C0, OffX=10, OffY=10)">
Text with shadow
</div>
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Well there is simple way how to do it
onClick="MM_openBrWindow('name_of_your_page.html',' ','scrollbars=yes,width=500,
height=300')"

Put this code in img tag and is done. It will open new window of size 500x300 with scroolbar

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

OK, I've got dreamweaver and fireworks and will probably get flash
later. I use photoshop and illustrator and I need to import stuff from photoshop into dreamweaver. Do I have the right software? What will make the photographs of my work look best on my web site.

Any suggestions are welcome.

Thanks

Yes, in deed you got proper stuff. To answer rest it will be litle long so by patiance.
In Photoshop in File is option Save for Web. Here you have 4 options of view Original. Optimized, 2-Up and 4-Up. Personally I prefer 4-up which will bring you Origimal plus 3 previews of your photo with different setings. On right side of this window you have options to change: GIF, JPG, PNG and WBMP.
GIF is very good with simple graphics( combination of lines, shapes of different colour) where colour is not gradient. This format is also able to create transparency on selected colour which you do not wish to see it.
JPG/JPEG is for gradient colour when you want it see changes from one colour to next one. So basicaly for photos and graphics which need gradual change of colour. Not able to work with transparency.
PNG in this days is some kind of hybrid between this to format. So you can save your graphic in this format if you wish. I use this format in a case of buttons when I use gradient colours but need transparency.
WBMP Is product of Microsoft some people …

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Hi,
I have everything in a table which I have set to 100% height & width but I've put layers on it with images and text and it's these that move off the page when viewed on a smaller screen.

Hi Sue
I do not have to much experience with dreamweaver but to my knowledge( what I was told) layer are basicly use of position in CSS. Where you give them exact possition on the screen. Ussual problem with this is screen ofset. Like you sed on small screen somethinkg moved from view.
You have only two options in my opinion:
1. To put everything in table with coloms preformated if image to be use, and leave it for browser automaticali to adjust it.
Bigger screen more text next to image or smaller screen less text next to image and page longer
2. Create all layers on smaller screen and have your site displayed like my uni http://www.wmin.ac.uk/page-0
Everything nicely lay out and adjusted to left top corner

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I'm trying to create class/header for my program which should calculate distanaces between cities declared by array "use" plus arrays of there coordinates as you see in code below

// file line.h

#ifndef LINE_H
#define LINE_H
const int cities = 6;

class Line
{
 private:
  string use[] = {"Phoenix", "Baton Rouge", "Bismark", "Columbia", "Olympia", "Springfield"};     //predefined parameters name of cities
  int x[] = {380, 890, 650, 1140, 70, 920};                                                         // x coordinate of each city
  int y[] = {280, 180, 690, 300, 700, 470};                                                         // y coordinate of each city

  string dest[] = {"Phoenix"};                   //cities which been used in calculation, as a target city and starting city
  int dist[];                                    //calculated distanced between cities

  int possition[] = {0, 1, 2, 3, 4, 5};          //to be use for swap function, after swaping to find city with shortest distatce from start city
  int calc[];                                    //array to hold temporary distances
  int x1;
  int x2;
  int y1;
  int y2;

 public:
  Line();
  void calculate();
  void find();
  bool notInDest();
  void sort();
  void swap();
  void smallest();
  void display();
};

#endif;

I created prototypes of functions in cc program and tryed to compile, but got this error messages

line.h:10: syntax error before `['
line.h:10: missing ';' before right brace
line.h:14: syntax error before `['
line.h:24: parse error before `public'
line.h:33: parse error before `}'
line.cc:6: definition of implicitly-declared `Line::Line()'
line.cc:6: declaration of `Line::Line()' outside of class is not definition
line.cc:9: no `void Line::find()' member function declared in class `Line'
line.cc:12: parse error before `bool'
line.cc:16: parse error …
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Yes it will handle automaticaly, but the purpose of all this is also to run a check on "h" files see if any changes been done with them. If yes, you have to compile everything again. If you exlud them "make" will not detect it and will not compile for you, so you are still running on old datas!!!!!!!!!!!

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Well, today is an good day for me, because I found what is wrong with this code!!!


I have 5 fieles :
- student.h
- studgrp.h depend on student.h
- demo.cc depend on studgrp.h
- studgrp.cc depend on studgrp.h
- student.cc depend on studgrp.h

So using emacs I typed this small script

record: demo.o studgrp.o student.o
	g++ demo.o studgrp.o sudent.o -o record

studgrp.o: studrgp.h studrgp.cc
	g++ -c studrgp.cc

student.o: studgrp.h student.cc
	g++ -c student.cc

demo.o: studrgp.h demo.cc
	g++ -c demo.cc

and what was wrong

record: demo.o studgrp.o student.o
	g++ demo.o studgrp.o student.o -o record

studgrp.o: student.h studgrp.h studgrp.cc
	g++ -c studgrp.cc

student.o: student.h studgrp.h student.cc
	g++ -c student.cc

demo.o: student.h studgrp.h demo.cc
	g++ -c demo.cc

I made mistake in spelling ( I do them, English is not my first language an time to time is hard to concetrate)
As you can see I made an addition to the code, this will check if any changes been done on student.h, if yes everything will be compiled again in one go.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Come wiht good sugestion or do not reply topic please. I couldn't find anything useful on net and Unix man hold nice list of information but not examples, that why I asked people here......

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Studying Computer Science on Unix platform is ussually fun expect days when you get stuck.
And life get tough, this is one of my tough days.
To make life easier with my c++ programming I wanted to use the make tool under unix.
I have 5 fieles :
- student.h
- studgrp.h depend on student.h
- demo.cc depend on studgrp.h
- studgrp.cc depend on studgrp.h
- student.cc depend on studgrp.h

So using emacs I typed this small script

record: demo.o studgrp.o student.o
	g++ demo.o studgrp.o sudent.o -o record

studgrp.o: studrgp.h studrgp.cc
	g++ -c studrgp.cc

student.o: studgrp.h student.cc
	g++ -c student.cc

demo.o: studrgp.h demo.cc
	g++ -c demo.cc

And i got this error message

make record
make: *** No rule to make target `studrgp.h', needed by `demo.o'.  Stop.

I think the proble is with student.h because this file is not checked for any changes durring dewelopment of my work. Basic notes from my tutor says this about using make tool:

  • if you change a header, any .cc file that depends on that header must be recompiled
  • if you change a .cc file, that must be recompiled

But what about the relationship between studgrp.h and student.h?
Any suggestions?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Thanks for interest.
As you can see this was part of my coursework. I must admit that to learn SQL was interesting experience however the course hasn't got appropriate backup. What I mean, our tutor answers been often confusing, not to much in notes and tutorials did not provide enought experience, for example to insert data in new attribute. Only think close to this for us was update already existing data. In the proces of learning it logicly come to me to do it exactly as populating table with INSERT INTO.
Now I know, I was wrong.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Other way is get everything on minutes

enterMin=enter%100;                              //enterMin is int
enterHour=enter/100;                             //enterHour is int
enterTime=(eneterHour * 60) + enterMin;   //which give you enter time in minutes

SAME apply to live time
than small if statement which check

if (enterTime < leaveTime)
{
c=leaveTime - enterTime;                        //total parking time in minutes
b=c/60;                                                //Hours of parking
a=c%60;                                               //minutes of parking
}
else if (enterTime > leaveTime)
{
d=1440-enterTime;                                 //1440 is 24hour in minutes and you get time till midnight
c=d+leaveTime;                                     //total parking time
b=c/60;                                                //Hours of parking
a=c%60;                                               //minutes of parking
}
else
{
SOME MESSAGE SAYING THAT PARKING TIME IS EXACTLY 24HOURS OR NULL
}

<< moderator edit: added [code][/code] tags >>

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Can you supply any code of yours so we can start somewhere????

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Too late I think you should come here week ago not yet!!!!

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

After all I found my lost way trough the darknest and here is my final code

ALTER TABLE member
ADD e_mail CHAR(20);

UPDATE member SET e_mail='johnwhite@msn.com' WHERE member_no='A2345';
UPDATE member SET e_mail='leeJulie@aol.com' WHERE member_no='R3456';
UPDATE member SET e_mail='d_ford@yahoo.com' WHERE member_no='S4567';
UPDATE member SET e_mail='maryhowe@aol.co.uk' WHERE member_no='S7654';
UPDATE member SET e_mail='mrobinson@msn.com' WHERE member_no='A7412';
UPDATE member SET e_mail='ahmed_h@msn.co.uk' WHERE member_no='B6421';
UPDATE member SET e_mail='AnnMat@f2s.com' WHERE member_no='A1246';
UPDATE member SET e_mail='amohammady@box.com' WHERE member_no='R8916';
UPDATE member SET e_mail='fairyjack@aol.com' WHERE member_no='S1248';

Hope I will pass my module :lol:

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If you someone could help me with the mp3 audio working on my site.
www.jamguitar.com/dvds.htm
The videos work but for some reason the audio files don't load.
Maybe its because quicktime isn't loading right.
Any help would be great! I am using dreamweaver.

Looks like you found solution for your web or you are still unhappy with it???

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Please provide full code and write down exactly what is what they want from you at school

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I am supposed to write an query which will add new attribute to my already existing table
So I written this

ALTER TABLE member
ADD e_mail CHAR(20)

which is fine, however when I try insert required data for each row I get stuck

INSERT INTO member(e_mail) VALUES('johnwhite@msn.com');

Can anyone help me please....

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If you preffer you can use

exit()

instead of error()

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I think I got it.
It is gone be bite of cheat but will see if will pass (mean tutor will acceppt).
Simple print out first number followed by requered string with suffix.

Anyway thanks for respond

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

have to forget about classes not allowed
anything else???

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

:o Hi there!!!!!!
May I ask for help? After holidays all my C++ knowledge gone.
What I need is to create string from integer number and another string as

STRING = INTEGER + SUFFIX
where INTEGER is 5
SUFFIX is than 'th'

so STRING is 5th

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

well still doesnt like it, it's saying
49: cannot convert `na' from type `string' to type `const char *'
I tried create another variable type integer and than convert string but than there message
cannot convert `na' from type `string' to type `const char *'

Anything else I can do with it???
Here is code as is look

data file
3 accounts

123 100.5
840 123.43
666 8273.06

program

//account11.cc based on notes from tutorial Peter
#include<iostream.h>
#include<fstream.h>
#include<string>

const int ACC_MAX = 10;
enum TransactionType {Deposit, Withdraw};

struct Account                        //grouping account number and balance under Account{
  int accno;
  double balance;
};
struct Transaction                     //grouping transaction type, account number and amount of money moved{
  TransactionType type;
  int accno;
  double amount;
};

void process(Transaction t, Account& a)       //if deposit add money, if withdraw take out money[/RIGHT]{
  switch(t.type)
    {
    case Deposit:
      a.balance += t.amount;
      break;
    case Withdraw:
      a.balance -= t.amount;
      break;
    }
}

void main()
{
  Account accs[ACC_MAX];
  int nRead = 0;

  //open the data file
  ifstream accfile;
  accfile.open("accounts.dat");


  string na;                                    //number of accounts
  accfile >> accs[1].accno;
  getline (accfile, ucty);
  [B]atoi(na);[/B]  
  cout <<"Reading from first line = " << na << endl;

  do                             //this does counting of accounts but I want to replace with stuff above
    {                                             //where reading from first line says how many accounts are there
    accfile >> accs[nRead].accno >> accs[nRead].balance;
    if(accfile)
      {
	nRead++;
      }
  } while (accfile && nRead < ACC_MAX);
 cout << nRead <<" accounts read\n";

 Transaction trans = …
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Hi
my name is Peter and I'm looking for somebody who can help me to understand how to read from external file without "destroing" existing inforamtion inside.

whole staff is based on book example which i'm trying to extend.
I have a programm which is working with database of 3 three accounts.
There is no problem to do operation on it(Deposit, Withdraw) and update data file. However if I insert there on start extra line which state how many accounts are there everything gets funy :(

data file
3 accounts

123 100.0
840 123.5
666 823.9

first number is account number second is current balance

and here is part of code which is looking for information on first line "3"

ifstream accfile;
accfile.open("accounts.dat");

int na; //number of accounts
accfile >> accs[1].accno;
cout << accfile << endl;
getline ( accfile, na);
cout <<"Number of accounts = " << na << endl;

give me error : no matching function for call to `getline (ifstream &, int &)'

if I declare na as string
cout brings "Numbers of accounts = accounts"

this does erease first line