216 Posted Topics
Re: > I want to debug this, so I can learn how the debugger works. "The debugger" You might want to specify what IDE you are using next time, there's not just one "debugger". For NetBeans it should be ctrl+F5 yes, perhaps try [one of the other ways](https://netbeans.org/kb/docs/java/debug-visual.html). | |
Re: .content1{ opacity: 0.4; filter: alpha(opacity=40); } The lower the number, the more see through. The second line is for IE compatibility. You can add it to the existing `.content1`. If that's not the right div, inspect again and find the right one, then put the lines in its css. One … | |
Re: Some things I'm noticing: There are no test cases (Unit Tests), but I'll assume you meant "it doesn't work". ` {import` Is that just a pasting error? Can't have a `{` there. `public class Assignment2` It needs to go at the end of the above line instead. `int minint = … | |
Re: You could use MySQL's [REGEXP](http://dev.mysql.com/doc/refman/5.7/en/regexp.html#operator_regexp) to search for that pattern. | |
Re: > This is my code. Well there's your problem. Also, no idea which image you mean. You want to show a product image when you select a specific category? There will be multiple. | |
Re: > For the single-table syntax, the DELETE statement deletes **rows** from tbl_name and returns a count of the number of deleted **rows**. What would be the use of a `*`? Also, `mysql_query` is [deprecated](http://php.net/manual/en/mysqlinfo.api.choosing.php) and the way you are using it is [dangerous](http://xkcd.com/327/). | |
Re:  Add `clear:both;` to the footer's css. > We can make a website for you in a breeze! Oh the irony. | |
Re: if($image_width > $data3['maxwidth_bn'] || $image_height > $data3['maxheight_bn']) That means: **IF** the image width is **larger** than max_width **OR** the image height is **larger** than max_height, the image is too big. Is it too wide? 597 is not larger than 1000, so no. Is it too high? 424 is larger than … | |
Re: Are you sure you are creating a **new** map each time? Keep in mind you're adding a **reference** to the map, not a snapshot of the map itself. If you change the map the reference in the list will simply point to the changed version. | |
Re: Anything you can tell about the inner workings of that object? Because if I try something like: var Object = function(){ this.Status = { Name : "foo" }; }; var object = new Object(); // prints foo console.log(object.Status.Name); object.Status.Name = "bar"; // prints bar console.log(object.Status.Name); Or var Object = function(){ … | |
Re: And if you change `$scope.contents` to `$scope.content`? | |
Re: You mean a partial view? Include them with `@Html.partial()` in your cshtml (if you're using the Razor view engine anyway, not sure about the use with other engines). You can pass along the model as well. You'll have to Google a bit or wait for someone more knowledgeable if you … | |
Re: Get the `total` for the receiver with a query (similar to line 14), then add the `howMuch` to `total` and do the update query (similar to line 25) again but for receiver. Using mysql is bad though, you should switch to [mysqli or PDO](http://php.net/manual/en/mysqlinfo.api.choosing.php). | |
Re: Read Taywin's last part again: > I do not want to modify your script because it is using bad format already If he gave you the answer **before** you modified the code to a proper `mysqli` or `PDO` format it would stay bad code. You might have your category issue … | |
Re: By "fails", what do you mean? What comes to mind is the blocking nature of an `alert()`. It blocks execution while awaiting your click. Removing the alert would remove the block. It's going fine here in a test. It hides the divs, loads a text file and shows the div … | |
Re: This part `session_start();` is done more than once, I see it on line 11 and 54 (might be even more, I didn't look further). It might also be done by parts above or below the part you posted. You can't do it more than once so remove all but the … | |
Re: You should **really** consider abandoning the [oudated mysql](http://php.net/manual/en/mysqlinfo.api.choosing.php) in favour of mysqli or PDO. If you make use of prepared statements you won't have to insert the parameters directly into the query, which is [dangerous](http://xkcd.com/327/). Regardless of that, where are you setting those `$Business2` variables? The code you posted does … | |
| |
Re: Let me guess, self answer following shortly? | |
Re: You didn't get an answer in VB.NET and I doubt you'll get one in here. That's like asking how to build a car. Be more specific. | |
Re: You could use RTP/RTCP over UDP for streaming. If memory serves me right VLC even has (some sort of) support for it. | |
Re: You can't alter the same page using PHP since it runs on the server-side and not the client-side. You can have the page post to itself, which will refresh the page, then you can use that POST data. You would have to make sure that when POST variables are empty … | |
Re: I've merely dabbled in ASP.NET, wrestling with its quirks and most notably Entity Framework and the use of existing databases. It would have been nice if during my first steps I had known the darn thing added a pluralizing "s" to my non-english tables resulting in one of the most … | |
![]() | Re: You can't have **multiple** primary keys in a table, you can have a **composite** primary key in a table. The use of multiple auto increment columns eludes me, they would all hold the same value as the others. The intention of a Primary Key is to provide a unique identifier. … ![]() |
Re: > as this is to demonstrate and capture your understanding on the > subject matter. **Your** understanding, not **our** understanding. Read the [rules](https://www.daniweb.com/community/rules). Do work first, then get help. Free tip: Vogella tutorials. | |
Re: `document.getElementById('<%= rpwd%>').focus();` Why not just put "repeatpassword" there like you did on other occasions. Also, you don't need a `<script>` block for every function. If you want to generate that part of the page you can put them in external files. | |
Re: Regarding the JavaDoc, the `@param` and `@return` tags are not entirely filled with information. The convention is as follows: /** * @param variableName Description that may contain multiple terms * @return A description that may contain multiple terms */ Also, it is common practice that the first sentence of the … | |
Re: `if(! function_exists(date_diff) ) ` Basically, your **date_diff** function gets defined **only** if it doesn't yet exist. That way you'll ensure the presence of a **date_diff** function across different (older) PHP versions. However, as you may have guessed, [date_diff](http://php.net/manual/en/function.date-diff.php) already exists within PHP since version 5.3 and probably does as well … | |
Re: That site has books that can be: 1. Downloaded 2. Bought on paper 3. Read online Did you even take the time to look at them? People can learn programming all on their own using quality books like that, your answer strongly suggests you are not one of those people. | |
Re: If you also mean the data should be stored in a database I would suggest following a [CRUD tutorial](http://www.startutorial.com/articles/view/php-crud-tutorial-part-1). The twitter bootstrap part is optional, but comes with a ton of nifty pre-written CSS/HTML/JavaScript components. If you just want to show the user the data in table form **without** storing … | |
Re: Sounds like something I [read a while ago](http://webcache.googleusercontent.com/search?q=cache:IGRjWon2Gv0J:japborst.net/posts/apache-on-windows-and-its-locale+&cd=1&hl=en&ct=clnk) however the page is offline now (yey google cache). FYI, it also shows a solution for the floating point issue (comma versus period based). Never changed it in Apache directly, but you might get the info you need [from here](http://www.sysbiosis.com/blog/change-locale-to-english-en_us-for-apache-and-php) if you … | |
Re: The easiest way would be [jQuery-ui's Datepicker](http://jqueryui.com/datepicker/). <script> $(function() { $( "#datepicker" ).datepicker(); }); </script> <input type="text" id="datepicker"> Even easier would be the [HTML5 date input](http://www.w3schools.com/html/html_form_input_types.asp), but it's not yet widely supported and browser dependant. I believe it works in Chrome, but you'd exclude a lot of other browser types. | |
Re: Take a screenshot. Or, use the new HTML5 canvas and a library like [html2canvas](http://html2canvas.hertzen.com/documentation.html). | |
Re: Every now and then I'm experiencing a rather alternating result when using the quote function. My ctrl-c's on that thread will be remembered and pasted (along with any selected text which is to be expected) all in one quote. Leading to something like this:  Where only the bottom … | |
Re: // short version $('.pcon').each(function(){ $(this).css('background-image',$(this).css('background-image').replace('/styles/SkyBoot/imageset/','/styles/SkyBoot/imageset/black/')); } ); // long version for clarity $('.pcon').each(function(){ var el = $(this); var oldBackground = el.css('background-image'); var newBackground = oldBackground.replace('/styles/SkyBoot/imageset/','/styles/SkyBoot/imageset/black/'); el.css('background-image',newBackground); } ); However, find/replace is not the best way to deal with alternating themes. You could save a lot of hassle like this even … | |
Re: The `implode()` is failing because of `$topuid` not being an array which causes the `mysql_query` to fail and thus resulting in a `false` being stored in `$userquery`. Then, when `mysql_fetch_array($userquery)` is run it will fail because `$userquery` is a boolean and not a resource. Which is why Tpojka said that … | |
Re: What I gather from your question is that you want to alter the `id` of record #2 to match the `id` of record #1 after deleting record #1. It's a best practice in relational database design to leave intelligence and meaning **out** of the primary key. It is also best … | |
Re: No one ever seems to mention semantics in these kinds of threads. Structural semantics, microdata, rich snippets, RDFa. Google 1998 called, it wants the keywords meta tag back. To take Daniweb and Udaipurweb14 as an example (since he is a brand new member and has a location in his name). … | |
Re: Try .input-icon-wrapper { position: relative; } .input-icon-field { padding-left: 15px; } .input-icon { position: absolute; top: 3px; left: 2px; } and <div class="input-icon-wrapper"> <span class="ui-icon ui-icon-person input-icon"></span> <input type="text" class="input-icon-field" placeholder="Username" /> </div> to get  Though you might want to consider using your own icons, or glyphicons for … | |
Re: I prefer Crunchbang as "lightweight" OS. Runs well on older model laptops and virtual machines. And since it's based on debian it has solid packages and plenty of support documentation. The latest version comes with a startup script for some basic applications and setups, and the menu has quick install … | |
Re: A. No B. That's not Java C. The answer is the first result on Google no matter which part of that ancient question you search with, plagiarize away | |
Re: Not to beat a horse that's been decaying for the past two years but this sounds like a job for [Node.js](http://nodejs.org/) (trumpets blazing) See the [documentation](http://nodejs.org/docs/v0.10.35/api/fs.html) on File System: var fs = require('fs'); fs.readFile('/etc/passwd', function (err, data) { if (err) throw err; console.log(data); }); | |
Re: You're overriding the `$message` with the HTML in `$v1`. $message = $_POST["message"]; $v1 = " <html> <body> <style> #disclosure {font-size: 8px; color: #333;} h1 {color:#000066;} table {border:1px solid black;} </style> <img src= 'site.png' /> <table rules='all' style='border-color: #ffb300;' cellpadding='10' width='500px'> <tr style='background: #ffb300;'><td><strong>Email Confirmation</strong> <tr style='background: #fafafa;'><td>Hello <strong> $name</strong>, your … | |
Re: You could have a click on a row call a function that will collect all the values in said row and insert them into the calculator fields. I would suggest using [jQuery](http://jquery.com/) for ease and speed. You could use * [selectors](http://api.jquery.com/category/selectors/) for selecting certain elements * [.click()](http://api.jquery.com/click/) for registering a … | |
Re: > <!-- Mirrored from themes.shamsoft.net/flaty/extra_login.html by HTTrack Website Copier/3.x [XR&CO'2013], Fri, 27 Dec 2013 07:54:25 GMT --> There's a reason it [costs $17](http://themeforest.net/item/flaty-premium-responsive-admin-template/5247864), someone spent time and effort making it. Your problem, aside from the petty theft, lies with the session you haven't stored anything in. Try out basic stuff … | |
Re: Passing the parameter doesn't work or you don't know how? You should be able to just build a URL with `?`'s and `&`'s in Java as you would normally. URL url = new URL("http://mywebsite/myservice/fetchmesomething.php?parameter1=" + par1 + "¶meter2=" + par2); Of course it would be better to [encode](http://docs.oracle.com/javase/7/docs/api/java/net/URLEncoder.html) the URL … | |
Re: Not very familiar with VB, but comboboxes would probably not have a text attribute. From [this](http://www.vb6.us/tutorials/visual-basic-combo-box-tutorial) I'd say try that `clear` again but with a capital C or setting `control.ListIndex` to -1, assuming you want to clear selection and not contents. | |
Re: I think he means `$meeting_type = $_POST["meeting_type"]` as the 5th one that needs a semicolon at the end. And I think you have to use the name attribute instead of the id for identifying the element. So if the name of the selection is `meeting_type` you would get 1, 2, … | |
Re: If you could slide several at a time, as if it were a single image, I'd suggest using [twitter bootstrap](http://getbootstrap.com/getting-started/) and its [carousel](http://getbootstrap.com/examples/carousel/); never been easier. If you need multiple images sliding one at a time there are several jQuery plugins you could use, for instance [jCarousel](http://sorgalla.com/jcarousel/) which lets you … |
The End.