Computing desk | ||
---|---|---|
< July 13 | << Jun | July | Aug >> | July 15 > |
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 does the problem of a priority queue change when multiple elements can have the same priority, and those that do should be FIFO? Neon Merlin 02:22, 14 July 2009 (UTC)
Does modern speech recognition software works with one voice only (end user on a computer), or is it good enough for multiple voices (interview transcription, etc.)? -- Piotr Konieczny aka Prokonsul Piotrus| talk 03:40, 14 July 2009 (UTC)
I recently dragged a window off the screen and cannot access this file as I cannot see it any more. The particular file program in question is the Winamp media player in Windows Vista. I was watching a video clip on Winamp and manually increased the attached video screen to the size of my monitor (I should of pressed F11 but didn't). Now the video portion of Winamp is the size of my monitor and the main GUI is off the screen. If I press the (x) to close the application, it only closes the video part but winamp is still running off screen and reattaching the video makes the whole thing go off screen. I've tried everything and given up. Since Winamp doesn't act like a normal window, the "Cascade Windows" doesn't work. The only solution I have in mind is to reinstall Winamp but is there a better way?-- penubag ( talk) 07:30, 14 July 2009 (UTC)
#include <windows.h>
int main()
{
HWND h = FindWindowA(0,"Window title");
SetWindowPos(h,0,0,0,0,0,SWP_NOSIZE);
}
Ale_jrb and Indeterminate's solutions don't work. The "Move" doesn't work because of the size of the entire window fills up the entire screen so I cannot move it any higher (which is what I need to do to access the GUI at the bottom) the arrow keys and mMaximzing and minimizing don't seem to work either for winamp. I'm not sure which .ini file you're talking about (apparently not the one in the main Winamp folder since that didn't do anything). The mp3 file doesn't have any .ini files attached. Decltype's solution is very interesting however I know nothing at all about C. I have Microsoft Visual C++ 6.0 which is a 1994 version! Vista says it has compatibility problems but maybe I'm just not compiling it correctly. I opened VS and went to "File>New>C++ source file" and entered your above code verbatim and pressed Compile. This is the output:
--------------------Configuration: mover - Win32 Debug-------------------- Compiling... mover.cpp C:\Windows\System32\mover.cpp(1) : error C2143: syntax error : missing ';' before '<' c:\program files\microsoft visual studio\vc98\include\excpt.h(36) : error C2143: syntax error : missing ';' before '{' c:\program files\microsoft visual studio\vc98\include\excpt.h(36) : error C2447: missing function header (old-style formal list?) C:\Windows\System32\mover.cpp(7) : warning C4508: 'main' : function should return a value; 'void' return type assumed C:\Windows\System32\mover.cpp(7) : error C2143: syntax error : missing ';' before '<' Error executing cl.exe. mover.obj - 4 error(s), 1 warning(s)
I'm probably missing a step or two. -- penubag ( talk) 08:40, 14 July 2009 (UTC)
<syntaxhighlight lang="cpp">
and </syntaxhighlight>
along with everything else. That's not C++, it's Wikipedia markup. The "warning C4508" is because Visual C 6.0 wasn't very compliant with the C++ standard (which wasn't even published until 1998). You can work around it by changing int
to void
. --
BenRG (
talk) 15:13, 14 July 2009 (UTC)Windows Key + R (Or, Start Menu + Run) winamp (to start Winamp) ctrl+D (command to resize WinAMP window)
One more solution for you to try: Install Pitaschio (exact spelling, Google it). Amongst the other nice settings it has is an option to force windows to stay within the borders of the screen. I got it via a recommendation on this very RefDesk (for a different problem: making the desktop icons appear as a "list view"). Zunaid 08:53, 16 July 2009 (UTC)
Is there such a thing as password protection in one direction only? I have in mind Apple Disk Image files. I use them to store things I don't want others to gain easy access to. (I use a password.) Trouble is, a password is required just to put things into it. I think it would be more convenient if I could put things into it without having to enter a password. I would still like the added security of the requirement to type a password in order to view or remove anything. Anything like that, or is it impossible? Bus stop ( talk) 15:04, 14 July 2009 (UTC)
Hi. I am looking for headphones which are excellent for listening to music but which can also be used for Skype, so it has to have a built-in microphone. The best I have so far found are the so-called "Gaming Headsets" from Creative but they just have one problem: their ear parts are too small!!!! I want to have something like a combination of a headset with BIG ear parts so that it covers but doesn't touch the ear and a headset with a microphone. Can anyone help me? Thank you in advance! -- Tilmanb ( talk) 15:26, 14 July 2009 (UTC)
I just bought a Sennheiser PC350 and I'm using it right now! Strange world we live in. It is EXCELLENT. The sound quality is amazing, and the mic is extremely high quality. if you can afford it, buy it. Also, Plantronics makes some headphones with large headphones. I have them sitting next to me, I used them before I bought my Sennheiser a few days ago =P 68.123.28.58 ( talk) 05:57, 19 July 2009 (UTC)
Say I wish to store the animal kingdom family tree in a database (along with top-trumps type information such as length, max age, weight etc), or alternatively I want to store a list of football players, along with individual detailed records for each match they play.
What sort of database program would be up to this - it seemed to be that the common desktop database programs don't really go much beyond a table of values - much like a spreadsheet - am I missing their higher order features, or are they 'just shit'? (excuse my french) 83.100.250.79 ( talk) 17:13, 14 July 2009 (UTC)
Id | Name | ChildOf |
---|---|---|
0 | Erasmus Darwin | |
1 | Robert Waring Darwin | 0 |
2 | Erasmus Darwin II | 0 |
3 | Charles Robert Darwin | 1 |
4 | Erasmus Avery Darwin | 1 |
Thanks. Actually the data is v. large, and intinsically hierarchical - so I wouldn't dream of attempting to store in in one massive 'spreadsheet' with relational pointers - in general most querys would be of small mostly intrinsically self contained data sets, so I would expect to be able to set up relational links between different files - I'll assume that's all possible with standard programs. (There could be statistical analysis of the whole set - which as the above rightly points out - would be time consuming, and potentially problematic) I don't need to worry about 'circular relational links' - which I expect is an advanced topic. I'll have a try and maybe ask another question later on. 83.100.250.79 ( talk) 18:04, 15 July 2009 (UTC)
Oh, and thanks everyone who responded - I really expected a very short and quick answer, but people did a whole lot of typing. Cheers ! :) 83.100.250.79 ( talk) 21:19, 15 July 2009 (UTC)
I'm trying to find the ip address of people who visit a web site using php, but all I'm getting is addresses like "hsd1.co.comcast.net" and not the actual ip address. The script is this:
//host check $host = gethostbyaddr($_SERVER["REMOTE_ADDR"]); foreach($badip as $value){ //Refusal hosts if(eregi("$value$",$host)){ error(S_BADHOST,$dest); }} if(eregi("^mail",$host) || eregi("^ns",$host) || eregi("^dns",$host) || eregi("^ftp",$host) || eregi("^prox",$host) || eregi("^pc",$host) || eregi("^[^\.]\.[^\.]$",$host)){ $pxck = "on"; } if(eregi("ne\\.jp$",$host)|| eregi("ad\\.jp$",$host)|| eregi("bbtec\\.net$",$host)|| eregi("aol\\.com$",$host)|| eregi("uu\\.net$",$host)|| eregi("asahi-net\\.or\\.jp$",$host)|| eregi("rim\\.or\\.jp$",$host) ){$pxck = "off";} else{$pxck = "on";} if($pxck=="on" && PROXY_CHECK){ if(proxy_connect('80') == 1){ error(S_PROXY80,$dest); } elseif(proxy_connect('8080') == 1){ error(S_PROXY8080,$dest); } } |
I'm extremely new to php, and I would be so greatful if someone could look over this and tell me what I need to do. Thanks so much! —Preceding unsigned comment added by 82.43.91.128 ( talk) 18:53, 14 July 2009 (UTC)
wow this script is fantastic. Thank you for this.! but to get the ip address of people that visit your site you just need this part. That is it.
$_SERVER['REMOTE_ADDR']
to test this, visit any page you are creating with this:
$ip=$_SERVER['REMOTE_ADDR']; print $ip;
It will display your ip address, if someone else visits it will display theirs. Now your issue is storing this information. you will need to know SQL to do this. create a table and store the values in it or use a flatfile. Ivtv ( talk) 21:26, 14 July 2009 (UTC)
$host = gethostbyaddr($_SERVER["REMOTE_ADDR"]);
$host = ($_SERVER["REMOTE_ADDR"]);
Does anyone know of an android G1 app that currently gives weather radar in the Netherlands. I've installed imap Weather on the phone, but it doesn't seem to have radar and the website suggests that it has radar only in the US at this point. Thanks if you can help. —Preceding unsigned comment added by 83.98.238.113 ( talk) 21:33, 14 July 2009 (UTC)
Computing desk | ||
---|---|---|
< July 13 | << Jun | July | Aug >> | July 15 > |
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 does the problem of a priority queue change when multiple elements can have the same priority, and those that do should be FIFO? Neon Merlin 02:22, 14 July 2009 (UTC)
Does modern speech recognition software works with one voice only (end user on a computer), or is it good enough for multiple voices (interview transcription, etc.)? -- Piotr Konieczny aka Prokonsul Piotrus| talk 03:40, 14 July 2009 (UTC)
I recently dragged a window off the screen and cannot access this file as I cannot see it any more. The particular file program in question is the Winamp media player in Windows Vista. I was watching a video clip on Winamp and manually increased the attached video screen to the size of my monitor (I should of pressed F11 but didn't). Now the video portion of Winamp is the size of my monitor and the main GUI is off the screen. If I press the (x) to close the application, it only closes the video part but winamp is still running off screen and reattaching the video makes the whole thing go off screen. I've tried everything and given up. Since Winamp doesn't act like a normal window, the "Cascade Windows" doesn't work. The only solution I have in mind is to reinstall Winamp but is there a better way?-- penubag ( talk) 07:30, 14 July 2009 (UTC)
#include <windows.h>
int main()
{
HWND h = FindWindowA(0,"Window title");
SetWindowPos(h,0,0,0,0,0,SWP_NOSIZE);
}
Ale_jrb and Indeterminate's solutions don't work. The "Move" doesn't work because of the size of the entire window fills up the entire screen so I cannot move it any higher (which is what I need to do to access the GUI at the bottom) the arrow keys and mMaximzing and minimizing don't seem to work either for winamp. I'm not sure which .ini file you're talking about (apparently not the one in the main Winamp folder since that didn't do anything). The mp3 file doesn't have any .ini files attached. Decltype's solution is very interesting however I know nothing at all about C. I have Microsoft Visual C++ 6.0 which is a 1994 version! Vista says it has compatibility problems but maybe I'm just not compiling it correctly. I opened VS and went to "File>New>C++ source file" and entered your above code verbatim and pressed Compile. This is the output:
--------------------Configuration: mover - Win32 Debug-------------------- Compiling... mover.cpp C:\Windows\System32\mover.cpp(1) : error C2143: syntax error : missing ';' before '<' c:\program files\microsoft visual studio\vc98\include\excpt.h(36) : error C2143: syntax error : missing ';' before '{' c:\program files\microsoft visual studio\vc98\include\excpt.h(36) : error C2447: missing function header (old-style formal list?) C:\Windows\System32\mover.cpp(7) : warning C4508: 'main' : function should return a value; 'void' return type assumed C:\Windows\System32\mover.cpp(7) : error C2143: syntax error : missing ';' before '<' Error executing cl.exe. mover.obj - 4 error(s), 1 warning(s)
I'm probably missing a step or two. -- penubag ( talk) 08:40, 14 July 2009 (UTC)
<syntaxhighlight lang="cpp">
and </syntaxhighlight>
along with everything else. That's not C++, it's Wikipedia markup. The "warning C4508" is because Visual C 6.0 wasn't very compliant with the C++ standard (which wasn't even published until 1998). You can work around it by changing int
to void
. --
BenRG (
talk) 15:13, 14 July 2009 (UTC)Windows Key + R (Or, Start Menu + Run) winamp (to start Winamp) ctrl+D (command to resize WinAMP window)
One more solution for you to try: Install Pitaschio (exact spelling, Google it). Amongst the other nice settings it has is an option to force windows to stay within the borders of the screen. I got it via a recommendation on this very RefDesk (for a different problem: making the desktop icons appear as a "list view"). Zunaid 08:53, 16 July 2009 (UTC)
Is there such a thing as password protection in one direction only? I have in mind Apple Disk Image files. I use them to store things I don't want others to gain easy access to. (I use a password.) Trouble is, a password is required just to put things into it. I think it would be more convenient if I could put things into it without having to enter a password. I would still like the added security of the requirement to type a password in order to view or remove anything. Anything like that, or is it impossible? Bus stop ( talk) 15:04, 14 July 2009 (UTC)
Hi. I am looking for headphones which are excellent for listening to music but which can also be used for Skype, so it has to have a built-in microphone. The best I have so far found are the so-called "Gaming Headsets" from Creative but they just have one problem: their ear parts are too small!!!! I want to have something like a combination of a headset with BIG ear parts so that it covers but doesn't touch the ear and a headset with a microphone. Can anyone help me? Thank you in advance! -- Tilmanb ( talk) 15:26, 14 July 2009 (UTC)
I just bought a Sennheiser PC350 and I'm using it right now! Strange world we live in. It is EXCELLENT. The sound quality is amazing, and the mic is extremely high quality. if you can afford it, buy it. Also, Plantronics makes some headphones with large headphones. I have them sitting next to me, I used them before I bought my Sennheiser a few days ago =P 68.123.28.58 ( talk) 05:57, 19 July 2009 (UTC)
Say I wish to store the animal kingdom family tree in a database (along with top-trumps type information such as length, max age, weight etc), or alternatively I want to store a list of football players, along with individual detailed records for each match they play.
What sort of database program would be up to this - it seemed to be that the common desktop database programs don't really go much beyond a table of values - much like a spreadsheet - am I missing their higher order features, or are they 'just shit'? (excuse my french) 83.100.250.79 ( talk) 17:13, 14 July 2009 (UTC)
Id | Name | ChildOf |
---|---|---|
0 | Erasmus Darwin | |
1 | Robert Waring Darwin | 0 |
2 | Erasmus Darwin II | 0 |
3 | Charles Robert Darwin | 1 |
4 | Erasmus Avery Darwin | 1 |
Thanks. Actually the data is v. large, and intinsically hierarchical - so I wouldn't dream of attempting to store in in one massive 'spreadsheet' with relational pointers - in general most querys would be of small mostly intrinsically self contained data sets, so I would expect to be able to set up relational links between different files - I'll assume that's all possible with standard programs. (There could be statistical analysis of the whole set - which as the above rightly points out - would be time consuming, and potentially problematic) I don't need to worry about 'circular relational links' - which I expect is an advanced topic. I'll have a try and maybe ask another question later on. 83.100.250.79 ( talk) 18:04, 15 July 2009 (UTC)
Oh, and thanks everyone who responded - I really expected a very short and quick answer, but people did a whole lot of typing. Cheers ! :) 83.100.250.79 ( talk) 21:19, 15 July 2009 (UTC)
I'm trying to find the ip address of people who visit a web site using php, but all I'm getting is addresses like "hsd1.co.comcast.net" and not the actual ip address. The script is this:
//host check $host = gethostbyaddr($_SERVER["REMOTE_ADDR"]); foreach($badip as $value){ //Refusal hosts if(eregi("$value$",$host)){ error(S_BADHOST,$dest); }} if(eregi("^mail",$host) || eregi("^ns",$host) || eregi("^dns",$host) || eregi("^ftp",$host) || eregi("^prox",$host) || eregi("^pc",$host) || eregi("^[^\.]\.[^\.]$",$host)){ $pxck = "on"; } if(eregi("ne\\.jp$",$host)|| eregi("ad\\.jp$",$host)|| eregi("bbtec\\.net$",$host)|| eregi("aol\\.com$",$host)|| eregi("uu\\.net$",$host)|| eregi("asahi-net\\.or\\.jp$",$host)|| eregi("rim\\.or\\.jp$",$host) ){$pxck = "off";} else{$pxck = "on";} if($pxck=="on" && PROXY_CHECK){ if(proxy_connect('80') == 1){ error(S_PROXY80,$dest); } elseif(proxy_connect('8080') == 1){ error(S_PROXY8080,$dest); } } |
I'm extremely new to php, and I would be so greatful if someone could look over this and tell me what I need to do. Thanks so much! —Preceding unsigned comment added by 82.43.91.128 ( talk) 18:53, 14 July 2009 (UTC)
wow this script is fantastic. Thank you for this.! but to get the ip address of people that visit your site you just need this part. That is it.
$_SERVER['REMOTE_ADDR']
to test this, visit any page you are creating with this:
$ip=$_SERVER['REMOTE_ADDR']; print $ip;
It will display your ip address, if someone else visits it will display theirs. Now your issue is storing this information. you will need to know SQL to do this. create a table and store the values in it or use a flatfile. Ivtv ( talk) 21:26, 14 July 2009 (UTC)
$host = gethostbyaddr($_SERVER["REMOTE_ADDR"]);
$host = ($_SERVER["REMOTE_ADDR"]);
Does anyone know of an android G1 app that currently gives weather radar in the Netherlands. I've installed imap Weather on the phone, but it doesn't seem to have radar and the website suggests that it has radar only in the US at this point. Thanks if you can help. —Preceding unsigned comment added by 83.98.238.113 ( talk) 21:33, 14 July 2009 (UTC)