Tue 25 Apr 2006

Corn

Richard:
trying to find a Philips MRI system that projects 360° calming images of cornfields around you
Elaina:
ooohh
Richard:
can't find it, of course
but they do have an open MRI
which is much better
Elaina:
clearly they have never seen Children of the Corn.

Posted at 2006-04-25 13:20:14 by RichardLink to Corn
Comments, trackbacks.

Neat hacking

I enjoy a nice, self-contained problem. Today I decided to tackle decoding and formatting RFC 3966 URIs — tel: URIs.
* (decode-tel-uri
"tel:+1-234-567-8900;ext=1234")

"tel"
:GLOBAL
"+1-234-567-8900"
(("ext" . "1234"))
NIL
* (decode-tel-uri 
"tel:123-456;phone-context=+1-234;isub=1234")

"tel"
:LOCAL
"123-456"
(("isub" . "1234"))
"+1-234"
* (format-tel-uri 
"tel:+1-234-567-8900;ext=1234"
:remove-country-code "1")

"(234) 567-8900, ext. 1234"
* (format-tel-uri
"tel:123-456;phone-context=+1-234;isub=1234")

"123-456, local to +1-234"
Good ol' CL-PPCRE!

Posted at 2006-04-25 12:18:25 by RichardLink to Neat hacking
Comments, trackbacks.

Google
Web holygoat.co.uk
  • richard is: