During RubyConf I had a chance to sit next to John Long of RadintCMS fame. He’s a cool guy and Radiant is awesome for simple websites. I’m using Radiant for a few of my customers simple websites.
Not to be outdone in the coding arena, here are my important contributions to RadiantCMS. I call this collection of code “Inappropriate Text Filters.”
Markdown? Textile? You got nothing on me:
Filter #1: piglatin_filter.rb
class PigLatinFilter < TextFilter::Base
register 'PigLatin'
def filter(text)
text.split.collect{|word| pig(word)}.join(" ")
end
def pig(word)
leadingCap = word =~ /^A-Z/
word.downcase!
res = case word
when /^aeiouy/
word+"way"
when /^([^aeiouy]+)(.*)/
$2+$1+"ay"
else
word
end
leadingCap ? res.capitalize : res
end
end
Filter #2: crypt_filter.rb
class CryptoFilter < TextFilter::Base
register 'Crypto'
def filter(text)
text.crypt("da_salt_")
end
end
Filter #3: reverse_filter.rb
class ReverseFilter < TextFilter::Base
register 'Reverse'
def filter(text)
text.split.collect{|word| word.reverse!}.join(" ")
end
end
Is your VMWare Workstation broken after your Edgy Eft upgrade?
Errors with libpng12.so.0?
Short answer:
sudo apt-get remove libdbus-1-2
Long answer:
VMTN Discussion Forums: edgy eft libpng12.so.0 …
With the release yesterday of FF 2.0 I thought I’d celebrate by creating an OpenSearch format search engine plugin for it. It allows you to search the scriptures on lds.org from within Firefox.
Disclaimer: Only Works with the new Firefox 2.0
The plane leaves for Denver bright and early at 6:04. See you there!
Flash Player 9 is out in beta for Linux:
Adobe Labs - Downloads: Flash Player 9 Update
For those of you running Ubuntu Dapper the following will get you there:
sudo apt-get install libc6 libx11-6 libxext6 libxt6 libfreetype6 libfontconfig1 libgtk2.0-0 libglib2.0-0 libasound2-dev libssl-dev libasound2 libssl0.9.8
Yes! Exactly what I’m looking for:
A nice framework for ruby command-line apps!
Nice little Firefox addon that I really want to use. The googlew cache and wayback machine links are killer.
From the web page, “Changes the default error page from basically having a reload button to
having the following choices: a google cache, an archival snapshot from
the wayback machine, a ping, a trace route, and a whois lookup.
Updated: version 0.2 adds a coralize feature.”
roachfiend.com » ErrorZilla - Useful error pages for Firefox
The World Heath Organization has lifted the DDT ban!
Townhall.com::Hooray for DDT’s life-saving comeback::By John Stossel