30 Jul '12, 3pm

@fogus This old crufty thing probably doesn't run anymore but you might find it interesting

#!/usr/bin/env ruby # I'm calling this "Poor Man's Seaside" for now. # The real Seaside is at http://beat4.com/seaside2. # It's not supposed to be good code, so don't get confused. # It's just supposed to be as simple as possible. # The purpose is to demonstrate the "trick" that Seaside uses. # <a href="http://www.cincomsmalltalk.com/userblogs/avi/View.ssp">Avi</a> tells me # that I have correctly demonstrated the first of 3 tricks that make Seaside what it is. # Note: $cc a global variable, which means only one person can # safely use this application. require 'webrick' include WEBrick $continuations = {} class ContinuationServlet < HTTPServlet::AbstractServlet def do_GET (req, res) res['Content-Type' ] = "text/html" if (req.query['continuation' ] != nil ) then res.body = call_cont($continuations [req.query['continuation' ]], req.query['answer' ]) else wrap_main(req,res) ...

Full article: http://chadfowler.com/lazyseaside/pm_seaside.html

Tweets

Animal ‘Compass Cells’ Isolated (Probably): German researchers have developed a method for identifying potential...

Animal ‘Compass Cells’ Isolated (Probably): Ger...

spectrum.ieee.org 31 Jul '12, 8pm

During the past half-century, it’s become increasingly clear that some animals have built-in magnetic compasses. The evide...

How to Run the Khan Academy Off-line

How to Run the Khan Academy Off-line

spectrum.ieee.org 30 Jul '12, 5pm

When a friend recently asked for volunteers to help tutor inmates at a local prison, I asked, “Why not use the Khan Academ...

J. Singh's Olympic roots run deep in native Ind...

pgatour.com 31 Jul '12, 7pm

J. Singh's Olympic roots run deep in native India text size Jul. 31, 2012 By Helen Ross, PGATOUR.COM Chief of Corresponden...

これすごい。クロックとデータを1線で制御する方法。クロックはそのまま、データはCRを挟んで繋い...

edn.com 29 Jul '12, 1pm

It’s almost a corollary to Moore’s Law: Next year, microcomputers will have more features, and the software team will have...