458 Posted Topics
Re: The DBMS will take care of that, you do not have to worry for that. | |
Re: You can assign [I]only[/I] access privilege to the standard set of records (I assume they are in a separate table) to the group. So that they can certainly generate other records using values from the standard records but not edit/delete them in anyway. | |
Re: You could write a MySQL query for this like: [code=sql] SELECT Name FROM tablename where type = '<type>' and price <= '<price>' [/code] Once you have the result for this, you could show it using PHP. | |
Re: @naveen : Good point there about the keywords, but I guess he has framed his question wrong. @OP : Would you be able to define a custom search in more detail or reframe your question, cause "district = all, typ = all and price = all" is not a search … | |
Re: You check the mysql binary log, so as to know what the server was doing at the time of the crash. | |
Re: [QUOTE=chandanapiit;816133]hi stultuske can u help me for making online examination interface in java[/QUOTE] Lame, Lame, Lame !!! I have no other words for you. You don't check the dates of the last post, you don't care to check for the forum rules, and on top of that you ask a … | |
Re: Latitudes and Longitudes would help you in almost zeroing in on any place. When detailed right down to seconds you can pin point any place on the globe. But do you always want such pin pointed accuracy ? Or sometimes you would do with just identifying the "region" of the … | |
Re: Well I guess someone is going to close this thread pretty soon, but just before that happens let me squeeze in my views from what I have observed in this thread. (I had read it earlier too) Okay, IMtheBESTatJAVA, I am wanting to believe you that you did not disguise … | |
Re: @weblover : The thing is not that only when [I]all[/I] the checkboxes are selected the code would work. [I]Only[/I] when the [I]last[/I] checkbox that you add is selected, that the code would work. Reason : Something similar to what you were doing with your placement of labels earlier. You use … | |
Re: @umairsario : Do you think you have added any thing in your post apart from whats already mentioned ? I appreciate you are trying to help someone but if you care to look at the post of masijade, he exactly mentions the same thing. You, actually degrade the value of … | |
Re: If you see the javadocs for [URL="http://java.sun.com/j2se/1.4.2/docs/api/java/net/ConnectException.html"]ConnectException[/URL] class, it tells you that this could be typically due to the fact that no process is listening on the port. Make sure the port number that you are using (32133) is being listened by some process. | |
Re: Ever heard about [I]de[/I]serialization ? You can deserialize a previously serialized object, so that it represents an object exactly matching the one that was serialized. | |
Re: Instead of asking us you can write out the main method and other required methods for each of your assignments one by one and (as mentioned) test the code for multiple inputs. If the outputs exactly match what you have been expecting the program to do to the input then … | |
Re: Firstly gabec94 I would like to note a few things that I have observed while going through this thread. You are not taking any heed of the advice and help given to you and just want to stick to the method of doing something in the langauge that you have … ![]() | |
Re: Use a query that groups users by status and in the second column put their count. Try to form a query for this. | |
Re: Detail out your problem, I ain't getting from this description what it is that you want to do exactly. | |
Re: Depends upon how much data you would want to store. [icode]varchar[/icode] is a choice, [icode]tinytext[/icode] - max 255 chars, [icode]text[/icode] - max 65535 chars are other options. There are also [icode]mediumtext[/icode] and [icode]longtext[/icode]. Choose according to your needs. A complete summary of MySQL field types can be found [URL="http://help.scibit.com/Mascon/masconMySQL_Field_Types.html"]here[/URL] | |
Re: For you first question, read the tuttorial in the JSP section, by peter_budo. Extracting only the information of some specific column depends on the query you write. For your second question, search this forum as there have been several queries about crawlers in java. They have been given enough help/pointers. … | |
Re: >i want to Write a program to download a website from a given URL Umm.. Well you can proceed... > plz give me solution for this as early as possible its urgent...... What ?? Didn't you just said [B]YOU[/B] were going to write the program ? | |
Re: Why do you think your trainer gave this to you to be debugged, only for you to pass it onto somebody else, naah, he wants [I]YOU[/I] to do that, so probably there's something in it that he wants you to learn. Step through the program, see whats it expected to … | |
Re: From your program I don't see any OOP concepts into play here. Create a class Person, create a class Relation which determines the type of relationship (this could be a string representing the relation). Create a class Association that has a Relation object and a Person object. Then you could … | |
Re: You need to have a member variable of type Other in your Array class, then in the constructor you initialize it to whatever is being passed to you. And then you make use of this variable to access methods of Other class. Note : The methods of the Other class … | |
Re: [QUOTE]Can anyone think on any programs ideas that I can create to practise?[/QUOTE] Hmm...Well yes, we can do that, but may I know one thing before that, why can't you do it on your own ? Cook up some ideas just like that, they could be anything, and start working … | |
Re: Did [URL="http://www.daniweb.com/forums/thread99132.html"]this[/URL] miss your attention or you ignored it ? Cause it's [I]really[/I] difficult to miss that. | |
Re: [QUOTE=sannidhikumar99;812428]i am developing a small record management application for a school. Tasks will be Add Record, Edit Record, Delete Record, List Records. Each Record contains: Name(max 100 char), Age, Notes(No Maximum Limit) No database should be used. All data must be stored in one or two files. Listing records should … | |
Re: We wont post syntax over here directly show us your effort for it first. Also if MySQL asks for super privileges, you may as well have them. It certainly won't show incorrect errors. | |
Re: Yes, ddanbe comes up with a very good solution here. Yes one might think about a comment in either a good or bad way but there is a certain degree to the goodness of the comment and to the likeness of the rep giver. Currently there's no way to distinguish … | |
Re: [code=java] public PaymentDDJ(); [/code] This is wrong, you need to provide a method body to the constructor. Also this is wrong : [code=java] String header = Format.justify('l', "NAME", 12) + Format.justify('r', "MONTH", 15) + Format.justify('r', "CURRENT BALANCE OWED", 15) + Format.justify('r', "INTEREST OWED", 15) + Format.justify('r', "PRINCIPAL OWED", 15) + … | |
Re: Read the documentation given on the URL mentioned, you can either use it directly or extend the classes yourself to add customised behaviour. | |
Re: You aren't using a password for the root account and your access is denied, this certainly means that the root account on localhost does have a password. Initially the root accounts created by the install script in MySQL do have an empty password, but as mentioned above your server does … | |
Re: Depending on the attributes that different seats may have you can choose to either implement them as different type of seats or keep a 'type' attribute in the Seat class that gives their type, if they do not differ much. >also i have to make sure that the seats are … | |
Re: From what comes to my mind immediately after seeing this, you are in effect copying only about half of the string since you begin by assigning i to 0 and j to the last character of the word, then you increment i while simultaneously decrementing j. i and j will … ![]() | |
Re: It's a bit difficult to give an example of memory leak, because it almost always happens accidently without the developer even knowing it. Memory leaks bugs almost always plant themselves so subtly that they are often too difficult to trace even for an experienced programmer and the only way he … | |
Re: See the API docs for the [URL="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ProcessBuilder.html"]ProcessBuilder[/URL] class. Also check the ErrorStream for the process to check for any errors. Go through [URL="http://www.daniweb.com/forums/thread171319.html"]this[/URL] thread. | |
Re: The above two posts have already informed you about the "side-effect" of the pointer assignment. I just want to add to it that would throw some light on the memory leak part. When you permanently loose the base address of the memory chunk pointed to by b, you also loose … | |
Re: [QUOTE=idb_study;807631]Very sorry but I couldn't get the source of the problem. Did you compile it? did you run it? whare does the problem lie?[/QUOTE] The post above your post, specifies [B][I]exactly[/I][/B] where the problem lies | |
Re: [code=java] listModel.addElement("Cathy 7654328901"); listModel.addElement("Jessica 1654223789"); listModel.addElement("Larry 2766541397"); listModel.addElement("Marry 9871265347"); listModel.addElement("Sam 9871236453"); listModel.addElement("Smith 4512344879"); [/code] These lines cannot be in teh class body, they need to be inside some method of the Address class.Same goes for these lines: [code=java] list.setSelectionModel(ListSelectionModel.SINGLE_SELECTION); list.setSelectedIndex(0); list.addListSelectionListener(this); list.setLayoutOrientation(JList.VERTICAL_WRAP); list.setVisibleRowCount(); [/code] And these : [code=java] contacts.addActionListener(listListener); contacts.getDocument(); … | |
Re: Beautiful because the word itself is so reminiscent of it's meaning. | |
Re: [QUOTE=ahihihi...;801169]:* I hate this thread.. :* ahihihii...:twisted:[/QUOTE] Why do you have to put your username after every post of yours ? Just a question that comes to mind seeing your posts. | |
Re: As Ezzaral has mentioned, I would like to see more code, as these lines are perfectly fine. | |
Re: I am glad that you failed, you were in a test and you weren't knowing such trivial things. I am sure you had been given enough time to learn them, obviously as it appears from your condition, you passed the time, without actually putting it to good use. It's good … | |
Re: I am unclear of what you are trying to do here, so correct me if I haven't understood but instead of copying choices to result and then returning back result, why not return choices. | |
Re: Yes, I agree with stultuske's method of keeping the return type as int and returning -1 where the number isn't found. Besides being simple, this method is a good practice. Using null might cause the caller method to throw a Null Pointer Exception if the exceptional condition is not handled. | |
Re: VernonDozier has already given you the directions, if you have taken a look at them you would understand it on your own. To tell you in brief about Operator Overloading : It is to attach a new/different meaning to an already existing operator in the language. This is called [B][I]overloading[/I][/B] … | |
Re: Well there can be thousands of correct values here for the variables that you mention. For ex: ABCDE could be 4 and EDCBA could be 16, ABCDE could be 16 and EDCBA could be 64, etc, etc. So you cannot exactly get to the values that you mention. Do you … | |
Re: @jpp10 : The StringTokenizer is legacy class and it's use is not recommended, the java people themselves say this. You can find it in the documentation provided for that class. Use the [icode]split()[/icode] method of the String class as suggested. | |
Re: This depends on your relational design. As you mention information about your project, the hosts are "service providers" and the users are "service consumers/takers". You need to decide whether what relationship the hosts and users share. If a user can have content hosted on multiple hosts then there is clearly … | |
Re: You need to loop your code to print all the tokens. Something like: [code=java] while(st.hasMoreTokens()){ // parse every token OR print it OR do whatever } [/code] Since currently there is no loop, it exits after printing just the first token. Also note, the [icode]StringTokenizer[/icode] class is a legacy class … | |
Re: [code=cplusplus] for(int x=1;x<=(num);x++) [/code] Since 1 is not a prime number don't begin your loop with it, rather initialize x to 2. [B]Definition of prime :[/B] An integer [I][B]greater than one[/B][/I] is called a prime number if its only positive divisors (factors) are one and itself. | |
Re: Also furthering to what KevinADC has already mentioned what is the criteria that you want to print values on ? We can't figure from two values which values you want to print and which ones you just need to ignore. |
The End.