jwenting 1,905 duckman Team Colleague

in fact, he's done nothing at all beyond declaring some variables and function prototypes (which were probably just copied from the assignment paper).

Do your own homework kama, it's the only way you'll ever learn anything.

Questions like yours make me believe there should be a minimum requirement of a college degree to be allowed onto the internet...

jwenting 1,905 duckman Team Colleague

yup. What I find rather troublesome is that he uses System.err for non-error output...
It would be much preferred to read the inputfile through the commandline.

jwenting 1,905 duckman Team Colleague

First you'd best gain experience using Java in a production environment. While it's possible to sit the exam with academic knowledge only it's not recommended.

Then study, study a lot. For the 1.4 SCJP and SCJD exams (exams 310-035 and 310-027) get Kathie Sierra and Bert Bates' certification book (ISBN 0072226846).
Work through the relevant part for your exam (for SCJP that's the first half roughly) several times until you can almost dream the smallest detail.
Do mock exams, lots of mock exams. The exam questions aren't hard if you know your stuff well and are meticulous but they're worded in tricky ways and there are many pitfalls like minute errors in the question code so that it does something totally unrelated to what it seems to be doing. Practice to prepare to see such things.

When you feel ready and get 80+% on mock exams consistently contact Sun Educational services to get an exam voucher.
Then contact an exam center near you (Sun should have a list) to schedule the session.

I'm currently working on the exam myself, hopelessly delayed because I can't find the time to really sit down and study.

A good source for information is also http://www.javaranch.com

jwenting 1,905 duckman Team Colleague

Something tells me that's someone else posting on the account.
Writing style is just too obviously different :)

The ISP will have a record of the emails sent by his account, unless it was long ago (not sure how long they're required by law to keep those records).

jwenting 1,905 duckman Team Colleague

that is usually the idea ;) Though given the often glacial speed at which investment proposals are handled in large companies it's not always the practice.

jwenting 1,905 duckman Team Colleague

call the chemical waste disposal people to take the stuff away and watch as they scratch their heads as to why computer parts are chemical waste (they are...).

jwenting 1,905 duckman Team Colleague

Not quite sure without a dictionary (again :)) but given that the French word for century is siecle (sp.??) and is derived closely from Latin the translation as "ages" of the plural form Seclorum is probably accurate.

I don't think the Romans even had a word with a meaning similar to the English "secular".
Separation between religion and other events was not an established way of doing things in those days.

jwenting 1,905 duckman Team Colleague

And don't forget it's extremely rude to hijack other peoples' threads.

jwenting 1,905 duckman Team Colleague

why will you only build the system if you make it easier for us to help you?

As to the String validation, check out the regular expression package in Java 1.4 and later.
It's purpose built for things like that and extremely powerful.

jwenting 1,905 duckman Team Colleague

I too like VI but for large projects it's slow.

Being able to jump from one source to another saves tons of time, as do things like code completion (type the first few characters and a list of available methods and members starting with that is presented).

Also, having realtime syntax checking in Eclipse has almost done away with compiler errors for me.

All of those of course should only be used once you know the language. To LEARN Java something like VI is best.
To use it professionally use whatever is available, having a strong IDE like Eclipse will increase your productivity a lot.

jwenting 1,905 duckman Team Colleague

of course it's homework.
If it were not it wouldn't be worded as "do this, do that" which is most likely an exact replication of the text of his assignment...

jwenting 1,905 duckman Team Colleague

your post is in violation of the terms of service and has been reported as such.
Plus by doing peoples' homework for them you're doing the entire IT industry a massive disservice by lowering the quality of programmers entering the industry (or rather you're helping people enter the industry as programmers who don't know the first thing about programming, thus increasing the workload of people who do know while decreasing the appreciation others have of us).

jwenting 1,905 duckman Team Colleague

I think you're onto something.
Where is the CTimeCard initialised?
What is it anyway? If it's a reference to something else you're calling a method on an uninitialised object which will indeed cause an access violation.

jwenting 1,905 duckman Team Colleague

back to track 0x11 which will require loading another CD with more tracks :)

jwenting 1,905 duckman Team Colleague

OK, let's bump this up and provide a small update :)

It seems the problem happens only on Win XP with SP2 installed, on SP1 machines the code seems to works fine.

Anyone know what changes there are in the Javascript engine of IE6 between SP1 and SP2?

jwenting 1,905 duckman Team Colleague

#define is old C style syntax, in C++ const is preferred.

jwenting 1,905 duckman Team Colleague

Why restrict ourselves to base 10? This is an IT site after all so let's continue in hexadecimal...

E

jwenting 1,905 duckman Team Colleague

Who do crackers work for ???? Microsoft. HP, Intel, etc. who else the Police or Government agencies, I think you should read about Patriot Act 11. Do you want a police state because you are getting one.

Most don't work for anyone (legally that is, quite a few work for organised crime). A few may be employed by large corporations to test that organisation's systems for vulnerabilities.

jwenting 1,905 duckman Team Colleague

hehe, i dont hack, if anything, i hack up some games to try to make mods for them. friends send me what they made and i see if it could help me. lmao, im a h4xx0r....

you're not. Only crackers call themselves h4xx0r, true hackers have a massive disdain for that entire way of spelling which originated with script kiddies...

jwenting 1,905 duckman Team Colleague

You will have to nest different layout managers.
Make a component that is a JPanel with a GridLayout containing a label and a slider (so 1 row of 2 columns).
Then add that to your borderlayout where you want it to appear.
That way it should line up as you wish.

A simple test yields this (note it will look a bit weird as I didn't try to constrain the horizontal allignment):

public class TestLayout1 extends javax.swing.JFrame
{
	
	/** Creates new form TestLayout1 */
	public TestLayout1()
	{
		initComponents();
	}
	
	/** This method is called from within the constructor to
	 * initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is
	 * always regenerated by the Form Editor.
	 */
    private void initComponents()
    {
        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jSlider1 = new javax.swing.JSlider();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        jPanel1.setLayout(new java.awt.GridLayout(1, 2));

        jLabel1.setText("jLabel1");
        jPanel1.add(jLabel1);

        jPanel1.add(jSlider1);

        getContentPane().add(jPanel1, java.awt.BorderLayout.NORTH);

        pack();
    }
	
	/**
	 * @param args the command line arguments
	 */
	public static void main(String args[])
	{
		java.awt.EventQueue.invokeLater(new Runnable()
		{
			public void run()
			{
				new TestLayout1().setVisible(true);
			}
		});
	}
	
    // Variables declaration - do not modify
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JSlider jSlider1;
    // End of variables declaration
	
}
jwenting 1,905 duckman Team Colleague

All it prints is a compiler error and some warnings when compiled using GCC.

Correct code is:

#include <iostream>
#include <string>
using namespace std;
int main()
{
  char s[50];
  strcpy (s, "What ");
  strcat (s, "does this " );
  strcat (s, "do?");
  cout << s << endl;
  return 0;
}

which prints exactly what you'd expect it would...

jwenting 1,905 duckman Team Colleague

simplest sequence (not recommended for large files) without error checking

read filename(s).
open file with given name for read-only
read entire file into buffer
close input file
open file for output as write-only
write buffer from the end one byte at a time
close output file

jwenting 1,905 duckman Team Colleague

strstr is a standard function that searches for occurrances of one string inside another.
This is exactly what grep does at its most basic.
It can indeed not search case insensitive but with a little thinking you will be able to figure out how to use it anyway.
Hint: how do you turn "Hello" into "HELLO"?

Your professor seems like a wise man making that statement. He tells you to first think about how you'd solve the problem rather than sit down and start coding like a maniac.

jwenting 1,905 duckman Team Colleague

given the current state of BWIA you could set the date into the future and output 0 for every category as they're almost bankrupt :)

What output will you need? How complex does the calculation need to be?
If you want it truly realistic the number of factors is so mindboggling it can take a supercomputer to calculate it all and a team of hundreds to create the software.

Do you have to account for parallel runway operations or not?
Weather conditions, taxiway congestion, etc. etc.

jwenting 1,905 duckman Team Colleague

The real error will be in the InitInstance() method.

jwenting 1,905 duckman Team Colleague

uh, 3rd world language?
It's the world's 3rd largest language after English and Chinese (in no particular order) and is spoken all over the world.

If I were to take up another language (which would be my 4th) it would be Spanish but I can't at the moment be bothered.

jwenting 1,905 duckman Team Colleague

hmm, thread shows up as having an answer but none shows...
To continue:
Freely available:
Java : http://java.sun.com
C/C++: both Microsoft and Borland have free compilers. Search for VCToolkitSetup.exe on http://www.microsoft.com or freecommandlinetools.exe on http://www.borland.com
Perl: http://www.perl.org
Python: http://www.python.org
OpenGL: not a language, rather a toolbox. Included with all or most C++ compilers, available for other languages. http://www.opengl.org
Pascal: no free version that I know of for Windows based systems, at least no current one.
(Visual) basic: don't bother.

http://bdn.borland.com/museum/ has old Borland products for free download (free registration required). More for the curious than for serious study, they're not up to current ANSI/ISO standards (or for Pascal Borland's standards, Borland being the main Pascal compiler creator in the world today).

Many Unix/Linux versions come with C/C++ compilers built in as well as Python, Perl, and a lot of other languages.

jwenting 1,905 duckman Team Colleague

I somehow doubt it's the girl.
More likely their parents have heard that there's good money in such things by threatening to file a complaint of attempted child mollestation unless they're paid a goodly amount and are making the whole thing up. Unless your friend is indeed a dirty old man and you don't know about it of course...

Just because his wife is also involved doesn't make it any more valid. Tastes run to the weirdest things I'm afraid.

I'd say getting a good lawyer is the first thing to do. At worst he might be able to get a lesser sentence, at best a good countersuit for libel and extortion.

jwenting 1,905 duckman Team Colleague

hmm, getting abusive when someone doesn't know his lingo?
Do you know my language? I think not yet I don't mind...

If I'm wanting to post on a Spanish language site I'll take the trouble of posting in Spanish (which would be hard since I don't know it).
On a German site I post in German.
This is an English language site so I post in English.

It's just a matter of common courtesy, something that is sorely lacking in the younger generation.

jwenting 1,905 duckman Team Colleague

Okay #1,Thanks for the help!
#2 I only a begginer so I really don't understand about 60% of it
#3 one of the sample outputs says shift 8 places so i'm pretty sure it has to shift more than five places without looping and tempt is an array used int the shift function.

and by having other do your homework for you you'll never understand anything more about it...

jwenting 1,905 duckman Team Colleague

Start small, really small.

Games are massive undertakings, taking large teams of extremely tallented and highly experienced people years to create.

For example, every version of Microsoft flight simulator takes a team of about 50 people 2 years to create and that's possible only by reusing a good part of the code from the previous version.
Doom 3 tooks a similar team about 3 years, Halflife 2 something similar.

Oh yeah, people actually literally work themselves to death on such teams. It's not unheard of for team members to call in sick one day and be found dead on the couch at home a few days later. Extremely long hours with no decent food will do that over time.

I'm somewhat interested in them myself and have set out to slowly, cautiously, work my way towards a chess program.
But before that I'm thinking of simpler board games like tic-tac-toe to explore the principles.
When I have that to my liking I'm going to start on a program that can analyse a chess position and determine whether an entered move is valid or not.

Don't jump in the deep and try to make Doom 4 from scratch, you'll never make it.

jwenting 1,905 duckman Team Colleague

it should be and if not (you'd be surprised at the volume of pirated software in schools and companies) it's not your problem :)

jwenting 1,905 duckman Team Colleague

OEM software (and hardware) sounds cheap but it's actually illegal to sell and buy.
It also usually comes without manuals and may well be a stripped down version.

OEM software is licensed for distribution with specific hardware to a hardware manufacturer. Standalone distribution is strictly against the license agreement (usually the CDs will tell you this, lines like "for distribution only with XXXXX").

What happens a lot though is that stores will rip open the hardware boxes and sell everything in them separate for a total price that's more than what they could have sold the complete package for.
For example, a highend videocard with your software example might sell for $650.
Sell the card as an OEM card for $550 and the software for $200 and you're $100 ahead...

Respectable stores won't go for this and allow purchase of OEM components only as part of a package deal with other things it can be sold with (so OEM videocards would only be sold when you also buy most or all of the other parts for a PC).

jwenting 1,905 duckman Team Colleague

hmm, the one could definitely be considered an indecent proposal, especially in the US where taking pictures of your own babies in the bath is considered child pornography.
The other, I don't know. Would likely depend a lot on the context.

jwenting 1,905 duckman Team Colleague

For one I'd be very careful with that product name. I doubt Microsoft will like you using their trademark.

jwenting 1,905 duckman Team Colleague

show your code...

jwenting 1,905 duckman Team Colleague

JBuilder comes with a very good debugger.
It can also open multiple files at once.

I do hope you have a legal version of Codewarrior, JBuilder and JCreator? If so they'll come with manuals which I suggest strongly you read.
If not you're a common criminal.

jwenting 1,905 duckman Team Colleague

hmm, sounds awfully like that other guy who spammed the forums a few weeks ago with an almost identical question.
Was that guy banned or is this a classmate who found out a bit later he wouldn't get away with not doing his own homework?

jwenting 1,905 duckman Team Colleague

what is it you want to do?
what is it you have done?
what is it that's not going as planned?

Just showing a bunch of code and pasting your assignment, then expecting someone to do all the work for you isn't going to help you.

And if it's really a life and death situation maybe we'd be better off without you if you can't do the job seeing as you seem incapable of doing more than write a few utility functions (or more likely paste them from a tutorial).

jwenting 1,905 duckman Team Colleague

not using a function that returns an array...
You can of course return an array that contains only 1 element.

jwenting 1,905 duckman Team Colleague

learn to read, that usually helps.
Don't start coding, start thinking. That helps even more though it requires you can read...

jwenting 1,905 duckman Team Colleague

correct.
In the case of an integer it's rather trivial as the hashcode will be the integer itself but the concept is sound.

Asif_NSU commented: thanx -Asif +1
jwenting 1,905 duckman Team Colleague

just when I don't have my Latin dictionary with me.
Yes, I used to study Latin in school but I've forgotten a lot of it. That's what happens when you don't use it regularly :(

Maybe the official website of the US office of engraving and printing (the guys who print the dollar) (yes, there is one) has the answer:
http://www.moneyfactory.com/

jwenting 1,905 duckman Team Colleague

That restriction is the reason it's free.
It's designed specifically as a learning tool, which is why distribution of the produced programs is inhibited by the requirement to run them inside the IDE.

There are NO free VB versions for Windows 95 either. There may be free BASIC compilers but those are not VB...

You can get free programming languages if you want, there are many examples.
Borland has a free version of their C++ Builder environment and compiler for non-commercial use.
Microsoft has a free version of their C++ compiler (without the IDE and tools) for any use whatsoever (and so has Borland of an older version).

Java is free of charge if you shop around a bit for editors and other tools you want.

If you want VB, it's not expensive. $100-$150 will get you the latest version on CD in a nice box from your nearest Microsoft dealer (who may have to order it for you as most don't stock development products).

Any site you find that has it for download will be distributing pirated software which is a criminal offense.

jwenting 1,905 duckman Team Colleague

And which is line 94? I'm not inclined to go count your lines and see which generated the error.

You probably have a string or character literal somewhere which doesn't have closing quotes. Or else you have a quote somewhere where it doesn't belong leading the compiler to think you declared a constant where there is none.

jwenting 1,905 duckman Team Colleague

Since you're doing a masters in CS you'd better start learning to do your own work rather than have others do it for you.

I know you're probably planning to go into management and never code again after you get your degree, instead placing impossible deadlines on us who do do the coding, but at least if you have done it you'll know a bit of what the people you're supposed to be leading are doing which might make you appreciate us somewhat as intelligent human being rather than glorified typewriter monkeys.

jwenting 1,905 duckman Team Colleague

OK, I assume you know what a linked list is else it gets cumbersome :)

A hashtable is a special type of map where the items are indexed on the hashcode of the key.
The hashcode is an integer calculated over the item being stored, in this case your data.
The hashtable contract specifies that items with identical value have identical hashcodes as well.
In other words if you have 2 objects a and b where a == b, then a.hashCode() == b.hashCode().
This facilitates fast lookup. Internally the items are indexed on hashcode, when you try to find an object by the key the hashcode of that key is calculated. That provides an index into the datastorage where a group of items stored with that hashcode are kept.
If the hashing algorithm is perfect there will always be only 1 item there. If not you will at least have a far smaller number of items to compare with your key than the entire collection.

What you're said to do is store a key into your stored data into a hashtable.
As the data you store a pointer to that data, the same pointer which also indexes that same data in your linked list.

So you get both a List (fast sequential lookup) and a Map (fast random lookup) of the same data for practically the price of one.
List Data Hashtable
1 *O1 O1.hashCode()
2 *O2 O2.hashCode()

jwenting 1,905 duckman Team Colleague

"start your own business sending email" :)
Wouldn't advise it of course but a lot of people seem to fall for it...

Other searchengines have similar programs to adwords and sponsored links.
By now paying is just about the only way to ever come up in the first several pages of returns on any major searchengine (which is one way I prefer minor ones...).

If you got the cash a small printed ad in an IT mag might work.

jwenting 1,905 duckman Team Colleague

More likely someone send the offensive messages using a fake address which happens to match your friend.
Another possibility is that his machine has been compromised and someone used it to send the offending material. In that case he'll have a hard time proving it wasn't him and may have to depend on character witnesses.

Happens a lot these days. Most people by now know that most spam, scams, trojans, virusses and other nasties use fake addresses and falsified message headers to hide the true origin.
Does your friend have a lot of money? Or does someone hold a grudge against him? If so it might be he's been set up but most likely it's random.
An expert should be able to determine from the message headers whethere they are faked or not and trace them as far as possible. That could well clear your friend. If not as I said he's in for a tough fight.

jwenting 1,905 duckman Team Colleague

FoxPro used to be widely used but I've not seen any positions advertised for it in several years leading me to believe it's seriously on the decline.

Interdev is a tool for creating database driven web applications if I'm not mistaken. It's also not widely used (anymore).

Skip J++ as well. It's too outdated and will do you more harm than good trying to learn Java.

Leaves VB and VC++. Both old versions too. Good to learn the basics but you'll have to unlearn some things and learn others to be able to work in a modern production environment after using them.