Voder-Vocoder

The Log of Hal Canary

Navigation: Home | THE LOG | Log Archives | Resume | Contact Info | Public Key | SSL | Math Applets | Site Map | RSS2 | Atom | Backend

Archive for 2011-03

convert asterisks to html-bold via sed

#!/bin/sed -f
#DTPD#
#convert *bold* text to *html bold*
# also converts /italic/ text to html em
s/\*\([^\*]*\)\*/<strong>\1<\/strong>/g;
s/\/\([^\/]*\)\//<em>\1<\/em>/g;

Hal Canary | Computers & Code | 2011-03-07 20:37:44 UTC
Permanent Link |
Comments Off (but feel free to email)

speaking of the Touch…

I’ve decided that using it as an ebook reader is incredibly convenient, because of its small size (it fits nicely in my pocket!). The only advantage an e-ink screen still holds for me is super-long battery life.

Hal Canary | Books, Computers & Code | 2011-03-05 21:23:56 UTC
Permanent Link |
Comments Off (but feel free to email)

HTML/CSS for Ipod Touch

I added these lines to the CSS for this page

pre { overflow:auto;
      overflow-y:visible; }

and this line to the (X)HTML

<meta name="viewport"
    content="width=device-width" />

which seems to make the site render much much better on my Ipod Touch’s small screen.

Hal Canary | Computers & Code | 2011-03-05 21:20:35 UTC
Permanent Link |
Comments Off (but feel free to email)

Copyright 1997-2012 by Hal Canary.
mailto: halcanary at gmail dot com
http://halcanary.org