jwenting 1,905 duckman Team Colleague

I massively enjoyed Police Squad. Love shows where they so clearly have fun poking fun at themselves and everything silly in TV land...

jwenting 1,905 duckman Team Colleague

now why did I read that as "voodoo chili" and my mouth started watering :)

jwenting 1,905 duckman Team Colleague

All but the first and last lines are irrelevant to the question, actually. Apart from some implementation details the question has a universal answer that's applicable to all systems.

jwenting 1,905 duckman Team Colleague

state machine, collision detection/avoidance algorithms, simple pathfinding algorithm. Don't think you need much more (but you'll have your hands full on those).

jwenting 1,905 duckman Team Colleague

does it work? Does it do what you want it to do? If not, fix it so it does do what it's supposed to do.

jwenting 1,905 duckman Team Colleague

the only way to get that information is by installing a keylogger on the victim's computer. And we're NOT going to help you spy on people.

jwenting 1,905 duckman Team Colleague

@Hericles there's little practical difference between the two. Freelancers tend to do contract work, same stuff as people working for contracting firms and placed with a customer but with the added stress of wondering where the next pay check is coming from if the contract ends before there's a new one lined up.

jwenting 1,905 duckman Team Colleague

hmm, most freelancers I've come across sit in an office in some customer's building 10+ hours a day, working harder than anyone else, for less pay than the employees, billing 8 hours at most, and just hoping that their contract will be extended...
Extreme stress, little reward.

jwenting 1,905 duckman Team Colleague

ok, and what is it supposed to do?
We're not going to do your thinking for you, remember.

jwenting 1,905 duckman Team Colleague

open google, find local library, ask about books on ocr, read books, win?

jwenting 1,905 duckman Team Colleague

and the basics include learning how to read and interpret messages from the compiler.

jwenting 1,905 duckman Team Colleague

but only if the doughnut place has free delivery...

jwenting 1,905 duckman Team Colleague

what does it do?
what do you expect it to do?
why do you expect it to do that?
what have you tried to find out why it's not doing what you expect it to do?

jwenting 1,905 duckman Team Colleague

yes, he's got no clue what he's trying to do. He's just taken a bunch of buzzwords, strung them together, and now expects us to magically make it all work so he can turn it in as his own work.

jwenting 1,905 duckman Team Colleague

shouldn't take you more than 10 minutes or so. In fact signing up for an account here, dumping your assignment, and twiddling your thumbs waiting for someone to do it for you is going to take longer than telling your teacher you're too lazy to do it yourself and please give you a failing grade.

jwenting 1,905 duckman Team Colleague

So you've taken a whole bunch of buzzwords and just strung them together without knowing what they mean, and now want us to tell you what you've thought up?
Good start for your project...

jwenting 1,905 duckman Team Colleague

You assume that all of the cops just sit at the station waiting for calls. That is not the case. They each have areas that are regularly patrolled.

yes, the coffee machine, the cafetaria, the toilet...

jwenting 1,905 duckman Team Colleague

head first servlets and jsp.

hmm, is that book still relevant? Thought it'd be rather out of date by now, what with JSP fragments, JSF, etc. etc.

jwenting 1,905 duckman Team Colleague

There can be a good reason to use an older version, and that's that everyone else on your team uses that specific version.
Project files often aren't compatible between versions, and neither are plugins, so you may be stuck on an older versions.

jwenting 1,905 duckman Team Colleague

good luck

jwenting 1,905 duckman Team Colleague

what to put there? There you put code to analyse the line and do something with whatever you find there.

jwenting 1,905 duckman Team Colleague

Take a look at XSLT, that's exactly what it's designed for.
There should be a C++ library for it, for example http://xalan.apache.org/xalan-c/ (though it's older) and some C++ systems no doubt come with XSLT processors built in (like Visual Studio).

jwenting 1,905 duckman Team Colleague

if he's like all other homework kiddos he is now waiting for someone to give him a document with a fully worked out solution where he just has to put in his own name as the author...

jwenting 1,905 duckman Team Colleague

flowchart? Didn't we replace those with interaction diagrams and things like that 20 years ago?

jwenting 1,905 duckman Team Colleague

sorry, we've no need for another janitor right now.

jwenting 1,905 duckman Team Colleague

no such thing as "senior" or "junior" years here when I was in school. Just a mild hazing of the new kids on the first few days of the school year (independent of age, always got some transfering from other schools) and after that it was all hands defend the fort together against the other school 2 blocks away (who were not averse to mild (or not so mild) vandalism, including turning over the cars of our teachers, throwing rocks at our windows, and things like that).
That went on (and got worse) for years until the school boards of both schools got together and locked the fences during recess to prevent groups of pupils from making way for the enemy stronghold (oops, school).

jwenting 1,905 duckman Team Colleague

Actually NullPointerException (NPE) is not always an easy error to resolve because the cause could happen somewhere else in the code before it hits the NPE.

true, but on the line pointed to by the npe there's only one thing that can ever be null, so it's trivial to guard against it.
And then of course the real work is figuring out whether that thing should ever be expected to be null (and it almost certainly should here, given what it is).

So yeah, it's a trivial example of an NPE and how to deal with one.

jwenting 1,905 duckman Team Colleague

don't spread misinformation, melissad. Android is based on Java, true.
But iOS apps are written in Objective-C, and Windows Phone apps in C#.
Symbian was also based on Java, but that one's nearly dead. Blackberry I'm not sure what they use, but they're ever more a fringe market also, even in the corporate universe.

jwenting 1,905 duckman Team Colleague

There's many entry level jobs out there for C++ programmers, but you're not going to get any job knowing just programming, no matter what the language.

The era of mindless code monkeys is long over.

jwenting 1,905 duckman Team Colleague

read the line, read the error.
Based on the error, figure out what's wrong with the line, it's trivially easy and obvious.

jwenting 1,905 duckman Team Colleague

if you willingly spill your life on some website, you need to be delusional to expect that nobody will ever see that information...
Even if there's "protection" so "only friends can see it" what's to stop someone from "retweeting" that information? Or from an error causing it to be spilled? Or from some tech support person from taking a look at it (most likely not even because they're snooping, but because they're trying to analyse a problem and your data comes up as a possible cause or symptom of the problem)?

If you're so narcissist that you're spilling your life on facebook or twitter, you should be happy that everyone knows all about you, that's what those sites are for after all...

jwenting 1,905 duckman Team Colleague

true, but it's old code being expanded, not new systems being created.
And all too often what you're asked to do is prepare your system for more easy screen scraping so the data can be exposed to some newfangled web based system (or to add a webservice layer on top of it).

jwenting 1,905 duckman Team Colleague

so you're willing to spend a lot of time and money to learn to use something that the world has long since stopped using?
And what then, are you going to lie through your teeth claiming to know modern C++ when in fact you don't?

Yes, walk out of that course and demand your money back, and make sure they know why. You're being robbed of a decent education.

jwenting 1,905 duckman Team Colleague

cout << "*143#" << endl;

jwenting 1,905 duckman Team Colleague

And then there's the cost factor. I've seen major corporations and government departments insisting we use Access because they already have it as part of their MS Office licenses and they don't want to invest in MS SQLServer or Oracle licenses.

In an extreme case that led to us being contracted to create a CRM system for a 1600 person government department using MS Access as a database, a system that would have an estimated 100 simultaneous users. Of course the development and maintenance of that in the end would cost more than that Oracle license, but maintenance funding is a different bucket of money, different budget item, and would be easier to acquire than the one time amount to purchase that Oracle license (or whatever other real database engine they'd need an extra license for, they had several already, so additional support cost was not an issue).

It's sometimes easier to get a million dollars of funding spread out over 10 years authorised than 10k of funding on another ticket that's budgeted to some other department...

jwenting 1,905 duckman Team Colleague

same as any other, except you get it out of the array first.
If you don't know how to, learn about arrays...

jwenting 1,905 duckman Team Colleague

no, we're just robots programmed to bitch to kids like you who're too lazy to do their own homework.

Assembly Guy commented: Heh. +5
jwenting 1,905 duckman Team Colleague

why don't you try to come up with an algorithm to compose Roman numerals from Arabic numerals?
It's not that hard...

And oh, don't use Turbo C++, it's 30 years old by now, not supported on any operating system from the last 20 years or so.
It's a dinosaur, nice to have for collectors of curiosa, not for people interested in writing modern C++ (which it won't support, its syntax and command set are archaic).

jwenting 1,905 duckman Team Colleague

the bridge driver was NEVER a good option for anything except the most basic of experiments. It was NEVER intended to be used in production code or anything beyond a proof of concept (which it was itself, a proof of concept).
It's also been unmaintained for a decade or more.

So not having it is great, it forces you to think and use something better...

~s.o.s~ commented: Agreed +15
jwenting 1,905 duckman Team Colleague

in fact, you're often better off with a job that pays a bit less but has a lot less stress. Far better for your health (both mental and physical) and thus your future.
Don't want to end up burned out and on a disability pension (or worse, social security) because you find it impossible to work the ratrace under the incredible pressure of the "top job" with the "big name" company you thought was such a dream come true.

jwenting 1,905 duckman Team Colleague

CD/DVD marker works just fine :)

jwenting 1,905 duckman Team Colleague

you set your sights pretty high and narrow. Unless you're far better than most people (and you almost certainly aren't) you can forget about being hired by those companies.

Just look at the job openings on Monster and other career sites, contact some recruiters, send out resumes, and see what you can get locally.
Forget about being hired by the likes of Google and Amazon, ain't gonna happen if you have to ask what you're asking.

jwenting 1,905 duckman Team Colleague

hmm, Disney Star Wars... Hannah Montana meets a tribe of dancing Jar Jar Binks and they sing Kumbaya together while the planet explodes around them, only to be saved at the last second by Han Solo flying by in a shining white space ship that runs on moonbeams and leaves a rainbow trail as it goes into hyperspace.

jwenting 1,905 duckman Team Colleague

well, he hijacked his own thread within hours of creating it :)

jwenting 1,905 duckman Team Colleague

and scraping bank websites is NOT a good idea, you're almost certainly in violating of the bank's TOS if you do it.
And of course you'd need to fool your customers to allow your blatantly insecure app to log in using their real login details for the bank's website, NOT a smart idea.

jwenting 1,905 duckman Team Colleague

it's "plz hlp mi". Be sure to get your question title right next time.

jwenting 1,905 duckman Team Colleague

if you can't write the second program, you're never going to even get close to writing forum software, it's far more complicated (and yes, I've done both).

jwenting 1,905 duckman Team Colleague

NULL is a real value in SQL, hence it gets exported as a real value.
If you want it replaced with something else, adjust the method that writes the output to do the replacement...

jwenting 1,905 duckman Team Colleague

it's a 20 year old 16 bit DOS only compiler and library, why do you even assume it's going to work under Windows, let alone a modern version of Windows, which are all 64 bit (or 32 bit at worst)?

jwenting 1,905 duckman Team Colleague
  • load file
  • count occurance of each word
  • repeat for all files
  • win