Wikipedia:Reference desk/Archives/Computing/2006 September 29

Battery woes with technology
I've just gotten a new 30GB movie iPod, and I'm so excited! But I've received a lot of different comments about how often I should charge it. One person told me that I should let the battery drain all of the way to dead before charging it, and the other said that the iPod should be charged a lot so it always has some charge. What's the better idea? I've heard a lot more about the drain-it-all idea, but the person who constantly charged her iPod said she still has the same iPod from two and a half years ago and it works great. The ikiroid (talk·desk·Advise me) 00:28, 29 September 2006 (UTC)


 * What type of batteries does it have ? StuRat 01:09, 29 September 2006 (UTC)


 * Apple have a page about battery care in iPods, and a page about lithium-ion batteries in general. Also, see our article on Lithium ion battery. --Canley 03:59, 29 September 2006 (UTC)

Ah, so I shouldn't drain it, according to the article. OK, thank you Canley. The ikiroid (talk·desk·Advise me) 19:31, 29 September 2006 (UTC)

BitTorrent
I have been considering joining a BitTorrent project lately, but a question has come up that the project in question's FAQ that seems to be neatly avoided. Is BitTorrent file sharing legal, or not? I am under the impression now that it is legal as long as you do not sell the product, but I don't know. It would be nice to know the legality of BitTorrent before I engage in any activity with it. Thank you! PullToOpen talk 00:57, 29 September 2006 (UTC)


 * There is nothing illegal about BitTorrent. The legal question comes into copying software that you do not hold the legal copyright to copy.  Yes, sharing files online is legally copying thing (I am amazed that people who are smart enough to use a computer claim "You can't copy files - they are just electronic ones and zeros").  If you do not have the right to copy something, it is illegal to copy it or to help someone else copy it.  By sharing files on BitTorrent, you are either copying or helping someone else copy the files.  It may not be what you want to hear, but the law couldn't be simpler.  I'll never understand why it is so hard for people to understand that if you don't have the copyright you don't have the right to copy. --Kainaw (talk) 01:50, 29 September 2006 (UTC)
 * What he said. You fast one you. — X [ Mac Davis ] ( SUPERDESK | Help me improve  )01:51, 29 September 2006 (UTC)
 * That's incorrect. I don't have the copyright for Ubuntu, but I have the right to copy it. --cesarb 15:41, 29 September 2006 (UTC)
 * You do in fact have a license to distribute ubuntu, read the GPL. Anyway what you said makes no sense- "I dont have the copyright... but I have the right to copy." What? --⁪froth T C  19:03, 29 September 2006 (UTC)
 * He didn't copyright it, but he still has the right to copy. --Kjoonlee 03:29, 30 September 2006 (UTC)
 * It is apparent that some people don't take the time to read copyright before assuming they have a clue what it means to have a copyright - which is the shortened for of "to have a copying right". For example, I can write a book (which gives me the copyright) and then give a distributor copyright to copy and sell it.  I'm not giving away my copyright (unless it is in the contract that I have to give up my copyright in a noncompete sort of thing).  That is how Ubuntu (and GPL) works.  The author has the copyright but gives it away to anyone who wants it with the GPL. --Kainaw (talk) 22:43, 30 September 2006 (UTC)

What sort of project do you mean? If you plan to help develop a Bittorrent client, such as uTorrent, that's perfectly legal. If you plan to help organise and maintain a Bittorrent tracker, such as Suprnova or Mininova, you may end up facing prosecution or at least the threat of prosecution.

Windows clock one our late
My system clock in Windows 2000 is one our late. I set it properly but the next day the same story. I do not have the "Automatically adjust clock for daylight saving changes" option enabled

What could be the problem?

Thank you


 * Try enabling it! Mabye your clock is automatically synchronizing itself every day or so, and since daylight saving is off, it shows winter time. That's my guess, anyway. —Bromskloss 11:56, 29 September 2006 (UTC)


 * Perhaps uncheck the checkbox in the Internet Time tab (although that MAY be an XP only feature. Chris M. 14:39, 29 September 2006 (UTC)


 * Disabling it can be bad; some things do not work correctly if your computer's time is incorrect (the one I heard of most recently is cookie expiry in web browsers). --cesarb 20:40, 30 September 2006 (UT

try making sure you have the right time zone.

Windows Update Issue?
A computer here worked fine on Monday. It sat idle all week (but did have Windows Auto-Update running). Now, it will not accept any USB thumbdrives. Was there a MS patch this week that restricts USB access? --Kainaw (talk) 14:02, 29 September 2006 (UTC)


 * Updating this question, just found out it is Win2000 and a Sandisk Cruzer Micro 1GB. --Kainaw (talk) 14:33, 29 September 2006 (UTC)

Accessing My Data In Another Country
If I have a bulky computer that I don't want to transport for study in another country, is there a set up that I could acheive to allow me to access data on my harddrives (if have five to total 800 GB so transport of data/drives not really practical) from a laptop in another country? --Username132 (talk) 15:58, 29 September 2006 (UTC)


 * Do you really need all of it ? I think you should prune it down to just as much as will fit on your laptop. StuRat 18:11, 29 September 2006 (UTC)


 * Try FreeNX --⁪froth T C  19:58, 29 September 2006 (UTC)


 * That gives "near local speed application responsiveness over high latency, low bandwidth links", which, I think, means that it reacts fast. But what you want is the other kind of speed, not reaction time but bytes per second, in other wirds high bandwidth. That is, if you don't just want to acces bits of the data from a distance, but transport it all. 800GB over the Internet would take waaaay too long. If cost is not a major issue, why not buy one really big hard drive, transfer it all to that locally and take that with you. 800GB is just possible now, or else buy two 400GB ones, which would also bring the price down from roughly 400 to 250 euro. dvd's would bring the price down further to about 150 euro (maybe even less if you buy bulk), but I know from experience that that would be way to cumbersome, especially chopping up the data in 5GB chunks. And of course it takes a whole lot of time and I don't know what price tag you put on your time. Whatever option you use, you can always try data compression (eg to make it fit on a smaller disk). I have no experience with that, but I assume that would also consuyme your precious time and you may have to unpack it again when you reach your destination. DirkvdM 08:30, 30 September 2006 (UTC)


 * If you want speedy transfer of nearly a TB of data, nothing will compare to the convenience of an external hard drive --⁪froth T C  16:59, 1 October 2006 (UTC)

Sending emails tips
While sending emails to many people at once I use one of the receipients' address in the "To" field and other addresses on "BCC" field.Is there any way to send mails to different people so that the receipient may think that that mail is specially sent to him and not to others.Here i mean to say that in some cases in place of eg "Dear John" can i insert the receipients' name as a field eg "Dear {Receipient}.May be i could not put the matter exactly.Thanks


 * You put it plainly enough. You want to spam.  There are many spam programs available on the Internet that allow you to do exactly what you are asking. --Kainaw (talk) 18:43, 29 September 2006 (UTC)


 * No spam programs needed, you can do this with Microsoft Office. Give it a list of emails and corresponding first names, and your form letter, and it can send out "personalized" copies of the form letter to every email address in the list. --Maelwys 20:10, 29 September 2006 (UTC)
 * That's jumping to conclusions. There's plenty of legitimate reasons why one would want to send emails to many people at once. Sum0 10:09, 30 September 2006 (UTC)


 * Yes, but what's of questionable legitimacy is making them all look personal.  Neon    Merlin   16:25, 30 September 2006 (UTC)


 * Yes, there are plenty of reasons. Just today, I got tons of offers for mortgages, viagra, baldness cures, fat reducers, a woman in my city who can't wait to meet me...  I'm sure they are all legitimate. --Kainaw (talk) 22:39, 30 September 2006 (UTC)


 * There's those... or there's the actual legitimate reasons. I've used the Office Mail Merge function (that I referred to above) several times, when I had to send out personalized activity reports to 350 people, where each report had to reflect the activity of that specific individual. Mail Merge let me automatically pull the information (email address, individual's name, and associated records) from an excel database, create an individual email to that person, and send it, all at the press of a single button. It would've been days of work to do manually, and it certainly wasn't spam (though I had to send it out in batches of 50 an hour, so my ISP wouldn't think it was spam either ;-) ) --Maelwys 23:26, 30 September 2006 (UTC)


 * By the way, as you can gather by the comments here, if you are sending out bulk email you need to be very careful with your list management policies to avoid being misidentified as spam. This can result in your server being placed on spam blacklists, and thus many legitimate recipients will not be able to get your emails.


 * So make sure your email list is confirmed opt-in, as described by E-mail spam on Wikipedia. --Robert Merkel 01:40, 2 October 2006 (UTC)
 * My intention of asking was not sending spams.I really needed that help while sending greeting cards on the occasion of, say New Year, so that the receipient did not know that I have sent similar greetings to other people also.I wanted to make the receipient feel that it is special greeting sent only to him and not simple mass mail.It is not nice to blame others without knowing the fact. Mr. Kainaw.amrahs 17:35, 3 October 2006 (UTC)

Nintendo "64"
What does "64-bit" mean in the context of describing a video card? Surely the N64 didn't have more than 4GB of dedicated video memory.. why else use 64 bit wide registers if not to hold memory addresses 64 bits long? --⁪froth T C  19:28, 29 September 2006 (UTC)

It's not only about having 64 bits to hold memory registers, remember a CPU/GPU is more than just a fancy switchboard (at times). More important to the N64 was the size of it's video processor, which was also 64 bits, and the MOST important was the width of the video bus which was 128 bits. An increased register size can make SIMD possible (for the cpu and gpu) at a low level, along with other math-intensive functions which are important to good graphic systems. They even touch on why strictly using a 64 bit cpu is bad for consoles, in Nintendo 64.--Jmeden2000 20:19, 29 September 2006 (UTC)

You might be confusing the data bus with the address bus. IIRC, the data bus is how much data can move in/out of the processor in a cycle, while the address bus limits the amount of memory in the system. --Bennybp 21:34, 29 September 2006 (UTC)


 * Oh I see.. one thing though, this sounds entirely wrong to me: "64-bit data uses twice as much RAM, cache, and bandwidth thereby reducing performance" ... if 64-bit refers to the register size (which would affect the address length), it only increases address sizes by 32 bits, not "twice as much data". If it refers to the width of the data bus, then it still makes no sense! --⁪froth T C  22:58, 29 September 2006 (UTC)


 * Umm... why would any video card need to be 64-bit? Screen resolution is nowhere near that fine, and no video card is going to have more than the 4GB limit on 32-bit addresses. What would be the point? - Rainwarrior 17:24, 30 September 2006 (UTC)


 * That's true of address sizes, but apparently it refers to the width of the data bus (64 bits of data can be outputted every cycle) --⁪froth T C  16:57, 1 October 2006 (UTC)

The article on 64-bit shows that the term is pretty ambiguous. It looks like the term can either refer to the width of the various buses, or the size of some data types. IE a 64-bit data type can hold bigger values (2^64 possible values). I'm not positive what the 64 in N64 really meant, but from the N64 article (trivia section) it does look like it refers to the data type sizes, and that the buses are 32-bit. --74.69.54.30 20:15, 1 October 2006 (UTC)


 * In the beginning those bit numbers actually meant something. NES used an 8 bit processor, SNES used a 16-bit processor, PlayStation used a 32-bit processor. However, starting with Nintendo 64 (which actually had a 32 bit processor, if you look at the article), those numbers were simply used as a marker for generations and not any specific hardware issue (occasionally, the PS2 is referred to as a "128-bit" machine, but as you can understand, that makes no sense). This is also why it has fallen out of use, no one refers to the PS3 as a "256-bit" console or a "512-bit" console. Sadly, the days of measuring bad-assesness in terms of word size of the processor are over. Let's have a moment of silence........ Oskar 15:25, 3 October 2006 (UTC)

*nix root and overflow attacks
I've recently become interested in computer security.. one of the kinds of attacks I've read about is the buffer overflow attack. The attacker writes more than the allocated space for a variable so the input spills over possibly into code that's about to be executed. This allows the attacker to overwrite that code with code of his own, and this is called being able to execute arbitrary code on the target machine. Now what I'm confused about is that "running arbitrary code" is automatically associated with gaining root permissions. What about users on a *nix system that can execute any code that they want without any kind of fancy attack at all? In other words it seems like there should be a very difficult step between "running arbitrary code" and "gaining root permissions" but you never hear about that.

One idea that just occured to me is that maybe if the program you're attacking is running as root then your code will have root priviliges as well, but users can't execute any code as root. Is this correct or is was my original question valid? --⁪froth T C  19:56, 29 September 2006 (UTC)
 * Ding ding ding! Convincing the system to run arbitrary code as root is a very fast way to complete control, whereas normal user level security protects against this attack.  System binaries that will be executed as root are protected from editing by users, and any programs a user creates to run on the system will only have that user's level of permission.  For an anonymous attacker to be able to introduce a binary (or part of a binary) for execution as root is a huge problem indeed.  See Buffer overflow and Arbitrary code for more info. --Jmeden2000 20:39, 29 September 2006 (UTC)


 * The reason running arbitrary code is automatically associated with gaining root-level permissions is because of privilege escalation attacks. Because of the wider attack surface, there are usually more priviledge escalation attacks than remote arbitrary code execution attacks, and also the remote attacks tend to get more attention, for obvious reasons. --cesarb 19:56, 30 September 2006 (UTC)

There is, indeed, a Unix COMMAND that gives the user root permissions; sudo is its name. It can be called from a shell script as well. After authentication via an admin password, for a default of 5 minutes, the user may use sudo again to run commands as root. For instance:

sudo nano /var/etc/thefileiwanttoedit.txt

would edit the file mentioned as root, thus giving total control over that file. Furthermore, in regards to installation of programs, programs installed via sudo make (insert parameters here) would give thre program root permissions. Hope this helped ;-) Bellito 19:57, 22 October 2006 (UTC)

Tables by column?
Has there been any move to make HTML or MediaWiki tables where the cells are grouped by column, or not at all, rather than by row? This could (a) make it easier to shift cells down, when editing a table manually; and (b) tell screen readers to read the table sideways. It seems to me this could be done in two ways in HTML, if the standard were changed appropriately:

&lt;table&gt; &lt;tcol&gt; &lt;!-- The current tcol is for formatting only, and doesn't allow any children --&gt; &lt;th&gt; Column 1 Row 1 &lt;/th&gt; &lt;td&gt; Column 1 Row 2 &lt;/td&gt; &lt;td&gt; Column 1 Row 3 &lt;/td&gt; &lt;/tcol&gt; &lt;tcol&gt; &lt;th&gt; Column 2 Row 1 &lt;/th&gt; &lt;td&gt; Column 2 Row 2 &lt;/td&gt; &lt;td&gt; Column 2 Row 3 &lt;/td&gt; &lt;/tcol&gt; &lt;/table&gt;

&lt;table rows=3 cols=2&gt; &lt;th row=1 col=1&gt; Column 1 Row 1 &lt;/th&gt; &lt;td row=2 col=1&gt; Column 1 Row 2 &lt;/td&gt; &lt;td row=3 col=1&gt; Column 1 Row 3 &lt;/td&gt; &lt;th row=1 col=2&gt; Column 2 Row 1 &lt;/th&gt; &lt;td row=2 col=2&gt; Column 2 Row 2 &lt;/td&gt; &lt;td row=3 col=2&gt; Column 2 Row 3 &lt;/td&gt; &lt;/table&gt;

Neon   Merlin   22:30, 29 September 2006 (UTC)


 * I do not have inside information about the deliberations of standards groups, but my impression is that there would be a great deal of resistance among implementors. With such a table structure it would be necessary to read the complete table before setting the first row of it. The current table design tries to make that avoidable. To quote from the HTML 4.01 standard:
 * 
 * The HTML table model has been designed so that, with author assistance, user agents may render tables incrementally (i.e., as table rows arrive) rather than having to wait for all the data before beginning to render.
 * In order for a user agent to format a table in one pass, authors must tell the user agent:
 * The number of columns in the table. Please consult the section on calculating the number of columns in a table for details on how to supply this information.
 * The widths of these columns. Please consult the section on calculating the width of columns for details on how to supply this information.
 * More precisely, a user agent may render a table in a single pass when the column widths are specified using a combination of COLGROUP and COL elements. If any of the columns are specified in relative or percentage terms (see the section on calculating the width of columns), authors must also specify the width of the table itself.
 * 
 * Still, it is not out of the question. Even the current model can be forced to read the complete table to calculate column widths. (The difference is, the proposed model must always read the complete table.) Meanwhile, use a WYSIWYG editor to make the desired manipulation convenient. --KSmrqT 05:19, 30 September 2006 (UTC)


 * Actually, tables could still be rendered piecemeal in the column-by-column model, only they'd proceed sideways.


 * Also, what WYSIWYG editor would you recommend? I've tried WordPerfect, Microsoft Word, OpenOffice.org Writer and FrontPage, and they all produce garbled, inelegant output that requires further manual editing. (Often, they will also throw away some of the existing formatting.) For instance, if I open the following file with OOo Writer,

&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; &lt;html&gt;

&lt;head&gt; &lt;title&gt;DMCI Game Development Club&lt;/title&gt; &lt;link rel="stylesheet" href="default.css"&gt; &lt;/head&gt;

&lt;body&gt; &lt;table cellspacing="0px" cellpadding="0px" align="center" class="header"&gt; &lt;tr&gt; &lt;td colspan=5&gt;&lt;h1&gt;DMCI Game Development Club&lt;/h1&gt;&lt;/td&gt; &lt;/tr&gt;

&lt;tr&gt; &lt;td class="tab"&gt;&lt;img src="interface_images/tab.gif" class="tab" /&gt;&lt;div class="tab"&gt;Active Tab&lt;/div&gt;&lt;/td&gt; &lt;td class="tab"&gt;&lt;img src="interface_images/inactivetab.gif" class="tab" /&gt;&lt;div class="tab"&gt;Other Tab 1&lt;/div&gt;&lt;/td&gt; &lt;td class="tab"&gt;&lt;img src="interface_images/inactivetab.gif" class="tab" /&gt;&lt;div class="tab"&gt;Other Tab 2&lt;/div&gt;&lt;/td&gt; &lt;td class="tab"&gt;&lt;img src="interface_images/inactivetab.gif" class="tab" /&gt;&lt;div class="tab"&gt;Other Tab 3&lt;/div&gt;&lt;/td&gt; &lt;td class="tab"&gt;&lt;img src="interface_images/inactivetab.gif" class="tab" /&gt;&lt;div class="tab"&gt;Other Tab 4&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;&lt;table cellspacing="0px" cellpadding="0px" align="center" class="main"&gt;&lt;tr&gt;

&lt;td class="hborder"&gt;&lt;img src="interface_images/borderleft.gif" class="hborder"&gt;&lt;/td&gt; &lt;td class="textpanel"&gt;

&lt;h2&gt;Welcome!&lt;/h2&gt; &lt;p&gt;This is your main panel. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&lt;/p&gt; &lt;p&gt;Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;

&lt;/td&gt; &lt;td class="hborder"&gt;&lt;img src="interface_images/borderright.gif" class="hborder"&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;&lt;td class="cborder"&gt;&lt;img src="interface_images/borderbottomleft.gif" class="cborder"&gt;&lt;/td&gt; &lt;td class="vborder"&gt;&lt;img src="interface_images/borderbottom.gif" class="vborder"&gt;&lt;/td&gt; &lt;td class="cborder"&gt;&lt;img src="interface_images/borderbottomright.gif" class="cborder"&gt;&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt; &lt;/body&gt; &lt;/html&gt;


 * and save it, without typing or clicking in any changes, it turns into the following:

&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> &lt;HTML&gt; &lt;HEAD&gt; &lt;META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252"&gt; &lt;TITLE&gt;DMCI Game Development Club&lt;/TITLE&gt; &lt;META NAME="GENERATOR" CONTENT="OpenOffice.org 2.0 (Win32)"&gt; &lt;META NAME="CREATED" CONTENT="20060930;12015804"&gt; &lt;META NAME="CHANGED" CONTENT="16010101;0"&gt; &lt;STYLE&gt; &lt;!-- TD P { margin-bottom: 0cm } H1 { text-align: center } --&gt; &lt;/STYLE&gt;

&lt;/HEAD&gt; &lt;BODY LANG="en-GB" BACKGROUND="interface_images/background.gif" DIR="LTR"&gt; &lt;CENTER&gt; &lt;TABLE CELLPADDING=0 CELLSPACING=0 STYLE="page-break-before: always"&gt; &lt;TR&gt; &lt;TD COLSPAN=5&gt; &lt;H1&gt;DMCI Game Development Club&lt;/H1&gt; &lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;

&lt;TD&gt; &lt;P&gt;&lt;IMG SRC="interface_images/tab.gif" NAME="graphics1" ALIGN=BOTTOM WIDTH=120 HEIGHT=30 BORDER=0&gt;&lt;/P&gt; &lt;P&gt;Active Tab&lt;/P&gt; &lt;/TD&gt; &lt;TD&gt; &lt;P&gt;&lt;IMG SRC="interface_images/inactivetab.gif" NAME="graphics2" ALIGN=BOTTOM WIDTH=120 HEIGHT=30 BORDER=0&gt;&lt;/P&gt; &lt;P&gt;Other Tab 1&lt;/P&gt; &lt;/TD&gt;

&lt;TD&gt; &lt;P&gt;&lt;IMG SRC="interface_images/inactivetab.gif" NAME="graphics3" ALIGN=BOTTOM WIDTH=120 HEIGHT=30 BORDER=0&gt;&lt;/P&gt; &lt;P&gt;Other Tab 2&lt;/P&gt; &lt;/TD&gt; &lt;TD&gt; &lt;P&gt;&lt;IMG SRC="interface_images/inactivetab.gif" NAME="graphics4" ALIGN=BOTTOM WIDTH=120 HEIGHT=30 BORDER=0&gt;&lt;/P&gt; &lt;P&gt;Other Tab 3&lt;/P&gt; &lt;/TD&gt;

&lt;TD&gt; &lt;P&gt;&lt;IMG SRC="interface_images/inactivetab.gif" NAME="graphics5" ALIGN=BOTTOM WIDTH=120 HEIGHT=30 BORDER=0&gt;&lt;/P&gt; &lt;P&gt;Other Tab 4&lt;/P&gt; &lt;/TD&gt; &lt;/TR&gt; &lt;/TABLE&gt; &lt;/CENTER&gt; &lt;CENTER&gt; &lt;TABLE CELLPADDING=0 CELLSPACING=0&gt;

&lt;TR&gt; &lt;TD BGCOLOR="#eeddcc"&gt; &lt;P&gt;&lt;IMG SRC="interface_images/borderleft.gif" NAME="graphics6" ALIGN=BOTTOM WIDTH=15 HEIGHT=1 BORDER=0&gt;&lt;/P&gt; &lt;/TD&gt; &lt;TD BGCOLOR="#eeddcc"&gt; &lt;H2&gt;Welcome!&lt;/H2&gt; &lt;P STYLE="margin-bottom: 0.5cm"&gt;This is your main panel. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&lt;/P&gt; &lt;P&gt;Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/P&gt;

&lt;/TD&gt; &lt;TD BGCOLOR="#eeddcc"&gt; &lt;P&gt;&lt;IMG SRC="interface_images/borderright.gif" NAME="graphics7" ALIGN=BOTTOM WIDTH=15 HEIGHT=1 BORDER=0&gt;&lt;/P&gt; &lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt; &lt;TD BGCOLOR="#eeddcc"&gt; &lt;P&gt;&lt;IMG SRC="interface_images/borderbottomleft.gif" NAME="graphics8" ALIGN=BOTTOM WIDTH=15 HEIGHT=15 BORDER=0&gt;&lt;/P&gt; &lt;/TD&gt;

&lt;TD BGCOLOR="#eeddcc"&gt; &lt;P&gt;&lt;IMG SRC="interface_images/borderbottom.gif" NAME="graphics9" ALIGN=BOTTOM WIDTH=1 HEIGHT=15 BORDER=0&gt;&lt;/P&gt; &lt;/TD&gt; &lt;TD BGCOLOR="#eeddcc"&gt; &lt;P&gt;&lt;IMG SRC="interface_images/borderbottomright.gif" NAME="graphics10" ALIGN=BOTTOM WIDTH=15 HEIGHT=15 BORDER=0&gt;&lt;/P&gt; &lt;/TD&gt; &lt;/TR&gt; &lt;/TABLE&gt; &lt;/CENTER&gt;

&lt;P&gt;&lt;BR&gt;&lt;BR&gt; &lt;/P&gt; &lt;/BODY&gt; &lt;/HTML&gt;


 * These render very differently, in both IE and Firefox. The former is CSS-compliant; the latter isn't, and causes quirks mode. (I can provide the external CSS I was using, too, if it makes a difference.)  Neon    Merlin   15:57, 30 September 2006 (UTC)


 * Did you try Nvu or Quanta? --cesarb 19:45, 30 September 2006 (UTC)


 * The questioner appears to assume that you have to enter tables as:

&lt;table&gt; &lt;tr&gt; &lt;td&gt;top left&lt;/td&gt; &lt;td&gt;top right&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;bottom left&lt;/td&gt; &lt;td&gt;bottom right&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;
 * That is not the case. You do not need all the newlines.  You are perfectly allowed to use:

&lt;table&gt; &lt;tr&gt; &lt;td&gt;top left&lt;/td&gt;   &lt;td&gt;top right&lt;/td&gt;    &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;bottom left&lt;/td&gt; &lt;td&gt;bottom right&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;
 * Now, it looks nearly the same as it does on the page. --Kainaw (talk) 22:52, 30 September 2006 (UTC)

Basic, low-level audio on Windows
I'm interested in coding a program (in C\C++ or Python) for some low-level audio control in Windows. What I mean is, I want to deal with the actual samples from the stereo output. I don't want to import sound files or anything like that, I just want to output audio based on direct manipulation of samples, which is what this program should do. Example, I want to be able to play a 440 Hz sine wave sound by just writing samples following the sine function over time (using the sample rate and the frequency to get the said 440 Hz)

Any suggestions on where to start? I'm not very experienced in either C\C++ or Python, but I just need a few complex and interesting projects to push my skills further. Thanks! - L.


 * All you need to do is to configure the audio device and push sample buffers at it - to synthesise waveforms, you quite literally just make up a sine wave (using, generally, the sin function) that repeats at the rate you want (and hence the frequency of the sound) and with the amplitude multiplied up so that the sound is audible. On windows in C you'd probably use DirectSound, in Python you'd probably use Pygame. I'm afraid I don't have an example program in either, but below is a simple sin synthesiser which uses the unix   sound interface (which, incidentally, works fine in cygwin). Apart from the audio-device stuff there's just some very basic stuff that builds a waveform from the sine function before playing it.  The code is a little more complicated than you absolutely basically need, as it has a simple envelope which fades the volume in and out for each note (without this you hear a nasty click at the beginning and end).


 * Here is something I cooked up a couple of years ago. It's shit, but it might give you some ideas. It creates a raw integer soundfile with no specific formatting or header information... Magic Window 15:34, 1 October 2006 (UTC)