Saturday, September 30, 2006
Friday, September 29, 2006
Tuesday, September 26, 2006
Monday, September 25, 2006
Red State Rabble: Subtle Distinctions
Red State Rabble: Subtle Distinctions:
The difference is actually pretty simple: the holy roller wants to go to heaven and the Unitarian would rather go to a discussion about heaven.
Dawkins, it seems, is the sort of man who can see quite clearly how the multitude of species we see around us today descended from a common ancestor -- something that requires both sound judgement and the ability to make fine distinctions -- but he can't tell the difference between a holy roller and a Unitarian.
The difference is actually pretty simple: the holy roller wants to go to heaven and the Unitarian would rather go to a discussion about heaven.
Friday, September 22, 2006
Religion Clause: 9th Circuit OK's Exclusion Of Worship Services From Library Rooms
Religion Clause: 9th Circuit OK's Exclusion Of Worship Services From Library Rooms: "Yesterday in Faith Center Church Evangelistic Ministries v. Glover, (9th Cir., Sept. 20, 2006), a 3-judge panel in the 9th Circuit wrote 3 opinions, and by a vote of 2-1 decided that a Contra Costa County public library could make its meeting rooms available for 'meetings, programs, or activities of educational, cultural or community interest', while excluding their use for 'religious services'. "
The Volokh Conspiracy - Fred Goldman's Attempt to Seize O.J.'s Right of Publicity:
The Volokh Conspiracy - Fred Goldman's Attempt to Seize O.J.'s Right of Publicity:: "The theory is simple: O.J. owes Goldman, according to the Complaint, $38 million (the original $19 million wrongful death award plus interest). O.J. has a valuable asset -- his right of publicity, which is to say the right to distribute merchandising containing his name, likeness, signature, voice, and the like (e.g., autographs, T-shirts, coffee mugs, and the like), the right to license these items for merchandising, and the right to license these items for advertising. Goldman, the theory goes, may therefore seize the asset to help satisfy the judgment, just like he could seize real estate, tangible property, patents, copyrights, and the like."
Thursday, September 21, 2006
SCOTUSblog: Ruling: senator cannot be military judge, too
SCOTUSblog: Ruling: senator cannot be military judge, too: "The highest court in the military judiciary, the U.S. Court of Appeals for the Armed Forces, on Wednesday barred a U.S. senator from sitting on a military appeals court that decides criminal cases. By a vote of 4-1, the Court found unconstitutional the dual role of Lindsey O. Graham as a senator (Republican from South Carolina) and as a reserve officer sitting on the Air Force Court of Criminal Appeals."
Wednesday, September 20, 2006
Religious Liberty Archive : Rothgerber Johnson & Lyons LLP, Colorado Springs, CO - State and federal laws pertaining to religious freedom in the Unite
Religious Liberty Archive : Rothgerber Johnson & Lyons LLP, Colorado Springs, CO - State and federal laws pertaining to religious freedom in the United States: "The Religious Liberty Archive is an extensive repository of valuable information and a useful resource for anyone seeking information about state and federal laws pertaining to religious freedom in the United States. "
BBC NEWS | Entertainment | Son completes unfinished Tolkien
BBC NEWS | Entertainment | Son completes unfinished Tolkien: "An unfinished book by JRR Tolkien has been edited into a completed work by his son for publication next year."
The Macintosh Biblioblog: Ottobib - Web-based bibliography formatter
The Macintosh Biblioblog: Ottobib - Web-based bibliography formatter: "Ottobib is a site that allows you to simply type in the ISBN number of a book that you need to reference, then choose the style that the bibliography must be written in, and it spits back your fully formatted bibliography. Simple as that."
Tuesday, September 19, 2006
Block Scoping in JavaScript
Contrary to C, JavaScript does not directly support block-level scoping, only at the objects and function levels. (Global scoping is really just scoping within the window object.) Thus, the second outer block alert will be 3, not 2:
Because JavaScript scoping is at the function and object levels, block scoping can be simulated with anonymous functions and anonymous objects.
Anonymous functions can simulate block scoping by defining a closure and calling it:
The parentheses around the closure are necessary to avoid a syntax error when calling the closure immediately. Formal arguments are also considered to be at the function scope, and they can be used to bind the block scoped variables:
Another implementation of block scoping with closures uses the new operator that automatically calls its function:
The syntax of the new operator is a bit tidier.
Just as an anonymous function can implement block scoping, so too can an anonymous object, using the with statement:
Of all of these examples, the with statement has the tidiest syntax -- but only those members in the anonymous object are block scoped. Thus, variables of both function and block scope can be mixed within the same block:
In this example, the second outer block alert for baz is 4, because baz still has function scope. It remains to be seen whether this ability to mix scoping is a bug (more confusing) or a feature (more flexible) for the with statement version.
function foo0() {
var bar = 2;
alert("outer block: "+bar);
if (true) {
var bar = 3;
alert("inner block: "+bar);
}
alert("outer block: "+bar);
}
Because JavaScript scoping is at the function and object levels, block scoping can be simulated with anonymous functions and anonymous objects.
Function-based Block Scoping
Anonymous functions can simulate block scoping by defining a closure and calling it:
function foo1a() {
var bar = 2;
alert("outer block: "+bar);
if (true) (function() {
var bar = 3;
alert("inner block: "+bar);
})();
alert("outer block: "+bar);
}
The parentheses around the closure are necessary to avoid a syntax error when calling the closure immediately. Formal arguments are also considered to be at the function scope, and they can be used to bind the block scoped variables:
function foo1b() {
var bar = 2;
alert("outer block: "+bar);
if (true) (function(bar) {
alert("inner block: "+bar);
})(3);
alert("outer block: "+bar);
}
Another implementation of block scoping with closures uses the new operator that automatically calls its function:
function foo1c() {
var bar = 2;
alert("outer block: "+bar);
if (true) new function() {
var bar = 3;
alert("inner block: "+bar);
};
alert("outer block: "+bar);
}
The syntax of the new operator is a bit tidier.
Object-Based Block Scoping
Just as an anonymous function can implement block scoping, so too can an anonymous object, using the with statement:
function foo2a() {
var bar = 2;
alert("outer block: "+bar);
if (true) with({ bar:3 }) {
alert("inner block: "+bar);
}
alert("outer block: "+bar);
}
Of all of these examples, the with statement has the tidiest syntax -- but only those members in the anonymous object are block scoped. Thus, variables of both function and block scope can be mixed within the same block:
function foo2b() {
var bar = 2;
var baz = 1;
alert("outer block: "+baz);
if (true) with({ bar:3 }) {
var baz = 4;
alert("inner block: "+baz);
}
alert("outer block: "+baz);
}
In this example, the second outer block alert for baz is 4, because baz still has function scope. It remains to be seen whether this ability to mix scoping is a bug (more confusing) or a feature (more flexible) for the with statement version.
Evangelical Textual Criticism: Coptic Digital Resources
Evangelical Textual Criticism: Coptic Digital Resources: "Listed below are the main internet resources for the Coptic language. If anybody else knows of good ones, please post them and I will update this list."
Monday, September 18, 2006
Subscribe to:
Posts (Atom)