jwenting 1,905 duckman Team Colleague

Anyone using a Razor Mouse? I am using a logitech one. I don't really see a point in paying more for a mouse unless you are a hardcore gamer. lol

A good mouse (as in, good ergonomics) is vital for those working with computers for long periods. It can prevent or at least delay the onset of repetitive strain injuries related to mouse use, which is more precious than spending an extra 50 or even 100 Euro on your input devices.

Which is why I at work have a 100 Euro touchpad and a 200 Euro keyboard, at home using a 100 Euro mouse and 80 Euro keyboard.
That they're great for gaming as well is a nice side effect, not the primary purpose I have them.

And for flight simulators, a 300 Euro joystick and some 1000 Euro in other hardware :)

jwenting 1,905 duckman Team Colleague

without the software, the hardware is useless. And MacOS is indeed useless for the purpose he mentions.

The only reason I'd consider a Mac Mini is when my print/file server dies, as it is quiet, small, and doesn't use a lot of power so I can just stuff it in a cupboard somewhere and forget about it for 3 years.
But I'm more likely to buy a similarly priced micro-PC running Linux or Windows for the purpose, or use an old laptop or netbook I've sitting idle.

jwenting 1,905 duckman Team Colleague

you fail. May be the correct answers (I've not checked) but if you don't know why you don't know enough to pass the exam (if it's a proper exam) and in fact deserve to fail at it.

jwenting 1,905 duckman Team Colleague

That is for lazy idiots that cannot bother to read link from documentation. If you can't be bothered now, what will you do latter when you must read stuff???

post a thread here asking for videos to show what he needs to do?

jwenting 1,905 duckman Team Colleague

requirement #1 would be a fully functional brain.

jwenting 1,905 duckman Team Colleague

A colleague of mine points out that while technology isn't to blame for the rioting it is to blame for the shops being set ablaze. Apparently the looters are making sure that no CCTV evidence of their illegal activity is being left behind.

used to be they'd just steal the cameras and VCRs as well...

jwenting 1,905 duckman Team Colleague

most people are quite correct in their assumption of not needing a 400+ Euro/Pound device that can at current do little more than function as a device for delivering streaming media and electronic books.

Looking at the Android app store, the bulk of "apps" are gimmicks or silly little games, much of the rest adaptations of desktop software.

Unless you're on the move a lot, need a computer while on the move, can find an "app" that has the functionality you need, and consider a laptop too cumbersome because of its size and weight while at the same time accepting the more cumbersome user interface of a tablet, you're probably better off with a laptop or even desktop system.
There's a small subset of users who can benefit from the tablet ability to store large amounts of reference documents, but that's not the main target market, mainly consisting of people working in consultancy who'd otherwise have to carry many pounds of books with them every day.

So what's needed is for either the available software to become much more appealing, offer real functionality that benefits greatly from the device form factor, and/or a far lower price point.
I don't see the latter happening soon, given that margins on device sales are relatively low as is.
The former will need someone to come up with a true "killer app", and another video player won't do it (if I knew what it could be I'd make …

jwenting 1,905 duckman Team Colleague

Just read the number as a String, give an error if the length of the String is too long.
Also give an error if the input can't be interpreted as an integer.

The standard library has methods to test both conditions.

jwenting 1,905 duckman Team Colleague

captcha has long ago been cracked and is no longer reliable. At most it provides a very minor speedbump to amateurs, but it can do nothing to stop these concerted attacks.

Indeed the only way to do it is to require posts to be pre-approved by moderators, which is simply not an option for high volume sites like Daniweb (though a system of community moderation, where people with say 1000 posts and at least 2 years' membership can see such posts and get an "approve" button could possibly work to at least get the bulk approved).

Switching to openID for account management might be an option, but merging existing accounts will be a major pain (and openID isn't perfect by far, I've several times lost accounts there when they once again did something to their systems, and unable to either recreate them with the same name or recover them by any means, so apparently the name is still claimed but can no longer be accessed, thank providence for a personal domain and being able to create email addresses on the fly).

jwenting 1,905 duckman Team Colleague

is it still open in a debugger somewhere maybe?

jwenting 1,905 duckman Team Colleague

no, if you want it cheap you have to sacrifice quality, accept longer and more frequent downtime, less performance, things like that.

jwenting 1,905 duckman Team Colleague

start with learning English, it'll serve you a lot better than any scripting language...

After that, give up on the idea of wanting one that's as close as possible to C++, as that's utterly irrelevant in selecting your tools of the trade.

jwenting 1,905 duckman Team Colleague

being away from home for 10-15 hours a day for work (mostly) doesn't allow me to have pets.
Maybe when I retire, if I live that long...

jwenting 1,905 duckman Team Colleague

If only every employer was like you jwenting. Expecting an intern to know as much as possible about the job role would be mostly sought after by employers anyway.

it would be nice if he knew something of value, but I'd not expect it. At least when I went for internships there were no technical interviews, at most a meeting with the people I'd be working with to see if the project appealed to me and there were no obvious personality conflicts. But most of them were handled by the university publishing a list of available positions and students sending the coordinator a note listing three preferences, after which everyone would be assigned one project based on preferences and first come/first serve basis.
Then again, most of the companies involved had been dealing with the uni for years or decades and just submitted one or more internship positions each year, trusting the student coordinators to fill the positions in the best way possible.

jwenting 1,905 duckman Team Colleague

bandwidth, power, failover, 24/7 monitoring, all costs money. That's a big part of any hosting contract, do you have the expertise to do all that yourself?

Java hosting is generally expensive because it tends to start with the moderately high-end packages which are aimed at businesses that need high performance, storage, and uptime guarantees.
To create those yourself will cost you something similar.
If you're happy with lower specs, hosting a JBoss server and a mySQL (or some other open source dbms) somewhere can be done cheaper, but of course your bandwidth and uptime will suffer.

jwenting 1,905 duckman Team Colleague

Java is where it's at, if you're a headhunter contracting to find developers for the enterprise systems of major corporations (which is where most headhunters place their candidates).

jwenting 1,905 duckman Team Colleague

and don't forget the liability if your program gets used and because of a bug in it there's a multimillion dollar loss at (or worse, claim against) the bank using it (not that it will be authorised for use at that bank when brought in by an employee who just got it from their boyfriend, rather than when introduced by the IT department after being contracted to a trusted and vetted professional development team).

jwenting 1,905 duckman Team Colleague

of course, I stated what would be needed to do what he wants to do, never mind if he's actually capable of doing it :)

When you set unrealistic requirements, expect solutions that require resources beyond what you had imagined.

jwenting 1,905 duckman Team Colleague

why don't you just call CreateProcess() in a loop and call it 10 times?

well, that would introduce a time delay between the instances and the requirement is that they all run at the same time :)

AFAIK the only way to do that is to, in each of 10 CPUs, create a trigger that launches a process on that CPU when the trigger fires and then to hope that all those triggers indeed fire at the exact same microsecond.

jwenting 1,905 duckman Team Colleague

you should indeed always take the hardware vendor into consideration. I'm sticking with the big ones for that reason. Nokia, Samsung, HTC, maybe one or two others.

With fragile I mean mostly that were the single source to disappear, the platform disappears, not that any source may disappear or create a shoddy product.
Were e.g. Samsung to leave the mobile phone market, Android would go on.
Were Apple to do the same, iOS would disappear.

jwenting 1,905 duckman Team Colleague

without knowing what the errors are (I'm not going to try it myself), here's some things that are immediately clear:
- you're missing several #include directives, starting with iomanip and istream.
- you're comparing the array choice with the character 'y' (this might implicitly work, but is very nasty programming style).
- you have semicolons terminating your if and else statements. This is almost always incorrect.

jwenting 1,905 duckman Team Colleague

that error means the linker cannot find some or all of the libraries it needs to do its job, you'll need to check your compiler/linker documentation and installation to figure out how to make those known.

jwenting 1,905 duckman Team Colleague

impossible to answer. Until the release of Android 2.1 noone thought Symbian would disappear as quickly as it has. The same could happen to both iOS and Android in an instant.

That said, Android is far less dependent on a single source for both hardware and software, so is theoretically less fragile than is iOS.
But the iPhone relies heavily for its popularity on the brand image of Apple, many people buying it not because it's "better" or even better suited for their purpose, but solely because it's there. Such almost religious devotion can be hard to beat, but when it does get beat it tends to disappear almost instantly (Apple has been able to keep their almost religiously devout followers for a few decades now).

jwenting 1,905 duckman Team Colleague

as you're having a requirement for scalability, php becomes a poor choice (it's generally less (easily) scalable and maintainable than other technologies).
Of course it all depends on how scalable it needs to be, both JEE and ASPx are designed for scaling into the near unlimited requests per second :)

Apart from that, much IMO depends on the available hosting environments, existing knowledge with the customer, and things like that far more than which is "better" as both can be used to create much the same things with similar effort.
Given free choice I'd employ JEE because I'm far more familiar with that than with .NET, but that's not related to technical issues but personal expertise.

That said, JEE hosting tends to be more expensive, with ASP development requiring more expensive tooling.
The tooling is your cost, the hosting that of your customers.

jwenting 1,905 duckman Team Colleague

knowing more Ruby than Python, it'd be my initial choice. But I'd use Python if I knew it to be more appropriate for the job at hand.

jwenting 1,905 duckman Team Colleague

remember he's going for an internship. An intern is expected to know nothing whatsoever of any value, and anything he does know is expected to be wrong :)

I'd not ask an intern candidate many technical questions for that reason alone, I'd expect him to want the position in order to learn that technology, not to already know it.
So I'd quiz him about his ability and willingness to learn, to do things outside of his current comfort zone (iow, pick up activities he knows little or nothing about that need to be done), things like that.

jwenting 1,905 duckman Team Colleague

the code sirlink pasted does NOT conform to the standard Java coding style guidelines as published by Sun.
That of course does not mean they may not be applicable for some situations where the person determining what style to use has decided to use that specific pattern...

jwenting 1,905 duckman Team Colleague

javascript != Java

jwenting 1,905 duckman Team Colleague

and println will not print \n on most operating systems (it will print either \n, \r, \r\n, or \n\r on most depending on system definitions).

JeffGrigg commented: Now that is a correct answer. ;-> +7
jwenting 1,905 duckman Team Colleague

World of WarCraft: Mists of Pandaria and DOTA 2 coming out next year, I can't wait to get my hands on them.

yah, MoP looks like it'll be fun, though I hope it's bigger than Cataclysm (which suffers from being a bit small for the time it needs to satisfy users).

jwenting 1,905 duckman Team Colleague

just renewed my WoW and Ryzom accounts for another year. Got tired of waiting for the constantly delayed Tera.
Might reinstall Flight Simulator X and give that a whirl again if I want a complete change of scenery, or try to get Total Annihillation working under Windows 7. Nothing else has ever held my interest for very long except maybe Eye of the Beholder (and I'm not even going to try getting that dynosaur to work under anything approaching a modern operating system).

jwenting 1,905 duckman Team Colleague

Skip all even numbers. That will cut your loop in half: for(i=3;i<=root;i+=2)

And skip any number higher than the square root of the number being tested as well.
Can't remember what the proof of that is, but it works :)

Of course for small values of n, calculating n/y for all y<n might be faster than calculating sqrt(n).

jwenting 1,905 duckman Team Colleague

Bull! 2A has nothing to do with protection against the government itself.

WRONG! That's exactly that it's meant for, as written... To be able to rise up against oppression, the way the colonies rose up against the British oppression.

jwenting 1,905 duckman Team Colleague

And the point is? Don't just link something with no explanation. We all know what the Oklahoma City bombing was. Presumably the point was to find a bomb that did go off and killed more than 127 people. Noted.

no, the point (utterly lost on you, as predicted no doubt) is to show that anything can be turned into a weapon to kill people.
Here a rental truck, a few sacks of fertiliser, a few cans of petrol, and a plastic (probably) drum were used to create a car bomb.

According to your logic all those should therefore be banned.

jwenting 1,905 duckman Team Colleague

I am on the other side of the fence. Soon we won't be using keyboards and commands won't be but buttons, drop down menus and stuff like that.

That "we" won't be all computer users, far from it. Many things professionals do every day are just a lot faster using a commandline, and always will be.
And for professionals, that speed counts.

jwenting 1,905 duckman Team Colleague

good conclusion, which says it all: infection RATE is far higher in Asia than it is elsewhere, the high US and Euro figures are in no small part because of the far larger number of connected systems in those areas.

That's why the ROK's place in the system is far more worrying than the US's place. With maybe 20% the computers they're pumping out almost the same amount of spam per day.

jwenting 1,905 duckman Team Colleague

wtf?!?! what do you need a machine gun for?

By the definition of the anti-2nd ammendment crowd, ANY semi-automatic weapon and most anything that's not a muzzle loader is a "machine gun".
Fully automatic weapons are already banned nationwide (or almost), which is in itself probably a violation of the 2nd ammendment.

And yes, it's quite possible to NEED a fully automatic weapon.
The 2nd ammendment exists in part to allow the citizenry to defend themselves against an oppressive government trying to take away their constitutional rights, that citizenry will need weapons of similar power to those posessed by the government to successfully do so, which includes automatic weapons.

You won't see most people who are in posession of heavy weaponry (M16s, AKs, FALs, etc.) walk around town with them unless maybe they're on the way to a gunnery range or gunsmith (and they'll have them in cases or bags when they do), so don't try to sidetrack the issue which is sidearms, meaning pistols and revolvers.

Banning those by law from any public or private place is a violation of the 2nd ammendment, a violation of the basic rights of residents of the United States.
It also invites crime, especially shooting sprees, as people intent on killing others will know their intended victims will be unable to defend themselves.
This, not having guns in the hands of law abiding residents, is what causes high school shootings (and similar shootings elsewhere).
The …

pseudorandom21 commented: Thank goodness people argue things I'm too lazy to myself. +0
jwenting 1,905 duckman Team Colleague

more complete explanation:
"String" will refer to a String constant on the String constant pool.
" String " refers to another String constant on the String constant pool.
" String ".trim() refers to a String instance on the heap.

The left and right operand of your comparison then are two different String instances. The == operator compares whether two object instances refer to the same instance, not whether they have a content identity (iow, whether two object instances are identical on a field comparison).
the equals() member method (as indicated in the previous answer) does that.

== will work for low Number instances referring to Integers and Longs because it has been specifically overridden for that purpose, but that's an exception to a very strict rule.

jwenting 1,905 duckman Team Colleague

done ranting yet? I hope your "long paper" is more coherent than is this post, as I can't make heads or tails out of it.
And oh, you're wrong.

jwenting 1,905 duckman Team Colleague

define "not work"... We're not going to guess.

jwenting 1,905 duckman Team Colleague

<br> is bad, <br/> is fine if used appropriately...
And yes, we care a lot about bad code. In fact I've done some research work in order to allow us to get rid of some of the generated html because a major customer was complaining that the generated code doesn't confirm to their requirements for html that they apply to their public websites.

jwenting 1,905 duckman Team Colleague

professionally? 1997.
As a student? 1990.
As a hobby? 1985 or so, give or take a year (never seen a computer before that time, some of the first things I did on it was create a custom menu system to replace the box full of commands to start common programs).

jwenting 1,905 duckman Team Colleague

still waiting for that final year project name generator...

jwenting 1,905 duckman Team Colleague

So You are telling me to create a separate class for student file ?

no, he's telling you to not blindly serialise objects at all.
Instead define a well documented file format containing the fields you want in the order you want, and create readers and writers for that format producing and consuming instances of the class (methods that may or may not be members of the class).

jwenting 1,905 duckman Team Colleague

I just put in a purchase order with our IT department and they get it all for me :)

jwenting 1,905 duckman Team Colleague

"A system for allowing lazy kids with their heads in the cloud to generate project titles using their mobile devices"

jwenting 1,905 duckman Team Colleague

no code tags, no question, assuming you're more important than anyone else and can boss us around.

FAIL

jwenting 1,905 duckman Team Colleague

C# is designed for the college crowd so they can learn enough about programming to be able to move up to C++ ..

wrong, it was designed for corporate developers so they can produce applications more quickly than using C++ that outperform those written in VB (which also has a very bad reputation among professionals so many won't touch it with a 10ft pole).

jwenting 1,905 duckman Team Colleague

What is wrong with u man? I m not going to hack any one.... I just want to know the programming language.... Love you :)

you're asking us to give you information that can be used to break the law in a public forum.
Even if you yourself aren't going to do so (and we only have your word as to that), someone else will and you will have implicated us in crimes.

At least over here, helping someone plan or commit a crime is a crime in itself.

jwenting 1,905 duckman Team Colleague

Everyone gave up on Java ME, and moved on to the Dalvik VM on Android.

The necessity for JME pretty much evaporated on the mobile phone market as phones got more powerful to the point where they can now run full JSE virtual machines, not because Google came out with Android.

There's still a niche market for JME on things like pagers and smartcards.