jwenting 1,905 duckman Team Colleague

Well im getting desperate. I'm in class right now and have to finish an assignment by the end of class which is an hour and 45 minutes away. If anyone happens to see this post please help. Ive got another assignment i need to finish and here it is:

Maybe if you paid attention in class and actually worked on your assignments instead of browsing the web you would get somewhere yourself and your teacher would be happy to help you...

jwenting 1,905 duckman Team Colleague

what's so funny?

If you want funny, open up the text screensaver in NT and type "not evil" as the text. You'll get a rotating list of all the development team. I think it works in Win95 as well.
Another easter egg in the same screensaver is a list of favourite beers of the team when you type in "beer".

jwenting 1,905 duckman Team Colleague

read the old file, record for record.
Write all records to the tempfile, except the one(s) you want to delete.
Remove the old file.
Copy the tempfile completely to a new file with the same name as the old one.
Remove the tempfile.

jwenting 1,905 duckman Team Colleague

As to a copy of a prerecorded DVD not working, there's nothing mysterious in that.
You're not supposed to copy them and many have all kinds of protection systems including data contained in tracks that can be read by computer players but not written to (thus effectively given the prerecorded DVD a greater capacity than the blank one), realtime compression (which again you can't usually do with your own writer to the same effect), etc. etc..

jwenting 1,905 duckman Team Colleague

you're not thinking!
What does i=0 do?
So what happens when you do if (i=0) ?
And indeed what is the result if if (i=0) ?

some hints:
assignment, false

jwenting 1,905 duckman Team Colleague

no, it's a DOS extension from Borland. I've no clue about what the Microsoft equivalent was, would be part of Microsoft C 1.5 or so.

jwenting 1,905 duckman Team Colleague

what does " if (i=0) " do?

think about that, there's an error on that line

jwenting 1,905 duckman Team Colleague

0000000000111001 Let's get this thing into 16 bit :)

jwenting 1,905 duckman Team Colleague

There are as many GUI libraries as there are compilers (and probably even more).

jwenting 1,905 duckman Team Colleague

So? Fill the properties object properly and set the correct name and path for the file...
Nothing mysterious about that...

jwenting 1,905 duckman Team Colleague

Well, clientside Java does exist but not in this context.
Think applets, desktop applications, etc. but not Javascript (which this is).

Of course a clientside serverfile I find weird indeed ;)

jwenting 1,905 duckman Team Colleague

Rebuild your entire project. It looks like you changed the sources it depends on but it still has old versions of those classes cached. A full rebuild should fix that.

jwenting 1,905 duckman Team Colleague

notifyAll will put all waiting threads in runnable mode, notify just one.
The thread scheduler then picks one thread from the pool of runnable threads (which may or may not be one of the threads woken up by notify(all) as the next thread to run.

You see, notify(all) doesn't actually make the thread run, it just makes sure it CAN run.

jwenting 1,905 duckman Team Colleague

Create a JPanel with a GridLayout with 2 columns and as many rows as you have inputfields.
Put the JLabels in the left column, the JTextFields in the right column.
They are now lined up perfectly.

What isn't the write funtion doing? And what do you expect it to do?

jwenting 1,905 duckman Team Colleague

You may want to pick up some practical experience using the language first.
This doesn't of course have to be as a professional, you could join an open source project or make something for personal use (maybe together with some friends, study mates).

A few years back certification might have landed you a job. At current companies look for practical experience first of all (certification might still get your CV noticed among a mountain of them but no more).

jwenting 1,905 duckman Team Colleague

Sure, and that's exactly how you should do it:

Create a textfile on disk.
Read in the file in your program. C(++) has full facilities for reading and writing any kind of file built right into the core language.

jwenting 1,905 duckman Team Colleague
jwenting 1,905 duckman Team Colleague

Matrix manipulation is slightly more involved than that :)

Translation is usually simple, rotation is somewhat more complicated.

jwenting 1,905 duckman Team Colleague

I posted that link at the same time you were posting your code it seems...

What's so hard about using loops and conditionals?
Your courseware should have ample examples about them, and so does any programming book.

jwenting 1,905 duckman Team Colleague

From another forum, posted there by a moderator when someone complained noone made him moderator (and did so in English better than yours and with a far less condescending attitude):

At JavaRanch, we're passionate about helping people learn about Java. We want to help people learn to be good developers. Part of that is encouraging excellent communications skills. Programmers need to be able to communicate well with customers and other team members, write good documentation, and of course write clean, well-commented code. They must understand and be able to follow conventions. They must not be so lazy that they'll use identifiers like pmtempcnt instead of permanentEmployeeCount to save themselves a bit of typing.

If I (or I daresay anyone else who runs successful software projects) get an email saying "Pls lk at my rsm. Cn I hv a jb? (Y/N)", my answer -- if I even bother to send an answer -- will be "N", without even opening the attachment. And if there are smilies, you can bet I won't even send that.

So by encouraging people to to learn to communicate clearly, we're helping people to advance in their chosen profession. Thanks for understanding, and we hope you'll continue to contribute to our community.

Sums up quite well why you should practice the correct use of the language.

jwenting 1,905 duckman Team Colleague
jwenting 1,905 duckman Team Colleague

What errors are you getting?
Most likely you either have some configuration problems (path settings, compiler flags) in VC++ or you have been using libraries that are specific to GCC and therefore unavailable to VC++.

jwenting 1,905 duckman Team Colleague

there's a function to do just that in the standard library by the name of atoi (ASCII to Integer).

jwenting 1,905 duckman Team Colleague

You might want to get rid of Realplayer though. It's a known host for spyware.

jwenting 1,905 duckman Team Colleague

New installation? If so you may have connected it wrong.

jwenting 1,905 duckman Team Colleague

And so I'm wondering what it feels like to have a virus/spyware/adware free computer because I can't seem to shake this thing.

It feels pretty good, but I've gotten so used to it over the years I hardly notice anymore.

now if you want to know what a clean log looks like :cheesy: :


Logfile of HijackThis v1.98.2
Scan saved at 11:47:19, on 13/12/2004
Platform: Windows XP SP2 (WinNT 5.01.2600)
MSIE: Internet Explorer v6.00 SP2 (6.00.2900.2180)

Running processes:
C:\WINDOWS\System32\smss.exe
C:\WINDOWS\system32\winlogon.exe
C:\WINDOWS\system32\services.exe
C:\WINDOWS\system32\lsass.exe
C:\WINDOWS\system32\svchost.exe
C:\WINDOWS\System32\svchost.exe
C:\WINDOWS\system32\spoolsv.exe
C:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus for Workstation 5\kavmm.exe
C:\WINDOWS\Explorer.EXE
C:\Program Files\Common Files\Microsoft Shared\VS7Debug\mdm.exe
C:\WINDOWS\System32\hkcmd.exe
C:\Program Files\Analog Devices\SoundMAX\Smtray.exe
C:\Program Files\Logitech\iTouch\iTouch.exe
C:\PROGRA~1\BILLPS~1\WINPAT~1\WinPatrol.exe
C:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus for Workstation 5\kwsprod.exe
C:\Program Files\Analog Devices\SoundMAX\SMAgent.exe
C:\Program Files\Microsoft ActiveSync\WCESCOMM.EXE
C:\Program Files\Kaspersky Lab\NetworkAgent\klnagent.exe
C:\WINDOWS\system32\taskmgr.exe
C:\Program Files\Internet Explorer\iexplore.exe
C:\tmp\HijackThis.exe

R1 - HKCU\Software\Microsoft\Internet Explorer\Main,Search Page = http://www.microsoft.com/isapi/redir.dll?prd=ie&ar=iesearch
R1 - HKLM\Software\Microsoft\Internet Explorer\Main,Default_Page_URL = http://www.microsoft.com/isapi/redir.dll?prd=ie&pver=6&ar=msnhome
R1 - HKLM\Software\Microsoft\Internet Explorer\Main,Default_Search_URL = http://www.microsoft.com/isapi/redir.dll?prd=ie&ar=iesearch
R1 - HKLM\Software\Microsoft\Internet Explorer\Main,Search Page = http://www.microsoft.com/isapi/redir.dll?prd=ie&ar=iesearch
R0 - HKLM\Software\Microsoft\Internet Explorer\Main,Start Page = http://www.microsoft.com/isapi/redir.dll?prd={SUB_PRD}&clcid={SUB_CLSID}&pver={SUB_PVER}&ar=home
R1 - HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings,ProxyServer = 192.168.1.24:3128
R1 - HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings,ProxyOverride = 192.168.*.*;*.esa-ng.nl;<local>
R0 - HKCU\Software\Microsoft\Internet Explorer\Toolbar,LinksFolderName = Koppelingen
O2 - BHO: AcroIEHlprObj Class - {06849E9F-C8D7-4D59-B87D-784B7D6BE0B3} - C:\Program Files\Adobe\Acrobat 6.0\Reader\ActiveX\AcroIEHelper.dll
O3 - Toolbar: Vivisimo - {5538fb62-f725-4433-a965-91314e8d8e4d} - C:\Program Files\Vivisimo\Toolbar\tbuC6\toolbar.dll
…

jwenting 1,905 duckman Team Colleague

As an asides, Kazaa is well known to be among the worst sources of infections with spyware, virusses and other nasties.
It both installs a load of them itself and a lot of the crap offered for download by other users will be infected as well.

jwenting 1,905 duckman Team Colleague

Do you have speakers or a strong microphone positioned near there? If so those may well be the cause. Move them a bit and see what happens.

jwenting 1,905 duckman Team Colleague

Have you even read what I told you?
Something like this should do the trick quite nicely:

String[] args = new String[]{}; // fill with your arguments... Might need some experimentation to find the correct arguments 
Class.forName("JButton").getMethod("main", new Class[]{(String[]).getClass()}).invoke(null, args);

No need to launch another jvm inside your JVM.
You may wish to instantiate another ClassLoader, which would make things a tad more complicated but not a lot more.

Mind that you will need to handle quite a few (5 or 6) exceptions for that line of code.

jwenting 1,905 duckman Team Colleague

At least you seem a more friendly and smarter person than your classmate ;)

jwenting 1,905 duckman Team Colleague

You might want to pick up a book on matrix mathematics and read up on the subject.
Unless you know the theory behind it you're never going to put it into code, and once you do know the theory the code should come easily.

jwenting 1,905 duckman Team Colleague

notifyAll() will cause only 1 thread (at most) to start to run.

jwenting 1,905 duckman Team Colleague

If you don't know how to call a static method on a class I suggest you get a beginners' book and start reading.

jwenting 1,905 duckman Team Colleague

So typical of the younger generation. You don't jump and do their homework for them and they get abusive.
Good thing he's not a neighbourhood kid of us or he'd start shooting...

oh btw i am pretty proficient in english... and have no doubt in saying that i am smarter than you...

I have serious doubts about both your claims.
If you were proficient in English you'd not use the words and lexical structures you are using and if you had any intelligence at all you'd understand that your behaviour here isn't likely to incite people to help you.

jwenting 1,905 duckman Team Colleague

what the

what are u trying to say finish your sentences i thought u knew lot about this question

Ever heard of punctuation, capitalisation, and spelling?
They're important in English as well as in programming languages so you'd better practice some...

jwenting 1,905 duckman Team Colleague

i am not waiting for someone to write the code, i already wrote the code but i been getting this error message. you wouln't understand because u probably tell this to everyone and criticized everyone.

You didn't write anything related to your question that you showed.
Instead you start badmouthing the people here, not a good thing to do...

jwenting 1,905 duckman Team Colleague

you don't need to run the java runtime since you're already in it :)

Just load the class and call its main method.

jwenting 1,905 duckman Team Colleague

If you're not very good at programming I'd say take something simpler, a LOT simpler.
Large teams of highly experienced professionals take months or years to create MMOG.

jwenting 1,905 duckman Team Colleague

This isn't Java :)

Anyway, what are you trying to do?

jwenting 1,905 duckman Team Colleague

getline as the error says works only with strings.
You'll have to convert them to ints yourself afterwards using atoi.

jwenting 1,905 duckman Team Colleague

loops can be traversed in either direction. Decrease your counter from the length of a string to 0 while printing.

That's all the hint you should need.

jwenting 1,905 duckman Team Colleague

You can execute any public method on any class from any other class.
So you could just call the main() method on your class.

Or more properly you'd instantiate another classloader and use that I guess.

jwenting 1,905 duckman Team Colleague

I'd donate if there were but a way that doesn't require PP (or IMOs which are a ripoff and hard to get anyway here).

jwenting 1,905 duckman Team Colleague

There's so many different versions of so many different Netscape springoffs in use that I wouldn't be surprised if Google just did what the rest of the world does and that's ignore any of their code not working in some of those versions.
Just make it compliant to the latest standards and tough luck on any browser which doesn't implement those properly.

jwenting 1,905 duckman Team Colleague

hey, and I want a new digital camera, and a new car, and a new house, and I have no money either...

jwenting 1,905 duckman Team Colleague

P.S. you may want to take a look at java.lang.Compiler which seems to provide a wrapper around the compiler enabling you to avoid all that messy Runtime.exec() which is not a very nice way to do things at all.

jwenting 1,905 duckman Team Colleague

NullPointerException is a RuntimeException which means you don't have to catch it in your code.
Therefore the compiler didn't complain.
Where did you get it? Figure that out and check whether whatever you're using there indeed isn't null before continuing.

If you don't know what a NullPointerException is I'd advise you to stick to simpler programs than what you're attempting to create for now.

jwenting 1,905 duckman Team Colleague

steps:
1) order a large amount of coffee
2) order some pizzas
3) kickstart your brain
4) start thinking how you would solve it
5) write down your solution in words on a piece of paper
6) translate that into a flowchart and/or other diagrams
7) translate that into a functional model of your application
8) translate that into code
9) test and fix until working

jwenting 1,905 duckman Team Colleague

What have you been trying?

Well, he's tried to get the input code :)

jwenting 1,905 duckman Team Colleague

Not just that, but unless you want to limit yourself to a very small library of functions indeed you're going to have to use compiler specific libraries at some point.
The trick is to use those libraries in such a way that the largest possible part of your code does not directly depend on them.

Example are GUI libraries. Those are pretty much all at least platform specific and often compiler specific as well.
Network libraries are the same, IO handling often as well (if you want more control than scanf and printf can handle).

gcc is no more generic than any other compiler, in fact it has a lot more platform specific libraries and some others and the documentation is often lacking.
In fact, Borland has always had the most standard compliant of all compilers on i386 platforms and a reasonably well marked custom library.
They also provide excellent documentation.

As to teachers being reluctant to change their material, often they aren't even aware they're using non-standard extensions, having learned C (or whatever) from the same book (Learning C in 21 days using Turbo C 1.5) they use to teach their students and never reading anything else.