181 Posted Topics
Re: [QUOTE=VernonDozier;1529042]... I'll put Abe at the top like just about everyone else.[/QUOTE] I would tend to put Lincoln well down in such a list. He had a strong tendency to shred the Constitution. Communists, socialists, fascists, anarchists and other anti-republicans have been poking and chipping away at the Constitution for … | |
Re: [QUOTE=frogboy77;1451378]It appears to be the case of those who can, do, those who can't, teach.[/QUOTE] And those who can do neither, enter politics. | |
Re: You don't do it in the echo. You break the one echo statement into two echos with a foreach in between, something like: [code] echo '{status:1,id:'.$row['itid'].',price:'.$row['item_price'].',txt:'\ \ <table width="100%" id="table_'.$row['itid'].'">\ <tr>\ <td width="20%">'.$row['item_title'].'</td>\ <td width="10%"><select name="'.$row['itid'].'_cnt" id="'.$row['itid'].'_cnt" onchange="change('.$row['itid'].');">\ <option value="1">1</option>\ </select>\ \</td>\ <td width="15%"><select name="'.$row['itid'].'_cnt" id="'.$row['itid'].'_cnt" onchange="change('.$row['itid'].');">'; $options = array("1" … | |
Re: [QUOTE=JessieJ;1176357]...MY ANSWER: REM stuff here......... xcopy C:\myFiles C:\myFilesBackup /E /Y Am I on the right track? Thank you[/QUOTE] That is a fine tentative start. Without doing the work for you, a google search for "ms command batch howto" yielded [url=http://www.computerhope.com/batch.htm]ComputerHope.com[/url] which is an adequate reference to that which is possible … | |
![]() | Re: [QUOTE=prakash_d13;1314370]i have two isp line it possible to configure two isp's if one line goes down net will working throught 2 line 1->-ISP(pri) =====> LAN (192.168.1.2/254) 2->-ISP(sec) how to configure give me solution[/QUOTE] Smoothwall Express 3 is designed to work with only one ISP. Modifying it to work with more … |
Re: [QUOTE=stharmon;70139][code]echo -e "\033[1m \n\t Installing courier-imap... \033[0m" sleep 2 cd /var/src tar -xjf tar/courier-imap-2.2.2.20040207.tar.bz2 cd courier-imap-2.2.2.20040207 # build as vpopmail chown -R vpopmail:vchkpw ../courier-imap-2.2.2.20040207 [B]su - vpopmail[/B] ./configure --with-redhat [/code] ... Does anyone have any thought as to how I can successfully SU and keep the script running?[/QUOTE] To actually … | |
Re: Should you want a longer description.... The following assumes that the target company actively works to prevents software bugs from getting out the door. A software/system tester will be miserable in any company that throws software/systems over the wall at customers as soon as it compiles. A tester has two … | |
Re: [QUOTE=beanryu;942593][CODE] <div id="mydiv"> <p>first</p> </div> [/CODE][/QUOTE] Since you have the web page (web site), can't you:[code] <div id="mydiv"> <p id="mydiv_p1">first</p> </div> [/CODE] In other words, have your code that creates the <p> assign an ID to it. Fetching the .innerHTML of that <p> will be trivial once it has an … | |
Re: Other than the unclosed double-quotes in the <a> tags, I don't see anything too terribly wrong, though it may be bad form to have spaces around the "=" in the anchor tags. | |
Re: write your select, order it in reverse order (o what you want is first) and add 'limit 1' at the end of the statement. That will give you exactly what would have been the last record before the change. Sorry, I couldn't think of a way to demonstrate this in … | |
Re: The error message is saying something is wrong with the first SQL statement. It expected more, but saw the start of a new statement. Only difference I can really see is that you did not quote the 'link' and 'details' values in the PHP code. The following might be more … | |
Re: IWFM (It Works For Me). :) Therefore, if forced to guess, I would say your web server does not grok PHP or it doesn't know that it should be speaking PHP: [list] [*]PHP is not installed, [*]PHP is not configured, or [*]your web browser is not configured to process your … | |
Re: [QUOTE=benkus;1186158]Do you mean, that I should define the content variable outside of this function? Like on the beginning of the js file, and not in the AJAX method?[/QUOTE] First, you have used a string ("\n") instead of a regexp (/\n/) in the string.replace function. Second, string.replace will replace only the … | |
Re: [QUOTE=johndoe444;1178009][CODE]find . -name 'my*' [/CODE] The quotes avoid the shell expansion - without them the shell would replace my* with the list of files whose names begin with my in the current directory. What thus the above statement mean? Isn't it doing the same thing I mean looking for file … | |
Re: [QUOTE=jackthechemist;1173431]Greetings, So, I've studied sockets, and studied TCP, and enjoy a beginner-intermediate understanding of each. However I desperately need clarification regard some fundamental concepts. Any help would be greatly appreciated: 1) Do sockets implement TCP? When I uses a socket to send data to another computer, are the computers using … | |
Re: [QUOTE=rahul8590;1177106]i have written a code for the user to select his area of expertise with respect to fields. i am able to display selected checkboxes for those fields. But when i want tio process further like when the user clicks on the particular checkbox and then submits i am not … | |
Re: The sum is a lossy algorithm. Bytes are rotated and shifted and split and combined. Bits are overwritten and dropped. But then, that's what sums and hashes are [i]supposed[/i] to do. The practical intent is that these sums are one-to-one mappings. In theory, more than one source can map to … | |
Re: The following will find all files of some type of 'image'. The student's first exercise is to convert, in the script, the argument 1 word into a grep-style "a|b|c|d|..." argument in order to select only picture images (i.e., excluding disk images, et al). The student's next exercise is to make … | |
Re: I had the same problem. You probably downloaded the opensource version. I concluded it doesn't yet work and tried Sun's 'proprietary' previous release, which boots more nicely. | |
Re: [QUOTE=csharplearner;928780]Hi all, My client wants to host the videos on his site using the embed code and link of the video. What is the best way to protect the videos from downloading or saving it into pcs. ...[/QUOTE] You can look into DRM, but that has its limits. You can … | |
Re: Your query probably belongs more in Computer Science, but it fits here well enough. I was in a similar position a while ago, in that I had to take over maintaining a general ledger and time & billing system consisting of 1700 business basic programs written over 17 years using … | |
Re: [QUOTE=kylegetson;989475]Line 81, your missing a period. To avoid these kind of issues, you don't need to concatenate all that. You can put $data in a double quoted string. So instead of doing this: [CODE] $string="Hello ".$name.", how are you?"; [/CODE] You can do: [CODE] $string="Hello $name, how are you?"; [/CODE] … | |
Re: [QUOTE=HFK11;963912][CODE] 1. $connection="mysql_connect('localhost', 'admin', '1admin') or die(mysql_error())";// host account password[/CODE][/QUOTE] If I may ever so gnetly ask a dumb question, why is the function call inside quotes? This results in $connection containing the string you see, rather than a handle referencing the desired database connection. To actually execute mysql_connect, you … | |
Re: As an answer is promised, I won't butt in. Instead, I'll give some tidbits as reminders to how the web works. Generally speaking, cookies are sent between the server and the browser by way of HTTP headers. To send a cookie to the server, the browser must form the cookie … | |
Re: [QUOTE=zegames;943260]Hi people, How to I can detect if a div was changed after the page loaded? E.g. by innerHTML function. ps: onChange not is valid for tag div. Reference here on [URL="http://w3schools.com/htmldom/event_onchange.asp"]w3c[/URL]. Thanks![/QUOTE] If you have control of the entire page, then the content of a div should change only … | |
Re: [QUOTE=b1ue;422073] for files in `ls *.dem` do [/QUOTE] should be: for files in `ls *.dem`; do | |
Re: This is one reason I do not install or use toolbars that aren't built with the application. Not ask, not google, not yahoo, not almost any of them. I don't let Firefox install the Yahoo toolbar. The only one I would consider using might be Mailfoundry's ham/spam reporter in Outlook, … | |
Re: [QUOTE=codemaker;921257]Let my try to get it right....[/QUOTE] You may be overlooking a few things that are important when doing this sort of thing.[list][*]PHP runs on the server. [*]ECMAScript (JS) runs on the browser. [*]HTML is interpreted by the browser to render the display. [*]There is no 'hidden' communication channel between … ![]() | |
Re: [QUOTE=Zembu;923939]... [operating systems] multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect ...[/QUOTE] It's been a while since I looked at this. I'll skip the 'irrelevant' items. [list][*]rdisk should be the BIOS disk drive ID, counting from zero (0). [*]partition should be the partition number, counting from … | |
Re: Any possibility of a lightning strike damaging the system? Check the power supply; +5VDC or +12VDC could be low on one of the outputs. Even a bad ground could cause problems. Or just try a different PS in the system. Try unplugging and reseating every connector you can find (with … | |
Re: [QUOTE=Toxikr3;918199]...Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'by) VALUES ('Toxikr3' , 'moderator')' at line 1[/QUOTE] Re-read the quoted part above, then read the table of reserved words in the MySQL manual. … | |
Re: [QUOTE=Erek4;914503]Ladies/Gents, I am creating a website just for fun and wanted to add video clips from different movies. Is this legal? Are there any legal ramifications to this? I.E. Top ten list of scariest momemts from various classic movies, etc. At your convience.[/QUOTE] If you write a 'scholarly document' that … | |
Re: [code=php]<?php // Set array parts $a = array("1" => "one", "2" => "two"); $b = array("a" => "aye", "b" => "bee"); $c = array("a scalar", $a, $b); // Extract a sub-element from an array in the array $d = $c[1][2]; // Extract a sub-array from the array $e = $c[2]; … | |
Re: [QUOTE=daprezjer;912096]Pretty new at shell scripting. My server was hacked and instances of links for viagra were placed in it. I have lots of sites, so I need to search for all instances of "viagra" and list the files, so I can go remove the intrusions. Can this be done using … | |
Re: To provide a useful answer:[list][*]use [noparse][code] and [/code][/noparse] tags around your code so it is displayed on the forum in a readable fashion[*]use the "Preview Post" button to review your post before submitting it[*]be sure your code is properly indented[*]always use {} pairs around code blocks (while loops, if/else statements, … | |
Re: If you are using unix/linux or cygwin on winders, use the strings() command, as in[code]strings filename.bin[/code]This command extracts every sequence of printable characters followed by an unprintable character. Exercises for the student include working with multi-byte character strings, calling the strings command from within perl, and searching for equivalent functionality … | |
Re: [QUOTE=scotddn1;891346][CODE]$dgs = new IO::Socket::INET(LocalPort => $lisport, Proto => 'udp') or die "Socket: $!\n";[/CODE] I have a perl script that I want to run on tomato firmware router using the current shell scripting that it supports How would I do the above in shell? In perl you have to use IO:Socket.[/QUOTE] … | |
Suddenly, the site no longer works properly for me when I use Konqueror 3.5.9 on debian. It had been working as well as could be expected before then (e.g., flash typically required a page reload before it'd work correctly, but the drop-down menus worked.) In the past week or so, … | |
Re: Or, in plain English, you are overwriting the result of your SELECT query with the result of your DELETE query, which is not suitable for fetching rows from. Thus your script ABENDs at the top of the loop. (Geez I love using ancient terminology!) Oh, and off-topic,[quote]Why do Daniweb moderators … | |
Re: Two strong clues:[list][*]Browser: [url=http://www.getfirefox.com/]Firefox[/url][*]ECMAScript debugger: [url=http://www.getfirebug.com/]Firebug[/url][/list] Firebug will let you see/examine the HTML generated by ECMAScript (also known as Javascript); you may have to run the HTML through tidy() to make it readable. I think this is what you are attempting to do. | |
Re: [QUOTE=shawnk;893176][code]... /usr/bin/df -g | grep -i /bp1db01_bk|awk '{sub (/%/, "", $7); print $7" "$4}' > fs_usage ...[/code][/QUOTE] Adding a sub() statement to your awk code that deletes the % from the df() output should work. The above syntax [i]should[/i] work on your system (AIX & Pains or Solaris?); I'm still … | |
Re: [QUOTE=sknake;892327]What is a box character? [] is two characters and unix uses character 10 for a new line (\n), windows uses character 13 + character 10 for a line (\r\n).[/QUOTE] A box character is one that Windows and other systems render as a box because that character does not have … | |
Re: Here's a 'simple' method that is 'close' to what you stated. It's very high level, lacking most detail, but will do what you said you wanted once implemented correctly. I taught myself all this by trying all manner of stuff and reading the Oreilly JS book; it's easier to learn … | |
Re: [QUOTE=Suraj Nayak;891836]Hello, Can anyone please explain role of binary in computer?[/QUOTE] In short: Analog computers do (or did) exist. And they work well for what they do. But they aren't as flexible as digital computers. Binary is popular because electronics most easily deal with ON and OFF, or HIGH and … | |
Re: [QUOTE=Atli;889047]... Your INSERT query worries me. It's rarely a good thing when you have to dynamically insert field names into queries. Suggests a poor table structure. ...[/QUOTE] There are several reasons I use the '... SET col=name ...' syntax: [list] [*]When written with good spacing, the source code is much … | |
Re: [QUOTE=rconn;883569]Anyhelp with code below would be greatly appreciated ...[code] 43. if ($mysql->query ($query)) { 44. if (mysql_result ($result, 0) > 0) { [/code][/QUOTE] Do you need to assign the result of the query to $result before you can use the result? | |
Re: Hmmm. I think you're going to hate one of us two. :) Putting parens around the field name as shown below should do the trick... [QUOTE=rolinski;886480]$name = "($field[0])\t$field[1]";[/QUOTE] | |
Re: I would say the strongest clue to the answer is three-fold:[list][*]Grok the problem[*]Grok your solution[*]Write so you can quickly re-grok, and so others can quickly grok, the problem and solution in the future[/list] You and others will thank you when looking at the code years later. I remember one talented … | |
Re: [QUOTE=scottyscotty19;877618]hi. Does this command (tar cvf /usr/local/bin) create a tape achieve in /usr/local and then copies all the files and directories that are in the /bin directory into the tape archive that is stored in /usr/local? If not then how does it work? I have looked around the internet and … | |
Re: Replace[ICODE]<?php $myarr=json_encode($pr); ?>[/ICODE]with[ICODE]<?php $myarr=(str_replace("\\/", "/", json_encode($pr); ?>[/ICODE]provided there are no other occurrences of "\/" in the converted array. Recently, I sort-of had to deal with this myself, as I was writing an ECMAScript program that required I convert arrays and objects to plain strings and back. (For reference, see [url=http://murent.us/misc/swe3/escript.html]my … |
The End.