jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

A programmable machine. The programmable part is the key. Thats what seperates a computer from most other basic machines.

The option to run programs is what makes computers different from regular calculators. Also the fact that they follow the stored program concept which says that the instructions to be executed and the data it is to be performed on are held in the same memory.

Ultimately they all perform very basic operations, just lots of them, allowing them to do complex things. Ultimately all a CPU knows is Jump to location in memory, check if something is equal, and add two things.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster
rrvs331 commented: Helped a lot! +1
jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

I had a computer that did this way back (win95). Never got to the bottom of it. New ram, new PSU. Nothing. Was definately a hardware issue though, as it did it under other OSes too.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

there is no such thing as a 100% random number on a computer. and its *supposed* to produce the same sequence every time by default.

to avoid this use

srand ( time(NULL) );

to initialise the random number generator with a seed (the current time)

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

Children cant access fields of the parent class. Add accessor and mutator methods to Animal to allow access to these fields from the children.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

We generally dont do that because then other people would be affected (e.g if we delete your post in a certain thread, that thread may no longer make sense).

You agreed to our rules and TOS when you created your account which state that

"this is a public site where all threads, posts, news stories, code snippets, tutorials, etc... are available to everyone"

and most importantly;

"DaniWeb LLC reserves full rights and privileges to information posted to anywhere within the daniweb.com domain by its members"

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

You need to buy it.

There is no such thing as a standard DBMS. Access is *not* the windows "standard dbms".

In short which is the dbms software which which can work on both mac and windows platform?

SQLite, Firebird, MySQL, possibly oracle, etc...

But if you want a nice easy desktop one like MS Access, filemaker is probably the closest thing.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

NetBeans, nice easy visual-studio-like interface. But generates ugly code. Writing your own is best in the long run, but for RAD, netbeans is good.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

Simply put: Can a 64 lane highway handle more traffic more efficiently than a 32 lane? Of course.

No. Its not more *efficient*. Its just wider.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

Im not sure if Office for Mac includes MS Access.

Its a UNIX-Like system anyway, so MySQL, Derby etc... should run on it.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster
jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

isnt that what Parametric Polymorphism is for?

e.g i used that in chess so that i coded for a generic piece, but each piece had a custom move method (using virtual functions).

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

So if you can hold off for another 2-3 years (until the next windows release - windows 8) with 32bit than you should

I am 99% certain that windows 8 will be 64 bit only, as current server-grade offerings from microsoft (exchange 2010, Server 2008 R2 etc...) are 64 bit only and they tend to like to keep the codebases the same.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

Flash just will never be fast on it. Flash is a memory hog. Ive got 233mhz Pentium 2 /768mb ram pc with a decent (geforce 5) video card. Youtube is still prettymuch unusable.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

Not related to the problem in hand, but its worth noting the best real-world example of recursion ive ever seen is a method to handle the inorder traversal of a binary tree.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

yes.. Thanks for the gread info but I don't think you answered my original question.
Why is SATA faster? (Every bit has to be sent one behind the other)

Because there is less electrical interference when you send things in serial fast in one direction at a time over a lower set of wires than when you send things in parallel over more wires (as in the case with PATA). PATA should in theory be faster but it isn't due to this limitation.

Its just like with network cables. To achieve gigabit speeds the cables have much more shielding to prevent crosstalk (which reduces bandwidth)

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

No, it is not deprecated yet but it will be soon now that SATA-2 has taken over.

No, it will be superceded by SAS if anything.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

Its more extensible. Most of the wires in an old style ATA connector dont actually help transmit data, they are to stop interference (they actualy doubled the number of wires to 80 by adding more grounds). SATA however, has a higher cieling for this so just uses two pairs of wires for a total of 4 (with 3 grounds). This means its got a reduced cost and is easier to route as its smaller and allows for 3-6gb speeds under the current commn SATA specs. SATA also uses twisted pairs and differential signalling (sending the inverse of each signal to compliment eachother and reduce interference in much the same way as noise cancelling headphones do) which reduce interference and keep data rates up.

SCSI is technically faster, but its more expensive to implement due to its architechture.

nileshgr commented: Was searching for this reason since long. Found a thread. Nice reply !! +0
jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

WinFF. Its free.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

Cant wait for christmas. My favourite time of year.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster
jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

Over here is exam period for all the Uni students, so a dent there in free time for them.

yeah thats why ive not been very active

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

Add a cin.ignore() to ignore the newline control character

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

Going home from university back to my parents

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

Its nearly always 30-65, the higher number being in the 10pm-5am period for me (GMT), which i guess is when India and the USA are awake?

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

Please mark as solved.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

Well, do you (and the IIS server) have folder read permissions on the ftp root you defined?

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

Just do a google for ATI Catalyst, download the Catalyst drivers from ati.amd.com.

EDIT: Here is a link

http://support.amd.com/us/gpudownload/Pages/index.aspx

Choose your OS and then Radeon and your series of card.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

Not working? Be more specific.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

We cant help you with that, we would be assisting you in violating your corporate IT policy. You shouldnt be doing facebook at work.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

Firewall problem?

But really... i dont reccomend using the FTP part of IIS, especially on XP. There have been lots of vulnerabilities for it lately.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

To find out the media, use an array and a bubble sort to get them in order, then keep going until you are at the middle element.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

but my teacher wants the user to be able to be able to input a number of any length

Yeah, its a very ambigious requirement. Ask them to clarify.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

Hmm. I cant get it working either.

#include <cstdlib>
#include <windows.h>
#pragma comment(lib, "Winmm")
#pragma comment(lib, "Vfw32")
#include <vfw.h>
#include <Mmsystem.h>

using namespace std;

LPCWSTR lpFileName = L"H:\\sissys.mp3";

int wmain(int argc, char **argv)
{
PlaySound(lpFileName, NULL, SND_FILENAME);
return 0;
}
restrictment commented: Thanks for the help +1
jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

Strange. Glad you got it solved though.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

I can't answer your question but I can suggest another method for what you seem to be doing. I know Ubuntu's live CDs have the Gnome Partition Editor (GPartEd) which you can use to resize a Windows partition to make room for a Linux distro. Perhaps Knoppix comes with the same (or similar) utility.

This thread is from 2005!!!

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

don't write getters and setters. They are a waste of CPU time, but more important, they are a waste of programmer time. Not just for the people writing the code and tests, but for the people who have to read and understand them as well.

By using encapsulation you ensure fidelity of data, and provide a known interface to others who may extend or use your class, making refactoring much less painful.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

I have no idea what Apache is or what it does

And you call yourself an expert???!!! ;)

Its an opensource web server, indeed, one of the most popular web servers on the internet.

Maybe best moving this to the Web hosting board instead of the windows server one?

P.S Bob, i believe SFC runs at boot on Windows Sever anyway.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

Second, when I create an object of this class ( I hope I am using the right vocab ) "josh", I can use josh.name to get the same result as josh.getName(). So what is the purpose of the getName() method

Not a Pythin guy but in other OOp languages like C++ and Java, there is a term called Encapsulation. That means that fields can have a visibility modifier e.g. public or private. Private fields cannot be accessed from outside the class whereas public ones can. To change these you therefore need mutator and accessor (get* and set*) methods.


Proably easier if i explain it - E.g

You may have a class called person with a field called age. It is a good idea to make age private because you DONT want to allow people to access it directly. Instead, use a mutator method, which takes a value as a paramater,. e.g. james.setAge(19) . This way you can perform validation e.g checking i dont input an age of less than zero or something.

tha getName in your code is an example of an Accessor metho - it just returns the value of name.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

Bob - You are this | | close to being banned.

Really, you are closer. Those multiple uses of highly unnaceptable language just earnt you a 5 point infraction.

Play nice.

And just to add my two cents, i have never heard anything about the sound card thing either. Maybe "back in the day" (by that i mean early/mid 90s) it might have been true though.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

Unlike WRAMS, Im not arguing the point for DOCTYPES, i am arguing for validation in general. If your site is not valid, it is is less likely to be screenreader-friendly.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

you cant get sued for that.

yes you can

Actually, in the UK and most of the EU (not sure about US) it *is* actually illegal to do so (national law)

http://www.webcredible.co.uk/user-friendly-resources/web-accessibility/uk-website-legal-requirements.shtml

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

. i think it was because the tickets were only avail online so it was discrimination or something. i dont believe that u can make everyone who has their own website make it screenreader freindly u cant force someone to make their website a certain way

A website is just like a shop. If you dont provide a lift/ramp for your store, its the same as not making your site accessible.

If you read the report in full, youll see it has nothing to do with tickets. It was the incorrect use of tables, amongst other things, which interfered with the screenreaders ability to read out the scores for various events.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

Marked as solved.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

im not getting suied for not using a doctype ddt. that would be an error on the person suing not me. nothing is required to make a website. u just have to make it legal. makeing a website and not adding doctypes or ddts is not illegal. noone can get sued FOR THAT.

http://www.tomw.net.au/2001/bat2001f.html

There is a precedent. They didnt follow the spec which made it non-screenreader friendly, thereby discriminating against the blind.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

I am left with only one suggestion, don't use Dell....

then again, i own two dells (a dimension e510 (~2005) and an e520 (~2008) i think as well as an ancient (~2000) XPS. All work fine still. Only problem was some ram went funny in the old XPS.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

So, mark as solved?

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

You should use it because else you may get undefined behaviour. Thats why standards exist. Secondly, if its not valid, it is unlikely to be screenreadder friendly. If you dont take adequate steps to support disabled users you could risk being sued (look up the Sydney Olympics accessibility scandal).

And yes, you should have a correct document type defined or else you risk being penalised by some search engines.

jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster
sudo apt-get install --reinstall apache2
sknake commented: solved +6
jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

Possibly. If they arent shut down properly (power failure) the write head can crash. My main idea would be heat?