5,727 Posted Topics
Re: smoking often starts at a young age by aping others, older kids (or parents, TV stars, teachers, etc.) who are smoking, and are looked upon as role models. Very few people start smoking without such a role model (the foul taste, the acrid smell, of even the first draft on … | |
Re: > "Russians are a nation of thieves - an opinion from inside. I hate them all. > I'm not a Muslim, or a Jew. My both parents are from Bielorussian villages." and much of the rest of the world considers Belorussia to be a nation of thieves... In fact Belorussian … | |
Re: that's not "Java", that's a third party library some kid (no doubt) wrote for his homework project (no doubt), just like what you're trying to do (no doubt at all) by stealing someone elses' code and handing it in as your own. Learn programming, and you can solve your "ATM … | |
Re: well, you're trying to read from the resultset (on line 10) before you've progressed the pointer to the first record, which is what's causing that error. | |
Re: read some tutorials, experiment, then reengineer. There is no other way. And yes, that's deliberately vague as not only are you being vague so no more specific answer is possible but it's something you'll have to do yourself. | |
Re: not going to happen, period. And for very good reasons. Performance, security, etc. etc. | |
Re: > I have been told that when entering the US, customs officials can insist that you reveal the password for an engrypted file or partition. I am not aware if anyone has successfully challenged the legality of this, for example, by claiming that the encrypted information contains priviledged lawyer-client communications. … | |
Re: the number of people in the world is constantly changing, so it's a question that's impossible to answer as by the time the answer has been given it is no longer valid :) | |
Re: well, many managers love to see nice screens coming by in demos even if the data behind them is all bogus :) | |
Re: the question makes no sense, the answers therefore are unrelated to the question :) Java is not intrinsically "more secure" than anything, at most it has been designed to make it easier to program applications to not suffer from things like memory leaks, but that's not security (though it might … | |
Re: you're going to have to learn Java if you're going to use it, there's no way around it. Trying to push an entirely different development model into the language isn't going to get you very far. With your attitude you're setting yourself up for a very rapid failure. Follow some … | |
Re: do your own homework, kid. We're not here to regurgitate the specs documents for you. | |
Re: would have bought one years ago, if only they'd allow it to be set up with right hand button configuration for a left handed person. At least the versions out back 3-4 years back didn't allow for that, making the thing useless for me. | |
<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean" p:packagesToScan="jpatest.engine"> <property name="dataSource"> <bean class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName" value="org.firebirdsql.jdbc.FBDriver" /> <property name="url" value="jdbc:firebirdsql://localhost:3050/testdb" /> <property name="username" value="xxxxxxxx" /> <property name="password" value="yyyyyy" /> </bean> </property> <property name="jpaVendorAdapter"> <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"> <property name="database" value="DEFAULT" /> <property name="showSql" value="true" /> <property name="databasePlatform" value="org.hibernate.dialect.FirebirdDialect" /> </bean> </property> <property name="loadTimeWeaver"> <bean class="org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver" /> </property> … | |
Re: you're too late, James. If it really were that urgent he'll have self combusted by now or worse. | |
Re: if you claim to give people an answer to their question and it's the wrong one, someone will downvote it to indicate as such. Get used to it. At least it's better than getting downvoted because someone doesn't share your opinion on something, without any factual data to counter your … | |
Re: the most logical thing to do would be to ask the publishers... Which is what a lawyer would tell you too. Without permission from the publisher you're not going to legally sell anything. That's quite apart from all the legal stuff you need to handle to set up a company … | |
Re: there is no "best" operating system, at most there might be one that's best suited to specific requirements. | |
Re: sorry, the disposal fees for toxic chemicals are just too high here ;) | |
Re: and no, you need specific driver jars for each database engine. So different ones for Oracle, MySQL, PostreSQL, MSSQL Server, etc. etc. etc. | |
Re: yes, the contains() method checks whether a Collection contains a specific item, not an item that's just of the same type. It's like putting marbles in a jar, each marked with a number. You check the numbers when retrieving marbles, not whether you got a marble. | |
Re: ALL computers are no more than logic circuits linked together :) Of course OP is massively confused in his use of the term "electric circuits" when meaning "logic circuits", which might have hurt his attempts at using a search engine (itself a logic engine, ironically) to find the information he … | |
Re: > They say the reserved funds are going back to the Crown. But what if the rights-holder shows up after that period? that means that the intellectual property falls to the government once the original ownership expires. IOW there's no more expiring copyright, anything where the initial copyright period expires … | |
Re: You can easily create a String instance from an array of char, but not using the toString method (which exists on the array, but won't have the expected result unless you know what to expect which most people don't). Search the API documentation, it's right there in the page relating … | |
Re: an entry level programmer should be able to read, should be able to type, and should be able to learn. Anything else is a bonus. | |
Re: private static class AccountID implements Comparable<AccountID>, HasClone<AccountID> { public AccountID(int iID) { ID = iID; } public int compareTo(AccountID N) { return ID-N.ID; } public AccountID Clone() { return new AccountID(this); } public int ID; }; That's your code, cleaned up a bit for readability. Your "return new AccountID(this)" will … | |
Re: yes, the form tag is required. And it can not be nested. Which is likely why the CMS you use replaces it with a div tag if you have forms inside your html that it wraps. Which itself is nasty, as you might have multiple forms on a page, with … | |
Re: The programming language you should know is the one you need for your current job at hand... I'm sick and tired of people telling me what I "should do", that I "am not a real programmer" because I don't use Scala, Smalltalk, or whatever. | |
![]() | Re: do you want unique or random? The two are mutually incompatible, when taking random numbers by definition you can't guarantee uniqueness as that places a restriction on the randomness. |
Re: in fact IE supports the new stuff in v9 and in large part v8, but to prevent old websites written before strict standards enforcement was in place in browsers from breaking that strict enforcement is turned off in them by default, and as a side effect some things that rely … | |
Re: Excel IS a data entry worksheet :) | |
Re: and in many other countries it may even be negative as you have to pay to dispose of electronic junk. | |
Re: easiest would be to get rid of the xml mapping and use JPA2 compatible annotation based mapping instead. | |
Re: an alternative to the classic way to create singletons that some people promote is to create an enum with a single instance. public enum Something { INSTANCE; public void doSomething() { System.out.println("something"); } } bit contrived IMO, but it works. | |
Re: and the leftist vile hatred of anyone who doesn't agree with their repulsive hate based ideology shows once again... She didn't start a war with Argentina, she ended it by kicking a dictatorial regime that had invaded her country out of that country. She kicked ass when she kicked the … | |
Re: you'll need to call an external program that can do that. Which would of course have to be operating system dependent. And no, you're (on any server worth the effort invested in its security) won't have permission to execute that created executable file on the server. | |
Re: just reset the position to where you started and reuse the instance :) | |
Re: Even if the number were correct (and it isn't, not just the Twitter source data is suspect, the Slate motives are even more so) most would be criminals taking potshots at each other. Can't have enough of those. Much cheaper than putting them all through trials and keeping them in … | |
Re: still waiting for that random project idea generator... Or "porject topic generator" to use your idiom. Come on kids, it's a brilliant idea, you can save millions of kids like yourself the trouble of thinking up their own project ideas by making that. | |
Re: http://www.javaworld.com/jw-12-2000/jw-1229-traps.html | |
Re: yes, and then there's the not closing the database resources when he's done with them and the lowercase classname. | |
Re: Or just run the clients outside of Netbeans... | |
Re: you can not connect from an applet to any resource hosted on a different host from the applet itself, that's for security reasons. Best practice is to have the applet talk to a serverside resource (say a servlet or web service) and have that perform the database access. That way … | |
Re: increasing the amount of memory available to the JVM will not prevent a heap space error in this case, it will only delay it (you'll still run out of memory, it'll just take longer). Restarting the application server is usually the best thing to do when redeploying applications, it's the … | |
Re: hmm, 2 days suspension for hitting a bully in the face once, leaving him with a bloody nose, who was beating up a friend. The bully of course wasn't punished at all, but afterwards did leave both of us alone... | |
Re: if your main objective is to pass it to a stored procedure, pass it as is (meaning, as a string) and write the stored procedure in such a way that it does the conversion. Much more efficient, as it eliminates the implicit conversion of a Java Date to a database … | |
Re: if you've not written that, you've not programmed it so you've not started to program in Java, have you? Do your own homework, don't expect to ever learn anything just sitting back and hoping that others will do it all for you. | |
Re: hmm, the old MS DOS batch scripting language, quickly followed by IBM Advanced BASIC. That was back in 1984, when computers were real computers, hernias caused by trying to lift computers were real hernias, and portable computers were portable by virtue of having a carrying handle, didn't need special bags … ![]() | |
Re: Dialysis doesn't have to cause bone problems IF accompanied by a diet to compensate for the loss of minerals. Problem is most people (including most kidney patients) refuse to eat a healthy diet, and sadly a lot of dieticians and physicians alike don't take the trouble to find out what … |
The End.