2,040 Posted Topics

Member Avatar for toring

You need to look at your `paintComponent()` method... Where do you display the ball?

Member Avatar for JamesCherrill
0
232
Member Avatar for rchawdhari

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

Member Avatar for cereal
0
1K
Member Avatar for sumaya_ak

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!

Member Avatar for stultuske
0
173
Member Avatar for jelly46

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 …

Member Avatar for jelly46
0
153
Member Avatar for pwolf

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 …

Member Avatar for jwenting
0
715
Member Avatar for nikk8a

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 …

Member Avatar for nikk8a
0
1K
Member Avatar for david.roun.7

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

Member Avatar for david.roun.7
0
293
Member Avatar for Benny_1

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 …

Member Avatar for Benny_1
0
288
Member Avatar for somyms

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 …

Member Avatar for Traevel
0
173
Member Avatar for Alex_27

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()` …

Member Avatar for Taywin
0
1K
Member Avatar for Wandaga1

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 …

Member Avatar for Taywin
0
246
Member Avatar for divyakrishnan

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 …

Member Avatar for divyakrishnan
0
207
Member Avatar for Mr.M

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.

Member Avatar for JamesCherrill
0
2K
Member Avatar for ramu bandela

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

Member Avatar for Taywin
-2
82
Member Avatar for strRusty_gal

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?

Member Avatar for strRusty_gal
0
238
Member Avatar for ultmt.punisher

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.

Member Avatar for ultmt.punisher
0
491
Member Avatar for Yorkiebar14

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 …

Member Avatar for hericles
0
733
Member Avatar for faridreza99

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

Member Avatar for JorgeM
-1
89
Member Avatar for preetchannay

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 …

Member Avatar for preetchannay
0
142
Member Avatar for joachimanderson

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

Member Avatar for joachimanderson
0
207
Member Avatar for wfray

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

Member Avatar for Taywin
0
281
Member Avatar for asaidi

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?

Member Avatar for Taywin
0
236
Member Avatar for Webville312

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

Member Avatar for Webville312
0
192
Member Avatar for ultmt.punisher

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

Member Avatar for ultmt.punisher
0
2K
Member Avatar for ParPau

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 …

Member Avatar for Taywin
0
564
Member Avatar for s.zangeneh

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.

Member Avatar for Taywin
0
195
Member Avatar for nadiam

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?

Member Avatar for diafol
0
618
Member Avatar for biojet

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 …

Member Avatar for Taywin
0
148
Member Avatar for gcclinux

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

Member Avatar for gcclinux
0
219
Member Avatar for moaz.amin.37

How about using Google with keywords - java doc api PrintWriter - instead of asking someone else to do it for you?

Member Avatar for moaz.amin.37
0
197
Member Avatar for Mohamed_26

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 …

Member Avatar for Mohamed_26
0
634
Member Avatar for hwoarang69

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

Member Avatar for Taywin
0
373
Member Avatar for leghorn

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?

Member Avatar for Taywin
0
101
Member Avatar for brittney_2

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 …

Member Avatar for ~s.o.s~
0
753
Member Avatar for momonq1990

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

Member Avatar for Taywin
0
185
Member Avatar for xxwikkixx

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 …

Member Avatar for Taywin
0
260
Member Avatar for moaz.amin.37

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.

Member Avatar for moaz.amin.37
-1
333
Member Avatar for palanisvasam
Member Avatar for screenedcreamy

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 …

Member Avatar for screenedcreamy
0
235
Member Avatar for furalise

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 …

Member Avatar for furalise
0
92
Member Avatar for brittney_2

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

Member Avatar for brittney_2
0
215
Member Avatar for Priti_P

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 …

Member Avatar for Taywin
0
177
Member Avatar for lyleholc

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 …

Member Avatar for Taywin
0
275
Member Avatar for Jack_9

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 …

Member Avatar for almostbob
0
171
Member Avatar for samuel.tenderfeet

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 …

Member Avatar for stultuske
0
149
Member Avatar for asaidi

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 …

Member Avatar for asaidi
0
301
Member Avatar for SpottyBlue

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

Member Avatar for Taywin
0
350
Member Avatar for Adami

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 …

Member Avatar for Adami
0
3K
Member Avatar for ACRDepos

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.

Member Avatar for ACRDepos
0
367
Member Avatar for shivakr

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

Member Avatar for happygeek
0
195

The End.