216 Posted Topics

Member Avatar for katie6580

Those `pos1` and `pos2` variables are always **0** so it's constantly comparing the first two letters. Your `i` and `j` however remain unused.

Member Avatar for JamesCherrill
0
412
Member Avatar for Hamza_9

This is not what they mean by Delegation Principle. Obviously no one will redesign your application to comply with OO principles for you. You can start making your application OO by implementing the first five principles (S.O.L.I.D.). * **S**ingle Responsibility Principle - *Each class should have its own responsibility.* For …

Member Avatar for David W
0
248
Member Avatar for silent lover

In **PromotionAdapter** * The variables should be made private (also instantiating them to null is pointless, Objects will be null by default) * On line 7 you're calling `super()` for no reason. In **promotionfragment** * According to convention, classes should start with an upper case letter and be camel cased: …

Member Avatar for silent lover
0
1K
Member Avatar for Latrell_vie

You could try using the old [Android Development Tools plugin](https://developer.android.com/sdk/installing/installing-adt.html) for Eclipse. It's not the official tool anymore, but at least it's an IDE. Something else that could help is testing/running the application directly on the mobile device. If I remember correctly the plugin supports hooking up your phone and …

Member Avatar for peter_budo
0
503
Member Avatar for LibraryCode

You can create an array in [various ways](https://docs.oracle.com/javase/tutorial/java/nutsandbolts/arrays.html) . String[] array = new String[]{"I","did","not","read","my","textbook","and","I","don't","know","what","a","Google","is","nor","have","I","studied","line","63","outside","of","the","Netbeans","GUI-builder"}; Furthermore, it seems that most of this code was given to you (or generated by Netbeans) and that you haven't done much of it yourself. Until then I will only leave you reading material for your …

Member Avatar for Traevel
0
196
Member Avatar for shayan_doust

As @JamesCherrill pointed out, the add method you're using on line 101 is not the correct way to add data to a JTable. You are passing `null` as a component to `public void add(Component comp, Object constraints)`. If you read the JavaDoc of that method you will find it says …

Member Avatar for Traevel
0
491
Member Avatar for WebMedia_1

The form has no action, so it's not sending anything anywhere. You'll need a page to act as "cart" and process/validate the selected flight there. Also, do not use the deprecated and insecure `mysql` API, but instead use `PDO` or `mysqli`. You can find more information [here](http://php.net/manual/en/mysqlinfo.api.choosing.php). There's also no …

Member Avatar for WebMedia_1
0
494
Member Avatar for Sloane_1

You're using `JOptionPane.showMessageDialog` inside the loop, which is why you'll get a lot of dialog windows. The `input` String you defined is not being filled, so it stays blank. Replace the method calls inside the loop and store the information in `input` instead. Secondly, by using the `integer` type for …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Hendo

> I just can't find any helpful tutorials for writing that code. Have you tried googling for "android proximity alert" and clicking the [first result](http://www.javacodegeeks.com/2011/01/android-proximity-alerts-tutorial.html)?

Member Avatar for Hendo
0
803
Member Avatar for collin_ola

It's in the zip. ![2015-04-17--1429300746_779x460_scrot.png](/attachments/large/2/bd04e48464c4f389527ebe67cdc0f8b5.png "align-center") If you have a lot of different file types to work through, perhaps [Apache Tika](https://tika.apache.org/) is an alternate solution to your problem. It uses POI and many others, but combines them into a single API for mimetype detection and metadata/content extraction. Alternatively, if you're …

Member Avatar for collin_ola
0
315
Member Avatar for seanj1992

Empty the receipt String at the beginning of the actionPerformed. Each order you run by all the checked items and, if checked, append their value to the already existing String. You can set the value of a JTextArea by using its `setText()` method. You could call that at the end …

Member Avatar for Traevel
0
187
Member Avatar for ngocngannga

Try a tool that's on a bootable drive/CD, less chance of overwriting the old files since it won't use the hard drive. There are plenty of linux options, but if you'd rather have something similar to windows you could try [UBCD4win](http://www.ubcd4win.org/index.htm) (follow instructions and burn using a different computer, then …

Member Avatar for NicholaPhillip
-2
218
Member Avatar for slowlearner2010

$.ajax({ type: "POST", url: "a.php", data: postData, success: function(data){ window.open("a.php"); } }); Instead of doing something with the response you open `a.php` again but without sending any data. If you just want a different button to do the submitting you can use [submit()](http://api.jquery.com/submit/).

Member Avatar for slowlearner2010
0
771
Member Avatar for divinity02

`if(Character.toUpperCase(inputChar) ==('F') || Character.toLowerCase(inputChar) ==('f'))` Are you the chairman of the Department of Redundancy Department?

Member Avatar for JamesCherrill
0
257
Member Avatar for Violet_82

Regardless of Entity Framework or your data model, the select query could be something like: SELECT expenseCode.ExpenseId,expenseCode.Cost,expenses.ExpenseType FROM expenseCode INNER JOIN expenses ON expenseCode.ExpenseId=expenses.Id; Which you can put in a view if you don't want to have this query in your code. Though I believe Entity Framework automatically links tables …

Member Avatar for Violet_82
0
306
Member Avatar for Stefce

if($result === false) { trigger_error('Wrong SQL: ' . $sql . ' Error: ' . $conn->error, E_USER_ERROR); if($row = $result->num_rows > 0) { echo "Username doesn't exist."; } else { $sender = getUserData('First Name'); if($where == $sender) { echo "You can't donate to your self!"; } else { $total = $user_mBalance …

Member Avatar for broj1
0
460
Member Avatar for Priti_P

`$("#degree_name_id").focus();` will set focus in jQuery. `document.getElementById("degree_name_id").focus();` will set focus the old fashioned way.

Member Avatar for DaniWebUser_1
0
808
Member Avatar for ravi142

> But I am new be in seo so can suggest me which steps i wan't follow to improvement of site. From your own website: > SEO & Web Marketing > Specializing in Business & Marketing Analysis, Search Engine Optimization tools, Google, Bing, Yahoo and Social Media outlets. Put your …

Member Avatar for mikesmithnew
0
313
Member Avatar for nadiam

Table and chair icons (large tables, small tables etc.) are a fixed size I take it? And a user can then drag them around to place them how they want them, add more/less of the icons. Are you using a coordinate or position system for those icons.. would it not …

Member Avatar for diafol
0
522
Member Avatar for vinsbg

Sounds homeworky so just a hint to get you started: it's all in the details. There is also a physical model by the way.

Member Avatar for 1stDAN
0
928
Member Avatar for CaffeineCoder

Any JavaScript validation is vulnerable. Use server side validation on all fields before allowing it.

Member Avatar for CaffeineCoder
0
993
Member Avatar for Mister17

Java has GUI's yes. > 1.) keep a list of all the movie available. In what? > 3.) On the program itself. Call VLC to play the movie. That's possible in VB.NET, Java and even in web. > 4.) Online capability is not needed. Then why consider web? It seems …

Member Avatar for JamesCherrill
0
238
Member Avatar for john khin

Same as you did with the `<td>`'s. echo '<td><a class="btn btn-success" href="update.php?id='.$row['img_id'].'">Update</td>'; Also, don't use the **mysql** API, it's [deprecated](http://php.net/mysqlinfo.api.choosing). Go with **mysqli** or **PDO**.

Member Avatar for sankar.s789
0
197
Member Avatar for SinzYPN

HTML is not a protocol. Follow a [tutorial](http://www.vogella.com/tutorials/REST/article.html) on REST. Learn how web pages can interact with a REST API and start simple.

Member Avatar for Traevel
0
614
Member Avatar for pravinkumar1
Member Avatar for Niloofar24

If you want to use it as a database, have you considered using sqlite? From what I [gather](https://docs.python.org/2/library/sqlite3.html) its usage is fairly straightforward in Python.

Member Avatar for snippsat
0
5K
Member Avatar for mitchell.schols

"my script" ? I looked at your other question yesterday, went to your site, after a menu click the header would indeed stop scrolling. There's a ton of scripts on there from all sorts of frameworks, themes and Google. Which one is not working? Or which one is supposed to …

Member Avatar for Traevel
0
709
Member Avatar for Niro800

Well according to [this very interesting](http://www.addsimplicity.com/downloads/eBaySDForum2006-11-29.pdf) presentation their DBA's gave back in 2006 even at that time they had **26 billion** SQL executions **per day**, hundreds of coders keeping the application servers running, and were *"hitting compiler limits on number of methods per class"*. That's not in the *"one or …

Member Avatar for Traevel
0
1K
Member Avatar for AntonyRayan

Create a page which, given a keyword, will search your data set and print the results. Test that until it works. Then, go back to this page and use Ajax to send a POST to the search page with the keyword as parameter. Attach a success handler to the Ajax …

Member Avatar for rpv_sen
0
111
Member Avatar for Bile
Member Avatar for senskart

In addition to the above, be sure to check input again before sending the actual input data. There are users who, when they can't **type** what they want, will copy-paste their garbage input (with the mouse obviously, how could they **ever** press two keys at once, that's just madness). Then …

Member Avatar for JamesCherrill
0
169
Member Avatar for AntonyRayan

It's unclear (to me anyway) what you mean. Do you want to move an id from one database table to another? Move a cell from one HTML table to another? And the comma separator is supposed to do what, exactly? Split the id's?

Member Avatar for AntonyRayan
0
150
Member Avatar for surya55

I understand the concept of your question but want to know 1. is this homework 2. what was unsatisfactory about the answers you found You might want to glance over the [rules](https://www.daniweb.com/community/rules) once more.

Member Avatar for rubberman
0
982
Member Avatar for LONGWAY

You can use `pointer-events:none` in the css of that transparent div to "ensure" it won't be the target of mouse events. Ensure between air-quotes because it will depend on what's below the div. Also, it won't work in old IE (but what does).

Member Avatar for LONGWAY
0
123
Member Avatar for showman13

Get a random number between 0 and the amount of records using **count x rand**, then use LIMIT offset, amount. So for instance, let's say the random number is 5. `SELECT * FROM foo LIMIT 5,1` would give you the 6th row (starts at 0). You could also just select …

Member Avatar for showman13
0
234
Member Avatar for Heanre

In the sense of "I have a cinema app and I want IMDB's movie data for the films playing" or more like "let's see what the NSA is up to these days"? (don't scrape us, we'll scrape you!) ![2015-01-21--1421827025_100x30_scrot.png](/attachments/small/2/53e8816e186f9aef51858a39cfce2950.png "align-center") Nice try NSA, nice try. In all seriousness, some sites …

Member Avatar for Heanre
0
152
Member Avatar for aya.dioses

`tempq` is a list of some sorts? If it contained **a1**, **b1**, **c1** like stultuske posed. You loop through all the list elements, but does it not play **a1** three times? You're not checking the current element but all elements, it finds **a1** then stops. > the problem is the …

Member Avatar for Traevel
0
660
Member Avatar for Tom_11

One/multiple of those trigger## do not exist when you try to set the onclick. Why not make it a **lot** easier by just putting the show form call in the `href` of `<a href='#'id='trigger" . $i . "'>"`.

Member Avatar for Traevel
0
403
Member Avatar for jean_5

> [ > Nome: Interior; > IdDireta: 2; Nome and not name? ` if (p === "Name") {` var _this = this, $div = _this.$div, opts = _this.settings, $table = $div.find(opts.tableSelector); What is **this**? your `$table` is `this.$div.find(this.settings.tableSelector)` and `$div = this.$div`? It only has a class `<table class="table"`. Try …

Member Avatar for jean_5
0
327
Member Avatar for Osagie_1

From that page you posted: > $.store.book[*].author > the authors of all books in the store Wouldn't this `$result = jsonPath($jsonobj , "$.[1]");` be more easier if you wrote it as `$result = jsonPath($jsonobj , "$.photos.photo[*]");` You'd have just the photos in an array then, no? Out of curiosity, what …

Member Avatar for Traevel
0
281
Member Avatar for AntonyRayan

"Focus on a textbox while moving to the next textbox if it's empty" You mean as in focus on the first non-empty textbox? > while moving to next field Moving as in moving focus? You'll have to be more clear. You can use `.focus()` to set focus, or `.focusin()` and …

Member Avatar for Traevel
0
367
Member Avatar for robert.swaine1

> I have a code which is lc.runlight(); It has no parameters. `public void runLight(int numCycles,int sizePerCycle)` requires two integers. > I have looked through this and can't really see which section would help me Start at the top, read until you're at the bottom. It's a good tutorial telling …

Member Avatar for stultuske
0
254
Member Avatar for charlie.kirk.140

Several things I'm noticing: You seem to be mixing JavaScript and HTML, some of it might never run. <input id="rNo" type="radio" name="YesNo" value="No" onclick="this.form.submit();"> <input id="rYes" type="radio" name="YesNo" value="Yes" onClick="location.href='http://localhost/home/calcprint.php';" Both those inputs suggest the form should be sent **as soon as** someone clicks on them. The second one is …

Member Avatar for Traevel
0
98
Member Avatar for Jack_11

LOL > I just figured it out. So I just solved my own question. Guess which [question](https://www.daniweb.com/software-development/threads/490097/do-i-have-some-sort-of-programming-talent) about you I just solved? I now know you were telling the truth there. You **did** only spend half an hour learning Java. It shows.

Member Avatar for happygeek
0
426
Member Avatar for Jack_11

> I'm a thirteen year old programmer. From your linkedin you posted on your profile: ![2015-01-15--1421325895_590x143_scrot.png](/attachments/large/2/3773b017f4bdab1c17c92f4824a35ee6.png "align-center") You "enrolled" when you were 9? You'd think there would have been something in the news about that. Regardless of the age (and truth), why hang around here asking if you're a genius, …

Member Avatar for <M/>
0
672
Member Avatar for phfilly

Are you still in a position to change the table structure? What you are describing sounds like a one-to-many (or many-to-many) relationship between speakers and clients. You could avoid saving ID's in a string by using a different structure. client speaker speaker_client -------- -------- ------------------------ id name id name client_id …

Member Avatar for phfilly
0
217
Member Avatar for Siberian

You could create/resize it on an HTML canvas and export the canvas to PNG using `canvas.toDataURL("image/png")`.

Member Avatar for Traevel
0
352
Member Avatar for london-G

Are you hosting it yourself? Check ports and whether the host allows remote access to a MySQL database. Also check you have the proper user privileges in place (GRANT).

Member Avatar for london-G
0
381
Member Avatar for riwakawd

You're already using jQuery, have a look at the [selectors](http://api.jquery.com/category/selectors/) it provides. You could use `$(img)` to get all **img** elements. If you only want specific images you could give them a **class** and select on that using `$(.class)` or `$(img.class)`. You could even use something like `$(img[src*='album'])` that checks …

Member Avatar for DaniWebUser_1
0
632
Member Avatar for CodyOebel

How accurate do the address coordinates need to be? You could download [an open source dataset](http://download.geonames.org/export/zip/).

Member Avatar for rubberman
0
239

The End.