Archive of September 2008

September 29

Hidden mic reveals McCain profanity!

10:21 PM | 0 Comments
September 27

Bill Moyers Interviews Dan Dennett

Dan Dennett makes a much more appealing, even-handed, and hopefully effective case for atheism than Richard Dawkins (Although Dennett’s “brights” thing is unfortunate).

Bill Moyers does a good job of trying to understand what Dennett is getting at, and Dennett does a pretty good job of trying to explain, but there’s definitely a huge intellectual gap between them.

And Dennett is right about requiring education on world religions for everyone — enforced ignorance of other religions is really not cool. If your religion is really right, what are you afraid of?

10:51 PM | 0 Comments

Brain researcher on how “intelligence is all about prediction”.

07:34 PM | 0 Comments

huzzah! I <3 Dan Dennett.

02:35 PM | 0 Comments
putinrearshishead.jpg

via Boing Boing

02:34 PM | 0 Comments
September 25

!!!

06:59 PM | 0 Comments
September 24

We are obliged by the deepest drives of the human spirit to make ourselves more than animated dust, and we must have a story to tell about where we came from, and why we are here. Could Holy Writ be just the first literate attempt to explain the universe and make ourselves significant within it? Perhaps science is a continuation on new and better-tested ground to attain the same end. If so, then in that sense science is religion liberated and writ large.

E.O. Wilson in Consilience

04:43 PM | 0 Comments

XSLT

Discovering the cool Symphony CMS has gotten me thinking about XSLT. Symphony uses XSLT more or less as a templating language. I’d already seen XML-based templating languages like Genshi, and avoided them because I couldn’t see the advantage of using verbose XML syntax for templating. XSLT as used in Symphony is a bit more appealing because it goes directly on top of the XML data, using XPath selector expressions to pick out the right content. Storing data in XML and then transforming it into HTML with XSLT is a pretty elegant way of doing things: we all love writing HTML without any presentation information and then using CSS selectors to style certain parts — why not bring the same paradigm a step lower, using XPath to select elements of raw XML data and then insert the selected data into an HTML template with XSLT?

But XSLT really gets interesting when you consider that it can be executed client-side. XSLT has been around for a while, and the major browsers support it. All you have to do is put a <?xml-stylesheet href="mystylesheet.xsl" type="text/xsl"> in the top of your XML document as if you’re putting a CSS link in the top of your HTML document. When the browser opens the XML document it will load the referenced XSL template, process it, and render the resultant HTML, just like browsers today load and apply CSS stylesheets referenced at the tops of HTML documents (which might happen once your XSL produces HTML). Moving templating client-side means that XSL templates can be cached in addition to CSS stylesheets and JavaScript files, so that after the first request, the only thing that goes across the wire is the raw XML data — much more efficient than sending the same header, footer, and sidebar every time.

Also, the server could use the User-Agent HTTP header to dynamically change the stylesheet declaration in the XML document based on what browser is requesting it — one template could be sent to normal browsers, another, simpler one to mobile browsers, even another to aural or braille browsers, etc.

I’m intrigued. Maybe in a few years, those rails apps that serve XML if you tack “.xml” onto the end of the URL will serve only XML, and all templating will be done client-side.

04:38 PM | 0 Comments

Site-Specific Browsers

Seeing SSB’s like Fluid, Mozilla Prism, and Chrome’s shortcut feature have made me wonder, what’s the big deal about a browser with no controls that can only go to one site? Why would you use this instead of just opening sites in a full-fledged browser like always?

By giving a web application its own window and an icon on the desktop/dock, it moves web apps out of the browser into the domain of the operating system: you use the OS’s desktop or dock to launch them instead of your browser’s address bar, you can use exposé on them on a mac, you use your OS’s window-cycling keyboard shortcut instead of your browser’s tab-cycling keyboard shortcut to cycle through them, etc. Fluid goes further towards integrating web apps into the desktop by exposing some Cocoa APIs like setting the dock badge and sending Growl notifications to JavaScript. Anyway, By using the OS’s interface to manage web apps instead of the browser’s, it makes web apps seem more legitimate. That’s it, really. The hype on the Prism blog post is a bit much.

03:54 PM | 0 Comments
September 23

Seed Salon: E.O. Wilson + Dan Dennett

E.O. Wilson is a biologist. Daniel C. Dennett is a philosopher. Both believe that understanding evolution is essential to understanding our humanity. Despite an incipient blizzard, they met up in the spring of 2004 to talk about God, evolution, incest, and of course, ants. This was their conversation.

11:19 AM | 0 Comments

Online Literacy is a Lesser Kind

Many valid points, and the “F” eye path of online reading sounds like pretty much what I do. But I think the central distinction between online and paper reading, mentioned only briefly in the article, is that books, articles, poems, etc are narrative, and hypertext is interwingled — there’s no beginning and end to the web, it’s a web. Also, it’s hard to limit oneself very long to one article on the web because there’s so much other content quickly and easily accessible.

11:13 AM | 0 Comments
September 21

What’s galling is this: When the subject is a pregnancy to an unwed, minority teenage mother growing up in some (presumably Democratic) urban area, that pregnancy becomes fodder for lectures from conservatives about bad parenting, the perils of welfare spending and so on. But when the subject is a pregnancy to an unwed, white teenager from some small town in a Republican state, that pregnancy is…a celebration of the wonders of God’s magnificence—and choosing life!

12:07 PM | 0 Comments
September 20

I view philosophy as what you’re doing when you don’t know what the right questions are.

04:18 PM | 0 Comments

al3x's Rules for Computing Happiness

Pretty sensible.

02:31 PM | 0 Comments
September 16
137649736d56f0e67b2.jpg

A concrete canoe barely staying afloat. Engineering students build these to show their cleverness.

04:34 PM | 0 Comments

Isn’t it enough to see that a garden is beautiful without having to believe that there are fairies at the bottom of it too?

— Douglas Adams on religion

04:27 PM | 0 Comments
September 14

List to Human, Human to List

import re
 
def list_to_human(thelist):
  if len(thelist) is 2: return '%s and %s' % (thelist[0],thelist[1])
  else: return ', '.join(thelist[:2]) + ', and ' + thelist[-1]
  # list_to_human(['eggs','bacon','spam']) => 'eggs, bacon, and spam'
 
def human_to_list(thestr):
  return re.split(', and |, | and ',thestr)
  # human_to_list('eggs, bacon, and spam') => ['eggs','bacon','spam']
 
 
05:59 PM | 0 Comments

Symphony

A very cool approach to the CMS — based around XML and XSLT. Finally, bringing some standardization to the crazy world of database-driven apps!

05:45 PM | 0 Comments

Sarah Palin Sucks

She’s a cronyist, vendetta-pursuing, power-abusing, bible-thumping, homosexual-hating, dogmatic creationist — everything I hate in a politician. And the American people love her. Just as I was beginning to regain my faith in human nature…

11:04 AM | 0 Comments
September 13

LHC Webcam

See how things are going at CERN.

01:34 PM | 0 Comments
Next → Page 1 of 2