3,892 Posted Topics
Re: Though I haven't used them, Apache PDFBox and iText seem promising. | |
Re: Maybe u should try [URL="http://www.daniweb.com/techtalkforums/www.uow.edu.au/%7Enabg/ABC/ABC.html"]www.uow.edu.au/~nabg/ABC/ABC.html[/URL] [URL="http://www.programmingtutorials.com/cplusplus.aspx"]http://www.programmingtutorials.com/cplusplus.aspx[/URL] [URL="http://www.knowledgehound.com/topics/cpp.htm"]http://www.knowledgehound.com/topics/cpp.htm[/URL] [URL="http://www.wannalearn.com/Computers_and_the_Internet/Programming_Languages/C/"]http://www.wannalearn.com/Computers_and_the_Internet/Programming_Languages/C/[/URL] This should suffice for the time being ;) Hope this helped, Bye. | |
| |
Re: IMO this question would be more appropriate on the Lucene mailing list; much better chance of getting a quick answer. Anyways, have you read up on the Javadocs of the given class/method; there is a possibility that the contract defines the existence of duplicates? | |
Re: > Most ad blockers simply hide the ads, but they don't stop them from being downloaded But Adblocker plus + NoScript don't work that way. Given that they are Firefox addons, they never request the blocked URL. ![]() | |
Re: I guess I'll take this opportunity to tell things which have been bothering me for quite some time after the upgrade: [LIST] [*]The font family; it's bad IMO, to an extent that the font face ends up giving more importance to the surrounding bell-n-whistles and less importance to the content. … | |
Re: > so i want the logging to be the crosscutting concerns.i.e as i read the xml and > display the data,the logging also happens In layman's terms, a cross-cutting concern is simply any task or requirement which doesn't belong to any single layer and yet is required by all/some of … | |
Re: > I just don't really know what I would have to do to make this instantiation legal Ensure that the Main class and the Parent class are placed in the same package. | |
Re: >> String l = Doc +"\\"+ file; The problem is with this line. Windows uses backslash (\) as the file separator whereas *nix uses forward slash (/) as the file separator. The simplest solution here would be to *not* manually create file names/path but use a method which automatically gives … | |
Re: Your OS/CPU architecture limits the maximum heap size you can allocate for your JVM process. Read [URL="http://stackoverflow.com/questions/987219/max-amount-of-memory-per-java-process-in-windows/987576#987576"]this[/URL]. The setting for heap size depends on the IDE which you are using but for eclipse, see [URL="http://www.nanopico.net/2009/10/increase-memory-heap-size-for-java-app-in-eclipse/"]this[/URL]. | |
Re: The biggest hurdle is that not everyone would have good thoughts in their mind when using the wiki feature of Daniweb community. It would just end up being *yet* another honeypot for spammers. Adding some sort of restriction (minimum of X reputation points or minimum of Y solved posts) before … | |
Re: Without seeing the code, it would be difficult to tell but are you updating your `demo` object so that it always fetches a new buffered image? Also, this approach isn't a good one. You can at a given time write out only a single type of entity (to put it … | |
Re: As far as the theory is concerned, Pagination simply means fetching the data in chunks or "pages" rather than fetching it all at once. The obvious advantages are reduced server/database load since only records that are required to be displayed/processed are retrieved. Pagination becomes a necessity when dealing with user … | |
Re: > I want to know how to check gracefully whether 2 sets are distinct Try using the Collections.disjoint() method for this. | |
Re: 1. Write your own retainAll() wrapper method which performs a NULL check since the one present in AbstractCollection doesn't. 2. Manually perform a NULL check [code]if(anotherSet != null && set.retainAll(anotherSet)) { // something }[/code] | |
Re: As a servlet developer you need to make up your mind -- whether to do the processing in the servlet and use it for sending a response to the client OR add/update request/session/application scoped parameters and let some other managed component (another servlet/jsp page) handle the processing/response creation. The HTTP … | |
Re: [URL="http://tuckey.org/urlrewrite/"]Yes, you can.[/URL] | |
Re: [URL="http://www.freetechbooks.com/viewforum.php?f=14"]These [/URL]free books would be good if you into compiler design. As for data structures, go to [URL="http://www.amazon.com/s/ref=nb_ss_b/102-3045451-4998533?url=search-alias%3Dstripbooks&field-keywords=data+structures+and+algorithm&Go.x=0&Go.y=0&Go=Go"]this[/URL] page and read the reviews of different books. That should give you an idea of how good a book is. | |
Re: How are you getting your connection object? As long as you are using a DataSource based connection pooling implementation to get your connection, it shouldn't be a problem when it comes to interacting with any number of databases. | |
Re: No. Have you ever developed enterprise level applications? | |
Re: Have you written the entire code, then it would be better if you post it rather than leave us guessing. | |
Re: IMO, the problem really isn't the font size but the spacing used for each and every post. And things look *big* on this site due to the font size used for things like the buttons below the quick reply box, the thread listing of each forum etc. Though I agree … | |
Re: After a while they all start looking the same considering the recent [I]proliferation [/I]of something_new_here game in the Geek's Lounge...;) But I guess they all are good. | |
Re: [quote]Maybe for the next overhaul you could make it a "members" project[/quote] Too many cooks spoil "teh" frigging broth. :-) [quote][url]http://www.rentacoder.com[/url] [url]http://www.odesk.com[/url] [url]http://www.guru.com/pro/index.aspx[/url] [url]https://www.getafreelancer.com/[/url][/quote] rentacoder? getafreelancer? LOL! ![]() | |
Re: Try something like this. It would work for any kind of whitespaces (newline, spaces, tabs). [code=c] int main(void) { char str[] = " hello \n to all \n\r\f the \t people "; int limit = strlen(str); int i, change = 1, words = 0; for(i = 0; i < limit; … | |
![]() | Re: Look into the DatabaseMetaData class of JDBC which can be retrieved using your existing Connection object. This object in turn can be used to retrieve all the tables of the database, their columns, constraints etc. It might take a bit of digging around to use the API right but once … ![]() |
Re: > Is this java? It looks like it is some sort of C. No, it's Scala, an OO-functional language which targets the JVM. | |
Re: Why is your password field a character array? Assuming that the password field in the database table is of type VARCHAR, you need to pass in a password "string" and not the "string representation" of the password character array. | |
Re: Why the '+' character in your character set after the '.'? Also, the problem here is that you are clubbing new lines with punctuation characters based on which the string has to be split. The correct logic would be to split on the punctuation characters *followed* by one or more … | |
Re: A few observations: [LIST] [*]I must say that I'm pretty much confused with the new layout. Especially the treatment which is given to links. It takes trial and error/time to find out which things can be clicked and which can't be. [*]The font used for the entire forum skin is … | |
Re: If you need to change the contents of the file in-place, you'd need to: - Use RandomAccessFile class - Open the file in read/write mode - Play around with file pointers (see javadocs for more details) and overwrite the existing content I personally wouldn't recommend this approach due to the … | |
Re: You would need to specify the package qualified class name for both the dates. [code]java.util.Date utilDate = new java.util.Date(); java.sql.Date sqlDate = new java.sql.Date(2342334);[/code] or something like: [code]import java.util.Date; java.sql.Date sqlDate = new java.sql.Date(423423); Date utilDate = new Date(); // util date[/code] | |
Re: If the query identified by the key 'SelectStudent' has placeholders (? characters), you need to set them before executing the prepared statement. | |
Re: I guess I do see your viewpoint here. It's all good as long as you don't end up hovering over the quoted piece of text. This *certainly* breaks the train of thoughts which you might be involved in when you are reading a reply. Dani, please make it so that … | |
Re: No, it seems that it isn't safe to make such an assumption. As per [URL="http://www.ibm.com/developerworks/java/library/j-jtp05273.html"]this article[/URL]: [quote]the default implementation of hashCode() provided by Object is derived by mapping the memory address of the object to an integer value. Because on some architectures the address space is larger than the range … | |
Re: What's the size of your data set? Also, there are two types of OutOfMemoryError: out of heap space and out of perma-gen space. What does the error exactly say? Post the exact stacktrace of your application. Also, there are better ways of sorting a collection containing your custom class. Make … | |
Re: [quote]Sorry to say, but that is about to change. Some of the trusty posters are leaving already. [/quote] Really? That's a pretty bold statement. Confused and irritated maybe. Leaving? Don't think so. @Everyone This is normally how new changes are rolled out on Daniweb. The new features which need to … | |
Re: It seems as though a better solution to your problem might be using the [URL="http://gameprogrammingpatterns.com/type-object.html"]Type Object pattern[/URL]. Creating new classes for new actors created which basically end up doing almost the same thing is pretty bad from a maintenance view point. Not to mention that your previous code snippets abuse … | |
Re: At least give it a try; what would be the point of *we* giving you *codes* if you don't end up learning anything new? | |
Re: Are you saying that you are not able to output the pipe character (|) using your keyboard? If yes, then try holding down SHIFT key and then press the key which has | and \ shown. If no, then post the code with which you are getting errors. Using the … | |
Re: It seems that the link has now been rightfully placed at below the last post. Much better. | |
Re: Does that even work for you? Which version of JSTL are you using? Anyways, it seems that JSTL forbids literal comparison. Instead of: [code]<c:if test="${1 == 0}">SOMETHING HERE</c:if>[/code] try out something like: [code]<c:set var="x" value="1" /> <c:if test="${x == 0}">SOMETHING HERE</c:if>[/code] | |
Re: Instead of getting your hands busy with the libraries/API's provided by Java, you should concentrate on getting the language basics right. The stack trace in the previous post provides the exact reason as to *why* the code fails. As far as your code is concerned, look into the DAO pattern … | |
Re: > I am very confused. How in the world are you going to implement a stack using function pointers? I guess he means by using dynamic memory allocation, using a node structure which holds the data as well as the pointer to the next node. | |
Re: > We just can't have personal instances of the application in our individual > computers because we only have one license One license of what? Is it something which your application refers to which can't be deployed on different machines? Maybe explaining things in more depth might help us give … | |
Re: Maybe you need something like this: [code=java] InputStream in = zipFile.getInputStream(); OutputStream out = new FileOutputStream(new File("a.bin")); byte buf[] = new byte[1024 * 8]; /* declare a 8kB buffer */ int len = -1; while((len = in.read(buf)) != -1) { out.write(buf, 0, len); }[/code] | |
Re: [quote]1. What is the best way to manage such project so that we won't collide?[/quote] Use a version control system. Having your code placed at a central repository which would then be used by collaborating developers is probably the best way to track of changes made to files and share … | |
Re: Look into the [URL="http://hc.apache.org/httpclient-3.x/"]Apache HttpClient[/URL] project. | |
Re: [quote=ardav]When IT people make such a song and dance about technical jargon, programming semantics and syntax, it baffles me why they don't apply the same rigour to their spoken medium.[/quote] Simply because every 'song and dance' is associated with an ROI (return of investment). When programmers nitpick on some beginners … ![]() | |
Re: Ooh, ooh, how come I didn't notice this thread? Anyways, try guessing this for starters; simple of course: [quote]An extremely Smart and Lazy ninja; dislikes tobacco smoke and anything that is too troublesome.[/quote] |
The End.