And read a bit in the manual, it's enlightening :)
joshfizzle commented: This was helpful. I couldn't figure out what a commandline argument was. Thanks a ton. +0
And read a bit in the manual, it's enlightening :)
if it means a lower influx of lowgrade people at the lower end of the industry it might actually help.
The flood of underqualified people entering programming jobs in the late 1990, lured by lucrative contracts to fix Y2K (and in Europe Euro) related problems is still harming the labour market.
Uh, OEM means nothing really.
The letters stand for "Original Equipment Manufacturer". It denotes WHO builds the system, not what the system is.
If Dell sells you a PC they're the OEM, if I build my own I'm one.
not just that, but you DO get an object instance when you do "A a;".
It's just created in a different memory space as compared to "A a = new A();".
please don't post your questions in threads created by others, create a thread of your own.
I'm a relic from the '80s as well, nothing wrong with relics.
Most of us have a fair number of faithful followers who really believe in our powers, or at least are admired for our beauty :)
What exactly do you have trouble with?
We're not here to write your program for you, only to help you with specific questions about details where you're stuck.
Microsoft keeps supporting an OS until there's at least 2 new versions.
NT went out of support only after the introduction of XP Pro for example.
That's corporate policy at Microsoft, valid for all their products (except obviously games, which don't have a replacement product, and products where the entire product line is discontinued in which case a timeframe is set, usually up to 10 years).
As to Linux, Ubuntu gets high marks because it pretty much works out of the box.
Never had an Linux distro where I could actually use the machine it was installed before installing Ubuntu, which required only a single session logging in over telnet to correct an error in the automatic configuration of the display drivers which caused massive screen corruption.
Most other distros either saw the installer crashing or hanging or the machine failing catastrophically soon thereafter.
Naa..the limit is 9 stars..she herself told me so.
For now it is :) Remember she's got the keys to the serverroom :p
do you get brown sause outsisde the uk?
buy one bottle of tomato ketchup. Empty into bowl. Let sit on a table for several weeks.
You'll have either brown sauce or wildly coloured sauce :mrgreen:
I actually quite like British food: I had the opportunity to experience it firsthand on many occasions from a couple from Yorkshire. People in the States always ridicule English food saying it is "bland"-- I don't agree. I do not care for "spicy" food that much (unless it is curry) so to me there is nothing like homemade, cottage pie and roasted potatoes. Earthy and wholesome.
Ah, but THE British food (apart from curry) is fish&chips, swimming in a sea of grease and served with a lake of ketchup.
like everything Christmas is what you make of it.
Yes, many have lost the meaning and stores have perverted it into another opportunity for people to show how much they love eachother by competing for the most outrageously expensive gifts (don't get me started about Valentine's day, where it's even worse).
But that doesn't mean you must do so. We've never done presents with Christmas, valueing company and good food much more. We're not Christians so we don't go to church, but for many that path to church is no more a religious statement than the tree in the living room anyway, they do it only because it's expected of them by their neighbours.
For game DESIGN you don't need any programming. A DESIGNER writes storylines, makes decisions about how things will look, signs off on graphics and sounds, things like that.
His main technical skills are with word processors and graphics packages (most likely MS Word and PhotoShop) and at scheduling meetings.
A game PROGRAMMER will need excellent programming skills. Java is getting ever more important in gaming, especially in the booming market of games targeted at mobile phone users.
C++ and C are (and probably will remain for a good time) extremely strong for PCs and consoles.
But beware that you're trying to enter a marketplace that's not only extremely competitive (every kid seems to want to become a game programmer) but highly exhausting.
People have (and do) died at their workstations, literally worked to death by impossible deadlines and 20+ hour workdays combined with employment systems that make it professional death to take even a day off to go to the doctor or catch up on sleep.
For decades Christmas has been a time when the whole family would get together for a few days, topped with common lunch and dinner.
After my grandmother died and my sister got married that slowly got less and less, and this year for the first time ever we're not going to celebrate anything.
My mother is in hospital and we all decided we can't let my father have the added burden of organising things (and the rest of the family we live too far apart).
Do be advised that on the fly XSLT transformation can be very slow, unless you take care to cache the precompiled XSLT files between invocations.
I've done testing for that in the past.
I've actually written a system doing as Matt suggests in Java, using XSLT on a fairly large scale to process dynamically generated XML into html output (and some things into PDF using XSL:FO).
Without caching the compiled XSLT files between requests the request/response cycle was several orders of magnitude slower as compared to the situation after I had implemented such caching.
The compilation stage was that slow, the actual processing itself was extremely fast.
TransformerFactory tFactory = TransformerFactory.newInstance();
// Get the XML input document and the stylesheet.
Source xmlSource = new DOMSource(xmlInput);
Source xslSource = new StreamSource(xslFile);
// Generate the transformer.
Transformer transformer = tFactory.newTransformer(xslSource);
// Perform the transformation, sending the output to the response.
transformer.transform(xmlSource, new StreamResult(out));
You will want to cache the Transformer here in some way and reuse it.
In the final version of that system I used a simple HashMap using the filename of the XSLT file as a key.
sounds like a homework question, in which case it's safe to answer a month or so later ;)
Which message do you mean? The request message or the response message?
a) is just a special case of b)
d) is another way of describing c)
b) could be true for the request message, not the response message which would be the result of that method invocation.
c) doesn't have anything to do with the message, but with the WSDL for the service.
So the question cannot be answered using one (or a combination of several) of the supplied options.
b) however comes closest under the restriction that it's valid only under specific conditions for specific types of messages.
there are no specific books about that extremely narrow topic (nor will you if you do it properly write the thing using JSPs only).
Look for books about security, user interface design, software design in general, JEE application architecture (and the underlying technologies), maybe a JSP tutorial and reference could come in handy if you really decide to use it and not something else (like JSF) when you finally sit down to write some code a few months later.
Project guidelines for schoolkids/students...
1) don't try to write the next killer application, you're not going to do it on your own and certainly not with your level of expertise and especially not in the time you have available.
2) don't start coding like a madman. First write down what you want to do, next turn that into a design showing what each class/module needs to do and what its public interface will be.
3) don't think you can postpone your work until the last few hours before you have to turn it in.
In fact those are excellent guidelines for everyone wanting to write software.
Even the first, killeraps aren't created on purpose, they happen by accident.
please take care to post in correct English gstalker. It only takes a fraction of a second longer to type and saves people a lot of effort in understanding what you're trying to tell them.
and why are you using a 20 year old compiler?
thanks for trying, but his question was already answered last week.
Bluebird, what masijade means is that you could also have declared the List as follows:
ArrayList<Crules> theList=new ArrayList <Crules>();
or even better (because as a general rule you should always define variables as the most general type applicable to the operations you want to perform on them):
List<Crules> theList = new ArrayList<Crules>();
Sounds highly unlikely. I've NEVER heard of a legitimate online store that requires you to pay for the privilege of doing business there.
Easiest of course is to just try...
Why 541? 100 should be enough to store a hundred primes...
I didn't think you could overload operators like that, as you would do in other languages such as c++?
You can't.
Java doesn't feature operator overloading.
The only effective operator overloading is the built in support for string concatenation using the + sign.
Doesn't == just compare the memory address of two objects to see if its the same? So it'd only return true if the references were the same?
That is correct.
With the existence of the String object pool however and many people first encountering the operator applied to objects (rather than primitives) when trying to compare Strings they often get confused into thinking it does work to compare the content of objects.
Even with Strings though it can in fact fail, depending on how the Strings were constructed.
String s1 = "Hello World";
String s2 = "Hello World";
boolean b = s1 == s2;
will yield true because "Hello World" will be placed on the String object pool and the JVM will assign s2 to the same actual instance as s1.
String s1 = "Hello World";
String s2 = new String("Hello World");
boolean b = s1 == s2;
will yield false because here you have forced the JVM to create a new String instance on the heap when defining s2 (containing a clone of the content of s1), thus s1 and s2 don't point to the same instance on the String object pool.
And those are simple examples. In …
Are you noticing something about that poll, guys? All the people who voted for the second option, "It's alright to keep discussions in their own language forums" are people who I suspect don't even program! I don't think their votes should count .
In other words, people who don't agree with you should be ignored (or better yet censored).
Not nice Joe, not nice at all.
One of these days Dani, you will find that the web page is not wide enough to accomodate your stars.
She's probably buit the script to roll over onto the next line before that ;)
Twice so far you said it was a bad idea. I am still waiting to hear your reasoning why. I can't listen if you don't tell
Fragmentation, more work for moderators moving threads to and fro from their to places more relevant (and vv), fragmentation, lack of industry experts to answer (and ask) serious questions that would warrant a special forum (game development professionals have their own places they hang out, this place would be filled with homework questions and kids thinking they can best Unreal Tournament with something written on their own in a few days after a few weeks programming lessons at school), fragmentation, masses of questions not about game development but cheating (and general gameplay) of existing games, fragmentation.
You should never have a servlet maintain state outside of a specific HTTP session!
It's highly dangerous, unreliable, and unpredictable.
And what you're trying to do is having sessions in one web application (the SOAP stack) directly influence another web application, which is barred (and rightly so) for security reasons by every well designed application server.
You'll have to find some other way for them to communicate. Most likely that will have to be a database of some sorts.
NEVER use == to compare objects. It doesn't work.
It MIGHT work for Strings, but there's NO guarantee.
Easy way to check:
IF Java used pass by reference the following would work to swap 2 numbers:
public void swap(int a, int b) {
int c = a;
a = b;
b = c;
}
As it is that method does exactly nothing outside the method.
In C++, which has pass by reference (though it's not the default), you can do this and it works:
void swap(int& a, int& b)
{
int& c = a;
a = b;
b = c;
}
Yes, this is similar to my reply. Strings cannot be changed. Therefore to change a string you have to make a new one. You will have 2 different strings in the heap.
No, you don't understand the difference between pass by value, pass by reference, and immutable variables.
Strings are immutable but if Java employed pass by reference that wouldn't matter.
It also doesn't matter in reality where Java employs pass by value exclusively of course.
he already did. Tried to hijack 2 threads in other forums.
Are you sure it's calling the servlet constructor?
That would be really weird.
Remember that your SOAP service classes are NOT servlets (or at least not used as such by the SOAP processes) and are indeed most likely initialised one for each request.
Nothing weird about that (though a SOAP stack I guess might decide to cache them for performance reasons, at the cost of increased complexity and memory requirements).
not really. You could use JNI or some mechanism for IPC to talk to special written native services.
But I agree, Java isn't the language of choice for such things.
And the next person who wants to clear my console window is going to get it bad, it's MY console window, not his.
Okay, how about doing a PhD at the Stanford university and then working at Google ? ;)
No, not working at Google. PhD at Stanford and then working at White Sands or Los Alamos is more like it.
An operating system for windows.
My windows don't need an operating system, they're fully mechanical.
In response to the spam issue the website itself offers a package where it will deliver your chosen message to its many hundreds of thousand of members, however I cannot afford this and was looking for a way around it.
What site is that? Just to make sure I avoid them like the plague.
Tomcat has its own log4J configuration that overrides your own.
Append your own config to that one.
read some Unix tutorials.
This has nothing to do with Java per se, but core operating system knowledge.
and PTerry still visits usenet. He's an irregular (due to his schedule) regular in afp.
but your movedTextArea isn't a JTextArea according to the rest of the code you posted...
It has a JTextArea as a datafield, but that's it.
1. Work for more than a week on a personal (unpaid) project, during all waking hours.
That would be 24/7 for several days on end...
2. Gain a more than unhealthy addiction to coffee, and a vampiric aversion to daylight and human contact (ok, maybe I'm not so proud of that one)
all except the coffee, can't stand the stuff.
3. Use Linux more than Windows
Some days, especially if you count other OSs... Linux isn't geeky, it's nerdy.
Solaris, AIX, and Guardian are geeky (especially Guardian as hardly anyone has heard of it who hasn't used it).
4. Use two computers at the same time
Only 2?
5. Expect everyone else to, naturally, know what you're talking about
6. Run a localhost webserver to save FTPing time
7. Write a programming language
8. And use it
9. Have more friends that are programming languages/concepts than people
10. Try to conform to W3C guidelines
Try?
11. If the wheel isn't rolling, reinvent it
12. Work as a programmer
For the last decade...
13. Dream a computer program
14. Start a list of "Geeky things to do before you die"
And some 'geeky' things to do, until you die:
1. Learn something everyday.
2. Don't listen to anyone who thinks they know better than you
3. Listen to people who do know better than you
4. Don't expect everyone to be interested …
I've been there, but that's over 25 years ago. Things have probably changed a bit by now :)
got mine from wikipedia. They've links to some nice mp3 and midi files for famous tunes like God Save the Queen and Rule Britania.
Says who?
For all you know it's already run by a bunch of wombats...
From usenet (news:alt.fan.pratchett) harvested today:
> >> > > > I'm not really sure whether Wombats are any good.
> >> >
> >> > I dunno - maybe if we send England out with wombats insetad of cricket
> >> > bats, they might score more runs?
> >>
> >> If they play wom, perhaps.
> >
> > I'm game. We lose to the Aussies at everything else, maybe we can win
> > at wom.
> >
> > Rules of Wom:
> >
> > 1. Australians are not allowed to win.
> > 2. There are no other rules.
> >
> > That should sort it.
>
> And in other news, the Australians have taken the 2006 World Wom
> Championship title, by cleverly exploiting a loophole in the rules.
>
> The Aussies reasoned that, if there were no other rules except that
> Australians are not allowed to win, then there can't be a rule against
> cheating, and therefore cheating is allowed. They therefore cheated
> *legally* by breaking Rule 1, and ipso facto became champions.
>
> > Why would a Wombat want to live in England
>
> Actually, there /are/ wombats in England, but …
Those are not Java commands.
You create a JTextArea but you don't add it to anything.
As a result it's never displayed.
Setting visible to true isn't going to do it, you need to add the actual JTextArea component to a container (like a JPanel).
Never heard of any database returning error "cords", but if you mean error CODES the database documentation will tell you what each means (if it's good, if not find a good book about your specific database engine).
Normally you hardly need to worry about the exact codes as all of them mean something bad happened and your database operation failed :)
But they can help pinpoint the actual problem during development and having a reference can help a lot at times.
without knowing what you're trying to do it's kinda hard to give you hints on how to do it.
well, you're not using the official JDK there.
Check your $PATH and $JAVA_HOME environment settings and make sure they point to your JDK installation.
As it is you're pointing to gcj which is to put it bluntly a disaster, I'm surprised you got anything to compile and/or run under it at all.
args.length is the length of the array of commandline arguments.
If you don't pass any arguments that length will be 0 ;)
Not just is spamming illegal and immoral, it's also a violation of the terms of service of pretty much any website.
And so is using automated scripts to post messages and annoy users with private messages.