3,892 Posted Topics

Member Avatar for tyson.crouch
Member Avatar for ~s.o.s~
0
48
Member Avatar for wingwarp

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.

Member Avatar for Ancient Dragon
0
150
Member Avatar for OurNation
Member Avatar for mayank.15

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?

Member Avatar for ~s.o.s~
0
166
Member Avatar for Biker920

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

Member Avatar for diafol
0
250
Member Avatar for Narue

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

Member Avatar for ~s.o.s~
2
856
Member Avatar for softdev

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

Member Avatar for ~s.o.s~
0
81
Member Avatar for jcorcoran

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

Member Avatar for ~s.o.s~
0
83
Member Avatar for Felikim

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

Member Avatar for tmanohar
0
337
Member Avatar for mayank.15

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

Member Avatar for mayank.15
0
180
Member Avatar for daviddoria

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 …

Member Avatar for daviddoria
0
398
Member Avatar for swati.n

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 …

Member Avatar for ~s.o.s~
0
1K
Member Avatar for RaulGonzales

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 …

Member Avatar for ~s.o.s~
0
134
Member Avatar for johndoe444

> I want to know how to check gracefully whether 2 sets are distinct Try using the Collections.disjoint() method for this.

Member Avatar for ~s.o.s~
0
124
Member Avatar for johndoe444

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]

Member Avatar for ~s.o.s~
0
66
Member Avatar for karanits

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 …

Member Avatar for karanits
0
110
Member Avatar for RaulGonzales
Member Avatar for n.aggel

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

Member Avatar for s_sridhar
0
167
Member Avatar for hemant.patel

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.

Member Avatar for ~s.o.s~
0
27
Member Avatar for eXceed69
Member Avatar for reach_yousuf
-1
5K
Member Avatar for Veli Atci

Have you written the entire code, then it would be better if you post it rather than leave us guessing.

Member Avatar for Gandharv04
0
226
Member Avatar for jephthah

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 …

Member Avatar for Ezzaral
5
514
Member Avatar for mattyd

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.

Member Avatar for briangreen143
0
200
Member Avatar for jephthah

[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!

Member Avatar for diafol
3
1K
Member Avatar for sgriffiths

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

Member Avatar for jephthah
0
270
Member Avatar for bschmitt78

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 …

Member Avatar for bschmitt78
0
89
Member Avatar for klactose

> Is this java? It looks like it is some sort of C. No, it's Scala, an OO-functional language which targets the JVM.

Member Avatar for ~s.o.s~
0
259
Member Avatar for ceyesuma

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.

Member Avatar for ~s.o.s~
0
159
Member Avatar for mickmos

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 …

Member Avatar for ~s.o.s~
0
135
Member Avatar for jephthah

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 …

Member Avatar for Dani
8
2K
Member Avatar for bufospro

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 …

Member Avatar for bufospro
0
102
Member Avatar for Usura

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]

Member Avatar for ~s.o.s~
0
122
Member Avatar for ceyesuma

If the query identified by the key 'SelectStudent' has placeholders (? characters), you need to set them before executing the prepared statement.

Member Avatar for ceyesuma
0
668
Member Avatar for BestJewSinceJC

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 …

Member Avatar for Ezzaral
0
114
Member Avatar for OffbeatPatriot

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 …

Member Avatar for jwenting
0
297
Member Avatar for cwpent

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 …

Member Avatar for ~s.o.s~
0
271
Member Avatar for cwarn23

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

Member Avatar for Froger93
0
249
Member Avatar for OffbeatPatriot

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 …

Member Avatar for ~s.o.s~
0
179
Member Avatar for drweere

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?

Member Avatar for javaAddict
0
48
Member Avatar for morrigan.c

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 …

Member Avatar for morrigan.c
0
316
Member Avatar for BestJewSinceJC

It seems that the link has now been rightfully placed at below the last post. Much better.

Member Avatar for happygeek
3
224
Member Avatar for ddempsey96

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]

Member Avatar for ~s.o.s~
0
87
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stefano Mtangoo
0
179
Member Avatar for coolguy_003

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

Member Avatar for anonymous alias
0
269
Member Avatar for gaudi_br

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

Member Avatar for gaudi_br
0
203
Member Avatar for sarath.koiloth

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]

Member Avatar for javagrendel
0
143
Member Avatar for Stefano Mtangoo

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

Member Avatar for Stefano Mtangoo
1
162
Member Avatar for nickbeare

Look into the [URL="http://hc.apache.org/httpclient-3.x/"]Apache HttpClient[/URL] project.

Member Avatar for ~s.o.s~
0
149
Member Avatar for Chrisjj

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

Member Avatar for diafol
0
783
Member Avatar for ahihihi...

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]

Member Avatar for maydhyam
-1
154

The End.