MRI scans of a preserved skull showed the presence of two poison glands in the lower jaw. They extracted one of these glands from the head of a terminally ill specimen in the Singapore Zoological Gardens, and found that it secreted a venom containing several different toxic proteins. The known functions of these proteins include inhibition of blood clotting, lowering of blood pressure, muscle paralysis, and the induction of hypothermia, leading to shock and loss of consciousness in envenomated prey.I'd always heard what had been previously believed - that they merely had toxic bacteria in their mouths that was transferred in bites.
Search This Blog
Monday, May 25, 2009
Random Fact of the Day
I just learned that some lizards (e.g. Gila Monsters, Komodo Dragons) are venomous.
Friday, May 15, 2009
Basic Word Order
Obviously, English typically has has the word order subject-verb[-(direct) object] (or SVO, for short). This can be altered in specific situations due to WH-movement (e.g. OSV in "What would you like?") and other structures, but SVO is the normal word order.
However, this isn't the only possible word order. Basic combination math tells us that there are six possible orders: SVO, SOV (e.g. Japanese, Korean, Latin, and Proto-Indo-European), VSO (e.g. Hebrew, Trique, and Caia), VOS, OSV, OVS; these are, however, not all equally likely.
Two rules have been developed which govern the prominence of different word orders. First, there's a tendency for the subject to precede the (direct) object. This is known as subject salience. There have been various theories on the exact reason for this; the general idea is that it's more natural for the subject to precede the object because they subject is typically the source of an action, and thus precedes the object in both cause and effect and chronological order.
The other is that there is a tendency for the object to sit next to the verb (on either side). Linguistics thus far has developed the notion that the object and the verb logically form a structure called the predicate, which stands apart from the subject (i.e. a clause is typically defined as a subject + a predicate). I haven't investigated the full depth of why this has been decided, so I couldn't really give more detail than that (though it's noteworthy that this idea is consistent with my hypothesis that language began as commands - the command forms the predicate, and the subject was added in later).
Thus, we have four classes of word order: those that meet both conditions, those that meet one or the other, and those that meet neither. In agreement with theory, SVO and SOV are by far the most common among languages, at 42% and 45%, respectively. On the distant second tier is VSO, which places the subject between verb and object, occurring with 9% frequency. On the again distant third tier are VOS, and OVS, each placing the object before the subject; these occur with 3% and 1% frequency, respectively. At the bottom is OSV, which violates both rules, and was not seen in any language in this survey of 402 languages.
Clearly the subject salience rule dominates in significance, as orders where object precedes subject are very rare (3% or less); although it's also true that languages where the object is not next to the verb are uncommon (9% or less).
However, this isn't the only possible word order. Basic combination math tells us that there are six possible orders: SVO, SOV (e.g. Japanese, Korean, Latin, and Proto-Indo-European), VSO (e.g. Hebrew, Trique, and Caia), VOS, OSV, OVS; these are, however, not all equally likely.
Two rules have been developed which govern the prominence of different word orders. First, there's a tendency for the subject to precede the (direct) object. This is known as subject salience. There have been various theories on the exact reason for this; the general idea is that it's more natural for the subject to precede the object because they subject is typically the source of an action, and thus precedes the object in both cause and effect and chronological order.
The other is that there is a tendency for the object to sit next to the verb (on either side). Linguistics thus far has developed the notion that the object and the verb logically form a structure called the predicate, which stands apart from the subject (i.e. a clause is typically defined as a subject + a predicate). I haven't investigated the full depth of why this has been decided, so I couldn't really give more detail than that (though it's noteworthy that this idea is consistent with my hypothesis that language began as commands - the command forms the predicate, and the subject was added in later).
Thus, we have four classes of word order: those that meet both conditions, those that meet one or the other, and those that meet neither. In agreement with theory, SVO and SOV are by far the most common among languages, at 42% and 45%, respectively. On the distant second tier is VSO, which places the subject between verb and object, occurring with 9% frequency. On the again distant third tier are VOS, and OVS, each placing the object before the subject; these occur with 3% and 1% frequency, respectively. At the bottom is OSV, which violates both rules, and was not seen in any language in this survey of 402 languages.
Clearly the subject salience rule dominates in significance, as orders where object precedes subject are very rare (3% or less); although it's also true that languages where the object is not next to the verb are uncommon (9% or less).
Wednesday, May 06, 2009
& Spring 2009 Anime Music
I've been meaning to write a post about the anime series I'm watching this season (though some I still haven't decided if I'm gonna watch all of yet), but thus far (up to and including now) I've been too lazy to actually do it.
Instead, I'll do something that's substantially less work for me: post some of the theme songs of series I'm watching with (very) brief comments.
The Asura Cryin' ending theme is really the one that made me decide to do this post. Which is to say I'm fond of it.
The music within the series also didn't seem too bad. I haven't heard enough to decide whether I think it's good, it's certainly superior to the typical mediocre anime music.
The opening isn't as good as the ending, but not bad, especially the first 20 seconds or so.
As I watched the Pandora Hearts opening theme, the short violin segment reminded me of Yuki Kajiura, one of my favorite composers, who is known especially for very pretty violin pieces. A quick look on Anime News Network confirmed that the series was indeed done by her. I wouldn't say the opening is her best work, but it's certainly not bad.
So that should mean the music for the series will be pretty good.
The ending isn't as good as the opening, but from a quick glance at the credits I don't think it was done by her (it's fairly common for the openings and/or endings to be done by different composers than the series music - often real bands). It also isn't bad.
K-ON! is a quirky series. It's amusing, but excessively cute. From what I've seen so far, the music is very mediocre, though the opening and ending aren't quite so much, though for different reasons.
About all I have to say about that is that I don't think I'll be listening to that opening apart from showing it to people with hangovers.
The ending is similarly loud, but substantially better; palatable, and even a bit catchy. I do really like the animation that goes along with the ending theme - parts of it are quite artistic, and look very sharp (such as the black and white ensemble).
Instead, I'll do something that's substantially less work for me: post some of the theme songs of series I'm watching with (very) brief comments.
The Asura Cryin' ending theme is really the one that made me decide to do this post. Which is to say I'm fond of it.
The music within the series also didn't seem too bad. I haven't heard enough to decide whether I think it's good, it's certainly superior to the typical mediocre anime music.
The opening isn't as good as the ending, but not bad, especially the first 20 seconds or so.
As I watched the Pandora Hearts opening theme, the short violin segment reminded me of Yuki Kajiura, one of my favorite composers, who is known especially for very pretty violin pieces. A quick look on Anime News Network confirmed that the series was indeed done by her. I wouldn't say the opening is her best work, but it's certainly not bad.
So that should mean the music for the series will be pretty good.
The ending isn't as good as the opening, but from a quick glance at the credits I don't think it was done by her (it's fairly common for the openings and/or endings to be done by different composers than the series music - often real bands). It also isn't bad.
K-ON! is a quirky series. It's amusing, but excessively cute. From what I've seen so far, the music is very mediocre, though the opening and ending aren't quite so much, though for different reasons.
About all I have to say about that is that I don't think I'll be listening to that opening apart from showing it to people with hangovers.
The ending is similarly loud, but substantially better; palatable, and even a bit catchy. I do really like the animation that goes along with the ending theme - parts of it are quite artistic, and look very sharp (such as the black and white ensemble).
Sunday, April 26, 2009
Empathy Hierarchy and Other Ungodly Things
A ways back I wrote a post about empathy (also called animacy or agency) hierarchies and how the empathy hierarchy in Spanish and other romance languages worked, explaining a peculiarity of their grammar that had haunted me since high school Spanish. Unfortunately, I was excited at the time I was writing, and didn't explain it near as clearly as I should have.
Anyway, to briefly recap, empathy hierarchy is a system of classifying entities (e.g. nouns) according to the level of empathy the speaker feels towards them. While the number and composition of levels vary by language, the general trends are 1st person >= 2nd person >= 3rd person, animate >= inanimate, definite >= indefinite (e.g. "those people" >= "some people"). In Spanish there were three levels with regard to verb agreement: 1st person ("[yo] juego" - "I play") > 2nd person familiar ("[tú] juegas") > 2nd person formal ("usted juega") + 3rd person ("[él] juega"); this makes logical sense because you would have more empathy towards those you would address with the 2nd person familiar (e.g. your friends and family) than those you would address with the formal 2nd person (e.g. people you meet on the street). One of the most common things governed by empathy hierarchy is verb agreement, which is exactly what is seen in Spanish in the above examples.
One of the languages (actually a family of languages) I'm creating for one of my stories turns the concept of empathy hierarchy completely upside-down. In these languages, verbs agree with the subject, direct object [if any], and indirect object [if any] (this is as complicated as it sounds, though some real "polypersonal" languages actually do have verbs that agree with all three of those). As the subject, direct object, and indirect object are not marked for case and word order is free, verb agreement is really the only way to tell who's doing what in a sentence; for example, you could have something like "Dog bone boy gaveheitit" or "Bone boy dog gaveheitit", which would mean more or less the same thing, as word order isn't important in this respect (word order indicates more subtle things, such as what is emphasized in a sentence).
However, instead of relying on animacy or empathy to create this agreement system (animacy and/or empathy being pretty much universal in natural languages, as far as I know), these languages use rank. Specifically, a seven-tiered hierarchy with levels I label -3 (lowest) to +3 (highest). For humans, rank reflects social status relative to the speaker. Rank 0 is reserved for the first person, ranks below 0 represent those below the social status of the speaker, and ranks above 0 above the speaker, with the degree of difference indicated by the rank (rank x + 1 > rank x); e.g. use of rank 2 by the speaker to refer to someone would mean that that person has a social status substantially higher than that of the speaker. For nonhumans (animals and inanimate objects) rank is based on respect for that thing - positive and/or honorable things would have high rank, negative or dishonorable things would have low rank; in this way rank resembles more arbitrary noun class systems.
Now, depending on how deeply you thought about what I just said, you may or may not already be scared of this idea; so let me illustrate. Suppose you have two coworkers at a job talking to each other (thus they'd be of the same social status). As it's customary to show some respect to those of the same rank as you in East Asian cultures (these languages are loosely based on Japanese, with a bunch of fun stuff thrown in), both would refer to each other ("you" in English) with the +1 level. However, as this system does not distinguish between 2nd and 3rd person, if one of them uses the +1 level for something, it could just as easily refer to some third co-worker who wasn't a part of the conversation (a 3rd person, no pun intended). Or it could simply refer to some inanimate object that just happens to be at the +1 rank.
But that's easy stuff. Now imagine a person writing to a politician. If this was just an average person, they might use rank +2 to refer to the politician ("you", in English), given the significant difference in social status. The politician would then use rank -2 to refer to the person (or -1, if the politician wanted to be polite), which would also be written "you" in English. Now suppose they were talking about the king. The lay person would probably refer to the king with +3 rank; the politician, however, would use a lower rank (+1 or +2), as their own social status is greater. Of course, any of these (-2, -1, +1, +2, +3) could simply be referring to an inanimate object, instead.
Worse yet, the innate rank of an animal or inanimate object could be modified based on the rank of a possessor; that is, if the possessor of an object has a significantly different rank than the speaker, the rank of the thing possessed might be elevated or lowered to reflect the possessor.
Suppose that dog' has an innate rank of +1. In the previous scenario, the person might then use rank +1 to refer to his dog, +2 to refer to the politician's dog, and +2 or +3 to refer to the king's dog. The politician, on the other hand, might refer to his own dog as +1, the person's dog as -1, and the king's dog as +2.
And as one last nail in the coffin of sanity is a concept I call the heterogeneous plural. That is, a plural that comprises members of significantly different rank. In this case, the rank of the group as a whole would be the rank of the highest-ranking member. So if the person writing a politician referred to level +3, he could be referring the the king, the king and the politician together, the king's dog, or something else entirely.
That's me: raping your mind since 1983.
Anyway, to briefly recap, empathy hierarchy is a system of classifying entities (e.g. nouns) according to the level of empathy the speaker feels towards them. While the number and composition of levels vary by language, the general trends are 1st person >= 2nd person >= 3rd person, animate >= inanimate, definite >= indefinite (e.g. "those people" >= "some people"). In Spanish there were three levels with regard to verb agreement: 1st person ("[yo] juego" - "I play") > 2nd person familiar ("[tú] juegas") > 2nd person formal ("usted juega") + 3rd person ("[él] juega"); this makes logical sense because you would have more empathy towards those you would address with the 2nd person familiar (e.g. your friends and family) than those you would address with the formal 2nd person (e.g. people you meet on the street). One of the most common things governed by empathy hierarchy is verb agreement, which is exactly what is seen in Spanish in the above examples.
One of the languages (actually a family of languages) I'm creating for one of my stories turns the concept of empathy hierarchy completely upside-down. In these languages, verbs agree with the subject, direct object [if any], and indirect object [if any] (this is as complicated as it sounds, though some real "polypersonal" languages actually do have verbs that agree with all three of those). As the subject, direct object, and indirect object are not marked for case and word order is free, verb agreement is really the only way to tell who's doing what in a sentence; for example, you could have something like "Dog bone boy gaveheitit" or "Bone boy dog gaveheitit", which would mean more or less the same thing, as word order isn't important in this respect (word order indicates more subtle things, such as what is emphasized in a sentence).
However, instead of relying on animacy or empathy to create this agreement system (animacy and/or empathy being pretty much universal in natural languages, as far as I know), these languages use rank. Specifically, a seven-tiered hierarchy with levels I label -3 (lowest) to +3 (highest). For humans, rank reflects social status relative to the speaker. Rank 0 is reserved for the first person, ranks below 0 represent those below the social status of the speaker, and ranks above 0 above the speaker, with the degree of difference indicated by the rank (rank x + 1 > rank x); e.g. use of rank 2 by the speaker to refer to someone would mean that that person has a social status substantially higher than that of the speaker. For nonhumans (animals and inanimate objects) rank is based on respect for that thing - positive and/or honorable things would have high rank, negative or dishonorable things would have low rank; in this way rank resembles more arbitrary noun class systems.
Now, depending on how deeply you thought about what I just said, you may or may not already be scared of this idea; so let me illustrate. Suppose you have two coworkers at a job talking to each other (thus they'd be of the same social status). As it's customary to show some respect to those of the same rank as you in East Asian cultures (these languages are loosely based on Japanese, with a bunch of fun stuff thrown in), both would refer to each other ("you" in English) with the +1 level. However, as this system does not distinguish between 2nd and 3rd person, if one of them uses the +1 level for something, it could just as easily refer to some third co-worker who wasn't a part of the conversation (a 3rd person, no pun intended). Or it could simply refer to some inanimate object that just happens to be at the +1 rank.
But that's easy stuff. Now imagine a person writing to a politician. If this was just an average person, they might use rank +2 to refer to the politician ("you", in English), given the significant difference in social status. The politician would then use rank -2 to refer to the person (or -1, if the politician wanted to be polite), which would also be written "you" in English. Now suppose they were talking about the king. The lay person would probably refer to the king with +3 rank; the politician, however, would use a lower rank (+1 or +2), as their own social status is greater. Of course, any of these (-2, -1, +1, +2, +3) could simply be referring to an inanimate object, instead.
Worse yet, the innate rank of an animal or inanimate object could be modified based on the rank of a possessor; that is, if the possessor of an object has a significantly different rank than the speaker, the rank of the thing possessed might be elevated or lowered to reflect the possessor.
Suppose that dog' has an innate rank of +1. In the previous scenario, the person might then use rank +1 to refer to his dog, +2 to refer to the politician's dog, and +2 or +3 to refer to the king's dog. The politician, on the other hand, might refer to his own dog as +1, the person's dog as -1, and the king's dog as +2.
And as one last nail in the coffin of sanity is a concept I call the heterogeneous plural. That is, a plural that comprises members of significantly different rank. In this case, the rank of the group as a whole would be the rank of the highest-ranking member. So if the person writing a politician referred to level +3, he could be referring the the king, the king and the politician together, the king's dog, or something else entirely.
That's me: raping your mind since 1983.
Saturday, April 11, 2009
Moving On Up
I'd heard all of this from him directly, but I just ran across this post on the ZDNet Security blog - Microsoft adds 'Skywing' to Windows defense team.
Incidentally, Miller is the arch-nemesis I mentioned earlier.
Incidentally, Miller is the arch-nemesis I mentioned earlier.
Friday, April 10, 2009
Random Late-Night Thought
For a while I've been aware of a particular piece of linguistic evidence - namely, that cross-linguistically it is common for the imperative (command) form of verbs to be shorter than other forms, seemingly lacking inflectional affixes applied to other conjugations. For example, in Old English, the verb 'creopan' (infinitive form) is 'creope' for first person singular, 'criepth' for third person singular, but 'creop' for imperative singular. This led me to hypothesize that language might have begun as commands, and later evolved to support more general types of expressions by the addition of affixes or extra words.
Think about the significance of this for a moment. One of the most frequent differences between normal sentences and imperative sentences is that the imperative usually does not have a (stated) subject, while, depending on the language, general sentences may require subjects.
Now, one of the big mysteries of linguistics is how we came to have such radically different language systems as accusative, ergative, and topic-comment*. Yet if commands were all that was originally spoken, this provides us with a trivial answer: initially, there was only a direct object and no subject, thus that language would predate the differentiation of the three types.
As the language evolved further, eventually there would be the need to add in a subject; how exactly this was handled would then determine which of the three paths was taken. Accusative languages would place the subject in a separate case (nominative) from the direct object (accusative case). Ergative languages would classify the subject based on whether its role is the agent (ergative case) or patient (absolutive case). Finally, topic-comment languages would place the subject (the topic) completely apart from the rest of the sentence (the comment).
*Since I don't think I've talked too much about topic-comment structure, I'll briefly explain here. In topic-comment languages, a topic is stated for a sentence or set of sentences, then a number of comments are made regarding that topic. Japanese, Korean, and Chinese are like this, among others, although it's also possible to use a periphrastic form in languages like English (e.g. "As for the movie [the topic], we'll meet at 2 [the comment]").
Of particular relevance, one thing the topic can be used for is the subject of the sentence, e.g. "As for him, he'll be coming later" (though true topic-comment languages usually wouldn't duplicate the subject as English does - it would be more like "As for him, will come later"); this is frequently done in Japanese and Korean, for example. Of course, the comment may have a different subject than the topic, so topic-comment languages may also be accusative or ergative (e.g. Japanese is accusative). Here I am hypothesizing that initially the subject was represented exclusively as the topic, then further evolution allowed the subject to be within the comment itself (although whether this is true is relatively unimportant to the theory that languages began as commands).
Think about the significance of this for a moment. One of the most frequent differences between normal sentences and imperative sentences is that the imperative usually does not have a (stated) subject, while, depending on the language, general sentences may require subjects.
Now, one of the big mysteries of linguistics is how we came to have such radically different language systems as accusative, ergative, and topic-comment*. Yet if commands were all that was originally spoken, this provides us with a trivial answer: initially, there was only a direct object and no subject, thus that language would predate the differentiation of the three types.
As the language evolved further, eventually there would be the need to add in a subject; how exactly this was handled would then determine which of the three paths was taken. Accusative languages would place the subject in a separate case (nominative) from the direct object (accusative case). Ergative languages would classify the subject based on whether its role is the agent (ergative case) or patient (absolutive case). Finally, topic-comment languages would place the subject (the topic) completely apart from the rest of the sentence (the comment).
*Since I don't think I've talked too much about topic-comment structure, I'll briefly explain here. In topic-comment languages, a topic is stated for a sentence or set of sentences, then a number of comments are made regarding that topic. Japanese, Korean, and Chinese are like this, among others, although it's also possible to use a periphrastic form in languages like English (e.g. "As for the movie [the topic], we'll meet at 2 [the comment]").
Of particular relevance, one thing the topic can be used for is the subject of the sentence, e.g. "As for him, he'll be coming later" (though true topic-comment languages usually wouldn't duplicate the subject as English does - it would be more like "As for him, will come later"); this is frequently done in Japanese and Korean, for example. Of course, the comment may have a different subject than the topic, so topic-comment languages may also be accusative or ergative (e.g. Japanese is accusative). Here I am hypothesizing that initially the subject was represented exclusively as the topic, then further evolution allowed the subject to be within the comment itself (although whether this is true is relatively unimportant to the theory that languages began as commands).
Thursday, April 09, 2009
Curve Ball
Some surprising last-minute good news from France:
Which I suppose makes for a (tentative) good-triumphs-over-evil-in-the-end Hollywood ending, after what the proponents of the law pulled in parliament.
After the parliament voted in favor of the law, no one doubted that it would be approved by the senate and National Assembly as well. As expected the law was indeed ratified by the senate this morning, but to everyone’s surprise it didn’t make it through the National Assembly.
...
Unfortunately the law is not completely off the table. It is likely to be voted on again on April 27 according to members of UMP, one of the supporting parties. However, failing to get it passed through the National Assembly the first time is clearly a huge mistake that is almost amateurish, and public opinion is not likely to change anytime soon.
Which I suppose makes for a (tentative) good-triumphs-over-evil-in-the-end Hollywood ending, after what the proponents of the law pulled in parliament.
Friday, April 03, 2009
Name That Movie
See if you can recognize this one.
A bill written by big business interests is proposed in French parliament. Hugely controversial, the bill is opposed by most apart from the business interests that wrote it, and it is difficult to see how it could pass (although you can never underestimate the corruption of government officials). As the deadline for the vote draws near, an intense debate lasting 42 hours straight breaks out among parliament members.
Eventually, late Thursday evening, it is decided that the debate should cease and parliament members should go home for the night, and the bill would be voted on the next week. So, parliament members do exactly that. After about 98% of parliament members have left the building, the vote is called early, at nearly 11 PM on Thursday night. With 16 members remaining, the bill passes, 12 to 4.
Can you name that movie?
Actually you can't, because it actually happened - yesterday. This is the French Three-Strikes law, which promises to disconnect people from the internet on allegation of copyright infringement, without ever having to present evidence in court or even tell the accused what copyright they are thought to have infringed. It will also require running spyware on all computers that constantly talks to government systems and monitors activity and the state of your network.
Welcome to French democracy, proving that America really isn't that bad afterall.
A bill written by big business interests is proposed in French parliament. Hugely controversial, the bill is opposed by most apart from the business interests that wrote it, and it is difficult to see how it could pass (although you can never underestimate the corruption of government officials). As the deadline for the vote draws near, an intense debate lasting 42 hours straight breaks out among parliament members.
Eventually, late Thursday evening, it is decided that the debate should cease and parliament members should go home for the night, and the bill would be voted on the next week. So, parliament members do exactly that. After about 98% of parliament members have left the building, the vote is called early, at nearly 11 PM on Thursday night. With 16 members remaining, the bill passes, 12 to 4.
Can you name that movie?
Actually you can't, because it actually happened - yesterday. This is the French Three-Strikes law, which promises to disconnect people from the internet on allegation of copyright infringement, without ever having to present evidence in court or even tell the accused what copyright they are thought to have infringed. It will also require running spyware on all computers that constantly talks to government systems and monitors activity and the state of your network.
Welcome to French democracy, proving that America really isn't that bad afterall.
Wednesday, April 01, 2009
& Patents... or Lack Thereof
A ways back (might have even been a couple years), I came up with an idea for something called Anonymous Private Mail, or a-p mail, a system of e-mail which provides for much greater privacy. Rather than using an e-mail address, a-p mail identifies individuals by their public/private key pair used to encrypt the e-mails (the private part). What made the a-p mail system so novel was that it was able to route a message from sender to receiver without ever knowing the keys of the sender or recipient (the anonymous part). Because of this, the e-mail server (or anyone monitoring it) could not even tell if two e-mails were sent by the same person or received by the same person (in contrast to normal e-mail systems, where the server always knows at least the e-mail address of the receiver).
I was initially concerned about disclosing how it works, especially with regard to patenting it. This system originated in one of my stories (the universe of Starfall and Eve of Tomorrow, which I briefly mentioned previously) as a method allowing criminals (especially terrorists) to communicate. I was concerned that if I patented it, it would be used in the same was it was used in the story. For this reason I posted the basic description (essentially what I wrote above) on this blog and some forums, asking for comments about whether I should patent it or keep it secret forever.
Eventually, a consensus opinion was reached that if I'd managed to come up with this idea, others would also be able to, so the only thing that keeping it secret would do is prevent me from potentially receiving licensing fees for the patent on it. So, after a great deal of procrastination (me being me), I finally wrote up the patent application and submitted it to the US Patent and Trademark Office last Thursday.
While not entirely unforeseeable, I was still very surprised to find two men in suits at my front door on Friday. To make a long discussion short, they explained that they were from the US Department of Homeland Security; they had seen my patent application, and, apparently, I wasn't the only one concerned about the possible application of the method to criminal organizations (particularly terrorism). They informed me that they'd deleted my patent application, and presented me with a federal gag order barring me from disclosing the details of the method to anyone else (including making further attempts to patent it).
So, I guess I won't be patenting it afterall. Funny how all decisions become easy when you're reduced to only a single option... At least this won't impact my stories - as they weren't targeted specifically at people with great knowledge of computers, most people wouldn't have understood the thing even if I had explained how it worked in the stories.
I was initially concerned about disclosing how it works, especially with regard to patenting it. This system originated in one of my stories (the universe of Starfall and Eve of Tomorrow, which I briefly mentioned previously) as a method allowing criminals (especially terrorists) to communicate. I was concerned that if I patented it, it would be used in the same was it was used in the story. For this reason I posted the basic description (essentially what I wrote above) on this blog and some forums, asking for comments about whether I should patent it or keep it secret forever.
Eventually, a consensus opinion was reached that if I'd managed to come up with this idea, others would also be able to, so the only thing that keeping it secret would do is prevent me from potentially receiving licensing fees for the patent on it. So, after a great deal of procrastination (me being me), I finally wrote up the patent application and submitted it to the US Patent and Trademark Office last Thursday.
While not entirely unforeseeable, I was still very surprised to find two men in suits at my front door on Friday. To make a long discussion short, they explained that they were from the US Department of Homeland Security; they had seen my patent application, and, apparently, I wasn't the only one concerned about the possible application of the method to criminal organizations (particularly terrorism). They informed me that they'd deleted my patent application, and presented me with a federal gag order barring me from disclosing the details of the method to anyone else (including making further attempts to patent it).
So, I guess I won't be patenting it afterall. Funny how all decisions become easy when you're reduced to only a single option... At least this won't impact my stories - as they weren't targeted specifically at people with great knowledge of computers, most people wouldn't have understood the thing even if I had explained how it worked in the stories.
Friday, March 27, 2009
So Much for That
A couple weeks ago I happened to be at a certain computer store. I happened to notice that they had a sale on a GeForce 9400 GT 512 meg video card for $40 (normally $70). While I already have a sufficiently powerful video card, I'd been thinking for a while about picking up a cheap GeForce, in case I ever felt inclined to play with CUDA (my video card is an ATI). So, I grabbed one.
After a sufficient amount of procrastination (specifically, two weeks, bringing it to the last day to return it), I figured I should see about opening it and installing it, to make sure it works. But first I decided to do a bit of research: namely, whether you can have both an ATI and nVidia card in the computer at a time. Obviously this should work, but with the ATI and nVidia war, driver idiocy, etc., you never know.
Well, it turns out that you can't - at least, not in Vista (I'm using 2008, which is based on Vista). Specifically, Vista only allows one WDDM display driver to be loaded at a time; this means that if you have multiple video cards, they all need to use the same video driver. While Vista still supports older XP XPDM display drivers (and allows multiple XPDM drivers to be loaded at once), it'll cost you - WDDM drivers are required for things such as Aero and DirectX 10; worse, you can't have one driver that's XPDM and one that's WDDM. Windows 7 is rumored to support multiple WDDM display drivers at once.
And that's why I tried it while it was still returnable, and didn't open it before doing some basic research.
After a sufficient amount of procrastination (specifically, two weeks, bringing it to the last day to return it), I figured I should see about opening it and installing it, to make sure it works. But first I decided to do a bit of research: namely, whether you can have both an ATI and nVidia card in the computer at a time. Obviously this should work, but with the ATI and nVidia war, driver idiocy, etc., you never know.
Well, it turns out that you can't - at least, not in Vista (I'm using 2008, which is based on Vista). Specifically, Vista only allows one WDDM display driver to be loaded at a time; this means that if you have multiple video cards, they all need to use the same video driver. While Vista still supports older XP XPDM display drivers (and allows multiple XPDM drivers to be loaded at once), it'll cost you - WDDM drivers are required for things such as Aero and DirectX 10; worse, you can't have one driver that's XPDM and one that's WDDM. Windows 7 is rumored to support multiple WDDM display drivers at once.
And that's why I tried it while it was still returnable, and didn't open it before doing some basic research.
Thursday, March 26, 2009
Die, .NET. Thanks.
So, just encountered an (extremely) evil quirk of the .NET platform in a bug.
Everyone who programs .NET knows that one key difference between the two is that structs are (without ref specified) always passed by value, while classes are passed by reference. Apparently that rule is not limited to actual passing of structs, themselves; passing a "pointer" to a callback function for an instance of a struct causes a copy of the entire struct to be passed, and the callback is then called on that copy, not your original instance.
Example:
system.FindCollisions(collisionSet.OnPossibleCollision, workingSet);
In this line, FindCollisions receives a local copy of collisionSet. When it then calls that callback function, that callback operates on the local copy, not on collisionSet itself.
I'm not sure whether this is by design or whether it's a bug. While it's consistent with the policy of always passing structs by value, the fact that it's so counter-intuitive makes me wonder if it might not be a bug.
Everyone who programs .NET knows that one key difference between the two is that structs are (without ref specified) always passed by value, while classes are passed by reference. Apparently that rule is not limited to actual passing of structs, themselves; passing a "pointer" to a callback function for an instance of a struct causes a copy of the entire struct to be passed, and the callback is then called on that copy, not your original instance.
Example:
system.FindCollisions(collisionSet.OnPossibleCollision, workingSet);
In this line, FindCollisions receives a local copy of collisionSet. When it then calls that callback function, that callback operates on the local copy, not on collisionSet itself.
I'm not sure whether this is by design or whether it's a bug. While it's consistent with the policy of always passing structs by value, the fact that it's so counter-intuitive makes me wonder if it might not be a bug.
Wednesday, March 25, 2009
& More Piracy
I haven't written about it as much on this blog as other places (instant messages, IRC, various forums, etc.), but I'm a huge opponent of both Digital Rights Management (also known as Content Restriction, Annulment and Protection) and draconian anti-piracy efforts like the RIAA's law suit campaign. This was based on the belief that regardless of the raw numbers (e.g. total P2P downloads of something vs. actual sales), the total number of lost sales due to piracy was low enough that it was better to just eat the losses as part of the cost of doing business than to expend the effort, cost, and public good will to try and fight piracy (which wouldn't work anyway). Specifically, I was guessing that the actual losses were in the 5-15% range - that is, if there were 0 piracy, producers could sell 5-15% more of whatever they make.
However, just now I came across some rather shocking statistics, complements of the makers of World of Goo (a game that shipped without DRM). According to their data collection, 82% of copies of the game played were pirated. That's higher than I expected, but that wasn't the shocking part: that the ratio of pirated copies to lost sales is about 1000:1. Crunching the numbers and rounding up a bit to err on the side of caution, this means that the actual losses of piracy are less than 0.6% of the revenue they make from legitimate sales. This is between 8 and 25 times lower than I thought it would be.
These numbers absolutely demolish the claims that
However, just now I came across some rather shocking statistics, complements of the makers of World of Goo (a game that shipped without DRM). According to their data collection, 82% of copies of the game played were pirated. That's higher than I expected, but that wasn't the shocking part: that the ratio of pirated copies to lost sales is about 1000:1. Crunching the numbers and rounding up a bit to err on the side of caution, this means that the actual losses of piracy are less than 0.6% of the revenue they make from legitimate sales. This is between 8 and 25 times lower than I thought it would be.
These numbers absolutely demolish the claims that
- Internet piracy seriously hurts publishers (the actual damage is negligibly small)
- That DRM does more help than harm by reducing piracy (with levels of losses that low, there isn't any room for DRM to help, yet it's clear that it does a substantial amount of harm)
Thursday, March 19, 2009
Random Linguistic Fact of the Day
Technically English (and I think all Germanic languages) doesn't have a future tense. The future is rendered as a mood in English, using a modal (mood auxiliary) verb, in the same class as (and mutually exclusive with) "can", "may", "must", "would", etc. The past and present tenses, on the other hand, are true tenses, and both in the indicative mood (no modal verb or the "do" dummy modal verb).
The logical basis for this distinction has to do with the concept of realis. Essentially that means what it looks like: realis moods have to do with 'real' things - things which are considered certain to have already happened; while irrealis moods are not certain for one reason or another. There's a general tendency in language to regard the future as inherantly uncertain, and thus place it in an irrealis mood.
Whether this is a peculiarity of Germanic languages or is universal among Indo-European languages is unclear. In Latin there is a future tense for the imperative mood (commands - an irealis mood) as well as indicative (events that are certain - a realis mood), but not for subjunctive or supine, two other irealis moods.
For trivia value: Caia does not have tense; aspect and mood are used to imply tense, and if tense must be made absolutely certain, it can be indicated with adverbs. It has three basic moods (more complex moods are specified with helper verbs or particles): indicative, potential, and hypothetical. As in English, the indicative is used for events considered certain, and is used primarily for past and present tense. Potential mood indicates that an event is possible, but not certain; it is used for the future, among other things (although the preferred method of referring to the future is to reduce it to a certain, indicative present expression such as "I intend to go" or "I want to go", which is more precise). The hypothetical refers to events that are known to be false (hence talking about a hypothetical, counter-factual "what if" situation).
The logical basis for this distinction has to do with the concept of realis. Essentially that means what it looks like: realis moods have to do with 'real' things - things which are considered certain to have already happened; while irrealis moods are not certain for one reason or another. There's a general tendency in language to regard the future as inherantly uncertain, and thus place it in an irrealis mood.
Whether this is a peculiarity of Germanic languages or is universal among Indo-European languages is unclear. In Latin there is a future tense for the imperative mood (commands - an irealis mood) as well as indicative (events that are certain - a realis mood), but not for subjunctive or supine, two other irealis moods.
For trivia value: Caia does not have tense; aspect and mood are used to imply tense, and if tense must be made absolutely certain, it can be indicated with adverbs. It has three basic moods (more complex moods are specified with helper verbs or particles): indicative, potential, and hypothetical. As in English, the indicative is used for events considered certain, and is used primarily for past and present tense. Potential mood indicates that an event is possible, but not certain; it is used for the future, among other things (although the preferred method of referring to the future is to reduce it to a certain, indicative present expression such as "I intend to go" or "I want to go", which is more precise). The hypothetical refers to events that are known to be false (hence talking about a hypothetical, counter-factual "what if" situation).
Sunday, March 08, 2009
Random Linguistic Fact of the Day
Ever wonder why it's fairly common to create compound nouns from phrases (e.g. bird-watching, card-carrying), but in all these cases the object comes before the verb participle? Based on English word order it should be watching-bird, etc., yet it never is.
This is probably due to the fact that word order in Proto-Indo-European was very different than the word order used in English and most other Indo-European languages today. In particular, instead of the subject-verb-object order typically used today, PIE (along with more recent ones, like Latin) preferred the subject-object-verb word order. So you might say things like "Avem [bird] spectabam [I watched]" in Latin, which is exactly the order seen in the compounds.
This is probably due to the fact that word order in Proto-Indo-European was very different than the word order used in English and most other Indo-European languages today. In particular, instead of the subject-verb-object order typically used today, PIE (along with more recent ones, like Latin) preferred the subject-object-verb word order. So you might say things like "Avem [bird] spectabam [I watched]" in Latin, which is exactly the order seen in the compounds.
Saturday, January 10, 2009
Here We Go Again!
It's that time again: the beginning of the next anime season; the winter 2009 season, in this case, and things look pretty bleak. THAT Anime Blog put their preview up quite a while ago. I'd been waiting to post until Random Curiosity posted theirs, although then I was too lazy to actually post when they did, a week ago or so :P
So, what's Q looking forward to? Well, not much. I'll probably watch Slayers EVOLUTION-R because I have a couple of friends that absolutely love that franchise. I downloaded the first episode of White Album (though I haven't watched it) mainly because of the pretty pictures on Random Curiosity's first episode review; we'll see how that turns out. Other than that, there are three series that, while I can't say they sound great, I'm at least willing to try watching a couple episodes and see - Chrome Shelled Regios, Black God (listed as "Kurokami the Animation" on Random Curiosity), Kemono no Souja Erin [The Beast Player Erin] (in no particular order).
Really, the closest thing to something I'm "looking forward to" on that list is Minami-ke Okaeri [Minami family, welcome home]. While I wouldn't name it among my favorites, the Minami-ke franchise was sufficiently amusing to make me watch more of it (although it has a bit more cross-dressing than I'd care for).
I'd say the best stuff ("best" is a relative measure, here) is the two+-season series that are continuing into this season. Toradora!, Clannad After Story, Skip-Beat!, Toaru Majutsu no Index [A Certain Magical Index], and Tales of the Abyss, listed vaguely in the order I like them.
However, I do have good news. I recently saw a mini-review on the sidebar of Anime News Network for a series by the name of Higurashi no Naku Koro ni ["when the cicadas cry", though the official translation is "Higurashi - When They Cry"] that kind of intrigued me; a quick look on AniDB revealed that it was fairly well-rated (although the art style is hideous). So, I grabbed it. While the first roughly 2/3 of the series were sufficiently amusing to hold my interest, the last third of the season really elevated my opinion of it, and made me recommend it to all my friends. However, this series is not for the faint of heart, faint of stomach, or those who don't like brutal, tragic stories that don't have happy endings.
It's a big of a peculiar series. It's structured into a number of arcs (six in the first season), falling into the categories of question arcs and answer arcs. Question arcs are kind of horror/thriller type, where a lot of weird stuff happens, but a lot of it is left unexplained, as to why it happened to begin with. Answer arcs explain parts of the series - why things happened the way they did, and what is behind some of the strange occurrances in question arcs. Oddly, while some of the arcs are compatible, others appear to take place in different universes, as they're mutually exclusive subject matter occurring at the same time, to the same characters. The last arc of the first season, however, suggests that there are actually parallel worlds that aren't entirely separate, and there's some crossover between them; the details are left, presumably, to the second season (Higurashi no Naku Koro ni Kai) or the OVA, which I haven't seen yet.
In any case, I've quickly become attached to it (I watched all 26 episodes in 2 days, which is more than I usually watch of anime), and I'm a bit depressed by running out of the first season to watch.
You can get it from a variety of places, at least one of which is downloadable online (*cough* Boxtorrents *cough*); note that the first season has 26 episodes, while they second has 24. I'd definitely recommend watching it. If you want to start with the best part, I'd say watch episodes 5-8 and 16-21 (both contain the same story, but from different perspectives; the latter explains what was going on in the background of the former, and shows why things turned out the way they did). Though even if you don't skip ahead, I'd recommend watching those two arcs back-to-back at some point, as they're part of the same story.
So, what's Q looking forward to? Well, not much. I'll probably watch Slayers EVOLUTION-R because I have a couple of friends that absolutely love that franchise. I downloaded the first episode of White Album (though I haven't watched it) mainly because of the pretty pictures on Random Curiosity's first episode review; we'll see how that turns out. Other than that, there are three series that, while I can't say they sound great, I'm at least willing to try watching a couple episodes and see - Chrome Shelled Regios, Black God (listed as "Kurokami the Animation" on Random Curiosity), Kemono no Souja Erin [The Beast Player Erin] (in no particular order).
Really, the closest thing to something I'm "looking forward to" on that list is Minami-ke Okaeri [Minami family, welcome home]. While I wouldn't name it among my favorites, the Minami-ke franchise was sufficiently amusing to make me watch more of it (although it has a bit more cross-dressing than I'd care for).
I'd say the best stuff ("best" is a relative measure, here) is the two+-season series that are continuing into this season. Toradora!, Clannad After Story, Skip-Beat!, Toaru Majutsu no Index [A Certain Magical Index], and Tales of the Abyss, listed vaguely in the order I like them.
However, I do have good news. I recently saw a mini-review on the sidebar of Anime News Network for a series by the name of Higurashi no Naku Koro ni ["when the cicadas cry", though the official translation is "Higurashi - When They Cry"] that kind of intrigued me; a quick look on AniDB revealed that it was fairly well-rated (although the art style is hideous). So, I grabbed it. While the first roughly 2/3 of the series were sufficiently amusing to hold my interest, the last third of the season really elevated my opinion of it, and made me recommend it to all my friends. However, this series is not for the faint of heart, faint of stomach, or those who don't like brutal, tragic stories that don't have happy endings.
It's a big of a peculiar series. It's structured into a number of arcs (six in the first season), falling into the categories of question arcs and answer arcs. Question arcs are kind of horror/thriller type, where a lot of weird stuff happens, but a lot of it is left unexplained, as to why it happened to begin with. Answer arcs explain parts of the series - why things happened the way they did, and what is behind some of the strange occurrances in question arcs. Oddly, while some of the arcs are compatible, others appear to take place in different universes, as they're mutually exclusive subject matter occurring at the same time, to the same characters. The last arc of the first season, however, suggests that there are actually parallel worlds that aren't entirely separate, and there's some crossover between them; the details are left, presumably, to the second season (Higurashi no Naku Koro ni Kai) or the OVA, which I haven't seen yet.
In any case, I've quickly become attached to it (I watched all 26 episodes in 2 days, which is more than I usually watch of anime), and I'm a bit depressed by running out of the first season to watch.
You can get it from a variety of places, at least one of which is downloadable online (*cough* Boxtorrents *cough*); note that the first season has 26 episodes, while they second has 24. I'd definitely recommend watching it. If you want to start with the best part, I'd say watch episodes 5-8 and 16-21 (both contain the same story, but from different perspectives; the latter explains what was going on in the background of the former, and shows why things turned out the way they did). Though even if you don't skip ahead, I'd recommend watching those two arcs back-to-back at some point, as they're part of the same story.
Friday, December 19, 2008
Switching Gears
After years of suing thousands of people for allegedly stealing music via the Internet, the recording industry is set to drop its legal assault as it searches for more effective ways to combat online music piracy.Wall Street Journal
...
Instead, the Recording Industry Association of America said it plans to try an approach that relies on the cooperation of Internet-service providers. The trade group said it has hashed out preliminary agreements with major ISPs under which it will send an email to the provider when it finds a provider's customers making music available online for others to take.
I definitely did not expect this so soon, as progress in the courts of stopping the RIAA's legal campaign is proceeding at a crawl, and the RIAA could probably have continued for a while longer before getting hit with serious legal penalties.
Wednesday, December 17, 2008
Graphics Programming Term Project
In case anybody is interested, here is the paper for my term project in graphics class. I was working on an implementation of it, but thanks to various brick wall problems, that didn't end up getting completed in time (which is why the results section does not discuss the results of the actual implementation), although it did result in me going 38 hours without sleep. It's an interesting method, and at least a couple small parts of it are novel (I'm not aware of them being proposed before), but probably isn't practically useful for the reasons explained in the paper.
Multi-Fragment Deferred Shading Using Index Rendering
Multi-Fragment Deferred Shading Using Index Rendering
& More Echoes
BahamutZero has informed me that Echoes of War is now available on iTunes+ (DRM-free 256 kbps AAC audio downloads) for $14.85 (the two CDs in Echoes of War are sold separately, totaling that price). I'm not aware of the actual CDs being available anywhere but Eminence, the creators. If you just want the audio files without the shipping (my Legendary Edition cost like $12 shipping), check out iTunes.
Tuesday, December 16, 2008
Intriguing
Well, just as school is almost over (finals are this week) and I don't have a job lined up yet, substantial amounts of amusement will be welcome in the near future (especially given how bleak the anime outlook is, this season...). Well, as it turns out, I'm in luck! While in the process of banging my head against a wall till I pass out while working on a term project, something amusing happened. I don't have time to explain the details now (despite the fact that this is much more interesting than my school project), but here's a short headline of what's up and coming: Q vs. Scam Debt Collection Agency.
Look forward to it!
Look forward to it!
Sunday, November 23, 2008
& Other Things
I managed to forget something important in my last post, despite the fact that it's closely related to one of the things I did mention; that is, Echoes of War is out. At least, it got shipped to me last week; few others seem to have gotten it already, and as far as I know it hasn't even hit peer-to-peer networks yet.
Echoes of War is an orchestral remix/arrangement of music from all three of Blizzard's universes - Warcraft (III, World of Warcraft), Starcraft (I & II), and Diablo (I-III) - by Eminence. It's about one and a half hours of music, with several tracks from each game and each track being a medley of game pieces.
While some of them fairly closely follow the original sound, some of them are arranged in very novel and surprising ways. Two of the best examples of this are the big band jazz arrangement of the Starcraft I Terran music, and the crazy symphonic/operatic/Middle Eastern/The Rock arrangement of the Starcraft I Zerg music. (other samples can be played from the Echoes of War media section)
How much I like the tracks varies by the track. Several of them I really like, although I'm noticably less fond of the Diablo tracks than the Warcraft and Starcraft ones. But in any case, the album is awesome. If you like the music of Warcraft, Starcraft, and/or Diablo, buy it. I just wish the stupid thing was sold by stores that didn't charge you $14 for shipping...
Echoes of War is an orchestral remix/arrangement of music from all three of Blizzard's universes - Warcraft (III, World of Warcraft), Starcraft (I & II), and Diablo (I-III) - by Eminence. It's about one and a half hours of music, with several tracks from each game and each track being a medley of game pieces.
While some of them fairly closely follow the original sound, some of them are arranged in very novel and surprising ways. Two of the best examples of this are the big band jazz arrangement of the Starcraft I Terran music, and the crazy symphonic/operatic/Middle Eastern/The Rock arrangement of the Starcraft I Zerg music. (other samples can be played from the Echoes of War media section)
How much I like the tracks varies by the track. Several of them I really like, although I'm noticably less fond of the Diablo tracks than the Warcraft and Starcraft ones. But in any case, the album is awesome. If you like the music of Warcraft, Starcraft, and/or Diablo, buy it. I just wish the stupid thing was sold by stores that didn't charge you $14 for shipping...
Wednesday, November 19, 2008
Various Thingies
First of all, I should mention that my house is fine; the fire didn't get near it. The probability of it getting here was fairly low, but we did a bit of better-safe-than-sorry packing. Though last night while driving home from school I did drive past a (unrelated) fire that filled the entire intersection with smoke in about a 50 feet radius; I still don't know what was on fire (I couldn't see it), but the smoke was very obvious, and I heard fire trucks going by.
In other news, it's been relatively difficult to collect data on Firefox after reenabling the Feed Sidebar addon. Firefox crashed after three days of logging memory usage, and then a couple days later I needed to restart it because I needed the memory for WoW (Firefox was using about a gig). But the addon defintiely seems like the cause of the memory leak. From the days I gathered data, it looks like it leaks about 40 megs/hour (although that's only over a couple days; it might decrease over time).
Finally, I just noticed something that happened last year: the Starcraft soundtrack, not previously available (the compressed audio shipped with the games is 22 khz ADPCM, which is pretty poor quality), is on iTunes for $10; the other Blizzard OSTs that were included in the collectors' editions of Diablo 2, Warcraft 3, and World of Warcraft are also available there (though unfortunately all of them are single CDs, which means they are incomplete). The music is DRM-free (although I hear they encode personally identifying information in the audio files), 256 kbps AAC (good quality), though you will have to install the Apple iTunes crapware to buy it. I'm told the M4A files should play on all PC audio players that support AAC (I know they work on WinAmp), though they are not MP3s, and will not work on MP3 audio players. That's your public service announcement for today.
In other news, it's been relatively difficult to collect data on Firefox after reenabling the Feed Sidebar addon. Firefox crashed after three days of logging memory usage, and then a couple days later I needed to restart it because I needed the memory for WoW (Firefox was using about a gig). But the addon defintiely seems like the cause of the memory leak. From the days I gathered data, it looks like it leaks about 40 megs/hour (although that's only over a couple days; it might decrease over time).
Finally, I just noticed something that happened last year: the Starcraft soundtrack, not previously available (the compressed audio shipped with the games is 22 khz ADPCM, which is pretty poor quality), is on iTunes for $10; the other Blizzard OSTs that were included in the collectors' editions of Diablo 2, Warcraft 3, and World of Warcraft are also available there (though unfortunately all of them are single CDs, which means they are incomplete). The music is DRM-free (although I hear they encode personally identifying information in the audio files), 256 kbps AAC (good quality), though you will have to install the Apple iTunes crapware to buy it. I'm told the M4A files should play on all PC audio players that support AAC (I know they work on WinAmp), though they are not MP3s, and will not work on MP3 audio players. That's your public service announcement for today.
Saturday, November 15, 2008
Toasty
So, it's a blistering 4% humidity (91 degree temperature), and southern California is burning once again. As has happened several times, everything looks golden through the smoke filling the sky, and ash is accumulating on every outdoor surface. People working outside here are told to wear masks to cut down on the amount of smoke inhaled.
Currently several hundred homes have burned down and a few thousand have been evacuated. The fire isn't expected to get here (it's 10 miles away), but we're doing some preliminary packing in case things go badly and we have to evacuate. It's also possible that damage to the power lines at a distance might cause us to lose power here (in a bad case scenario), even if we don't have to evacuate.
Currently several hundred homes have burned down and a few thousand have been evacuated. The fire isn't expected to get here (it's 10 miles away), but we're doing some preliminary packing in case things go badly and we have to evacuate. It's also possible that damage to the power lines at a distance might cause us to lose power here (in a bad case scenario), even if we don't have to evacuate.
Wednesday, November 12, 2008
& More Leakage
So, after writing that last post about the audio driver handle leak, I decided to log some data - specifically, the amount of memory Firefox allocates, and the number of handles in the Symantec Anti-Virus process smc.exe. It's now been about a week since I started gathering data (although unfortunately the power went out in the middle, so I ended up with two smaller replicates).
The data for smc.exe shows that it begins at approximately 450 handles on startup, and acquires an additional 3100 handles per day (although 'day' is about 14 hours, as I hibernate my computer at night; meaning about 220 handles/hour). This definitely doesn't seem normal, and I'm going to venture a guess that it's a handle leak. I also noted that the increase seems to be linear over the course of the day, so is unlikely to be related to something like automatic update.
I already knew that Firefox was hemmorhaging memory. If I recall correctly, the amount of memory allocated by Firefox increased by 200-300 MB per day. This time, I tried using Firefox for several days without two of the three addons I normally use (the third was NoScript, so I didn't want to try without that unless I had to). While this test didn't last as long as I'd hoped (thanks to that power outage), after four days, Firefox had only increased from 125 MB (when I first started it, with a lot of saved tabs) to 205 MB (now). In four days I would have predicted it would hit 600-900 megs.
This strongly suggests that one of the two plugins is responsible for the massive leakage, although I'll have to watch what happens after I reenable the one most likely the be causing the leak (as the other is newly installed, and this problem has been around for longer): Feed Sidebar (version 3.1.6). So, we'll see what happens with that. Might have an answer in another 4-7 days about that.
The data for smc.exe shows that it begins at approximately 450 handles on startup, and acquires an additional 3100 handles per day (although 'day' is about 14 hours, as I hibernate my computer at night; meaning about 220 handles/hour). This definitely doesn't seem normal, and I'm going to venture a guess that it's a handle leak. I also noted that the increase seems to be linear over the course of the day, so is unlikely to be related to something like automatic update.
I already knew that Firefox was hemmorhaging memory. If I recall correctly, the amount of memory allocated by Firefox increased by 200-300 MB per day. This time, I tried using Firefox for several days without two of the three addons I normally use (the third was NoScript, so I didn't want to try without that unless I had to). While this test didn't last as long as I'd hoped (thanks to that power outage), after four days, Firefox had only increased from 125 MB (when I first started it, with a lot of saved tabs) to 205 MB (now). In four days I would have predicted it would hit 600-900 megs.
This strongly suggests that one of the two plugins is responsible for the massive leakage, although I'll have to watch what happens after I reenable the one most likely the be causing the leak (as the other is newly installed, and this problem has been around for longer): Feed Sidebar (version 3.1.6). So, we'll see what happens with that. Might have an answer in another 4-7 days about that.
Tuesday, November 04, 2008
& the Audio Driver Incident
Several months ago, I (finally) upgraded my computer. My old one was a 1.8 GHz Athlon XP (single 32-bit core) with 1.25 gigs RAM and a GeForce 3; in other words, it was 2002 or 2003 hardware. My new computer is a 2.4 GHz Core 2 (quad 64-bit cores) with 4 gigs RAM and a Radeon 4850; depending on the benchmarks, my new CPU is 10-18x as fast as my old one, if you count all 4 cores. After trying various voodoo to try to get my old XP installation to run on my new computer (despite the fact that it wouldn't have been able to use about a gig of my RAM), I ultimately gave up and installed Windows Server 2008 64-bit. After dealing with a whole bunch of problems getting various stuff working with 64-bit 2008, things ultimately ended up being acceptable, and I've used that ever since.
However, a couple relatively minor problems have been pretty long-standing, and continued until a few days ago. One was easy to diagnose: Firefox was leaking memory like heck. For every day I left my computer on, Firefox would grow in RAM usage by a couple hundred megs, getting up to a good 2 gigs on occasion (I usually kill it before it gets to that point). While this was certainly an annoyance, it wasn't much of a problem, as I have 4 gigs memory, and I can simply restart it to reclaim all the leaked memory whenever it gets so large it becomes a problem.
One was much harder to diagnose, however. Something else was leaking memory in addition to Firefox, and it was not clear what was causing this. Total system memory usage would increase over days, and if you ignored Firefox, would end up using up all of my 4 gigs memory by about 2 weeks since the last reboot. Unlike with Firefox, there was no apparent problem - no single process was showing a significant accumulation of memory, nor were excess processes being created, leaving 1-2 gigs of memory I couldn't account for. So, I went several months without knowing what the problem was, usually handling it by restarting my computer every week or so.
Then, one day my dad called me from work to ask me why his computer at work was sometimes performing poorly. So I had him look through the process list and system statistics and look for memory leaks, excessive CPU usage, etc. As I don't have the exact terminology used on those pages memorized, I also opened up the listing on my computer to be sure I told him to look for the right things.
This brought something very curious to my attention: the total handle count for my computer was over 4 million. This is a VERY large number of handles; normally computers don't have more than 20-50k handles at a time - 2 orders of magnitude less than what my computer was experiencing. This was an almost certain indication that something was leaking handles on a massive scale. After adding the handles column to the process list, I found that audiodg.exe was the process with some 98% of those handles. Some looking online revealed that that process is a host for audio driver components and DRM. Some further looking for audiodg.exe and handle leaks found some reverse-engineering by one person that showed that this was due to the Sonic Focus audio driver for my Asus motherboard leaking registry handles.
Fortunately, there was an updated driver available by this time that addresses the issue. As my computer was currently at 96% RAM usage (the worst it's ever been - usually I reboot it before it gets to this point), I immediately installed the driver and restarted the audio services (of which audiodg.exe is one). This resulted in a shocking instant 1.3 gig drop in kernel memory usage to less than 400 megs total. It's been one and a half days since then, and audiodg.exe currently is using 226 handles, suggesting that the problem is either dead or drastically reduced (it has increased by like 70 handles in those 1.5 days); and even if it is still leaking handles, 50 handles a day is a tolorable leakage, as that's only like 10 k/day.
So, this whole thing revealed that Windows is quote robust. Given that most computers never go above 50k handles, I was very surprised that Windows was able to handle 6.6 million handles (the highest I've ever seen it get to) without falling over and dying (although this wouldn't have been possible with a 32-bit version of Windows, as that 1.7 gigs of kernel memory wouldn't have fit in the 2 gig kernel address space after memory-mapped devices have memory space allocated). Traditionally, Unix has had a limit of 1024 file handles per process, though I don't know what's typical these days (I know at least some Unix OS have that as a configurable option).
After pursuing that problem to its conclusion, I decided to do some more looking for handle leaks in other processes. While the average process used only 200-500 handles, a number a processes (which are not abnormally high) get as high as 2k handles. However, one process - smc.exe, a part of Symantec Antivirus - has almost 50 k handles allocated, making it a good candidate for a handle leak. Looking at the process in Process Explorer shows that a good 95% of these handles are of the same type - specifically, unnamed event handles - providing further evidence in support of handle leakage. That's as far as I've gotten so far; I haven't spent much time investigating the problem, or looking for an analysis online (though the brief searches I did didn't find anything related to this). So, that's work for the future.
However, a couple relatively minor problems have been pretty long-standing, and continued until a few days ago. One was easy to diagnose: Firefox was leaking memory like heck. For every day I left my computer on, Firefox would grow in RAM usage by a couple hundred megs, getting up to a good 2 gigs on occasion (I usually kill it before it gets to that point). While this was certainly an annoyance, it wasn't much of a problem, as I have 4 gigs memory, and I can simply restart it to reclaim all the leaked memory whenever it gets so large it becomes a problem.
One was much harder to diagnose, however. Something else was leaking memory in addition to Firefox, and it was not clear what was causing this. Total system memory usage would increase over days, and if you ignored Firefox, would end up using up all of my 4 gigs memory by about 2 weeks since the last reboot. Unlike with Firefox, there was no apparent problem - no single process was showing a significant accumulation of memory, nor were excess processes being created, leaving 1-2 gigs of memory I couldn't account for. So, I went several months without knowing what the problem was, usually handling it by restarting my computer every week or so.
Then, one day my dad called me from work to ask me why his computer at work was sometimes performing poorly. So I had him look through the process list and system statistics and look for memory leaks, excessive CPU usage, etc. As I don't have the exact terminology used on those pages memorized, I also opened up the listing on my computer to be sure I told him to look for the right things.
This brought something very curious to my attention: the total handle count for my computer was over 4 million. This is a VERY large number of handles; normally computers don't have more than 20-50k handles at a time - 2 orders of magnitude less than what my computer was experiencing. This was an almost certain indication that something was leaking handles on a massive scale. After adding the handles column to the process list, I found that audiodg.exe was the process with some 98% of those handles. Some looking online revealed that that process is a host for audio driver components and DRM. Some further looking for audiodg.exe and handle leaks found some reverse-engineering by one person that showed that this was due to the Sonic Focus audio driver for my Asus motherboard leaking registry handles.
Fortunately, there was an updated driver available by this time that addresses the issue. As my computer was currently at 96% RAM usage (the worst it's ever been - usually I reboot it before it gets to this point), I immediately installed the driver and restarted the audio services (of which audiodg.exe is one). This resulted in a shocking instant 1.3 gig drop in kernel memory usage to less than 400 megs total. It's been one and a half days since then, and audiodg.exe currently is using 226 handles, suggesting that the problem is either dead or drastically reduced (it has increased by like 70 handles in those 1.5 days); and even if it is still leaking handles, 50 handles a day is a tolorable leakage, as that's only like 10 k/day.
So, this whole thing revealed that Windows is quote robust. Given that most computers never go above 50k handles, I was very surprised that Windows was able to handle 6.6 million handles (the highest I've ever seen it get to) without falling over and dying (although this wouldn't have been possible with a 32-bit version of Windows, as that 1.7 gigs of kernel memory wouldn't have fit in the 2 gig kernel address space after memory-mapped devices have memory space allocated). Traditionally, Unix has had a limit of 1024 file handles per process, though I don't know what's typical these days (I know at least some Unix OS have that as a configurable option).
After pursuing that problem to its conclusion, I decided to do some more looking for handle leaks in other processes. While the average process used only 200-500 handles, a number a processes (which are not abnormally high) get as high as 2k handles. However, one process - smc.exe, a part of Symantec Antivirus - has almost 50 k handles allocated, making it a good candidate for a handle leak. Looking at the process in Process Explorer shows that a good 95% of these handles are of the same type - specifically, unnamed event handles - providing further evidence in support of handle leakage. That's as far as I've gotten so far; I haven't spent much time investigating the problem, or looking for an analysis online (though the brief searches I did didn't find anything related to this). So, that's work for the future.
Thursday, September 04, 2008
Final Lap
Well, it's currently the second week of the fall university semester. This semester is extra special because it's the last semester before I graduate, and anything that results in less school is always a good thing. Between my two majors - biology and computer science - I've been in college for entirely too long, and I'm hoping to move on to more enjoyable things after Christmas.
This semester, I only need 9 units left for graduation, and two specific classes. First, I need a "modern high-level language" class. This comes in three flavors: Visual Basic (probably .NET), C#, and Java. As I don't see much of a use for VB, it's a toss-up between C# and Java. I already have a decent amount of experience in C#, which means that Java would be the course I could gain the most from (as it would add another entry to my resume). Unfortunately, the only Java class this semester is at 8 AM, which is a bit (*cough*) too early for me. Thus C# wins by default. While I probably won't learn a great deal, it has the advantage of requiring less effort, which is also always a good thing.
The other class required specifically is Programming Languages and Translation. This is a recent class which merges two previous classes, one on high-level languages (a survey of like a dozen languages, and the various ways high-level languages accomplish common tasks) and the other on compiler development. I had actually taken the former of the previous classes, but they merged the two before I could take the higher-level course, forcing me to take this new one instead. On the plus side, this also means I'll have to put in less effort at this course, as well, and I probably won't have to study (in my case this means 'read the textbook and come to class') much of the first half of the semester.
One of the things we'll be doing in the class over the semester is writing our own compiler. I've already got some ideas for a high-level programming language which closely resembles natural (i.e. spoken) English, intended for use by people who are not computer science or math people. I ought to discuss some of the ideas for this on this blog; we'll see what my infamous laziness permits.
Unfortunately, the class I really wanted to take this semester isn't being offered - the Game Programming Development Project. It would have been awesome to have to spend a semester working on E Terra (Gord knows I'm too lazy to work on it when I don't have to) and get three units credit for it.
So, that left me needing to find another class. This semester is actually pretty bleak, as far as which courses are being offered and when. While there are maybe five other classes I wouldn't have minded taking if nothing else was available, like none of them are offered this semester (or those that are have prerequisites I don't have, or are at extremely inconvenient times). So, I was forced to improvise - by looking into the list of graduate classes. As it turns out, my school allows undergraduate students to take graduate classes with permission from the department, although you can get kicked out if there are more graduate students than spots in the class.
One class was at a convenient time, covers something useful to me, and only required courses I'd already taken: Advanced Graphics Programming. Unlike BahamutZero, I can't really say I especially like or get excited by graphics and graphics programming, but clearly a thorough knowledge of graphics is a big plus for game programming; as well, I hadn't had any trouble in the undergraduate graphics class, so I can at least get the job done. Unfortunately, the syllabus doesn't look as applicable to game programming as the course description suggests, but hopefully it'll end up being worthwhile (and hopefully graduate-level homework and projects won't be too painful).
One thing that may turn out to be fun is the term project. The teacher hasn't actually given out the assignment (which would have a few dozen example topics), but as I understand it, we can do just about anything, as long as it's related to graphics and is sufficiently ambitous for a graduate-level class. When I mentioned all this to BZ (who loves graphics stuff, and would probably take a graduate-level graphics course, if he had the chance), he immediately asked if we could do a project together (although I'd thought the same thing even before he asked about it). As it turns out, we can (I talked to the teacher), provided the project is large enough for us both, and our work is sufficiently separated so that the teacher can grade my part of the work on its own. So, this could turn out to be fun. I'll probably write about at least the topic (when we come up with something), if not details along the way (and if BZ is working with me, he may post about it on his blog as well).
Also, just to briefly mention a topic I should (as in ought to) write about in the near future: the first programming assignment in graphics class - that is, a rudimentary ray-tracer. This actually isn't very difficult. Writing a simple ray-tracer that can render simple things (e.g. plastic-looking spheres) is pretty easy; it's making it fast and photo-realistic that's hard - but neither of those are requirements for this project. I estimate it'll take two or three days of coding, and we have two weeks to do it (though I have a bunch of relatively easy optional features I want to add, so it will probably take me longer than the others in the class), which isn't bad - not unlike what I'd expected from a graduate-level class.
This semester, I only need 9 units left for graduation, and two specific classes. First, I need a "modern high-level language" class. This comes in three flavors: Visual Basic (probably .NET), C#, and Java. As I don't see much of a use for VB, it's a toss-up between C# and Java. I already have a decent amount of experience in C#, which means that Java would be the course I could gain the most from (as it would add another entry to my resume). Unfortunately, the only Java class this semester is at 8 AM, which is a bit (*cough*) too early for me. Thus C# wins by default. While I probably won't learn a great deal, it has the advantage of requiring less effort, which is also always a good thing.
The other class required specifically is Programming Languages and Translation. This is a recent class which merges two previous classes, one on high-level languages (a survey of like a dozen languages, and the various ways high-level languages accomplish common tasks) and the other on compiler development. I had actually taken the former of the previous classes, but they merged the two before I could take the higher-level course, forcing me to take this new one instead. On the plus side, this also means I'll have to put in less effort at this course, as well, and I probably won't have to study (in my case this means 'read the textbook and come to class') much of the first half of the semester.
One of the things we'll be doing in the class over the semester is writing our own compiler. I've already got some ideas for a high-level programming language which closely resembles natural (i.e. spoken) English, intended for use by people who are not computer science or math people. I ought to discuss some of the ideas for this on this blog; we'll see what my infamous laziness permits.
Unfortunately, the class I really wanted to take this semester isn't being offered - the Game Programming Development Project. It would have been awesome to have to spend a semester working on E Terra (Gord knows I'm too lazy to work on it when I don't have to) and get three units credit for it.
So, that left me needing to find another class. This semester is actually pretty bleak, as far as which courses are being offered and when. While there are maybe five other classes I wouldn't have minded taking if nothing else was available, like none of them are offered this semester (or those that are have prerequisites I don't have, or are at extremely inconvenient times). So, I was forced to improvise - by looking into the list of graduate classes. As it turns out, my school allows undergraduate students to take graduate classes with permission from the department, although you can get kicked out if there are more graduate students than spots in the class.
One class was at a convenient time, covers something useful to me, and only required courses I'd already taken: Advanced Graphics Programming. Unlike BahamutZero, I can't really say I especially like or get excited by graphics and graphics programming, but clearly a thorough knowledge of graphics is a big plus for game programming; as well, I hadn't had any trouble in the undergraduate graphics class, so I can at least get the job done. Unfortunately, the syllabus doesn't look as applicable to game programming as the course description suggests, but hopefully it'll end up being worthwhile (and hopefully graduate-level homework and projects won't be too painful).
One thing that may turn out to be fun is the term project. The teacher hasn't actually given out the assignment (which would have a few dozen example topics), but as I understand it, we can do just about anything, as long as it's related to graphics and is sufficiently ambitous for a graduate-level class. When I mentioned all this to BZ (who loves graphics stuff, and would probably take a graduate-level graphics course, if he had the chance), he immediately asked if we could do a project together (although I'd thought the same thing even before he asked about it). As it turns out, we can (I talked to the teacher), provided the project is large enough for us both, and our work is sufficiently separated so that the teacher can grade my part of the work on its own. So, this could turn out to be fun. I'll probably write about at least the topic (when we come up with something), if not details along the way (and if BZ is working with me, he may post about it on his blog as well).
Also, just to briefly mention a topic I should (as in ought to) write about in the near future: the first programming assignment in graphics class - that is, a rudimentary ray-tracer. This actually isn't very difficult. Writing a simple ray-tracer that can render simple things (e.g. plastic-looking spheres) is pretty easy; it's making it fast and photo-realistic that's hard - but neither of those are requirements for this project. I estimate it'll take two or three days of coding, and we have two weeks to do it (though I have a bunch of relatively easy optional features I want to add, so it will probably take me longer than the others in the class), which isn't bad - not unlike what I'd expected from a graduate-level class.
Sunday, August 24, 2008
& More MPQDraft
Well, looking at the SourceForge statistics, a few interesting things became apparent. First, there's still a remarkable amount of interest in MPQDraft, even after all these years. MPQDraft, released some 7 years ago, was originally targeted at Starcraft, which was released in 1997 - 11 years ago; while this has remained the primary target of MPQDraft and modders, MPQDraft has also been used to a lesser extent with Diablo II (8 or 9 years old, I think) and Warcraft III (7 years old, I believe). Given the fact that the most recent of those is still 7 years old, it's pretty surprising that MPQDraft is still heavily used today. As the graph indicates, over the last year, MPQDraft has been getting an average of 600 downloads/month, and trending upward, with 750 downloads last month.
I'm a bit curious what happened in November that produced such a huge rise in download count - about a 6x increase from September to November. The first thing I thought of was the announcement of Starcraft II, last year; however, this was quickly found to be incorrect, as SC2 was announced 6 months prior to that. So I'm really not sure what caused that increase. I can only imagine some very large site related to Blizzard games (Blizzard themselves or one of the major modding sites) linked to MPQDraft's recent home on SourceForge at that time.
The other surprise is the seeming lack of interest in the source code. According to the SourceForge statistics, there have been fewer than 50 source gets to date. I'm curious whether that's at all related to the fact that I'd only made the source available through Subversion (the source version control system I use for MPQDraft). To test that hypothesis, I've posted a package containing all the source on the SourceForge download page. You'll need to take a look at the notes (separate from the ZIP file) for what you need to get the code to build.
I'm a bit curious what happened in November that produced such a huge rise in download count - about a 6x increase from September to November. The first thing I thought of was the announcement of Starcraft II, last year; however, this was quickly found to be incorrect, as SC2 was announced 6 months prior to that. So I'm really not sure what caused that increase. I can only imagine some very large site related to Blizzard games (Blizzard themselves or one of the major modding sites) linked to MPQDraft's recent home on SourceForge at that time.
The other surprise is the seeming lack of interest in the source code. According to the SourceForge statistics, there have been fewer than 50 source gets to date. I'm curious whether that's at all related to the fact that I'd only made the source available through Subversion (the source version control system I use for MPQDraft). To test that hypothesis, I've posted a package containing all the source on the SourceForge download page. You'll need to take a look at the notes (separate from the ZIP file) for what you need to get the code to build.
Thursday, August 21, 2008
& MPQDraft
Well, it's been a while. After I registered the MPQDraft project on SourceForge last April 1, I procrastinated for so many months that many people suspected it was an April fools' prank; however, the only prank that was intended was the fact that it wasn't a prank. One year after then, I finally got around to posting the complete patching code, although I'm only just now getting the last of the GUI code uploaded. This is to say that the code on SourceForge is now complete, and MPQDraft is now fully open-source.
Relevant links:
The MPQDraft project
Binary download page
Web-based source code browser
Instructions on downloading the source code
The OSS license it's licensed under
Relevant links:
The MPQDraft project
Binary download page
Web-based source code browser
Instructions on downloading the source code
The OSS license it's licensed under
Sunday, August 10, 2008
Gah
Random fact of the day: Microsoft Developer Network library no longer gives information about what versions of Windows prior to 2000 support some functions. For example, MSDN does not list support for CreateFile in any versions of Windows prior to 2000, despite it being in every single 32-bit version of Windows (Windows 95 and NT 3.1 onward).
Wednesday, July 30, 2008
Comcast Revisited
A bit ago I wrote a Mac Chaos-inspired parody of the Comcast board room, explaining how they'd gotten into this P2P bandwidth crisis they're in, and proposing that the true cause of their crisis is that they'd signed up massively too many users for their old infrastructure while steadily increasing speeds offered to subscribers. A post on P2PNet today lends strong support for that conclusion.
While those 'K' don't indicate whether those are kilobits or kilobytes, a bit of quick math tells us that those are kilobit counts. In other words, currently Comcast is allocating a minimum of 1 to 4 KBps for each subscriber. As well, IIRC, Comcast sells 384 to 768 Kbps upstream connections. That puts the overselling ratio between 13 and 100.
Another section is also interesting, for comparison with DSL and FIOS:
It's not clear who these figures are for. I believe AT&T DSL doesn't offer more than like 768 Kbps upstream, in which case this would be an overselling ratio of 3. If this is Verizon FIOS (let's say at 5 Mbps, which is their faster speed), that's an overselling ratio of 20. Suddenly it seems very unsurprising that Comcast is having problems and AT&T/Verizon are not. It also shows you who's been investing in their network over the last decade and who hasn't.
There really is a problem on (at least some) cable upstreams today, based on what I hear from people I respect who have the data. My hope - which won’t be tested until 2009 - is that the DOCSIS 3.0 upstream will resolve most or all of the problems for the next few years. Full DOCSIS 3.0 has a minimum of 120 megabits upstream (shared) among typically 300 homes, something like 400K per subscriber. Current cable modems typically have 8 to 30K per subscriber. This is a huge difference.
While those 'K' don't indicate whether those are kilobits or kilobytes, a bit of quick math tells us that those are kilobit counts. In other words, currently Comcast is allocating a minimum of 1 to 4 KBps for each subscriber. As well, IIRC, Comcast sells 384 to 768 Kbps upstream connections. That puts the overselling ratio between 13 and 100.
Another section is also interesting, for comparison with DSL and FIOS:
Verizon, AT&T, and Free.fr are strongly on the record they do not have significant congestion problems. They do not have a shared local loop, and have allocated much more bandwidth per customer. I’ve sat at the network console of a large ISP and seen they had essentially no congestion amongst the millions of subscribers they served. They allocate 250K per subscriber, much more than current cable.
It's not clear who these figures are for. I believe AT&T DSL doesn't offer more than like 768 Kbps upstream, in which case this would be an overselling ratio of 3. If this is Verizon FIOS (let's say at 5 Mbps, which is their faster speed), that's an overselling ratio of 20. Suddenly it seems very unsurprising that Comcast is having problems and AT&T/Verizon are not. It also shows you who's been investing in their network over the last decade and who hasn't.
Tuesday, July 29, 2008
& Other Strange Ocurrences
As it turns out, the earthquake this morning was actually the second highly unusual thing to happen today. The first occurred late last night, as I was going into the bathroom one last time before going to sleep. A couple steps into the bathroom and I stepped into something wet. While having the floor of your bathroom wet for no apparent reason is unusual enough, I was more concerned with the smell: a faint smell of ammonia, and another smell I knew I had encountered before, though I couldn't think exactly what it was.
After I confirmed that the liquid was what was producing the smell, I hobbled back to my room (trying to avoid getting whatever it was on the floor as much as possible) to grab my glasses, and had another look. A fair amount of the floor was wet with several ounces or so of a liquid that was in some places clear, in other places milky white.
After tracing it under the sink, I found what seemed to be the cause: a can of insecticide. The entire can was wet, though not much that wasn't right near where it was, so it didn't look like an explosion (though there sure was a lot of the stuff on the floor). I didn't try removing the cap (for obvious reasons), but I'm thinking the spray nozzle might have exploded and the cap prevented the stuff from getting all over the cabinet under the sink. Ultimately, I wrapped it in a couple plastic bags and threw it in the trash, and wiped up all the stuff on the floor (probably wouldn't hurt to mop the floor with soap and water, either).
After I confirmed that the liquid was what was producing the smell, I hobbled back to my room (trying to avoid getting whatever it was on the floor as much as possible) to grab my glasses, and had another look. A fair amount of the floor was wet with several ounces or so of a liquid that was in some places clear, in other places milky white.
After tracing it under the sink, I found what seemed to be the cause: a can of insecticide. The entire can was wet, though not much that wasn't right near where it was, so it didn't look like an explosion (though there sure was a lot of the stuff on the floor). I didn't try removing the cap (for obvious reasons), but I'm thinking the spray nozzle might have exploded and the cap prevented the stuff from getting all over the cabinet under the sink. Ultimately, I wrapped it in a couple plastic bags and threw it in the trash, and wiped up all the stuff on the floor (probably wouldn't hurt to mop the floor with soap and water, either).
& Shaking
Just had an earthquake here, about an hour ago. The epicenter was 15 or 20 miles from here, and it was a 5.8, which is a pretty good size earthquake. Watching TV news for 20 mins or so, there have not been any reports of injuries, though cell phones and (less commonly) land lines are still out in some areas; I've heard some about damage to streets and one water line. Amusingly, lots of people e-mailed the news station to say that their phone lines or cell phones are out, so apparently it didn't do much for internet connectivity. I heard that there's a 5% chance of it being a foreshock to an even bigger earthquake.
More info on Yahoo and CNN.
More info on Yahoo and CNN.
Saturday, July 12, 2008
Epic Fail
So, on Friday I got a new computer. The computer consists of a quad-core Core 2 CPU, 4 gigs of memory, and a Radeon HD 4850 based video card. Although there are some known techniques for getting an existing Windows installation to work in a new computer, this install simply refused to work with the USB ports on this computer (the computer freezes up several seconds after Windows has booted; disabling the USB ports in the BIOS allows it to work, but is not an acceptable solution). So, I ultimately ended up reinstalling Windows.
I had quite a few options when it came to choosing a version of Windows. Thanks to my obsessive downloading of everything on MSDN Academic Alliance, I have legal copies of Windows 2000, Windows XP x86, Windows XP x64, Vista x86 & x64, two copies of Windows Server 2003, and Windows Server 2008 x86 & x64. For those not familiar with the Servers, 2003 is an updated server version of XP, and 2008 is an updated server version of Vista.
As Server 2008 is an updated version of Vista with additional features (and the newest of any version), I figured I'd use that, and that's what I'm writing on right now. However, this install may be short-lived. As it turns out, just about nothing works on Server 2008. In the last three hours I've encountered the following:
- The Asus motherboard driver installer for Vista x64 will not run. When run, it says "Does not support this Operating System: WNT_6.0I_64". If I understand this correctly, it's saying it doesn't support Windows NT 6.0 x64. This is curious, as this is exactly what Vista x64 is, suggesting that the installer does not run on the system it was made for. Furthermore, several pieces of motherboard hardware do not have drivers included with Server 2008, and so appear as Unknown Devices and PCI Devices (there are still a couple unknown devices left if you manually install each driver). Epic Asus fail.
- The other major driver I needed was the 4850 driver. This was especially important because the 4850 has a known issue where the fan speed stays too low, resulting in hot temperatures. So, I downloaded the latest version of the drivers and ATI Catalyst programs from the video card manufacturer (as best I can tell the ATI web site doesn't list drivers for the 4850) and installed the driver and program. Installation had no problems; running the Catalyst Control Center, however, resulted in the message "The Catalyst Control Center is not supported by the driver version of your enabled graphics adapter.". Very curious, considering that driver and the Control Center came bundled in the same ZIP file. Epic ATI fail.
- One of the programs I use most of all (by far) is Windows Live Messenger. Naturally I soon needed to install it on this computer. The Windows installer even helpfully created a Windows Live Messenger Download link in my start menu. Unfortunately, following the link, downloading the program, and double-clicking it (I'm not even mentioning the UAC and IE annoyances) brought up the error message "Sorry, Windows Live programs cannot be installed on Windows Server, Windows XP Professional x64 Edition, or Windows operating systems earlier than Windows XP Service Pack 2". By process of elimination, this appears to say that only supports XP x86 SP2+, Vista x86, and Vista x64; curious, given the fact that Microsoft advertises support for Server 2008. Epic Microsoft fail.
- The other program I use most often is FireFox. So, that was next on the list. Download, install, so far so good. Launching FireFox, however, is a completely different story: instant crash. Epic FireFox fail.
- And just for good measure, this install has blue-screened once so far (in about 3 hours), with the PAGE_FAULT_IN_NONPAGED_AREA bugcheck. I'm not sure exactly whose failure this is, but the Asus driver problems seem the most likely suspect. Epic fail.
I had quite a few options when it came to choosing a version of Windows. Thanks to my obsessive downloading of everything on MSDN Academic Alliance, I have legal copies of Windows 2000, Windows XP x86, Windows XP x64, Vista x86 & x64, two copies of Windows Server 2003, and Windows Server 2008 x86 & x64. For those not familiar with the Servers, 2003 is an updated server version of XP, and 2008 is an updated server version of Vista.
As Server 2008 is an updated version of Vista with additional features (and the newest of any version), I figured I'd use that, and that's what I'm writing on right now. However, this install may be short-lived. As it turns out, just about nothing works on Server 2008. In the last three hours I've encountered the following:
- The Asus motherboard driver installer for Vista x64 will not run. When run, it says "Does not support this Operating System: WNT_6.0I_64". If I understand this correctly, it's saying it doesn't support Windows NT 6.0 x64. This is curious, as this is exactly what Vista x64 is, suggesting that the installer does not run on the system it was made for. Furthermore, several pieces of motherboard hardware do not have drivers included with Server 2008, and so appear as Unknown Devices and PCI Devices (there are still a couple unknown devices left if you manually install each driver). Epic Asus fail.
- The other major driver I needed was the 4850 driver. This was especially important because the 4850 has a known issue where the fan speed stays too low, resulting in hot temperatures. So, I downloaded the latest version of the drivers and ATI Catalyst programs from the video card manufacturer (as best I can tell the ATI web site doesn't list drivers for the 4850) and installed the driver and program. Installation had no problems; running the Catalyst Control Center, however, resulted in the message "The Catalyst Control Center is not supported by the driver version of your enabled graphics adapter.". Very curious, considering that driver and the Control Center came bundled in the same ZIP file. Epic ATI fail.
- One of the programs I use most of all (by far) is Windows Live Messenger. Naturally I soon needed to install it on this computer. The Windows installer even helpfully created a Windows Live Messenger Download link in my start menu. Unfortunately, following the link, downloading the program, and double-clicking it (I'm not even mentioning the UAC and IE annoyances) brought up the error message "Sorry, Windows Live programs cannot be installed on Windows Server, Windows XP Professional x64 Edition, or Windows operating systems earlier than Windows XP Service Pack 2". By process of elimination, this appears to say that only supports XP x86 SP2+, Vista x86, and Vista x64; curious, given the fact that Microsoft advertises support for Server 2008. Epic Microsoft fail.
- The other program I use most often is FireFox. So, that was next on the list. Download, install, so far so good. Launching FireFox, however, is a completely different story: instant crash. Epic FireFox fail.
- And just for good measure, this install has blue-screened once so far (in about 3 hours), with the PAGE_FAULT_IN_NONPAGED_AREA bugcheck. I'm not sure exactly whose failure this is, but the Asus driver problems seem the most likely suspect. Epic fail.
Wednesday, July 09, 2008
& Fun with Turkish
Just saw this amusing segment in the Wikipedia page for Turkish grammar:
Avrupa (Europe)
Avrupalı (European)
Avrupalılaş (become European)
Avrupalılaştır (Europeanize)
Avrupalılaştırama (cannot Europeanize)
Avrupalılaştıramadık (whom [someone] could not Europeanize)
Avrupalılaştıramadıklar (those whom [someone] could not Europeanize)
Avrupalılaştıramadıklarımız (those whom we could not Europeanize)
Avrupalılaştıramadıklarımızdan (one of those whom we could not Europeanize)
Avrupalılaştıramadıklarımızdan mı? (one of those whom we could not Europeanize?)
Avrupalılaştıramadıklarımızdan mısınız? (Are you one of those whom we could not Europeanize?)
You now know the meaning of 'highly agglutinative language'.
Avrupa (Europe)
Avrupalı (European)
Avrupalılaş (become European)
Avrupalılaştır (Europeanize)
Avrupalılaştırama (cannot Europeanize)
Avrupalılaştıramadık (whom [someone] could not Europeanize)
Avrupalılaştıramadıklar (those whom [someone] could not Europeanize)
Avrupalılaştıramadıklarımız (those whom we could not Europeanize)
Avrupalılaştıramadıklarımızdan (one of those whom we could not Europeanize)
Avrupalılaştıramadıklarımızdan mı? (one of those whom we could not Europeanize?)
Avrupalılaştıramadıklarımızdan mısınız? (Are you one of those whom we could not Europeanize?)
You now know the meaning of 'highly agglutinative language'.
Friday, June 27, 2008
Sansas & Bugs
Given how big I'm into music (particularly game, anime, and movie soundtracks), it'll probably come as a complete shock to most people to know that I've never had a portable CD or MP3 player (other than the CD player in my car). Probably the biggest reason for this is that I'm cheap - I save most of the money I make, and spend very little of it, even on things you'd expect me to buy (like a computer that's less than 6 years old). Well, yesterday I just bought a digital audio player: the SanDisk Sansa c250 2 gig, on sale at a price I couldn't refuse (cheaper than Amazon).
So, I spent some time playing with it yesterday, in preparation of today, when I drive my grandma to a doctor's appointment and various errands (she's had severe eye problems for the last couple months). Not a bad little sucker; though just as you might guess from the price, it didn't take long to run into problems. Naturally, as I'm too impatient to call tech support, and too inquisitive to give up on a technical challenge, this meant I had to debug the thing.
After loading almost 2 gigs of music onto it and disconnecting from the computer, it proceeded to promptly lock up on database refresh (after you modify the contents of the flash memory it scans all the files and indexes them). Wonderful. I could turn it off and on, but every time it turned on it immediately performed a database refresh, and promptly locked up. Worse, it would no longer connect to the computer, as the database refresh preempted other things, like USB port communication, meaning I couldn't delete anything that might be causing it to freeze (specifically, if you plugged it into the USB port while it was performing the database refresh, Windows would say "unrecognized USB device" after a couple seconds).
A substantial amount of experimentation revealed that it was possible to override this. Specifically, you had to have the computer send a USB signal to the device BEFORE it starts its database refresh. As the database refresh is the first thing it does when you turn it on, and plugging the USB cable in automatically turns the device on, this takes rather precise timing, and more or less requires pressing the button required to make it connect in mass storage mode*, insert the USB cable, and press "Scan for hardware changes" in Device Manager at essentially the same time (I'd say about 1/3 of a second). This will cause the USB signal from the computer to preempt the scheduled database refresh, and put it into USB storage mode.
Now that I was able to access the contents again, I spent some time fumbling around with trial and error, trying to figure out what was causing it to break; as it was 1 AM by this point, my brain wasn't in peak working condition, and this took some time. Searches on Google revealed that quite a few people had this problem and there are quite a few hypotheses as to what causes it and how to fix it, but no definitive explanation or solution (nor has Sandisk addressed this problem, despite people asking for help on their forums). As well, many of the "solutions" involved wiping the memory of the thing, and sometimes bricking it.
Through trial and error, I managed to burn through a number of hypotheses (which were either incorrect or simply not applicable to me). It appeared to be false that spaces in directory and file names caused lockups (or that bug only occurred in older versions of the firmware). I also did not observe any instances of odd characters in song titles or artists that caused this problem; to my surprise, the device even correctly handled and displayed the Japanese characters in some song and artist names (when I had first opened the package, I tried copying a single album onto it, which worked without incident; this album happened to have Japanese ID3 info). Lack of free space did not appear to cause it (I tried taking it down to 2 megs free space with good files, and it still worked fine). ID3v1 tags seemed to work fine. Even this one funky MP3 at "0 kbps" (what Explorer reports for it; I haven't looked at it with a hex editor to figure out why this is) did not cause the problem.
What ultimately ended up being the problem, at least in my instance, was that one of my game soundtrack MP3s was mislabeled as 'hard rock'. The significance of this, according to one person, is that it has a space in the genre name. Changing this to the proper genre corrected the freeze. I can't say for certain that the space in the genre is what causes the bug, but it's true that when none of my songs have a space, the player works fine, and it froze in that one case.
*The Sansa has two USB connection modes: MTP and MSC. MTP mode interfaces with media players such as Windows Media Player. This mode allows you to store media library files on the player, and make use of various features like tagging and playlists. MSC mode causes the player to act like a vanilla memory stick, allowing you to directly access the flash file system. I'd imagine it's only necessary to refresh the database in MSC mode; that's the only mode I've ever used.
Judging from Google, there are two different methods of switching between modes, which depend on what firmware you have. One method is that a USB mode option appears in the settings menu on the device. The other method (what mine has) is that the player is always in MTP mode, but connects in MSC mode if you hold the rewind button when you plug it into the USB port.
UPDATE:
Found another bug while playing around with putting DRMed WMAs on the critter (my dad also got one, and he has a bunch of DRMed WMAs to put on it, unlike my MP3s). It's only possible to load DRMed files onto the device in MTP mode, so I had to learn how to use that. It appears that my assumption was correct, that database refreshes are only necessary after adding files in MSC mode; after files are added in MTP mode, they appear in the player immediately after the player is disconnected from the computer.
While the player automatically turns on and goes into USB storage mode when you plug the USB cable in, it's possible to turn off the player by holding the power button (the same way you turn it off when it's not connected to the computer) while in USB storage mode. This is not a good idea. If you add some files to the device and then turn it off before unplugging it, it will lose track of those files, and they will not show up in the list of songs on the player (though they will still show up in the file list when it's connected to the computer in MTP mode). Adding additional files later will not cause this problem to be corrected; it is necessary to delete the files from the player and then transfer them from computer again
So, I spent some time playing with it yesterday, in preparation of today, when I drive my grandma to a doctor's appointment and various errands (she's had severe eye problems for the last couple months). Not a bad little sucker; though just as you might guess from the price, it didn't take long to run into problems. Naturally, as I'm too impatient to call tech support, and too inquisitive to give up on a technical challenge, this meant I had to debug the thing.
After loading almost 2 gigs of music onto it and disconnecting from the computer, it proceeded to promptly lock up on database refresh (after you modify the contents of the flash memory it scans all the files and indexes them). Wonderful. I could turn it off and on, but every time it turned on it immediately performed a database refresh, and promptly locked up. Worse, it would no longer connect to the computer, as the database refresh preempted other things, like USB port communication, meaning I couldn't delete anything that might be causing it to freeze (specifically, if you plugged it into the USB port while it was performing the database refresh, Windows would say "unrecognized USB device" after a couple seconds).
A substantial amount of experimentation revealed that it was possible to override this. Specifically, you had to have the computer send a USB signal to the device BEFORE it starts its database refresh. As the database refresh is the first thing it does when you turn it on, and plugging the USB cable in automatically turns the device on, this takes rather precise timing, and more or less requires pressing the button required to make it connect in mass storage mode*, insert the USB cable, and press "Scan for hardware changes" in Device Manager at essentially the same time (I'd say about 1/3 of a second). This will cause the USB signal from the computer to preempt the scheduled database refresh, and put it into USB storage mode.
Now that I was able to access the contents again, I spent some time fumbling around with trial and error, trying to figure out what was causing it to break; as it was 1 AM by this point, my brain wasn't in peak working condition, and this took some time. Searches on Google revealed that quite a few people had this problem and there are quite a few hypotheses as to what causes it and how to fix it, but no definitive explanation or solution (nor has Sandisk addressed this problem, despite people asking for help on their forums). As well, many of the "solutions" involved wiping the memory of the thing, and sometimes bricking it.
Through trial and error, I managed to burn through a number of hypotheses (which were either incorrect or simply not applicable to me). It appeared to be false that spaces in directory and file names caused lockups (or that bug only occurred in older versions of the firmware). I also did not observe any instances of odd characters in song titles or artists that caused this problem; to my surprise, the device even correctly handled and displayed the Japanese characters in some song and artist names (when I had first opened the package, I tried copying a single album onto it, which worked without incident; this album happened to have Japanese ID3 info). Lack of free space did not appear to cause it (I tried taking it down to 2 megs free space with good files, and it still worked fine). ID3v1 tags seemed to work fine. Even this one funky MP3 at "0 kbps" (what Explorer reports for it; I haven't looked at it with a hex editor to figure out why this is) did not cause the problem.
What ultimately ended up being the problem, at least in my instance, was that one of my game soundtrack MP3s was mislabeled as 'hard rock'. The significance of this, according to one person, is that it has a space in the genre name. Changing this to the proper genre corrected the freeze. I can't say for certain that the space in the genre is what causes the bug, but it's true that when none of my songs have a space, the player works fine, and it froze in that one case.
*The Sansa has two USB connection modes: MTP and MSC. MTP mode interfaces with media players such as Windows Media Player. This mode allows you to store media library files on the player, and make use of various features like tagging and playlists. MSC mode causes the player to act like a vanilla memory stick, allowing you to directly access the flash file system. I'd imagine it's only necessary to refresh the database in MSC mode; that's the only mode I've ever used.
Judging from Google, there are two different methods of switching between modes, which depend on what firmware you have. One method is that a USB mode option appears in the settings menu on the device. The other method (what mine has) is that the player is always in MTP mode, but connects in MSC mode if you hold the rewind button when you plug it into the USB port.
UPDATE:
Found another bug while playing around with putting DRMed WMAs on the critter (my dad also got one, and he has a bunch of DRMed WMAs to put on it, unlike my MP3s). It's only possible to load DRMed files onto the device in MTP mode, so I had to learn how to use that. It appears that my assumption was correct, that database refreshes are only necessary after adding files in MSC mode; after files are added in MTP mode, they appear in the player immediately after the player is disconnected from the computer.
While the player automatically turns on and goes into USB storage mode when you plug the USB cable in, it's possible to turn off the player by holding the power button (the same way you turn it off when it's not connected to the computer) while in USB storage mode. This is not a good idea. If you add some files to the device and then turn it off before unplugging it, it will lose track of those files, and they will not show up in the list of songs on the player (though they will still show up in the file list when it's connected to the computer in MTP mode). Adding additional files later will not cause this problem to be corrected; it is necessary to delete the files from the player and then transfer them from computer again
Tuesday, June 24, 2008
Random Thought of the Day
Did you ever notice that, in English, the simple past (e.g. "he wrote") and past progressive (e.g. "he was writing") are both very common, yet in the present tense, the present progressive (e.g. "he is writing") is overwhelmingly more common than the simple present (e.g. "he writes")? This fact actually leads into an important linguistic principle, which I'll probably write a post about in the future. I'll just leave it as food for thought, for now.
Monday, June 16, 2008
Cases, Ergative, & Accusative
Something that I vaguely implied previously, but I don't think actually said, was that there is a difference between roles and cases (even worse, there are multiple things that "role" could refer to). Roles are, in theory, purely rational, language-independent categories which describe how nouns relate to their clause's verb. Cases, on the other hand, are language-dependent categories representing many things, and there is rarely (if ever) a 1:1 mapping of the two for a language.
The Grammer of Discourse hypothesizes at least ten universal roles, which I'll only briefly describe.
Experiencer: the person experiencing an emotion or sensation
Patient: the one an action acts on
Agent: the one willfully performing an action
Range: an extension of the verb, such as indicating how, e.g. "Your blood smells good"
Measure: an extension of the verb indicating how much, e.g. "I was only bitten a little bit" (these examples brought to you by Vampire Knight)
Instrument: something which is used to perform an action; this can also be used for animate entities who unintentionally perform an action
Locative: the location an action occurs at
Source: the starting point of some kind of movement or transfer
Goal: the ending point of movement or transfer
Path: the path taken during movement or transfer
If we were to compare this list of roles with typical use of the Latin cases, we would get the following. Note that this list is approximate, and some of the roles like measure and range I'm not even sure how to represent in Latin.
Nominative case: agent, patient, experiencer, instrument
Genitive: unrelated to role in the sentence (roles refer to relation with the verb, not with other nouns)
Dative: goal, patient
Accusative: patient, experiencer, goal, rarely source
Ablative: source, instrument, locative, goal, path, possibly range and measure (some of those requiring prepositions)
Locative (rare): locative
Vocative: not related to role
However, while case is language-specific, some themes (common cases) occur much more often than others. Of the Latin cases, the nominative, genitive, dative, and accusative occur very frequently in all languages; this is not surprising, as these seem the most essential to language in general (though note that they are not guaranteed to mean exactly the same thing in all languages).
The nominative case is roughly defined as the subject of the verb. For transitive verbs having a direct object, the subject is the one performing the action (e.g. "He poked her"); for intransitive verbs the subject is the single argument (e.g. "He was hit"). The accusative case is the object of transitive verbs. Any language having this structure is called a nominative-accusative (or sometimes just accusative) language (which we're going to call N/A in the rest of this post).
However, two others - the ergative and the absolutive - also occur very commonly in languages. The ergative case is defined as the subject of transitive verbs. The absolutive case, however, includes both the subject of intransitive verbs and the object of transitive verbs. Languages using this system are called ergative-absolutive (or sometimes just ergative; E/A, here).
At first this seems very strange and arbitrary - splitting the subject depending on whether the verb is transitive or intransitive. However, this is due to the fact that we don't speak an language. In fact, even the word 'subject' reflects this bias in thinking. The N/A split carries the paradigm that all actions are done by somebody/something, regardless of whether the action is intentional or unintentional, or even whether there's anyone performing the action at all (e.g. in "He fell"). This is called the subject, and for transitive verbs, the one acted on is the called the object; thus the N/A split actually corresponds to a subject/object division.
However, we get a different picture if we discard this assumption and look at things from the perspective of roles. In reality, with many intransitive verbs (such as the one shown above) the "subject" is not the one doing the action at all, but rather the one who is subjected to the action - the patient. Thus the E/A split is based on the paradigm that the ergative case is the doer (agent or instrument) of the action, while the absolutive case is the patient of the action - an agent/patient separation. Taking it one step further, some E/A languages even require that the ergative argument commit the action intentionally, and use a different sentence structure to indicate otherwise (e.g. split-intransitivity languages use either the ergative or absolutive case for the subject of intransitive verbs, depending on whether the action is intentional or not; others use the passive voice for unintentional actions; etc.).
Given this, both seem equally sensible, and the choice itself now seems arbitrary. It's worth noting, also, that most languages in the world are either N/A or E/A. Languages using other systems are rare, which might suggest that the N/A and E/A splits are more sensible and/or useful than other methods. But hold onto that thought.
The Grammer of Discourse hypothesizes at least ten universal roles, which I'll only briefly describe.
Experiencer: the person experiencing an emotion or sensation
Patient: the one an action acts on
Agent: the one willfully performing an action
Range: an extension of the verb, such as indicating how, e.g. "Your blood smells good"
Measure: an extension of the verb indicating how much, e.g. "I was only bitten a little bit" (these examples brought to you by Vampire Knight)
Instrument: something which is used to perform an action; this can also be used for animate entities who unintentionally perform an action
Locative: the location an action occurs at
Source: the starting point of some kind of movement or transfer
Goal: the ending point of movement or transfer
Path: the path taken during movement or transfer
If we were to compare this list of roles with typical use of the Latin cases, we would get the following. Note that this list is approximate, and some of the roles like measure and range I'm not even sure how to represent in Latin.
Nominative case: agent, patient, experiencer, instrument
Genitive: unrelated to role in the sentence (roles refer to relation with the verb, not with other nouns)
Dative: goal, patient
Accusative: patient, experiencer, goal, rarely source
Ablative: source, instrument, locative, goal, path, possibly range and measure (some of those requiring prepositions)
Locative (rare): locative
Vocative: not related to role
However, while case is language-specific, some themes (common cases) occur much more often than others. Of the Latin cases, the nominative, genitive, dative, and accusative occur very frequently in all languages; this is not surprising, as these seem the most essential to language in general (though note that they are not guaranteed to mean exactly the same thing in all languages).
The nominative case is roughly defined as the subject of the verb. For transitive verbs having a direct object, the subject is the one performing the action (e.g. "He poked her"); for intransitive verbs the subject is the single argument (e.g. "He was hit"). The accusative case is the object of transitive verbs. Any language having this structure is called a nominative-accusative (or sometimes just accusative) language (which we're going to call N/A in the rest of this post).
However, two others - the ergative and the absolutive - also occur very commonly in languages. The ergative case is defined as the subject of transitive verbs. The absolutive case, however, includes both the subject of intransitive verbs and the object of transitive verbs. Languages using this system are called ergative-absolutive (or sometimes just ergative; E/A, here).
At first this seems very strange and arbitrary - splitting the subject depending on whether the verb is transitive or intransitive. However, this is due to the fact that we don't speak an language. In fact, even the word 'subject' reflects this bias in thinking. The N/A split carries the paradigm that all actions are done by somebody/something, regardless of whether the action is intentional or unintentional, or even whether there's anyone performing the action at all (e.g. in "He fell"). This is called the subject, and for transitive verbs, the one acted on is the called the object; thus the N/A split actually corresponds to a subject/object division.
However, we get a different picture if we discard this assumption and look at things from the perspective of roles. In reality, with many intransitive verbs (such as the one shown above) the "subject" is not the one doing the action at all, but rather the one who is subjected to the action - the patient. Thus the E/A split is based on the paradigm that the ergative case is the doer (agent or instrument) of the action, while the absolutive case is the patient of the action - an agent/patient separation. Taking it one step further, some E/A languages even require that the ergative argument commit the action intentionally, and use a different sentence structure to indicate otherwise (e.g. split-intransitivity languages use either the ergative or absolutive case for the subject of intransitive verbs, depending on whether the action is intentional or not; others use the passive voice for unintentional actions; etc.).
Given this, both seem equally sensible, and the choice itself now seems arbitrary. It's worth noting, also, that most languages in the world are either N/A or E/A. Languages using other systems are rare, which might suggest that the N/A and E/A splits are more sensible and/or useful than other methods. But hold onto that thought.
Thursday, June 12, 2008
Case & Other Cases
One thing necessary in all languages is that the nouns in a sentence that play various roles/cases must be identifiable. While the exact amount of precision varies by language and by sentence structure (there may be more than one way to say something, or only certain structures may be used in certain cases), all languages have a way to indicate the subject, direct object, etc. (although of course the exact set of roles that exists varies by language, as well). As far as I'm aware, there are three methods of accomplishing this: dependent-marking, head-marking, and analysis (note that none of these terms refers exclusively to role; I'm merely discussing them in this one specific context).
Let's start with the easy one: analysis. This is the method English uses for its core roles: subject, direct object, and sometimes the indirect object. As I pointed out in The Decline of the English Language, Modern English has a fairly rigid word order for its core roles: Subject Verb [IndirectObject] [DirectObject], as in "The boy gave the dog a bone"; some other word orders are used by native speakers, but they're uncommon, and generally only used in certain specific contexts (e.g. the Verb Subject Complement order in "Are you an idiot?"). Thus analysis refers to the use of strict word ordering to determine what role each noun has.
As I mentioned in the same paper, English wasn't always this way: it belongs to the same language family as Latin, all traditionally using dependent-marking of case. Dependent marking refers to the fact that each word is marked to indicate its role. In the same sentence "Puer [boy] cani [dog] os [bone] dabat [gave]", the four words may be placed in any order, and the meaning will still be clear, because the nouns carry the nominative, dative, and accusative cases, respectively (actually, that isn't 100% true; because some cases decline the same way, there can be some ambiguity here).
You might notice that English also does this for non-core roles, which corresponds to greater freedom as to word order. As dependent-marking does not require that the mark actually be attached to the word, English uses prepositions to mark non-core roles, rather than the traditional suffixes of Indo-European languages. This system is used for such roles as instrument in "The boy poked the dog with a bone" (the Latin version, "Puer canes osse pungebat", uses the ablative case, and the accusative case for the dog), the benefactor in "The boy bought a dog for her" (in the Latin version "Puer canes per ea emebat", a preposition is used with the ablative in this case), etc. The last example also illustrates that Latin uses prepositions as well, to mark roles outside the 6 core cases.
Both of those have been something that isn't entirely unfamiliar to English speakers. Even case still (barely) exists in the pronouns and nouns of English (having three and two cases, respectively); the third method, head-marking or agreement, is also not absolutely foreign, though it is uncommon in modern English. Verbs in Indo-European languages traditionally agree with the subject of the sentence - the verbs themselves indicate the grammatical person and number of the subject. While English has all but lost this form of agreement, you can still see vestiges of it. The verb 'am' uniquely identifies the subject as first person singular, while 'is' identifies the subject as third person singular ('are' is ambiguous, because it could refer either to second person singular or any person plural); similarly, the -s form of all other verbs (e.g. 'gives') identify the subject as third person singular. Romance languages like Spanish still contain robust subject-verb agreement, such that it is possible to uniquely identify the subject as first, second, or third person (never mind the bad terminology for now) and singular or plural.
However, you might have noticed something: in languages like Latin that have subject agreement, marking nouns with the nominative case (used for the subject) can be redundant. Head-marking, or polysynthetic, languages do away with this use of case, and purely rely on verb agreement to indicate which nouns have each role. I can't find a good example of a sentence that would indicate how this would work without introducing other things I don't want to get into, so I'm gonna make one up:
Let's start with the easy one: analysis. This is the method English uses for its core roles: subject, direct object, and sometimes the indirect object. As I pointed out in The Decline of the English Language, Modern English has a fairly rigid word order for its core roles: Subject Verb [IndirectObject] [DirectObject], as in "The boy gave the dog a bone"; some other word orders are used by native speakers, but they're uncommon, and generally only used in certain specific contexts (e.g. the Verb Subject Complement order in "Are you an idiot?"). Thus analysis refers to the use of strict word ordering to determine what role each noun has.
As I mentioned in the same paper, English wasn't always this way: it belongs to the same language family as Latin, all traditionally using dependent-marking of case. Dependent marking refers to the fact that each word is marked to indicate its role. In the same sentence "Puer [boy] cani [dog] os [bone] dabat [gave]", the four words may be placed in any order, and the meaning will still be clear, because the nouns carry the nominative, dative, and accusative cases, respectively (actually, that isn't 100% true; because some cases decline the same way, there can be some ambiguity here).
You might notice that English also does this for non-core roles, which corresponds to greater freedom as to word order. As dependent-marking does not require that the mark actually be attached to the word, English uses prepositions to mark non-core roles, rather than the traditional suffixes of Indo-European languages. This system is used for such roles as instrument in "The boy poked the dog with a bone" (the Latin version, "Puer canes osse pungebat", uses the ablative case, and the accusative case for the dog), the benefactor in "The boy bought a dog for her" (in the Latin version "Puer canes per ea emebat", a preposition is used with the ablative in this case), etc. The last example also illustrates that Latin uses prepositions as well, to mark roles outside the 6 core cases.
Both of those have been something that isn't entirely unfamiliar to English speakers. Even case still (barely) exists in the pronouns and nouns of English (having three and two cases, respectively); the third method, head-marking or agreement, is also not absolutely foreign, though it is uncommon in modern English. Verbs in Indo-European languages traditionally agree with the subject of the sentence - the verbs themselves indicate the grammatical person and number of the subject. While English has all but lost this form of agreement, you can still see vestiges of it. The verb 'am' uniquely identifies the subject as first person singular, while 'is' identifies the subject as third person singular ('are' is ambiguous, because it could refer either to second person singular or any person plural); similarly, the -s form of all other verbs (e.g. 'gives') identify the subject as third person singular. Romance languages like Spanish still contain robust subject-verb agreement, such that it is possible to uniquely identify the subject as first, second, or third person (never mind the bad terminology for now) and singular or plural.
However, you might have noticed something: in languages like Latin that have subject agreement, marking nouns with the nominative case (used for the subject) can be redundant. Head-marking, or polysynthetic, languages do away with this use of case, and purely rely on verb agreement to indicate which nouns have each role. I can't find a good example of a sentence that would indicate how this would work without introducing other things I don't want to get into, so I'm gonna make one up:
In this example, theyare attachedit pronouns representingthem the subject, direct object, and indirect object the verb of each clause. As with English pronouns in general, theyagree the attached pronouns with number and gender of the nouns. For the verbs, iusedthem the subject-verb-object order and pronoun cases, to makethem the verbs easier to read for English speakers. However, iusedthem varying word orders for nouns in the clauses to illustrateit how itcan be used head-marking with different word orders. Typically theywould useit head-marking head-marking languages with other modifiers like possessives, as well.Finally, the Totonac language takes polysynthesis to a ridiculous extreme. According to the examples in The Grammar of Discourse, Totonac merely lists all roles in the sentence, without using agreement to indicate which nouns have which roles. One example given (I'm kind of making up my own orthography, here) is "liiteemaktamaahua [literally 'with-passing by-from-buy'] tumin [money]", which means "As [he] passes by, [he] buys [it] from [him] with money". Amazingly (and completely against expectations), native speakers of Totonac can actually understand each other.
Friday, June 06, 2008
Beyond Godly
On Recording Industry vs. the People, in response to this story, somebody suggested:
It would be interesting to set up a 'honey-pot' node (using maybe a printer or a network monitoring box), wait for a takedown notice, and say "see you in court". It would be even more interesting to see the discovery request for the hard disk of a printer.That idea is beyond godly - set up a honeypot network that isn't actually sharing copyrighted material, and file DMCA abuse suits for every DMCA takedown notice they receive. I suspect that would very rapidly lead to more thorough investigations before companies fire off bogus DMCA takedown notices.
Thursday, June 05, 2008
Empirical Data and the RIAA
A bit ago I wrote up a rather lengthy list of factors which could, in theory, produce false-positives in identifying users sharing copyrighted files via peer-to-peer programs. Most of these risks could be mitigated by thorough investigation, though I noted that as the RIAA clearly cuts every corner they can, it's likely that few if any of these mitigating measures are taken in actual investigations.
Now the University of Washington has demonstrated some of these risks in actual occurrence in their project Tracking the Trackers: Investigating P2P Copyright Enforcement. While they've only looked at a couple of the risks I suggested, the results show quite a few false positives, indicating that my prediction that measures to minimize these risks are not being applied was accurate.
The research paper is here, if you don't want to go through the project's web site itself. The New York Times blog has also picked up this story. They also have a cute logo/illustration:

This was actually a study I've been wanting to see done for some time. The other study that I think is very important but has not yet been done is to determine empirically how, on a system like eDonkey, where users search all peers for a certain file, the number of requests a single computer gets for a single file varies with the popularity of the file. The basis of this investigation is the claim by RIAA and others that users could be sharing thousands or millions of copies of each copyrighted work, therefore constitutional limitations on civil damage awards do not apply.
Clearly files that are popular (e.g. the latest hit song) will be downloaded more (in total) than files which are unpopular. But does this mean any single computer will upload popular files significantly more often than unpopular files? I believe the answer is no, for the reason that because the files are more popular, not only are they downloaded more, but they are also available from more computers. In theory, the increase in demand is accompanied by a proportionate increase in supply, keeping the ratio invariant regardless of demand. According to this belief, I have argued on forums (one example here) that most of the people the RIAA has sued have, according to simple probability, not uploaded more than a single copy of each file, on average (so about $0.70 of damage per file, if you assume 1 download = 1 lost sale, which itself is highly suspect).
Now the University of Washington has demonstrated some of these risks in actual occurrence in their project Tracking the Trackers: Investigating P2P Copyright Enforcement. While they've only looked at a couple of the risks I suggested, the results show quite a few false positives, indicating that my prediction that measures to minimize these risks are not being applied was accurate.
The research paper is here, if you don't want to go through the project's web site itself. The New York Times blog has also picked up this story. They also have a cute logo/illustration:
This was actually a study I've been wanting to see done for some time. The other study that I think is very important but has not yet been done is to determine empirically how, on a system like eDonkey, where users search all peers for a certain file, the number of requests a single computer gets for a single file varies with the popularity of the file. The basis of this investigation is the claim by RIAA and others that users could be sharing thousands or millions of copies of each copyrighted work, therefore constitutional limitations on civil damage awards do not apply.
Clearly files that are popular (e.g. the latest hit song) will be downloaded more (in total) than files which are unpopular. But does this mean any single computer will upload popular files significantly more often than unpopular files? I believe the answer is no, for the reason that because the files are more popular, not only are they downloaded more, but they are also available from more computers. In theory, the increase in demand is accompanied by a proportionate increase in supply, keeping the ratio invariant regardless of demand. According to this belief, I have argued on forums (one example here) that most of the people the RIAA has sued have, according to simple probability, not uploaded more than a single copy of each file, on average (so about $0.70 of damage per file, if you assume 1 download = 1 lost sale, which itself is highly suspect).
Thursday, May 29, 2008
Absolutely Amazing
Since it would take quite a patchwork of quotes to summarize this story, I'll just give a few bullet-points of my own as a summary.
- Revision3 uses BitTorrent to distribute its own content (legal distribution, in other words)
- Everybody's second-favorite company MediaDefender decided to play with R3's tracker. Once they found a hole that allowed the tracker to serve torrents not by R3, they began using the tracker to track their own files.
- R3 discovered that somebody was using their tracker for external content and banned MD's torrents
- MD's servers (the ones actually uploading the files that they were using R3's tracker to track) responded by DOSing R3's tracker (according to one person on Slashdot, MD has a 9 Gbps internet connection for this purpose), taking R3's tracker and other systems completely offline
- The FBI is currently investigating the incident. Some have suggested and are praying that the PATRIOT Act could be used to charge MD with cyber-terrorism, as defined by law.
Various coverage:
Inside the Attack that Crippled Revision3 (mirror)
MediaDefender, Revision3, screw-up
Revision3 Sends FBI after MediaDefender
- Revision3 uses BitTorrent to distribute its own content (legal distribution, in other words)
- Everybody's second-favorite company MediaDefender decided to play with R3's tracker. Once they found a hole that allowed the tracker to serve torrents not by R3, they began using the tracker to track their own files.
- R3 discovered that somebody was using their tracker for external content and banned MD's torrents
- MD's servers (the ones actually uploading the files that they were using R3's tracker to track) responded by DOSing R3's tracker (according to one person on Slashdot, MD has a 9 Gbps internet connection for this purpose), taking R3's tracker and other systems completely offline
- The FBI is currently investigating the incident. Some have suggested and are praying that the PATRIOT Act could be used to charge MD with cyber-terrorism, as defined by law.
Various coverage:
Inside the Attack that Crippled Revision3 (mirror)
MediaDefender, Revision3, screw-up
Revision3 Sends FBI after MediaDefender
Thursday, May 22, 2008
More on kd-tree Splitting
I was just reading the paper Analysis of Approximate Nearest Neighbor Searching with Clustered Point Sets, which, as the title indicates, performs performance analysis of 3 different kd-tree splitting policies. The policies used are the standard policy, the sliding-midpoint policy, and the minimum-ambiguity policy, which is new in this paper.
The minimum ambiguity method takes into account not only the full set of data points, like all the others, but also takes into account a set of training regions which represent the distribution of regions to find points within - that is, the future searches themselves. As with the other methods, the goal of the algorithm is to minimize the average number of nodes in the tree that overlap each search region; however, when both the searches and data points are known, the minimum-ambiguity method can do it better than the others.
Two different scenarios analyzed are of particular interest. In all cases the data points were clustered; the two correspond to the distribution of the training regions: the same clustered distribution as the data points, or uniform distribution. In the case of both using the same clustered distribution, the minimum-ambiguity policy > the standard policy > sliding-midpoint policy (here using the internet use of '>' as "is superior to"). In the case of searches distributed uniformly, the sliding-midpoint policy > minimum-ambiguity policy, with both far superior to the standard policy.
So, what's it mean for writing a kd-tree for a game? Well, it provides some pretty interesting information, though it doesn't change the bottom line. As mentioned in my paper, more complex splitting policies like sliding-midpoint and minimum-ambiguity are only viable for data sets that are essentially fixed. In a game, this corresponds to immobile objects that are either unchanging (e.g. cannot die) or change extremely infrequently; in E Terra, this corresponds to doodads - objects which take up space but do not have any function - and immobile game objects such as grass (which is edible but not consumable).
As also mentioned previously, the distribution of points is not expected to be uniform - it's expected that there will be clusters of things at various focal points on the map. Furthermore, in the case of mobile objects, the search distribution will roughly equal the distribution of the data points themselves.
Unfortunately, neither of these facts is useful to us. Despite the mostly known distribution of searches, we cannot use the minimum-ambiguity policy in any of our trees because the set of search regions - corresponding mostly to the mobile game objects - is dynamic. Furthermore, it wouldn't be of any particular benefit to use the data points in the static trees as the search region distribution, as the majority of searches will be from the mobile objects, for things like collision detection and sight radii.
The minimum ambiguity method takes into account not only the full set of data points, like all the others, but also takes into account a set of training regions which represent the distribution of regions to find points within - that is, the future searches themselves. As with the other methods, the goal of the algorithm is to minimize the average number of nodes in the tree that overlap each search region; however, when both the searches and data points are known, the minimum-ambiguity method can do it better than the others.
Two different scenarios analyzed are of particular interest. In all cases the data points were clustered; the two correspond to the distribution of the training regions: the same clustered distribution as the data points, or uniform distribution. In the case of both using the same clustered distribution, the minimum-ambiguity policy > the standard policy > sliding-midpoint policy (here using the internet use of '>' as "is superior to"). In the case of searches distributed uniformly, the sliding-midpoint policy > minimum-ambiguity policy, with both far superior to the standard policy.
So, what's it mean for writing a kd-tree for a game? Well, it provides some pretty interesting information, though it doesn't change the bottom line. As mentioned in my paper, more complex splitting policies like sliding-midpoint and minimum-ambiguity are only viable for data sets that are essentially fixed. In a game, this corresponds to immobile objects that are either unchanging (e.g. cannot die) or change extremely infrequently; in E Terra, this corresponds to doodads - objects which take up space but do not have any function - and immobile game objects such as grass (which is edible but not consumable).
As also mentioned previously, the distribution of points is not expected to be uniform - it's expected that there will be clusters of things at various focal points on the map. Furthermore, in the case of mobile objects, the search distribution will roughly equal the distribution of the data points themselves.
Unfortunately, neither of these facts is useful to us. Despite the mostly known distribution of searches, we cannot use the minimum-ambiguity policy in any of our trees because the set of search regions - corresponding mostly to the mobile game objects - is dynamic. Furthermore, it wouldn't be of any particular benefit to use the data points in the static trees as the search region distribution, as the majority of searches will be from the mobile objects, for things like collision detection and sight radii.
Thursday, May 15, 2008
Detox
Well, I've finally finished my last final of the semester, and the last homework assignment/term project was turned in last week. Now comes the much more pleasant task of purging myself of any knowledge acquired this semester. A list of some of the things I ought to work on this summer:
- Clean up and post kdTrieDemo
- Clean up and post TextBreaker
- Clean up and post the GUI code from MPQDraft
- Work on E Terra
- Do follow-up experiments to my AI term project
- Work on Secret Project V (no, that doesn't stand for "vendetta")
- Work more on my various languages
Though somehow I'm betting the only one I'll do in any great amount is:
- Play World of Warcraft
- Clean up and post kdTrieDemo
- Clean up and post TextBreaker
- Clean up and post the GUI code from MPQDraft
- Work on E Terra
- Do follow-up experiments to my AI term project
- Work on Secret Project V (no, that doesn't stand for "vendetta")
- Work more on my various languages
Though somehow I'm betting the only one I'll do in any great amount is:
- Play World of Warcraft
Subscribe to:
Posts (Atom)