2,040 Posted Topics
Re: You need to look at your `paintComponent()` method... Where do you display the ball? | |
Re: Before anything else, if you want to ask a question, create a new one. Please do not PULL an old thread of someone else to ask a question. Now, you are talking about starting value of auto increment value? From your script, it could be... create table invoices( years char(9) … | |
Re: What is in line 24 for (forward slash)? Another part is that you close/end your `actionPerformed` method (`}`) on line 168. You can't start with `if` again afterward. What you need to do is to properly indent your code! | |
Re: Depends on how you control the responsive menu with. If you treat it as a unique object (with id value), then duplicating it would not work because an id means only one can be present at a time. I can't open your jsfiddle for some reason so I can't take … | |
Re: You are talking about text editor [VIM](http://en.wikipedia.org/wiki/Vim_%28text_editor%29)? If so, I prefer it over Eclipse because Eclipse is bloated. Even though there are a lot of things you can do on Eclipse, it is so big that would take me a lot of time to set up a small or test … | |
Re: If I understand you correctly, you are trying to call a Javascript function, which is located inside the parent window, from an iframe (child of the parent window). If you are using JQuery, this [post](http://stackoverflow.com/questions/2550858/how-to-call-parent-window-function-in-chrome-browser) may answer what you want (using dolink). However, the function seems to be forbidden to … | |
Re: Could you simply subtract the damage from orgelife in your `stabing()` and `punching()` function when the player successfully attack the orge (line 36 & line 48)? Unless you are talking about 1-hit KO thing (which is what you are doing right now). | |
Re: After reading your assignment page, do you need to implement only the `move()` method? If so, it is not that difficult. By the way, ignore the video because it is simply to illustrate the concempt but it is not exactly the program is going to be. What you need to … | |
Re: Hmm... I don't know, seriously... How about start from reading? The [WikiPedia](http://en.wikipedia.org/wiki/Artificial_neural_network) may help you a bit. If you think you understood the theory but do not know how to apply on an application, that would be a completely different story. You just feel disconnected. I too was disconnected and … | |
Re: You need to explain how your program works, what what is your expectation, and what is the program is doing outside your expectation... It is tidious for us to look at quite a long code to try to figure out first. By the way, on Line 73 you did `addMouseListener()` … | |
Re: I guess many eyes on the same code help discovering all of issues in your code. You need to redesign your logic here. What are different reasons to pick between a for-loop and do-while loop? One distinct reason is that a for-loop should be used with a pre-defined minimum/maximum value … | |
Re: And what is your question? If you want to append more content to the child window (so call pop up), then it is possible but a big mess. Why? Because the idea of creating a separate window for pop up is blockable from browser setting (and most browsers block pop … | |
Re: Just a little improvement on split function. You could use the regex pattern as `split("\\s*,\\s*")` and that would handle any white spaces around the comma. As a result, you do not need to `trim()` on each token later on. | |
Re: [Spring](projects.spring.io/spring-framework/) and [Hibernate](hibernate.org/) are 2 different frameworks (but could be combined). You could choose any web application that requires database access for your project. Is that too hard to find by yourself? | |
Re: I guess line 7 chould be `public B(int i, String a, String b) {` so that it would imitate line 3 in the OP post? | |
Re: Check logic in your line 5 again... Shouldn't it be ((w || x || y) && z) instead of ((w || x || y && z))? And by the way, the "extension" for a text file is .txt, not .text. | |
Re: The behavior doesn't seem to be from the database table itself but could be a hidden bug in your application. It is not easy to catch this kind of bug unless you are lucky enough to create the exact condition. I would rather look through your code than to assume … | |
Re: And how come this one is posted here in Computer Science? It should belong to [Window7/8](http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/38) forum... | |
Re: I would suggest you on the entering image file name. Instead of let user enter a file name, you should rather have a "browse" button or similar to open up a file selector. This way, user would be able to select a file from anywhere and the file should exist … | |
Re: >a members can see ALL the members on the site and can see if they have already added them to their favourites Well, your requirement seems to be 2 parts -- select all members but self and check for any members that are not in favourite. You may be able … | |
Re: You would need to elaborate the "certain alphanumeric characters" or I am not sure what you mean by that. If you are looking for number only (which could be both decimal and float), you could use the built-in function isNaN() which validate whether the incoming argument is not-a-number. //i.e. isNaN("abcd") … | |
Re: Do you have read permission for the file and/or the directory (for world too)? Also, you have the .jar file in /usr/share/java directory? Also, this [post](http://stackoverflow.com/questions/8952696/java-google-app-engine-and-google-cloud-sql-running-on-local-dev-server) may relate to your problem? | |
Re: What type of SMTPSecure you add into the email prefix? And the port number would need to be matched with the SMTPSecure type (25 is not really what gmail currently used to authenticate because it could be blocked). The port number for SSL is 465 and TSL is 587. Also, … | |
Re: I would think that you would do the data shuffling or randomly select values from an array (in your case). Do both does not really increase the randomization but rather overkill... | |
Re: Do you know the pattern before hand? If so, have you ever tried edge detection before? Extract the edge from both the original and the marked image. Then compare both edge images which would be much easiler than comparing 2 full images. Another method, you could also compute feature points … | |
Re: What are in the first 2 lines (with dots)? Also, your html tag could simply be a tag without xmlns property (unless you are dealing with some xml). Also, your variable `incomingnum` is wrong in your `if` statement in line 9. | |
Re: Is it the single quotation in the data that messes up the display? Have you tried escaping any characters like that (single/double quotation) in your display? ![]() | |
Re: If you are looking for code, then I won't give you. If you are asking for idea about how to deal with it, then here it is. First, you need to read the data in from both files. Create another variable for saving new data. Then iterate through both data … | |
Re: Hmm... isn't `mysql_fetch_array` returned an array, not a hash (as opposed to what you are using now)? So using `$info['now']` would not be correct. What you should be using is `$info[0]`??? Or just use `mysql_fetch_assoc` instead??? | |
Re: How about using Google with keywords - java doc api PrintWriter - instead of asking someone else to do it for you? | |
Re: Are you sure that the database URL for `$host` is really that one? I doubt it is correct. The `$host` value is NOT the domain name, but it must be the database URL. The easiest way is to use the IP address. You need to check with your host for … | |
Re: Huh? You passed in only 1 argument in creating new Player object but require 2 arguments in the Player constructor class? After looking [Body API doc](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/physics/box2d/Body.html), there is a method called `setTransform(Vector2, float)` which should allow you to set the position but it takes the angle of rotation as well. … | |
Re: You need to expand the grammar to something that is more finite (in different states). Then you determine to draw DFA and/or NFA from there? | |
Re: Could you give an example of what you want to do? Also, are you sure that one line is equal to 1 regex pattern & replace? From my understanding, you want to replace 2 different words with 2 different values in one regex pattern. If so, I am not so … | |
Re: Here is one way of doing it in JavaScript... Also, if a user refresh the page, the user must select at least once before options in the second selection appear again. <html> <head> <title>Test</title> <script type="text/javascript"> function changeOptions(selObj, changeSelectId) { var targetSel = document.getElementById(changeSelectId) if(selObj && selObj.tagName && selObj.tagName=="SELECT" && … | |
Re: You shouldn't use Thread class in there. You may use Handler class instead to do the pause/sleep what you are doing - [example](http://stackoverflow.com/questions/1520887/how-to-pause-sleep-thread-or-process-in-android). Also, why there are 2 `onToggleClicked()` methods with exactly the same prototype? This is not a polymorphism because both have the same argument number & type. As … | |
Re: Well, you are asking us to answer your assignment question. stultuske has pointed out the source which would give you the answer if you read. So it is your reading assignment now. | |
Re: And one issue may be from the image is not found? ![]() | |
Re: Please do not expect that there is only one best algorithm for each problem because it is most likely not true. Every problem can be solved in different best way depending on many factors, so you must not stick to only one algorithm/data structure as the best solution for each … | |
Re: Are you talking about assembly? Because there would be High order bits & Low order bits. If it is, then you should know what "overflow" means. If you attempt to assign values that is above the capacity of the bits can take, it could cause unexpected result or break your … | |
Re: One tricky part of the regex in the example is at `.*` part. If I remember correctly, by default regex matching will use greedy algorithm. In other words, it will keep looking for the pattern as far as it could after `.*` to match, not the first match it found. … | |
Re: Have to tried adding `else` condition in your function to see if it actually gets into one of the if-elseif statement? Also, you have another `alert()` which is not needed inside your function. PS: I am not sure about creating calling a function on contents added by Ajax. If the … | |
Re: I am not sure I can help you (and may be too late). I have never set up Apache to run Perl on Windows. Anyway, if you could set up Apache to run, then you may need Perl CGI module to be installed as well. By default, the module may … | |
Re: Hmm.. I am not sure why you are calling a style in CSS as a code snippet? And when you said "my program isn't working correctly," to me it implies that you have a "software" running off the code you wrote. However, I have to change my mind when I … | |
Re: 1) line 26, setAccountNumber(int) does not set to anything but its own number? Shouldn't the argument be named 'nextAccountNumber' instead of 'AccountNumber'? 2) line 62~64, I smell fishy here. I am guessing you want to assign a String "JohnDoe" to line 64 instead of the variable named `JohnDoe`. I am … | |
Re: Maybe this [post](http://stackoverflow.com/questions/2983248/com-mysql-jdbc-exceptions-jdbc4-communicationsexception-communications-link-fai) could help you debugging your system. Even though, the post is a bit different because the person could not get the connection, in your case, there is a huge delay in the connection and it finally times out. You may need to check your connection between your … | |
Re: Next time, please explain your "err" in detail and include the error message (per JamesCherrill post). Just this time I will show you why. int[][] matrix_X = new int [3][2]; int[][] matrix_Y = new int [2][3]; for (int i=0; i<matrix_X.length; i++) { for(int j=0; j<matrix_X[i].length; j++) { matrix_X[i][j] = (int)(Math.random() … | |
Re: Could you try to change the private method name to something else? It is confusing. Also, your condition looks odd and I don't think it works. 1) a[i]/10==0 ; where a[i]>=0 and a[i]<10 (note, a[i] is an int!) 2) a[i]/10==0 superceeds a[i]/100==0 because if a[i]/10==0 is true, there is no … | |
Re: Please explain how the difference it looks in IE and others. Dumping the page to others to take a look and debug the whole thing from scratch is not a nice way to ask others to voluntarily help you for nothing in return. | |
Re: How about a simple forum application? No need any special functionality yet. May not even need a log in yet (but may add capcha on the page). |
The End.