3,892 Posted Topics

Member Avatar for gunjannigam

[quote]That proves the code checks for the resources before running only and any resource added during runtime doesn't count. So what I was thinking is it possible to run two java programs from one jar file one after the another like we can do with batch files? [/quote] What kind …

Member Avatar for NormR1
0
252
Member Avatar for Fortinbra

Markup generator tools (MS Frontpage) and technologies like JSF are the prime contenders when it comes to emitting atrocious markup. Another possibility might be developer stringing together markup elements in an ad-hoc manner when developing dynamic web pages. In any case, I'm don't think you can convince them to redo …

Member Avatar for Fortinbra
0
137
Member Avatar for sergent

The way I see it, the steps are as follows: In top level directory of your project (the main directory), place the file named COPYING there having the contents as [URL="http://www.gnu.org/licenses/gpl.txt"]mentioned here[/URL]. And now follow the given instructions (taken from the gnu site): [code] For programs that are more than …

Member Avatar for sergent
0
243
Member Avatar for profyou

From the [URL="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html#sleep%28long%29"]Javadocs[/URL]: [quote]Causes the currently executing thread to sleep (cease execution) for the specified number of milliseconds plus the specified number of nanoseconds. The thread does not lose ownership of any monitors.[/quote]

Member Avatar for canwilf
0
87
Member Avatar for jazz_vill

Which version of HttpClient are you using? 3.x? Also, I could have sworn the default port for HTTPS was 443...

Member Avatar for jazz_vill
0
270
Member Avatar for stevanity

Adding on to others, it also pays to know that [URL="http://www.artima.com/intv/bloch13.html"]cloning in Java is pretty much broken[/URL] and for practical purposes you are better off using other alternatives (hand rolled copy constructor).

Member Avatar for stevanity
0
113
Member Avatar for caierhui

I'm not sure why you are assuming that there would only be 1000 submissions per day? Any reason for limiting the last part to 3 digits/characters? Any reason to not try out a pattern like "yyyyMMdd-HHmmssS" which automatically handles the resetting for you?

Member Avatar for javaAddict
0
314
Member Avatar for ankit.pandey3

There are a lot of things going wrong here. First, you should never ever mess around with your Java installation. Never. Setting class-path when compiling your files should be the way to go. Also, don't mess around with the "ROOT" application which comes pre-installed with your Tomcat. I'll outline the …

Member Avatar for mynameissiva
0
356
Member Avatar for dangari

We need more details; what else was changed during the move? Which MySQL version are you using? Which client driver and what version? How frequently are you getting this error message? A link you might find helpful: [url]http://stackoverflow.com/questions/4380813/how-to-get-rid-of-mysql-error-prepared-statement-needs-to-be-re-prepared[/url]

Member Avatar for dangari
0
3K
Member Avatar for Salem

AFAIK, you can create threads there, which would effectively be news "tips" you want to offer to the Daniweb editorial section. These submitted threads (apart from your own that is) can only be viewed by those who have the "blogger" privilege activated. My guess is that since the last time …

Member Avatar for Nick Evan
1
143
Member Avatar for susheelsundar

[quote]Some idiot had cleared all cookies on my machine after using some of his email account, I can only remember my youtube user name but no password, and when i was creating youtube user account i specified a email account which is not really exist, now, i am trying to …

Member Avatar for susheelsundar
0
139
Member Avatar for Dani

As mentioned, for the time being it's just for the home page ([url]www.daniweb.com[/url]) and news articles. On the home page, look at the top right corner near the tweet button.

Member Avatar for Dani
2
200
Member Avatar for matthewkeating

Please read: [url]http://www.daniweb.com/community-center/daniweb-community-feedback/threads/352013[/url] [url]http://www.daniweb.com/community-center/daniweb-community-feedback/threads/363816[/url] [url]http://www.daniweb.com/community-center/daniweb-community-feedback/threads/366926[/url]

Member Avatar for ~s.o.s~
0
210
Member Avatar for Dranip

The learning never stops. I've been doing it for a long time and still stumble upon new things everyday. Start from the basics and you'll realize there is no end to this. Also, [URL="http://norvig.com/21-days.html"]a must read[/URL].

Member Avatar for verruckt24
0
109
Member Avatar for Kate Teoh

There can be a few things going wrong here. First, what is the difference between your "localhost" and your "server" in terms of operating system, architecture etc. Also, the second error suggests that you have a classpath problem haunting you so the question which follows is, how are you setting …

Member Avatar for ~s.o.s~
0
348
Member Avatar for diafol

[quote]Basically give the members the ability to make their own queries [quote]Or you could just, you know, remember the folks who rub you the wrong way[/quote][/quote] Or just ban those who rub you the wrong way, if you have banning powers that is. ;-)

Member Avatar for VernonDozier
0
156
Member Avatar for manish250

Do you have the appropriate permissions for creating a server socket on your machine? Are you the administrator? Have you made any changes to your default policy file? Also, it seems you are using a very old tutorial. You don't need a "rmic" compiler these days. Read the [URL="http://download.oracle.com/javase/tutorial/rmi/index.html"]official RMI …

Member Avatar for ~s.o.s~
0
261
Member Avatar for sid78669

Are those your real login details? If yes, please edit them out. Regarding timeout, are you able to ping the given host from your machine (ping tribalwars.db.4489877.hostedresource.com)? Also, what happens when you comment out the DriverManager.setLoginTimeout(100) line? I don't see a port number mentioned in there; is the db in …

Member Avatar for sid78669
0
641
Member Avatar for ~s.o.s~

Hi Dani, For some reason, I'm always getting the cached or old version of a given page. E.g. clicking on the CP link shows me a thread which was recently bumped in the C++ forum. After I added code tags to the post and moved it to a separate thread, …

Member Avatar for qq7434138
0
832
Member Avatar for ceyesuma

Vector class *has* become obsolete. If you need a synchronized List, just wrap the plain old ArrayList class inside the [URL="http://download.oracle.com/javase/6/docs/api/java/util/Collections.html#synchronizedList%28java.util.List%29"]Collections.synchronizedList[/URL] call. In short, don't use Vectors unless you are tied to an API which forces you to use it. Also, don't rely on synchronized collections when it comes to …

Member Avatar for ceyesuma
0
920
Member Avatar for urtrivedi

[quote]I always felt one more in the list is required. Like if user who started thread was last to reply on that thread and that thread is still unsolved. It means that user is expecting someone to answer[/quote] ...or has already got an answer and is thanking the ones who …

Member Avatar for Ancient Dragon
0
166
Member Avatar for sree22_happy

Think of the include directive as a header file of languages like C/C++. When using the include directive, the combined contents of the original JSP page and all its included resources are translated into the same implementation servlet i.e. the contents of the included resource is copy pasted before translation …

Member Avatar for haribol
-1
2K
Member Avatar for iwannalearn

[quote]I swear I have read somewhere that when the manifest is set up properly that you don't even need to set that property (which is what I meant by the Services interface), but I can't, for the life of me, find it now. Maybe it was only in relationtion to …

Member Avatar for NormR1
0
603
Member Avatar for ljdellar

A thread containing a link to the most frequently asked questions might be a good idea but to make individual threads sticky is not really worth it. It would just end up resulting in a proliferation of sticky threads in a given forum and thus reduce the effectiveness of a …

Member Avatar for ljdellar
1
467
Member Avatar for vibhaJ

At the bottom of each forum, the legend/meaning for each icon is given. The only one missing from the list is: [url]http://images.daniweb.com/vbulletin/statusicon/thread.gif[/url] which denotes a normal thread: i.e. a thread which you have already read, is not *hot* (err.. I mean popular) and you don't have any posts in it.

Member Avatar for vibhaJ
0
125
Member Avatar for jon.kiparsky

> I'd like very much to know where it's gone, if anyone has any good information... Seems like a goof-up by the oracle folks. There are a couple of threads created on teh official Oracle Java forums but no response by the staff till now. A few folks have observed …

Member Avatar for jon.kiparsky
0
100
Member Avatar for warlord902

Yes, the class initialization has to complete (executing static initialize blocks and initializing static fields) before you can access the 'con' static field which implies initializing the other static fields. But there is an exception to this rule: the class initialization does *not* take place if you access a "constant …

Member Avatar for thekashyap
0
579
Member Avatar for Abel123

To add to Davey's post, the moderator team normally treats "Keep it legal" cases with highest priority given that having copyrighted content around for a long time without proper attribution might end up putting Daniweb is a big mess. That is one of the reasons why no warning is issued …

Member Avatar for jingda
0
709
Member Avatar for pseudorandom21

Anything included between the [noparse][noparse][/noparse][/noparse] tags won't be parsed by the vBulletin template engine if that's what you are asking.

Member Avatar for diafol
0
225
Member Avatar for masterofpuppets

AFAIK, this is expected. The IP address assigned to you by your ISP is the external IP address whereas the unique IP addresses of each of your network machines are "internal" addresses which aren't viewable to the outside world. This is one of the reasons why browsers don't just rely …

Member Avatar for masterofpuppets
0
1K
Member Avatar for warlord902

Have you tried using the [URL="http://db.apache.org/derby/javadoc/publishedapi/jdbc4/org/apache/derby/drda/NetworkServerControl.html"]NetworkServerControl API[/URL] as mentioned in the second point linked in your post? If yes, what kind of problems are you facing?

Member Avatar for warlord902
0
1K
Member Avatar for KonkaNok

After reading the FAQ, the two features which I found interesting were: - No type hierarchy; this is a life safer given that the ridiculous amount of time OO programmers spend juggling with type hierarchies. - Goroutines instead of threads; spawning a new thread only when it's absolutely required is …

Member Avatar for NETProgrammer
0
330
Member Avatar for vegaseat

I'm assuming that the aim here is to make Java developers aware of the JVM port of Python programming language and the goodies which it brings with it. However, those thinking of making a transition from CPython to Jython in hope of a better GC and threading, please make sure …

Member Avatar for bumsfeld
2
494
Member Avatar for BitBlt

[quote]Is there a way to do this that I just haven't found?[/quote] AFAIK, there is no way of doing this. You can of course use a pen and paper (or a text file in computer savvy terms) to keep track of things but I'm sure you didn't have this in …

Member Avatar for WaltP
0
227
Member Avatar for vibhaJ

AFAICT, that isn't blue, it's green and gray. It means that: [LIST] [*]Either you were awarded reputation in a forum where reputation doesn't count (e.g. Geeks Lounge) [*]You were given reputation by someone who doesn't have enough rep power to influence you. As an example, take a look at [URL="http://www.daniweb.com/members/Green-z/905340"]this …

Member Avatar for vibhaJ
0
138
Member Avatar for Dani

Given that Davey still has the 'administrator' badge, I'm hopeful that someday he'll start contributing again to the forum; will be waiting for you. :-) Okaeri nasai Narue. :)

Member Avatar for happygeek
0
409
Member Avatar for IwalkAlone

Read [URL="http://www.gidnetwork.com/b-59.html"]this [/URL]and the related articles for a better understanding of scanf.

Member Avatar for lokeshg
0
2K
Member Avatar for happygeek

[quote]Scammers are scum, but idiots who buy into the scams are only pitiable[/quote] That's a pretty harsh statement. Not computer savvy? Maybe. Idiots? Definitely not. There is a thin line between idiocy and innocence...

Member Avatar for Alekjenderbo
7
582
Member Avatar for Dani

The way I see it, Google has now decided to rank content creators/sources higher than content consumers and the content creators are now judged based on visits, track-backs, how long the visitors stay on a given site (certainly possible) and the discussion surrounding that given site. This might be the …

Member Avatar for Reverend Jim
3
1K
Member Avatar for saqib

Many problems in your code to begin with: [LIST=1] [*]Dont use conio.h its a non standard header file ( you seem to be using Turbo C ) [*]Dont use clrscr() to clear the screen. Its a non portable function which works only on Turbo C. Use it at your own …

Member Avatar for arjunpk
0
208
Member Avatar for thekashyap

AFAIK, RSS/Atom readers only show feeds which were exposed by the site in consideration. So if the feeds published by Daniweb don't show the entire thread, no feed reader would be able to show the entire thread. As an example, consider [URL="http://feeds.feedburner.com/github"]this feed exposed by Github[/URL] which shows the entire …

Member Avatar for ~s.o.s~
0
226
Member Avatar for mafiasam

Visit [URL="http://www.daniweb.com/forums/subscription.php?do=viewsubscription"]this link[/URL] and delete all the subscribed threads which show up there. Also, visit the forum to which you are subscribed to (which you already know since you are getting email subscriptions I presume?) and click on the "mail" icon (just besides the RSS icon on the top right …

Member Avatar for Portgas D. Ace
1
264
Member Avatar for jingda

Daniweb members who are interviewed for the [URL="http://www.daniweb.com/newsletter/issue.php?date=2011-04&utm_source=CommunityNewsletter&utm_medium=email&utm_campaign=Fineprint"]Daniweb monthly digest/newsletter[/URL] get the title "featured poster". These members are typically picked up by site administrators based on factors like contributions, frequency of visiting Daniweb etc. Admins typically have a list of 'to be interviewed' folks but if you feel that someone …

Member Avatar for jingda
0
185
Member Avatar for yosi501r

> [url]http://translate.google.com/translate_tts?q=Daniweb[/url] This URL gives me a 404 (document not found) hence doesn't yield anything. The actual URL should be: [icode]http://translate.google.com/translate_tts?ie=UTF-8&q=hello&tl=en&prev=input[/icode] . I'd recommend using a property HTTP library which offers sufficient abstraction, something like HttpClient or Resty. A sample test code using [URL="http://beders.github.com/Resty/Resty/Overview.html"]Resty[/URL] can be found [URL="https://bitbucket.org/sanjayts/java-snippets/src/f7865c588348/src/main/net/sanjayts/snippets/http/RestyGoogTranslateTest.java"]here[/URL].

Member Avatar for yosi501r
0
453
Member Avatar for jingda

The problem with this approach is that the welcome would seem kind of forced. And not to mention the possibility of the answer being forced as well. It might go something like this: [quote] OP: Hello, can anyone help me with xxx? Thanks. New-Member: You are almost there, just change …

Member Avatar for jingda
0
198
Member Avatar for ubi_ct83

You need to create task objects when you are iterating over the resultset. These task objects can be then pushed inside a list. You can then use this list as you see fit i.e. to run the tasks etc.[code] // untested pseudocode final ResultSet rs = stmt.executeQuery(); while(rs.next()) { // …

Member Avatar for ~s.o.s~
0
89
Member Avatar for SMITA6076

Why do you have this line in the Order class?[code] Order order = new Order( 0 );[/code]

Member Avatar for SMITA6076
0
253
Member Avatar for e-papa

A member gains a 'banned' status if he ends up gathering 10 infraction points. When a member is infracted for breaking the rules ([url]http://www.daniweb.com/forums/faq.php?faq=daniweb_policies[/url]), he is "infracted" and "awareded" infraction points based on the severity of the rule broken. Bans can expire, typically in 6 months or so, unless it's …

Member Avatar for e-papa
0
171
Member Avatar for harinath_2007

Just to clarify the above post, the announcement at the top of the forum says: [quote]Also, to keep DaniWeb a student-friendly place to learn, don't expect quick solutions to your homework. We'll help you get started and exchange algorithm ideas, but only if you show that you're willing to put …

Member Avatar for Slimmy
-1
136
Member Avatar for chico9

Simply put, a hash code is ideally a best effort numeric (integer) representation of a Java object. Each Java object which lives in the JVM has a default hashCode() which is mapped to the integer representation of the address of that object (which as you can see is a good …

Member Avatar for chico9
0
355

The End.