
<rss version="2.0">
<channel>

<title><![CDATA[Douglas Crockford's The Department of Style]]></title>
<link>http://blog.360.yahoo.com/blog-TBPekxc1dLNy5DOloPfzVvFIVOWMB0li</link>
<description><![CDATA[Media, Technology, Creative Discontent, Neandertals, and a Lot More.]]></description>
<language>en-us</language>
<lastBuildDate>Tue, 13 May 2008 16:23:22 GMT</lastBuildDate>

<item>
<title><![CDATA[Beauty is a viviparous oblong fish]]></title>
<link>http://blog.360.yahoo.com/blog-TBPekxc1dLNy5DOloPfzVvFIVOWMB0li?p=829</link>
<description><![CDATA[<p>Sean McGrath gave the closing presentation at <a href="http://2008.xtech.org/">XTech    2008</a> last week in Dublin. He quoted from Jorge Luis Borges's <a href="http://2008.xtech.org/">The    Analytical Language of John Wilkins</a>. Wilkins was an 17th Century English    scientist. (He is also one of the characters in Neal Stephenson's <a href="http://www.amazon.com/exec/obidos/ASIN/0060593083/wrrrldwideweb">Quicksilver</a>.)    Wilkins designed a Philosophical Language in which the letters of each    word give not just the sound but also the specific meaning of the word.    It would have been an amazing accomplishment had it worked. Borges suggests why it didn't.</p> <p>Wilkins's Real Character depended on his exhaustive taxonomy of all knowledge    and topics of conversation. This must be done perfectly, and a perfect    taxonomy is impossible to produce from our mortal vantage point. Borges    points out that </p> <blockquote>   <p>The whale belongs to the sixteenth category; it is a viviparous oblong      fish.</p> </blockquote> <p>That may have been a reasonable classification in Wilkins's time, but    in our time it looks wrong. But it could look much worse.</p> <p>Borges's wrote in Spanish. There are translations on the net that render    that statement differently.</p> <blockquote>   <p>Beauty belongs to the sixteenth category; it is a living brood fish,      an oblong one.</p> </blockquote> <p>Beauty is a fish? What does this mean? Is it a metaphor? No, it is a    typo. In Spanish, beauty is belleza, and whale is ballena.</p> ]]></description>
<pubDate>Tue, 13 May 2008 16:23:22 GMT</pubDate>
</item>

<item>
<title><![CDATA[Black and White and Gray]]></title>
<link>http://blog.360.yahoo.com/blog-TBPekxc1dLNy5DOloPfzVvFIVOWMB0li?p=827</link>
<description><![CDATA[<p>Gray code is a binary sequence encoding in which any state differs from    the next or previous state by only one bit. This is an example of a four    bit Gray code:</p> <pre>BITS<br /> <u>4321</u><br /> 0000<br /> 0001<br /> 0011<br /> 0010<br /> 0110<br /> 0111<br /> 0101<br /> 0100<br /> 1100<br /> 1101<br /> 1111<br /> 1110<br /> 1010<br /> 1011<br /> 1001<br /> 1000</pre> <p>Gray code is useful in shaft encoders, where you want to sense the state    of rotation. An optical encoder could have each state represented by a    pie wedge, where the 0 bits are white and the 1 bits are black.</p> <p>The Towers of Hanoi is a puzzle in which there are three posts and several    discs of various sizes. This is a JavaScript program that solves the problem    of moving the discs from one post to another:</p> <pre>hanoi = function (n, src, aux, dst) {<br />    if (n &gt; 0) {<br />        hanoi(n - 1, src, dst, aux);<br />        document.writeln('Move disc ' + n + ' from ' +<br />                src + ' to ' + dst);<br />        hanoi(n - 1, aux, src, dst);<br />    }<br />};</pre> <p>The solution to a tower of 4 discs is obtained by <code>hanoi(4, 'Src',    'Aux', 'Dst')</code>:</p> <pre>Move disc 1 from Src to Aux<br />Move disc 2 from Src to Dst<br />Move disc 1 from Aux to Dst<br />Move disc 3 from Src to Aux<br />Move disc 1 from Dst to Src<br />Move disc 2 from Dst to Aux<br />Move disc 1 from Src to Aux<br />Move disc 4 from Src to Dst<br />Move disc 1 from Aux to Dst<br />Move disc 2 from Aux to Src<br />Move disc 1 from Dst to Src<br />Move disc 3 from Aux to Dst<br />Move disc 1 from Src to Aux<br />Move disc 2 from Src to Dst<br />Move disc 1 from Aux to Dst</pre> <p>The number of the disc to move corresponds exactly with the next bit    to toggle in the Gray code.</p>]]></description>
<pubDate>Mon, 12 May 2008 17:21:57 GMT</pubDate>
</item>

<item>
<title><![CDATA[JavaScript: The Good Parts]]></title>
<link>http://blog.360.yahoo.com/blog-TBPekxc1dLNy5DOloPfzVvFIVOWMB0li?p=823</link>
<description><![CDATA[<p>I relied on two models when I wrote <a href="http://www.amazon.com/exec/obidos/ASIN/0596517742/wrrrldwideweb">JavaScript:    The Good Parts</a>. The first was Kernighan and Richie's <a href="http://www.amazon.com/exec/obidos/ASIN/0131103628/wrrrldwideweb">The    C Programming Language</a>. It is a brilliant little book. I thought there    should be a K&amp;R for JavaScript. When it seems that most tech books    are sold by the pound, it is nice to read a little book that cleanly lays    out what you need to know. </p> <p>The other was William Goldman's <a href="http://www.amazon.com/exec/obidos/ASIN/034543014X/wrrrldwideweb">The    Princess Bride</a>. Goldman remembers his grandfather reading him a wonderful    book by S. Morgenstern. When he's grown he searches for the book and is    very excited when he finally finds a copy, but discovers to his horror    and confusion that it really isn't very good. Why did he remember it as    being so wonderful? Because his grandfather only read him the good parts.  </p>  ]]></description>
<pubDate>Tue, 06 May 2008 21:48:42 GMT</pubDate>
</item>

<item>
<title><![CDATA[Suppose They Gave a Format War and Nobody Came?]]></title>
<link>http://blog.360.yahoo.com/blog-TBPekxc1dLNy5DOloPfzVvFIVOWMB0li?p=820</link>
<description><![CDATA[ <p>Blu-ray won. Sony ultimately paid off enough of the other studios to    tip the contest in their favor. Toshiba has withdrawn HD-DVD. But Sony's    victory may have come too late.</p> <p>The expectation was that when the format war ends,    that sales of Blu-ray players would immediately exceed the sales of HDTV    sets. That didn't happen. Sales of Blu-ray players have stayed pretty flat.</p> <p>Blu-ray can deliver much higher quality than DVD, but the difference is    not significant in most homes, so Blu-Ray is going to have a much harder    time getting mass acceptance. Sony may be forced into price reductions.    They don't have much time because the window is closing. To survive, Blu-ray    must become dominant before is made obsolete by network delivery.</p> <p>My recommendation is still to stick with DVD at least until Sony announces    that they are going to remove the DRM components from Blu-ray. DRM makes    the gear and discs more expensive and harder to use, so clearly it is    something you don't want.</p> ]]></description>
<pubDate>Thu, 01 May 2008 17:04:34 GMT</pubDate>
</item>

<item>
<title><![CDATA[Yahoo! pimping malware from banner ads]]></title>
<link>http://blog.360.yahoo.com/blog-TBPekxc1dLNy5DOloPfzVvFIVOWMB0li?p=819</link>
<description><![CDATA[<p><a href="http://www.theregister.co.uk/">The Register</a> reported yesterday    <a href="http://www.theregister.co.uk/2008/04/28/yahoo_serves_rogue_ads/">Yahoo!    pimping malware from banner ads</a>. They say that banner ads displayed    on <a href="http://www.yahoo.com/">Yahoo</a> have contained malware:</p> <blockquote>   <p>The ads pitch women's deodorant, but behind the scenes, they contact      servers that have been used by previous rogue ads targeting high-traffic      websites. Typically, the ads produce a pop up that looks strikingly      similar to official Windows dialog pop-ups that urge the end user to      download software to fix problems. Expedia, Rhapsody, MySpace, Excite,      Blick, and CNN.com have all served up similar malicious ads in the past.</p>   <p>Attackers who shoe horn their banners onto reputable sites usually      take advantage of the highly decentralized way that online advertisements      are sold. It's not unusual for there to be a succession of affiliates,      making it possible for an attacker to pose as an authorized agent of      a name-brand product or service. In this case, Yahoo has gotten hoodwinked      into running ads that point to adtds2.promoplexer.com, which has been      implicated in previous rogue banner attacks.</p> </blockquote> <p>I don't know if this has actually been happening at Yahoo, but it is    feasible. The architecture of the browser does nothing to protect users    and websites from malicious ads. As a result, all websites that depend    on advertising are at risk. All users of ad-supported sites are at risk.    And things aren't all that hot for the honest advertiser, either.</p> <p>We could blame the browser makers for making products that put everyone    at risk. Or we could blame the W3C for producing standards that fail to    track the way the web is actually used. Or we could blame the web publishing    companies for choosing to implement their services on a technology that    is clearly inadequate. Or we could blame the advertising industry for    insisting on a body of practices that are unsafe. But I think assigning    blame at this late date is a waste of time. We need instead to be fixing    this thing. The easiest attack on web systems now is to buy ads. Ads can    be cheap. They can be targeted. They can be highly effective.</p> <p>The fundamental problem is that the browser's security model failed to    anticipate that there are multiple interests involved in a web application.    We have here the interests of the user, of the site, and of the advertiser.    If we have a mashup, there can be many more interests. The browser does    not defend these interests from each other. The best it can offer is the    <code>iframe</code> under the Same Origin Policy, which does not prevent    the abuse that The Register is reporting.</p> <p>In the short term, the Advertising Industry must adopt safer practices.    It must be requiring the use of Safe JavaScript Subsets in all ads because    that is the only thing that can work today. I recommend <a href="http://blog.360.yahoo.com/douglascrockford?tag=adsafe">ADsafe</a>    because I designed it. Google's Caja is also very good. Neither is effective    unless it is used. </p> <p>And in the meantime, you should be using Firefox's <a href="http://blog.360.yahoo.com/douglascrockford?p=715">NoScript</a>    extention.</p> <p>Ultimately, we must fix or replace the browser. It has been pushed way    past its competence. </p>  ]]></description>
<pubDate>Tue, 29 Apr 2008 17:13:32 GMT</pubDate>
</item>

<item>
<title><![CDATA[Rush&#39;s Dream]]></title>
<link>http://blog.360.yahoo.com/blog-TBPekxc1dLNy5DOloPfzVvFIVOWMB0li?p=817</link>
<description><![CDATA[<p>Last week Rush Limbaugh gave his version of the <em>I Have a Dream</em>    speech. In Rush's dream, his Operation Chaos is successful in inciting    violence at the Democrat [<em>sic</em>] National Convention in Denver. </p> <p>Limbaugh was also quite harsh to McCain, accusing McCain of disloyalty    for demanding that the Republican Party in North Carolina not run ads    that McCain considers morally objectionable. Limbaugh insisted that the    state party ignore their candidate and run the ads anyway. The implication    is that McCain cannot even command his own party. Therefore, McCain is    not qualified to command the nation.</p> <p>Limbaugh is unhappy because this year the primary process has not produced    a single candidate that meets even his most minimal standards. I share    Limbagh's frustration, but not his traitorous, treasonous tactics. I have    been voting since 1972, and I have never once been offered a presidential    candidate that I liked in the General Election. I have always had to choose    between the lesser evil and the doomed third alternative.</p> <p>This year, that may change. I might finally get a chance to vote for    a candidate that I actually want to serve as president. </p> <p>So my advice to Limbaugh (and I would give exactly the same advice, strangely,    to Clinton) is to not attempt to subvert the Republic just because things    didn't work out for you this year. You had a run of eight years with your    guy in office, and we all saw what a disappointment that was. So accept    reality, step back, reread <em><a href="http://www.amazon.com/exec/obidos/ASIN/0451528891/wrrrldwideweb">Common    Sense</a></em>, regroup, and come back in 2012. In the meantime, I'm voting    for Obama.</p> ]]></description>
<pubDate>Mon, 28 Apr 2008 16:52:12 GMT</pubDate>
</item>

<item>
<title><![CDATA[Happy Earth Day!]]></title>
<link>http://blog.360.yahoo.com/blog-TBPekxc1dLNy5DOloPfzVvFIVOWMB0li?p=816</link>
<description><![CDATA[<br />]]></description>
<pubDate>Tue, 22 Apr 2008 19:43:02 GMT</pubDate>
</item>

<item>
<title><![CDATA[Q&amp;A]]></title>
<link>http://blog.360.yahoo.com/blog-TBPekxc1dLNy5DOloPfzVvFIVOWMB0li?p=814</link>
<description><![CDATA[<p><em>What made you write the book? </em></p> <p>  It was a story that must be told. </p><p>  JavaScript is the world's most misunderstood programming language. The language has so much expressive power that it is possible to be somewhat productive with it without knowing what you're doing. But that is not an effective way to work. Programming is serious business that should never be undertaken in ignorance. </p> <p><em>Why is your book especially important now? </em></p> <p>  JavaScript, because it is the language of the web browser, has become important. Most of the world's applications now use JavaScript. It is the language of Ajax. </p> <p><em>What is the single most important thing readers of your book will    be able to do after reading your book? </em></p> <p>  They will be able to transform JavaScript into a much better language simply by avoiding the bad parts. </p> <p><em>Do you have top 5-10 list of tips, tricks, and/or best practices?    </em></p> <p>  No. I don't believe that quality is obtained from tricks. Good programs come from thoughtful, knowledgeable use of tools. </p> <p><em>Who is your intended audience? </em></p> <p>  This book is for programmers who are coming to JavaScript for the first time from other languages, or for JavaScript programmers who want to be working a higher level. It is not a book for beginners. </p> <p><em>Is there anything that you feel is especially important that the    readers would want to know about you or the book? </em></p> <p>  The book is short, but dense. I, on the other hand, am tall. </p> <p><em>How important is the subject matter of your book?</em></p> <p>  The subject matter of this book couldn't be less important, unless you happen to be developing web applications, in which case it is critically important. </p> <p><em>Is there anything in the news right now that affects or is reflected    in your book, or is related to the subject of your book? </em></p> <p>  Web 2.0 baby, whatever that is, wouldn't be happening without JavaScript </p> <p><em>Are there any anecdotes about writing the book, or how you became    involved in the subject? </em></p> <p>  I was going to write this book in 2001, but I didn't because in that post-bubble period, there didn't appear to be demand for it. That changed with the Ajax Resurgence in 2005. </p> <p><em>Do you write regularly for any publications in this field? </em></p> <p>  Just the blogs. </p> <p><em>In researching the book, did you come across any surprising facts,    figures, or statistics that the press might be interested in?</em> </p> <p>  Surprisingly, facts have very little to do with web development. </p>  ]]></description>
<pubDate>Sat, 19 Apr 2008 13:30:44 GMT</pubDate>
</item>

<item>
<title><![CDATA[Money for Nothing]]></title>
<link>http://blog.360.yahoo.com/blog-TBPekxc1dLNy5DOloPfzVvFIVOWMB0li?p=810</link>
<description><![CDATA[<p>In the realm of music, it is pretty clear now, even to the so-called    Music Industry, that DRM is not a viable business model. Apple's thralls    still shop at iTunes, but The Rest of Us aren't buying it. </p> <p>So the cartel is exploring a taxation model. They want a piece of all    music sales and/or a piece of all music player sales, which would probably    include all computers and cellphones, to compensate them for their failures    to adapt to the changing technological landscape. The cartel is not entitled    to your money and should not get it.</p> <p>Your Congressional Representative is up for reelection this year, and    maybe one of your Senators. So ask them where they stand on the Music    Tax. Make it an issue. Remind them who they work for.</p> ]]></description>
<pubDate>Thu, 17 Apr 2008 16:34:35 GMT</pubDate>
</item>

<item>
<title><![CDATA[The Psychology of Everyday Things]]></title>
<link>http://blog.360.yahoo.com/blog-TBPekxc1dLNy5DOloPfzVvFIVOWMB0li?p=809</link>
<description><![CDATA[<p>In 1988, Donald Norman published <em><a href="http://www.amazon.com/exec/obidos/ASIN/0465067093/wrrrldwideweb">The    Psychology of Everyday Things</a></em>. It was about the products we use,    and why they are often surprisingly difficult to use. He provides useful    advice to designers. He shows that much bad design is due to designers    who are stuck in their system view. In good design, the designer adopts    the user's view. </p> <p>It is a good book, but Norman got something really wrong: The title.    Even though he is a psychologist, this wasn't a psychology book. It was    a design book. He made the same POV mistake in naming the book that the    book itself warns against. This was corrected when the book was reissued    as <em><a href="http://www.amazon.com/exec/obidos/ASIN/0465067107/wrrrldwideweb">The    Design of Everyday Things</a></em>. It is still a good book.</p> ]]></description>
<pubDate>Mon, 14 Apr 2008 19:58:59 GMT</pubDate>
</item>


</channel>
</rss>

<!-- feblg7.mgl.re2.yahoo.com uncompressed/chunked Thu May 15 11:20:04 PDT 2008 -->
