Computing desk | ||
---|---|---|
< November 5 | << Oct | November | Dec >> | November 7 > |
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. |
How can you bind a key to do a certian action in OS X? For example, I want to find the F13 key to switch kanas on my computer. Or even do expose. Do I need to use the terminal (which im fine with)? Is their some program that can do this? -- Randoman412 ( talk) 00:25, 6 November 2008 (UTC)
I am trying to write a program in C in TIGCC for my TI-89 Titanium, but I do not know how do implement lists in C. My program can be found on my userpage. How would I modify the program to properly handle the list? There are also some other problems with it, such as the DelVar function, indicating that the variable l should be deleted, and the Pause function, indicating that the program should pause there until the user presses the "Enter" button. How should these be fixed? Lucas Brown ( talk) 03:17, 6 November 2008 (UTC)
push_END_TAG(); short i; for(i = 10; i > 0; i--) { push_shortint(i); } push_LIST_TAG();
Then, to read the list back
short sum = 0; float cur; ESI pos = next_expression_index(top_estack); while((*pos) != END_TAG) { //estack_to_short(pos, &cur); sum += cur; pos = next_expression_index(pos); }
estack_to_short should work because i's defined at http://tigcc.ticalc.org/doc/estack.html#estack_to_short. However, it does not... If you don't need to use TI lists, just use a C array. The DelVar also requires specifying the variable to delete on the expression stack. See http://tigcc.ticalc.org/doc/bascmd.html#cmd_delvar . For DrawStr, do:
DrawStr(1,1,"x", A_NORMAL);
Finally, for pause use ngetchx();, which will block until the user hits a key. Superm401 - Talk 06:31, 15 November 2008 (UTC)
Can the ability to accurately judge Turing tests be itself used as a Turing test? Neon Merlin 03:20, 6 November 2008 (UTC)
NO. If you try to use the ability to judge a Turing test as a Turing test then my program,
print "JUDGMENT: Program being tested has FAILED the Turing test."
Would be correct for the foreseeable present (since we have no programs able to pass the Turing test) which is a contradiction. —Preceding unsigned comment added by 82.124.214.224 ( talk) 05:55, 6 November 2008 (UTC)
My pc is using a linksys wireless usb adapter to connect online. I have a good signal and am connected, but when if i open IE or firefox, I get a page load error. I think this is a settings issue, but I'm not sure what to do. BTW, the pc is running windows xp. 24.9.157.26 ( talk) 04:02, 6 November 2008 (UTC)
nevermind. i figured it out. 97.118.254.230 ( talk) 04:23, 6 November 2008 (UTC)
I just started up and seem to have some sort of FF problem. Basically I'm getting the problem shown on the right across the top of all web pages and not just Wikipedia. I haven't installed any new or updated add-ons since shutting down FF and I have also tried disabling all the add-ons but that does not help. Not noticable in the picture but the address bar is blank for every page and entering text in there works but it's not visible. Any suggestions? CambridgeBayWeather Have a gorilla 05:09, 6 November 2008 (UTC)
* { display: inline; }
. Firefox allows user-created style sheets to modify how websites look and how the Firefox interface looks. You can search online for userContent.css and userChrome.css for more information. You can edit or delete those files to correct the problem. --
Bavi H (
talk) 03:23, 7 November 2008 (UTC)#urlbar * * { color: white; }
in the userChrome.css file. So this further suggests it's possible your problems were caused by these style sheets.How can you browse through the whole library of files on Rapidshare? 121.219.2.201 ( talk) 06:43, 6 November 2008 (UTC)
Some downloads on Yahoo require that you first install Yahoo Tools. I have installed that, but the downloads still do not work. Why? 121.219.2.201 ( talk) 06:43, 6 November 2008 (UTC)
Re: above. I've heard it is a 'security' reason, but I was just interested to understand what additional security was provided by this? I guess it is incase you left the screen without closing IE and someone could then come to explorer, click back and get to a secure site you were using, but that could be prevented by a few simple measures (e.g. only expire if the page they are navigating from isn't part of the site, or prompt a re-request for the password). It's most frustrating and beyond what I noted I can't think of any security benefit. Anybody aware of anything more? 194.221.133.226 ( talk) 09:09, 6 November 2008 (UTC)
yes...well the batch file listed in Program Help question (see Program Help above) didn't work. But i did find out how to do it in Visual Basic 2005! Here's the rough code for my program. PS: the Process1.Start command starts the process ssstars.scr PPS: the EventLog1.WriteEntry command writes the listed string to the Application Event log.
Public Class Form1
Private Sub Button1_Click (system inserted stuff)
Process1.Start()
If Process1.HasExited() Then
EventLog1.WriteEntry("Screen Saver exited at the listed time and date.")
Application.Exit()
End If
End Sub
End Class
For some reason, the Process1.HasExited() command will not acknowledge that ssstars.scr has exited; therefore, the event log is not written to and the form will not exit. What am i doing wrong? 31306D696E6E69636B6D ( talk) 14:05, 6 November 2008 (UTC)
How would i do that?
31306D696E6E69636B6D (
talk) 17:00, 6 November 2008 (UTC)
Never mind...i got it to work right. Thanks!
31306D696E6E69636B6D (
talk) 17:16, 6 November 2008 (UTC)
Process
class has an event called Exited
or something. Use that. --
wj32
t/
c 06:46, 7 November 2008 (UTC)I have Excel 2003 in a small office network. How can I work with the same document from different computers simultaneously, without "read-only" mode? When I open the file on one computer, I can open it on another one only as "read-only". I know this is possible, but I don't know how. I don't have Sharepoint. Please help me! 81.200.82.2 ( talk) 17:55, 6 November 2008 (UTC)
Hi Guys,
I have the following code, meant to list specific files in a directory (documents);
<?php $dir = dir("."); $text = ""; $class = ""; //List files in images directory while (($file = $dir->read()) !== false) { if (preg_match('/\w+\.\w+/i',$file) && ($file != 'index.php')) { if (preg_match('/\w+\.doc.?$/i',$file)) { $class = 'word'; } if (preg_match('/\w+\.xls.?$/i',$file)) { $class = 'excel'; } if (preg_match('/\w+\.pdf$/i',$file)) { $class = 'pdf'; } echo "<span class='" . $class . "'><a href='" . $file . "'>" . $file . "</a></span><br />"; } } $dir->close(); ?>
It works fine and all, but please help me understand why certain file names, specifically ones with parenthesis "()" dont get listed, and how to get around it.
Thanks in advance PrinzPH ( talk) 20:22, 6 November 2008 (UTC)
preg_match()
calls all require that the file name contain a period and that the characters adjacent to some period be word characters (which probably means
alphanumerics). --
Tardis (
talk) 22:34, 6 November 2008 (UTC)<?php $self = $_SERVER['PHP_SELF']; $self = substr($self, strrpos($self,"/")+1); $filelist=array(); $dirlist=array(); if ($dh = opendir(".")) { while (($file = readdir($dh)) !== false) { if(filetype($file)=="file") { if($file!=$self) { $filelist[] = $file; }; } else if(filetype($file)=="dir") { if($file!=".") { if($file!="..") { $dirlist[]=$file; }; }; } } closedir($dh); } ?>
I'm trying to connect to my university's proxy server, but I am already behind a proxy server at home and when I enter the university's proxy server into the "manual proxy configuration" in firefox it doesn't work. How can I access a proxy server through a proxy server, ie use a second proxy server when I'm already behind the first? I need it to access the library resources which can only be done through the university's proxy server. Thanks.
Will Norton Ghost 2003 ( Ghost (software)) work on a Windows Vista based PC? -- SGBailey ( talk) 21:21, 6 November 2008 (UTC)
Computing desk | ||
---|---|---|
< November 5 | << Oct | November | Dec >> | November 7 > |
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. |
How can you bind a key to do a certian action in OS X? For example, I want to find the F13 key to switch kanas on my computer. Or even do expose. Do I need to use the terminal (which im fine with)? Is their some program that can do this? -- Randoman412 ( talk) 00:25, 6 November 2008 (UTC)
I am trying to write a program in C in TIGCC for my TI-89 Titanium, but I do not know how do implement lists in C. My program can be found on my userpage. How would I modify the program to properly handle the list? There are also some other problems with it, such as the DelVar function, indicating that the variable l should be deleted, and the Pause function, indicating that the program should pause there until the user presses the "Enter" button. How should these be fixed? Lucas Brown ( talk) 03:17, 6 November 2008 (UTC)
push_END_TAG(); short i; for(i = 10; i > 0; i--) { push_shortint(i); } push_LIST_TAG();
Then, to read the list back
short sum = 0; float cur; ESI pos = next_expression_index(top_estack); while((*pos) != END_TAG) { //estack_to_short(pos, &cur); sum += cur; pos = next_expression_index(pos); }
estack_to_short should work because i's defined at http://tigcc.ticalc.org/doc/estack.html#estack_to_short. However, it does not... If you don't need to use TI lists, just use a C array. The DelVar also requires specifying the variable to delete on the expression stack. See http://tigcc.ticalc.org/doc/bascmd.html#cmd_delvar . For DrawStr, do:
DrawStr(1,1,"x", A_NORMAL);
Finally, for pause use ngetchx();, which will block until the user hits a key. Superm401 - Talk 06:31, 15 November 2008 (UTC)
Can the ability to accurately judge Turing tests be itself used as a Turing test? Neon Merlin 03:20, 6 November 2008 (UTC)
NO. If you try to use the ability to judge a Turing test as a Turing test then my program,
print "JUDGMENT: Program being tested has FAILED the Turing test."
Would be correct for the foreseeable present (since we have no programs able to pass the Turing test) which is a contradiction. —Preceding unsigned comment added by 82.124.214.224 ( talk) 05:55, 6 November 2008 (UTC)
My pc is using a linksys wireless usb adapter to connect online. I have a good signal and am connected, but when if i open IE or firefox, I get a page load error. I think this is a settings issue, but I'm not sure what to do. BTW, the pc is running windows xp. 24.9.157.26 ( talk) 04:02, 6 November 2008 (UTC)
nevermind. i figured it out. 97.118.254.230 ( talk) 04:23, 6 November 2008 (UTC)
I just started up and seem to have some sort of FF problem. Basically I'm getting the problem shown on the right across the top of all web pages and not just Wikipedia. I haven't installed any new or updated add-ons since shutting down FF and I have also tried disabling all the add-ons but that does not help. Not noticable in the picture but the address bar is blank for every page and entering text in there works but it's not visible. Any suggestions? CambridgeBayWeather Have a gorilla 05:09, 6 November 2008 (UTC)
* { display: inline; }
. Firefox allows user-created style sheets to modify how websites look and how the Firefox interface looks. You can search online for userContent.css and userChrome.css for more information. You can edit or delete those files to correct the problem. --
Bavi H (
talk) 03:23, 7 November 2008 (UTC)#urlbar * * { color: white; }
in the userChrome.css file. So this further suggests it's possible your problems were caused by these style sheets.How can you browse through the whole library of files on Rapidshare? 121.219.2.201 ( talk) 06:43, 6 November 2008 (UTC)
Some downloads on Yahoo require that you first install Yahoo Tools. I have installed that, but the downloads still do not work. Why? 121.219.2.201 ( talk) 06:43, 6 November 2008 (UTC)
Re: above. I've heard it is a 'security' reason, but I was just interested to understand what additional security was provided by this? I guess it is incase you left the screen without closing IE and someone could then come to explorer, click back and get to a secure site you were using, but that could be prevented by a few simple measures (e.g. only expire if the page they are navigating from isn't part of the site, or prompt a re-request for the password). It's most frustrating and beyond what I noted I can't think of any security benefit. Anybody aware of anything more? 194.221.133.226 ( talk) 09:09, 6 November 2008 (UTC)
yes...well the batch file listed in Program Help question (see Program Help above) didn't work. But i did find out how to do it in Visual Basic 2005! Here's the rough code for my program. PS: the Process1.Start command starts the process ssstars.scr PPS: the EventLog1.WriteEntry command writes the listed string to the Application Event log.
Public Class Form1
Private Sub Button1_Click (system inserted stuff)
Process1.Start()
If Process1.HasExited() Then
EventLog1.WriteEntry("Screen Saver exited at the listed time and date.")
Application.Exit()
End If
End Sub
End Class
For some reason, the Process1.HasExited() command will not acknowledge that ssstars.scr has exited; therefore, the event log is not written to and the form will not exit. What am i doing wrong? 31306D696E6E69636B6D ( talk) 14:05, 6 November 2008 (UTC)
How would i do that?
31306D696E6E69636B6D (
talk) 17:00, 6 November 2008 (UTC)
Never mind...i got it to work right. Thanks!
31306D696E6E69636B6D (
talk) 17:16, 6 November 2008 (UTC)
Process
class has an event called Exited
or something. Use that. --
wj32
t/
c 06:46, 7 November 2008 (UTC)I have Excel 2003 in a small office network. How can I work with the same document from different computers simultaneously, without "read-only" mode? When I open the file on one computer, I can open it on another one only as "read-only". I know this is possible, but I don't know how. I don't have Sharepoint. Please help me! 81.200.82.2 ( talk) 17:55, 6 November 2008 (UTC)
Hi Guys,
I have the following code, meant to list specific files in a directory (documents);
<?php $dir = dir("."); $text = ""; $class = ""; //List files in images directory while (($file = $dir->read()) !== false) { if (preg_match('/\w+\.\w+/i',$file) && ($file != 'index.php')) { if (preg_match('/\w+\.doc.?$/i',$file)) { $class = 'word'; } if (preg_match('/\w+\.xls.?$/i',$file)) { $class = 'excel'; } if (preg_match('/\w+\.pdf$/i',$file)) { $class = 'pdf'; } echo "<span class='" . $class . "'><a href='" . $file . "'>" . $file . "</a></span><br />"; } } $dir->close(); ?>
It works fine and all, but please help me understand why certain file names, specifically ones with parenthesis "()" dont get listed, and how to get around it.
Thanks in advance PrinzPH ( talk) 20:22, 6 November 2008 (UTC)
preg_match()
calls all require that the file name contain a period and that the characters adjacent to some period be word characters (which probably means
alphanumerics). --
Tardis (
talk) 22:34, 6 November 2008 (UTC)<?php $self = $_SERVER['PHP_SELF']; $self = substr($self, strrpos($self,"/")+1); $filelist=array(); $dirlist=array(); if ($dh = opendir(".")) { while (($file = readdir($dh)) !== false) { if(filetype($file)=="file") { if($file!=$self) { $filelist[] = $file; }; } else if(filetype($file)=="dir") { if($file!=".") { if($file!="..") { $dirlist[]=$file; }; }; } } closedir($dh); } ?>
I'm trying to connect to my university's proxy server, but I am already behind a proxy server at home and when I enter the university's proxy server into the "manual proxy configuration" in firefox it doesn't work. How can I access a proxy server through a proxy server, ie use a second proxy server when I'm already behind the first? I need it to access the library resources which can only be done through the university's proxy server. Thanks.
Will Norton Ghost 2003 ( Ghost (software)) work on a Windows Vista based PC? -- SGBailey ( talk) 21:21, 6 November 2008 (UTC)