Computing desk | ||
---|---|---|
< April 13 | << Mar | April | May >> | April 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 is the network layed out in a school or business? Whats in the runways and what sort of switches or Hubs do they use. Where does their internet come from? That sort of thing. What type of servers are required? or are none required? Iownatv 00:52, 14 April 2007 (UTC)
Hi I have a massive collection of VCDs, is there any free way to convert them into iPod format so I can put it into my iPod? —The preceding unsigned comment was added by 219.78.48.211 ( talk) 01:45, 14 April 2007 (UTC).
There are some routinely-downloaded podcasts for our organization that are useful, but is there a way to "batch-process" them so that the "introductory theme music" and the "closing credits" can be deleted from all the podcasts in our archive? They are extremely annoying when listening to multiple episodes of a particular podcast in one sitting. Also nice would be the ability to cut out portions at arbitrary time points, where "bumper music" usually occurs.
What tools and scripts allow for "batch processing" so the mp3 files do not have to be opened one at a time, by hand. Please include anything you know of, python, java, audacity, whatever. Thanks. NoClutter 04:28, 14 April 2007 (UTC)
I used on software(Hide Files) to hide my personal files it is normaly open by pressing Ctrl+Alt+H. But I choose one option in that software i dont no exactly.... and it was not opened normaly by pressing Ctrl+Alt+Del. And also I cannot find that files.... Any one can Help me because all my files are in that folder which i collected for long time(3 years).... —The preceding unsigned comment was added by 58.68.80.66 ( talk) 04:41, 14 April 2007 (UTC).
Hi, I don't know if this is the right ref. desk, but hopefully it is. On the Gamecube version of "the sims 2 pets", i can't seem to have kids. is it possible on this specific game? if so, how- thanks much!
sorry i forgot to mention which kind- human kids.
Oh, ok. thanks for searching for it!
RedDot's Official Website What is the purpose of RedDot? And what are the vulnerabilities of using RedDot? -- Shines8 04:50, 14 April 2007 (UTC)
open("/", 0); // 0 == O_RDONLY dup(0); dup(0); execl(shell, shell, runc, (char *)0);
Can someone explain in a little more detail? (see http://minnie.tuhs.org/UnixTree/V7/usr/src/cmd/init.c.html for context). —The preceding unsigned comment was added by 203.49.240.43 ( talk) 05:07, 14 April 2007 (UTC).
It confused me too: V7 UNIX is a lot older than //-style comments. Turns out the comment was added by the person who posted it here.
First, runc[] is initialized to the filename "/etc/rc", which is the script that runs when the system starts up. This function's job is to run that script. execl() causes the current process to be replaced by a new one, with the same file descriptors open. (This is the normal way that any process gets started: the parent process first forks itself with fork(), then one copy sets up the file descriptors and uses execl() to mutate into the thing that needs to be run.) In this case that process is a shell whose argument is "/etc/rc", so it will run that script.
The other lines are there to make sure that when this shell starts running, it has the usual three file descriptors open -- standard input (fd 0), standard output (fd 1), and standard error (fd 2). But /etc/rc isn't actually supposed to read anything from stdin, or produce any meaningful output that would go to stdout or stderr. Consequently it doesn't really matter what file the file descriptors point at. So the file that gets opened is "/", the root directory -- the one file that we can be absolutely certain must exist. A directory on traditional UNIX is just a file and can be opened as an ordinary file (you can read the bytes, although you can't write them), and that's what's happening here. Now, because this is the very first file opened after the system came up, it must be file descriptor 0. The two calls to dup(0) now copy file descriptor 0 onto the next two available file descriptors, 1 and 2. So now all three are open, and there we are.
At least, that's my interpretation of the purpose. I'm not 100% sure why it was felt more desirable to have stdout open to an unwritable file than to have it closed; perhaps it affects the way things would fail if there was an attempt to write to it.
--Anonymous, April 14, 2007, 06:16 (UTC).
printf
and fprintf
that this is rarely that much of a problem. The somewhat more usual thing to do is to arrange that fd's 0, 1, and 2 are open on /dev/null
, though this does indeed assume that /dev
and /dev/null
both exist. But typically, by the time a real end-user process is open, the three canonical fd's have been opened on something else, either /dev/tty
or /dev/null
.) —
141.154.50.248
07:07, 14 April 2007 (UTC)getdents
or readdir
to read from directories.]What are the disadvantages and advantages of a gigabit ethernet network? —The preceding unsigned comment was added by 196.208.101.208 ( talk) 11:52, 14 April 2007 (UTC).
I wonder if anyone could shed some light on this:
Whenever I open my favorite Midi program, I get a choice of MIDI Devices (Wavetable Synths) to use: The ever-present Microsoft GS Wavetable SW Synth and another one that probably came with the sound card which someone else installed, SoundMax Wavetable Synth. Using SoundMax I get better-sounding Instruments than using Microsoft. The question is: Can I install new Midi Devices so that in the end I can get a Midi Device with even-better-sounding instruments to appear in that Midi program (without installing any new Hardware, that is)?
I'd appreciate any feedback, since the Wikipedia articles on that particular subject are a bit vague...
Thanks, Danielsavoiu 12:03, 14 April 2007 (UTC)
When viewing and editing Wikipedia on Firefox, I would much prefer light colored text on a dark background. Inverting the current colors would be ideal. How do I do this ? StuRat 15:07, 14 April 2007 (UTC)
new.css
but with all the hex colours inverted:perl -wple 's/#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})/"rgb(".abs(hex($1)-255).",".abs(hex($2)-255).",".abs(hex($3)-255).")"/ie' <main.css > new.css
perl -wple 'if (/white/i) { s/white/black/i } else { s/black/white/i }' <new.css >final.css
and copy the contents of final.css into your
Special:Mypage/monobook.css page. However, as you can see, this doesn't really have the intended effect, as the main body of the articles are still in their original colours. I'll watch this with interest to see if anyone comes back with a full solution...
Johnnykimble
17:21, 14 April 2007 (UTC)textarea {background-color: black; color: white;}
in
your own monobook.css file. --
Kjoon
lee
22:40, 14 April 2007 (UTC)div#bodyContent {background-color: black; color: white;}
and so on in Firefox or monobook.css. If you want to extend this to other elements, you can use Firefox's Web Developer add-on to find out which elements to mention. Press control-shift-F and click on an element to get its details. --
Kjoon
lee
22:49, 14 April 2007 (UTC)Hi, I'm looking for a good font viewer for Windows. Here are my requirements:
Your kind help would be much appreciated. :) Thank you. -- Kjoon lee 15:09, 14 April 2007 (UTC)
Hi, I'm considering getting a digital tv card for my pc but on checking the freeview site I see that my area isn't covered by freeview, & probably won't be till 2011. I take it that I won't be able to get any reception using the tv card but can anyone confirm this &, hopefully, suggest a way around this. Thanks. AllanHainey 15:31, 14 April 2007 (UTC)
I Nead The Name Of Problem Solving Software . " Problem Solving is The Type of Artificial intelligence "
History of this software . Pricing . and advantige and Disadvantage. —The preceding unsigned comment was added by 213.42.21.83 ( talk) 18:33, 14 April 2007 (UTC).
Please This is not homework . I search too much in the internet . but problem solving software is Unlimited , Wide ? please give me one name Of problem solving software ? and i continue the other Topic
Is there a way (in bash) to have netcat reopen every time someone diconnects? Thanks!-- 71.195.124.101 19:45, 14 April 2007 (UTC)
while true; do netcat -v -l -p 12345 echo "Connection closed; listening again" done
while netcat -v -l -p 12345; do echo "Connection closed; listening again" done
netcat -l
doesn't reopen the connection automatically; it's clearly a frequent need. It ought to at least be a built-in option. Perhaps I'll find netcat's author and contribute this. —
Steve Summit (
talk)
14:34, 15 April 2007 (UTC)THese work great, but could someone explain the syntax? I want to be able to do this stuff on my own. And also, how do you get out of the loop?-- 71.195.124.101 15:40, 15 April 2007 (UTC)
command1 command2 command3
if command4 then command5 else command6 fi
while command4 do command7 done
command4
returns a successful
exit status. In principle, command4
can be any command you want, although most of the time, in practice, it's a special-purpose command used mostly for testing conditions, such as
test, or the degenerate do-nothing-but-always-succeed command
/bin/true.if
, then
, else
, fi
, while
, do
, and done
are keywords, and must appear in their correct positions. There is also a mandatory newline, or equivalently a semicolon, after command4
. So you will often see these rendered asif command4; then command5 fi
while command4; do command7 done
Computing desk | ||
---|---|---|
< April 13 | << Mar | April | May >> | April 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 is the network layed out in a school or business? Whats in the runways and what sort of switches or Hubs do they use. Where does their internet come from? That sort of thing. What type of servers are required? or are none required? Iownatv 00:52, 14 April 2007 (UTC)
Hi I have a massive collection of VCDs, is there any free way to convert them into iPod format so I can put it into my iPod? —The preceding unsigned comment was added by 219.78.48.211 ( talk) 01:45, 14 April 2007 (UTC).
There are some routinely-downloaded podcasts for our organization that are useful, but is there a way to "batch-process" them so that the "introductory theme music" and the "closing credits" can be deleted from all the podcasts in our archive? They are extremely annoying when listening to multiple episodes of a particular podcast in one sitting. Also nice would be the ability to cut out portions at arbitrary time points, where "bumper music" usually occurs.
What tools and scripts allow for "batch processing" so the mp3 files do not have to be opened one at a time, by hand. Please include anything you know of, python, java, audacity, whatever. Thanks. NoClutter 04:28, 14 April 2007 (UTC)
I used on software(Hide Files) to hide my personal files it is normaly open by pressing Ctrl+Alt+H. But I choose one option in that software i dont no exactly.... and it was not opened normaly by pressing Ctrl+Alt+Del. And also I cannot find that files.... Any one can Help me because all my files are in that folder which i collected for long time(3 years).... —The preceding unsigned comment was added by 58.68.80.66 ( talk) 04:41, 14 April 2007 (UTC).
Hi, I don't know if this is the right ref. desk, but hopefully it is. On the Gamecube version of "the sims 2 pets", i can't seem to have kids. is it possible on this specific game? if so, how- thanks much!
sorry i forgot to mention which kind- human kids.
Oh, ok. thanks for searching for it!
RedDot's Official Website What is the purpose of RedDot? And what are the vulnerabilities of using RedDot? -- Shines8 04:50, 14 April 2007 (UTC)
open("/", 0); // 0 == O_RDONLY dup(0); dup(0); execl(shell, shell, runc, (char *)0);
Can someone explain in a little more detail? (see http://minnie.tuhs.org/UnixTree/V7/usr/src/cmd/init.c.html for context). —The preceding unsigned comment was added by 203.49.240.43 ( talk) 05:07, 14 April 2007 (UTC).
It confused me too: V7 UNIX is a lot older than //-style comments. Turns out the comment was added by the person who posted it here.
First, runc[] is initialized to the filename "/etc/rc", which is the script that runs when the system starts up. This function's job is to run that script. execl() causes the current process to be replaced by a new one, with the same file descriptors open. (This is the normal way that any process gets started: the parent process first forks itself with fork(), then one copy sets up the file descriptors and uses execl() to mutate into the thing that needs to be run.) In this case that process is a shell whose argument is "/etc/rc", so it will run that script.
The other lines are there to make sure that when this shell starts running, it has the usual three file descriptors open -- standard input (fd 0), standard output (fd 1), and standard error (fd 2). But /etc/rc isn't actually supposed to read anything from stdin, or produce any meaningful output that would go to stdout or stderr. Consequently it doesn't really matter what file the file descriptors point at. So the file that gets opened is "/", the root directory -- the one file that we can be absolutely certain must exist. A directory on traditional UNIX is just a file and can be opened as an ordinary file (you can read the bytes, although you can't write them), and that's what's happening here. Now, because this is the very first file opened after the system came up, it must be file descriptor 0. The two calls to dup(0) now copy file descriptor 0 onto the next two available file descriptors, 1 and 2. So now all three are open, and there we are.
At least, that's my interpretation of the purpose. I'm not 100% sure why it was felt more desirable to have stdout open to an unwritable file than to have it closed; perhaps it affects the way things would fail if there was an attempt to write to it.
--Anonymous, April 14, 2007, 06:16 (UTC).
printf
and fprintf
that this is rarely that much of a problem. The somewhat more usual thing to do is to arrange that fd's 0, 1, and 2 are open on /dev/null
, though this does indeed assume that /dev
and /dev/null
both exist. But typically, by the time a real end-user process is open, the three canonical fd's have been opened on something else, either /dev/tty
or /dev/null
.) —
141.154.50.248
07:07, 14 April 2007 (UTC)getdents
or readdir
to read from directories.]What are the disadvantages and advantages of a gigabit ethernet network? —The preceding unsigned comment was added by 196.208.101.208 ( talk) 11:52, 14 April 2007 (UTC).
I wonder if anyone could shed some light on this:
Whenever I open my favorite Midi program, I get a choice of MIDI Devices (Wavetable Synths) to use: The ever-present Microsoft GS Wavetable SW Synth and another one that probably came with the sound card which someone else installed, SoundMax Wavetable Synth. Using SoundMax I get better-sounding Instruments than using Microsoft. The question is: Can I install new Midi Devices so that in the end I can get a Midi Device with even-better-sounding instruments to appear in that Midi program (without installing any new Hardware, that is)?
I'd appreciate any feedback, since the Wikipedia articles on that particular subject are a bit vague...
Thanks, Danielsavoiu 12:03, 14 April 2007 (UTC)
When viewing and editing Wikipedia on Firefox, I would much prefer light colored text on a dark background. Inverting the current colors would be ideal. How do I do this ? StuRat 15:07, 14 April 2007 (UTC)
new.css
but with all the hex colours inverted:perl -wple 's/#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})/"rgb(".abs(hex($1)-255).",".abs(hex($2)-255).",".abs(hex($3)-255).")"/ie' <main.css > new.css
perl -wple 'if (/white/i) { s/white/black/i } else { s/black/white/i }' <new.css >final.css
and copy the contents of final.css into your
Special:Mypage/monobook.css page. However, as you can see, this doesn't really have the intended effect, as the main body of the articles are still in their original colours. I'll watch this with interest to see if anyone comes back with a full solution...
Johnnykimble
17:21, 14 April 2007 (UTC)textarea {background-color: black; color: white;}
in
your own monobook.css file. --
Kjoon
lee
22:40, 14 April 2007 (UTC)div#bodyContent {background-color: black; color: white;}
and so on in Firefox or monobook.css. If you want to extend this to other elements, you can use Firefox's Web Developer add-on to find out which elements to mention. Press control-shift-F and click on an element to get its details. --
Kjoon
lee
22:49, 14 April 2007 (UTC)Hi, I'm looking for a good font viewer for Windows. Here are my requirements:
Your kind help would be much appreciated. :) Thank you. -- Kjoon lee 15:09, 14 April 2007 (UTC)
Hi, I'm considering getting a digital tv card for my pc but on checking the freeview site I see that my area isn't covered by freeview, & probably won't be till 2011. I take it that I won't be able to get any reception using the tv card but can anyone confirm this &, hopefully, suggest a way around this. Thanks. AllanHainey 15:31, 14 April 2007 (UTC)
I Nead The Name Of Problem Solving Software . " Problem Solving is The Type of Artificial intelligence "
History of this software . Pricing . and advantige and Disadvantage. —The preceding unsigned comment was added by 213.42.21.83 ( talk) 18:33, 14 April 2007 (UTC).
Please This is not homework . I search too much in the internet . but problem solving software is Unlimited , Wide ? please give me one name Of problem solving software ? and i continue the other Topic
Is there a way (in bash) to have netcat reopen every time someone diconnects? Thanks!-- 71.195.124.101 19:45, 14 April 2007 (UTC)
while true; do netcat -v -l -p 12345 echo "Connection closed; listening again" done
while netcat -v -l -p 12345; do echo "Connection closed; listening again" done
netcat -l
doesn't reopen the connection automatically; it's clearly a frequent need. It ought to at least be a built-in option. Perhaps I'll find netcat's author and contribute this. —
Steve Summit (
talk)
14:34, 15 April 2007 (UTC)THese work great, but could someone explain the syntax? I want to be able to do this stuff on my own. And also, how do you get out of the loop?-- 71.195.124.101 15:40, 15 April 2007 (UTC)
command1 command2 command3
if command4 then command5 else command6 fi
while command4 do command7 done
command4
returns a successful
exit status. In principle, command4
can be any command you want, although most of the time, in practice, it's a special-purpose command used mostly for testing conditions, such as
test, or the degenerate do-nothing-but-always-succeed command
/bin/true.if
, then
, else
, fi
, while
, do
, and done
are keywords, and must appear in their correct positions. There is also a mandatory newline, or equivalently a semicolon, after command4
. So you will often see these rendered asif command4; then command5 fi
while command4; do command7 done