Computing desk | ||
---|---|---|
< July 14 | << Jun | July | Aug >> | July 16 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
I have my php installed on this computer. The html and php are in the same folder. Here is the php page:
<?php $n=$_POST['n']; print "Your prime number is $n."; ?>
And here is the HTML page:
<html> <head> <title>Prime Number</title> </head> <body> <form method="post" action="prime.php"> <input type="text" name="n" id="n"/> <input type="submit" value="Submit" /> </form> </body> </html>
Whats wrong with it my PHP Designer said Undefined index n in C:\Users\Public\Public Documents\prime.php on line 2 Melab-1 ( talk) 01:46, 15 July 2008 (UTC)
$n=$_POST['n'];
. ---
J.S (
T/
C/
WRE) 03:12, 15 July 2008 (UTC)I had a problem with my Windows installation and so I tried to access my data with Puppy Linux. I could copy the files, but as I try to open the pdf files, I receive an "Access denied" message as I try to open them in Windows.
How can I access these Windows files? —Preceding unsigned comment added by 83.40.8.91 ( talk) 09:46, 15 July 2008 (UTC)
What about non-PDF files in the same directories? And can you move the PDF files around (copy them from directory to directory, attach them to emails, etc.)? -- Hoary ( talk) 10:16, 15 July 2008 (UTC)
How about using ntfsclone from ntfsprogs for backup purposes (since a non-raw copy of a windows installation is not bootable)? Also, might access not be denied to those files if accessed by a more priviledged user (ie administrator)?-- 209.151.139.252 ( talk) 04:19, 17 July 2008 (UTC)
I'm looking for an multifunction printer / scanner that can print and scan A3 in color. It would be for light to medium small office use, on a daily basis. Cost isn't too much of an issue, but I don't want to go overkill considering the aforementioned usage. Are there any solutions for this, or would you suggest I get an A3 printer and scanner separately? Thanks. 81.187.252.174 ( talk) 10:18, 15 July 2008 (UTC)
Is this possible?
What I want to do is:
Note, I want the proceedure to exit early if the polygon is shown to be not occluded at a point, and that there is not write to the screen buffer - just read?
Is this do-able - if so what are the commands? Thanks. 87.102.86.73 ( talk) 12:37, 15 July 2008 (UTC)
(Caveat: A month ago I shifted positions where I "work", and found myself too busy to troll the RefDesks. I now find myself so busy that I probably should consider myself to be actually working. Dammit. But, I can come here if I need help, can't I?)
Background: I had been using a PC running XP/Pro and MS Office 2003 Premium. Among other things, I use Excel to create and maintain a simple list of related items. While some fields were calculated, most were manually pulled from various sources, all coughing up data as text. I had my company-mandated Outlook set to show all email as text, so even those things I used the Windows Clipboard for came across as simple text, and all was good. Now: I have been "promoted", and now have a newer PC running Vista Ultimate (like a very sick dog, btw, until I gave it enough RAM) and I have MS Office 2007 Professional to maintain that list with, and I can no longer do what I used to do. Anything I copy from another source into Excel retains the font, size, and attributes of the original. Thus, a small field that displays fine with the attributes I told Excel to use becomes unreadable with the (effectively) random font, size, bold, italics, etc that got dragged over from the web page, incoming email, etc that was copied.
(I miss you guys. Actually, I miss being so under-worked that I could troll the RefDesks, but, hey, let's be polite!) - SandyJax ( talk) —Preceding comment was added at 14:16, 15 July 2008 (UTC)
Is there a difference between motherboards that do SLI and those that do Crossfire? My video card says it can do SLI (it's a GeForce 8800 GT Superclocked), and I was looking at this motherboard. Can I SLI a pair of 8800 GT's (assuming I eventually buy a second one) on that particular motherboard? 216.49.181.128 ( talk) 17:09, 15 July 2008 (UTC)
Why is that all the applications in iPhone app store is small games or small apps. Why no browsers like opera or firefox etc? Does Apple prohibit or discourage them by some means like say, they are not possible with the current SDK like that? —Preceding unsigned comment added by 59.92.119.219 ( talk) 17:42, 15 July 2008 (UTC)
For my second C++ program I am trying to write one to take the average of three numbers. Here's what I have:
#include <iostream> using namespace std; int main() { float a, b, c, average; cout << "Please enter 3 numbers." << endl; cin.get >> a >> endl; cin.get >> b >> endl; cin.get >> c >> endl; average = (a + b + c)/3; cout << "The average is:" << average; system("pause"); return 0; }
When I try to compile this, I get three errors that say this: "C:\Documents and Settings\Zachary\Desktop\Average.cpp invalid use of member (did you forget the `&' ?)" for lines 10, 11, and 12. What I would like to know is what to change in order for this to compile correctly. (By the way, I'm using the Dev-C++ compiler.) Thanks, Ζρς ι'β' ¡hábleme! 17:49, 15 July 2008 (UTC)
I just wrote a program so I could check the "cin" function. I don't know what's going on because if I try to use "cin" in the above program, I get way more errors than if I use "cin.get". But I just used "cin" and it worked fine; in fact it would not work with "cin.get". I would give me the error message: "10 C:\Documents and Settings\Zachary\Desktop\simple.cpp no match for 'operator>>' in 'std::cin.std::basic_istream<_CharT, _Traits>::get [with _CharT = char, _Traits = std::char_traits<char>] >> mystring' " which is the error I get if I try to use just "cin" in the average program. (The test program is written as below.)
#include <string> #include <iostream> using namespace std; int main() { string mystring; cout << "Please enter a phrase to echo: "; cin >> mystring; cout << "You entered the phrase: " << mystring << endl; system("pause"); return 0; }
Thanks, Ζρς ι'β' ¡hábleme! 18:03, 15 July 2008 (UTC)
cin.get() >> a;
--
LarryMac
| Talk
18:23, 15 July 2008 (UTC)
In Word 2007, when combining documents is there any easy way to accept all insertions and reject all deletions without going thru it one by one. Thanks! Wiki131wiki ( talk) 18:20, 15 July 2008 (UTC)
On BTTF II in 2015, 17-year-old Jennifer Parker sits unconscious in an alleyway in 2015 after time-traveling. A vocal on the fingerprint reader says she's 47. The cops say, "That's one hell of a good facelift!"
1. But what if another time-traveler who visited a future year, was dead by that year? What would a fingerprint reader tell you then?
2. And assume someone travels back to the past when they're 27 years old, and the year they travel to is 20 years prior. If a cop fingerprinted the young lady and it told them her CURRENT age, then what?? (They would just assume a glitch, would they?) -- Let Us Update Special:Ancientpages. 19:18, 15 July 2008 (UTC)
I copied and pasted the following from Type system: Compared to static typing (or 'early-binding'), dynamic typing is more flexible because of theoretical limitations on the decidability of certain static program analysis problems; these prevent the same level of flexibility from being achieved with static typing[citation needed].
My question is: anyone know what this means? Thanks -- 78.86.164.115 ( talk) 19:28, 15 July 2008 (UTC)
Thank you for the responses. What I really want is either a refutation of the quoted statement or a confirmation of it with an example (or a theoretical example) - i.e. a static program analysis problem whose decidability is limited. If what I have just said makes you think that I don't understand the quoted statement then could you rephrase it for me? Thanks -- 78.86.164.115 ( talk) 21:45, 15 July 2008 (UTC)
Compared to dynamic typing, static typing (or 'early-binding') is less flexible because of theoretical limitations on the decidability of certain static program analysis problems.[citation needed].
Computing desk | ||
---|---|---|
< July 14 | << Jun | July | Aug >> | July 16 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
I have my php installed on this computer. The html and php are in the same folder. Here is the php page:
<?php $n=$_POST['n']; print "Your prime number is $n."; ?>
And here is the HTML page:
<html> <head> <title>Prime Number</title> </head> <body> <form method="post" action="prime.php"> <input type="text" name="n" id="n"/> <input type="submit" value="Submit" /> </form> </body> </html>
Whats wrong with it my PHP Designer said Undefined index n in C:\Users\Public\Public Documents\prime.php on line 2 Melab-1 ( talk) 01:46, 15 July 2008 (UTC)
$n=$_POST['n'];
. ---
J.S (
T/
C/
WRE) 03:12, 15 July 2008 (UTC)I had a problem with my Windows installation and so I tried to access my data with Puppy Linux. I could copy the files, but as I try to open the pdf files, I receive an "Access denied" message as I try to open them in Windows.
How can I access these Windows files? —Preceding unsigned comment added by 83.40.8.91 ( talk) 09:46, 15 July 2008 (UTC)
What about non-PDF files in the same directories? And can you move the PDF files around (copy them from directory to directory, attach them to emails, etc.)? -- Hoary ( talk) 10:16, 15 July 2008 (UTC)
How about using ntfsclone from ntfsprogs for backup purposes (since a non-raw copy of a windows installation is not bootable)? Also, might access not be denied to those files if accessed by a more priviledged user (ie administrator)?-- 209.151.139.252 ( talk) 04:19, 17 July 2008 (UTC)
I'm looking for an multifunction printer / scanner that can print and scan A3 in color. It would be for light to medium small office use, on a daily basis. Cost isn't too much of an issue, but I don't want to go overkill considering the aforementioned usage. Are there any solutions for this, or would you suggest I get an A3 printer and scanner separately? Thanks. 81.187.252.174 ( talk) 10:18, 15 July 2008 (UTC)
Is this possible?
What I want to do is:
Note, I want the proceedure to exit early if the polygon is shown to be not occluded at a point, and that there is not write to the screen buffer - just read?
Is this do-able - if so what are the commands? Thanks. 87.102.86.73 ( talk) 12:37, 15 July 2008 (UTC)
(Caveat: A month ago I shifted positions where I "work", and found myself too busy to troll the RefDesks. I now find myself so busy that I probably should consider myself to be actually working. Dammit. But, I can come here if I need help, can't I?)
Background: I had been using a PC running XP/Pro and MS Office 2003 Premium. Among other things, I use Excel to create and maintain a simple list of related items. While some fields were calculated, most were manually pulled from various sources, all coughing up data as text. I had my company-mandated Outlook set to show all email as text, so even those things I used the Windows Clipboard for came across as simple text, and all was good. Now: I have been "promoted", and now have a newer PC running Vista Ultimate (like a very sick dog, btw, until I gave it enough RAM) and I have MS Office 2007 Professional to maintain that list with, and I can no longer do what I used to do. Anything I copy from another source into Excel retains the font, size, and attributes of the original. Thus, a small field that displays fine with the attributes I told Excel to use becomes unreadable with the (effectively) random font, size, bold, italics, etc that got dragged over from the web page, incoming email, etc that was copied.
(I miss you guys. Actually, I miss being so under-worked that I could troll the RefDesks, but, hey, let's be polite!) - SandyJax ( talk) —Preceding comment was added at 14:16, 15 July 2008 (UTC)
Is there a difference between motherboards that do SLI and those that do Crossfire? My video card says it can do SLI (it's a GeForce 8800 GT Superclocked), and I was looking at this motherboard. Can I SLI a pair of 8800 GT's (assuming I eventually buy a second one) on that particular motherboard? 216.49.181.128 ( talk) 17:09, 15 July 2008 (UTC)
Why is that all the applications in iPhone app store is small games or small apps. Why no browsers like opera or firefox etc? Does Apple prohibit or discourage them by some means like say, they are not possible with the current SDK like that? —Preceding unsigned comment added by 59.92.119.219 ( talk) 17:42, 15 July 2008 (UTC)
For my second C++ program I am trying to write one to take the average of three numbers. Here's what I have:
#include <iostream> using namespace std; int main() { float a, b, c, average; cout << "Please enter 3 numbers." << endl; cin.get >> a >> endl; cin.get >> b >> endl; cin.get >> c >> endl; average = (a + b + c)/3; cout << "The average is:" << average; system("pause"); return 0; }
When I try to compile this, I get three errors that say this: "C:\Documents and Settings\Zachary\Desktop\Average.cpp invalid use of member (did you forget the `&' ?)" for lines 10, 11, and 12. What I would like to know is what to change in order for this to compile correctly. (By the way, I'm using the Dev-C++ compiler.) Thanks, Ζρς ι'β' ¡hábleme! 17:49, 15 July 2008 (UTC)
I just wrote a program so I could check the "cin" function. I don't know what's going on because if I try to use "cin" in the above program, I get way more errors than if I use "cin.get". But I just used "cin" and it worked fine; in fact it would not work with "cin.get". I would give me the error message: "10 C:\Documents and Settings\Zachary\Desktop\simple.cpp no match for 'operator>>' in 'std::cin.std::basic_istream<_CharT, _Traits>::get [with _CharT = char, _Traits = std::char_traits<char>] >> mystring' " which is the error I get if I try to use just "cin" in the average program. (The test program is written as below.)
#include <string> #include <iostream> using namespace std; int main() { string mystring; cout << "Please enter a phrase to echo: "; cin >> mystring; cout << "You entered the phrase: " << mystring << endl; system("pause"); return 0; }
Thanks, Ζρς ι'β' ¡hábleme! 18:03, 15 July 2008 (UTC)
cin.get() >> a;
--
LarryMac
| Talk
18:23, 15 July 2008 (UTC)
In Word 2007, when combining documents is there any easy way to accept all insertions and reject all deletions without going thru it one by one. Thanks! Wiki131wiki ( talk) 18:20, 15 July 2008 (UTC)
On BTTF II in 2015, 17-year-old Jennifer Parker sits unconscious in an alleyway in 2015 after time-traveling. A vocal on the fingerprint reader says she's 47. The cops say, "That's one hell of a good facelift!"
1. But what if another time-traveler who visited a future year, was dead by that year? What would a fingerprint reader tell you then?
2. And assume someone travels back to the past when they're 27 years old, and the year they travel to is 20 years prior. If a cop fingerprinted the young lady and it told them her CURRENT age, then what?? (They would just assume a glitch, would they?) -- Let Us Update Special:Ancientpages. 19:18, 15 July 2008 (UTC)
I copied and pasted the following from Type system: Compared to static typing (or 'early-binding'), dynamic typing is more flexible because of theoretical limitations on the decidability of certain static program analysis problems; these prevent the same level of flexibility from being achieved with static typing[citation needed].
My question is: anyone know what this means? Thanks -- 78.86.164.115 ( talk) 19:28, 15 July 2008 (UTC)
Thank you for the responses. What I really want is either a refutation of the quoted statement or a confirmation of it with an example (or a theoretical example) - i.e. a static program analysis problem whose decidability is limited. If what I have just said makes you think that I don't understand the quoted statement then could you rephrase it for me? Thanks -- 78.86.164.115 ( talk) 21:45, 15 July 2008 (UTC)
Compared to dynamic typing, static typing (or 'early-binding') is less flexible because of theoretical limitations on the decidability of certain static program analysis problems.[citation needed].