No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
43 Posted Topics
Re: Is C# not an OO language, can you not just return an Object cantaining the two attributes. By returning a Class (Object) you have much more freedom. | |
Re: OK, count me in. I have been processing units for team 0 (Default) username 'switch' for some time. I have now joined the DaniWeb Folders team. It has reset my work unit count back to zero though :( oh well. cscgal, DefDog will get that number one spot if you … | |
Re: A good place to start [url]http://www.apache.org/[/url] The Apache HTTP Server project homepage [url]http://httpd.apache.org/[/url] The Apache HTTP Server project download page [url]http://httpd.apache.org/download.cgi[/url] You will need: # Win32 Binary (MSI Installer): apache_2.0.54-win32-x86-no_ssl.msi or # Win32 Source: httpd-2.0.54-win32-src.zip | |
Re: If you don't want duplicates, why not use a Set. Like the HashSet. A Set enforces no duplicates. For further information on all Java Collections, please read: [url="http://java.sun.com/docs/books/tutorial/collections/index.html"]http://java.sun.com/docs/books/tutorial/collections/index.html[/url] | |
Re: uth, You can create a new thread at any time. Then if you so desire, let the 'main' thread die by letting the 'public static main' function return. If the thread you created is a 'daemon' thread the JVM will exit all together. However if the thread you created was … | |
Re: You would do that kind of thing in the client application displaying the results | |
Re: Hello, I use Java & Oracle, not .NET & SQL Server. Nevertheless, unless I am missing something about .NET, you need a 'commit' after the update and before you close the connection. Otherwise after the connection is colsed all your updates will be rolled back by the database by default. … | |
Re: Hi, Use 'sysdate' - without the quotes. example: select sysdate from dual / Kate | |
Re: campkev, I don't have much experience with Microsoft SQL Server, I use Oracle. However this is how I would approch it in Oracle. The syntax may be different in SQL Server but the principal will be the same. select count(1) from transfer t, account a1, account a2, where t.toaccount = … | |
Re: Hi, Remove "#!/bin/csh" from your script. This instructs the shell to begin a new shell session to execute your script. This is why it does not change your 'current' directory. It is the 'new' shell session which changes directory and then that session exits when the script is done. Kate | |
Re: Poornima, This sample program is trying to use the OCI (Oracle Call Interface) JDBC driver. This is a platform dependant driver. I would strongly recommend researching how to use the Oracle Thin JDBC driver, unless you have specific need to use the OCI driver. The Thin driver is platform indepentent … | |
Re: Ghost, First a rant, then I will help you and then maybe some more ranting. You have not been forthcoming with the details of your problem and the things you have tried to solve it thus far. Yet very forthcoming with a large amount of code. This makes it hard … | |
![]() | Re: Iamthwee, Netbeans uses the Apache Ant build tool to do it's compilation. The Ant build.xml file Netbeans uses should create a jar in a directory called 'dist' under the project folder. As you know the pitfalls of using an IDE I would really recommend learning Ant. OK so it is … ![]() |
Re: Hello, [u]Background[/u] The reason you are receiving the '[b]UnsupportedClassVersionError[/b]' is because the 'bash' shell is finding the default installed 'java' bundled with MDK (Mandrake) 10. You can find which 'java' or 'javac' (or any command) will be run by bash by entering the following command: [CODE]which <command>[/CODE] For instance, below … | |
Re: Hi, There are still several problems in the code, please see comments below: [CODE]// You do not need to pass in the length, a String object already knows its own length // Also you appear to be 'stuck' in a static context (in 'main' I expect), you will need to … | |
Re: Hello, The reason that your query does not work correctly is because by using <> in this manner you are creating a 'partial' Cartesian Join between the two tables. In doing so the query returns you a 'partial' Cartesian Product. Though this fact is masked from you in your first … | |
Re: [QUOTE=Sun Microsystems - J2SE 1.5.0]On Solaris 7 and Solaris 8 SPARC platforms, the upper limit for this value is approximately 4000m minus overhead amounts. On Solaris 2.6 and x86 platforms, the upper limit is approximately 2000m minus overhead amounts. On Linux platforms, the upper limit is approximately 2000m minus overhead … | |
Re: I may be wrong here but do you need to 'escape' the path deliminators, like this: [CODE]String imageFilePath = "C:\\MyDocuments\\MemoryGame\\woodTable.gif";[/CODE] The '\' is not a typo. The first '' escapes the second. Kate | |
Re: This will help you with Set's/List's/Queue's/Map's (Collections) etc ... [url="http://java.sun.com/docs/books/tutorial/collections/index.html"]http://java.sun.com/docs/books/tutorial/collections/index.html[/url] | |
Re: [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url] | |
Re: If you are going to override the equals/hascode methods, please read the following artical first. 'How to avoid traps and correctly override methods from java.lang.Object' [url="http://www.javaworld.com/javaworld/jw-01-1999/jw-01-object.html"]http://www.javaworld.com/javaworld/jw-01-1999/jw-01-object.html[/url] Page two of this artical addresses 'Implementing equals and hashCode'. The whole artical is worthly of a read though. Kate | |
Re: Hi, You say you are running this code from the JProc folder. Why then include '.' in your classpath? as in this case '.' and 'C:\WINDOWS\Desktop\JProc' will be one and the same thing. I am just wondering if this could be causing this strange problem. Try removing it. Side Note: … | |
Re: Hi Jerry, Welcome to the community! That lightning storm seems to have caused you some real problems :/ I hope you enjoy it here and can find what your looking for. Kate | |
Re: Another excellent editor is VIM ([url="http://www.vim.org/about.php%29"]http://www.vim.org/about.php)[/url], think VI with buffers (multiple files) and syntax highlighting etc ... I couldn't be without it. Whenever I use any other editor I end up with ":w" all throughout my documents :) it's habbit. | |
Re: Hi, Have you tried increasing the JVM's Heap spaces? Research the '-Xms' & '-Xmx' command line parameters. Example: Java -Xms65536k -Xmx65536k ..... Also '-XX:NewSize', '-XX:MaxNewSize', '-XX:PermSize' & '-XX:MaxPermSize' might be worth looking into. Example: Java -XX:NewSize=30720k -XX:MaxNewSize=30720k -XX:PermSize=16384k -XX:MaxPermSize=16384k ... Does your class implement the Serializable interface? Try the following … | |
Re: Hi Richard, Unfortunately I don't believe this is possible. You cannot output 9 bits to the Parallel Port using java.io.OutputStream.write(int b) [QUOTE]The general contract for write is that one byte is written to the output stream. The byte to be written is the eight low-order bits of the argument b. … | |
Re: server_crash, It depends on more than just the number of rows you are going to store, like the complexity of the querys, the number of concurrent users the DB must service, performance metrics etc ......... Having said that, I would say that a small DB with < a few thousand … | |
Re: sqlchopper, If this SP can be run by something other than the web app, then why not create a batch file which uses 'sqlplus' to connect to the DB to run the SP. This can be scheduled to run automatacally or on demand. That way you can start/stop IIS - … | |
Re: Hi Richard, The JOptionPane.showInputDialog should NOT return until the user closes the Dialog, I quote from the JOptionPane API Class documentation: [QUOTE]All dialogs are modal. Each showXxxDialog method blocks the current thread until the user's interaction is complete.[/QUOTE] Have you tried doing a System.out.println of the username & password variables … | |
Hi, I am running a system which consists of eight concurrent Java processes. All these processes run on the same box and are backend daemon processes which means they are designed to be started and then run continuously, as they are backend processes they have no user interface. Thus the … | |
Re: Lucie Silvas CD Black Adder DVD Monitor (x3) Keyboard (x3) Ethernet switch WiFi access point HiFi separates Scented Candles Archers on the rocks (from last night) - now with no rocks :) Fire Extinguisher | |
Re: I don't see that you have missed anything in setting up the database. What language do you intend to use on the frontend? PHP, ASP.NET etc ... | |
Re: I am not sure what your problem is being caused by, but this is the definition of ORA-01019 if you didn't know. ORA-01019: unable to allocate memory in the user side Cause: The user side memory allocator returned an error. Action:. Increase the size of the process heap or switch … | |
Re: There should be no issue with cabling in this manner as long as the pins are connected to each other in the correct configuration and are live. Have you checked that you have contact from pin to pin through the wall? and that you are not getting any 'crosstalk' at … | |
Re: Try: select g.name, count(1) from group g where g.id in (select u.groupid from user u where u.userid = <put_userid_here>) group by g.name | |
Re: Hi benjamins, Try this: select tbl3.tbl3_name, tbl4.tbl4_name, tbl3.tbl3_flag, tbl4.tbl4_flag from tbl2, tbl3, tbl4 where tbl2.tbl2_id = tbl3.tbl2_id and tbl2.tbl2_id = tbl4.tbl2_id and tbl3.tbl3_flag = 'Y' and tbl4.tbl4_flag = 'Y' and rownum = 1 Also you want to make sure that your tables all have appropriate indexes to ensure a fast … | |
Re: Look into the 'execute immediate' command. You can use it to drop your constraint using the value in PKNAME. | |
Re: As red_evolve has already mentioned, there appears to be no definition for 'zero' in the code you have posted. Since you have already parsed the denominatorField (TextField) into denominator (double) why not just compair 'denominator == 0' | |
Re: There is an error in the classpath you have specified. You have a '' after QTJava.zip, you need a ';' (semi colon) there. Like this: C:\WINDOWS\System32\QTJava.zip;C:\j2sdk1.4.0\bin\;%CLASSPATH%; | |
Re: What do you mean by "artificially generated"? Do you mean an ID generated outside the DB, by your own application?[b][/b] | |
Hi Everybody, I am primarily a Java/Oracle/UNIX developer working for a telecoms company, but I get my fingers in almost all the pies :) I have been developing in Java and Oracle for a few years now, though I have worked with *NIX environments for much longer than that. I … | |
Re: Try 'Oracle PL/SQL Programming' from O'Reilly. I have the third edition by Feuerstein & Pribyl, it covers Oracle up to version 9i. I am not sure if a new edition has been released, but the series is very good. | |
Re: It appears you are trying to setup a one to many relationship between job_title -> employee. This would imply that one employee can have one job_title and one job_title can be assigned to many employees. To do this you should set the tables PK/FK relations like this: job_title table PRIMARY … |
The End.