2,040 Posted Topics

Member Avatar for riwakawd

You need to update your line 7. Currently, you copy over the HTML content from the clicked one to the new one...

Member Avatar for Taywin
0
150
Member Avatar for Sophia_1

There are a couple suggestions from me. 1)Please follow the [naming convention](http://pear.php.net/manual/en/standards.naming.php). You should NOT start with capitalized for a variable. It is very confusing to maintain the script later on. 2)You must NOT directly use user input in your query. You need to sanitize it before hand. This is …

Member Avatar for Taywin
0
355
Member Avatar for vivekH

I don't know why you would have an interview question like that... It is NOT trivia to implement a pseudo RNG without using any API. [Here](http://www.cryptosys.net/rng_algorithms.html) is a link to some algorithms. I learned it in school a long time ago, and I never used it anymore. One common thing …

Member Avatar for rubberman
-1
234
Member Avatar for aseel.jaradat.9

In programming, it is reasonable to have those many checkboxes. In usability, it is not because it will be too much work for a user to do in one page. If you have that many questions with each having many checkboxes, group them and/or separated them into smaller number for …

Member Avatar for Taywin
0
258
Member Avatar for uchejava

Maybe this [post](http://stackoverflow.com/questions/13459516/php-mysql-group-by-to-get-latest-record-not-first-record) could help...

Member Avatar for Taywin
0
188
Member Avatar for nevek

You need to check for null value before empty... Swap the condition and it should be OK.

Member Avatar for nevek
0
286
Member Avatar for jean_5

If your current list is what you said, to access it would be... var len = list.length; for (var i=len-1; i>=0; i--) { // for removing data var data = list[i]; // check Date existence if (!data["Date"]) { // do something, for example, alert and remove it alert("Invalid date data …

Member Avatar for Troy III
0
261
Member Avatar for riwakawd

>I cannot figure out how to make it so when I insert the file name to the database that it matches the row id, of that insert. I don't get it... Do you mean call the addBanner when a user upload a file??? Or update the data? Or else???

Member Avatar for riwakawd
0
215
Member Avatar for genbumaster

I don't know what the language is, but if you look at it carefully... IF (AH_BL_Date+IF (Air Shipment,1,SUPP CI LEADTIME)='01/01/1901'DATE,'00/00/0000'DATE,AH_BL_Date+IF (Air_Shipment,1,SUPP CI LEADTIME)) Let's say 'AH_BL_Date+IF (Air Shipment,1,SUPP CI LEADTIME)' be equal to 'A'; then it will be... If A = '01/01/1901'DATE, Then return value '00/00/0000'DATE Else return value '01/01/1901'DATE …

Member Avatar for Taywin
0
93
Member Avatar for janicemurby

From the display, you need to select an image to upload first. Then the Update Image Setting would be used if and only if you want to update the content inside the gray area where the button is. This seems to me that when you save/update the image, you do …

Member Avatar for Taywin
0
234
Member Avatar for Stefce

Here is my take on your original code without suggesting a better algorithm. 1) You are looping through the size of `text` string, but your intention is to loop through the `scan` size. Take out the `for-loop` scope that wrapping around the content (line 5 & 16). Then it should …

Member Avatar for Slavi
0
2K
Member Avatar for CodeWarrior14

How about look at this sample [implementation](https://www.owasp.org/index.php/Using_the_Java_Cryptographic_Extensions)? I am not sure if your implementation is really AES...

Member Avatar for CodeWarrior14
0
3K
Member Avatar for malatamil

Are you talking about deleting a row in the 1st table, so the data in 2nd table should be removed as well???

Member Avatar for mangel.murti
0
212
Member Avatar for gentlemedia

Here is my guess (I am not coding in JQuery). When the function is called, the closing button object is created the first time. Then it is properly added to the clone container. Once a user closes the container, the object is still there, but the `click()` function has been …

Member Avatar for Airshow
0
553
Member Avatar for Szabi Zsoldos

Because recent modified files do not have year number display in the list. You may try `ls -la --full-time` and will have to update some of your display. #!/bin/bash year=$(date +"%Y") if [ $# -gt 0 ] ; then year=$1 fi echo $year list=$(ls -la --full-time | awk -v pattern="$year" …

Member Avatar for Watael
0
1K
Member Avatar for AntonyRayan

Also, if you are talking about the real page-not-found (i.e. a user type in the address bar with some other page name), you may need to update your URL ReWriting rules of your server configuration, which is a different issue.

Member Avatar for AntonyRayan
0
374
Member Avatar for thernandez

Maybe you should compare your format with [this link](https://datatables.net/forums/discussion/5133/ignited-datatables-php-library/p1#Comment_22623). You may need to change the `$this->datatables->edit_column` to be more verbose that that...

Member Avatar for Taywin
0
1K
Member Avatar for vishupriya

It depends on how you pass in the id. By the way, are you using Ruby or JSP? If so, you need to escape the double quote `id="<%=rs_list_task1.getString(\"task_id\")%>"`

Member Avatar for Taywin
0
227
Member Avatar for Priti_P

Don't think it will work for any string starting with a number. It will work with string starting with a letter (and followed any other character listed in the regex or none). What is the purpose of this regex?

Member Avatar for Taywin
0
146
Member Avatar for twtw

To me, line 25 until the end could be replaced with `return true;` because if and only if `t->data` is equal to `d` would get to that point (or the value would be null). I believe the problem with the OP could be from inserting a node to the tree. …

Member Avatar for Taywin
0
170
Member Avatar for nadiam

If the object is going to be in group, why not use an image instead of javascript rendering?

Member Avatar for Taywin
0
144
Member Avatar for iveto89

One thing, please watch out when the buttons should be display. If a user has already voted for (like or dislike), the buttons should not be display again (and the server should still know that the user has already voted and will ignore any other incoming vote from the same …

Member Avatar for iveto89
0
270
Member Avatar for ankit1122

Not sure what is that query? The reason is that it will very likely return an empty row back because of your WHERE clause... My question is, why do you think it will create new "table" (not "row")? What functionality or command are you using that implies what you said?

Member Avatar for Taywin
0
193
Member Avatar for prash21m

Depends... If you know the exact format, you could simply use `replace()` function. var newLoc = window.location.href.replace(/\?code=\d+/i, "").replace(/\&code=\d+/i, ""); The above means the location with either `?code=####` or `&code=####` will be removed from the URL. However, this is for exact format & variable that you know before hand. The different …

Member Avatar for Taywin
0
241
Member Avatar for davy_yg

You start the session, but did you save the value in your session as well? You could take a look at [this site](http://php.net/manual/en/function.session-start.php) as an example...

Member Avatar for Taywin
0
106
Member Avatar for ali11

Horrible way of checking... if(n-((long)n)>0.0) // check if the number contains decimal places scr.setText(""+n); // it does, write it out as is else scr.setText(""+((long)n)); // it doesn't, display w/o decimal if(n>=Long.MAX_VALUE || n<=Long.MIN_VALUE) { // check if out of `long` range scr.setText("0"); // it is out of range, display 0 …

Member Avatar for Taywin
0
131
Member Avatar for kazkuzzer007

Well, you need to learn... 1)A\* search algorithm 2)Javascript That's it. First you need to understand how to do the search to get the result using A\* algorithm. Then you write script in Javascript to follow the A\* search step-by-step. ;)

Member Avatar for kazkuzzer007
0
2K
Member Avatar for jonsan32

I am not really sure what you want to do here. Do you want a display data read from your database or a call to another server, and then put the display in a frame? Do you want it onclick, onchange, or use a submit button? Please do not use …

Member Avatar for <M/>
0
342
Member Avatar for Stefce

Your current snippet shows that you simply display whatever the user puts in the textarea, but the content will never be stored. As a result, the content will disappear everytime the user click 'Post' again. Do you have any database on your backend (server)? You need to save the content …

Member Avatar for Taywin
0
214
Member Avatar for CodeWarrior14

I think the reverse of XOR is XOR itself as slavi mentioned??? public static void main(String[] args) { int num1 = Integer.parseInt("0101110110", 2); int num2 = Integer.parseInt("0010110100", 2); System.out.println("Int1: "+num1+" | "+Integer.toString(num1, 2)); System.out.println("Int2: "+num2+" | "+Integer.toString(num2, 2)); int num3 = num1 ^ num2; System.out.println("Int3: "+num3+" | "+Integer.toString(num3, 2)); int …

Member Avatar for Taywin
0
2K
Member Avatar for ankit1122

As minitauros said, you should consider the field type of `varchar` rather than `text`. That's the optimization at table level. How to search for a substring, you need to use the `like` keyword and the '%' at both end of your substring. SELECT * FROM table_name WHERE field_name like '%sub_string%';

Member Avatar for Taywin
0
222
Member Avatar for Udai_1

Or how did you start the process? If you use windows scheduler, you should be able to set for only one process running. If you manually start or use a script to run (not windows scheduler), stultuske would be the way to go (even though you catch all exceptions, you …

Member Avatar for JamesCherrill
0
214
Member Avatar for Alan_6

You could, but you also have to make sure that 1)the file exist, 2)the path to file is correct, and 3)you have permission to read/write the file. If any of those failed, your script won't correctly work. That's all.

Member Avatar for Taywin
0
154
Member Avatar for satyamhosting
Member Avatar for kubiak

I am not sure if you could actually define `ng-app` at the top most level (html tag). It may be used in `div` tag, but have you tried it in `body` tag instead?

Member Avatar for Taywin
0
835
Member Avatar for Violet_82

One thing to remember, you may need to watch out how you name database column. If it is a foreign key ID, you should have the ID at the end of the field. It could be confusing if you have not touched it for a long while especially with big …

Member Avatar for Violet_82
0
212
Member Avatar for varma51

There is no way to recover from mysql delete (unless you have a way directly recover your HD for the part that is marked as delete from file changed, but will never be a full recovery). That's why the DBA needs to backup the data every now and then (or …

Member Avatar for Taywin
0
206
Member Avatar for ram1711

You could do it from PHP level, or you could use the [rewrite rules](https://www.addedbytes.com/articles/for-beginners/url-rewriting-for-beginners/) of htaccess (which is not PHP)...

Member Avatar for Taywin
0
84
Member Avatar for vizz

Do you have any host running on your local machine? If so, check the port your server is listening as well.

Member Avatar for imti321
0
2K
Member Avatar for dayanadolce

The semi-colon indicates the line to be commented. So the line starting with `For Win32` seems to be a comment line to me. Thus, no need to remove the semi-colon...

Member Avatar for dayanadolce
0
378
Member Avatar for rubysethi

To add more... `explode()` is the newer/safer version of `split()`. However, `split()` has been deprecated since version 5.3.0.

Member Avatar for hiren2927
-2
413
Member Avatar for kazkuzzer007

As I already pointed in the different topic, Lines 58-59, 65-66, 72-73, 79-80 are not logically correct. //# i.e. $state[$index] = $state[$index-3]; $state[$index-3] = $state[$index-3] - $state[$index]; //This means the same as $state[$index] = $state[$index-3]; $state[$index-3] = 0; You need to review your algorithm...

Member Avatar for Taywin
-1
438
Member Avatar for AntonyRayan
Re: Ajax

There are TOO MANY possible reasons. One is already stated by Traevel (cross-domain call)... 1) You are using PHP script but you are calling on ASP? This part smells fishy. 2) What browser did you use to test this? 3) Do you intend to make a synchroneous ajax call? You …

Member Avatar for Taywin
0
107
Member Avatar for AntonyRayan

Actually, the OP is asking how to validate user password from the database. However, first, you need to check how you store the password in the database. Practically, you should NEVER store the password in plain text in the database. You need to encrypt it somehow and save in the …

Member Avatar for Taywin
0
102
Member Avatar for anil.djragga

What is the error? Also, you may need to look at how to set up Apache tomcat with the version you are using (i.e. [version 7](http://tomcat.apache.org/tomcat-7.0-doc/setup.html), [version 6](http://tomcat.apache.org/tomcat-6.0-doc/setup.html))

Member Avatar for Taywin
0
69
Member Avatar for Maideen

Hmm... Maybe this [post](http://stackoverflow.com/questions/13272230/mysql-sum-columns-from-multiple-tables-based-on-multiple-ids) could help...

Member Avatar for ExpertMind
0
2K
Member Avatar for bobgodwin

What was displayed on the console log? And what did you get in Ajax? Did you sort it before you pass to Ajax?

Member Avatar for bobgodwin
0
452
Member Avatar for davy_yg

Agree with broj1. You initiated the `$data` variable if image id is passed to the page (Line 7), but you did NOT initiate the same variable if there is no image id. Then, all of the sudden, you attempt to use the variable on the page...

Member Avatar for matrixdevuk
0
894
Member Avatar for RikTelner

Hmm... If the part you modified is the data part, it could break certification because the checksum may be involved in the process when issue the certification. If the part you modified is the execution part, then it could easily break the assembly code. Would that give you some idea?

Member Avatar for gusano79
0
223
Member Avatar for AntonyRayan
Member Avatar for diafol
0
203

The End.