Computing desk | ||
---|---|---|
< December 2 | << Nov | December | Jan >> | December 4 > |
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. |
A website was created using a service, Moodle. However, the service provider was later switched to WetPaint. But, whenever the administrator tries to view the new website on their laptop they are unable to, and all that shows up is a generic 'demo page' for Moodle. The new website works fine on all other computers. Deleting cookies and setting firefox to alert you when re-directs take place haven't fixed this. The same thing happens with IE. Does anyone have any ideas on how to fix this? Thank you. —Preceding unsigned comment added by 60.234.239.245 ( talk) 00:38, 3 December 2009 (UTC)
I have a dual-screen setup (Windows 7, GeForce 9600 GT with 2 BenQ 16:9 monitors if that matters...) and I like to use the right screen for video.
Unfortunately, when I go full-screen on many embedded video clips (like ones on CNBC.com - which uses Adobe Flash Player 10 in Google Chrome)on one monitor, then click anywhere on the other monitor, the video goes back to it's original size.
It would be nice if I could watch a video like that full-screen on one monitor, while surfing the internet on the other. Any ideas? NByz ( talk) 02:24, 3 December 2009 (UTC)
+-----+ | |+-----+ | || | +-----+| | +-----+
I am trying to find statistics on how people look up information - by library, internet, buying books etc. In other words how people try to find information to answer something. I can't think of a way to phrase the search query or find to find any relevant statistics. I am writing a paper and need to substantiate the claim that people prefer to use Wikipedia, search engines, google, online databases etc as opposed to going to a library for their information retrieval needs. I know this is true.. but I need statistics to back it up. And don't know how to find them. Thanks for any help. —Preceding unsigned comment added by Baalhammon ( talk • contribs) 03:26, 3 December 2009 (UTC)
OK, so I have a Shirley Temple song on my playlist. Since it was a bit messed up (i.e. audio levels, static, etc.), up to how much extent can it be restored or remastered using software? Blake Gripling ( talk) 06:43, 3 December 2009 (UTC)
In a function in C, one uses return value to return a value back to main. What happens when there is no value following return? Does it return nothing or all the values?
for example:
main()
...
void printfunction(char file[])
...
printf("\n\nThe file reversed:\n");
for(count2=0;count2<=count;count2++)
printf("%c",originalcount-count2]);
return;
}
-- penubag ( talk) 09:10, 3 December 2009 (UTC)
As the declaration of the function says, it returns a void - i.e. nothing. If you were to try to use the return value:
retval = printfunction(filname);
then you would get a compile error. -- Phil Holmes ( talk) 09:39, 3 December 2009 (UTC)
return
at the end of a void
function; if you simply hit the end of the function body (the last }
) you'll exit the function just fine. You use return
in a void
function when you want to exit it other than at the end (which some, but not all, programmers think is a bad thing: see for example
[1]). (You can also return early from a function that returns a value; you must supply each return
statement with a value, though they need not be the same.) --
Tardis (
talk) 16:13, 3 December 2009 (UTC)
main()
is legal in pre-ANSI C, but not necessarily in ANSI C. int main()
is legal in both, void main()
is illegal in both. ("Illegal" meaning "causes undefined behaviour", meaning it might work all perfectly under some particular operating system, but there's nothing whatsoever guaranteeing it won't make the entire computer explode under another operating system.) main()
has three standard return values: 0
, EXIT_SUCCESS
and EXIT_FAILURE
, of which the first two mean the same thing. Any other return value is implementation-dependent. Falling off main()
without returning anything counts as returning 0
, but main()
is the only function guaranteed to do that. For any other function returning anything other than void
, falling off the function without returning anything causes undefined behaviour.
JIP |
Talk 20:56, 3 December 2009 (UTC)original
probably has length count
. Yet the first time through the loop what you try to print is original[count]
, which is a
bad thing. --
Tardis (
talk) 16:13, 3 December 2009 (UTC)
I'm reposting this question from Vchimpanzee, who asked some follow-up questions after the thread was archived. I've added a question to VChimpanzee for more detailed info. -- NorwegianBlue talk 15:55, 3 December 2009 (UTC)
Referring back to this question: [2]
I now find myself unable to copy and paste this information into emails. Is this something new in Internet Explorer 8?
I do recall warnings that I was telling the computer to do something unsafe and that was stopped, but I hardly see where just the symbols would cause a problem. I do remember video or something else moving and I was told don't use Explorer. I stay away from Firefox and use plain text when possible, but copying the symbols manually is such a pain. Vchimpanzee · talk · contributions · 20:43, 24 November 2009 (UTC)
What are some cool TI 83 calculator programs? Accdude92 ( talk to me!) ( sign) 18:03, 3 December 2009 (UTC)
Just have a look at this wordpress blog. See the wonderful "snowfall". How can I do same on my own wordpress ?
Jon Ascton (talk) 18:11, 3 December 2009 (UTC)
With the following lines of code:
template <class T>
T max(T x, T y)
{
return (x > y) ? x : y;
};
For the line T max(T x, T y), I get the error c2027 stating "use of undefined type 'T'." I've tried putting "typename" in front of all possible permutations of the Ts on that line, but to no avail. What format does the Microsoft compiler require for function templates? 20.137.18.50 ( talk) 19:52, 3 December 2009 (UTC)
Why do the computers at schools and libraries don't suffer from viruses and malware as much as personal computers despite their high traffic? All of these public computers I have used erase everything stored on the computer when rebooted; could this be one of the reasons? Would setting up a personal computer like this (one that erases everything when shutdown) effectively eliminate all malware/viruses? 128.84.178.36 ( talk) 20:04, 3 December 2009 (UTC)
I found a USB Bluetooth adapter behind my desk. How can I tell what class and profile it supports? There's no manufacturer name. -- 70.167.58.6 ( talk) 20:13, 3 December 2009 (UTC)
So I'm trying to make a page that looks something like this:
January 1 | Something Exciting Goes Here. Here is some more information. |
February 5 | Something Exciting Goes Here. Here is some more information. |
May 3 | Something Exciting Goes Here. Here is some more information. |
...and so on. Except, I'd like (for a variety of reasons), to do it without tables. Is there any way to get this kind of tab-like behavior? Indents don't seem to help much, because I can't separate the date and first line. Putting a margin-right on the date doesn't work because the lengths of any individual date can vary (e.g. "May 5" is fewer characters than "February 5" and so it looks incorrect). In Microsoft Word, this would be accomplished with tabs, but I don't see any obvious CSS equivalents.
Any thoughts? -- Mr.98 ( talk) 21:06, 3 December 2009 (UTC)
A definition list is good for data pairings. ¦ Reisio ( talk) 05:27, 6 December 2009 (UTC)
I run a page at a URL like http://myuniversity.edu/dept/ . It is hosted by the university in question. Unfortunately the university's IT department is pretty backwards and the web options are pretty artificially constrained. I would like to have the hosting provided by a commercial host, like bluehost.com or dreamhost.com or whatever. The problem is, I need the URL to look the same (it still needs to be http://myuniversity.edu/dept/) and it needs to be seamless (that is, if you go to myuniversity.edu/dept/aspecificpage.html, it would have to work correctly and still appear to be at myuniversity.edu).
What specifically would the university IT people have to do in order to make the .edu domain point to the commercial host servers? How technically difficult would this be (especially considering that ONLY the "/dept/" directory would point to these servers—the rest of the university's pages would obviously still be hosted on university servers)? This is normally consider "domain cloaking", I believe, but I don't really know how it works on the back-end, or how it would work in the case of a single directory on a domain (and not the whole domain).
Does anyone know what this would involve? Goofy half-solutions (e.g. loading all the pages via AJAX or something) are not really acceptable possibilities. -- Mr.98 ( talk) 21:11, 3 December 2009 (UTC)
I am using WinXP and IE8.
I would like to be able to highlight some text on a webpage (or just indicate the whole page) and have all the explicit URLs there copied to my clipboard while the rest of the text is ignored: is there any quick way to do this please rather than copying each URL individually? I only want to copy the visible URLs, I do not want to copy any weblinks where the text of the URL is not visible to the eye.
Second question, is there any quicker way to copy a visible URL to the clipboard other than highlighting it, right clicking, and choosing 'copy' from the menu? 89.242.105.246 ( talk) 21:19, 3 December 2009 (UTC)
F12::
Send ^c
ClipWait
cb := Clipboard . " "
out := ""
currentpos := 1
Loop
{
matchpos := RegExMatch(cb, "(https?://.+?)\s", url, currentpos)
if (matchpos = 0)
break
out .= url1 . "`r`n"
currentpos := matchpos + StrLen(url1)
}
Clipboard := out
return
http://jblevins.org/projects/markdown-mode/)
http://192.168.1.1/
http://www.sjbaker.org
http://www.sjbaker.org/snow.gif
http://web.engr.oregonstate.edu/~budd/Books/oopintro2e/info/slides/chap19/slide1.htm
http://mcwalter.org/unlinked/css_table/index.html
http://mcwalter.org/unlinked/css_table/fin.css).
http://myuniversity.edu/dept/
http://myuniversity.edu/dept/)
http://en.wikipedia.org/wiki/Wikipedia:Reference_desk/Computing"
Thank you very much. I've installed AutoHotKey and run the script. However unfortunately on closer inspection many of the URLs I want to copy only make visible a shortened version of themselves on the webpage, putting in dots where parts of the URL has been skipped, while the underlying URL that I want to copy is complete. Is there any quick and easy way to mass-copy these URLs into the clipboard please? Thanks. 92.29.42.147 ( talk) 13:59, 4 December 2009 (UTC)
Thanks, I tried that, Unfortunately that produces lots of URLs, and it is difficult to identify the ones I want. Perhaps I should have a go at extending your script myself. Is there any way to identify the underlying URL (in the source code) that the visible URL refers to please? Or to filter all the URLs in the source code and only copy those that include a particular text string? Thabks again. 92.27.148.85 ( talk) 12:55, 5 December 2009 (UTC)
Well, is there some way I can hide my important .doc, .txt and picture files. Of course I know about "hide" command but anyone can tick the "show hidden files" option and see them. I mean no one can see them no matter how hard they try. Or a part of my harddisk becomes inacessible to anyone but me...?
Jon Ascton (talk) 22:24, 3 December 2009 (UTC)
I may soon get a "Sony 16GB S Series Walkman Video MP3 Player" (model NWZ-S545). However, my operating system is Windows 2000, which Sony's "Content Transfer" program claims to not support. I'd personally prefer not to use Content Transfer anyway, but I want to be able to use the player. A review online says that when you use a different operating system, it accesses the player as a USB mass storage device, which I assume I'd greatly prefer over having to use Sony's middle-man program on my old, slow computer.
Does anyone have this player, and use or have access to Windows 2000? If so, can you tell me whether I'll be able to properly get my files onto it (hopefully just as a regular removable storage device)? For the record, I have nothing that is DRM-protected, so that's no issue. Also, if I have to use MediaMonkey to transfer, I can do so. --- 4.251.126.53 ( talk) 22:39, 3 December 2009 (UTC)
Computing desk | ||
---|---|---|
< December 2 | << Nov | December | Jan >> | December 4 > |
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. |
A website was created using a service, Moodle. However, the service provider was later switched to WetPaint. But, whenever the administrator tries to view the new website on their laptop they are unable to, and all that shows up is a generic 'demo page' for Moodle. The new website works fine on all other computers. Deleting cookies and setting firefox to alert you when re-directs take place haven't fixed this. The same thing happens with IE. Does anyone have any ideas on how to fix this? Thank you. —Preceding unsigned comment added by 60.234.239.245 ( talk) 00:38, 3 December 2009 (UTC)
I have a dual-screen setup (Windows 7, GeForce 9600 GT with 2 BenQ 16:9 monitors if that matters...) and I like to use the right screen for video.
Unfortunately, when I go full-screen on many embedded video clips (like ones on CNBC.com - which uses Adobe Flash Player 10 in Google Chrome)on one monitor, then click anywhere on the other monitor, the video goes back to it's original size.
It would be nice if I could watch a video like that full-screen on one monitor, while surfing the internet on the other. Any ideas? NByz ( talk) 02:24, 3 December 2009 (UTC)
+-----+ | |+-----+ | || | +-----+| | +-----+
I am trying to find statistics on how people look up information - by library, internet, buying books etc. In other words how people try to find information to answer something. I can't think of a way to phrase the search query or find to find any relevant statistics. I am writing a paper and need to substantiate the claim that people prefer to use Wikipedia, search engines, google, online databases etc as opposed to going to a library for their information retrieval needs. I know this is true.. but I need statistics to back it up. And don't know how to find them. Thanks for any help. —Preceding unsigned comment added by Baalhammon ( talk • contribs) 03:26, 3 December 2009 (UTC)
OK, so I have a Shirley Temple song on my playlist. Since it was a bit messed up (i.e. audio levels, static, etc.), up to how much extent can it be restored or remastered using software? Blake Gripling ( talk) 06:43, 3 December 2009 (UTC)
In a function in C, one uses return value to return a value back to main. What happens when there is no value following return? Does it return nothing or all the values?
for example:
main()
...
void printfunction(char file[])
...
printf("\n\nThe file reversed:\n");
for(count2=0;count2<=count;count2++)
printf("%c",originalcount-count2]);
return;
}
-- penubag ( talk) 09:10, 3 December 2009 (UTC)
As the declaration of the function says, it returns a void - i.e. nothing. If you were to try to use the return value:
retval = printfunction(filname);
then you would get a compile error. -- Phil Holmes ( talk) 09:39, 3 December 2009 (UTC)
return
at the end of a void
function; if you simply hit the end of the function body (the last }
) you'll exit the function just fine. You use return
in a void
function when you want to exit it other than at the end (which some, but not all, programmers think is a bad thing: see for example
[1]). (You can also return early from a function that returns a value; you must supply each return
statement with a value, though they need not be the same.) --
Tardis (
talk) 16:13, 3 December 2009 (UTC)
main()
is legal in pre-ANSI C, but not necessarily in ANSI C. int main()
is legal in both, void main()
is illegal in both. ("Illegal" meaning "causes undefined behaviour", meaning it might work all perfectly under some particular operating system, but there's nothing whatsoever guaranteeing it won't make the entire computer explode under another operating system.) main()
has three standard return values: 0
, EXIT_SUCCESS
and EXIT_FAILURE
, of which the first two mean the same thing. Any other return value is implementation-dependent. Falling off main()
without returning anything counts as returning 0
, but main()
is the only function guaranteed to do that. For any other function returning anything other than void
, falling off the function without returning anything causes undefined behaviour.
JIP |
Talk 20:56, 3 December 2009 (UTC)original
probably has length count
. Yet the first time through the loop what you try to print is original[count]
, which is a
bad thing. --
Tardis (
talk) 16:13, 3 December 2009 (UTC)
I'm reposting this question from Vchimpanzee, who asked some follow-up questions after the thread was archived. I've added a question to VChimpanzee for more detailed info. -- NorwegianBlue talk 15:55, 3 December 2009 (UTC)
Referring back to this question: [2]
I now find myself unable to copy and paste this information into emails. Is this something new in Internet Explorer 8?
I do recall warnings that I was telling the computer to do something unsafe and that was stopped, but I hardly see where just the symbols would cause a problem. I do remember video or something else moving and I was told don't use Explorer. I stay away from Firefox and use plain text when possible, but copying the symbols manually is such a pain. Vchimpanzee · talk · contributions · 20:43, 24 November 2009 (UTC)
What are some cool TI 83 calculator programs? Accdude92 ( talk to me!) ( sign) 18:03, 3 December 2009 (UTC)
Just have a look at this wordpress blog. See the wonderful "snowfall". How can I do same on my own wordpress ?
Jon Ascton (talk) 18:11, 3 December 2009 (UTC)
With the following lines of code:
template <class T>
T max(T x, T y)
{
return (x > y) ? x : y;
};
For the line T max(T x, T y), I get the error c2027 stating "use of undefined type 'T'." I've tried putting "typename" in front of all possible permutations of the Ts on that line, but to no avail. What format does the Microsoft compiler require for function templates? 20.137.18.50 ( talk) 19:52, 3 December 2009 (UTC)
Why do the computers at schools and libraries don't suffer from viruses and malware as much as personal computers despite their high traffic? All of these public computers I have used erase everything stored on the computer when rebooted; could this be one of the reasons? Would setting up a personal computer like this (one that erases everything when shutdown) effectively eliminate all malware/viruses? 128.84.178.36 ( talk) 20:04, 3 December 2009 (UTC)
I found a USB Bluetooth adapter behind my desk. How can I tell what class and profile it supports? There's no manufacturer name. -- 70.167.58.6 ( talk) 20:13, 3 December 2009 (UTC)
So I'm trying to make a page that looks something like this:
January 1 | Something Exciting Goes Here. Here is some more information. |
February 5 | Something Exciting Goes Here. Here is some more information. |
May 3 | Something Exciting Goes Here. Here is some more information. |
...and so on. Except, I'd like (for a variety of reasons), to do it without tables. Is there any way to get this kind of tab-like behavior? Indents don't seem to help much, because I can't separate the date and first line. Putting a margin-right on the date doesn't work because the lengths of any individual date can vary (e.g. "May 5" is fewer characters than "February 5" and so it looks incorrect). In Microsoft Word, this would be accomplished with tabs, but I don't see any obvious CSS equivalents.
Any thoughts? -- Mr.98 ( talk) 21:06, 3 December 2009 (UTC)
A definition list is good for data pairings. ¦ Reisio ( talk) 05:27, 6 December 2009 (UTC)
I run a page at a URL like http://myuniversity.edu/dept/ . It is hosted by the university in question. Unfortunately the university's IT department is pretty backwards and the web options are pretty artificially constrained. I would like to have the hosting provided by a commercial host, like bluehost.com or dreamhost.com or whatever. The problem is, I need the URL to look the same (it still needs to be http://myuniversity.edu/dept/) and it needs to be seamless (that is, if you go to myuniversity.edu/dept/aspecificpage.html, it would have to work correctly and still appear to be at myuniversity.edu).
What specifically would the university IT people have to do in order to make the .edu domain point to the commercial host servers? How technically difficult would this be (especially considering that ONLY the "/dept/" directory would point to these servers—the rest of the university's pages would obviously still be hosted on university servers)? This is normally consider "domain cloaking", I believe, but I don't really know how it works on the back-end, or how it would work in the case of a single directory on a domain (and not the whole domain).
Does anyone know what this would involve? Goofy half-solutions (e.g. loading all the pages via AJAX or something) are not really acceptable possibilities. -- Mr.98 ( talk) 21:11, 3 December 2009 (UTC)
I am using WinXP and IE8.
I would like to be able to highlight some text on a webpage (or just indicate the whole page) and have all the explicit URLs there copied to my clipboard while the rest of the text is ignored: is there any quick way to do this please rather than copying each URL individually? I only want to copy the visible URLs, I do not want to copy any weblinks where the text of the URL is not visible to the eye.
Second question, is there any quicker way to copy a visible URL to the clipboard other than highlighting it, right clicking, and choosing 'copy' from the menu? 89.242.105.246 ( talk) 21:19, 3 December 2009 (UTC)
F12::
Send ^c
ClipWait
cb := Clipboard . " "
out := ""
currentpos := 1
Loop
{
matchpos := RegExMatch(cb, "(https?://.+?)\s", url, currentpos)
if (matchpos = 0)
break
out .= url1 . "`r`n"
currentpos := matchpos + StrLen(url1)
}
Clipboard := out
return
http://jblevins.org/projects/markdown-mode/)
http://192.168.1.1/
http://www.sjbaker.org
http://www.sjbaker.org/snow.gif
http://web.engr.oregonstate.edu/~budd/Books/oopintro2e/info/slides/chap19/slide1.htm
http://mcwalter.org/unlinked/css_table/index.html
http://mcwalter.org/unlinked/css_table/fin.css).
http://myuniversity.edu/dept/
http://myuniversity.edu/dept/)
http://en.wikipedia.org/wiki/Wikipedia:Reference_desk/Computing"
Thank you very much. I've installed AutoHotKey and run the script. However unfortunately on closer inspection many of the URLs I want to copy only make visible a shortened version of themselves on the webpage, putting in dots where parts of the URL has been skipped, while the underlying URL that I want to copy is complete. Is there any quick and easy way to mass-copy these URLs into the clipboard please? Thanks. 92.29.42.147 ( talk) 13:59, 4 December 2009 (UTC)
Thanks, I tried that, Unfortunately that produces lots of URLs, and it is difficult to identify the ones I want. Perhaps I should have a go at extending your script myself. Is there any way to identify the underlying URL (in the source code) that the visible URL refers to please? Or to filter all the URLs in the source code and only copy those that include a particular text string? Thabks again. 92.27.148.85 ( talk) 12:55, 5 December 2009 (UTC)
Well, is there some way I can hide my important .doc, .txt and picture files. Of course I know about "hide" command but anyone can tick the "show hidden files" option and see them. I mean no one can see them no matter how hard they try. Or a part of my harddisk becomes inacessible to anyone but me...?
Jon Ascton (talk) 22:24, 3 December 2009 (UTC)
I may soon get a "Sony 16GB S Series Walkman Video MP3 Player" (model NWZ-S545). However, my operating system is Windows 2000, which Sony's "Content Transfer" program claims to not support. I'd personally prefer not to use Content Transfer anyway, but I want to be able to use the player. A review online says that when you use a different operating system, it accesses the player as a USB mass storage device, which I assume I'd greatly prefer over having to use Sony's middle-man program on my old, slow computer.
Does anyone have this player, and use or have access to Windows 2000? If so, can you tell me whether I'll be able to properly get my files onto it (hopefully just as a regular removable storage device)? For the record, I have nothing that is DRM-protected, so that's no issue. Also, if I have to use MediaMonkey to transfer, I can do so. --- 4.251.126.53 ( talk) 22:39, 3 December 2009 (UTC)