5,727 Posted Topics

Member Avatar for Xantipius

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 …

Member Avatar for Agilemind
0
330
Member Avatar for Xantipius

> "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 …

Member Avatar for Xantipius
1
247
Member Avatar for Mr.M

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 …

Member Avatar for stultuske
0
225
Member Avatar for FaisalSarfraz

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.

Member Avatar for jwenting
0
353
Member Avatar for mayoubprince

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.

Member Avatar for jwenting
0
135
Member Avatar for manaila

not going to happen, period. And for very good reasons. Performance, security, etc. etc.

Member Avatar for jwenting
0
211
Member Avatar for asif49

> 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. …

Member Avatar for jwenting
0
751
Member Avatar for cproger

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 :)

Member Avatar for GrimJack
0
234
Member Avatar for ceelos1974

well, many managers love to see nice screens coming by in demos even if the data behind them is all bogus :)

Member Avatar for ceelos1974
0
228
Member Avatar for sushants

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 …

Member Avatar for sushants
-2
162
Member Avatar for ktsangop

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 …

Member Avatar for ktsangop
0
376
Member Avatar for chrispitt
Re: JSP

do your own homework, kid. We're not here to regurgitate the specs documents for you.

Member Avatar for jwenting
-1
69
Member Avatar for happygeek

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.

Member Avatar for happygeek
3
465
Member Avatar for jwenting

<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> …

Member Avatar for jwenting
1
952
Member Avatar for cvanithakpm

you're too late, James. If it really were that urgent he'll have self combusted by now or worse.

Member Avatar for jwenting
0
192
Member Avatar for Stuugie

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 …

Member Avatar for Stuugie
0
211
Member Avatar for asif49

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 …

Member Avatar for jwenting
0
206
Member Avatar for mattster

there is no "best" operating system, at most there might be one that's best suited to specific requirements.

Member Avatar for Assembly Guy
0
857
Member Avatar for Ancient Dragon
Member Avatar for Ancient Dragon
0
193
Member Avatar for Dane2259

and no, you need specific driver jars for each database engine. So different ones for Oracle, MySQL, PostreSQL, MSSQL Server, etc. etc. etc.

Member Avatar for jwenting
0
137
Member Avatar for DarkLightning7

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.

Member Avatar for DarkLightning7
0
275
Member Avatar for silvercats

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 …

Member Avatar for Assembly Guy
0
269
Member Avatar for coolrosy

There's no way anyone can answer that question from just the little information you've provided.

Member Avatar for EvolutionFallen
0
237
Member Avatar for Ketsuekiame

> 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 …

Member Avatar for mike_2000_17
0
266
Member Avatar for devanshee

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 …

Member Avatar for stultuske
1
170
Member Avatar for fishsticks1907

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.

Member Avatar for falchion-gpx
0
350
Member Avatar for kay19

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 …

Member Avatar for kay19
0
210
Member Avatar for Violet_82

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 …

Member Avatar for paulkd
0
113
Member Avatar for <M/>

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.

Member Avatar for jwenting
0
389
Member Avatar for moha_1990

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.

Member Avatar for jwenting
0
235
Member Avatar for TonyG_cyprus

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 …

Member Avatar for asrockw7
0
268
Member Avatar for andyshera
Member Avatar for jean122

and in many other countries it may even be negative as you have to pay to dispose of electronic junk.

Member Avatar for <M/>
0
349
Member Avatar for ganges

easiest would be to get rid of the xml mapping and use JPA2 compatible annotation based mapping instead.

Member Avatar for ganges
0
2K
Member Avatar for bhallarahul

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.

Member Avatar for JamesCherrill
0
185
Member Avatar for Ancient Dragon

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 …

Member Avatar for Agilemind
1
1K
Member Avatar for Angle90

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.

Member Avatar for TonyG_cyprus
0
289
Member Avatar for game06
Member Avatar for game06
0
186
Member Avatar for Reverend Jim

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 …

Member Avatar for Reverend Jim
0
162
Member Avatar for tobinhoadesanya

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.

Member Avatar for tobinhoadesanya
-1
579
Member Avatar for yue.sun.35
Member Avatar for Aditya_4
Re: jsp

yes, and then there's the not closing the database resources when he's done with them and the lowercase classname.

Member Avatar for IIM
0
137
Member Avatar for nah094020
Member Avatar for game06

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 …

Member Avatar for jwenting
0
168
Member Avatar for riahc3

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 …

Member Avatar for jwenting
0
256
Member Avatar for <M/>

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...

Member Avatar for G_Waddell
0
279
Member Avatar for pooran.c

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 …

Member Avatar for pooran.c
0
2K
Member Avatar for Imene Hertha

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.

Member Avatar for <M/>
-3
345
Member Avatar for game06

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 …

Member Avatar for James singizi
0
663
Member Avatar for nitin1

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 …

Member Avatar for TonyG_cyprus
0
441

The End.