3,892 Posted Topics
Re: [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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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] | |
Re: Which version of HttpClient are you using? 3.x? Also, I could have sworn the default port for HTTPS was 443... | |
Re: 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). | |
Re: 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? | |
Re: 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 … | |
Re: 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] | |
Re: 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 … | |
Re: [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 … | |
Re: 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. | |
Re: 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] | |
Re: 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]. | |
Re: 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 … | |
![]() | Re: [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. ;-) |
Re: 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 … | |
Re: 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 … | |
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, … | |
Re: 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 … | |
Re: [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 … | |
Re: 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 … | |
Re: [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 … | |
Re: 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 … | |
Re: 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. | |
Re: > 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. ![]() | |
![]() | Re: 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 … ![]() |
Re: 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? | |
Re: 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 … | |
Re: 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 … | |
Re: [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 … | |
Re: 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 … | |
Re: 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. :) | |
Re: Read [URL="http://www.gidnetwork.com/b-59.html"]this [/URL]and the related articles for a better understanding of scanf. | |
Re: [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... | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: > [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]. | |
Re: 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 … | |
Re: 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()) { // … | |
Re: Why do you have this line in the Order class?[code] Order order = new Order( 0 );[/code] | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … |
The End.