2,040 Posted Topics
Re: Are you talking about create an image and save it to file??? You may be looking for `file_put_contents()` to save the image to file. Also, are you sure that the path of the image file is correct? You seem to think about 'relative path' but I am not sure that … | |
Re: You need to be more modest when you ask others to help you. Do not expect that people whom you ask would give you an answer, but do hope and appreciate if they do give you. You are not entitled to be given, simply said. Aside from whatever I said, … ![]() | |
Re: /* Here is my input: 68 98 65 69 95 Here is my output: pass Here is the expected output I want to get: fail */ Regardless your code... Huh??? Those scores should satisfy your condition. So the expected output should be "pass" (average->79, a1+a2+a3->231). Are you getting it backward??? | |
Re: Maybe [this](http://stackoverflow.com/questions/22092511/google-maps-displaying-partially) is the solution? | |
Re: Then you need to read the forum [rules](https://www.daniweb.com/community/rules). Please do NOT resurrect old thread if it is not the same issue. Also, printf & scanf are for C++ if I remember correctly (haven't coded in the language for a while). This is Java... | |
Re: To explain a little bit more on why your script is not working, you need to understand the variable scope. The `html` variable you declared inside the `getSelectionHtml()` is alive inside the function. Once you leave the function, it will no longer be visible. One way to do is to … | |
Re: Do you mean if the input contains non-allowed character or empty, it still saves to the DB? I don't know your `check_input()` implementation so can't comment further. PS: Do you know that there is a short hand in regex for `0-9A-Za-z_` which is `\w`? | |
Re: If you have got a Computer Science degree, you should not have a problem picking up any computer language. The reason is that you should have learned fundamental concepts & algorithms from school. The only difference between languages is syntax. Advantages, disadvantages, or related technologies are irrelevant to learning a … | |
Re: Just a quick notice on formatting... Does PHP allow `$Player[ 'Name' ]`? Shouldn't it be `$Player['Name']` (notice the white spaces)? Also, I am not sure there is `Is_Array()` but there is `is_array()`... The language is case-sensitive! | |
Re: >I didn´t do it the ´officialy´ way (I was in a hurry!). That´s why! I suggest you not to use the answer for the question because it implies your work quality to your client. You need to be careful! You should not define attribute to your table/table cells but rather … | |
Re: Are we giving a code solution or teaching him how to do it? @Sarkurd, you are giving way too much sample code... The OP won't learn anything but copy-and-paste... Back to the OP original code, you should arrange the if-else if-else statement so it is easier to look at. Currently, … | |
Re: Actually NullPointerException (NPE) is not always an easy error to resolve because the cause could happen somewhere else in the code before it hits the NPE. I have no idea where the NPE occurs in your error message. It could be from deleting the existing node (`tree.delete(new node(88));`), or it … | |
Re: .htaccess file has NOT THING to do with PHP and the file should belong to the root priviledge. It is your server side control. Read [this](http://kb.mediatemple.net/questions/242/How+do+I+redirect+my+site+using+a+.htaccess+file%3F) and [this](http://webmaster.iu.edu/tools-and-guides/maintenance/redirect-htaccess.phtml) for how to do it. ![]() | |
Re: Why do you need Ctrl-Z? You could simply add `-c #`, where `#` is the number of count, to your ping to automatically stop, and that would automatically close your X terminal. | |
Re: var divisor = document.createElement("div"); divisor.innerHTML = "<div id=" + wordUsed + ">" + wordUsed + "</div>"; That's wrong because you are unneccessarily creating a nested div element. If you want to append content only, simply add to its own value... var divGuess = document.getElementById("userGuesses") divGuess.innerHTML = divGuess.innerHTML + "<br>"+worduse | |
Re: After googling it, I have found 2 posts that may relate to your problem (how to solve the 'not' being registered) -- [here](http://social.technet.microsoft.com/Forums/en-US/cc10d906-0fd8-49ef-a1b0-45814bd70c55/microsoftaceoledb120-provider-is-not-registered-on-the-local-machine?forum=officesetupdeploylegacy) and [here](http://social.msdn.microsoft.com/Forums/en-US/1d5c04c7-157f-4955-a14b-41d912d50a64/how-to-fix-error-the-microsoftaceoledb120-provider-is-not-registered-on-the-local-machine?forum=vstsdb). Hope this would give you some ideas. | |
Re: [QUOTE]A pseudoperfect number, sometimes also called a semiperfect number (Benkoski 1972, Butske et al. 1999), is a positive integer such as which is the sum of some (or all) of its proper divisors[/QUOTE] That doesn't sound right. It has to be 'all', not 'some'. The definition is on [URL="http://en.wikipedia.org/wiki/Perfect_number"]wikipedia[/URL]. Also, … | |
Re: If you use Google Chrome, there is already a built-in debugger for JS. If you use Firefox, you should try Firebug which is a plug-in and is quite easy to use. If you are using IE (which is not recommended unless you need your script to be universal), you could … | |
Re: I have no idea what `styleSelect()` function does in your script, so I can't comment on any negative impact. However, it doesn't seem to be that much anyway. By the way, do you have the CSS `.select_box` already inside your CSS when the page is loaded? Or you simply add … | |
Re: If you have no expertise at all, it is very difficult to explain even with the script... Anyway, the question has already been answered [here](http://stackoverflow.com/questions/5634991/styling-google-maps-infowindow). One problem is that it is not describe in layman language though... | |
Re: Hmm... Is the query exactly what you used? Well, why do you need 'group by' when what you are trying to group is already unique in its own? Also, I prefer to use `like` instead of `in` if the condition is not dynamic (predefined). My attempt is below... SELECT tts.theme_transaction_id, … | |
Re: The Crackstation gives you an explanation of do and don't. You should read the whole page and make your decision from there. In other words, you should not write your own crypto if you are not an expert in the field already. Besides, always use salt with the password when … | |
Re: From what I see on FF, your div element with ID 'content' has left value of -245px in the CSS. Where did it come from? The table element id 'table1' has top as -500px also. As a result, your form table is hanging up there and cover the navigation link … | |
Re: I also saw [this one](http://www.rgagnon.com/javadetails/java-0014.html) after doing a quick search on Google. Hope this help. | |
Re: I believe it is a simple HTML page (with auto extending file type by the server). You could check it [here](http://builtwith.com/jgassociates1.bravesites.com). It is Litespeed server, so you may need to update the server rewriting URL to force redirecting to your subdomain name... | |
Re: [There](https://www.google.com/search?num=100&site=&source=hp&q=php+tutorial+for+beginners+video&oq=php+tutorial+for+beginners+video&gs_l=hp.3..0l2j0i22i30l5.1009.9019.0.9251.20.16.0.4.4.0.174.1727.8j8.16.0....0...1c.1.51.hp..1.19.1599.0.CY5S5p1ig1s)! Oh by the way, you can't learn the language and be proficient enough to do a professional project in a day. If you are in that kind of situation (so that you could get work permit), I feel sorry for you and your employer because you are in the … | |
Re: Hmm... The table could contain `user_id` and `query_string`. By the way, why don't you look at the page when you login to PhpMyadmin and do the 'search' part? The UI could be the same. Do NOT let users create the whole query themselves but rather allow them to enter value … | |
Re: It depends on your backend that send the content back to display on your caller page... Also, are you talking about pure Javascript Ajax or JQuery Ajax? | |
Re: One question, why do you put readonly attribute to the field if you will allow users to edit anyway using `onclick`? What's the benefit of that? Wouldn't it be easier to use CSS on the field so that the field does not look like editable, and then changed it back … | |
Re: If it is at the same level of DOM, you could use [next](http://api.jquery.com/next/) in JQuery (which is equivalent to nextSibling) to obtain the next element. If you want its first node in the list of the same level, you simply go up to [parent](http://api.jquery.com/parent/) and select the first [child](http://api.jquery.com/children/) node. … | |
Re: Does the browser have Enhance Protected Mode on? You may check the [Adobe site](http://helpx.adobe.com/acrobat/kb/blank-pdf-page-ie11.html) for more info. | |
Re: This is quite an old post... Anyway, the CGI Perl library offers a lot for your web programming. You do not need a HTML file with Perl. You simply render the page with perl, and you could implement your own module to execute different tasks. Perl should be able to … | |
Re: Hmm... Whenever someone said "this language is better than that language," it means that the person does not understand advantages/disadvantages of those languages. The main reason is that each language has its own purpose and could be best in certain area but not others. So saying Python is better because … | |
Re: > the first problem you encounter is with the naming of your class. Hmm... I am trying to figure out about naming issue here (`ClassExample`)... The OP has the exact name so what is the problem??? | |
Re: If both sides could be affected (modified), then you can't have either side to be a slave in replication. Master to Master is the only way. The unique key is a race condition that can't be guarantee regardless. The reason is that you have 2 separated database that require synchronization. … | |
Re: From what I read, I believe the problem lies inside your rebalancing the tree. Show us how you implement it. Suggestion [strongly]: You could merge the `if` in Line 52 and `else if` in line 57 because you are doing the same thing - `if (data.compareTo(p.getData())<=0 && p.getLeftChild()!=null)`. Better yet, … | |
Re: I have got a Bachelor degree in CS, but I transferred credits from a community college to 4-year university because it is cost efficient. During community college, classes are more on basic and generic, so there is not much you can focus on. There are only a couple courses that … | |
Re: If it is asp.net, you may be looking a functionality that has similar behavior to `include` in PHP (but not exact) [here](http://www.sitepoint.com/forums/showthread.php?315812-What-s-the-ASP-Equivalent-for-PHP-s-include%28%29-Statement). In other words, create a generic file to be included in other files. | |
Re: If you want to deal with Java only (without DBM), simply encrypt the data before you write it out to xml. Using DBM is more convenient because you do not need to worry much about maintaining the file (and it is easier to read to & write from DB. Usually, … | |
Re: You may use `SUM()` to total the number. You could try something similar to below (not tested!)... SELECT SUM(0_to_7_days) as ZeroSeven, SUM(7_to_14_days) as SevenFourteen, SUM(more_then_15_days) as FifteenPlus FROM c3.source WHERE c3.source=0 or c3.source=3 PS: Your word `more_then_15_days` should BE `more_than_15_days` (notice the 'a', not 'e'). PSS: OOps, didn't realize that … | |
Re: >I have an issue with accessing a table in my database after using the truncate command on it. What is the issue you are talking about? Please ensure that whenever you say anything about "not working," you need to explain the issue from 1)What is your input?, 2)What is your … | |
Re: If your problem requires that each word in the result must occur at least once in each file, I doubt that your `Hash<String, Integer>` is good enough to meet the requirement. The reason is that you can only collect what words and how often the word occurs, but you cannot … | |
Re: From a rough search, people said you may need to try implicite wait because the page may have not loaded yet... ([source](http://grokbase.com/t/gg/selenium-users/12bpzgbmhx/ie-is-not-finding-the-element-using-webdriver)) Also if it involves security, you could deal with the setting using info from this [thread](http://stackoverflow.com/questions/7278340/nosuchelementexception-is-occurred-during-implementation-of-internetexplorerdriv) from another site. | |
Re: You may search/google for any 'autocomplete' and adapt/adjust it to whatever you want it to be. If you want really want to implement it from scratch, you will need to use Ajax (to retrieve & display selected data) + observe field (to call Ajax with the current entering data) functionalities … | |
Re: The above post is an advertising. 1)pulled and old thread and 2)unrelating suggested solution. | |
Re: When you use `like` keyword and give a value, you must ensure that the value has wildcard in it or SQL would try to look for the **exact** given value. (i.e. ` ... LIKE 'bla'` will match only string containing `bla` in the selected field, but not 'blah' or 'blabla'.) … | |
Re: And I am still not sure what your question is??? You gave us a valid PHP in the first code section, but I have no clue what you are trying to do in the second section? In the first PHP section, what it does is to 1)connect to the database … ![]() | |
Re: >select * from helpconfig where cid = '1' >It will return 2 rows.. If you get 2 or more rows returned from what you said, something is not right. Either your table has 2 duplicated rows or something in your setting is off... You should never need to LIMIT the … | |
Re: You are using `Scanner` class to accept an input (`nextLine()`), so you could simply test what the input would be. So what you may do is to convert the input String to bytes. If I remember correctly, the `esc` key gives you a byte array length of 1 with value … |
The End.