My bed time sed regex:
My bed time sed regex:
sed 's/\ \+/\ /g' | \ # remove double justify by collapsing spaces sed 's/^\ /\ \ \ /g' | \ # increase indent back to 3 spaces
I didn’t like the double justification lynx -dump was producing.
Freedom of the press belongs to those who own one. - A.J. Liebling
{ Category Archives }
My bed time sed regex:
sed 's/\ \+/\ /g' | \ # remove double justify by collapsing spaces sed 's/^\ /\ \ \ /g' | \ # increase indent back to 3 spaces
I didn’t like the double justification lynx -dump was producing.
Few things are as science-fiction like as spider silk, which is 5 times stronger than steel, spun from the milk of transgenic goats.
I spent far too long today figuring out how to convert text/html to text/plain, whether the top level content type is text/html, multipart/alternative, multipart/related, or multipart/mixed. My specific application was wanting to offer a daily digest email of my blog entries, each one of which is generated in HTML format. Both Yahoo Groups and Mailman can only digest plaintext messages. My solution uses procmail, with munpack breaking apart the message and then Lynx replacing URLs with placeholders “[1]” and adding a references section at the bottom. The existing alternative, demime, loses too much information in the conversion process because it strips away hrefs. By contrast, here’s a sample downconverted message using my procmail script:
My message.
–<
Posted by Dan Kohn to [1]Dan Kohn's Blog at 6/16/2002 7:29:23 PM
Powered by [2]Blogger ProReferences
It’s amazing how much time one can spend on a little .procmailrc. But, through the magic of open source and Google, others can hopefully find this and take advantage of my wasted afternoon.
Building an Inexpensive, Powerful Parallel Machine and Using It for Numerical Simulations (Linux Beowulf clusters).
Ever wanted to read a good newsletter on Embedded Linux?
In a discussion on global warming this evening, it was pointed out that smallpox could reemerge as corpses buried in permafrost thaw out. The virus is believed to be capable of surviving several decades of deep freeze. MSNBC previously raised the possibility.
I previously posted bad geek humor — “This sentence has threee erors.” — but I didn’t say why I liked it. Basically, a dumb joke evokes both the incompleteness theorem and the unknowability of the universe.
Whitehead and Russell (1927) devised a hierarchy of “types” in order to eliminate self-referential statements from Principia Mathematica, which purported to derive all of mathematics from logic. A set of the lowest type contained only objects (not sets), a set of the next higher type could contain only objects or sets of the lower type, and so on. Unfortunately, G
QuickTopic is an excellent, easy-to-use discussion system.
4 years ago, Gilder predicted the role out of CDMA in China presaged the end of GSM. Shockingly (not), China Unicom’s network has not taken off: “How many in China will be willing to pay [US$300-400 for a handset], change their phone number and maybe not get as good network coverage?”
When will people learn that even dog standards like GSM are good enough? What matters is universal adoption, not minor (claimed) technical improvements from things like CDMA. If you’re not an order of magnitude better than the entrenched standard, don’t even bother.