5,727 Posted Topics
Re: > I think electronic voting has been proven to be even less reliable then paper voting either because of bugs in the electronic software or hackers. It wouldn't be difficult for a programmer to write the software which auto votes for a particular candidate regardless of who the voter intended … | |
Re: You are asking if just writing software can open your computer to external malware? No, it doesn't. Of course if you write software that goes out and downloads and runs stuff from around the net without your control when you run it, it might download and run anything at all. … | |
Re: use code tags if you want people to read your code. And don't go hijacking other peoples' threads, not even old ones like this. | |
Re: OK, now go ahead and use what you've been taught. | |
Re: > It is considered an offense to have more than two colors of paint on your house. (Beaconsfield ) Good thing the city I live doesn't have that law. As per the building codes I am required to use a specific set of colours, I think it's 7 of them … | |
Re: Made it a bit smarter, couldn't help tinker and use some more features of the Tiger :) The explicit cast to int Narue used was not needed, and the iteration can be performed using the new for-each loop in 4 lines less code than she used ;) [code] import java.util.*; … | |
Re: it's telling you to add the driver to your classpath. That's wrong with it and that's how to fix it... | |
Re: formal training is always good, much better than just diving in with no guidance and muddling along. As to this specific situation, learning your database first is probably better than learning it later, at least enough that you can do the basics needed for what you're really after (making tables, … | |
Re: file looks rather simple as config files come. And as you say the system is open source, you have access to the original parser to see how to parse it already and what each field means. Combine that with a web interface you make yourself in something that you know … | |
Re: Struts? Never used it in the over 15 years I've used Java professionally and no interest in starting. Hibernate? .NET has similar functionality built in so you're going to need to learn something like it anyway. Better learn JPA rather than Hibernate specific ways of doing things and you're a … | |
Re: once in a while some new form of spam makes it into the inbox, maybe one every other week or so. There's false positives though, mostly overzealous spam filters flagging mailing lists as spam because of the volume or masking the original sender. Overall, the spam volume (including what ends … ![]() | |
Re: > Its not homework, its a sample problem. it's still homework, just self imposed homework... Same logic applies, if you wait for others to do it for you you won't learn anything. | |
![]() | Re: my guess: he has 4 source files and expects that he can just call methods in those without compiling them. Another guess: he has loose methods in those source files that are not inside any classes. ![]() |
Re: main problem I have with git is the same problem I have with anything "cloud" and that's that your data is out there out of your control, with only the promise of the current owner of the server/service that they'll not take it for their own and sell it and/or … | |
Re: hmm, sounds like he has a method that paints a Swing component. Not something you are going to automagically test with JUnit. | |
Re: And there's a big part of your problem. You're using a 30 year old compiler, no doubt older than you are yourself, and expect it to work properly with new versions of the language on new computers with new operating systems. Use something reasonably up to date instead, or find … | |
Re: hmm, simplest way to launch a Java program from another Java program is to load the classes onto the active classpath, load the main class into a classloader, and then execute the main() method on that class. No need to use ProcessBuilder to create a new JVM, just make sure … | |
Re: hmm, most likely that's the size of his entire project which includes the precompiled assemblies for half of .NET. | |
Re: Actually, mathematically a circle is defined by its center and radius so that's all you need to know to store the data. I wouldn't be at all surprised if the graphical API you're using has a method that will draw a circle on screen using those same things. And then … | |
Re: and let's hope that the streaming of the image into the blob left it in a state where calling getBytes() on it would leave you with data that createImage() can interpret. | |
Re: learning to do it in code is what you're taking those classes for. So go ahead and try... If you just wait for others to do it for you and hand in what they have done as your own you've learned nothing except how to be a dishonest, cheating, lazy, … | |
Re: I do know that jInitiator is extremely picky about what JVMs it works on. It's quite likely you need to seek your problem in that area, incompatible JVM versions. Your best place for support would be Oracle themselves, if you've the licenses to use that stuff you're going to have … | |
Re: check what line 86 of that CallbackServlet says... That'd give you an idea of where you're passing incorrect information. | |
Re: congratulations on 101 posts in 16 hours since your 10k mark :) | |
Re: "why so many kids are incapable of thinking for themselves even in their final year at school". And start with yourself, do a thorough analysis of how you come to be incapable of original thought. | |
Re: sow shi set dad reeding things alowed reduses errors in writtuhn teksts? | |
Re: if you lack the knowledge you need, get the knowledge... It's really that simple. You're now at a stage in life where you're no longer being led by the hand, but expected to be able to figure out on your own what you need to know and find ways to … | |
Re: I'd just use the javax.crypto package instead. Provides all you need for most encryption requirements most people will ever have. http://docs.oracle.com/javase/7/docs/api/javax/crypto/package-summary.html http://docs.oracle.com/javase/7/docs/technotes/guides/security/crypto/CryptoSpec.html | |
Re: either will (or at least should) reject that XML as it is invalid :) | |
Re: look closely at your code... You're trying to call a method "display" in your Local inner class, but that inner class has no method named "display", it has a method named "msg". | |
Re: 1) "which do you use more". Since when are we in a popularity contest between interfaces and abstract base classes? 2) implementation dependent. Wouldn't expected to need to know that in detail unless I'm to write a JVM. 8) "better" is relative to what you want to achieve... 9) last … | |
Re: hmm, I've Office 2010 installed on Win 8.1 and it runs just fine :) | |
Re: and what about talking with your coordinator? When I was at that point they had a selection of projects to choose from, based on requests for graduate students from companies and research institutes willing to host people for their graduation work. For example I was offered a position to do … | |
Re: I prefer to import individual classes. Why? Because it gives some documentation on the top of your source file indicating which classes are used in your application. Might not always be needed, but I've seen places where that was parsed into a document and used to determine dependencies between parts … | |
Re: Lag is almost always network related. Sometimes simply resetting your router will cause things to get better, sometimes you're stuffed because there's some upstream problem. Some games let you throttle the amount of data the client will accept, effectively telling the server "I can only receive x bytes per second, … | |
Re: too lazy or too stupid to think for yourself? Which of the two applies to you? Whichever it is, you don't deserve to get a passing grade. | |
Re: pay to win is the standard business model for MMOs now. And yes, it is caused by the attitude among people that they don't want to pay for things. So you draw them in with a free game, then have an item mall where to buy what you need to … | |
Re: security policies prevent me from taking part in surveys about security policy :) | |
Re: [QUOTE=Killer_Typo;432553]:D which came first: the chicken or the egg!![/QUOTE] In case of Borland's compilers, they're written mostly in Pascal. And that includes their Pascal compilers... They wrote a compiler stub that could compile a minimal subset of the intended language in machine code or Assembly, used that to compile a … | |
Re: > Are we allowed to live for an eternity? were it possible, no doubt there'd be laws mandating euthenasia for anyone who's not paying more in taxes than they get in government benefits... | |
![]() | Re: > IMO declaring Christmas as a federal holiday violates that law. (Public Law 90-363) it doesn't, unless the federal government dictates that everyone join a specific religious group and forces them to celebrate Christmas within that group. That's what the establishment clause means, that congress can't create (or declare) a … |
Re: To run a class you don't need to launch the java executable. Create a classloader and use that to fork off the class in-process :) You can also do that to compile classes. Simply hook into Ant which is a Java application and can compile Java classes for you (by … | |
Re: good riddance to another terrorist pushed into premature sainthood by a world press totally oblivious of reality. While apartheid in the RSA was a Bad Thing (tm), the terror campaign of the ANC was no better and has led to what now is a regime that is no better except … | |
Re: Go to a decent store selling musical instruments, ideally one specialising in stringed instruments, and talk to the staff. Try multiple guitars, have the staff play some for you, get a feel for the size, weight, and sound of them. Then decide which would best fit your needs, wants, and … | |
Re: > > Lowest bidder. if only... The contract was granted to "the correct party" which was a company headed by an old college friend (of the correct skin colour of course) of Michelle Obama, which just happened to be a large campaign contributor to the Obama campaign. A company with … | |
Re: > It tells me that, that is not a valid command Which means you either don't have Java installed, or don't have it installed correctly. | |
Re: You can't start marketing something without at least a prototype. You can't start marketing something without at least a cost indication. And you can't get either without a recipe and at least a price quote from a production facility. It's all well and dandy to want to design a bottle … | |
Re: [url]http://www.vim.org[/url] All you need. |
The End.