- Strength to Increase Rep
- +15
- Strength to Decrease Rep
- -3
- Upvotes Received
- 417
- Posts with Upvotes
- 367
- Upvoting Members
- 207
- Downvotes Received
- 21
- Posts with Downvotes
- 19
- Downvoting Members
- 14
2,040 Posted Topics
Re: I don't think this forum would suite what you need. What database management software are you using? What web frame work are you using? It is not all about web page but there are other hardware & architecture involved... | |
Re: Try to add before line 25 but outside the while loop `out.closeEntry();` and see what happen? | |
Re: Are you using Turbo C++ format??? The `#include<iostream>` should not have `.h` in there. The same applies to the next line. PS: Next time, please include the exact ERROR MESSAGE you saw from your compiling process... | |
Re: @Ahmad_10, please create a new post instead of pull a very old post up. If you want to disable view source from a browser menu, you will have to force open a new window with menubar/toolbar disabled. However, it is still defeated easily if the person really knows how to … | |
| |
Re: @murali, have you tried hard-refresh your page? Sometimes, browsers cache the CSS and will not apply new changes from the CSS. Hard refresh (Shift+F5) would force them to rerender again. | |
Re: You may need [a loop](http://dev.mysql.com/doc/refman/5.0/en/loop.html) in order to accomplish what you are trying to do... | |
Re: I don't know what "look good" to you and what not? Also, it is odd to me that people like to use "#" and assign ID to elements. That's not what style is intended to be in my opinion. It should be "class" instead of "id" for styling even though … | |
Re: What you don't understand about the code? The method names explain themselves about what they are doing. Could you pinpoint more about which part of the code you don't understand? | |
Re: You can do it via Servlet in the 'doGet()' or 'doPost()' method depending on how you implement your Servlet. If you implements 'doPost()' to call 'doGet()' (which is usually the way it is), then you just need to do it in 'doGet()' by obtaining the value of the parameter from … | |
Re: How did you implement it? Also in which class did you implement the method in? | |
Re: Look at line 51, copy that line and insert it right below the line 51. Then change the value from 'txt'+suf to 'txtt'+suf. Assumming that you have created the expected input field in your HTML. I hope you learn how to do it from his/her script (JavaScript is not a … | |
Re: Hmm... Your database tables don't look like or at least the column name doesn't look like. What is `resinvent` table for? Is it a reservation or is it a room available table??? | |
Re: @moseshenry That's not what this forum for... You should read the forum rules before you post the code like that... | |
Re: OK, you have not shown what you have in your class's variable. From what I look at your code, I am assuming that you have your class declared as followed: [CODE] class YourClassName { private Node head; private Node tail; public YourClassName() { head=null; tail=null; } public YourClassName(Node newNode) { … | |
Re: 4+ months old thread from the previous reply post (above mine)... By the way, non-sorted 2D array with nxm will have O(nxm) because you have no uniform rule to search, so you would try to look through the whole array. Average case to me is still O(nxm)... For a sorted … | |
Re: What did you use to retrieve texts from PDF files? And what is the format of the results? Did you read PDF file using JavaScript or something else? | |
Re: How about forgetting the code for a second. Let's talk about how to achieve the requirement first. How do you deal with checking for the same character in a word? Well, there are steps to solve the problem. 1. You need to be able to iterate through each character in … | |
Re: Also, which compiler are you using? There are many flavors of assembly language... | |
Re: Your second loop is not correct. [CODE] for (int dig= 1; dig <= 2*row-1; dig++) {} [/CODE] You may need to break this loop into 2 loops instead. Once is to print from the 'col' value down to 1, and the other print up from 2 up to 'col' value … | |
Re: Quick questions... MyDataBaseManager dbManager = null; JdbcTemplate jt = null; public DAOBook (MyDataBaseManager dbManager) { jt = dbManager.getJdbcTemplate(); } Do you intend to accept `MyDataBaseManager` in your constructor? How did you implement the method `getJdbcTemplate()` and how the method deals with exception? Why do you need another member variable for … | |
Re: An `Invoice` object? It has to match the argument type in your method declaration -- `public bool ProcessInvoice (Invoice anInvoice) {...}`. | |
Re: Just a quick suggestion to you if you really want to use Excel as your database (and also input & report). 1. You should create a sheet containing all items and their extra/meta info instead of have them all in a column inside transaction sheet. This sheet would become your … | |
Re: You need to set `z-index` in CSS to be higher than the image you want to overlay. IIRC, the default z-index value for all HTML objects is 0. Add something like `z-index: 99` to your CSS and see what happen. | |
Re: There are 2 dependent events in your fading -- decreasing/increasing value of opacity and the time interval. In this case, it looks like your time interval of animation is not smooth enough. What is inside `requestAnimationFrame()` function? If you are using `setTimeout()` or `setTimeinterval()`, then make sure that the sleep … | |
Re: One easy way is to use [sqoop](https://docs.datastax.com/en/datastax_enterprise/4.5/datastax_enterprise/ana/anaSqpExport.html). | |
Re: Check your line 73, you are assigning value (using `=` instead of `==`) for 2 conditions checking. Fix that and see how it is going to be. | |
Re: I'm not sure what you really want here. Would an employee can have multiple fabric bundles and a fabric bundle can belong to multiple employees (many to many)? If so, what you need is `has_and_belongs_to_many :employees` keywords in `fabric_bundle` model and `has_and_belongs_to_many :fabric_bundles` in `employee` models. Then do a db … | |
Re: Because the value of radio button is not set (index), the PHP throws an exception. You may need to check whether the value is set first using [isset()](http://php.net/manual/en/function.isset.php). That way, you would be able to properly set a default value or display error message. e.g. $gender = "Unknown"; if (isset($_POST["gender"]) … | |
Re: OK, Scheme language is a bit similar to Lisp but not quite. Thus, you SHOULD think of a solution in recursive. You should never try to solve a problem using iterative function. The language deals best with list type data, so you should convert your integer to a list. It … | |
Re: > when i move the code from one blog to another That's the problem. The javascript is checking if your domain starts with `http://...labs5.imvges.xyz` or `https://...labs5.imvges.xyz`. If your new blog doesn't start the domain like that, it will reject. If that is the case, update the `regex_found` variable value to … | |
Re: If you look at https://docs.python.org/2/library/csv.html then you would see that your command argument`unicodecsv.writer()` is odd... Also, next time when you ask this kind of question, please include what the ERROR you are getting. Saying "it failed" doesn't mean anything to any one. It sounds like you are an end user … | |
Re: Here is my take... First, you need to be able to read the data from a file or DB, and either store them in your program or display them right away. Assuming that you already know how to read data from file, so I will skip it. Second, you need … | |
Re: Looks like you are trying to do something much harder than you can chew. A 1-to-1 chat implementation isn't trivia. Also, you seem to lack simple knowledges on session... You can't take other people's code without clearly understanding your own purpose first. If you are using PHP as your backend … | |
Re: I know that this thread has been marked as solved. I just want to throw in one thing. You may try regex as `"\\-?\\d*\\.\\d*|\\-?\\d+"` to capture all numbers in your list instead of going through the way you are doing. What the regex is doing can be explained in 2 … | |
Re: I am not sure you want to concatenate either certain element values in the array OR all element values in the array? If the latter, you could use `implode()` function. If the former, why don't you simply construct a string as value for sql from each element atrribute you want … | |
Re: Also, are you running it on HTM5? If not, you may need to update `<script>` to `<script type="text/javascript">` just in case. | |
Re: You need to declare totalDeposit, totalWithdraw, and totalInterest outside the loop and initiated them to 0. Then inside the loop, each time you do a deposit, add the amount to totalDeposit. Do the same with totalWithdraw. Now, the totalInterest is added with the currentInterestAmount. After that, you can display these … | |
Re: You may also need to check with your web host that they host the database on the same server your script is located. Normally, a web host will NOT have their database server on the same IP. You need to get the correct IP instead of "localhost" as you are … | |
Re: Java in Android is the same as Java except it is on different platform. I agree with JamesCherrill that " " is not equal to string length 0. `isEmpty()` tests whether the String object contains no character at all, not testing character with white spaces. If the OP really wants … | |
Re: I guess you should read on `cin` and `cout` stuff. It is a basic input-output way of C++... | |
Re: The question is vauge. Which field(s) do you want to be distinct? What do you mean by "duplicated"? Even though you may use JOIN to get rid of duplicated, it is still unclear what you really want to do in your question... | |
Re: How do you combine subtotal? Is it by item ID? order ID? In other words, what are you grouping in order to calculate subtotal??? | |
Re: You may need to look and compare how you declare your function pointer [here](http://www.cprogramming.com/tutorial/function-pointers.html) (at the end of the page -- Function Pointers Summary). Quick question, what happen if a predator & a mate present? Which state would it present that event? | |
Re: How about save your questions in an array, so that you can shuffle it by swapping 2 questions at a time for a number of times (i.e. 1000 times)? | |
Re: Of course, they are different. To me, Lansa is a tool, not a language. C++, on the other hand, is a language. | |
Re: Why are you talking about "ternary operator"? You are NOT using ternary operator at all. You use ternary operator when you want to replace `if-else` statement with in-line statement. //i.e. $somevalue = 10; if ($value==1) { $somvalue-=1; } else { $somevalue-=10; } // then you could change it to $somevalue … | |
Re: [Syntax](http://php.net/manual/en/mysqli.query.php) for `mysqli_query()`. PS: Again, it seems that you don't listen to someone's suggestion about SQL injection. You don't prepare query but rather directly use it in database query... ![]() | |
Re: Your code is a big mess. You have multiple nested `for-loop`. Then you keep using the SAME loop index variable (`i`) in every single loop. Even worse, you manually increase the loop index variable (`i`) even though it is automatically increased by the `for-loop`! What I can tell you now … | |
Re: You will NEED date when you calculate time. The reason is that if the time is NOT on the same day, how would you know that? Anyway, you could simply use `Date` object and manipulate by giving the same date to it. However, you cannot compare times with 2 different … |
The End.