jwenting 1,905 duckman Team Colleague

depends on the speed. A commercial CD reproduction machine can churn out hundreds or thousands of disks an hour (depending on type), if you have enough customers (or large enough production runs) you can run it profitably quite easily.

jwenting 1,905 duckman Team Colleague

I have a duplicating machine capable of copying any CD big by bit.

And I am asking Congress to outlaw all copy protection schemes. They cause all kinds of other trouble, and prevent legitimate backups.

so would I if copy protection were hurting my business.
The only reasons to have a machine like that are
1) you're actually producing something in which case you don't mind copy protection systems because they don't hurt your business and may in fact help it
2) your business model relies on you being able to copy things made by others without their permission (because if you had such permission you'd likely also have a master that doesn't include protection).

Companies that make use of copy protection almost universally have systems in place to replace faulty disks.
The only reason to complain about people locking their doors is if you want to get into their house without their permission and the only reason to get into someone's house without their permission is to harm them.

jwenting 1,905 duckman Team Colleague

yes Christian, you can set a file to inhibit copying but that will deter only the casual copier.

If I create an application that reads in the file and then writes out the data to another file I have effectively a copy yet I never issued a copy command to the operating system.

jwenting 1,905 duckman Team Colleague

There must be some software that can do this for me, Does Nero have such facility?

You CAN make a CD which cannot (or be much harder to, to be more realistic) be copied. Nero AFAIK cannot do it, you need specialised software (and possibly specialised hardware as well).

You can NOT prevent individual files from being taken from your CD and used elsewhere.

jwenting 1,905 duckman Team Colleague

No, it's not possible.
If you can read the files from the CD you can then write them somewhere else...

Same with websites. If you can see the graphic you already have a copy on your system so the only thing to do is find it (unless the graphic is read from a remote source on the fly using a Java applet or flash thingy but then you could reverse engineer that and read it anyway).

jwenting 1,905 duckman Team Colleague

thought it was only 2 hours :)

jwenting 1,905 duckman Team Colleague

And don't become impatient when you don't get an answer in 5 minutes.

jwenting 1,905 duckman Team Colleague

You apparently didn't get it...
I asked who this person called "u" is supposed to be. I know noone of that name and neither is there a member here who responded in this thread who is named such.

jwenting 1,905 duckman Team Colleague

who is u and why are you telling us you'll keep him/here/them updated?

jwenting 1,905 duckman Team Colleague

Many C answers are relevant to C++ as well to some degree even if the reverse isn't always the case.

Therefore a true separation may not be appropriate on purely language boundaries.
Separation on functional boundaries might be more appropriate (general language issues, GUI programming, etc.).

jwenting 1,905 duckman Team Colleague

Bad clusters are hardware errors, there's no cure.
Sometimes a lowlevel format can fix them but that requires special equipment with modern harddisks and is best left to the manufacturer.

jwenting 1,905 duckman Team Colleague

PLEASE DO IT SOOON
Wrong way to ask a question. We're not here to do your bidding at your whim. Maybe you should have started researching sooner if you're in a hurry now.

the multiselect is not possible with a dropdown, only with a selectbox.

You can get the values with getParameterValues(String) on the ServletRequest.
The API docs will give you more information.

jwenting 1,905 duckman Team Colleague

There have been coins like that attempted in the past but the problems with bonding 2 different metals together so that an extremely strong bond is created hadn't been overcome before.
The result was coins coming apart, leading to the designs usually being shortlived.

jwenting 1,905 duckman Team Colleague

just open a command prompt and type netstat in there :)

jwenting 1,905 duckman Team Colleague

Most dollar coins end up in collections (they're often limited run items) and the rest are used in the few sales machines that don't take dollar bills...

It was decided to go with €2 coins because of the amount of circulation such small denominations get. A coin lasts a lot longer than does a note and therefore is cheaper in the end (even if the production costs a bit more).

jwenting 1,905 duckman Team Colleague

bump... I wonder how long until the FF zealots will jump in and deny there's a problem because they haven't seen anything using it...

jwenting 1,905 duckman Team Colleague

Start small. First upgrade an existing PC with a new videocard, maybe add a harddisk or a CD ROM drive.
The next step could be installing some new RAM.

Soon you'll have all the experience to build a new machine from scratch, and all you need to build up is the courage to take a screwdriver to a motherboard and to plug in a CPU costing hundreds of Euros that looks incredibly fragile :)

jwenting 1,905 duckman Team Colleague

I've looked at it and liked what I saw. But as I'm working fulltime in Java and that's a large enough field to keep me busy I've little time to do much more.

jwenting 1,905 duckman Team Colleague

well, there's probably a function in there that you can use.
But as noone here except maybe you (and I doubt you took the trouble...) has ever seen it we're not going to be able to help you further.

Do your own homework and do your own THINKING. Way too many kids come here expecting to be turned into programming gurus by simply copying sourcecode produced by others and never having to exercise their brains.

jwenting 1,905 duckman Team Colleague

As to washers: remember that the motherboard is grounded to the case through the screws. Washers might prevent grounding leading to charge buildup which can cause serious problems (including shorts and sparking).

jwenting 1,905 duckman Team Colleague

well, in low temperatures different liquids can be substituted.

In fact your idea isn't as farfetched as you think. It is entirely possible to create calculating machines in hydraulic circuitry and such has indeed been done.
While not entire computers AFAIK, things like flipflops and transistors have been created using hydraulic and pneumatic (which is closely related, using gasses instead of liquids) components.

jwenting 1,905 duckman Team Colleague

the trite answer is indeed the one true answer.
Anything that's not in the standard docs is non-standard.

A slightly more concise answer would be that as long as you keep to what Stroustrup describes you should be fine.

jwenting 1,905 duckman Team Colleague

actually itoa is standardised in C++

jwenting 1,905 duckman Team Colleague

you're going about it wrong but you probably knew that already.

Here's what to do (I leave it to you to translate that into C++):

declare variable for smallest value
declare variable for largest value
set both to first value in the file
while there's more data
    read new value
    if smaller than smallest set as smallest
    else when larger than largest set as largest
wend
close file
jwenting 1,905 duckman Team Colleague

Don't attach things, I won't open them.

Most likely you didn't place the select inside an html form which would cause the value to not be passed in the request.

jwenting 1,905 duckman Team Colleague

all compilers should recognise a core set of operations.

If you're using a very old compiler you're in trouble as those preceed that standard and won't implement it.
If you elect to use custom libraries for a specific compiler you deliberately abandon compatibility.

You're doing both.

- Learn STANDARD C++, not some compiler specific enhancements.
- LEARN the language, don't think you can program when you can get code you got from someone else to compile.
- use code tags when posting code. I (and many others) won't read any code that doesn't use them.

jwenting 1,905 duckman Team Colleague

If you need basic tutorials you won't master both languages enough to be commercially viable in 6 months.

Narue mentioned the one C++ book you MUST read and understand.
I don't think there's a single similar book for Java, it would be too thick ;)
Simply put: there's no way to master Java in 6 months, as there is no way to master C+ in 6 months.

Get yourself Head First Java which will give you a good start but you can read a library full of books and still be a grasshopper.

jwenting 1,905 duckman Team Colleague

no, since there is no "the" C/C++ ebook.
But there's a lot of good books here: http://www.daniweb.com/techtalkforums/newpostinthread10232.html

jwenting 1,905 duckman Team Colleague

Norton is utter crap. As HV says their "protection" is extremely weak, and their applications are extremely intrusive.

BlackICE is just as bad though. Misses serious intrusions and reports things that are quite harmless.

jwenting 1,905 duckman Team Colleague

or just page back a page or so in this very forum.

Your question comes up and is answered in some detail at least once a week. In fact it happens so often it gets kinda tiring...

jwenting 1,905 duckman Team Colleague

Have you ever tried to built a print preview using C/C++ ? Let me guess you simply used the SDI/MDI interfaces provided by the MFC. Am i right?

I don't use MFC ;)
I've done it using ObjectWindows though.
Can't say it was much harder than using Java...

But then I specialise in serverside background processes and web applications which don't do many printer previews and don't do any MFC or Swing at all :)

As for chainsaw - did you have a traumatic childhood??

The only troubled one here seems to be you. You're the only one after all who can't even respect that others don't share your opinion as well as being the only one whose opinion is as narrow as yours seems to be.

Before i end my post let me let me advice you guys not to be jack of all trades and master of none

Don't worry. We've enough experience to be master at at least one technology (and usually more than one) and still have knowledge of several others...

jwenting 1,905 duckman Team Colleague

I liked Python as a TV show, but is there anybody out there that likes it as a language?

I do. Haven't used it much (no opportunity really, working fulltime on Java development and studying for Sun certification, plus keeping up with developments) but it's a nice language (and a decent Java binding too, albeit outdated compared to the standalone version).

jwenting 1,905 duckman Team Colleague

Well, seems a bad design decision is coming to haunt you...
you would best look into special built hardware, think of PLCs for example.
Or get some new data acquisition cards with their own logic controllers which you can use parallel to the computer they're in.

Believe it or not but your requirements aren't unique in the world and someone somewhere will have thought of how to solve it and put it on the market.
If not it may be time to contact the electronics engineering department and get them to design the hardware you need for you.

Besides, even Windows 3.1 could not do the job. In fact, an MS DOS computer would work this job fine, until Windows 3.1 was started on that computer (they used a spreadsheet to crunch the numbers). After you quit Windows, the timing was wrong, giving numbers which were off on the order of several seconds and making the servo loop go wild. You had to reset the computer and reboot DOS to regain accuracy. The Windows drivers were still running and eating up time. We almost damaged the equipment one time when somebody forgot to reboot.

that tells me a lot about the quality of your system design, and none of it is good.

Go for a dedicated unit to do your stuff and buffers the data in an internal buffer when it's done with it.
Get a modern computer to read out that unit …

jwenting 1,905 duckman Team Colleague

>it will take the ASCII value of a which is 97
We don't care whether you know what the integer values of the ASCII characters are. Stop assuming a specific character set. Geez, how many times do I have to repeat myself before you people get a clue?

And NOW we have you Narue.
IF ASCII is explicitly referred to it will ALWAYS be the same because ASCII is a well defined set of characters and codes.
It stands for American Standard Code for Information Interchange.

If Any other character set is referred to you're theoretically correct (though many will include ASCII as the lower 127 characters).

jwenting 1,905 duckman Team Colleague

yes, removable disks work well. I've done that in the past several times for test machines.
Have harddisks with different OSs, different versions of the software under test.
Just swap in the one you need and get going, apart from the stuff on that disk everything in the machine is guaranteed to be identical between test runs...

jwenting 1,905 duckman Team Colleague

I'm an apostate!
My god is O'Reilly and his prophet is Amazon ;)
Though I must admit I sometimes sin and worship the others whom Amazon also preaches.

jwenting 1,905 duckman Team Colleague

I wasn't claiming Pascal isn't versatile, but quite obviously you didn't understand that. What I was saying (and you seem to have either ignored or didn't understand) is that your claim that C++ isn't versatile is complete and utter nonsense.

I suggest you start reading and understanding what people say before you start ranting about their statements ;)

jwenting 1,905 duckman Team Colleague

"versatile" language like Pascal?
Don't make me laugh. Quite obviously you have no idea what you're talking about if you think C++ is not versatile.
If anything the main fault to be found in C++ is that it's TOO versatile, TOO flexible, and as a result there are no real standardised solutions for many problems, leading people to have to reinvent the wheel a lot.
But with a decent collection of libraries in your posession that gets reduced a lot, just as it is with other languages.

jwenting 1,905 duckman Team Colleague

Also amongst other features, c++ allows me to write DLLs so that software components can be shared and I can code much faster (I do not know if java can do this, or any other form of software re-usability. just look at c++ class libraries and inheritance!)-> you could be right in that I need exposure to more java, (as having lost faith in it a while back im not really interested in it) but all in all what I have got is powerful and easy to use, something I have never seen from java. Would you be able to post some links to some information for the latest JAVA specs, then perhaps we will see if it can rival c++ or not.

Java classes effectively work much like DLLs do in that you can hotplug them (often) into an application without needing to recompile the rest.
There are some products that will compile Java into platform native code, maybe these can produce DLLs as well, I can't say as I've never had a need to use one.

Java has as much (if not more) code reusability than does C++. The C++ class libraries are as nothing to the standard Java library in completeness and versatility.
Whether you find it easy to use is a personal preference and experience. Myself I find the Java standard library easier to use than the C++ one, but then I've far more exposure to it than I do to the C++ …

jwenting 1,905 duckman Team Colleague

Unix is written for about 90% in C, the rest is a mix of ASM and mainly shellscripts.

As Alex says, you could create an OS in which the core consists of a JVM and the entire rest is in fact written in Java. You could even put that core into hardware and have the entire OS in Java.
Sun has done this as an experiment for embedded devices and it works (it just didn't sell, shame really).

It looks to me like the one lacking (realworld) experience is Richard...

While I don't always see eye to eye with Narue about everything I do recognise her as an experienced professional.

jwenting 1,905 duckman Team Colleague

switch statements work only on integer values.
In Java the values you switch on also are required to be constant values (either integer literals or defined constant values), C++ might be more relaxed about that.

If the string represent an integer (for example "1") you can use itoa to turn it into an int.
If it doesn't there's no easy way, but you could use a hashtable with the strings as keys and integer constants as values and switch on the value found in that hashtable.

jwenting 1,905 duckman Team Colleague

add

std::string dummy;
cin << dummy;

your cin.get() was probably reading the enter you pressed...

jwenting 1,905 duckman Team Colleague

I was thinking of PHP ;)

jwenting 1,905 duckman Team Colleague

Well, I'm not so sure about every language having a purpose (unless you define annoying users as a purpose ;) ).

jwenting 1,905 duckman Team Colleague

>Which part of written in 100% pure Java you don't understand
It's impossible to write an operating system completely in Java. If you knew half of what you pretend to then you would realize this.

Actually it's not theoretically impossible. If you were to provide a JVM implementation in hardware the entire OS COULD be written in Java.
This was the idea behind JavaCard which is in active use as well as JavaOS which never left the prototype stage.

In fact, device control through hardware implementations of a JVM was one of the original ideas when creating the language and runtime environment (though I admit it wasn't all the success Sun thought it would turn out to be in that line of business).

jwenting 1,905 duckman Team Colleague

hey, so did my tarot cards just last week :)

jwenting 1,905 duckman Team Colleague

You have to wonder why ID and Valve didnt turn to one of the many "Hey-make-a-game-in-5-minutes-even-with-3d!" programs on the internet to make their latest creations......

They did. It took them 3 years to write that program, then 5 minutes to create the game using it ;)

There's use for Java and C++ both, there's even use for Cobol and PL/1.
Neither is perfect, neither is omnipotent.

Personally I favour Java for most things but when you really need to get down to the hardware Java gives up by design.
Any library that claims to allow direct hardware access is in fact going through a JNI interface which plugs into a C or C++ (usually) library to do the actual interfacing.

Where Java is particularly strong is networking, something the language was designed to be used for.

jwenting 1,905 duckman Team Colleague

because the revenue from them is quite low...
And also because Google isn't known to be very good at paying.
One day of over average clickthroughs and they often cancel all payouts claiming you were using a script to generate traffic. No defense, no nothing, you just loose out and they win.

jwenting 1,905 duckman Team Colleague

the main extra stuff the free MSVC compiler installs is an updated .NET runtime environment if that's not already installed.
The first program you'd create using the compiler would need that anyhow (unless you specify to not compile for .NET) and anything compiled with VS .NET 2003 will also need it.

jwenting 1,905 duckman Team Colleague

and in case you want some more specifics...

drums rolling


bugles calling


Both Borland and Microsoft have released free compilers for 32 bit Windows.
Furthermore if you use Linux or any other Unix variant you most likely have a compiler already installed.