2,040 Posted Topics
Re: It looks like you are missing libraries for it to compile... Did you follow the prerequisites on their [guide](http://www.aptana.com/products/studio3/getting_started)? | |
Re: rotten, it is calling *cmd.exe* to execute a given command line (via the program) on Windows. Supposedly, the given command will run something that returns a value back to the caller. | |
Re: So you may not be doing it correctly. [Here](http://stackoverflow.com/questions/2914936/mysql-foreign-key-constraints-cascade-delete) is a link to an explanation from someone who has already asked similar question on another forum. I can't explain better than that... | |
Re: Why would you use eval() to call the function? What you could do if the script is being added to the DOM after the call, you could simply call it right after the add (and still inside the success & ready status check). | |
Re: From what I glance at your code, are you sure that an int can handle 20 digit numbers? That may be the first problem you need to solve -- data type -- before you attempt to find a number... | |
Re: You just keep going into a loop until the number is equal to 0. Simply append the value from % to the string and then divide the number by 2 (int should not keep the precision anyway). Once you are done with the whole loop, you will get a reversed … | |
Re: If you want to understand why, put `System.println("Read Content Line: "+line);` at line 17. I have a feeling that you may not completely know what the useDelimiter() method is doing... Also, you mix next() with hasNextLine()... It would be better to use hasNext() with next() so no unexpected result would … | |
Re: I am sorry, I am confused by your question? What is "it problem"? What does it mean by "written query it"? You have already completed the task you are showing, what else do you need to do more? | |
Re: Maybe this [link](http://msdn.microsoft.com/en-us/library/ms228394%28v=vs.90%29.aspx) could help you... | |
Re: Err... Wrong forum... Mod, please move this post... Also, go to [this forum](http://www.daniweb.com/web-development/javascript-dhtml-ajax/117) or [this forum](http://www.daniweb.com/web-development/php/17) and you should find an answer to what you are looking for. I have seen the exactly the same question before... | |
Re: What do you mean by "CS field"??? Are you asking for difficulty to solve a problem applying set theory or else? Maybe [WikiPedia](http://en.wikipedia.org/wiki/Set_theory) page is what you want? | |
Re: I agree with stultuske. To do that, one needs to override the system (OS) keyboard short-cut. There are different OS with different short-cut... Also, don't think any OS would simply leave the access for an external program. | |
Re: Err... You mixed jquery with pure JS... It is quite confusing to have to think back and forth; besides, it is not neat. Anyway, you should think about how it works first. When a radio button is clicked Check what value is being changed to (clicked or unclicked) If clicked, … | |
Re: If you are going to implement an authorization system from scratch, it will be a big headache from what I am seeing now. You may need to look for a frame work/plug in for your current back-end system... | |
Re: Let's get back to the checking odd/even second first. What do you mean by not knowing how to check second? If I remember correctly, GregorianCalendar class has getTimeInMillis() method which return primitive long for getting the time in milli seconds because it extends from Calendar class. Once you get the … | |
Re: Err... It's been 2 years since I coded Matlab last time... You are going to create a learning agent by passing some sample data for it to learn using decision tree? If you are going to use decision tree, you must be sure that you can find all factors and … | |
![]() | Re: Try something similar to the script below... The *status* is whatever number you want to handle... success: function(data, textStatus, XMLHttpRequest){ console.log('Error: ' + textStatus); }, error:function (xhr, ajaxOptions, thrownError){ alert(xhr.status); alert(xhr.statusText); alert(xhr.responseText); } |
Re: Hmm... I am not sure what you are doing here. Are you trying to associate the table as 1 to 1? When you use association 'has_one' and 'belongs_to', the table which use the association 'has_one' does not need to have a field of the other's ID, but the one with … | |
Re: Line 8, you may need a port number for your URL? Such as `http://localhost:8080/...` | |
Re: What do you mean by that? You mean using a ruby script to read data from a HTML file, and then create an excel file from it? To read in a HTML file, you simply open the file and read the content using File class. To parse it, you could … | |
Re: Could you try to use double quote in place of single quote? If it is inside a double quote already, use a backslash with double quote (\") to escape the double quote inside the existing double quote. | |
Re: I would like to comment on using Boolean object and the "if" statement. I am not sure that the Boolean object is that useful in JavaScript. The only reason I would use it when I want to make sure that the incoming argument is really a boolean by checking the … | |
Re: It is possible but depended on a certain factor -- how the cookie is stored. If you know how it is being stored, you would know how to retrieve it. | |
Re: Actually, the code contains duplicate declaration. JavaScript will stop working if you attempt to declare the same variable in the same scope (line 112, 118, 124, ...). | |
Re: Line 15, where is the curly bracket of while loop? If you do not have it, it will execute only sum=sum+j forever... Also, other if-statement/for loop in your Java code, there is NO curly bracket to define the scope... | |
Re: When you talk about *Time complexity*, do you consider *space* as well? If not, then you may try... /* LineDataObject - lineNumber (int) - content (String[]) // each string is a word of the line LineDataComparison - lineObj (LineDataObject) - duplicatedLineNumber (ArrayList<Integer>) LineComparison - allLines (ArrayList<LineDataComparison>) lineComp <- a LineComparison … | |
Re: They don't work because both of them have the exact function name -- configureDropDownLists. What you may do is to change the function name from one of them and don't forget to change the call name to match the name you change. i.e. change the function name in portion #2, … | |
Re: If it is really a function, then try drinks.compact() instead. Using drinks.compact means you are calling for the value of its local variable named 'compact'. | |
Re: Also, you may need to read about dynamic array and its purposes. I don't think JavaScript has an explicity dynamic array data type (such as ArrayList in Java). Then you may understand better about when and why you sometimes want to change your array size... | |
Re: When you said "dynamic form" what do you want the functionality to be? The question is a bit too broad for me. If you want the validation to happens without going through the server, you could use the form tag 'onsubmit' to do the work for you. If you have … | |
Re: >The sum of the sqaures of the 2 larger interagers is 12 less than 4 times the square of the smaller number. This is definitely not a Java problem but a word problem. Though, I will help you out a bit this time. Break the question down into parts. 1)sum … | |
![]() | Re: There are many ways to do it. You could load them all, display them in the same location, and manipulate the display using *display* or *z-index* property. You could also dynamically call each of them from their original site (not a preferable way). How do you construct your HTML? |
Re: Why are you using an anchor tag and call it button? Anyway, if you want to only change the display text, you could simply do it as... <a href="#" class="planpeople" onclick="javascript:this.innerHTML='View in MyPlans'">Join</a> If you want it to do more than just changing its display text, you may need a … | |
Re: Are you sure you are asking about Java or you are asking for JavaScript? | |
| |
Re: There are plenty of ways to do it. Also, depends on what type of game you want. However, there is a problem with animation part that browsers seem to leak memory when the time goes by. Anyway, there is no such a tutorial for game programming purpose. However, you could … | |
Re: I don't think that error indicates the crash of 2 simultaneous call of query. It looks to me that the error is from a certain service from your server is not running. As a result, there is no listener from your database server to handle the request and that "couldn't … | |
Re: In your query, I have a hard time to figure out how a "log in" user is being distinguish from the query. Also, there are multiple mistake in your sample query above and I am not sure what you mean. What is "colname"? Why there are 2 "and" in the … | |
Re: Why do you have so many 'end if' for each if - else if - else statement??? Also, where is the 'end if' for if(phyz>Chem) or if(Chem>phyz)? | |
Re: >my code compiles when entering a word show the common words in two txt files. instead of entering the word, I want to read a txt file, the txt file have different words between two txt files, contents of this text file matches contents of other two text files, show … | |
Re: No no, you don't need JQuery but you may want an external library. I used to used ZeroClipboard library and it worked for a while. Unfortunately, it no longer works for me due to certain changed in browsers' securities. Don't know whether they have updated it already. Nowadays, I have … | |
Re: > For example, the strings abac and bbc occur interwoven in cabcbabdcca (cabcbabdcca) along with other characters (in black). The color doesn't show up so I am not sure what you mean by "interwoven"? Please give a better example or try to add ASCII visual instead. | |
Re: I believe this is a homework question and it is not "clear" to me for certain parts. When it said "find," does it mean to simply display all the repeat or store all of their indexes? Anyway, if you want an algorithm, the best you could do is O(n+m) where … | |
Re: Here is your code in the forum's code tag... I think you should combine all the parts where you ask for bursting time of each thread instead of separate them all... Make the code lengthy... By the way, you could do the tick with 1 time unit each until all … | |
Re: Yes, you can do it in may different ways. Below is one way to do it to match your example. If you have any question about how it works, please ask. One big note is that the property "id" should be unique to every element. The script you gave here … | |
Re: Create & destroy an image div may not be a good idea if the client browser needs to get the image to load after the page finished loading. Show and hide trick as krish said is a good way to deal with. You could also make use of z-index too … | |
Re: Follow the Pseudo code and you should be able to do it because the code explains itself. | |
Re: I'm not sure if the problem is actually from your script. I don't know how your script function in the page, so it is difficult to say what causes it. PS: Your script is very lengthy. You could use a loop to do the bar1 to bar6 portion outside the … | |
Re: Mod, delete this please... Necro post (old old)! | |
Re: Have you tried with another computer? It might be your IE9 setting that does not reset the display? |
The End.